1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.69 for Automated Testing Framework 0.21.
4#
5# Report bugs to <atf-discuss@googlegroups.com>.
6#
7#
8# Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
9#
10#
11# This configure script is free software; the Free Software Foundation
12# gives unlimited permission to copy, distribute and modify it.
13#
14# Copyright (c) 2007-2012 The NetBSD Foundation, Inc.
15## -------------------- ##
16## M4sh Initialization. ##
17## -------------------- ##
18
19# Be more Bourne compatible
20DUALCASE=1; export DUALCASE # for MKS sh
21if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
22  emulate sh
23  NULLCMD=:
24  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
25  # is contrary to our usage.  Disable this feature.
26  alias -g '${1+"$@"}'='"$@"'
27  setopt NO_GLOB_SUBST
28else
29  case `(set -o) 2>/dev/null` in #(
30  *posix*) :
31    set -o posix ;; #(
32  *) :
33     ;;
34esac
35fi
36
37
38as_nl='
39'
40export as_nl
41# Printing a long string crashes Solaris 7 /usr/bin/printf.
42as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
43as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
44as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
45# Prefer a ksh shell builtin over an external printf program on Solaris,
46# but without wasting forks for bash or zsh.
47if test -z "$BASH_VERSION$ZSH_VERSION" \
48    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
49  as_echo='print -r --'
50  as_echo_n='print -rn --'
51elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
52  as_echo='printf %s\n'
53  as_echo_n='printf %s'
54else
55  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
56    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
57    as_echo_n='/usr/ucb/echo -n'
58  else
59    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
60    as_echo_n_body='eval
61      arg=$1;
62      case $arg in #(
63      *"$as_nl"*)
64	expr "X$arg" : "X\\(.*\\)$as_nl";
65	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
66      esac;
67      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
68    '
69    export as_echo_n_body
70    as_echo_n='sh -c $as_echo_n_body as_echo'
71  fi
72  export as_echo_body
73  as_echo='sh -c $as_echo_body as_echo'
74fi
75
76# The user is always right.
77if test "${PATH_SEPARATOR+set}" != set; then
78  PATH_SEPARATOR=:
79  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
80    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
81      PATH_SEPARATOR=';'
82  }
83fi
84
85
86# IFS
87# We need space, tab and new line, in precisely that order.  Quoting is
88# there to prevent editors from complaining about space-tab.
89# (If _AS_PATH_WALK were called with IFS unset, it would disable word
90# splitting by setting IFS to empty value.)
91IFS=" ""	$as_nl"
92
93# Find who we are.  Look in the path if we contain no directory separator.
94as_myself=
95case $0 in #((
96  *[\\/]* ) as_myself=$0 ;;
97  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
98for as_dir in $PATH
99do
100  IFS=$as_save_IFS
101  test -z "$as_dir" && as_dir=.
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  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
115  exit 1
116fi
117
118# Unset variables that we do not need and which cause bugs (e.g. in
119# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
120# suppresses any "Segmentation fault" message there.  '((' could
121# trigger a bug in pdksh 5.2.14.
122for as_var in BASH_ENV ENV MAIL MAILPATH
123do eval test x\${$as_var+set} = xset \
124  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
125done
126PS1='$ '
127PS2='> '
128PS4='+ '
129
130# NLS nuisances.
131LC_ALL=C
132export LC_ALL
133LANGUAGE=C
134export LANGUAGE
135
136# CDPATH.
137(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
138
139# Use a proper internal environment variable to ensure we don't fall
140  # into an infinite loop, continuously re-executing ourselves.
141  if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
142    _as_can_reexec=no; export _as_can_reexec;
143    # We cannot yet assume a decent shell, so we have to provide a
144# neutralization value for shells without unset; and this also
145# works around shells that cannot unset nonexistent variables.
146# Preserve -v and -x to the replacement shell.
147BASH_ENV=/dev/null
148ENV=/dev/null
149(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
150case $- in # ((((
151  *v*x* | *x*v* ) as_opts=-vx ;;
152  *v* ) as_opts=-v ;;
153  *x* ) as_opts=-x ;;
154  * ) as_opts= ;;
155esac
156exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
157# Admittedly, this is quite paranoid, since all the known shells bail
158# out after a failed `exec'.
159$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
160as_fn_exit 255
161  fi
162  # We don't want this to propagate to other subprocesses.
163          { _as_can_reexec=; unset _as_can_reexec;}
164if test "x$CONFIG_SHELL" = x; then
165  as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
166  emulate sh
167  NULLCMD=:
168  # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
169  # is contrary to our usage.  Disable this feature.
170  alias -g '\${1+\"\$@\"}'='\"\$@\"'
171  setopt NO_GLOB_SUBST
172else
173  case \`(set -o) 2>/dev/null\` in #(
174  *posix*) :
175    set -o posix ;; #(
176  *) :
177     ;;
178esac
179fi
180"
181  as_required="as_fn_return () { (exit \$1); }
182as_fn_success () { as_fn_return 0; }
183as_fn_failure () { as_fn_return 1; }
184as_fn_ret_success () { return 0; }
185as_fn_ret_failure () { return 1; }
186
187exitcode=0
188as_fn_success || { exitcode=1; echo as_fn_success failed.; }
189as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
190as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
191as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
192if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
193
194else
195  exitcode=1; echo positional parameters were not saved.
196fi
197test x\$exitcode = x0 || exit 1
198test -x / || exit 1"
199  as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
200  as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
201  eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
202  test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
203
204  test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
205    ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
206    ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
207    ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
208    PATH=/empty FPATH=/empty; export PATH FPATH
209    test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
210      || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1
211test \$(( 1 + 1 )) = 2 || exit 1"
212  if (eval "$as_required") 2>/dev/null; then :
213  as_have_required=yes
214else
215  as_have_required=no
216fi
217  if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
218
219else
220  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
221as_found=false
222for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
223do
224  IFS=$as_save_IFS
225  test -z "$as_dir" && as_dir=.
226  as_found=:
227  case $as_dir in #(
228	 /*)
229	   for as_base in sh bash ksh sh5; do
230	     # Try only shells that exist, to save several forks.
231	     as_shell=$as_dir/$as_base
232	     if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
233		    { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
234  CONFIG_SHELL=$as_shell as_have_required=yes
235		   if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
236  break 2
237fi
238fi
239	   done;;
240       esac
241  as_found=false
242done
243$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
244	      { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
245  CONFIG_SHELL=$SHELL as_have_required=yes
246fi; }
247IFS=$as_save_IFS
248
249
250      if test "x$CONFIG_SHELL" != x; then :
251  export CONFIG_SHELL
252             # We cannot yet assume a decent shell, so we have to provide a
253# neutralization value for shells without unset; and this also
254# works around shells that cannot unset nonexistent variables.
255# Preserve -v and -x to the replacement shell.
256BASH_ENV=/dev/null
257ENV=/dev/null
258(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
259case $- in # ((((
260  *v*x* | *x*v* ) as_opts=-vx ;;
261  *v* ) as_opts=-v ;;
262  *x* ) as_opts=-x ;;
263  * ) as_opts= ;;
264esac
265exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
266# Admittedly, this is quite paranoid, since all the known shells bail
267# out after a failed `exec'.
268$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
269exit 255
270fi
271
272    if test x$as_have_required = xno; then :
273  $as_echo "$0: This script requires a shell more modern than all"
274  $as_echo "$0: the shells that I found on your system."
275  if test x${ZSH_VERSION+set} = xset ; then
276    $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
277    $as_echo "$0: be upgraded to zsh 4.3.4 or later."
278  else
279    $as_echo "$0: Please tell bug-autoconf@gnu.org and
280$0: atf-discuss@googlegroups.com about your system,
281$0: including any error possibly output before this
282$0: message. Then install a modern shell, or manually run
283$0: the script under such a shell if you do have one."
284  fi
285  exit 1
286fi
287fi
288fi
289SHELL=${CONFIG_SHELL-/bin/sh}
290export SHELL
291# Unset more variables known to interfere with behavior of common tools.
292CLICOLOR_FORCE= GREP_OPTIONS=
293unset CLICOLOR_FORCE GREP_OPTIONS
294
295## --------------------- ##
296## M4sh Shell Functions. ##
297## --------------------- ##
298# as_fn_unset VAR
299# ---------------
300# Portably unset VAR.
301as_fn_unset ()
302{
303  { eval $1=; unset $1;}
304}
305as_unset=as_fn_unset
306
307# as_fn_set_status STATUS
308# -----------------------
309# Set $? to STATUS, without forking.
310as_fn_set_status ()
311{
312  return $1
313} # as_fn_set_status
314
315# as_fn_exit STATUS
316# -----------------
317# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
318as_fn_exit ()
319{
320  set +e
321  as_fn_set_status $1
322  exit $1
323} # as_fn_exit
324
325# as_fn_mkdir_p
326# -------------
327# Create "$as_dir" as a directory, including parents if necessary.
328as_fn_mkdir_p ()
329{
330
331  case $as_dir in #(
332  -*) as_dir=./$as_dir;;
333  esac
334  test -d "$as_dir" || eval $as_mkdir_p || {
335    as_dirs=
336    while :; do
337      case $as_dir in #(
338      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
339      *) as_qdir=$as_dir;;
340      esac
341      as_dirs="'$as_qdir' $as_dirs"
342      as_dir=`$as_dirname -- "$as_dir" ||
343$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
344	 X"$as_dir" : 'X\(//\)[^/]' \| \
345	 X"$as_dir" : 'X\(//\)$' \| \
346	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
347$as_echo X"$as_dir" |
348    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
349	    s//\1/
350	    q
351	  }
352	  /^X\(\/\/\)[^/].*/{
353	    s//\1/
354	    q
355	  }
356	  /^X\(\/\/\)$/{
357	    s//\1/
358	    q
359	  }
360	  /^X\(\/\).*/{
361	    s//\1/
362	    q
363	  }
364	  s/.*/./; q'`
365      test -d "$as_dir" && break
366    done
367    test -z "$as_dirs" || eval "mkdir $as_dirs"
368  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
369
370
371} # as_fn_mkdir_p
372
373# as_fn_executable_p FILE
374# -----------------------
375# Test if FILE is an executable regular file.
376as_fn_executable_p ()
377{
378  test -f "$1" && test -x "$1"
379} # as_fn_executable_p
380# as_fn_append VAR VALUE
381# ----------------------
382# Append the text in VALUE to the end of the definition contained in VAR. Take
383# advantage of any shell optimizations that allow amortized linear growth over
384# repeated appends, instead of the typical quadratic growth present in naive
385# implementations.
386if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
387  eval 'as_fn_append ()
388  {
389    eval $1+=\$2
390  }'
391else
392  as_fn_append ()
393  {
394    eval $1=\$$1\$2
395  }
396fi # as_fn_append
397
398# as_fn_arith ARG...
399# ------------------
400# Perform arithmetic evaluation on the ARGs, and store the result in the
401# global $as_val. Take advantage of shells that can avoid forks. The arguments
402# must be portable across $(()) and expr.
403if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
404  eval 'as_fn_arith ()
405  {
406    as_val=$(( $* ))
407  }'
408else
409  as_fn_arith ()
410  {
411    as_val=`expr "$@" || test $? -eq 1`
412  }
413fi # as_fn_arith
414
415
416# as_fn_error STATUS ERROR [LINENO LOG_FD]
417# ----------------------------------------
418# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
419# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
420# script with STATUS, using 1 if that was 0.
421as_fn_error ()
422{
423  as_status=$1; test $as_status -eq 0 && as_status=1
424  if test "$4"; then
425    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
426    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
427  fi
428  $as_echo "$as_me: error: $2" >&2
429  as_fn_exit $as_status
430} # as_fn_error
431
432if expr a : '\(a\)' >/dev/null 2>&1 &&
433   test "X`expr 00001 : '.*\(...\)'`" = X001; then
434  as_expr=expr
435else
436  as_expr=false
437fi
438
439if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
440  as_basename=basename
441else
442  as_basename=false
443fi
444
445if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
446  as_dirname=dirname
447else
448  as_dirname=false
449fi
450
451as_me=`$as_basename -- "$0" ||
452$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
453	 X"$0" : 'X\(//\)$' \| \
454	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
455$as_echo X/"$0" |
456    sed '/^.*\/\([^/][^/]*\)\/*$/{
457	    s//\1/
458	    q
459	  }
460	  /^X\/\(\/\/\)$/{
461	    s//\1/
462	    q
463	  }
464	  /^X\/\(\/\).*/{
465	    s//\1/
466	    q
467	  }
468	  s/.*/./; q'`
469
470# Avoid depending upon Character Ranges.
471as_cr_letters='abcdefghijklmnopqrstuvwxyz'
472as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
473as_cr_Letters=$as_cr_letters$as_cr_LETTERS
474as_cr_digits='0123456789'
475as_cr_alnum=$as_cr_Letters$as_cr_digits
476
477
478  as_lineno_1=$LINENO as_lineno_1a=$LINENO
479  as_lineno_2=$LINENO as_lineno_2a=$LINENO
480  eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
481  test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
482  # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
483  sed -n '
484    p
485    /[$]LINENO/=
486  ' <$as_myself |
487    sed '
488      s/[$]LINENO.*/&-/
489      t lineno
490      b
491      :lineno
492      N
493      :loop
494      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
495      t loop
496      s/-\n.*//
497    ' >$as_me.lineno &&
498  chmod +x "$as_me.lineno" ||
499    { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
500
501  # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
502  # already done that, so ensure we don't try to do so again and fall
503  # in an infinite loop.  This has already happened in practice.
504  _as_can_reexec=no; export _as_can_reexec
505  # Don't try to exec as it changes $[0], causing all sort of problems
506  # (the dirname of $[0] is not the place where we might find the
507  # original and so on.  Autoconf is especially sensitive to this).
508  . "./$as_me.lineno"
509  # Exit status is that of the last command.
510  exit
511}
512
513ECHO_C= ECHO_N= ECHO_T=
514case `echo -n x` in #(((((
515-n*)
516  case `echo 'xy\c'` in
517  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
518  xy)  ECHO_C='\c';;
519  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
520       ECHO_T='	';;
521  esac;;
522*)
523  ECHO_N='-n';;
524esac
525
526rm -f conf$$ conf$$.exe conf$$.file
527if test -d conf$$.dir; then
528  rm -f conf$$.dir/conf$$.file
529else
530  rm -f conf$$.dir
531  mkdir conf$$.dir 2>/dev/null
532fi
533if (echo >conf$$.file) 2>/dev/null; then
534  if ln -s conf$$.file conf$$ 2>/dev/null; then
535    as_ln_s='ln -s'
536    # ... but there are two gotchas:
537    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
538    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
539    # In both cases, we have to default to `cp -pR'.
540    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
541      as_ln_s='cp -pR'
542  elif ln conf$$.file conf$$ 2>/dev/null; then
543    as_ln_s=ln
544  else
545    as_ln_s='cp -pR'
546  fi
547else
548  as_ln_s='cp -pR'
549fi
550rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
551rmdir conf$$.dir 2>/dev/null
552
553if mkdir -p . 2>/dev/null; then
554  as_mkdir_p='mkdir -p "$as_dir"'
555else
556  test -d ./-p && rmdir ./-p
557  as_mkdir_p=false
558fi
559
560as_test_x='test -x'
561as_executable_p=as_fn_executable_p
562
563# Sed expression to map a string onto a valid CPP name.
564as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
565
566# Sed expression to map a string onto a valid variable name.
567as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
568
569SHELL=${CONFIG_SHELL-/bin/sh}
570
571
572test -n "$DJDIR" || exec 7<&0 </dev/null
573exec 6>&1
574
575# Name of the host.
576# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
577# so uname gets run too.
578ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
579
580#
581# Initializations.
582#
583ac_default_prefix=/usr/local
584ac_clean_files=
585ac_config_libobj_dir=.
586LIBOBJS=
587cross_compiling=no
588subdirs=
589MFLAGS=
590MAKEFLAGS=
591
592# Identity of this package.
593PACKAGE_NAME='Automated Testing Framework'
594PACKAGE_TARNAME='atf'
595PACKAGE_VERSION='0.21'
596PACKAGE_STRING='Automated Testing Framework 0.21'
597PACKAGE_BUGREPORT='atf-discuss@googlegroups.com'
598PACKAGE_URL='https://github.com/jmmv/atf/'
599
600ac_unique_file="atf-c.h"
601# Factoring default headers for most tests.
602ac_includes_default="\
603#include <stdio.h>
604#ifdef HAVE_SYS_TYPES_H
605# include <sys/types.h>
606#endif
607#ifdef HAVE_SYS_STAT_H
608# include <sys/stat.h>
609#endif
610#ifdef STDC_HEADERS
611# include <stdlib.h>
612# include <stddef.h>
613#else
614# ifdef HAVE_STDLIB_H
615#  include <stdlib.h>
616# endif
617#endif
618#ifdef HAVE_STRING_H
619# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
620#  include <memory.h>
621# endif
622# include <string.h>
623#endif
624#ifdef HAVE_STRINGS_H
625# include <strings.h>
626#endif
627#ifdef HAVE_INTTYPES_H
628# include <inttypes.h>
629#endif
630#ifdef HAVE_STDINT_H
631# include <stdint.h>
632#endif
633#ifdef HAVE_UNISTD_H
634# include <unistd.h>
635#endif"
636
637ac_subst_vars='am__EXEEXT_FALSE
638am__EXEEXT_TRUE
639LTLIBOBJS
640LIBOBJS
641GIT
642HAVE_KYUA_FALSE
643HAVE_KYUA_TRUE
644KYUA
645ATF_SHELL
646atf_pkgconfigdir
647atf_aclocaldir
648target_srcdir
649ATF_BUILD_CXXFLAGS
650ATF_BUILD_CXX
651ATF_BUILD_CPPFLAGS
652ATF_BUILD_CPP
653ATF_BUILD_CFLAGS
654ATF_BUILD_CC
655ATTRIBUTE_UNUSED
656ATTRIBUTE_NORETURN
657ATTRIBUTE_FORMAT_PRINTF
658CXXCPP
659am__fastdepCXX_FALSE
660am__fastdepCXX_TRUE
661CXXDEPMODE
662ac_ct_CXX
663CXXFLAGS
664CXX
665CPP
666OTOOL64
667OTOOL
668LIPO
669NMEDIT
670DSYMUTIL
671MANIFEST_TOOL
672RANLIB
673DLLTOOL
674OBJDUMP
675LN_S
676NM
677ac_ct_DUMPBIN
678DUMPBIN
679LD
680FGREP
681EGREP
682GREP
683SED
684LIBTOOL
685am__fastdepCC_FALSE
686am__fastdepCC_TRUE
687CCDEPMODE
688am__nodep
689AMDEPBACKSLASH
690AMDEP_FALSE
691AMDEP_TRUE
692am__quote
693am__include
694DEPDIR
695OBJEXT
696EXEEXT
697ac_ct_CC
698CPPFLAGS
699LDFLAGS
700CFLAGS
701CC
702ac_ct_AR
703AR
704AM_BACKSLASH
705AM_DEFAULT_VERBOSITY
706AM_DEFAULT_V
707AM_V
708am__untar
709am__tar
710AMTAR
711am__leading_dot
712SET_MAKE
713AWK
714mkdir_p
715MKDIR_P
716INSTALL_STRIP_PROGRAM
717STRIP
718install_sh
719MAKEINFO
720AUTOHEADER
721AUTOMAKE
722AUTOCONF
723ACLOCAL
724VERSION
725PACKAGE
726CYGPATH_W
727am__isrc
728INSTALL_DATA
729INSTALL_SCRIPT
730INSTALL_PROGRAM
731target_os
732target_vendor
733target_cpu
734target
735host_os
736host_vendor
737host_cpu
738host
739build_os
740build_vendor
741build_cpu
742build
743target_alias
744host_alias
745build_alias
746LIBS
747ECHO_T
748ECHO_N
749ECHO_C
750DEFS
751mandir
752localedir
753libdir
754psdir
755pdfdir
756dvidir
757htmldir
758infodir
759docdir
760oldincludedir
761includedir
762localstatedir
763sharedstatedir
764sysconfdir
765datadir
766datarootdir
767libexecdir
768sbindir
769bindir
770program_transform_name
771prefix
772exec_prefix
773PACKAGE_URL
774PACKAGE_BUGREPORT
775PACKAGE_STRING
776PACKAGE_VERSION
777PACKAGE_TARNAME
778PACKAGE_NAME
779PATH_SEPARATOR
780SHELL'
781ac_subst_files=''
782ac_user_opts='
783enable_option_checking
784enable_silent_rules
785enable_dependency_tracking
786enable_shared
787enable_static
788with_pic
789enable_fast_install
790with_gnu_ld
791with_sysroot
792enable_libtool_lock
793enable_developer
794'
795      ac_precious_vars='build_alias
796host_alias
797target_alias
798CC
799CFLAGS
800LDFLAGS
801LIBS
802CPPFLAGS
803CPP
804CXX
805CXXFLAGS
806CCC
807CXXCPP
808ATF_BUILD_CC
809ATF_BUILD_CFLAGS
810ATF_BUILD_CPP
811ATF_BUILD_CPPFLAGS
812ATF_BUILD_CXX
813ATF_BUILD_CXXFLAGS
814ATF_SHELL'
815
816
817# Initialize some variables set by options.
818ac_init_help=
819ac_init_version=false
820ac_unrecognized_opts=
821ac_unrecognized_sep=
822# The variables have the same names as the options, with
823# dashes changed to underlines.
824cache_file=/dev/null
825exec_prefix=NONE
826no_create=
827no_recursion=
828prefix=NONE
829program_prefix=NONE
830program_suffix=NONE
831program_transform_name=s,x,x,
832silent=
833site=
834srcdir=
835verbose=
836x_includes=NONE
837x_libraries=NONE
838
839# Installation directory options.
840# These are left unexpanded so users can "make install exec_prefix=/foo"
841# and all the variables that are supposed to be based on exec_prefix
842# by default will actually change.
843# Use braces instead of parens because sh, perl, etc. also accept them.
844# (The list follows the same order as the GNU Coding Standards.)
845bindir='${exec_prefix}/bin'
846sbindir='${exec_prefix}/sbin'
847libexecdir='${exec_prefix}/libexec'
848datarootdir='${prefix}/share'
849datadir='${datarootdir}'
850sysconfdir='${prefix}/etc'
851sharedstatedir='${prefix}/com'
852localstatedir='${prefix}/var'
853includedir='${prefix}/include'
854oldincludedir='/usr/include'
855docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
856infodir='${datarootdir}/info'
857htmldir='${docdir}'
858dvidir='${docdir}'
859pdfdir='${docdir}'
860psdir='${docdir}'
861libdir='${exec_prefix}/lib'
862localedir='${datarootdir}/locale'
863mandir='${datarootdir}/man'
864
865ac_prev=
866ac_dashdash=
867for ac_option
868do
869  # If the previous option needs an argument, assign it.
870  if test -n "$ac_prev"; then
871    eval $ac_prev=\$ac_option
872    ac_prev=
873    continue
874  fi
875
876  case $ac_option in
877  *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
878  *=)   ac_optarg= ;;
879  *)    ac_optarg=yes ;;
880  esac
881
882  # Accept the important Cygnus configure options, so we can diagnose typos.
883
884  case $ac_dashdash$ac_option in
885  --)
886    ac_dashdash=yes ;;
887
888  -bindir | --bindir | --bindi | --bind | --bin | --bi)
889    ac_prev=bindir ;;
890  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
891    bindir=$ac_optarg ;;
892
893  -build | --build | --buil | --bui | --bu)
894    ac_prev=build_alias ;;
895  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
896    build_alias=$ac_optarg ;;
897
898  -cache-file | --cache-file | --cache-fil | --cache-fi \
899  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
900    ac_prev=cache_file ;;
901  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
902  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
903    cache_file=$ac_optarg ;;
904
905  --config-cache | -C)
906    cache_file=config.cache ;;
907
908  -datadir | --datadir | --datadi | --datad)
909    ac_prev=datadir ;;
910  -datadir=* | --datadir=* | --datadi=* | --datad=*)
911    datadir=$ac_optarg ;;
912
913  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
914  | --dataroo | --dataro | --datar)
915    ac_prev=datarootdir ;;
916  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
917  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
918    datarootdir=$ac_optarg ;;
919
920  -disable-* | --disable-*)
921    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
922    # Reject names that are not valid shell variable names.
923    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
924      as_fn_error $? "invalid feature name: $ac_useropt"
925    ac_useropt_orig=$ac_useropt
926    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
927    case $ac_user_opts in
928      *"
929"enable_$ac_useropt"
930"*) ;;
931      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
932	 ac_unrecognized_sep=', ';;
933    esac
934    eval enable_$ac_useropt=no ;;
935
936  -docdir | --docdir | --docdi | --doc | --do)
937    ac_prev=docdir ;;
938  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
939    docdir=$ac_optarg ;;
940
941  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
942    ac_prev=dvidir ;;
943  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
944    dvidir=$ac_optarg ;;
945
946  -enable-* | --enable-*)
947    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
948    # Reject names that are not valid shell variable names.
949    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
950      as_fn_error $? "invalid feature name: $ac_useropt"
951    ac_useropt_orig=$ac_useropt
952    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
953    case $ac_user_opts in
954      *"
955"enable_$ac_useropt"
956"*) ;;
957      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
958	 ac_unrecognized_sep=', ';;
959    esac
960    eval enable_$ac_useropt=\$ac_optarg ;;
961
962  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
963  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
964  | --exec | --exe | --ex)
965    ac_prev=exec_prefix ;;
966  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
967  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
968  | --exec=* | --exe=* | --ex=*)
969    exec_prefix=$ac_optarg ;;
970
971  -gas | --gas | --ga | --g)
972    # Obsolete; use --with-gas.
973    with_gas=yes ;;
974
975  -help | --help | --hel | --he | -h)
976    ac_init_help=long ;;
977  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
978    ac_init_help=recursive ;;
979  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
980    ac_init_help=short ;;
981
982  -host | --host | --hos | --ho)
983    ac_prev=host_alias ;;
984  -host=* | --host=* | --hos=* | --ho=*)
985    host_alias=$ac_optarg ;;
986
987  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
988    ac_prev=htmldir ;;
989  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
990  | --ht=*)
991    htmldir=$ac_optarg ;;
992
993  -includedir | --includedir | --includedi | --included | --include \
994  | --includ | --inclu | --incl | --inc)
995    ac_prev=includedir ;;
996  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
997  | --includ=* | --inclu=* | --incl=* | --inc=*)
998    includedir=$ac_optarg ;;
999
1000  -infodir | --infodir | --infodi | --infod | --info | --inf)
1001    ac_prev=infodir ;;
1002  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1003    infodir=$ac_optarg ;;
1004
1005  -libdir | --libdir | --libdi | --libd)
1006    ac_prev=libdir ;;
1007  -libdir=* | --libdir=* | --libdi=* | --libd=*)
1008    libdir=$ac_optarg ;;
1009
1010  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1011  | --libexe | --libex | --libe)
1012    ac_prev=libexecdir ;;
1013  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1014  | --libexe=* | --libex=* | --libe=*)
1015    libexecdir=$ac_optarg ;;
1016
1017  -localedir | --localedir | --localedi | --localed | --locale)
1018    ac_prev=localedir ;;
1019  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1020    localedir=$ac_optarg ;;
1021
1022  -localstatedir | --localstatedir | --localstatedi | --localstated \
1023  | --localstate | --localstat | --localsta | --localst | --locals)
1024    ac_prev=localstatedir ;;
1025  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1026  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1027    localstatedir=$ac_optarg ;;
1028
1029  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1030    ac_prev=mandir ;;
1031  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1032    mandir=$ac_optarg ;;
1033
1034  -nfp | --nfp | --nf)
1035    # Obsolete; use --without-fp.
1036    with_fp=no ;;
1037
1038  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1039  | --no-cr | --no-c | -n)
1040    no_create=yes ;;
1041
1042  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1043  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1044    no_recursion=yes ;;
1045
1046  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1047  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1048  | --oldin | --oldi | --old | --ol | --o)
1049    ac_prev=oldincludedir ;;
1050  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1051  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1052  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1053    oldincludedir=$ac_optarg ;;
1054
1055  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1056    ac_prev=prefix ;;
1057  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1058    prefix=$ac_optarg ;;
1059
1060  -program-prefix | --program-prefix | --program-prefi | --program-pref \
1061  | --program-pre | --program-pr | --program-p)
1062    ac_prev=program_prefix ;;
1063  -program-prefix=* | --program-prefix=* | --program-prefi=* \
1064  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1065    program_prefix=$ac_optarg ;;
1066
1067  -program-suffix | --program-suffix | --program-suffi | --program-suff \
1068  | --program-suf | --program-su | --program-s)
1069    ac_prev=program_suffix ;;
1070  -program-suffix=* | --program-suffix=* | --program-suffi=* \
1071  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1072    program_suffix=$ac_optarg ;;
1073
1074  -program-transform-name | --program-transform-name \
1075  | --program-transform-nam | --program-transform-na \
1076  | --program-transform-n | --program-transform- \
1077  | --program-transform | --program-transfor \
1078  | --program-transfo | --program-transf \
1079  | --program-trans | --program-tran \
1080  | --progr-tra | --program-tr | --program-t)
1081    ac_prev=program_transform_name ;;
1082  -program-transform-name=* | --program-transform-name=* \
1083  | --program-transform-nam=* | --program-transform-na=* \
1084  | --program-transform-n=* | --program-transform-=* \
1085  | --program-transform=* | --program-transfor=* \
1086  | --program-transfo=* | --program-transf=* \
1087  | --program-trans=* | --program-tran=* \
1088  | --progr-tra=* | --program-tr=* | --program-t=*)
1089    program_transform_name=$ac_optarg ;;
1090
1091  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1092    ac_prev=pdfdir ;;
1093  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1094    pdfdir=$ac_optarg ;;
1095
1096  -psdir | --psdir | --psdi | --psd | --ps)
1097    ac_prev=psdir ;;
1098  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1099    psdir=$ac_optarg ;;
1100
1101  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1102  | -silent | --silent | --silen | --sile | --sil)
1103    silent=yes ;;
1104
1105  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1106    ac_prev=sbindir ;;
1107  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1108  | --sbi=* | --sb=*)
1109    sbindir=$ac_optarg ;;
1110
1111  -sharedstatedir | --sharedstatedir | --sharedstatedi \
1112  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1113  | --sharedst | --shareds | --shared | --share | --shar \
1114  | --sha | --sh)
1115    ac_prev=sharedstatedir ;;
1116  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1117  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1118  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1119  | --sha=* | --sh=*)
1120    sharedstatedir=$ac_optarg ;;
1121
1122  -site | --site | --sit)
1123    ac_prev=site ;;
1124  -site=* | --site=* | --sit=*)
1125    site=$ac_optarg ;;
1126
1127  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1128    ac_prev=srcdir ;;
1129  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1130    srcdir=$ac_optarg ;;
1131
1132  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1133  | --syscon | --sysco | --sysc | --sys | --sy)
1134    ac_prev=sysconfdir ;;
1135  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1136  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1137    sysconfdir=$ac_optarg ;;
1138
1139  -target | --target | --targe | --targ | --tar | --ta | --t)
1140    ac_prev=target_alias ;;
1141  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1142    target_alias=$ac_optarg ;;
1143
1144  -v | -verbose | --verbose | --verbos | --verbo | --verb)
1145    verbose=yes ;;
1146
1147  -version | --version | --versio | --versi | --vers | -V)
1148    ac_init_version=: ;;
1149
1150  -with-* | --with-*)
1151    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1152    # Reject names that are not valid shell variable names.
1153    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1154      as_fn_error $? "invalid package name: $ac_useropt"
1155    ac_useropt_orig=$ac_useropt
1156    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1157    case $ac_user_opts in
1158      *"
1159"with_$ac_useropt"
1160"*) ;;
1161      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1162	 ac_unrecognized_sep=', ';;
1163    esac
1164    eval with_$ac_useropt=\$ac_optarg ;;
1165
1166  -without-* | --without-*)
1167    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1168    # Reject names that are not valid shell variable names.
1169    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1170      as_fn_error $? "invalid package name: $ac_useropt"
1171    ac_useropt_orig=$ac_useropt
1172    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1173    case $ac_user_opts in
1174      *"
1175"with_$ac_useropt"
1176"*) ;;
1177      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1178	 ac_unrecognized_sep=', ';;
1179    esac
1180    eval with_$ac_useropt=no ;;
1181
1182  --x)
1183    # Obsolete; use --with-x.
1184    with_x=yes ;;
1185
1186  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1187  | --x-incl | --x-inc | --x-in | --x-i)
1188    ac_prev=x_includes ;;
1189  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1190  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1191    x_includes=$ac_optarg ;;
1192
1193  -x-libraries | --x-libraries | --x-librarie | --x-librari \
1194  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1195    ac_prev=x_libraries ;;
1196  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1197  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1198    x_libraries=$ac_optarg ;;
1199
1200  -*) as_fn_error $? "unrecognized option: \`$ac_option'
1201Try \`$0 --help' for more information"
1202    ;;
1203
1204  *=*)
1205    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1206    # Reject names that are not valid shell variable names.
1207    case $ac_envvar in #(
1208      '' | [0-9]* | *[!_$as_cr_alnum]* )
1209      as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1210    esac
1211    eval $ac_envvar=\$ac_optarg
1212    export $ac_envvar ;;
1213
1214  *)
1215    # FIXME: should be removed in autoconf 3.0.
1216    $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1217    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1218      $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1219    : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1220    ;;
1221
1222  esac
1223done
1224
1225if test -n "$ac_prev"; then
1226  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1227  as_fn_error $? "missing argument to $ac_option"
1228fi
1229
1230if test -n "$ac_unrecognized_opts"; then
1231  case $enable_option_checking in
1232    no) ;;
1233    fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1234    *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1235  esac
1236fi
1237
1238# Check all directory arguments for consistency.
1239for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
1240		datadir sysconfdir sharedstatedir localstatedir includedir \
1241		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1242		libdir localedir mandir
1243do
1244  eval ac_val=\$$ac_var
1245  # Remove trailing slashes.
1246  case $ac_val in
1247    */ )
1248      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1249      eval $ac_var=\$ac_val;;
1250  esac
1251  # Be sure to have absolute directory names.
1252  case $ac_val in
1253    [\\/$]* | ?:[\\/]* )  continue;;
1254    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1255  esac
1256  as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1257done
1258
1259# There might be people who depend on the old broken behavior: `$host'
1260# used to hold the argument of --host etc.
1261# FIXME: To remove some day.
1262build=$build_alias
1263host=$host_alias
1264target=$target_alias
1265
1266# FIXME: To remove some day.
1267if test "x$host_alias" != x; then
1268  if test "x$build_alias" = x; then
1269    cross_compiling=maybe
1270  elif test "x$build_alias" != "x$host_alias"; then
1271    cross_compiling=yes
1272  fi
1273fi
1274
1275ac_tool_prefix=
1276test -n "$host_alias" && ac_tool_prefix=$host_alias-
1277
1278test "$silent" = yes && exec 6>/dev/null
1279
1280
1281ac_pwd=`pwd` && test -n "$ac_pwd" &&
1282ac_ls_di=`ls -di .` &&
1283ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1284  as_fn_error $? "working directory cannot be determined"
1285test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1286  as_fn_error $? "pwd does not report name of working directory"
1287
1288
1289# Find the source files, if location was not specified.
1290if test -z "$srcdir"; then
1291  ac_srcdir_defaulted=yes
1292  # Try the directory containing this script, then the parent directory.
1293  ac_confdir=`$as_dirname -- "$as_myself" ||
1294$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1295	 X"$as_myself" : 'X\(//\)[^/]' \| \
1296	 X"$as_myself" : 'X\(//\)$' \| \
1297	 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1298$as_echo X"$as_myself" |
1299    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1300	    s//\1/
1301	    q
1302	  }
1303	  /^X\(\/\/\)[^/].*/{
1304	    s//\1/
1305	    q
1306	  }
1307	  /^X\(\/\/\)$/{
1308	    s//\1/
1309	    q
1310	  }
1311	  /^X\(\/\).*/{
1312	    s//\1/
1313	    q
1314	  }
1315	  s/.*/./; q'`
1316  srcdir=$ac_confdir
1317  if test ! -r "$srcdir/$ac_unique_file"; then
1318    srcdir=..
1319  fi
1320else
1321  ac_srcdir_defaulted=no
1322fi
1323if test ! -r "$srcdir/$ac_unique_file"; then
1324  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1325  as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1326fi
1327ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1328ac_abs_confdir=`(
1329	cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1330	pwd)`
1331# When building in place, set srcdir=.
1332if test "$ac_abs_confdir" = "$ac_pwd"; then
1333  srcdir=.
1334fi
1335# Remove unnecessary trailing slashes from srcdir.
1336# Double slashes in file names in object file debugging info
1337# mess up M-x gdb in Emacs.
1338case $srcdir in
1339*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1340esac
1341for ac_var in $ac_precious_vars; do
1342  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1343  eval ac_env_${ac_var}_value=\$${ac_var}
1344  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1345  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1346done
1347
1348#
1349# Report the --help message.
1350#
1351if test "$ac_init_help" = "long"; then
1352  # Omit some internal or obsolete options to make the list less imposing.
1353  # This message is too long to be a string in the A/UX 3.1 sh.
1354  cat <<_ACEOF
1355\`configure' configures Automated Testing Framework 0.21 to adapt to many kinds of systems.
1356
1357Usage: $0 [OPTION]... [VAR=VALUE]...
1358
1359To assign environment variables (e.g., CC, CFLAGS...), specify them as
1360VAR=VALUE.  See below for descriptions of some of the useful variables.
1361
1362Defaults for the options are specified in brackets.
1363
1364Configuration:
1365  -h, --help              display this help and exit
1366      --help=short        display options specific to this package
1367      --help=recursive    display the short help of all the included packages
1368  -V, --version           display version information and exit
1369  -q, --quiet, --silent   do not print \`checking ...' messages
1370      --cache-file=FILE   cache test results in FILE [disabled]
1371  -C, --config-cache      alias for \`--cache-file=config.cache'
1372  -n, --no-create         do not create output files
1373      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1374
1375Installation directories:
1376  --prefix=PREFIX         install architecture-independent files in PREFIX
1377                          [$ac_default_prefix]
1378  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1379                          [PREFIX]
1380
1381By default, \`make install' will install all the files in
1382\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1383an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1384for instance \`--prefix=\$HOME'.
1385
1386For better control, use the options below.
1387
1388Fine tuning of the installation directories:
1389  --bindir=DIR            user executables [EPREFIX/bin]
1390  --sbindir=DIR           system admin executables [EPREFIX/sbin]
1391  --libexecdir=DIR        program executables [EPREFIX/libexec]
1392  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1393  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1394  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1395  --libdir=DIR            object code libraries [EPREFIX/lib]
1396  --includedir=DIR        C header files [PREFIX/include]
1397  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1398  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1399  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1400  --infodir=DIR           info documentation [DATAROOTDIR/info]
1401  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1402  --mandir=DIR            man documentation [DATAROOTDIR/man]
1403  --docdir=DIR            documentation root [DATAROOTDIR/doc/atf]
1404  --htmldir=DIR           html documentation [DOCDIR]
1405  --dvidir=DIR            dvi documentation [DOCDIR]
1406  --pdfdir=DIR            pdf documentation [DOCDIR]
1407  --psdir=DIR             ps documentation [DOCDIR]
1408_ACEOF
1409
1410  cat <<\_ACEOF
1411
1412Program names:
1413  --program-prefix=PREFIX            prepend PREFIX to installed program names
1414  --program-suffix=SUFFIX            append SUFFIX to installed program names
1415  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1416
1417System types:
1418  --build=BUILD     configure for building on BUILD [guessed]
1419  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1420  --target=TARGET   configure for building compilers for TARGET [HOST]
1421_ACEOF
1422fi
1423
1424if test -n "$ac_init_help"; then
1425  case $ac_init_help in
1426     short | recursive ) echo "Configuration of Automated Testing Framework 0.21:";;
1427   esac
1428  cat <<\_ACEOF
1429
1430Optional Features:
1431  --disable-option-checking  ignore unrecognized --enable/--with options
1432  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1433  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1434  --enable-silent-rules   less verbose build output (undo: "make V=1")
1435  --disable-silent-rules  verbose build output (undo: "make V=0")
1436  --enable-dependency-tracking
1437                          do not reject slow dependency extractors
1438  --disable-dependency-tracking
1439                          speeds up one-time build
1440  --enable-shared[=PKGS]  build shared libraries [default=yes]
1441  --enable-static[=PKGS]  build static libraries [default=yes]
1442  --enable-fast-install[=PKGS]
1443                          optimize for fast installation [default=yes]
1444  --disable-libtool-lock  avoid locking (might break parallel builds)
1445  --enable-developer      enable developer features
1446
1447Optional Packages:
1448  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1449  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1450  --with-pic[=PKGS]       try to use only PIC/non-PIC objects [default=use
1451                          both]
1452  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1453  --with-sysroot[=DIR]    Search for dependent libraries within DIR (or the
1454                          compiler's sysroot if not specified).
1455
1456Some influential environment variables:
1457  CC          C compiler command
1458  CFLAGS      C compiler flags
1459  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1460              nonstandard directory <lib dir>
1461  LIBS        libraries to pass to the linker, e.g. -l<library>
1462  CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1463              you have headers in a nonstandard directory <include dir>
1464  CPP         C preprocessor
1465  CXX         C++ compiler command
1466  CXXFLAGS    C++ compiler flags
1467  CXXCPP      C++ preprocessor
1468  ATF_BUILD_CC
1469              C compiler to use at runtime
1470  ATF_BUILD_CFLAGS
1471              C compiler flags to use at runtime
1472  ATF_BUILD_CPP
1473              C/C++ preprocessor to use at runtime
1474  ATF_BUILD_CPPFLAGS
1475              C/C++ preprocessor flags to use at runtime
1476  ATF_BUILD_CXX
1477              C++ compiler to use at runtime
1478  ATF_BUILD_CXXFLAGS
1479              C++ compiler flags to use at runtime
1480  ATF_SHELL   Location of the POSIX shell interpreter to use
1481
1482Use these variables to override the choices made by `configure' or to help
1483it to find libraries and programs with nonstandard names/locations.
1484
1485Report bugs to <atf-discuss@googlegroups.com>.
1486Automated Testing Framework home page: <https://github.com/jmmv/atf/>.
1487_ACEOF
1488ac_status=$?
1489fi
1490
1491if test "$ac_init_help" = "recursive"; then
1492  # If there are subdirs, report their specific --help.
1493  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1494    test -d "$ac_dir" ||
1495      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1496      continue
1497    ac_builddir=.
1498
1499case "$ac_dir" in
1500.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1501*)
1502  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1503  # A ".." for each directory in $ac_dir_suffix.
1504  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1505  case $ac_top_builddir_sub in
1506  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1507  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1508  esac ;;
1509esac
1510ac_abs_top_builddir=$ac_pwd
1511ac_abs_builddir=$ac_pwd$ac_dir_suffix
1512# for backward compatibility:
1513ac_top_builddir=$ac_top_build_prefix
1514
1515case $srcdir in
1516  .)  # We are building in place.
1517    ac_srcdir=.
1518    ac_top_srcdir=$ac_top_builddir_sub
1519    ac_abs_top_srcdir=$ac_pwd ;;
1520  [\\/]* | ?:[\\/]* )  # Absolute name.
1521    ac_srcdir=$srcdir$ac_dir_suffix;
1522    ac_top_srcdir=$srcdir
1523    ac_abs_top_srcdir=$srcdir ;;
1524  *) # Relative name.
1525    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1526    ac_top_srcdir=$ac_top_build_prefix$srcdir
1527    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1528esac
1529ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1530
1531    cd "$ac_dir" || { ac_status=$?; continue; }
1532    # Check for guested configure.
1533    if test -f "$ac_srcdir/configure.gnu"; then
1534      echo &&
1535      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1536    elif test -f "$ac_srcdir/configure"; then
1537      echo &&
1538      $SHELL "$ac_srcdir/configure" --help=recursive
1539    else
1540      $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1541    fi || ac_status=$?
1542    cd "$ac_pwd" || { ac_status=$?; break; }
1543  done
1544fi
1545
1546test -n "$ac_init_help" && exit $ac_status
1547if $ac_init_version; then
1548  cat <<\_ACEOF
1549Automated Testing Framework configure 0.21
1550generated by GNU Autoconf 2.69
1551
1552Copyright (C) 2012 Free Software Foundation, Inc.
1553This configure script is free software; the Free Software Foundation
1554gives unlimited permission to copy, distribute and modify it.
1555
1556Copyright (c) 2007-2012 The NetBSD Foundation, Inc.
1557_ACEOF
1558  exit
1559fi
1560
1561## ------------------------ ##
1562## Autoconf initialization. ##
1563## ------------------------ ##
1564
1565# ac_fn_c_try_compile LINENO
1566# --------------------------
1567# Try to compile conftest.$ac_ext, and return whether this succeeded.
1568ac_fn_c_try_compile ()
1569{
1570  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1571  rm -f conftest.$ac_objext
1572  if { { ac_try="$ac_compile"
1573case "(($ac_try" in
1574  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1575  *) ac_try_echo=$ac_try;;
1576esac
1577eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1578$as_echo "$ac_try_echo"; } >&5
1579  (eval "$ac_compile") 2>conftest.err
1580  ac_status=$?
1581  if test -s conftest.err; then
1582    grep -v '^ *+' conftest.err >conftest.er1
1583    cat conftest.er1 >&5
1584    mv -f conftest.er1 conftest.err
1585  fi
1586  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1587  test $ac_status = 0; } && {
1588	 test -z "$ac_c_werror_flag" ||
1589	 test ! -s conftest.err
1590       } && test -s conftest.$ac_objext; then :
1591  ac_retval=0
1592else
1593  $as_echo "$as_me: failed program was:" >&5
1594sed 's/^/| /' conftest.$ac_ext >&5
1595
1596	ac_retval=1
1597fi
1598  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1599  as_fn_set_status $ac_retval
1600
1601} # ac_fn_c_try_compile
1602
1603# ac_fn_c_try_link LINENO
1604# -----------------------
1605# Try to link conftest.$ac_ext, and return whether this succeeded.
1606ac_fn_c_try_link ()
1607{
1608  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1609  rm -f conftest.$ac_objext conftest$ac_exeext
1610  if { { ac_try="$ac_link"
1611case "(($ac_try" in
1612  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1613  *) ac_try_echo=$ac_try;;
1614esac
1615eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1616$as_echo "$ac_try_echo"; } >&5
1617  (eval "$ac_link") 2>conftest.err
1618  ac_status=$?
1619  if test -s conftest.err; then
1620    grep -v '^ *+' conftest.err >conftest.er1
1621    cat conftest.er1 >&5
1622    mv -f conftest.er1 conftest.err
1623  fi
1624  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1625  test $ac_status = 0; } && {
1626	 test -z "$ac_c_werror_flag" ||
1627	 test ! -s conftest.err
1628       } && test -s conftest$ac_exeext && {
1629	 test "$cross_compiling" = yes ||
1630	 test -x conftest$ac_exeext
1631       }; then :
1632  ac_retval=0
1633else
1634  $as_echo "$as_me: failed program was:" >&5
1635sed 's/^/| /' conftest.$ac_ext >&5
1636
1637	ac_retval=1
1638fi
1639  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1640  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1641  # interfere with the next link command; also delete a directory that is
1642  # left behind by Apple's compiler.  We do this before executing the actions.
1643  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1644  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1645  as_fn_set_status $ac_retval
1646
1647} # ac_fn_c_try_link
1648
1649# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1650# -------------------------------------------------------
1651# Tests whether HEADER exists and can be compiled using the include files in
1652# INCLUDES, setting the cache variable VAR accordingly.
1653ac_fn_c_check_header_compile ()
1654{
1655  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1656  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1657$as_echo_n "checking for $2... " >&6; }
1658if eval \${$3+:} false; then :
1659  $as_echo_n "(cached) " >&6
1660else
1661  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1662/* end confdefs.h.  */
1663$4
1664#include <$2>
1665_ACEOF
1666if ac_fn_c_try_compile "$LINENO"; then :
1667  eval "$3=yes"
1668else
1669  eval "$3=no"
1670fi
1671rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1672fi
1673eval ac_res=\$$3
1674	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1675$as_echo "$ac_res" >&6; }
1676  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1677
1678} # ac_fn_c_check_header_compile
1679
1680# ac_fn_c_try_cpp LINENO
1681# ----------------------
1682# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1683ac_fn_c_try_cpp ()
1684{
1685  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1686  if { { ac_try="$ac_cpp conftest.$ac_ext"
1687case "(($ac_try" in
1688  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1689  *) ac_try_echo=$ac_try;;
1690esac
1691eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1692$as_echo "$ac_try_echo"; } >&5
1693  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1694  ac_status=$?
1695  if test -s conftest.err; then
1696    grep -v '^ *+' conftest.err >conftest.er1
1697    cat conftest.er1 >&5
1698    mv -f conftest.er1 conftest.err
1699  fi
1700  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1701  test $ac_status = 0; } > conftest.i && {
1702	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1703	 test ! -s conftest.err
1704       }; then :
1705  ac_retval=0
1706else
1707  $as_echo "$as_me: failed program was:" >&5
1708sed 's/^/| /' conftest.$ac_ext >&5
1709
1710    ac_retval=1
1711fi
1712  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1713  as_fn_set_status $ac_retval
1714
1715} # ac_fn_c_try_cpp
1716
1717# ac_fn_c_try_run LINENO
1718# ----------------------
1719# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1720# that executables *can* be run.
1721ac_fn_c_try_run ()
1722{
1723  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1724  if { { ac_try="$ac_link"
1725case "(($ac_try" in
1726  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1727  *) ac_try_echo=$ac_try;;
1728esac
1729eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1730$as_echo "$ac_try_echo"; } >&5
1731  (eval "$ac_link") 2>&5
1732  ac_status=$?
1733  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1734  test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1735  { { case "(($ac_try" in
1736  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1737  *) ac_try_echo=$ac_try;;
1738esac
1739eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1740$as_echo "$ac_try_echo"; } >&5
1741  (eval "$ac_try") 2>&5
1742  ac_status=$?
1743  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1744  test $ac_status = 0; }; }; then :
1745  ac_retval=0
1746else
1747  $as_echo "$as_me: program exited with status $ac_status" >&5
1748       $as_echo "$as_me: failed program was:" >&5
1749sed 's/^/| /' conftest.$ac_ext >&5
1750
1751       ac_retval=$ac_status
1752fi
1753  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1754  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1755  as_fn_set_status $ac_retval
1756
1757} # ac_fn_c_try_run
1758
1759# ac_fn_c_check_func LINENO FUNC VAR
1760# ----------------------------------
1761# Tests whether FUNC exists, setting the cache variable VAR accordingly
1762ac_fn_c_check_func ()
1763{
1764  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1765  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1766$as_echo_n "checking for $2... " >&6; }
1767if eval \${$3+:} false; then :
1768  $as_echo_n "(cached) " >&6
1769else
1770  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1771/* end confdefs.h.  */
1772/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1773   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
1774#define $2 innocuous_$2
1775
1776/* System header to define __stub macros and hopefully few prototypes,
1777    which can conflict with char $2 (); below.
1778    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1779    <limits.h> exists even on freestanding compilers.  */
1780
1781#ifdef __STDC__
1782# include <limits.h>
1783#else
1784# include <assert.h>
1785#endif
1786
1787#undef $2
1788
1789/* Override any GCC internal prototype to avoid an error.
1790   Use char because int might match the return type of a GCC
1791   builtin and then its argument prototype would still apply.  */
1792#ifdef __cplusplus
1793extern "C"
1794#endif
1795char $2 ();
1796/* The GNU C library defines this for functions which it implements
1797    to always fail with ENOSYS.  Some functions are actually named
1798    something starting with __ and the normal name is an alias.  */
1799#if defined __stub_$2 || defined __stub___$2
1800choke me
1801#endif
1802
1803int
1804main ()
1805{
1806return $2 ();
1807  ;
1808  return 0;
1809}
1810_ACEOF
1811if ac_fn_c_try_link "$LINENO"; then :
1812  eval "$3=yes"
1813else
1814  eval "$3=no"
1815fi
1816rm -f core conftest.err conftest.$ac_objext \
1817    conftest$ac_exeext conftest.$ac_ext
1818fi
1819eval ac_res=\$$3
1820	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1821$as_echo "$ac_res" >&6; }
1822  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1823
1824} # ac_fn_c_check_func
1825
1826# ac_fn_cxx_try_compile LINENO
1827# ----------------------------
1828# Try to compile conftest.$ac_ext, and return whether this succeeded.
1829ac_fn_cxx_try_compile ()
1830{
1831  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1832  rm -f conftest.$ac_objext
1833  if { { ac_try="$ac_compile"
1834case "(($ac_try" in
1835  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1836  *) ac_try_echo=$ac_try;;
1837esac
1838eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1839$as_echo "$ac_try_echo"; } >&5
1840  (eval "$ac_compile") 2>conftest.err
1841  ac_status=$?
1842  if test -s conftest.err; then
1843    grep -v '^ *+' conftest.err >conftest.er1
1844    cat conftest.er1 >&5
1845    mv -f conftest.er1 conftest.err
1846  fi
1847  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1848  test $ac_status = 0; } && {
1849	 test -z "$ac_cxx_werror_flag" ||
1850	 test ! -s conftest.err
1851       } && test -s conftest.$ac_objext; then :
1852  ac_retval=0
1853else
1854  $as_echo "$as_me: failed program was:" >&5
1855sed 's/^/| /' conftest.$ac_ext >&5
1856
1857	ac_retval=1
1858fi
1859  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1860  as_fn_set_status $ac_retval
1861
1862} # ac_fn_cxx_try_compile
1863
1864# ac_fn_cxx_try_cpp LINENO
1865# ------------------------
1866# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1867ac_fn_cxx_try_cpp ()
1868{
1869  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1870  if { { ac_try="$ac_cpp conftest.$ac_ext"
1871case "(($ac_try" in
1872  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1873  *) ac_try_echo=$ac_try;;
1874esac
1875eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1876$as_echo "$ac_try_echo"; } >&5
1877  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1878  ac_status=$?
1879  if test -s conftest.err; then
1880    grep -v '^ *+' conftest.err >conftest.er1
1881    cat conftest.er1 >&5
1882    mv -f conftest.er1 conftest.err
1883  fi
1884  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1885  test $ac_status = 0; } > conftest.i && {
1886	 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
1887	 test ! -s conftest.err
1888       }; then :
1889  ac_retval=0
1890else
1891  $as_echo "$as_me: failed program was:" >&5
1892sed 's/^/| /' conftest.$ac_ext >&5
1893
1894    ac_retval=1
1895fi
1896  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1897  as_fn_set_status $ac_retval
1898
1899} # ac_fn_cxx_try_cpp
1900
1901# ac_fn_cxx_try_link LINENO
1902# -------------------------
1903# Try to link conftest.$ac_ext, and return whether this succeeded.
1904ac_fn_cxx_try_link ()
1905{
1906  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1907  rm -f conftest.$ac_objext conftest$ac_exeext
1908  if { { ac_try="$ac_link"
1909case "(($ac_try" in
1910  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1911  *) ac_try_echo=$ac_try;;
1912esac
1913eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1914$as_echo "$ac_try_echo"; } >&5
1915  (eval "$ac_link") 2>conftest.err
1916  ac_status=$?
1917  if test -s conftest.err; then
1918    grep -v '^ *+' conftest.err >conftest.er1
1919    cat conftest.er1 >&5
1920    mv -f conftest.er1 conftest.err
1921  fi
1922  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1923  test $ac_status = 0; } && {
1924	 test -z "$ac_cxx_werror_flag" ||
1925	 test ! -s conftest.err
1926       } && test -s conftest$ac_exeext && {
1927	 test "$cross_compiling" = yes ||
1928	 test -x conftest$ac_exeext
1929       }; then :
1930  ac_retval=0
1931else
1932  $as_echo "$as_me: failed program was:" >&5
1933sed 's/^/| /' conftest.$ac_ext >&5
1934
1935	ac_retval=1
1936fi
1937  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1938  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1939  # interfere with the next link command; also delete a directory that is
1940  # left behind by Apple's compiler.  We do this before executing the actions.
1941  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1942  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1943  as_fn_set_status $ac_retval
1944
1945} # ac_fn_cxx_try_link
1946
1947# ac_fn_cxx_try_run LINENO
1948# ------------------------
1949# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1950# that executables *can* be run.
1951ac_fn_cxx_try_run ()
1952{
1953  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1954  if { { ac_try="$ac_link"
1955case "(($ac_try" in
1956  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1957  *) ac_try_echo=$ac_try;;
1958esac
1959eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1960$as_echo "$ac_try_echo"; } >&5
1961  (eval "$ac_link") 2>&5
1962  ac_status=$?
1963  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1964  test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1965  { { case "(($ac_try" in
1966  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1967  *) ac_try_echo=$ac_try;;
1968esac
1969eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1970$as_echo "$ac_try_echo"; } >&5
1971  (eval "$ac_try") 2>&5
1972  ac_status=$?
1973  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1974  test $ac_status = 0; }; }; then :
1975  ac_retval=0
1976else
1977  $as_echo "$as_me: program exited with status $ac_status" >&5
1978       $as_echo "$as_me: failed program was:" >&5
1979sed 's/^/| /' conftest.$ac_ext >&5
1980
1981       ac_retval=$ac_status
1982fi
1983  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1984  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1985  as_fn_set_status $ac_retval
1986
1987} # ac_fn_cxx_try_run
1988
1989# ac_fn_cxx_check_func LINENO FUNC VAR
1990# ------------------------------------
1991# Tests whether FUNC exists, setting the cache variable VAR accordingly
1992ac_fn_cxx_check_func ()
1993{
1994  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1995  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1996$as_echo_n "checking for $2... " >&6; }
1997if eval \${$3+:} false; then :
1998  $as_echo_n "(cached) " >&6
1999else
2000  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2001/* end confdefs.h.  */
2002/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2003   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
2004#define $2 innocuous_$2
2005
2006/* System header to define __stub macros and hopefully few prototypes,
2007    which can conflict with char $2 (); below.
2008    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2009    <limits.h> exists even on freestanding compilers.  */
2010
2011#ifdef __STDC__
2012# include <limits.h>
2013#else
2014# include <assert.h>
2015#endif
2016
2017#undef $2
2018
2019/* Override any GCC internal prototype to avoid an error.
2020   Use char because int might match the return type of a GCC
2021   builtin and then its argument prototype would still apply.  */
2022#ifdef __cplusplus
2023extern "C"
2024#endif
2025char $2 ();
2026/* The GNU C library defines this for functions which it implements
2027    to always fail with ENOSYS.  Some functions are actually named
2028    something starting with __ and the normal name is an alias.  */
2029#if defined __stub_$2 || defined __stub___$2
2030choke me
2031#endif
2032
2033int
2034main ()
2035{
2036return $2 ();
2037  ;
2038  return 0;
2039}
2040_ACEOF
2041if ac_fn_cxx_try_link "$LINENO"; then :
2042  eval "$3=yes"
2043else
2044  eval "$3=no"
2045fi
2046rm -f core conftest.err conftest.$ac_objext \
2047    conftest$ac_exeext conftest.$ac_ext
2048fi
2049eval ac_res=\$$3
2050	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2051$as_echo "$ac_res" >&6; }
2052  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2053
2054} # ac_fn_cxx_check_func
2055cat >config.log <<_ACEOF
2056This file contains any messages produced by compilers while
2057running configure, to aid debugging if configure makes a mistake.
2058
2059It was created by Automated Testing Framework $as_me 0.21, which was
2060generated by GNU Autoconf 2.69.  Invocation command line was
2061
2062  $ $0 $@
2063
2064_ACEOF
2065exec 5>>config.log
2066{
2067cat <<_ASUNAME
2068## --------- ##
2069## Platform. ##
2070## --------- ##
2071
2072hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2073uname -m = `(uname -m) 2>/dev/null || echo unknown`
2074uname -r = `(uname -r) 2>/dev/null || echo unknown`
2075uname -s = `(uname -s) 2>/dev/null || echo unknown`
2076uname -v = `(uname -v) 2>/dev/null || echo unknown`
2077
2078/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2079/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2080
2081/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2082/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2083/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2084/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2085/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2086/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2087/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2088
2089_ASUNAME
2090
2091as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2092for as_dir in $PATH
2093do
2094  IFS=$as_save_IFS
2095  test -z "$as_dir" && as_dir=.
2096    $as_echo "PATH: $as_dir"
2097  done
2098IFS=$as_save_IFS
2099
2100} >&5
2101
2102cat >&5 <<_ACEOF
2103
2104
2105## ----------- ##
2106## Core tests. ##
2107## ----------- ##
2108
2109_ACEOF
2110
2111
2112# Keep a trace of the command line.
2113# Strip out --no-create and --no-recursion so they do not pile up.
2114# Strip out --silent because we don't want to record it for future runs.
2115# Also quote any args containing shell meta-characters.
2116# Make two passes to allow for proper duplicate-argument suppression.
2117ac_configure_args=
2118ac_configure_args0=
2119ac_configure_args1=
2120ac_must_keep_next=false
2121for ac_pass in 1 2
2122do
2123  for ac_arg
2124  do
2125    case $ac_arg in
2126    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2127    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2128    | -silent | --silent | --silen | --sile | --sil)
2129      continue ;;
2130    *\'*)
2131      ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2132    esac
2133    case $ac_pass in
2134    1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2135    2)
2136      as_fn_append ac_configure_args1 " '$ac_arg'"
2137      if test $ac_must_keep_next = true; then
2138	ac_must_keep_next=false # Got value, back to normal.
2139      else
2140	case $ac_arg in
2141	  *=* | --config-cache | -C | -disable-* | --disable-* \
2142	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2143	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2144	  | -with-* | --with-* | -without-* | --without-* | --x)
2145	    case "$ac_configure_args0 " in
2146	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2147	    esac
2148	    ;;
2149	  -* ) ac_must_keep_next=true ;;
2150	esac
2151      fi
2152      as_fn_append ac_configure_args " '$ac_arg'"
2153      ;;
2154    esac
2155  done
2156done
2157{ ac_configure_args0=; unset ac_configure_args0;}
2158{ ac_configure_args1=; unset ac_configure_args1;}
2159
2160# When interrupted or exit'd, cleanup temporary files, and complete
2161# config.log.  We remove comments because anyway the quotes in there
2162# would cause problems or look ugly.
2163# WARNING: Use '\'' to represent an apostrophe within the trap.
2164# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2165trap 'exit_status=$?
2166  # Save into config.log some information that might help in debugging.
2167  {
2168    echo
2169
2170    $as_echo "## ---------------- ##
2171## Cache variables. ##
2172## ---------------- ##"
2173    echo
2174    # The following way of writing the cache mishandles newlines in values,
2175(
2176  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2177    eval ac_val=\$$ac_var
2178    case $ac_val in #(
2179    *${as_nl}*)
2180      case $ac_var in #(
2181      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2182$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2183      esac
2184      case $ac_var in #(
2185      _ | IFS | as_nl) ;; #(
2186      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2187      *) { eval $ac_var=; unset $ac_var;} ;;
2188      esac ;;
2189    esac
2190  done
2191  (set) 2>&1 |
2192    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2193    *${as_nl}ac_space=\ *)
2194      sed -n \
2195	"s/'\''/'\''\\\\'\'''\''/g;
2196	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2197      ;; #(
2198    *)
2199      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2200      ;;
2201    esac |
2202    sort
2203)
2204    echo
2205
2206    $as_echo "## ----------------- ##
2207## Output variables. ##
2208## ----------------- ##"
2209    echo
2210    for ac_var in $ac_subst_vars
2211    do
2212      eval ac_val=\$$ac_var
2213      case $ac_val in
2214      *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2215      esac
2216      $as_echo "$ac_var='\''$ac_val'\''"
2217    done | sort
2218    echo
2219
2220    if test -n "$ac_subst_files"; then
2221      $as_echo "## ------------------- ##
2222## File substitutions. ##
2223## ------------------- ##"
2224      echo
2225      for ac_var in $ac_subst_files
2226      do
2227	eval ac_val=\$$ac_var
2228	case $ac_val in
2229	*\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2230	esac
2231	$as_echo "$ac_var='\''$ac_val'\''"
2232      done | sort
2233      echo
2234    fi
2235
2236    if test -s confdefs.h; then
2237      $as_echo "## ----------- ##
2238## confdefs.h. ##
2239## ----------- ##"
2240      echo
2241      cat confdefs.h
2242      echo
2243    fi
2244    test "$ac_signal" != 0 &&
2245      $as_echo "$as_me: caught signal $ac_signal"
2246    $as_echo "$as_me: exit $exit_status"
2247  } >&5
2248  rm -f core *.core core.conftest.* &&
2249    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2250    exit $exit_status
2251' 0
2252for ac_signal in 1 2 13 15; do
2253  trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2254done
2255ac_signal=0
2256
2257# confdefs.h avoids OS command line length limits that DEFS can exceed.
2258rm -f -r conftest* confdefs.h
2259
2260$as_echo "/* confdefs.h */" > confdefs.h
2261
2262# Predefined preprocessor variables.
2263
2264cat >>confdefs.h <<_ACEOF
2265#define PACKAGE_NAME "$PACKAGE_NAME"
2266_ACEOF
2267
2268cat >>confdefs.h <<_ACEOF
2269#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2270_ACEOF
2271
2272cat >>confdefs.h <<_ACEOF
2273#define PACKAGE_VERSION "$PACKAGE_VERSION"
2274_ACEOF
2275
2276cat >>confdefs.h <<_ACEOF
2277#define PACKAGE_STRING "$PACKAGE_STRING"
2278_ACEOF
2279
2280cat >>confdefs.h <<_ACEOF
2281#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2282_ACEOF
2283
2284cat >>confdefs.h <<_ACEOF
2285#define PACKAGE_URL "$PACKAGE_URL"
2286_ACEOF
2287
2288
2289# Let the site file select an alternate cache file if it wants to.
2290# Prefer an explicitly selected file to automatically selected ones.
2291ac_site_file1=NONE
2292ac_site_file2=NONE
2293if test -n "$CONFIG_SITE"; then
2294  # We do not want a PATH search for config.site.
2295  case $CONFIG_SITE in #((
2296    -*)  ac_site_file1=./$CONFIG_SITE;;
2297    */*) ac_site_file1=$CONFIG_SITE;;
2298    *)   ac_site_file1=./$CONFIG_SITE;;
2299  esac
2300elif test "x$prefix" != xNONE; then
2301  ac_site_file1=$prefix/share/config.site
2302  ac_site_file2=$prefix/etc/config.site
2303else
2304  ac_site_file1=$ac_default_prefix/share/config.site
2305  ac_site_file2=$ac_default_prefix/etc/config.site
2306fi
2307for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2308do
2309  test "x$ac_site_file" = xNONE && continue
2310  if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2311    { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2312$as_echo "$as_me: loading site script $ac_site_file" >&6;}
2313    sed 's/^/| /' "$ac_site_file" >&5
2314    . "$ac_site_file" \
2315      || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2316$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2317as_fn_error $? "failed to load site script $ac_site_file
2318See \`config.log' for more details" "$LINENO" 5; }
2319  fi
2320done
2321
2322if test -r "$cache_file"; then
2323  # Some versions of bash will fail to source /dev/null (special files
2324  # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2325  if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2326    { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2327$as_echo "$as_me: loading cache $cache_file" >&6;}
2328    case $cache_file in
2329      [\\/]* | ?:[\\/]* ) . "$cache_file";;
2330      *)                      . "./$cache_file";;
2331    esac
2332  fi
2333else
2334  { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2335$as_echo "$as_me: creating cache $cache_file" >&6;}
2336  >$cache_file
2337fi
2338
2339# Check that the precious variables saved in the cache have kept the same
2340# value.
2341ac_cache_corrupted=false
2342for ac_var in $ac_precious_vars; do
2343  eval ac_old_set=\$ac_cv_env_${ac_var}_set
2344  eval ac_new_set=\$ac_env_${ac_var}_set
2345  eval ac_old_val=\$ac_cv_env_${ac_var}_value
2346  eval ac_new_val=\$ac_env_${ac_var}_value
2347  case $ac_old_set,$ac_new_set in
2348    set,)
2349      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2350$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2351      ac_cache_corrupted=: ;;
2352    ,set)
2353      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2354$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2355      ac_cache_corrupted=: ;;
2356    ,);;
2357    *)
2358      if test "x$ac_old_val" != "x$ac_new_val"; then
2359	# differences in whitespace do not lead to failure.
2360	ac_old_val_w=`echo x $ac_old_val`
2361	ac_new_val_w=`echo x $ac_new_val`
2362	if test "$ac_old_val_w" != "$ac_new_val_w"; then
2363	  { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2364$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2365	  ac_cache_corrupted=:
2366	else
2367	  { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2368$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2369	  eval $ac_var=\$ac_old_val
2370	fi
2371	{ $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2372$as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2373	{ $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2374$as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2375      fi;;
2376  esac
2377  # Pass precious variables to config.status.
2378  if test "$ac_new_set" = set; then
2379    case $ac_new_val in
2380    *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2381    *) ac_arg=$ac_var=$ac_new_val ;;
2382    esac
2383    case " $ac_configure_args " in
2384      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2385      *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2386    esac
2387  fi
2388done
2389if $ac_cache_corrupted; then
2390  { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2391$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2392  { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2393$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2394  as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2395fi
2396## -------------------- ##
2397## Main body of script. ##
2398## -------------------- ##
2399
2400ac_ext=c
2401ac_cpp='$CPP $CPPFLAGS'
2402ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2403ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2404ac_compiler_gnu=$ac_cv_c_compiler_gnu
2405
2406
2407
2408
2409
2410$as_echo "#define PACKAGE_COPYRIGHT \"Copyright (c) 2007-2012 The NetBSD Foundation, Inc.\"" >>confdefs.h
2411
2412ac_aux_dir=
2413for ac_dir in admin "$srcdir"/admin; do
2414  if test -f "$ac_dir/install-sh"; then
2415    ac_aux_dir=$ac_dir
2416    ac_install_sh="$ac_aux_dir/install-sh -c"
2417    break
2418  elif test -f "$ac_dir/install.sh"; then
2419    ac_aux_dir=$ac_dir
2420    ac_install_sh="$ac_aux_dir/install.sh -c"
2421    break
2422  elif test -f "$ac_dir/shtool"; then
2423    ac_aux_dir=$ac_dir
2424    ac_install_sh="$ac_aux_dir/shtool install -c"
2425    break
2426  fi
2427done
2428if test -z "$ac_aux_dir"; then
2429  as_fn_error $? "cannot find install-sh, install.sh, or shtool in admin \"$srcdir\"/admin" "$LINENO" 5
2430fi
2431
2432# These three variables are undocumented and unsupported,
2433# and are intended to be withdrawn in a future Autoconf release.
2434# They can cause serious problems if a builder's source tree is in a directory
2435# whose full name contains unusual characters.
2436ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2437ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2438ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2439
2440
2441ac_config_headers="$ac_config_headers config.h"
2442
2443
2444
2445ac_config_commands="$ac_config_commands bootstrap/atconfig"
2446
2447
2448# Make sure we can run config.sub.
2449$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2450  as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2451
2452{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2453$as_echo_n "checking build system type... " >&6; }
2454if ${ac_cv_build+:} false; then :
2455  $as_echo_n "(cached) " >&6
2456else
2457  ac_build_alias=$build_alias
2458test "x$ac_build_alias" = x &&
2459  ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2460test "x$ac_build_alias" = x &&
2461  as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2462ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2463  as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2464
2465fi
2466{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2467$as_echo "$ac_cv_build" >&6; }
2468case $ac_cv_build in
2469*-*-*) ;;
2470*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2471esac
2472build=$ac_cv_build
2473ac_save_IFS=$IFS; IFS='-'
2474set x $ac_cv_build
2475shift
2476build_cpu=$1
2477build_vendor=$2
2478shift; shift
2479# Remember, the first character of IFS is used to create $*,
2480# except with old shells:
2481build_os=$*
2482IFS=$ac_save_IFS
2483case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2484
2485
2486{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2487$as_echo_n "checking host system type... " >&6; }
2488if ${ac_cv_host+:} false; then :
2489  $as_echo_n "(cached) " >&6
2490else
2491  if test "x$host_alias" = x; then
2492  ac_cv_host=$ac_cv_build
2493else
2494  ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2495    as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2496fi
2497
2498fi
2499{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2500$as_echo "$ac_cv_host" >&6; }
2501case $ac_cv_host in
2502*-*-*) ;;
2503*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2504esac
2505host=$ac_cv_host
2506ac_save_IFS=$IFS; IFS='-'
2507set x $ac_cv_host
2508shift
2509host_cpu=$1
2510host_vendor=$2
2511shift; shift
2512# Remember, the first character of IFS is used to create $*,
2513# except with old shells:
2514host_os=$*
2515IFS=$ac_save_IFS
2516case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2517
2518
2519{ $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2520$as_echo_n "checking target system type... " >&6; }
2521if ${ac_cv_target+:} false; then :
2522  $as_echo_n "(cached) " >&6
2523else
2524  if test "x$target_alias" = x; then
2525  ac_cv_target=$ac_cv_host
2526else
2527  ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2528    as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2529fi
2530
2531fi
2532{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2533$as_echo "$ac_cv_target" >&6; }
2534case $ac_cv_target in
2535*-*-*) ;;
2536*) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
2537esac
2538target=$ac_cv_target
2539ac_save_IFS=$IFS; IFS='-'
2540set x $ac_cv_target
2541shift
2542target_cpu=$1
2543target_vendor=$2
2544shift; shift
2545# Remember, the first character of IFS is used to create $*,
2546# except with old shells:
2547target_os=$*
2548IFS=$ac_save_IFS
2549case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2550
2551
2552# The aliases save the names the user supplied, while $host etc.
2553# will get canonicalized.
2554test -n "$target_alias" &&
2555  test "$program_prefix$program_suffix$program_transform_name" = \
2556    NONENONEs,x,x, &&
2557  program_prefix=${target_alias}-
2558
2559am__api_version='1.14'
2560
2561# Find a good install program.  We prefer a C program (faster),
2562# so one script is as good as another.  But avoid the broken or
2563# incompatible versions:
2564# SysV /etc/install, /usr/sbin/install
2565# SunOS /usr/etc/install
2566# IRIX /sbin/install
2567# AIX /bin/install
2568# AmigaOS /C/install, which installs bootblocks on floppy discs
2569# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2570# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2571# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2572# OS/2's system install, which has a completely different semantic
2573# ./install, which can be erroneously created by make from ./install.sh.
2574# Reject install programs that cannot install multiple files.
2575{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2576$as_echo_n "checking for a BSD-compatible install... " >&6; }
2577if test -z "$INSTALL"; then
2578if ${ac_cv_path_install+:} false; then :
2579  $as_echo_n "(cached) " >&6
2580else
2581  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2582for as_dir in $PATH
2583do
2584  IFS=$as_save_IFS
2585  test -z "$as_dir" && as_dir=.
2586    # Account for people who put trailing slashes in PATH elements.
2587case $as_dir/ in #((
2588  ./ | .// | /[cC]/* | \
2589  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2590  ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2591  /usr/ucb/* ) ;;
2592  *)
2593    # OSF1 and SCO ODT 3.0 have their own names for install.
2594    # Don't use installbsd from OSF since it installs stuff as root
2595    # by default.
2596    for ac_prog in ginstall scoinst install; do
2597      for ac_exec_ext in '' $ac_executable_extensions; do
2598	if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2599	  if test $ac_prog = install &&
2600	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2601	    # AIX install.  It has an incompatible calling convention.
2602	    :
2603	  elif test $ac_prog = install &&
2604	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2605	    # program-specific install script used by HP pwplus--don't use.
2606	    :
2607	  else
2608	    rm -rf conftest.one conftest.two conftest.dir
2609	    echo one > conftest.one
2610	    echo two > conftest.two
2611	    mkdir conftest.dir
2612	    if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2613	      test -s conftest.one && test -s conftest.two &&
2614	      test -s conftest.dir/conftest.one &&
2615	      test -s conftest.dir/conftest.two
2616	    then
2617	      ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2618	      break 3
2619	    fi
2620	  fi
2621	fi
2622      done
2623    done
2624    ;;
2625esac
2626
2627  done
2628IFS=$as_save_IFS
2629
2630rm -rf conftest.one conftest.two conftest.dir
2631
2632fi
2633  if test "${ac_cv_path_install+set}" = set; then
2634    INSTALL=$ac_cv_path_install
2635  else
2636    # As a last resort, use the slow shell script.  Don't cache a
2637    # value for INSTALL within a source directory, because that will
2638    # break other packages using the cache if that directory is
2639    # removed, or if the value is a relative name.
2640    INSTALL=$ac_install_sh
2641  fi
2642fi
2643{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2644$as_echo "$INSTALL" >&6; }
2645
2646# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2647# It thinks the first close brace ends the variable substitution.
2648test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2649
2650test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2651
2652test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2653
2654{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2655$as_echo_n "checking whether build environment is sane... " >&6; }
2656# Reject unsafe characters in $srcdir or the absolute working directory
2657# name.  Accept space and tab only in the latter.
2658am_lf='
2659'
2660case `pwd` in
2661  *[\\\"\#\$\&\'\`$am_lf]*)
2662    as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2663esac
2664case $srcdir in
2665  *[\\\"\#\$\&\'\`$am_lf\ \	]*)
2666    as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2667esac
2668
2669# Do 'set' in a subshell so we don't clobber the current shell's
2670# arguments.  Must try -L first in case configure is actually a
2671# symlink; some systems play weird games with the mod time of symlinks
2672# (eg FreeBSD returns the mod time of the symlink's containing
2673# directory).
2674if (
2675   am_has_slept=no
2676   for am_try in 1 2; do
2677     echo "timestamp, slept: $am_has_slept" > conftest.file
2678     set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2679     if test "$*" = "X"; then
2680	# -L didn't work.
2681	set X `ls -t "$srcdir/configure" conftest.file`
2682     fi
2683     if test "$*" != "X $srcdir/configure conftest.file" \
2684	&& test "$*" != "X conftest.file $srcdir/configure"; then
2685
2686	# If neither matched, then we have a broken ls.  This can happen
2687	# if, for instance, CONFIG_SHELL is bash and it inherits a
2688	# broken ls alias from the environment.  This has actually
2689	# happened.  Such a system could not be considered "sane".
2690	as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
2691  alias in your environment" "$LINENO" 5
2692     fi
2693     if test "$2" = conftest.file || test $am_try -eq 2; then
2694       break
2695     fi
2696     # Just in case.
2697     sleep 1
2698     am_has_slept=yes
2699   done
2700   test "$2" = conftest.file
2701   )
2702then
2703   # Ok.
2704   :
2705else
2706   as_fn_error $? "newly created file is older than distributed files!
2707Check your system clock" "$LINENO" 5
2708fi
2709{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2710$as_echo "yes" >&6; }
2711# If we didn't sleep, we still need to ensure time stamps of config.status and
2712# generated files are strictly newer.
2713am_sleep_pid=
2714if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2715  ( sleep 1 ) &
2716  am_sleep_pid=$!
2717fi
2718
2719rm -f conftest.file
2720
2721test "$program_prefix" != NONE &&
2722  program_transform_name="s&^&$program_prefix&;$program_transform_name"
2723# Use a double $ so make ignores it.
2724test "$program_suffix" != NONE &&
2725  program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2726# Double any \ or $.
2727# By default was `s,x,x', remove it if useless.
2728ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2729program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2730
2731# expand $ac_aux_dir to an absolute path
2732am_aux_dir=`cd $ac_aux_dir && pwd`
2733
2734if test x"${MISSING+set}" != xset; then
2735  case $am_aux_dir in
2736  *\ * | *\	*)
2737    MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2738  *)
2739    MISSING="\${SHELL} $am_aux_dir/missing" ;;
2740  esac
2741fi
2742# Use eval to expand $SHELL
2743if eval "$MISSING --is-lightweight"; then
2744  am_missing_run="$MISSING "
2745else
2746  am_missing_run=
2747  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2748$as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
2749fi
2750
2751if test x"${install_sh}" != xset; then
2752  case $am_aux_dir in
2753  *\ * | *\	*)
2754    install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2755  *)
2756    install_sh="\${SHELL} $am_aux_dir/install-sh"
2757  esac
2758fi
2759
2760# Installed binaries are usually stripped using 'strip' when the user
2761# run "make install-strip".  However 'strip' might not be the right
2762# tool to use in cross-compilation environments, therefore Automake
2763# will honor the 'STRIP' environment variable to overrule this program.
2764if test "$cross_compiling" != no; then
2765  if test -n "$ac_tool_prefix"; then
2766  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2767set dummy ${ac_tool_prefix}strip; ac_word=$2
2768{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2769$as_echo_n "checking for $ac_word... " >&6; }
2770if ${ac_cv_prog_STRIP+:} false; then :
2771  $as_echo_n "(cached) " >&6
2772else
2773  if test -n "$STRIP"; then
2774  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2775else
2776as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2777for as_dir in $PATH
2778do
2779  IFS=$as_save_IFS
2780  test -z "$as_dir" && as_dir=.
2781    for ac_exec_ext in '' $ac_executable_extensions; do
2782  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2783    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2784    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2785    break 2
2786  fi
2787done
2788  done
2789IFS=$as_save_IFS
2790
2791fi
2792fi
2793STRIP=$ac_cv_prog_STRIP
2794if test -n "$STRIP"; then
2795  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2796$as_echo "$STRIP" >&6; }
2797else
2798  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2799$as_echo "no" >&6; }
2800fi
2801
2802
2803fi
2804if test -z "$ac_cv_prog_STRIP"; then
2805  ac_ct_STRIP=$STRIP
2806  # Extract the first word of "strip", so it can be a program name with args.
2807set dummy strip; ac_word=$2
2808{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2809$as_echo_n "checking for $ac_word... " >&6; }
2810if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2811  $as_echo_n "(cached) " >&6
2812else
2813  if test -n "$ac_ct_STRIP"; then
2814  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2815else
2816as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2817for as_dir in $PATH
2818do
2819  IFS=$as_save_IFS
2820  test -z "$as_dir" && as_dir=.
2821    for ac_exec_ext in '' $ac_executable_extensions; do
2822  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2823    ac_cv_prog_ac_ct_STRIP="strip"
2824    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2825    break 2
2826  fi
2827done
2828  done
2829IFS=$as_save_IFS
2830
2831fi
2832fi
2833ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2834if test -n "$ac_ct_STRIP"; then
2835  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2836$as_echo "$ac_ct_STRIP" >&6; }
2837else
2838  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2839$as_echo "no" >&6; }
2840fi
2841
2842  if test "x$ac_ct_STRIP" = x; then
2843    STRIP=":"
2844  else
2845    case $cross_compiling:$ac_tool_warned in
2846yes:)
2847{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2848$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2849ac_tool_warned=yes ;;
2850esac
2851    STRIP=$ac_ct_STRIP
2852  fi
2853else
2854  STRIP="$ac_cv_prog_STRIP"
2855fi
2856
2857fi
2858INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2859
2860{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2861$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2862if test -z "$MKDIR_P"; then
2863  if ${ac_cv_path_mkdir+:} false; then :
2864  $as_echo_n "(cached) " >&6
2865else
2866  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2867for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2868do
2869  IFS=$as_save_IFS
2870  test -z "$as_dir" && as_dir=.
2871    for ac_prog in mkdir gmkdir; do
2872	 for ac_exec_ext in '' $ac_executable_extensions; do
2873	   as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
2874	   case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2875	     'mkdir (GNU coreutils) '* | \
2876	     'mkdir (coreutils) '* | \
2877	     'mkdir (fileutils) '4.1*)
2878	       ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2879	       break 3;;
2880	   esac
2881	 done
2882       done
2883  done
2884IFS=$as_save_IFS
2885
2886fi
2887
2888  test -d ./--version && rmdir ./--version
2889  if test "${ac_cv_path_mkdir+set}" = set; then
2890    MKDIR_P="$ac_cv_path_mkdir -p"
2891  else
2892    # As a last resort, use the slow shell script.  Don't cache a
2893    # value for MKDIR_P within a source directory, because that will
2894    # break other packages using the cache if that directory is
2895    # removed, or if the value is a relative name.
2896    MKDIR_P="$ac_install_sh -d"
2897  fi
2898fi
2899{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2900$as_echo "$MKDIR_P" >&6; }
2901
2902for ac_prog in gawk mawk nawk awk
2903do
2904  # Extract the first word of "$ac_prog", so it can be a program name with args.
2905set dummy $ac_prog; ac_word=$2
2906{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2907$as_echo_n "checking for $ac_word... " >&6; }
2908if ${ac_cv_prog_AWK+:} false; then :
2909  $as_echo_n "(cached) " >&6
2910else
2911  if test -n "$AWK"; then
2912  ac_cv_prog_AWK="$AWK" # Let the user override the test.
2913else
2914as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2915for as_dir in $PATH
2916do
2917  IFS=$as_save_IFS
2918  test -z "$as_dir" && as_dir=.
2919    for ac_exec_ext in '' $ac_executable_extensions; do
2920  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2921    ac_cv_prog_AWK="$ac_prog"
2922    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2923    break 2
2924  fi
2925done
2926  done
2927IFS=$as_save_IFS
2928
2929fi
2930fi
2931AWK=$ac_cv_prog_AWK
2932if test -n "$AWK"; then
2933  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2934$as_echo "$AWK" >&6; }
2935else
2936  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2937$as_echo "no" >&6; }
2938fi
2939
2940
2941  test -n "$AWK" && break
2942done
2943
2944{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2945$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2946set x ${MAKE-make}
2947ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2948if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2949  $as_echo_n "(cached) " >&6
2950else
2951  cat >conftest.make <<\_ACEOF
2952SHELL = /bin/sh
2953all:
2954	@echo '@@@%%%=$(MAKE)=@@@%%%'
2955_ACEOF
2956# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2957case `${MAKE-make} -f conftest.make 2>/dev/null` in
2958  *@@@%%%=?*=@@@%%%*)
2959    eval ac_cv_prog_make_${ac_make}_set=yes;;
2960  *)
2961    eval ac_cv_prog_make_${ac_make}_set=no;;
2962esac
2963rm -f conftest.make
2964fi
2965if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2966  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2967$as_echo "yes" >&6; }
2968  SET_MAKE=
2969else
2970  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2971$as_echo "no" >&6; }
2972  SET_MAKE="MAKE=${MAKE-make}"
2973fi
2974
2975rm -rf .tst 2>/dev/null
2976mkdir .tst 2>/dev/null
2977if test -d .tst; then
2978  am__leading_dot=.
2979else
2980  am__leading_dot=_
2981fi
2982rmdir .tst 2>/dev/null
2983
2984# Check whether --enable-silent-rules was given.
2985if test "${enable_silent_rules+set}" = set; then :
2986  enableval=$enable_silent_rules;
2987fi
2988
2989case $enable_silent_rules in # (((
2990  yes) AM_DEFAULT_VERBOSITY=0;;
2991   no) AM_DEFAULT_VERBOSITY=1;;
2992    *) AM_DEFAULT_VERBOSITY=1;;
2993esac
2994am_make=${MAKE-make}
2995{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
2996$as_echo_n "checking whether $am_make supports nested variables... " >&6; }
2997if ${am_cv_make_support_nested_variables+:} false; then :
2998  $as_echo_n "(cached) " >&6
2999else
3000  if $as_echo 'TRUE=$(BAR$(V))
3001BAR0=false
3002BAR1=true
3003V=1
3004am__doit:
3005	@$(TRUE)
3006.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3007  am_cv_make_support_nested_variables=yes
3008else
3009  am_cv_make_support_nested_variables=no
3010fi
3011fi
3012{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3013$as_echo "$am_cv_make_support_nested_variables" >&6; }
3014if test $am_cv_make_support_nested_variables = yes; then
3015    AM_V='$(V)'
3016  AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3017else
3018  AM_V=$AM_DEFAULT_VERBOSITY
3019  AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3020fi
3021AM_BACKSLASH='\'
3022
3023if test "`cd $srcdir && pwd`" != "`pwd`"; then
3024  # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3025  # is not polluted with repeated "-I."
3026  am__isrc=' -I$(srcdir)'
3027  # test to see if srcdir already configured
3028  if test -f $srcdir/config.status; then
3029    as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3030  fi
3031fi
3032
3033# test whether we have cygpath
3034if test -z "$CYGPATH_W"; then
3035  if (cygpath --version) >/dev/null 2>/dev/null; then
3036    CYGPATH_W='cygpath -w'
3037  else
3038    CYGPATH_W=echo
3039  fi
3040fi
3041
3042
3043# Define the identity of the package.
3044 PACKAGE='atf'
3045 VERSION='0.21'
3046
3047
3048cat >>confdefs.h <<_ACEOF
3049#define PACKAGE "$PACKAGE"
3050_ACEOF
3051
3052
3053cat >>confdefs.h <<_ACEOF
3054#define VERSION "$VERSION"
3055_ACEOF
3056
3057# Some tools Automake needs.
3058
3059ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3060
3061
3062AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3063
3064
3065AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3066
3067
3068AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3069
3070
3071MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3072
3073# For better backward compatibility.  To be removed once Automake 1.9.x
3074# dies out for good.  For more background, see:
3075# <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
3076# <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
3077mkdir_p='$(MKDIR_P)'
3078
3079# We need awk for the "check" target.  The system "awk" is bad on
3080# some platforms.
3081# Always define AMTAR for backward compatibility.  Yes, it's still used
3082# in the wild :-(  We should find a proper way to deprecate it ...
3083AMTAR='$${TAR-tar}'
3084
3085
3086# We'll loop over all known methods to create a tar archive until one works.
3087_am_tools='gnutar  pax cpio none'
3088
3089am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
3090
3091
3092
3093
3094
3095
3096# POSIX will say in a future version that running "rm -f" with no argument
3097# is OK; and we want to be able to make that assumption in our Makefile
3098# recipes.  So use an aggressive probe to check that the usage we want is
3099# actually supported "in the wild" to an acceptable degree.
3100# See automake bug#10828.
3101# To make any issue more visible, cause the running configure to be aborted
3102# by default if the 'rm' program in use doesn't match our expectations; the
3103# user can still override this though.
3104if rm -f && rm -fr && rm -rf; then : OK; else
3105  cat >&2 <<'END'
3106Oops!
3107
3108Your 'rm' program seems unable to run without file operands specified
3109on the command line, even when the '-f' option is present.  This is contrary
3110to the behaviour of most rm programs out there, and not conforming with
3111the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
3112
3113Please tell bug-automake@gnu.org about your system, including the value
3114of your $PATH and any error possibly output before this message.  This
3115can help us improve future automake versions.
3116
3117END
3118  if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
3119    echo 'Configuration will proceed anyway, since you have set the' >&2
3120    echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
3121    echo >&2
3122  else
3123    cat >&2 <<'END'
3124Aborting the configuration process, to ensure you take notice of the issue.
3125
3126You can download and install GNU coreutils to get an 'rm' implementation
3127that behaves properly: <http://www.gnu.org/software/coreutils/>.
3128
3129If you want to complete the configuration process using your problematic
3130'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
3131to "yes", and re-run configure.
3132
3133END
3134    as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
3135  fi
3136fi
3137
3138DEPDIR="${am__leading_dot}deps"
3139
3140ac_config_commands="$ac_config_commands depfiles"
3141
3142
3143am_make=${MAKE-make}
3144cat > confinc << 'END'
3145am__doit:
3146	@echo this is the am__doit target
3147.PHONY: am__doit
3148END
3149# If we don't find an include directive, just comment out the code.
3150{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3151$as_echo_n "checking for style of include used by $am_make... " >&6; }
3152am__include="#"
3153am__quote=
3154_am_result=none
3155# First try GNU make style include.
3156echo "include confinc" > confmf
3157# Ignore all kinds of additional output from 'make'.
3158case `$am_make -s -f confmf 2> /dev/null` in #(
3159*the\ am__doit\ target*)
3160  am__include=include
3161  am__quote=
3162  _am_result=GNU
3163  ;;
3164esac
3165# Now try BSD make style include.
3166if test "$am__include" = "#"; then
3167   echo '.include "confinc"' > confmf
3168   case `$am_make -s -f confmf 2> /dev/null` in #(
3169   *the\ am__doit\ target*)
3170     am__include=.include
3171     am__quote="\""
3172     _am_result=BSD
3173     ;;
3174   esac
3175fi
3176
3177
3178{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3179$as_echo "$_am_result" >&6; }
3180rm -f confinc confmf
3181
3182# Check whether --enable-dependency-tracking was given.
3183if test "${enable_dependency_tracking+set}" = set; then :
3184  enableval=$enable_dependency_tracking;
3185fi
3186
3187if test "x$enable_dependency_tracking" != xno; then
3188  am_depcomp="$ac_aux_dir/depcomp"
3189  AMDEPBACKSLASH='\'
3190  am__nodep='_no'
3191fi
3192 if test "x$enable_dependency_tracking" != xno; then
3193  AMDEP_TRUE=
3194  AMDEP_FALSE='#'
3195else
3196  AMDEP_TRUE='#'
3197  AMDEP_FALSE=
3198fi
3199
3200
3201ac_ext=c
3202ac_cpp='$CPP $CPPFLAGS'
3203ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3204ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3205ac_compiler_gnu=$ac_cv_c_compiler_gnu
3206if test -n "$ac_tool_prefix"; then
3207  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3208set dummy ${ac_tool_prefix}gcc; ac_word=$2
3209{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3210$as_echo_n "checking for $ac_word... " >&6; }
3211if ${ac_cv_prog_CC+:} false; then :
3212  $as_echo_n "(cached) " >&6
3213else
3214  if test -n "$CC"; then
3215  ac_cv_prog_CC="$CC" # Let the user override the test.
3216else
3217as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3218for as_dir in $PATH
3219do
3220  IFS=$as_save_IFS
3221  test -z "$as_dir" && as_dir=.
3222    for ac_exec_ext in '' $ac_executable_extensions; do
3223  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3224    ac_cv_prog_CC="${ac_tool_prefix}gcc"
3225    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3226    break 2
3227  fi
3228done
3229  done
3230IFS=$as_save_IFS
3231
3232fi
3233fi
3234CC=$ac_cv_prog_CC
3235if test -n "$CC"; then
3236  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3237$as_echo "$CC" >&6; }
3238else
3239  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3240$as_echo "no" >&6; }
3241fi
3242
3243
3244fi
3245if test -z "$ac_cv_prog_CC"; then
3246  ac_ct_CC=$CC
3247  # Extract the first word of "gcc", so it can be a program name with args.
3248set dummy gcc; ac_word=$2
3249{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3250$as_echo_n "checking for $ac_word... " >&6; }
3251if ${ac_cv_prog_ac_ct_CC+:} false; then :
3252  $as_echo_n "(cached) " >&6
3253else
3254  if test -n "$ac_ct_CC"; then
3255  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3256else
3257as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3258for as_dir in $PATH
3259do
3260  IFS=$as_save_IFS
3261  test -z "$as_dir" && as_dir=.
3262    for ac_exec_ext in '' $ac_executable_extensions; do
3263  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3264    ac_cv_prog_ac_ct_CC="gcc"
3265    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3266    break 2
3267  fi
3268done
3269  done
3270IFS=$as_save_IFS
3271
3272fi
3273fi
3274ac_ct_CC=$ac_cv_prog_ac_ct_CC
3275if test -n "$ac_ct_CC"; then
3276  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3277$as_echo "$ac_ct_CC" >&6; }
3278else
3279  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3280$as_echo "no" >&6; }
3281fi
3282
3283  if test "x$ac_ct_CC" = x; then
3284    CC=""
3285  else
3286    case $cross_compiling:$ac_tool_warned in
3287yes:)
3288{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3289$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3290ac_tool_warned=yes ;;
3291esac
3292    CC=$ac_ct_CC
3293  fi
3294else
3295  CC="$ac_cv_prog_CC"
3296fi
3297
3298if test -z "$CC"; then
3299          if test -n "$ac_tool_prefix"; then
3300    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3301set dummy ${ac_tool_prefix}cc; ac_word=$2
3302{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3303$as_echo_n "checking for $ac_word... " >&6; }
3304if ${ac_cv_prog_CC+:} false; then :
3305  $as_echo_n "(cached) " >&6
3306else
3307  if test -n "$CC"; then
3308  ac_cv_prog_CC="$CC" # Let the user override the test.
3309else
3310as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3311for as_dir in $PATH
3312do
3313  IFS=$as_save_IFS
3314  test -z "$as_dir" && as_dir=.
3315    for ac_exec_ext in '' $ac_executable_extensions; do
3316  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3317    ac_cv_prog_CC="${ac_tool_prefix}cc"
3318    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3319    break 2
3320  fi
3321done
3322  done
3323IFS=$as_save_IFS
3324
3325fi
3326fi
3327CC=$ac_cv_prog_CC
3328if test -n "$CC"; then
3329  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3330$as_echo "$CC" >&6; }
3331else
3332  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3333$as_echo "no" >&6; }
3334fi
3335
3336
3337  fi
3338fi
3339if test -z "$CC"; then
3340  # Extract the first word of "cc", so it can be a program name with args.
3341set dummy cc; ac_word=$2
3342{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3343$as_echo_n "checking for $ac_word... " >&6; }
3344if ${ac_cv_prog_CC+:} false; then :
3345  $as_echo_n "(cached) " >&6
3346else
3347  if test -n "$CC"; then
3348  ac_cv_prog_CC="$CC" # Let the user override the test.
3349else
3350  ac_prog_rejected=no
3351as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3352for as_dir in $PATH
3353do
3354  IFS=$as_save_IFS
3355  test -z "$as_dir" && as_dir=.
3356    for ac_exec_ext in '' $ac_executable_extensions; do
3357  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3358    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3359       ac_prog_rejected=yes
3360       continue
3361     fi
3362    ac_cv_prog_CC="cc"
3363    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3364    break 2
3365  fi
3366done
3367  done
3368IFS=$as_save_IFS
3369
3370if test $ac_prog_rejected = yes; then
3371  # We found a bogon in the path, so make sure we never use it.
3372  set dummy $ac_cv_prog_CC
3373  shift
3374  if test $# != 0; then
3375    # We chose a different compiler from the bogus one.
3376    # However, it has the same basename, so the bogon will be chosen
3377    # first if we set CC to just the basename; use the full file name.
3378    shift
3379    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3380  fi
3381fi
3382fi
3383fi
3384CC=$ac_cv_prog_CC
3385if test -n "$CC"; then
3386  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3387$as_echo "$CC" >&6; }
3388else
3389  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3390$as_echo "no" >&6; }
3391fi
3392
3393
3394fi
3395if test -z "$CC"; then
3396  if test -n "$ac_tool_prefix"; then
3397  for ac_prog in cl.exe
3398  do
3399    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3400set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3401{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3402$as_echo_n "checking for $ac_word... " >&6; }
3403if ${ac_cv_prog_CC+:} false; then :
3404  $as_echo_n "(cached) " >&6
3405else
3406  if test -n "$CC"; then
3407  ac_cv_prog_CC="$CC" # Let the user override the test.
3408else
3409as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3410for as_dir in $PATH
3411do
3412  IFS=$as_save_IFS
3413  test -z "$as_dir" && as_dir=.
3414    for ac_exec_ext in '' $ac_executable_extensions; do
3415  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3416    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3417    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3418    break 2
3419  fi
3420done
3421  done
3422IFS=$as_save_IFS
3423
3424fi
3425fi
3426CC=$ac_cv_prog_CC
3427if test -n "$CC"; then
3428  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3429$as_echo "$CC" >&6; }
3430else
3431  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3432$as_echo "no" >&6; }
3433fi
3434
3435
3436    test -n "$CC" && break
3437  done
3438fi
3439if test -z "$CC"; then
3440  ac_ct_CC=$CC
3441  for ac_prog in cl.exe
3442do
3443  # Extract the first word of "$ac_prog", so it can be a program name with args.
3444set dummy $ac_prog; ac_word=$2
3445{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3446$as_echo_n "checking for $ac_word... " >&6; }
3447if ${ac_cv_prog_ac_ct_CC+:} false; then :
3448  $as_echo_n "(cached) " >&6
3449else
3450  if test -n "$ac_ct_CC"; then
3451  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3452else
3453as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3454for as_dir in $PATH
3455do
3456  IFS=$as_save_IFS
3457  test -z "$as_dir" && as_dir=.
3458    for ac_exec_ext in '' $ac_executable_extensions; do
3459  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3460    ac_cv_prog_ac_ct_CC="$ac_prog"
3461    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3462    break 2
3463  fi
3464done
3465  done
3466IFS=$as_save_IFS
3467
3468fi
3469fi
3470ac_ct_CC=$ac_cv_prog_ac_ct_CC
3471if test -n "$ac_ct_CC"; then
3472  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3473$as_echo "$ac_ct_CC" >&6; }
3474else
3475  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3476$as_echo "no" >&6; }
3477fi
3478
3479
3480  test -n "$ac_ct_CC" && break
3481done
3482
3483  if test "x$ac_ct_CC" = x; then
3484    CC=""
3485  else
3486    case $cross_compiling:$ac_tool_warned in
3487yes:)
3488{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3489$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3490ac_tool_warned=yes ;;
3491esac
3492    CC=$ac_ct_CC
3493  fi
3494fi
3495
3496fi
3497
3498
3499test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3500$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3501as_fn_error $? "no acceptable C compiler found in \$PATH
3502See \`config.log' for more details" "$LINENO" 5; }
3503
3504# Provide some information about the compiler.
3505$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3506set X $ac_compile
3507ac_compiler=$2
3508for ac_option in --version -v -V -qversion; do
3509  { { ac_try="$ac_compiler $ac_option >&5"
3510case "(($ac_try" in
3511  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3512  *) ac_try_echo=$ac_try;;
3513esac
3514eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3515$as_echo "$ac_try_echo"; } >&5
3516  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3517  ac_status=$?
3518  if test -s conftest.err; then
3519    sed '10a\
3520... rest of stderr output deleted ...
3521         10q' conftest.err >conftest.er1
3522    cat conftest.er1 >&5
3523  fi
3524  rm -f conftest.er1 conftest.err
3525  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3526  test $ac_status = 0; }
3527done
3528
3529cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3530/* end confdefs.h.  */
3531
3532int
3533main ()
3534{
3535
3536  ;
3537  return 0;
3538}
3539_ACEOF
3540ac_clean_files_save=$ac_clean_files
3541ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3542# Try to create an executable without -o first, disregard a.out.
3543# It will help us diagnose broken compilers, and finding out an intuition
3544# of exeext.
3545{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3546$as_echo_n "checking whether the C compiler works... " >&6; }
3547ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3548
3549# The possible output files:
3550ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3551
3552ac_rmfiles=
3553for ac_file in $ac_files
3554do
3555  case $ac_file in
3556    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3557    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3558  esac
3559done
3560rm -f $ac_rmfiles
3561
3562if { { ac_try="$ac_link_default"
3563case "(($ac_try" in
3564  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3565  *) ac_try_echo=$ac_try;;
3566esac
3567eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3568$as_echo "$ac_try_echo"; } >&5
3569  (eval "$ac_link_default") 2>&5
3570  ac_status=$?
3571  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3572  test $ac_status = 0; }; then :
3573  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3574# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3575# in a Makefile.  We should not override ac_cv_exeext if it was cached,
3576# so that the user can short-circuit this test for compilers unknown to
3577# Autoconf.
3578for ac_file in $ac_files ''
3579do
3580  test -f "$ac_file" || continue
3581  case $ac_file in
3582    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3583	;;
3584    [ab].out )
3585	# We found the default executable, but exeext='' is most
3586	# certainly right.
3587	break;;
3588    *.* )
3589	if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3590	then :; else
3591	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3592	fi
3593	# We set ac_cv_exeext here because the later test for it is not
3594	# safe: cross compilers may not add the suffix if given an `-o'
3595	# argument, so we may need to know it at that point already.
3596	# Even if this section looks crufty: it has the advantage of
3597	# actually working.
3598	break;;
3599    * )
3600	break;;
3601  esac
3602done
3603test "$ac_cv_exeext" = no && ac_cv_exeext=
3604
3605else
3606  ac_file=''
3607fi
3608if test -z "$ac_file"; then :
3609  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3610$as_echo "no" >&6; }
3611$as_echo "$as_me: failed program was:" >&5
3612sed 's/^/| /' conftest.$ac_ext >&5
3613
3614{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3615$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3616as_fn_error 77 "C compiler cannot create executables
3617See \`config.log' for more details" "$LINENO" 5; }
3618else
3619  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3620$as_echo "yes" >&6; }
3621fi
3622{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3623$as_echo_n "checking for C compiler default output file name... " >&6; }
3624{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3625$as_echo "$ac_file" >&6; }
3626ac_exeext=$ac_cv_exeext
3627
3628rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3629ac_clean_files=$ac_clean_files_save
3630{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3631$as_echo_n "checking for suffix of executables... " >&6; }
3632if { { ac_try="$ac_link"
3633case "(($ac_try" in
3634  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3635  *) ac_try_echo=$ac_try;;
3636esac
3637eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3638$as_echo "$ac_try_echo"; } >&5
3639  (eval "$ac_link") 2>&5
3640  ac_status=$?
3641  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3642  test $ac_status = 0; }; then :
3643  # If both `conftest.exe' and `conftest' are `present' (well, observable)
3644# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3645# work properly (i.e., refer to `conftest.exe'), while it won't with
3646# `rm'.
3647for ac_file in conftest.exe conftest conftest.*; do
3648  test -f "$ac_file" || continue
3649  case $ac_file in
3650    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3651    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3652	  break;;
3653    * ) break;;
3654  esac
3655done
3656else
3657  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3658$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3659as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3660See \`config.log' for more details" "$LINENO" 5; }
3661fi
3662rm -f conftest conftest$ac_cv_exeext
3663{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3664$as_echo "$ac_cv_exeext" >&6; }
3665
3666rm -f conftest.$ac_ext
3667EXEEXT=$ac_cv_exeext
3668ac_exeext=$EXEEXT
3669cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3670/* end confdefs.h.  */
3671#include <stdio.h>
3672int
3673main ()
3674{
3675FILE *f = fopen ("conftest.out", "w");
3676 return ferror (f) || fclose (f) != 0;
3677
3678  ;
3679  return 0;
3680}
3681_ACEOF
3682ac_clean_files="$ac_clean_files conftest.out"
3683# Check that the compiler produces executables we can run.  If not, either
3684# the compiler is broken, or we cross compile.
3685{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3686$as_echo_n "checking whether we are cross compiling... " >&6; }
3687if test "$cross_compiling" != yes; then
3688  { { ac_try="$ac_link"
3689case "(($ac_try" in
3690  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3691  *) ac_try_echo=$ac_try;;
3692esac
3693eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3694$as_echo "$ac_try_echo"; } >&5
3695  (eval "$ac_link") 2>&5
3696  ac_status=$?
3697  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3698  test $ac_status = 0; }
3699  if { ac_try='./conftest$ac_cv_exeext'
3700  { { case "(($ac_try" in
3701  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3702  *) ac_try_echo=$ac_try;;
3703esac
3704eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3705$as_echo "$ac_try_echo"; } >&5
3706  (eval "$ac_try") 2>&5
3707  ac_status=$?
3708  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3709  test $ac_status = 0; }; }; then
3710    cross_compiling=no
3711  else
3712    if test "$cross_compiling" = maybe; then
3713	cross_compiling=yes
3714    else
3715	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3716$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3717as_fn_error $? "cannot run C compiled programs.
3718If you meant to cross compile, use \`--host'.
3719See \`config.log' for more details" "$LINENO" 5; }
3720    fi
3721  fi
3722fi
3723{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3724$as_echo "$cross_compiling" >&6; }
3725
3726rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3727ac_clean_files=$ac_clean_files_save
3728{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3729$as_echo_n "checking for suffix of object files... " >&6; }
3730if ${ac_cv_objext+:} false; then :
3731  $as_echo_n "(cached) " >&6
3732else
3733  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3734/* end confdefs.h.  */
3735
3736int
3737main ()
3738{
3739
3740  ;
3741  return 0;
3742}
3743_ACEOF
3744rm -f conftest.o conftest.obj
3745if { { ac_try="$ac_compile"
3746case "(($ac_try" in
3747  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3748  *) ac_try_echo=$ac_try;;
3749esac
3750eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3751$as_echo "$ac_try_echo"; } >&5
3752  (eval "$ac_compile") 2>&5
3753  ac_status=$?
3754  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3755  test $ac_status = 0; }; then :
3756  for ac_file in conftest.o conftest.obj conftest.*; do
3757  test -f "$ac_file" || continue;
3758  case $ac_file in
3759    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3760    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3761       break;;
3762  esac
3763done
3764else
3765  $as_echo "$as_me: failed program was:" >&5
3766sed 's/^/| /' conftest.$ac_ext >&5
3767
3768{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3769$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3770as_fn_error $? "cannot compute suffix of object files: cannot compile
3771See \`config.log' for more details" "$LINENO" 5; }
3772fi
3773rm -f conftest.$ac_cv_objext conftest.$ac_ext
3774fi
3775{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3776$as_echo "$ac_cv_objext" >&6; }
3777OBJEXT=$ac_cv_objext
3778ac_objext=$OBJEXT
3779{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3780$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3781if ${ac_cv_c_compiler_gnu+:} false; then :
3782  $as_echo_n "(cached) " >&6
3783else
3784  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3785/* end confdefs.h.  */
3786
3787int
3788main ()
3789{
3790#ifndef __GNUC__
3791       choke me
3792#endif
3793
3794  ;
3795  return 0;
3796}
3797_ACEOF
3798if ac_fn_c_try_compile "$LINENO"; then :
3799  ac_compiler_gnu=yes
3800else
3801  ac_compiler_gnu=no
3802fi
3803rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3804ac_cv_c_compiler_gnu=$ac_compiler_gnu
3805
3806fi
3807{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3808$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3809if test $ac_compiler_gnu = yes; then
3810  GCC=yes
3811else
3812  GCC=
3813fi
3814ac_test_CFLAGS=${CFLAGS+set}
3815ac_save_CFLAGS=$CFLAGS
3816{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3817$as_echo_n "checking whether $CC accepts -g... " >&6; }
3818if ${ac_cv_prog_cc_g+:} false; then :
3819  $as_echo_n "(cached) " >&6
3820else
3821  ac_save_c_werror_flag=$ac_c_werror_flag
3822   ac_c_werror_flag=yes
3823   ac_cv_prog_cc_g=no
3824   CFLAGS="-g"
3825   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3826/* end confdefs.h.  */
3827
3828int
3829main ()
3830{
3831
3832  ;
3833  return 0;
3834}
3835_ACEOF
3836if ac_fn_c_try_compile "$LINENO"; then :
3837  ac_cv_prog_cc_g=yes
3838else
3839  CFLAGS=""
3840      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3841/* end confdefs.h.  */
3842
3843int
3844main ()
3845{
3846
3847  ;
3848  return 0;
3849}
3850_ACEOF
3851if ac_fn_c_try_compile "$LINENO"; then :
3852
3853else
3854  ac_c_werror_flag=$ac_save_c_werror_flag
3855	 CFLAGS="-g"
3856	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3857/* end confdefs.h.  */
3858
3859int
3860main ()
3861{
3862
3863  ;
3864  return 0;
3865}
3866_ACEOF
3867if ac_fn_c_try_compile "$LINENO"; then :
3868  ac_cv_prog_cc_g=yes
3869fi
3870rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3871fi
3872rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3873fi
3874rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3875   ac_c_werror_flag=$ac_save_c_werror_flag
3876fi
3877{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3878$as_echo "$ac_cv_prog_cc_g" >&6; }
3879if test "$ac_test_CFLAGS" = set; then
3880  CFLAGS=$ac_save_CFLAGS
3881elif test $ac_cv_prog_cc_g = yes; then
3882  if test "$GCC" = yes; then
3883    CFLAGS="-g -O2"
3884  else
3885    CFLAGS="-g"
3886  fi
3887else
3888  if test "$GCC" = yes; then
3889    CFLAGS="-O2"
3890  else
3891    CFLAGS=
3892  fi
3893fi
3894{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3895$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3896if ${ac_cv_prog_cc_c89+:} false; then :
3897  $as_echo_n "(cached) " >&6
3898else
3899  ac_cv_prog_cc_c89=no
3900ac_save_CC=$CC
3901cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3902/* end confdefs.h.  */
3903#include <stdarg.h>
3904#include <stdio.h>
3905struct stat;
3906/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3907struct buf { int x; };
3908FILE * (*rcsopen) (struct buf *, struct stat *, int);
3909static char *e (p, i)
3910     char **p;
3911     int i;
3912{
3913  return p[i];
3914}
3915static char *f (char * (*g) (char **, int), char **p, ...)
3916{
3917  char *s;
3918  va_list v;
3919  va_start (v,p);
3920  s = g (p, va_arg (v,int));
3921  va_end (v);
3922  return s;
3923}
3924
3925/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3926   function prototypes and stuff, but not '\xHH' hex character constants.
3927   These don't provoke an error unfortunately, instead are silently treated
3928   as 'x'.  The following induces an error, until -std is added to get
3929   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3930   array size at least.  It's necessary to write '\x00'==0 to get something
3931   that's true only with -std.  */
3932int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3933
3934/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3935   inside strings and character constants.  */
3936#define FOO(x) 'x'
3937int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3938
3939int test (int i, double x);
3940struct s1 {int (*f) (int a);};
3941struct s2 {int (*f) (double a);};
3942int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3943int argc;
3944char **argv;
3945int
3946main ()
3947{
3948return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3949  ;
3950  return 0;
3951}
3952_ACEOF
3953for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3954	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3955do
3956  CC="$ac_save_CC $ac_arg"
3957  if ac_fn_c_try_compile "$LINENO"; then :
3958  ac_cv_prog_cc_c89=$ac_arg
3959fi
3960rm -f core conftest.err conftest.$ac_objext
3961  test "x$ac_cv_prog_cc_c89" != "xno" && break
3962done
3963rm -f conftest.$ac_ext
3964CC=$ac_save_CC
3965
3966fi
3967# AC_CACHE_VAL
3968case "x$ac_cv_prog_cc_c89" in
3969  x)
3970    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3971$as_echo "none needed" >&6; } ;;
3972  xno)
3973    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3974$as_echo "unsupported" >&6; } ;;
3975  *)
3976    CC="$CC $ac_cv_prog_cc_c89"
3977    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3978$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3979esac
3980if test "x$ac_cv_prog_cc_c89" != xno; then :
3981
3982fi
3983
3984ac_ext=c
3985ac_cpp='$CPP $CPPFLAGS'
3986ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3987ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3988ac_compiler_gnu=$ac_cv_c_compiler_gnu
3989
3990ac_ext=c
3991ac_cpp='$CPP $CPPFLAGS'
3992ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3993ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3994ac_compiler_gnu=$ac_cv_c_compiler_gnu
3995{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
3996$as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
3997if ${am_cv_prog_cc_c_o+:} false; then :
3998  $as_echo_n "(cached) " >&6
3999else
4000  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4001/* end confdefs.h.  */
4002
4003int
4004main ()
4005{
4006
4007  ;
4008  return 0;
4009}
4010_ACEOF
4011  # Make sure it works both with $CC and with simple cc.
4012  # Following AC_PROG_CC_C_O, we do the test twice because some
4013  # compilers refuse to overwrite an existing .o file with -o,
4014  # though they will create one.
4015  am_cv_prog_cc_c_o=yes
4016  for am_i in 1 2; do
4017    if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
4018   ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
4019   ac_status=$?
4020   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4021   (exit $ac_status); } \
4022         && test -f conftest2.$ac_objext; then
4023      : OK
4024    else
4025      am_cv_prog_cc_c_o=no
4026      break
4027    fi
4028  done
4029  rm -f core conftest*
4030  unset am_i
4031fi
4032{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
4033$as_echo "$am_cv_prog_cc_c_o" >&6; }
4034if test "$am_cv_prog_cc_c_o" != yes; then
4035   # Losing compiler, so override with the script.
4036   # FIXME: It is wrong to rewrite CC.
4037   # But if we don't then we get into trouble of one sort or another.
4038   # A longer-term fix would be to have automake use am__CC in this case,
4039   # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4040   CC="$am_aux_dir/compile $CC"
4041fi
4042ac_ext=c
4043ac_cpp='$CPP $CPPFLAGS'
4044ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4045ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4046ac_compiler_gnu=$ac_cv_c_compiler_gnu
4047
4048
4049depcc="$CC"   am_compiler_list=
4050
4051{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4052$as_echo_n "checking dependency style of $depcc... " >&6; }
4053if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4054  $as_echo_n "(cached) " >&6
4055else
4056  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4057  # We make a subdir and do the tests there.  Otherwise we can end up
4058  # making bogus files that we don't know about and never remove.  For
4059  # instance it was reported that on HP-UX the gcc test will end up
4060  # making a dummy file named 'D' -- because '-MD' means "put the output
4061  # in D".
4062  rm -rf conftest.dir
4063  mkdir conftest.dir
4064  # Copy depcomp to subdir because otherwise we won't find it if we're
4065  # using a relative directory.
4066  cp "$am_depcomp" conftest.dir
4067  cd conftest.dir
4068  # We will build objects and dependencies in a subdirectory because
4069  # it helps to detect inapplicable dependency modes.  For instance
4070  # both Tru64's cc and ICC support -MD to output dependencies as a
4071  # side effect of compilation, but ICC will put the dependencies in
4072  # the current directory while Tru64 will put them in the object
4073  # directory.
4074  mkdir sub
4075
4076  am_cv_CC_dependencies_compiler_type=none
4077  if test "$am_compiler_list" = ""; then
4078     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4079  fi
4080  am__universal=false
4081  case " $depcc " in #(
4082     *\ -arch\ *\ -arch\ *) am__universal=true ;;
4083     esac
4084
4085  for depmode in $am_compiler_list; do
4086    # Setup a source with many dependencies, because some compilers
4087    # like to wrap large dependency lists on column 80 (with \), and
4088    # we should not choose a depcomp mode which is confused by this.
4089    #
4090    # We need to recreate these files for each test, as the compiler may
4091    # overwrite some of them when testing with obscure command lines.
4092    # This happens at least with the AIX C compiler.
4093    : > sub/conftest.c
4094    for i in 1 2 3 4 5 6; do
4095      echo '#include "conftst'$i'.h"' >> sub/conftest.c
4096      # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4097      # Solaris 10 /bin/sh.
4098      echo '/* dummy */' > sub/conftst$i.h
4099    done
4100    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4101
4102    # We check with '-c' and '-o' for the sake of the "dashmstdout"
4103    # mode.  It turns out that the SunPro C++ compiler does not properly
4104    # handle '-M -o', and we need to detect this.  Also, some Intel
4105    # versions had trouble with output in subdirs.
4106    am__obj=sub/conftest.${OBJEXT-o}
4107    am__minus_obj="-o $am__obj"
4108    case $depmode in
4109    gcc)
4110      # This depmode causes a compiler race in universal mode.
4111      test "$am__universal" = false || continue
4112      ;;
4113    nosideeffect)
4114      # After this tag, mechanisms are not by side-effect, so they'll
4115      # only be used when explicitly requested.
4116      if test "x$enable_dependency_tracking" = xyes; then
4117	continue
4118      else
4119	break
4120      fi
4121      ;;
4122    msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4123      # This compiler won't grok '-c -o', but also, the minuso test has
4124      # not run yet.  These depmodes are late enough in the game, and
4125      # so weak that their functioning should not be impacted.
4126      am__obj=conftest.${OBJEXT-o}
4127      am__minus_obj=
4128      ;;
4129    none) break ;;
4130    esac
4131    if depmode=$depmode \
4132       source=sub/conftest.c object=$am__obj \
4133       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4134       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4135         >/dev/null 2>conftest.err &&
4136       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4137       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4138       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4139       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4140      # icc doesn't choke on unknown options, it will just issue warnings
4141      # or remarks (even with -Werror).  So we grep stderr for any message
4142      # that says an option was ignored or not supported.
4143      # When given -MP, icc 7.0 and 7.1 complain thusly:
4144      #   icc: Command line warning: ignoring option '-M'; no argument required
4145      # The diagnosis changed in icc 8.0:
4146      #   icc: Command line remark: option '-MP' not supported
4147      if (grep 'ignoring option' conftest.err ||
4148          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4149        am_cv_CC_dependencies_compiler_type=$depmode
4150        break
4151      fi
4152    fi
4153  done
4154
4155  cd ..
4156  rm -rf conftest.dir
4157else
4158  am_cv_CC_dependencies_compiler_type=none
4159fi
4160
4161fi
4162{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4163$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4164CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4165
4166 if
4167  test "x$enable_dependency_tracking" != xno \
4168  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4169  am__fastdepCC_TRUE=
4170  am__fastdepCC_FALSE='#'
4171else
4172  am__fastdepCC_TRUE='#'
4173  am__fastdepCC_FALSE=
4174fi
4175
4176
4177
4178if test -n "$ac_tool_prefix"; then
4179  for ac_prog in ar lib "link -lib"
4180  do
4181    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4182set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4183{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4184$as_echo_n "checking for $ac_word... " >&6; }
4185if ${ac_cv_prog_AR+:} false; then :
4186  $as_echo_n "(cached) " >&6
4187else
4188  if test -n "$AR"; then
4189  ac_cv_prog_AR="$AR" # Let the user override the test.
4190else
4191as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4192for as_dir in $PATH
4193do
4194  IFS=$as_save_IFS
4195  test -z "$as_dir" && as_dir=.
4196    for ac_exec_ext in '' $ac_executable_extensions; do
4197  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4198    ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
4199    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4200    break 2
4201  fi
4202done
4203  done
4204IFS=$as_save_IFS
4205
4206fi
4207fi
4208AR=$ac_cv_prog_AR
4209if test -n "$AR"; then
4210  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
4211$as_echo "$AR" >&6; }
4212else
4213  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4214$as_echo "no" >&6; }
4215fi
4216
4217
4218    test -n "$AR" && break
4219  done
4220fi
4221if test -z "$AR"; then
4222  ac_ct_AR=$AR
4223  for ac_prog in ar lib "link -lib"
4224do
4225  # Extract the first word of "$ac_prog", so it can be a program name with args.
4226set dummy $ac_prog; ac_word=$2
4227{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4228$as_echo_n "checking for $ac_word... " >&6; }
4229if ${ac_cv_prog_ac_ct_AR+:} false; then :
4230  $as_echo_n "(cached) " >&6
4231else
4232  if test -n "$ac_ct_AR"; then
4233  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
4234else
4235as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4236for as_dir in $PATH
4237do
4238  IFS=$as_save_IFS
4239  test -z "$as_dir" && as_dir=.
4240    for ac_exec_ext in '' $ac_executable_extensions; do
4241  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4242    ac_cv_prog_ac_ct_AR="$ac_prog"
4243    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4244    break 2
4245  fi
4246done
4247  done
4248IFS=$as_save_IFS
4249
4250fi
4251fi
4252ac_ct_AR=$ac_cv_prog_ac_ct_AR
4253if test -n "$ac_ct_AR"; then
4254  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
4255$as_echo "$ac_ct_AR" >&6; }
4256else
4257  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4258$as_echo "no" >&6; }
4259fi
4260
4261
4262  test -n "$ac_ct_AR" && break
4263done
4264
4265  if test "x$ac_ct_AR" = x; then
4266    AR="false"
4267  else
4268    case $cross_compiling:$ac_tool_warned in
4269yes:)
4270{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4271$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4272ac_tool_warned=yes ;;
4273esac
4274    AR=$ac_ct_AR
4275  fi
4276fi
4277
4278: ${AR=ar}
4279
4280{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the archiver ($AR) interface" >&5
4281$as_echo_n "checking the archiver ($AR) interface... " >&6; }
4282if ${am_cv_ar_interface+:} false; then :
4283  $as_echo_n "(cached) " >&6
4284else
4285  ac_ext=c
4286ac_cpp='$CPP $CPPFLAGS'
4287ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4288ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4289ac_compiler_gnu=$ac_cv_c_compiler_gnu
4290
4291   am_cv_ar_interface=ar
4292   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4293/* end confdefs.h.  */
4294int some_variable = 0;
4295_ACEOF
4296if ac_fn_c_try_compile "$LINENO"; then :
4297  am_ar_try='$AR cru libconftest.a conftest.$ac_objext >&5'
4298      { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5
4299  (eval $am_ar_try) 2>&5
4300  ac_status=$?
4301  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4302  test $ac_status = 0; }
4303      if test "$ac_status" -eq 0; then
4304        am_cv_ar_interface=ar
4305      else
4306        am_ar_try='$AR -NOLOGO -OUT:conftest.lib conftest.$ac_objext >&5'
4307        { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5
4308  (eval $am_ar_try) 2>&5
4309  ac_status=$?
4310  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4311  test $ac_status = 0; }
4312        if test "$ac_status" -eq 0; then
4313          am_cv_ar_interface=lib
4314        else
4315          am_cv_ar_interface=unknown
4316        fi
4317      fi
4318      rm -f conftest.lib libconftest.a
4319
4320fi
4321rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4322   ac_ext=c
4323ac_cpp='$CPP $CPPFLAGS'
4324ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4325ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4326ac_compiler_gnu=$ac_cv_c_compiler_gnu
4327
4328fi
4329{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_ar_interface" >&5
4330$as_echo "$am_cv_ar_interface" >&6; }
4331
4332case $am_cv_ar_interface in
4333ar)
4334  ;;
4335lib)
4336  # Microsoft lib, so override with the ar-lib wrapper script.
4337  # FIXME: It is wrong to rewrite AR.
4338  # But if we don't then we get into trouble of one sort or another.
4339  # A longer-term fix would be to have automake use am__AR in this case,
4340  # and then we could set am__AR="$am_aux_dir/ar-lib \$(AR)" or something
4341  # similar.
4342  AR="$am_aux_dir/ar-lib $AR"
4343  ;;
4344unknown)
4345  as_fn_error $? "could not determine $AR interface" "$LINENO" 5
4346  ;;
4347esac
4348
4349case `pwd` in
4350  *\ * | *\	*)
4351    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
4352$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
4353esac
4354
4355
4356
4357macro_version='2.4.2.418'
4358macro_revision='2.4.2.418'
4359
4360
4361
4362
4363
4364
4365
4366
4367
4368
4369
4370
4371
4372ltmain=$ac_aux_dir/ltmain.sh
4373
4374# Backslashify metacharacters that are still active within
4375# double-quoted strings.
4376sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
4377
4378# Same as above, but do not quote variable references.
4379double_quote_subst='s/\(["`\\]\)/\\\1/g'
4380
4381# Sed substitution to delay expansion of an escaped shell variable in a
4382# double_quote_subst'ed string.
4383delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
4384
4385# Sed substitution to delay expansion of an escaped single quote.
4386delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
4387
4388# Sed substitution to avoid accidental globbing in evaled expressions
4389no_glob_subst='s/\*/\\\*/g'
4390
4391ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
4392ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
4393ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
4394
4395{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
4396$as_echo_n "checking how to print strings... " >&6; }
4397# Test print first, because it will be a builtin if present.
4398if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
4399   test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
4400  ECHO='print -r --'
4401elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
4402  ECHO='printf %s\n'
4403else
4404  # Use this function as a fallback that always works.
4405  func_fallback_echo ()
4406  {
4407    eval 'cat <<_LTECHO_EOF
4408$1
4409_LTECHO_EOF'
4410  }
4411  ECHO='func_fallback_echo'
4412fi
4413
4414# func_echo_all arg...
4415# Invoke $ECHO with all args, space-separated.
4416func_echo_all ()
4417{
4418    $ECHO ""
4419}
4420
4421case $ECHO in
4422  printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
4423$as_echo "printf" >&6; } ;;
4424  print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
4425$as_echo "print -r" >&6; } ;;
4426  *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
4427$as_echo "cat" >&6; } ;;
4428esac
4429
4430
4431
4432
4433
4434
4435
4436
4437
4438
4439
4440
4441
4442
4443{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4444$as_echo_n "checking for a sed that does not truncate output... " >&6; }
4445if ${ac_cv_path_SED+:} false; then :
4446  $as_echo_n "(cached) " >&6
4447else
4448            ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4449     for ac_i in 1 2 3 4 5 6 7; do
4450       ac_script="$ac_script$as_nl$ac_script"
4451     done
4452     echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4453     { ac_script=; unset ac_script;}
4454     if test -z "$SED"; then
4455  ac_path_SED_found=false
4456  # Loop through the user's path and test for each of PROGNAME-LIST
4457  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4458for as_dir in $PATH
4459do
4460  IFS=$as_save_IFS
4461  test -z "$as_dir" && as_dir=.
4462    for ac_prog in sed gsed; do
4463    for ac_exec_ext in '' $ac_executable_extensions; do
4464      ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4465      as_fn_executable_p "$ac_path_SED" || continue
4466# Check for GNU ac_path_SED and select it if it is found.
4467  # Check for GNU $ac_path_SED
4468case `"$ac_path_SED" --version 2>&1` in
4469*GNU*)
4470  ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4471*)
4472  ac_count=0
4473  $as_echo_n 0123456789 >"conftest.in"
4474  while :
4475  do
4476    cat "conftest.in" "conftest.in" >"conftest.tmp"
4477    mv "conftest.tmp" "conftest.in"
4478    cp "conftest.in" "conftest.nl"
4479    $as_echo '' >> "conftest.nl"
4480    "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4481    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4482    as_fn_arith $ac_count + 1 && ac_count=$as_val
4483    if test $ac_count -gt ${ac_path_SED_max-0}; then
4484      # Best one so far, save it but keep looking for a better one
4485      ac_cv_path_SED="$ac_path_SED"
4486      ac_path_SED_max=$ac_count
4487    fi
4488    # 10*(2^10) chars as input seems more than enough
4489    test $ac_count -gt 10 && break
4490  done
4491  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4492esac
4493
4494      $ac_path_SED_found && break 3
4495    done
4496  done
4497  done
4498IFS=$as_save_IFS
4499  if test -z "$ac_cv_path_SED"; then
4500    as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4501  fi
4502else
4503  ac_cv_path_SED=$SED
4504fi
4505
4506fi
4507{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4508$as_echo "$ac_cv_path_SED" >&6; }
4509 SED="$ac_cv_path_SED"
4510  rm -f conftest.sed
4511
4512test -z "$SED" && SED=sed
4513Xsed="$SED -e 1s/^X//"
4514
4515
4516
4517
4518
4519
4520
4521
4522
4523
4524
4525{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4526$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4527if ${ac_cv_path_GREP+:} false; then :
4528  $as_echo_n "(cached) " >&6
4529else
4530  if test -z "$GREP"; then
4531  ac_path_GREP_found=false
4532  # Loop through the user's path and test for each of PROGNAME-LIST
4533  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4534for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4535do
4536  IFS=$as_save_IFS
4537  test -z "$as_dir" && as_dir=.
4538    for ac_prog in grep ggrep; do
4539    for ac_exec_ext in '' $ac_executable_extensions; do
4540      ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4541      as_fn_executable_p "$ac_path_GREP" || continue
4542# Check for GNU ac_path_GREP and select it if it is found.
4543  # Check for GNU $ac_path_GREP
4544case `"$ac_path_GREP" --version 2>&1` in
4545*GNU*)
4546  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4547*)
4548  ac_count=0
4549  $as_echo_n 0123456789 >"conftest.in"
4550  while :
4551  do
4552    cat "conftest.in" "conftest.in" >"conftest.tmp"
4553    mv "conftest.tmp" "conftest.in"
4554    cp "conftest.in" "conftest.nl"
4555    $as_echo 'GREP' >> "conftest.nl"
4556    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4557    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4558    as_fn_arith $ac_count + 1 && ac_count=$as_val
4559    if test $ac_count -gt ${ac_path_GREP_max-0}; then
4560      # Best one so far, save it but keep looking for a better one
4561      ac_cv_path_GREP="$ac_path_GREP"
4562      ac_path_GREP_max=$ac_count
4563    fi
4564    # 10*(2^10) chars as input seems more than enough
4565    test $ac_count -gt 10 && break
4566  done
4567  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4568esac
4569
4570      $ac_path_GREP_found && break 3
4571    done
4572  done
4573  done
4574IFS=$as_save_IFS
4575  if test -z "$ac_cv_path_GREP"; then
4576    as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4577  fi
4578else
4579  ac_cv_path_GREP=$GREP
4580fi
4581
4582fi
4583{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4584$as_echo "$ac_cv_path_GREP" >&6; }
4585 GREP="$ac_cv_path_GREP"
4586
4587
4588{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4589$as_echo_n "checking for egrep... " >&6; }
4590if ${ac_cv_path_EGREP+:} false; then :
4591  $as_echo_n "(cached) " >&6
4592else
4593  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4594   then ac_cv_path_EGREP="$GREP -E"
4595   else
4596     if test -z "$EGREP"; then
4597  ac_path_EGREP_found=false
4598  # Loop through the user's path and test for each of PROGNAME-LIST
4599  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4600for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4601do
4602  IFS=$as_save_IFS
4603  test -z "$as_dir" && as_dir=.
4604    for ac_prog in egrep; do
4605    for ac_exec_ext in '' $ac_executable_extensions; do
4606      ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4607      as_fn_executable_p "$ac_path_EGREP" || continue
4608# Check for GNU ac_path_EGREP and select it if it is found.
4609  # Check for GNU $ac_path_EGREP
4610case `"$ac_path_EGREP" --version 2>&1` in
4611*GNU*)
4612  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4613*)
4614  ac_count=0
4615  $as_echo_n 0123456789 >"conftest.in"
4616  while :
4617  do
4618    cat "conftest.in" "conftest.in" >"conftest.tmp"
4619    mv "conftest.tmp" "conftest.in"
4620    cp "conftest.in" "conftest.nl"
4621    $as_echo 'EGREP' >> "conftest.nl"
4622    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4623    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4624    as_fn_arith $ac_count + 1 && ac_count=$as_val
4625    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4626      # Best one so far, save it but keep looking for a better one
4627      ac_cv_path_EGREP="$ac_path_EGREP"
4628      ac_path_EGREP_max=$ac_count
4629    fi
4630    # 10*(2^10) chars as input seems more than enough
4631    test $ac_count -gt 10 && break
4632  done
4633  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4634esac
4635
4636      $ac_path_EGREP_found && break 3
4637    done
4638  done
4639  done
4640IFS=$as_save_IFS
4641  if test -z "$ac_cv_path_EGREP"; then
4642    as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4643  fi
4644else
4645  ac_cv_path_EGREP=$EGREP
4646fi
4647
4648   fi
4649fi
4650{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4651$as_echo "$ac_cv_path_EGREP" >&6; }
4652 EGREP="$ac_cv_path_EGREP"
4653
4654
4655{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4656$as_echo_n "checking for fgrep... " >&6; }
4657if ${ac_cv_path_FGREP+:} false; then :
4658  $as_echo_n "(cached) " >&6
4659else
4660  if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4661   then ac_cv_path_FGREP="$GREP -F"
4662   else
4663     if test -z "$FGREP"; then
4664  ac_path_FGREP_found=false
4665  # Loop through the user's path and test for each of PROGNAME-LIST
4666  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4667for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4668do
4669  IFS=$as_save_IFS
4670  test -z "$as_dir" && as_dir=.
4671    for ac_prog in fgrep; do
4672    for ac_exec_ext in '' $ac_executable_extensions; do
4673      ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4674      as_fn_executable_p "$ac_path_FGREP" || continue
4675# Check for GNU ac_path_FGREP and select it if it is found.
4676  # Check for GNU $ac_path_FGREP
4677case `"$ac_path_FGREP" --version 2>&1` in
4678*GNU*)
4679  ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4680*)
4681  ac_count=0
4682  $as_echo_n 0123456789 >"conftest.in"
4683  while :
4684  do
4685    cat "conftest.in" "conftest.in" >"conftest.tmp"
4686    mv "conftest.tmp" "conftest.in"
4687    cp "conftest.in" "conftest.nl"
4688    $as_echo 'FGREP' >> "conftest.nl"
4689    "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4690    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4691    as_fn_arith $ac_count + 1 && ac_count=$as_val
4692    if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4693      # Best one so far, save it but keep looking for a better one
4694      ac_cv_path_FGREP="$ac_path_FGREP"
4695      ac_path_FGREP_max=$ac_count
4696    fi
4697    # 10*(2^10) chars as input seems more than enough
4698    test $ac_count -gt 10 && break
4699  done
4700  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4701esac
4702
4703      $ac_path_FGREP_found && break 3
4704    done
4705  done
4706  done
4707IFS=$as_save_IFS
4708  if test -z "$ac_cv_path_FGREP"; then
4709    as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4710  fi
4711else
4712  ac_cv_path_FGREP=$FGREP
4713fi
4714
4715   fi
4716fi
4717{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
4718$as_echo "$ac_cv_path_FGREP" >&6; }
4719 FGREP="$ac_cv_path_FGREP"
4720
4721
4722test -z "$GREP" && GREP=grep
4723
4724
4725
4726
4727
4728
4729
4730
4731
4732
4733
4734
4735
4736
4737
4738
4739
4740
4741
4742# Check whether --with-gnu-ld was given.
4743if test "${with_gnu_ld+set}" = set; then :
4744  withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
4745else
4746  with_gnu_ld=no
4747fi
4748
4749ac_prog=ld
4750if test yes = "$GCC"; then
4751  # Check if gcc -print-prog-name=ld gives a path.
4752  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
4753$as_echo_n "checking for ld used by $CC... " >&6; }
4754  case $host in
4755  *-*-mingw*)
4756    # gcc leaves a trailing carriage return, which upsets mingw
4757    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4758  *)
4759    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4760  esac
4761  case $ac_prog in
4762    # Accept absolute paths.
4763    [\\/]* | ?:[\\/]*)
4764      re_direlt='/[^/][^/]*/\.\./'
4765      # Canonicalize the pathname of ld
4766      ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4767      while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4768	ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4769      done
4770      test -z "$LD" && LD=$ac_prog
4771      ;;
4772  "")
4773    # If it fails, then pretend we aren't using GCC.
4774    ac_prog=ld
4775    ;;
4776  *)
4777    # If it is relative, then search for the first ld in PATH.
4778    with_gnu_ld=unknown
4779    ;;
4780  esac
4781elif test yes = "$with_gnu_ld"; then
4782  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
4783$as_echo_n "checking for GNU ld... " >&6; }
4784else
4785  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
4786$as_echo_n "checking for non-GNU ld... " >&6; }
4787fi
4788if ${lt_cv_path_LD+:} false; then :
4789  $as_echo_n "(cached) " >&6
4790else
4791  if test -z "$LD"; then
4792  lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
4793  for ac_dir in $PATH; do
4794    IFS=$lt_save_ifs
4795    test -z "$ac_dir" && ac_dir=.
4796    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4797      lt_cv_path_LD=$ac_dir/$ac_prog
4798      # Check to see if the program is GNU ld.  I'd rather use --version,
4799      # but apparently some variants of GNU ld only accept -v.
4800      # Break only if it was the GNU/non-GNU ld that we prefer.
4801      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4802      *GNU* | *'with BFD'*)
4803	test no != "$with_gnu_ld" && break
4804	;;
4805      *)
4806	test yes != "$with_gnu_ld" && break
4807	;;
4808      esac
4809    fi
4810  done
4811  IFS=$lt_save_ifs
4812else
4813  lt_cv_path_LD=$LD # Let the user override the test with a path.
4814fi
4815fi
4816
4817LD=$lt_cv_path_LD
4818if test -n "$LD"; then
4819  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
4820$as_echo "$LD" >&6; }
4821else
4822  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4823$as_echo "no" >&6; }
4824fi
4825test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
4826{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
4827$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4828if ${lt_cv_prog_gnu_ld+:} false; then :
4829  $as_echo_n "(cached) " >&6
4830else
4831  # I'd rather use --version here, but apparently some GNU lds only accept -v.
4832case `$LD -v 2>&1 </dev/null` in
4833*GNU* | *'with BFD'*)
4834  lt_cv_prog_gnu_ld=yes
4835  ;;
4836*)
4837  lt_cv_prog_gnu_ld=no
4838  ;;
4839esac
4840fi
4841{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
4842$as_echo "$lt_cv_prog_gnu_ld" >&6; }
4843with_gnu_ld=$lt_cv_prog_gnu_ld
4844
4845
4846
4847
4848
4849
4850
4851
4852
4853{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
4854$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
4855if ${lt_cv_path_NM+:} false; then :
4856  $as_echo_n "(cached) " >&6
4857else
4858  if test -n "$NM"; then
4859  # Let the user override the test.
4860  lt_cv_path_NM=$NM
4861else
4862  lt_nm_to_check=${ac_tool_prefix}nm
4863  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4864    lt_nm_to_check="$lt_nm_to_check nm"
4865  fi
4866  for lt_tmp_nm in $lt_nm_to_check; do
4867    lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
4868    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4869      IFS=$lt_save_ifs
4870      test -z "$ac_dir" && ac_dir=.
4871      tmp_nm=$ac_dir/$lt_tmp_nm
4872      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
4873	# Check to see if the nm accepts a BSD-compat flag.
4874	# Adding the 'sed 1q' prevents false positives on HP-UX, which says:
4875	#   nm: unknown option "B" ignored
4876	# Tru64's nm complains that /dev/null is an invalid object file
4877	case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4878	*/dev/null* | *'Invalid file or object type'*)
4879	  lt_cv_path_NM="$tmp_nm -B"
4880	  break 2
4881	  ;;
4882	*)
4883	  case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4884	  */dev/null*)
4885	    lt_cv_path_NM="$tmp_nm -p"
4886	    break 2
4887	    ;;
4888	  *)
4889	    lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4890	    continue # so that we can try to find one that supports BSD flags
4891	    ;;
4892	  esac
4893	  ;;
4894	esac
4895      fi
4896    done
4897    IFS=$lt_save_ifs
4898  done
4899  : ${lt_cv_path_NM=no}
4900fi
4901fi
4902{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
4903$as_echo "$lt_cv_path_NM" >&6; }
4904if test no != "$lt_cv_path_NM"; then
4905  NM=$lt_cv_path_NM
4906else
4907  # Didn't find any BSD compatible name lister, look for dumpbin.
4908  if test -n "$DUMPBIN"; then :
4909    # Let the user override the test.
4910  else
4911    if test -n "$ac_tool_prefix"; then
4912  for ac_prog in dumpbin "link -dump"
4913  do
4914    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4915set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4916{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4917$as_echo_n "checking for $ac_word... " >&6; }
4918if ${ac_cv_prog_DUMPBIN+:} false; then :
4919  $as_echo_n "(cached) " >&6
4920else
4921  if test -n "$DUMPBIN"; then
4922  ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
4923else
4924as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4925for as_dir in $PATH
4926do
4927  IFS=$as_save_IFS
4928  test -z "$as_dir" && as_dir=.
4929    for ac_exec_ext in '' $ac_executable_extensions; do
4930  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4931    ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
4932    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4933    break 2
4934  fi
4935done
4936  done
4937IFS=$as_save_IFS
4938
4939fi
4940fi
4941DUMPBIN=$ac_cv_prog_DUMPBIN
4942if test -n "$DUMPBIN"; then
4943  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
4944$as_echo "$DUMPBIN" >&6; }
4945else
4946  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4947$as_echo "no" >&6; }
4948fi
4949
4950
4951    test -n "$DUMPBIN" && break
4952  done
4953fi
4954if test -z "$DUMPBIN"; then
4955  ac_ct_DUMPBIN=$DUMPBIN
4956  for ac_prog in dumpbin "link -dump"
4957do
4958  # Extract the first word of "$ac_prog", so it can be a program name with args.
4959set dummy $ac_prog; ac_word=$2
4960{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4961$as_echo_n "checking for $ac_word... " >&6; }
4962if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
4963  $as_echo_n "(cached) " >&6
4964else
4965  if test -n "$ac_ct_DUMPBIN"; then
4966  ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
4967else
4968as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4969for as_dir in $PATH
4970do
4971  IFS=$as_save_IFS
4972  test -z "$as_dir" && as_dir=.
4973    for ac_exec_ext in '' $ac_executable_extensions; do
4974  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4975    ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
4976    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4977    break 2
4978  fi
4979done
4980  done
4981IFS=$as_save_IFS
4982
4983fi
4984fi
4985ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
4986if test -n "$ac_ct_DUMPBIN"; then
4987  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
4988$as_echo "$ac_ct_DUMPBIN" >&6; }
4989else
4990  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4991$as_echo "no" >&6; }
4992fi
4993
4994
4995  test -n "$ac_ct_DUMPBIN" && break
4996done
4997
4998  if test "x$ac_ct_DUMPBIN" = x; then
4999    DUMPBIN=":"
5000  else
5001    case $cross_compiling:$ac_tool_warned in
5002yes:)
5003{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5004$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5005ac_tool_warned=yes ;;
5006esac
5007    DUMPBIN=$ac_ct_DUMPBIN
5008  fi
5009fi
5010
5011    case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in
5012    *COFF*)
5013      DUMPBIN="$DUMPBIN -symbols -headers"
5014      ;;
5015    *)
5016      DUMPBIN=:
5017      ;;
5018    esac
5019  fi
5020
5021  if test : != "$DUMPBIN"; then
5022    NM=$DUMPBIN
5023  fi
5024fi
5025test -z "$NM" && NM=nm
5026
5027
5028
5029
5030
5031
5032{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5033$as_echo_n "checking the name lister ($NM) interface... " >&6; }
5034if ${lt_cv_nm_interface+:} false; then :
5035  $as_echo_n "(cached) " >&6
5036else
5037  lt_cv_nm_interface="BSD nm"
5038  echo "int some_variable = 0;" > conftest.$ac_ext
5039  (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
5040  (eval "$ac_compile" 2>conftest.err)
5041  cat conftest.err >&5
5042  (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5043  (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5044  cat conftest.err >&5
5045  (eval echo "\"\$as_me:$LINENO: output\"" >&5)
5046  cat conftest.out >&5
5047  if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5048    lt_cv_nm_interface="MS dumpbin"
5049  fi
5050  rm -f conftest*
5051fi
5052{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5053$as_echo "$lt_cv_nm_interface" >&6; }
5054
5055{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5056$as_echo_n "checking whether ln -s works... " >&6; }
5057LN_S=$as_ln_s
5058if test "$LN_S" = "ln -s"; then
5059  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5060$as_echo "yes" >&6; }
5061else
5062  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5063$as_echo "no, using $LN_S" >&6; }
5064fi
5065
5066# find the maximum length of command line arguments
5067{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5068$as_echo_n "checking the maximum length of command line arguments... " >&6; }
5069if ${lt_cv_sys_max_cmd_len+:} false; then :
5070  $as_echo_n "(cached) " >&6
5071else
5072    i=0
5073  teststring=ABCD
5074
5075  case $build_os in
5076  msdosdjgpp*)
5077    # On DJGPP, this test can blow up pretty badly due to problems in libc
5078    # (any single argument exceeding 2000 bytes causes a buffer overrun
5079    # during glob expansion).  Even if it were fixed, the result of this
5080    # check would be larger than it should be.
5081    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
5082    ;;
5083
5084  gnu*)
5085    # Under GNU Hurd, this test is not required because there is
5086    # no limit to the length of command line arguments.
5087    # Libtool will interpret -1 as no limit whatsoever
5088    lt_cv_sys_max_cmd_len=-1;
5089    ;;
5090
5091  cygwin* | mingw* | cegcc*)
5092    # On Win9x/ME, this test blows up -- it succeeds, but takes
5093    # about 5 minutes as the teststring grows exponentially.
5094    # Worse, since 9x/ME are not pre-emptively multitasking,
5095    # you end up with a "frozen" computer, even though with patience
5096    # the test eventually succeeds (with a max line length of 256k).
5097    # Instead, let's just punt: use the minimum linelength reported by
5098    # all of the supported platforms: 8192 (on NT/2K/XP).
5099    lt_cv_sys_max_cmd_len=8192;
5100    ;;
5101
5102  mint*)
5103    # On MiNT this can take a long time and run out of memory.
5104    lt_cv_sys_max_cmd_len=8192;
5105    ;;
5106
5107  amigaos*)
5108    # On AmigaOS with pdksh, this test takes hours, literally.
5109    # So we just punt and use a minimum line length of 8192.
5110    lt_cv_sys_max_cmd_len=8192;
5111    ;;
5112
5113  bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*)
5114    # This has been around since 386BSD, at least.  Likely further.
5115    if test -x /sbin/sysctl; then
5116      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5117    elif test -x /usr/sbin/sysctl; then
5118      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5119    else
5120      lt_cv_sys_max_cmd_len=65536	# usable default for all BSDs
5121    fi
5122    # And add a safety zone
5123    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5124    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5125    ;;
5126
5127  interix*)
5128    # We know the value 262144 and hardcode it with a safety zone (like BSD)
5129    lt_cv_sys_max_cmd_len=196608
5130    ;;
5131
5132  os2*)
5133    # The test takes a long time on OS/2.
5134    lt_cv_sys_max_cmd_len=8192
5135    ;;
5136
5137  osf*)
5138    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5139    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5140    # nice to cause kernel panics so lets avoid the loop below.
5141    # First set a reasonable default.
5142    lt_cv_sys_max_cmd_len=16384
5143    #
5144    if test -x /sbin/sysconfig; then
5145      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5146        *1*) lt_cv_sys_max_cmd_len=-1 ;;
5147      esac
5148    fi
5149    ;;
5150  sco3.2v5*)
5151    lt_cv_sys_max_cmd_len=102400
5152    ;;
5153  sysv5* | sco5v6* | sysv4.2uw2*)
5154    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5155    if test -n "$kargmax"; then
5156      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[	 ]//'`
5157    else
5158      lt_cv_sys_max_cmd_len=32768
5159    fi
5160    ;;
5161  *)
5162    lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5163    if test -n "$lt_cv_sys_max_cmd_len" && \
5164       test undefined != "$lt_cv_sys_max_cmd_len"; then
5165      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5166      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5167    else
5168      # Make teststring a little bigger before we do anything with it.
5169      # a 1K string should be a reasonable start.
5170      for i in 1 2 3 4 5 6 7 8; do
5171        teststring=$teststring$teststring
5172      done
5173      SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5174      # If test is not a shell built-in, we'll probably end up computing a
5175      # maximum length that is only half of the actual maximum length, but
5176      # we can't tell.
5177      while { test X`env echo "$teststring$teststring" 2>/dev/null` \
5178	         = "X$teststring$teststring"; } >/dev/null 2>&1 &&
5179	      test 17 != "$i" # 1/2 MB should be enough
5180      do
5181        i=`expr $i + 1`
5182        teststring=$teststring$teststring
5183      done
5184      # Only check the string length outside the loop.
5185      lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5186      teststring=
5187      # Add a significant safety factor because C++ compilers can tack on
5188      # massive amounts of additional arguments before passing them to the
5189      # linker.  It appears as though 1/2 is a usable value.
5190      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5191    fi
5192    ;;
5193  esac
5194
5195fi
5196
5197if test -n "$lt_cv_sys_max_cmd_len"; then
5198  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5199$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5200else
5201  { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5202$as_echo "none" >&6; }
5203fi
5204max_cmd_len=$lt_cv_sys_max_cmd_len
5205
5206
5207
5208
5209
5210
5211: ${CP="cp -f"}
5212: ${MV="mv -f"}
5213: ${RM="rm -f"}
5214
5215if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5216  lt_unset=unset
5217else
5218  lt_unset=false
5219fi
5220
5221
5222
5223
5224
5225# test EBCDIC or ASCII
5226case `echo X|tr X '\101'` in
5227 A) # ASCII based system
5228    # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5229  lt_SP2NL='tr \040 \012'
5230  lt_NL2SP='tr \015\012 \040\040'
5231  ;;
5232 *) # EBCDIC based system
5233  lt_SP2NL='tr \100 \n'
5234  lt_NL2SP='tr \r\n \100\100'
5235  ;;
5236esac
5237
5238
5239
5240
5241
5242
5243
5244
5245
5246{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
5247$as_echo_n "checking how to convert $build file names to $host format... " >&6; }
5248if ${lt_cv_to_host_file_cmd+:} false; then :
5249  $as_echo_n "(cached) " >&6
5250else
5251  case $host in
5252  *-*-mingw* )
5253    case $build in
5254      *-*-mingw* ) # actually msys
5255        lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
5256        ;;
5257      *-*-cygwin* )
5258        lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
5259        ;;
5260      * ) # otherwise, assume *nix
5261        lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
5262        ;;
5263    esac
5264    ;;
5265  *-*-cygwin* )
5266    case $build in
5267      *-*-mingw* ) # actually msys
5268        lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
5269        ;;
5270      *-*-cygwin* )
5271        lt_cv_to_host_file_cmd=func_convert_file_noop
5272        ;;
5273      * ) # otherwise, assume *nix
5274        lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
5275        ;;
5276    esac
5277    ;;
5278  * ) # unhandled hosts (and "normal" native builds)
5279    lt_cv_to_host_file_cmd=func_convert_file_noop
5280    ;;
5281esac
5282
5283fi
5284
5285to_host_file_cmd=$lt_cv_to_host_file_cmd
5286{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
5287$as_echo "$lt_cv_to_host_file_cmd" >&6; }
5288
5289
5290
5291
5292
5293{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
5294$as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
5295if ${lt_cv_to_tool_file_cmd+:} false; then :
5296  $as_echo_n "(cached) " >&6
5297else
5298  #assume ordinary cross tools, or native build.
5299lt_cv_to_tool_file_cmd=func_convert_file_noop
5300case $host in
5301  *-*-mingw* )
5302    case $build in
5303      *-*-mingw* ) # actually msys
5304        lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
5305        ;;
5306    esac
5307    ;;
5308esac
5309
5310fi
5311
5312to_tool_file_cmd=$lt_cv_to_tool_file_cmd
5313{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
5314$as_echo "$lt_cv_to_tool_file_cmd" >&6; }
5315
5316
5317
5318
5319
5320{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5321$as_echo_n "checking for $LD option to reload object files... " >&6; }
5322if ${lt_cv_ld_reload_flag+:} false; then :
5323  $as_echo_n "(cached) " >&6
5324else
5325  lt_cv_ld_reload_flag='-r'
5326fi
5327{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5328$as_echo "$lt_cv_ld_reload_flag" >&6; }
5329reload_flag=$lt_cv_ld_reload_flag
5330case $reload_flag in
5331"" | " "*) ;;
5332*) reload_flag=" $reload_flag" ;;
5333esac
5334reload_cmds='$LD$reload_flag -o $output$reload_objs'
5335case $host_os in
5336  cygwin* | mingw* | pw32* | cegcc*)
5337    if test yes != "$GCC"; then
5338      reload_cmds=false
5339    fi
5340    ;;
5341  darwin*)
5342    if test yes = "$GCC"; then
5343      reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
5344    else
5345      reload_cmds='$LD$reload_flag -o $output$reload_objs'
5346    fi
5347    ;;
5348esac
5349
5350
5351
5352
5353
5354
5355
5356
5357
5358if test -n "$ac_tool_prefix"; then
5359  # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5360set dummy ${ac_tool_prefix}objdump; ac_word=$2
5361{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5362$as_echo_n "checking for $ac_word... " >&6; }
5363if ${ac_cv_prog_OBJDUMP+:} false; then :
5364  $as_echo_n "(cached) " >&6
5365else
5366  if test -n "$OBJDUMP"; then
5367  ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5368else
5369as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5370for as_dir in $PATH
5371do
5372  IFS=$as_save_IFS
5373  test -z "$as_dir" && as_dir=.
5374    for ac_exec_ext in '' $ac_executable_extensions; do
5375  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5376    ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5377    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5378    break 2
5379  fi
5380done
5381  done
5382IFS=$as_save_IFS
5383
5384fi
5385fi
5386OBJDUMP=$ac_cv_prog_OBJDUMP
5387if test -n "$OBJDUMP"; then
5388  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5389$as_echo "$OBJDUMP" >&6; }
5390else
5391  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5392$as_echo "no" >&6; }
5393fi
5394
5395
5396fi
5397if test -z "$ac_cv_prog_OBJDUMP"; then
5398  ac_ct_OBJDUMP=$OBJDUMP
5399  # Extract the first word of "objdump", so it can be a program name with args.
5400set dummy objdump; ac_word=$2
5401{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5402$as_echo_n "checking for $ac_word... " >&6; }
5403if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
5404  $as_echo_n "(cached) " >&6
5405else
5406  if test -n "$ac_ct_OBJDUMP"; then
5407  ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5408else
5409as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5410for as_dir in $PATH
5411do
5412  IFS=$as_save_IFS
5413  test -z "$as_dir" && as_dir=.
5414    for ac_exec_ext in '' $ac_executable_extensions; do
5415  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5416    ac_cv_prog_ac_ct_OBJDUMP="objdump"
5417    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5418    break 2
5419  fi
5420done
5421  done
5422IFS=$as_save_IFS
5423
5424fi
5425fi
5426ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5427if test -n "$ac_ct_OBJDUMP"; then
5428  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5429$as_echo "$ac_ct_OBJDUMP" >&6; }
5430else
5431  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5432$as_echo "no" >&6; }
5433fi
5434
5435  if test "x$ac_ct_OBJDUMP" = x; then
5436    OBJDUMP="false"
5437  else
5438    case $cross_compiling:$ac_tool_warned in
5439yes:)
5440{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5441$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5442ac_tool_warned=yes ;;
5443esac
5444    OBJDUMP=$ac_ct_OBJDUMP
5445  fi
5446else
5447  OBJDUMP="$ac_cv_prog_OBJDUMP"
5448fi
5449
5450test -z "$OBJDUMP" && OBJDUMP=objdump
5451
5452
5453
5454
5455
5456
5457
5458
5459
5460{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5461$as_echo_n "checking how to recognize dependent libraries... " >&6; }
5462if ${lt_cv_deplibs_check_method+:} false; then :
5463  $as_echo_n "(cached) " >&6
5464else
5465  lt_cv_file_magic_cmd='$MAGIC_CMD'
5466lt_cv_file_magic_test_file=
5467lt_cv_deplibs_check_method='unknown'
5468# Need to set the preceding variable on all platforms that support
5469# interlibrary dependencies.
5470# 'none' -- dependencies not supported.
5471# 'unknown' -- same as none, but documents that we really don't know.
5472# 'pass_all' -- all dependencies passed with no checks.
5473# 'test_compile' -- check by making test program.
5474# 'file_magic [[regex]]' -- check by looking for files in library path
5475# that responds to the $file_magic_cmd with a given extended regex.
5476# If you have 'file' or equivalent on your system and you're not sure
5477# whether 'pass_all' will *always* work, you probably want this one.
5478
5479case $host_os in
5480aix[4-9]*)
5481  lt_cv_deplibs_check_method=pass_all
5482  ;;
5483
5484beos*)
5485  lt_cv_deplibs_check_method=pass_all
5486  ;;
5487
5488bsdi[45]*)
5489  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5490  lt_cv_file_magic_cmd='/usr/bin/file -L'
5491  lt_cv_file_magic_test_file=/shlib/libc.so
5492  ;;
5493
5494cygwin*)
5495  # func_win32_libid is a shell function defined in ltmain.sh
5496  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5497  lt_cv_file_magic_cmd='func_win32_libid'
5498  ;;
5499
5500mingw* | pw32*)
5501  # Base MSYS/MinGW do not provide the 'file' command needed by
5502  # func_win32_libid shell function, so use a weaker test based on 'objdump',
5503  # unless we find 'file', for example because we are cross-compiling.
5504  if ( file / ) >/dev/null 2>&1; then
5505    lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5506    lt_cv_file_magic_cmd='func_win32_libid'
5507  else
5508    # Keep this pattern in sync with the one in func_win32_libid.
5509    lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
5510    lt_cv_file_magic_cmd='$OBJDUMP -f'
5511  fi
5512  ;;
5513
5514cegcc*)
5515  # use the weaker test based on 'objdump'. See mingw*.
5516  lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5517  lt_cv_file_magic_cmd='$OBJDUMP -f'
5518  ;;
5519
5520darwin* | rhapsody*)
5521  lt_cv_deplibs_check_method=pass_all
5522  ;;
5523
5524freebsd* | dragonfly*)
5525  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5526    case $host_cpu in
5527    i*86 )
5528      # Not sure whether the presence of OpenBSD here was a mistake.
5529      # Let's accept both of them until this is cleared up.
5530      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5531      lt_cv_file_magic_cmd=/usr/bin/file
5532      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5533      ;;
5534    esac
5535  else
5536    lt_cv_deplibs_check_method=pass_all
5537  fi
5538  ;;
5539
5540haiku*)
5541  lt_cv_deplibs_check_method=pass_all
5542  ;;
5543
5544hpux10.20* | hpux11*)
5545  lt_cv_file_magic_cmd=/usr/bin/file
5546  case $host_cpu in
5547  ia64*)
5548    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5549    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5550    ;;
5551  hppa*64*)
5552    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]'
5553    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5554    ;;
5555  *)
5556    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
5557    lt_cv_file_magic_test_file=/usr/lib/libc.sl
5558    ;;
5559  esac
5560  ;;
5561
5562interix[3-9]*)
5563  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5564  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5565  ;;
5566
5567irix5* | irix6* | nonstopux*)
5568  case $LD in
5569  *-32|*"-32 ") libmagic=32-bit;;
5570  *-n32|*"-n32 ") libmagic=N32;;
5571  *-64|*"-64 ") libmagic=64-bit;;
5572  *) libmagic=never-match;;
5573  esac
5574  lt_cv_deplibs_check_method=pass_all
5575  ;;
5576
5577# This must be glibc/ELF.
5578linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
5579  lt_cv_deplibs_check_method=pass_all
5580  ;;
5581
5582netbsd*)
5583  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5584    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5585  else
5586    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5587  fi
5588  ;;
5589
5590newos6*)
5591  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5592  lt_cv_file_magic_cmd=/usr/bin/file
5593  lt_cv_file_magic_test_file=/usr/lib/libnls.so
5594  ;;
5595
5596*nto* | *qnx*)
5597  lt_cv_deplibs_check_method=pass_all
5598  ;;
5599
5600openbsd* | bitrig*)
5601  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
5602    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5603  else
5604    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5605  fi
5606  ;;
5607
5608osf3* | osf4* | osf5*)
5609  lt_cv_deplibs_check_method=pass_all
5610  ;;
5611
5612rdos*)
5613  lt_cv_deplibs_check_method=pass_all
5614  ;;
5615
5616solaris*)
5617  lt_cv_deplibs_check_method=pass_all
5618  ;;
5619
5620sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5621  lt_cv_deplibs_check_method=pass_all
5622  ;;
5623
5624sysv4 | sysv4.3*)
5625  case $host_vendor in
5626  motorola)
5627    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]'
5628    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5629    ;;
5630  ncr)
5631    lt_cv_deplibs_check_method=pass_all
5632    ;;
5633  sequent)
5634    lt_cv_file_magic_cmd='/bin/file'
5635    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5636    ;;
5637  sni)
5638    lt_cv_file_magic_cmd='/bin/file'
5639    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5640    lt_cv_file_magic_test_file=/lib/libc.so
5641    ;;
5642  siemens)
5643    lt_cv_deplibs_check_method=pass_all
5644    ;;
5645  pc)
5646    lt_cv_deplibs_check_method=pass_all
5647    ;;
5648  esac
5649  ;;
5650
5651tpf*)
5652  lt_cv_deplibs_check_method=pass_all
5653  ;;
5654esac
5655
5656fi
5657{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
5658$as_echo "$lt_cv_deplibs_check_method" >&6; }
5659
5660file_magic_glob=
5661want_nocaseglob=no
5662if test "$build" = "$host"; then
5663  case $host_os in
5664  mingw* | pw32*)
5665    if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
5666      want_nocaseglob=yes
5667    else
5668      file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
5669    fi
5670    ;;
5671  esac
5672fi
5673
5674file_magic_cmd=$lt_cv_file_magic_cmd
5675deplibs_check_method=$lt_cv_deplibs_check_method
5676test -z "$deplibs_check_method" && deplibs_check_method=unknown
5677
5678
5679
5680
5681
5682
5683
5684
5685
5686
5687
5688
5689
5690
5691
5692
5693
5694
5695
5696
5697
5698
5699if test -n "$ac_tool_prefix"; then
5700  # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
5701set dummy ${ac_tool_prefix}dlltool; ac_word=$2
5702{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5703$as_echo_n "checking for $ac_word... " >&6; }
5704if ${ac_cv_prog_DLLTOOL+:} false; then :
5705  $as_echo_n "(cached) " >&6
5706else
5707  if test -n "$DLLTOOL"; then
5708  ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
5709else
5710as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5711for as_dir in $PATH
5712do
5713  IFS=$as_save_IFS
5714  test -z "$as_dir" && as_dir=.
5715    for ac_exec_ext in '' $ac_executable_extensions; do
5716  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5717    ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
5718    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5719    break 2
5720  fi
5721done
5722  done
5723IFS=$as_save_IFS
5724
5725fi
5726fi
5727DLLTOOL=$ac_cv_prog_DLLTOOL
5728if test -n "$DLLTOOL"; then
5729  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
5730$as_echo "$DLLTOOL" >&6; }
5731else
5732  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5733$as_echo "no" >&6; }
5734fi
5735
5736
5737fi
5738if test -z "$ac_cv_prog_DLLTOOL"; then
5739  ac_ct_DLLTOOL=$DLLTOOL
5740  # Extract the first word of "dlltool", so it can be a program name with args.
5741set dummy dlltool; ac_word=$2
5742{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5743$as_echo_n "checking for $ac_word... " >&6; }
5744if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
5745  $as_echo_n "(cached) " >&6
5746else
5747  if test -n "$ac_ct_DLLTOOL"; then
5748  ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
5749else
5750as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5751for as_dir in $PATH
5752do
5753  IFS=$as_save_IFS
5754  test -z "$as_dir" && as_dir=.
5755    for ac_exec_ext in '' $ac_executable_extensions; do
5756  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5757    ac_cv_prog_ac_ct_DLLTOOL="dlltool"
5758    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5759    break 2
5760  fi
5761done
5762  done
5763IFS=$as_save_IFS
5764
5765fi
5766fi
5767ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
5768if test -n "$ac_ct_DLLTOOL"; then
5769  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
5770$as_echo "$ac_ct_DLLTOOL" >&6; }
5771else
5772  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5773$as_echo "no" >&6; }
5774fi
5775
5776  if test "x$ac_ct_DLLTOOL" = x; then
5777    DLLTOOL="false"
5778  else
5779    case $cross_compiling:$ac_tool_warned in
5780yes:)
5781{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5782$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5783ac_tool_warned=yes ;;
5784esac
5785    DLLTOOL=$ac_ct_DLLTOOL
5786  fi
5787else
5788  DLLTOOL="$ac_cv_prog_DLLTOOL"
5789fi
5790
5791test -z "$DLLTOOL" && DLLTOOL=dlltool
5792
5793
5794
5795
5796
5797
5798
5799
5800
5801
5802{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
5803$as_echo_n "checking how to associate runtime and link libraries... " >&6; }
5804if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
5805  $as_echo_n "(cached) " >&6
5806else
5807  lt_cv_sharedlib_from_linklib_cmd='unknown'
5808
5809case $host_os in
5810cygwin* | mingw* | pw32* | cegcc*)
5811  # two different shell functions defined in ltmain.sh;
5812  # decide which one to use based on capabilities of $DLLTOOL
5813  case `$DLLTOOL --help 2>&1` in
5814  *--identify-strict*)
5815    lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
5816    ;;
5817  *)
5818    lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
5819    ;;
5820  esac
5821  ;;
5822*)
5823  # fallback: assume linklib IS sharedlib
5824  lt_cv_sharedlib_from_linklib_cmd=$ECHO
5825  ;;
5826esac
5827
5828fi
5829{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
5830$as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
5831sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
5832test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
5833
5834
5835
5836
5837
5838
5839
5840if test -n "$ac_tool_prefix"; then
5841  for ac_prog in ar
5842  do
5843    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5844set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5845{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5846$as_echo_n "checking for $ac_word... " >&6; }
5847if ${ac_cv_prog_AR+:} false; then :
5848  $as_echo_n "(cached) " >&6
5849else
5850  if test -n "$AR"; then
5851  ac_cv_prog_AR="$AR" # Let the user override the test.
5852else
5853as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5854for as_dir in $PATH
5855do
5856  IFS=$as_save_IFS
5857  test -z "$as_dir" && as_dir=.
5858    for ac_exec_ext in '' $ac_executable_extensions; do
5859  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5860    ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
5861    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5862    break 2
5863  fi
5864done
5865  done
5866IFS=$as_save_IFS
5867
5868fi
5869fi
5870AR=$ac_cv_prog_AR
5871if test -n "$AR"; then
5872  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5873$as_echo "$AR" >&6; }
5874else
5875  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5876$as_echo "no" >&6; }
5877fi
5878
5879
5880    test -n "$AR" && break
5881  done
5882fi
5883if test -z "$AR"; then
5884  ac_ct_AR=$AR
5885  for ac_prog in ar
5886do
5887  # Extract the first word of "$ac_prog", so it can be a program name with args.
5888set dummy $ac_prog; ac_word=$2
5889{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5890$as_echo_n "checking for $ac_word... " >&6; }
5891if ${ac_cv_prog_ac_ct_AR+:} false; then :
5892  $as_echo_n "(cached) " >&6
5893else
5894  if test -n "$ac_ct_AR"; then
5895  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5896else
5897as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5898for as_dir in $PATH
5899do
5900  IFS=$as_save_IFS
5901  test -z "$as_dir" && as_dir=.
5902    for ac_exec_ext in '' $ac_executable_extensions; do
5903  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5904    ac_cv_prog_ac_ct_AR="$ac_prog"
5905    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5906    break 2
5907  fi
5908done
5909  done
5910IFS=$as_save_IFS
5911
5912fi
5913fi
5914ac_ct_AR=$ac_cv_prog_ac_ct_AR
5915if test -n "$ac_ct_AR"; then
5916  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5917$as_echo "$ac_ct_AR" >&6; }
5918else
5919  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5920$as_echo "no" >&6; }
5921fi
5922
5923
5924  test -n "$ac_ct_AR" && break
5925done
5926
5927  if test "x$ac_ct_AR" = x; then
5928    AR="false"
5929  else
5930    case $cross_compiling:$ac_tool_warned in
5931yes:)
5932{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5933$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5934ac_tool_warned=yes ;;
5935esac
5936    AR=$ac_ct_AR
5937  fi
5938fi
5939
5940: ${AR=ar}
5941: ${AR_FLAGS=cru}
5942
5943
5944
5945
5946
5947
5948
5949
5950
5951
5952
5953{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
5954$as_echo_n "checking for archiver @FILE support... " >&6; }
5955if ${lt_cv_ar_at_file+:} false; then :
5956  $as_echo_n "(cached) " >&6
5957else
5958  lt_cv_ar_at_file=no
5959   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5960/* end confdefs.h.  */
5961
5962int
5963main ()
5964{
5965
5966  ;
5967  return 0;
5968}
5969_ACEOF
5970if ac_fn_c_try_compile "$LINENO"; then :
5971  echo conftest.$ac_objext > conftest.lst
5972      lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
5973      { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
5974  (eval $lt_ar_try) 2>&5
5975  ac_status=$?
5976  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5977  test $ac_status = 0; }
5978      if test 0 -eq "$ac_status"; then
5979	# Ensure the archiver fails upon bogus file names.
5980	rm -f conftest.$ac_objext libconftest.a
5981	{ { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
5982  (eval $lt_ar_try) 2>&5
5983  ac_status=$?
5984  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5985  test $ac_status = 0; }
5986	if test 0 -ne "$ac_status"; then
5987          lt_cv_ar_at_file=@
5988        fi
5989      fi
5990      rm -f conftest.* libconftest.a
5991
5992fi
5993rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5994
5995fi
5996{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
5997$as_echo "$lt_cv_ar_at_file" >&6; }
5998
5999if test no = "$lt_cv_ar_at_file"; then
6000  archiver_list_spec=
6001else
6002  archiver_list_spec=$lt_cv_ar_at_file
6003fi
6004
6005
6006
6007
6008
6009
6010
6011if test -n "$ac_tool_prefix"; then
6012  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6013set dummy ${ac_tool_prefix}strip; ac_word=$2
6014{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6015$as_echo_n "checking for $ac_word... " >&6; }
6016if ${ac_cv_prog_STRIP+:} false; then :
6017  $as_echo_n "(cached) " >&6
6018else
6019  if test -n "$STRIP"; then
6020  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6021else
6022as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6023for as_dir in $PATH
6024do
6025  IFS=$as_save_IFS
6026  test -z "$as_dir" && as_dir=.
6027    for ac_exec_ext in '' $ac_executable_extensions; do
6028  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6029    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6030    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6031    break 2
6032  fi
6033done
6034  done
6035IFS=$as_save_IFS
6036
6037fi
6038fi
6039STRIP=$ac_cv_prog_STRIP
6040if test -n "$STRIP"; then
6041  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6042$as_echo "$STRIP" >&6; }
6043else
6044  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6045$as_echo "no" >&6; }
6046fi
6047
6048
6049fi
6050if test -z "$ac_cv_prog_STRIP"; then
6051  ac_ct_STRIP=$STRIP
6052  # Extract the first word of "strip", so it can be a program name with args.
6053set dummy strip; ac_word=$2
6054{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6055$as_echo_n "checking for $ac_word... " >&6; }
6056if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
6057  $as_echo_n "(cached) " >&6
6058else
6059  if test -n "$ac_ct_STRIP"; then
6060  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6061else
6062as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6063for as_dir in $PATH
6064do
6065  IFS=$as_save_IFS
6066  test -z "$as_dir" && as_dir=.
6067    for ac_exec_ext in '' $ac_executable_extensions; do
6068  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6069    ac_cv_prog_ac_ct_STRIP="strip"
6070    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6071    break 2
6072  fi
6073done
6074  done
6075IFS=$as_save_IFS
6076
6077fi
6078fi
6079ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6080if test -n "$ac_ct_STRIP"; then
6081  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6082$as_echo "$ac_ct_STRIP" >&6; }
6083else
6084  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6085$as_echo "no" >&6; }
6086fi
6087
6088  if test "x$ac_ct_STRIP" = x; then
6089    STRIP=":"
6090  else
6091    case $cross_compiling:$ac_tool_warned in
6092yes:)
6093{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6094$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6095ac_tool_warned=yes ;;
6096esac
6097    STRIP=$ac_ct_STRIP
6098  fi
6099else
6100  STRIP="$ac_cv_prog_STRIP"
6101fi
6102
6103test -z "$STRIP" && STRIP=:
6104
6105
6106
6107
6108
6109
6110if test -n "$ac_tool_prefix"; then
6111  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6112set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6113{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6114$as_echo_n "checking for $ac_word... " >&6; }
6115if ${ac_cv_prog_RANLIB+:} false; then :
6116  $as_echo_n "(cached) " >&6
6117else
6118  if test -n "$RANLIB"; then
6119  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6120else
6121as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6122for as_dir in $PATH
6123do
6124  IFS=$as_save_IFS
6125  test -z "$as_dir" && as_dir=.
6126    for ac_exec_ext in '' $ac_executable_extensions; do
6127  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6128    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6129    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6130    break 2
6131  fi
6132done
6133  done
6134IFS=$as_save_IFS
6135
6136fi
6137fi
6138RANLIB=$ac_cv_prog_RANLIB
6139if test -n "$RANLIB"; then
6140  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6141$as_echo "$RANLIB" >&6; }
6142else
6143  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6144$as_echo "no" >&6; }
6145fi
6146
6147
6148fi
6149if test -z "$ac_cv_prog_RANLIB"; then
6150  ac_ct_RANLIB=$RANLIB
6151  # Extract the first word of "ranlib", so it can be a program name with args.
6152set dummy ranlib; ac_word=$2
6153{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6154$as_echo_n "checking for $ac_word... " >&6; }
6155if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
6156  $as_echo_n "(cached) " >&6
6157else
6158  if test -n "$ac_ct_RANLIB"; then
6159  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6160else
6161as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6162for as_dir in $PATH
6163do
6164  IFS=$as_save_IFS
6165  test -z "$as_dir" && as_dir=.
6166    for ac_exec_ext in '' $ac_executable_extensions; do
6167  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6168    ac_cv_prog_ac_ct_RANLIB="ranlib"
6169    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6170    break 2
6171  fi
6172done
6173  done
6174IFS=$as_save_IFS
6175
6176fi
6177fi
6178ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6179if test -n "$ac_ct_RANLIB"; then
6180  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6181$as_echo "$ac_ct_RANLIB" >&6; }
6182else
6183  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6184$as_echo "no" >&6; }
6185fi
6186
6187  if test "x$ac_ct_RANLIB" = x; then
6188    RANLIB=":"
6189  else
6190    case $cross_compiling:$ac_tool_warned in
6191yes:)
6192{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6193$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6194ac_tool_warned=yes ;;
6195esac
6196    RANLIB=$ac_ct_RANLIB
6197  fi
6198else
6199  RANLIB="$ac_cv_prog_RANLIB"
6200fi
6201
6202test -z "$RANLIB" && RANLIB=:
6203
6204
6205
6206
6207
6208
6209# Determine commands to create old-style static archives.
6210old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6211old_postinstall_cmds='chmod 644 $oldlib'
6212old_postuninstall_cmds=
6213
6214if test -n "$RANLIB"; then
6215  case $host_os in
6216  bitrig* | openbsd*)
6217    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
6218    ;;
6219  *)
6220    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
6221    ;;
6222  esac
6223  old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
6224fi
6225
6226case $host_os in
6227  darwin*)
6228    lock_old_archive_extraction=yes ;;
6229  *)
6230    lock_old_archive_extraction=no ;;
6231esac
6232
6233
6234
6235
6236
6237
6238
6239
6240
6241
6242
6243
6244
6245
6246
6247
6248
6249
6250
6251
6252
6253
6254
6255
6256
6257
6258
6259
6260
6261
6262
6263
6264
6265
6266
6267
6268
6269
6270
6271# If no C compiler was specified, use CC.
6272LTCC=${LTCC-"$CC"}
6273
6274# If no C compiler flags were specified, use CFLAGS.
6275LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6276
6277# Allow CC to be a program name with arguments.
6278compiler=$CC
6279
6280
6281# Check for command to grab the raw symbol name followed by C symbol from nm.
6282{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6283$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6284if ${lt_cv_sys_global_symbol_pipe+:} false; then :
6285  $as_echo_n "(cached) " >&6
6286else
6287
6288# These are sane defaults that work on at least a few old systems.
6289# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
6290
6291# Character class describing NM global symbol codes.
6292symcode='[BCDEGRST]'
6293
6294# Regexp to match symbols that can be accessed directly from C.
6295sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6296
6297# Define system-specific variables.
6298case $host_os in
6299aix*)
6300  symcode='[BCDT]'
6301  ;;
6302cygwin* | mingw* | pw32* | cegcc*)
6303  symcode='[ABCDGISTW]'
6304  ;;
6305hpux*)
6306  if test ia64 = "$host_cpu"; then
6307    symcode='[ABCDEGRST]'
6308  fi
6309  ;;
6310irix* | nonstopux*)
6311  symcode='[BCDEGRST]'
6312  ;;
6313osf*)
6314  symcode='[BCDEGQRST]'
6315  ;;
6316solaris*)
6317  symcode='[BDRT]'
6318  ;;
6319sco3.2v5*)
6320  symcode='[DT]'
6321  ;;
6322sysv4.2uw2*)
6323  symcode='[DT]'
6324  ;;
6325sysv5* | sco5v6* | unixware* | OpenUNIX*)
6326  symcode='[ABDT]'
6327  ;;
6328sysv4)
6329  symcode='[DFNSTU]'
6330  ;;
6331esac
6332
6333# If we're using GNU nm, then use its standard symbol codes.
6334case `$NM -V 2>&1` in
6335*GNU* | *'with BFD'*)
6336  symcode='[ABCDGIRSTW]' ;;
6337esac
6338
6339if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6340  # Gets list of data symbols to import.
6341  lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'"
6342  # Adjust the below global symbol transforms to fixup imported variables.
6343  lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
6344  lt_c_name_hook=" -e 's/^I .* \(.*\)$/  {\"\1\", (void *) 0},/p'"
6345  lt_c_name_lib_hook="\
6346  -e 's/^I .* \(lib.*\)$/  {\"\1\", (void *) 0},/p'\
6347  -e 's/^I .* \(.*\)$/  {\"lib\1\", (void *) 0},/p'"
6348else
6349  # Disable hooks by default.
6350  lt_cv_sys_global_symbol_to_import=
6351  lt_cdecl_hook=
6352  lt_c_name_hook=
6353  lt_c_name_lib_hook=
6354fi
6355
6356# Transform an extracted symbol line into a proper C declaration.
6357# Some systems (esp. on ia64) link data and code symbols differently,
6358# so use this general approach.
6359lt_cv_sys_global_symbol_to_cdecl="sed -n"\
6360$lt_cdecl_hook\
6361" -e 's/^T .* \(.*\)$/extern int \1();/p'"\
6362" -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
6363
6364# Transform an extracted symbol line into symbol name and symbol address
6365lt_cv_sys_global_symbol_to_c_name_address="sed -n"\
6366$lt_c_name_hook\
6367" -e 's/^: \(.*\) .*$/  {\"\1\", (void *) 0},/p'"\
6368" -e 's/^$symcode$symcode* .* \(.*\)$/  {\"\1\", (void *) \&\1},/p'"
6369
6370# Transform an extracted symbol line into symbol name with lib prefix and
6371# symbol address.
6372lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\
6373$lt_c_name_lib_hook\
6374" -e 's/^: \(.*\) .*$/  {\"\1\", (void *) 0},/p'"\
6375" -e 's/^$symcode$symcode* .* \(lib.*\)$/  {\"\1\", (void *) \&\1},/p'"\
6376" -e 's/^$symcode$symcode* .* \(.*\)$/  {\"lib\1\", (void *) \&\1},/p'"
6377
6378# Handle CRLF in mingw tool chain
6379opt_cr=
6380case $build_os in
6381mingw*)
6382  opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6383  ;;
6384esac
6385
6386# Try without a prefix underscore, then with it.
6387for ac_symprfx in "" "_"; do
6388
6389  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6390  symxfrm="\\1 $ac_symprfx\\2 \\2"
6391
6392  # Write the raw and C identifiers.
6393  if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6394    # Fake it for dumpbin and say T for any non-static function,
6395    # D for any global variable and I for any imported variable.
6396    # Also find C++ and __fastcall symbols from MSVC++,
6397    # which start with @ or ?.
6398    lt_cv_sys_global_symbol_pipe="$AWK '"\
6399"     {last_section=section; section=\$ 3};"\
6400"     /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
6401"     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6402"     /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
6403"     /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
6404"     /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
6405"     \$ 0!~/External *\|/{next};"\
6406"     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6407"     {if(hide[section]) next};"\
6408"     {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
6409"     {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
6410"     s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
6411"     s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
6412"     ' prfx=^$ac_symprfx"
6413  else
6414    lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[	 ]\($symcode$symcode*\)[	 ][	 ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6415  fi
6416  lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
6417
6418  # Check to see that the pipe works correctly.
6419  pipe_works=no
6420
6421  rm -f conftest*
6422  cat > conftest.$ac_ext <<_LT_EOF
6423#ifdef __cplusplus
6424extern "C" {
6425#endif
6426char nm_test_var;
6427void nm_test_func(void);
6428void nm_test_func(void){}
6429#ifdef __cplusplus
6430}
6431#endif
6432int main(){nm_test_var='a';nm_test_func();return(0);}
6433_LT_EOF
6434
6435  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6436  (eval $ac_compile) 2>&5
6437  ac_status=$?
6438  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6439  test $ac_status = 0; }; then
6440    # Now try to grab the symbols.
6441    nlist=conftest.nm
6442    if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
6443  (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
6444  ac_status=$?
6445  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6446  test $ac_status = 0; } && test -s "$nlist"; then
6447      # Try sorting and uniquifying the output.
6448      if sort "$nlist" | uniq > "$nlist"T; then
6449	mv -f "$nlist"T "$nlist"
6450      else
6451	rm -f "$nlist"T
6452      fi
6453
6454      # Make sure that we snagged all the symbols we need.
6455      if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6456	if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6457	  cat <<_LT_EOF > conftest.$ac_ext
6458/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests.  */
6459#if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
6460/* DATA imports from DLLs on WIN32 can't be const, because runtime
6461   relocations are performed -- see ld's documentation on pseudo-relocs.  */
6462# define LT_DLSYM_CONST
6463#elif defined __osf__
6464/* This system does not cope well with relocations in const data.  */
6465# define LT_DLSYM_CONST
6466#else
6467# define LT_DLSYM_CONST const
6468#endif
6469
6470#ifdef __cplusplus
6471extern "C" {
6472#endif
6473
6474_LT_EOF
6475	  # Now generate the symbol file.
6476	  eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6477
6478	  cat <<_LT_EOF >> conftest.$ac_ext
6479
6480/* The mapping between symbol names and symbols.  */
6481LT_DLSYM_CONST struct {
6482  const char *name;
6483  void       *address;
6484}
6485lt__PROGRAM__LTX_preloaded_symbols[] =
6486{
6487  { "@PROGRAM@", (void *) 0 },
6488_LT_EOF
6489	  $SED "s/^$symcode$symcode* .* \(.*\)$/  {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6490	  cat <<\_LT_EOF >> conftest.$ac_ext
6491  {0, (void *) 0}
6492};
6493
6494/* This works around a problem in FreeBSD linker */
6495#ifdef FREEBSD_WORKAROUND
6496static const void *lt_preloaded_setup() {
6497  return lt__PROGRAM__LTX_preloaded_symbols;
6498}
6499#endif
6500
6501#ifdef __cplusplus
6502}
6503#endif
6504_LT_EOF
6505	  # Now try linking the two files.
6506	  mv conftest.$ac_objext conftstm.$ac_objext
6507	  lt_globsym_save_LIBS=$LIBS
6508	  lt_globsym_save_CFLAGS=$CFLAGS
6509	  LIBS=conftstm.$ac_objext
6510	  CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6511	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6512  (eval $ac_link) 2>&5
6513  ac_status=$?
6514  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6515  test $ac_status = 0; } && test -s conftest$ac_exeext; then
6516	    pipe_works=yes
6517	  fi
6518	  LIBS=$lt_globsym_save_LIBS
6519	  CFLAGS=$lt_globsym_save_CFLAGS
6520	else
6521	  echo "cannot find nm_test_func in $nlist" >&5
6522	fi
6523      else
6524	echo "cannot find nm_test_var in $nlist" >&5
6525      fi
6526    else
6527      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6528    fi
6529  else
6530    echo "$progname: failed program was:" >&5
6531    cat conftest.$ac_ext >&5
6532  fi
6533  rm -rf conftest* conftst*
6534
6535  # Do not use the global_symbol_pipe unless it works.
6536  if test yes = "$pipe_works"; then
6537    break
6538  else
6539    lt_cv_sys_global_symbol_pipe=
6540  fi
6541done
6542
6543fi
6544
6545if test -z "$lt_cv_sys_global_symbol_pipe"; then
6546  lt_cv_sys_global_symbol_to_cdecl=
6547fi
6548if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6549  { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6550$as_echo "failed" >&6; }
6551else
6552  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6553$as_echo "ok" >&6; }
6554fi
6555
6556# Response file support.
6557if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6558  nm_file_list_spec='@'
6559elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
6560  nm_file_list_spec='@'
6561fi
6562
6563
6564
6565
6566
6567
6568
6569
6570
6571
6572
6573
6574
6575
6576
6577
6578
6579
6580
6581
6582
6583
6584
6585
6586
6587
6588
6589
6590
6591
6592
6593
6594
6595
6596
6597
6598
6599{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
6600$as_echo_n "checking for sysroot... " >&6; }
6601
6602# Check whether --with-sysroot was given.
6603if test "${with_sysroot+set}" = set; then :
6604  withval=$with_sysroot;
6605else
6606  with_sysroot=no
6607fi
6608
6609
6610lt_sysroot=
6611case $with_sysroot in #(
6612 yes)
6613   if test yes = "$GCC"; then
6614     lt_sysroot=`$CC --print-sysroot 2>/dev/null`
6615   fi
6616   ;; #(
6617 /*)
6618   lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
6619   ;; #(
6620 no|'')
6621   ;; #(
6622 *)
6623   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
6624$as_echo "$with_sysroot" >&6; }
6625   as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
6626   ;;
6627esac
6628
6629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
6630$as_echo "${lt_sysroot:-no}" >&6; }
6631
6632
6633
6634
6635
6636# Check whether --enable-libtool-lock was given.
6637if test "${enable_libtool_lock+set}" = set; then :
6638  enableval=$enable_libtool_lock;
6639fi
6640
6641test no = "$enable_libtool_lock" || enable_libtool_lock=yes
6642
6643# Some flags need to be propagated to the compiler or linker for good
6644# libtool support.
6645case $host in
6646ia64-*-hpux*)
6647  # Find out what ABI is being produced by ac_compile, and set mode
6648  # options accordingly.
6649  echo 'int i;' > conftest.$ac_ext
6650  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6651  (eval $ac_compile) 2>&5
6652  ac_status=$?
6653  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6654  test $ac_status = 0; }; then
6655    case `/usr/bin/file conftest.$ac_objext` in
6656      *ELF-32*)
6657	HPUX_IA64_MODE=32
6658	;;
6659      *ELF-64*)
6660	HPUX_IA64_MODE=64
6661	;;
6662    esac
6663  fi
6664  rm -rf conftest*
6665  ;;
6666*-*-irix6*)
6667  # Find out what ABI is being produced by ac_compile, and set linker
6668  # options accordingly.
6669  echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6670  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6671  (eval $ac_compile) 2>&5
6672  ac_status=$?
6673  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6674  test $ac_status = 0; }; then
6675    if test yes = "$lt_cv_prog_gnu_ld"; then
6676      case `/usr/bin/file conftest.$ac_objext` in
6677	*32-bit*)
6678	  LD="${LD-ld} -melf32bsmip"
6679	  ;;
6680	*N32*)
6681	  LD="${LD-ld} -melf32bmipn32"
6682	  ;;
6683	*64-bit*)
6684	  LD="${LD-ld} -melf64bmip"
6685	;;
6686      esac
6687    else
6688      case `/usr/bin/file conftest.$ac_objext` in
6689	*32-bit*)
6690	  LD="${LD-ld} -32"
6691	  ;;
6692	*N32*)
6693	  LD="${LD-ld} -n32"
6694	  ;;
6695	*64-bit*)
6696	  LD="${LD-ld} -64"
6697	  ;;
6698      esac
6699    fi
6700  fi
6701  rm -rf conftest*
6702  ;;
6703
6704mips64*-*linux*)
6705  # Find out what ABI is being produced by ac_compile, and set linker
6706  # options accordingly.
6707  echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6708  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6709  (eval $ac_compile) 2>&5
6710  ac_status=$?
6711  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6712  test $ac_status = 0; }; then
6713    emul=elf
6714    case `/usr/bin/file conftest.$ac_objext` in
6715      *32-bit*)
6716	emul="${emul}32"
6717	;;
6718      *64-bit*)
6719	emul="${emul}64"
6720	;;
6721    esac
6722    case `/usr/bin/file conftest.$ac_objext` in
6723      *MSB*)
6724	emul="${emul}btsmip"
6725	;;
6726      *LSB*)
6727	emul="${emul}ltsmip"
6728	;;
6729    esac
6730    case `/usr/bin/file conftest.$ac_objext` in
6731      *N32*)
6732	emul="${emul}n32"
6733	;;
6734    esac
6735    LD="${LD-ld} -m $emul"
6736  fi
6737  rm -rf conftest*
6738  ;;
6739
6740x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
6741s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6742  # Find out what ABI is being produced by ac_compile, and set linker
6743  # options accordingly.  Note that the listed cases only cover the
6744  # situations where additional linker options are needed (such as when
6745  # doing 32-bit compilation for a host where ld defaults to 64-bit, or
6746  # vice versa); the common cases where no linker options are needed do
6747  # not appear in the list.
6748  echo 'int i;' > conftest.$ac_ext
6749  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6750  (eval $ac_compile) 2>&5
6751  ac_status=$?
6752  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6753  test $ac_status = 0; }; then
6754    case `/usr/bin/file conftest.o` in
6755      *32-bit*)
6756	case $host in
6757	  x86_64-*kfreebsd*-gnu)
6758	    LD="${LD-ld} -m elf_i386_fbsd"
6759	    ;;
6760	  x86_64-*linux*)
6761	    case `/usr/bin/file conftest.o` in
6762	      *x86-64*)
6763		LD="${LD-ld} -m elf32_x86_64"
6764		;;
6765	      *)
6766		LD="${LD-ld} -m elf_i386"
6767		;;
6768	    esac
6769	    ;;
6770	  powerpc64le-*linux*)
6771	    LD="${LD-ld} -m elf32lppclinux"
6772	    ;;
6773	  powerpc64-*linux*)
6774	    LD="${LD-ld} -m elf32ppclinux"
6775	    ;;
6776	  s390x-*linux*)
6777	    LD="${LD-ld} -m elf_s390"
6778	    ;;
6779	  sparc64-*linux*)
6780	    LD="${LD-ld} -m elf32_sparc"
6781	    ;;
6782	esac
6783	;;
6784      *64-bit*)
6785	case $host in
6786	  x86_64-*kfreebsd*-gnu)
6787	    LD="${LD-ld} -m elf_x86_64_fbsd"
6788	    ;;
6789	  x86_64-*linux*)
6790	    LD="${LD-ld} -m elf_x86_64"
6791	    ;;
6792	  powerpcle-*linux*)
6793	    LD="${LD-ld} -m elf64lppc"
6794	    ;;
6795	  powerpc-*linux*)
6796	    LD="${LD-ld} -m elf64ppc"
6797	    ;;
6798	  s390*-*linux*|s390*-*tpf*)
6799	    LD="${LD-ld} -m elf64_s390"
6800	    ;;
6801	  sparc*-*linux*)
6802	    LD="${LD-ld} -m elf64_sparc"
6803	    ;;
6804	esac
6805	;;
6806    esac
6807  fi
6808  rm -rf conftest*
6809  ;;
6810
6811*-*-sco3.2v5*)
6812  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6813  SAVE_CFLAGS=$CFLAGS
6814  CFLAGS="$CFLAGS -belf"
6815  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
6816$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
6817if ${lt_cv_cc_needs_belf+:} false; then :
6818  $as_echo_n "(cached) " >&6
6819else
6820  ac_ext=c
6821ac_cpp='$CPP $CPPFLAGS'
6822ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6823ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6824ac_compiler_gnu=$ac_cv_c_compiler_gnu
6825
6826     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6827/* end confdefs.h.  */
6828
6829int
6830main ()
6831{
6832
6833  ;
6834  return 0;
6835}
6836_ACEOF
6837if ac_fn_c_try_link "$LINENO"; then :
6838  lt_cv_cc_needs_belf=yes
6839else
6840  lt_cv_cc_needs_belf=no
6841fi
6842rm -f core conftest.err conftest.$ac_objext \
6843    conftest$ac_exeext conftest.$ac_ext
6844     ac_ext=c
6845ac_cpp='$CPP $CPPFLAGS'
6846ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6847ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6848ac_compiler_gnu=$ac_cv_c_compiler_gnu
6849
6850fi
6851{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
6852$as_echo "$lt_cv_cc_needs_belf" >&6; }
6853  if test yes != "$lt_cv_cc_needs_belf"; then
6854    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6855    CFLAGS=$SAVE_CFLAGS
6856  fi
6857  ;;
6858*-*solaris*)
6859  # Find out what ABI is being produced by ac_compile, and set linker
6860  # options accordingly.
6861  echo 'int i;' > conftest.$ac_ext
6862  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6863  (eval $ac_compile) 2>&5
6864  ac_status=$?
6865  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6866  test $ac_status = 0; }; then
6867    case `/usr/bin/file conftest.o` in
6868    *64-bit*)
6869      case $lt_cv_prog_gnu_ld in
6870      yes*)
6871        case $host in
6872        i?86-*-solaris*|x86_64-*-solaris*)
6873          LD="${LD-ld} -m elf_x86_64"
6874          ;;
6875        sparc*-*-solaris*)
6876          LD="${LD-ld} -m elf64_sparc"
6877          ;;
6878        esac
6879        # GNU ld 2.21 introduced _sol2 emulations.  Use them if available.
6880        if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
6881          LD=${LD-ld}_sol2
6882        fi
6883        ;;
6884      *)
6885	if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6886	  LD="${LD-ld} -64"
6887	fi
6888	;;
6889      esac
6890      ;;
6891    esac
6892  fi
6893  rm -rf conftest*
6894  ;;
6895esac
6896
6897need_locks=$enable_libtool_lock
6898
6899if test -n "$ac_tool_prefix"; then
6900  # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
6901set dummy ${ac_tool_prefix}mt; ac_word=$2
6902{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6903$as_echo_n "checking for $ac_word... " >&6; }
6904if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
6905  $as_echo_n "(cached) " >&6
6906else
6907  if test -n "$MANIFEST_TOOL"; then
6908  ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
6909else
6910as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6911for as_dir in $PATH
6912do
6913  IFS=$as_save_IFS
6914  test -z "$as_dir" && as_dir=.
6915    for ac_exec_ext in '' $ac_executable_extensions; do
6916  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6917    ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
6918    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6919    break 2
6920  fi
6921done
6922  done
6923IFS=$as_save_IFS
6924
6925fi
6926fi
6927MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
6928if test -n "$MANIFEST_TOOL"; then
6929  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
6930$as_echo "$MANIFEST_TOOL" >&6; }
6931else
6932  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6933$as_echo "no" >&6; }
6934fi
6935
6936
6937fi
6938if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
6939  ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
6940  # Extract the first word of "mt", so it can be a program name with args.
6941set dummy mt; ac_word=$2
6942{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6943$as_echo_n "checking for $ac_word... " >&6; }
6944if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
6945  $as_echo_n "(cached) " >&6
6946else
6947  if test -n "$ac_ct_MANIFEST_TOOL"; then
6948  ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
6949else
6950as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6951for as_dir in $PATH
6952do
6953  IFS=$as_save_IFS
6954  test -z "$as_dir" && as_dir=.
6955    for ac_exec_ext in '' $ac_executable_extensions; do
6956  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6957    ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
6958    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6959    break 2
6960  fi
6961done
6962  done
6963IFS=$as_save_IFS
6964
6965fi
6966fi
6967ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
6968if test -n "$ac_ct_MANIFEST_TOOL"; then
6969  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
6970$as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
6971else
6972  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6973$as_echo "no" >&6; }
6974fi
6975
6976  if test "x$ac_ct_MANIFEST_TOOL" = x; then
6977    MANIFEST_TOOL=":"
6978  else
6979    case $cross_compiling:$ac_tool_warned in
6980yes:)
6981{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6982$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6983ac_tool_warned=yes ;;
6984esac
6985    MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
6986  fi
6987else
6988  MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
6989fi
6990
6991test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
6992{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
6993$as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
6994if ${lt_cv_path_mainfest_tool+:} false; then :
6995  $as_echo_n "(cached) " >&6
6996else
6997  lt_cv_path_mainfest_tool=no
6998  echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
6999  $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
7000  cat conftest.err >&5
7001  if $GREP 'Manifest Tool' conftest.out > /dev/null; then
7002    lt_cv_path_mainfest_tool=yes
7003  fi
7004  rm -f conftest*
7005fi
7006{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
7007$as_echo "$lt_cv_path_mainfest_tool" >&6; }
7008if test yes != "$lt_cv_path_mainfest_tool"; then
7009  MANIFEST_TOOL=:
7010fi
7011
7012
7013
7014
7015
7016
7017  case $host_os in
7018    rhapsody* | darwin*)
7019    if test -n "$ac_tool_prefix"; then
7020  # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7021set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7022{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7023$as_echo_n "checking for $ac_word... " >&6; }
7024if ${ac_cv_prog_DSYMUTIL+:} false; then :
7025  $as_echo_n "(cached) " >&6
7026else
7027  if test -n "$DSYMUTIL"; then
7028  ac_cv_prog_DSYMUTIL="$DSYMUTIL" # 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  test -z "$as_dir" && as_dir=.
7035    for ac_exec_ext in '' $ac_executable_extensions; do
7036  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7037    ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7038    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7039    break 2
7040  fi
7041done
7042  done
7043IFS=$as_save_IFS
7044
7045fi
7046fi
7047DSYMUTIL=$ac_cv_prog_DSYMUTIL
7048if test -n "$DSYMUTIL"; then
7049  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7050$as_echo "$DSYMUTIL" >&6; }
7051else
7052  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7053$as_echo "no" >&6; }
7054fi
7055
7056
7057fi
7058if test -z "$ac_cv_prog_DSYMUTIL"; then
7059  ac_ct_DSYMUTIL=$DSYMUTIL
7060  # Extract the first word of "dsymutil", so it can be a program name with args.
7061set dummy dsymutil; ac_word=$2
7062{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7063$as_echo_n "checking for $ac_word... " >&6; }
7064if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
7065  $as_echo_n "(cached) " >&6
7066else
7067  if test -n "$ac_ct_DSYMUTIL"; then
7068  ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7069else
7070as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7071for as_dir in $PATH
7072do
7073  IFS=$as_save_IFS
7074  test -z "$as_dir" && as_dir=.
7075    for ac_exec_ext in '' $ac_executable_extensions; do
7076  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7077    ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7078    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7079    break 2
7080  fi
7081done
7082  done
7083IFS=$as_save_IFS
7084
7085fi
7086fi
7087ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7088if test -n "$ac_ct_DSYMUTIL"; then
7089  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7090$as_echo "$ac_ct_DSYMUTIL" >&6; }
7091else
7092  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7093$as_echo "no" >&6; }
7094fi
7095
7096  if test "x$ac_ct_DSYMUTIL" = x; then
7097    DSYMUTIL=":"
7098  else
7099    case $cross_compiling:$ac_tool_warned in
7100yes:)
7101{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7102$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7103ac_tool_warned=yes ;;
7104esac
7105    DSYMUTIL=$ac_ct_DSYMUTIL
7106  fi
7107else
7108  DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7109fi
7110
7111    if test -n "$ac_tool_prefix"; then
7112  # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7113set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7114{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7115$as_echo_n "checking for $ac_word... " >&6; }
7116if ${ac_cv_prog_NMEDIT+:} false; then :
7117  $as_echo_n "(cached) " >&6
7118else
7119  if test -n "$NMEDIT"; then
7120  ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7121else
7122as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7123for as_dir in $PATH
7124do
7125  IFS=$as_save_IFS
7126  test -z "$as_dir" && as_dir=.
7127    for ac_exec_ext in '' $ac_executable_extensions; do
7128  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7129    ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7130    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7131    break 2
7132  fi
7133done
7134  done
7135IFS=$as_save_IFS
7136
7137fi
7138fi
7139NMEDIT=$ac_cv_prog_NMEDIT
7140if test -n "$NMEDIT"; then
7141  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7142$as_echo "$NMEDIT" >&6; }
7143else
7144  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7145$as_echo "no" >&6; }
7146fi
7147
7148
7149fi
7150if test -z "$ac_cv_prog_NMEDIT"; then
7151  ac_ct_NMEDIT=$NMEDIT
7152  # Extract the first word of "nmedit", so it can be a program name with args.
7153set dummy nmedit; ac_word=$2
7154{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7155$as_echo_n "checking for $ac_word... " >&6; }
7156if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
7157  $as_echo_n "(cached) " >&6
7158else
7159  if test -n "$ac_ct_NMEDIT"; then
7160  ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7161else
7162as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7163for as_dir in $PATH
7164do
7165  IFS=$as_save_IFS
7166  test -z "$as_dir" && as_dir=.
7167    for ac_exec_ext in '' $ac_executable_extensions; do
7168  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7169    ac_cv_prog_ac_ct_NMEDIT="nmedit"
7170    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7171    break 2
7172  fi
7173done
7174  done
7175IFS=$as_save_IFS
7176
7177fi
7178fi
7179ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7180if test -n "$ac_ct_NMEDIT"; then
7181  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7182$as_echo "$ac_ct_NMEDIT" >&6; }
7183else
7184  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7185$as_echo "no" >&6; }
7186fi
7187
7188  if test "x$ac_ct_NMEDIT" = x; then
7189    NMEDIT=":"
7190  else
7191    case $cross_compiling:$ac_tool_warned in
7192yes:)
7193{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7194$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7195ac_tool_warned=yes ;;
7196esac
7197    NMEDIT=$ac_ct_NMEDIT
7198  fi
7199else
7200  NMEDIT="$ac_cv_prog_NMEDIT"
7201fi
7202
7203    if test -n "$ac_tool_prefix"; then
7204  # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7205set dummy ${ac_tool_prefix}lipo; ac_word=$2
7206{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7207$as_echo_n "checking for $ac_word... " >&6; }
7208if ${ac_cv_prog_LIPO+:} false; then :
7209  $as_echo_n "(cached) " >&6
7210else
7211  if test -n "$LIPO"; then
7212  ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7213else
7214as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7215for as_dir in $PATH
7216do
7217  IFS=$as_save_IFS
7218  test -z "$as_dir" && as_dir=.
7219    for ac_exec_ext in '' $ac_executable_extensions; do
7220  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7221    ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7222    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7223    break 2
7224  fi
7225done
7226  done
7227IFS=$as_save_IFS
7228
7229fi
7230fi
7231LIPO=$ac_cv_prog_LIPO
7232if test -n "$LIPO"; then
7233  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7234$as_echo "$LIPO" >&6; }
7235else
7236  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7237$as_echo "no" >&6; }
7238fi
7239
7240
7241fi
7242if test -z "$ac_cv_prog_LIPO"; then
7243  ac_ct_LIPO=$LIPO
7244  # Extract the first word of "lipo", so it can be a program name with args.
7245set dummy lipo; ac_word=$2
7246{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7247$as_echo_n "checking for $ac_word... " >&6; }
7248if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
7249  $as_echo_n "(cached) " >&6
7250else
7251  if test -n "$ac_ct_LIPO"; then
7252  ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7253else
7254as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7255for as_dir in $PATH
7256do
7257  IFS=$as_save_IFS
7258  test -z "$as_dir" && as_dir=.
7259    for ac_exec_ext in '' $ac_executable_extensions; do
7260  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7261    ac_cv_prog_ac_ct_LIPO="lipo"
7262    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7263    break 2
7264  fi
7265done
7266  done
7267IFS=$as_save_IFS
7268
7269fi
7270fi
7271ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7272if test -n "$ac_ct_LIPO"; then
7273  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7274$as_echo "$ac_ct_LIPO" >&6; }
7275else
7276  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7277$as_echo "no" >&6; }
7278fi
7279
7280  if test "x$ac_ct_LIPO" = x; then
7281    LIPO=":"
7282  else
7283    case $cross_compiling:$ac_tool_warned in
7284yes:)
7285{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7286$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7287ac_tool_warned=yes ;;
7288esac
7289    LIPO=$ac_ct_LIPO
7290  fi
7291else
7292  LIPO="$ac_cv_prog_LIPO"
7293fi
7294
7295    if test -n "$ac_tool_prefix"; then
7296  # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7297set dummy ${ac_tool_prefix}otool; ac_word=$2
7298{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7299$as_echo_n "checking for $ac_word... " >&6; }
7300if ${ac_cv_prog_OTOOL+:} false; then :
7301  $as_echo_n "(cached) " >&6
7302else
7303  if test -n "$OTOOL"; then
7304  ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7305else
7306as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7307for as_dir in $PATH
7308do
7309  IFS=$as_save_IFS
7310  test -z "$as_dir" && as_dir=.
7311    for ac_exec_ext in '' $ac_executable_extensions; do
7312  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7313    ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7314    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7315    break 2
7316  fi
7317done
7318  done
7319IFS=$as_save_IFS
7320
7321fi
7322fi
7323OTOOL=$ac_cv_prog_OTOOL
7324if test -n "$OTOOL"; then
7325  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7326$as_echo "$OTOOL" >&6; }
7327else
7328  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7329$as_echo "no" >&6; }
7330fi
7331
7332
7333fi
7334if test -z "$ac_cv_prog_OTOOL"; then
7335  ac_ct_OTOOL=$OTOOL
7336  # Extract the first word of "otool", so it can be a program name with args.
7337set dummy otool; ac_word=$2
7338{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7339$as_echo_n "checking for $ac_word... " >&6; }
7340if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
7341  $as_echo_n "(cached) " >&6
7342else
7343  if test -n "$ac_ct_OTOOL"; then
7344  ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7345else
7346as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7347for as_dir in $PATH
7348do
7349  IFS=$as_save_IFS
7350  test -z "$as_dir" && as_dir=.
7351    for ac_exec_ext in '' $ac_executable_extensions; do
7352  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7353    ac_cv_prog_ac_ct_OTOOL="otool"
7354    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7355    break 2
7356  fi
7357done
7358  done
7359IFS=$as_save_IFS
7360
7361fi
7362fi
7363ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7364if test -n "$ac_ct_OTOOL"; then
7365  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7366$as_echo "$ac_ct_OTOOL" >&6; }
7367else
7368  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7369$as_echo "no" >&6; }
7370fi
7371
7372  if test "x$ac_ct_OTOOL" = x; then
7373    OTOOL=":"
7374  else
7375    case $cross_compiling:$ac_tool_warned in
7376yes:)
7377{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7378$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7379ac_tool_warned=yes ;;
7380esac
7381    OTOOL=$ac_ct_OTOOL
7382  fi
7383else
7384  OTOOL="$ac_cv_prog_OTOOL"
7385fi
7386
7387    if test -n "$ac_tool_prefix"; then
7388  # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7389set dummy ${ac_tool_prefix}otool64; ac_word=$2
7390{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7391$as_echo_n "checking for $ac_word... " >&6; }
7392if ${ac_cv_prog_OTOOL64+:} false; then :
7393  $as_echo_n "(cached) " >&6
7394else
7395  if test -n "$OTOOL64"; then
7396  ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7397else
7398as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7399for as_dir in $PATH
7400do
7401  IFS=$as_save_IFS
7402  test -z "$as_dir" && as_dir=.
7403    for ac_exec_ext in '' $ac_executable_extensions; do
7404  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7405    ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7406    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7407    break 2
7408  fi
7409done
7410  done
7411IFS=$as_save_IFS
7412
7413fi
7414fi
7415OTOOL64=$ac_cv_prog_OTOOL64
7416if test -n "$OTOOL64"; then
7417  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7418$as_echo "$OTOOL64" >&6; }
7419else
7420  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7421$as_echo "no" >&6; }
7422fi
7423
7424
7425fi
7426if test -z "$ac_cv_prog_OTOOL64"; then
7427  ac_ct_OTOOL64=$OTOOL64
7428  # Extract the first word of "otool64", so it can be a program name with args.
7429set dummy otool64; ac_word=$2
7430{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7431$as_echo_n "checking for $ac_word... " >&6; }
7432if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
7433  $as_echo_n "(cached) " >&6
7434else
7435  if test -n "$ac_ct_OTOOL64"; then
7436  ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7437else
7438as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7439for as_dir in $PATH
7440do
7441  IFS=$as_save_IFS
7442  test -z "$as_dir" && as_dir=.
7443    for ac_exec_ext in '' $ac_executable_extensions; do
7444  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7445    ac_cv_prog_ac_ct_OTOOL64="otool64"
7446    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7447    break 2
7448  fi
7449done
7450  done
7451IFS=$as_save_IFS
7452
7453fi
7454fi
7455ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7456if test -n "$ac_ct_OTOOL64"; then
7457  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7458$as_echo "$ac_ct_OTOOL64" >&6; }
7459else
7460  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7461$as_echo "no" >&6; }
7462fi
7463
7464  if test "x$ac_ct_OTOOL64" = x; then
7465    OTOOL64=":"
7466  else
7467    case $cross_compiling:$ac_tool_warned in
7468yes:)
7469{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7470$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7471ac_tool_warned=yes ;;
7472esac
7473    OTOOL64=$ac_ct_OTOOL64
7474  fi
7475else
7476  OTOOL64="$ac_cv_prog_OTOOL64"
7477fi
7478
7479
7480
7481
7482
7483
7484
7485
7486
7487
7488
7489
7490
7491
7492
7493
7494
7495
7496
7497
7498
7499
7500
7501
7502
7503
7504
7505    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7506$as_echo_n "checking for -single_module linker flag... " >&6; }
7507if ${lt_cv_apple_cc_single_mod+:} false; then :
7508  $as_echo_n "(cached) " >&6
7509else
7510  lt_cv_apple_cc_single_mod=no
7511      if test -z "$LT_MULTI_MODULE"; then
7512	# By default we will add the -single_module flag. You can override
7513	# by either setting the environment variable LT_MULTI_MODULE
7514	# non-empty at configure time, or by adding -multi_module to the
7515	# link flags.
7516	rm -rf libconftest.dylib*
7517	echo "int foo(void){return 1;}" > conftest.c
7518	echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7519-dynamiclib -Wl,-single_module conftest.c" >&5
7520	$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7521	  -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7522        _lt_result=$?
7523	# If there is a non-empty error log, and "single_module"
7524	# appears in it, assume the flag caused a linker warning
7525        if test -s conftest.err && $GREP single_module conftest.err; then
7526	  cat conftest.err >&5
7527	# Otherwise, if the output was created with a 0 exit code from
7528	# the compiler, it worked.
7529	elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
7530	  lt_cv_apple_cc_single_mod=yes
7531	else
7532	  cat conftest.err >&5
7533	fi
7534	rm -rf libconftest.dylib*
7535	rm -f conftest.*
7536      fi
7537fi
7538{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7539$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7540
7541    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7542$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7543if ${lt_cv_ld_exported_symbols_list+:} false; then :
7544  $as_echo_n "(cached) " >&6
7545else
7546  lt_cv_ld_exported_symbols_list=no
7547      save_LDFLAGS=$LDFLAGS
7548      echo "_main" > conftest.sym
7549      LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7550      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7551/* end confdefs.h.  */
7552
7553int
7554main ()
7555{
7556
7557  ;
7558  return 0;
7559}
7560_ACEOF
7561if ac_fn_c_try_link "$LINENO"; then :
7562  lt_cv_ld_exported_symbols_list=yes
7563else
7564  lt_cv_ld_exported_symbols_list=no
7565fi
7566rm -f core conftest.err conftest.$ac_objext \
7567    conftest$ac_exeext conftest.$ac_ext
7568	LDFLAGS=$save_LDFLAGS
7569
7570fi
7571{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7572$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7573
7574    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
7575$as_echo_n "checking for -force_load linker flag... " >&6; }
7576if ${lt_cv_ld_force_load+:} false; then :
7577  $as_echo_n "(cached) " >&6
7578else
7579  lt_cv_ld_force_load=no
7580      cat > conftest.c << _LT_EOF
7581int forced_loaded() { return 2;}
7582_LT_EOF
7583      echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
7584      $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
7585      echo "$AR cru libconftest.a conftest.o" >&5
7586      $AR cru libconftest.a conftest.o 2>&5
7587      echo "$RANLIB libconftest.a" >&5
7588      $RANLIB libconftest.a 2>&5
7589      cat > conftest.c << _LT_EOF
7590int main() { return 0;}
7591_LT_EOF
7592      echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
7593      $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
7594      _lt_result=$?
7595      if test -s conftest.err && $GREP force_load conftest.err; then
7596	cat conftest.err >&5
7597      elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
7598	lt_cv_ld_force_load=yes
7599      else
7600	cat conftest.err >&5
7601      fi
7602        rm -f conftest.err libconftest.a conftest conftest.c
7603        rm -rf conftest.dSYM
7604
7605fi
7606{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
7607$as_echo "$lt_cv_ld_force_load" >&6; }
7608    case $host_os in
7609    rhapsody* | darwin1.[012])
7610      _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
7611    darwin1.*)
7612      _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
7613    darwin*) # darwin 5.x on
7614      # if running on 10.5 or later, the deployment target defaults
7615      # to the OS version, if on x86, and 10.4, the deployment
7616      # target defaults to 10.4. Don't you love it?
7617      case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7618	10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7619	  _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
7620	10.[012]*)
7621	  _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
7622	10.*)
7623	  _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
7624      esac
7625    ;;
7626  esac
7627    if test yes = "$lt_cv_apple_cc_single_mod"; then
7628      _lt_dar_single_mod='$single_module'
7629    fi
7630    if test yes = "$lt_cv_ld_exported_symbols_list"; then
7631      _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
7632    else
7633      _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
7634    fi
7635    if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
7636      _lt_dsymutil='~$DSYMUTIL $lib || :'
7637    else
7638      _lt_dsymutil=
7639    fi
7640    ;;
7641  esac
7642
7643ac_ext=c
7644ac_cpp='$CPP $CPPFLAGS'
7645ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7646ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7647ac_compiler_gnu=$ac_cv_c_compiler_gnu
7648{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
7649$as_echo_n "checking how to run the C preprocessor... " >&6; }
7650# On Suns, sometimes $CPP names a directory.
7651if test -n "$CPP" && test -d "$CPP"; then
7652  CPP=
7653fi
7654if test -z "$CPP"; then
7655  if ${ac_cv_prog_CPP+:} false; then :
7656  $as_echo_n "(cached) " >&6
7657else
7658      # Double quotes because CPP needs to be expanded
7659    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
7660    do
7661      ac_preproc_ok=false
7662for ac_c_preproc_warn_flag in '' yes
7663do
7664  # Use a header file that comes with gcc, so configuring glibc
7665  # with a fresh cross-compiler works.
7666  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7667  # <limits.h> exists even on freestanding compilers.
7668  # On the NeXT, cc -E runs the code through the compiler's parser,
7669  # not just through cpp. "Syntax error" is here to catch this case.
7670  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7671/* end confdefs.h.  */
7672#ifdef __STDC__
7673# include <limits.h>
7674#else
7675# include <assert.h>
7676#endif
7677		     Syntax error
7678_ACEOF
7679if ac_fn_c_try_cpp "$LINENO"; then :
7680
7681else
7682  # Broken: fails on valid input.
7683continue
7684fi
7685rm -f conftest.err conftest.i conftest.$ac_ext
7686
7687  # OK, works on sane cases.  Now check whether nonexistent headers
7688  # can be detected and how.
7689  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7690/* end confdefs.h.  */
7691#include <ac_nonexistent.h>
7692_ACEOF
7693if ac_fn_c_try_cpp "$LINENO"; then :
7694  # Broken: success on invalid input.
7695continue
7696else
7697  # Passes both tests.
7698ac_preproc_ok=:
7699break
7700fi
7701rm -f conftest.err conftest.i conftest.$ac_ext
7702
7703done
7704# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7705rm -f conftest.i conftest.err conftest.$ac_ext
7706if $ac_preproc_ok; then :
7707  break
7708fi
7709
7710    done
7711    ac_cv_prog_CPP=$CPP
7712
7713fi
7714  CPP=$ac_cv_prog_CPP
7715else
7716  ac_cv_prog_CPP=$CPP
7717fi
7718{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
7719$as_echo "$CPP" >&6; }
7720ac_preproc_ok=false
7721for ac_c_preproc_warn_flag in '' yes
7722do
7723  # Use a header file that comes with gcc, so configuring glibc
7724  # with a fresh cross-compiler works.
7725  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7726  # <limits.h> exists even on freestanding compilers.
7727  # On the NeXT, cc -E runs the code through the compiler's parser,
7728  # not just through cpp. "Syntax error" is here to catch this case.
7729  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7730/* end confdefs.h.  */
7731#ifdef __STDC__
7732# include <limits.h>
7733#else
7734# include <assert.h>
7735#endif
7736		     Syntax error
7737_ACEOF
7738if ac_fn_c_try_cpp "$LINENO"; then :
7739
7740else
7741  # Broken: fails on valid input.
7742continue
7743fi
7744rm -f conftest.err conftest.i conftest.$ac_ext
7745
7746  # OK, works on sane cases.  Now check whether nonexistent headers
7747  # can be detected and how.
7748  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7749/* end confdefs.h.  */
7750#include <ac_nonexistent.h>
7751_ACEOF
7752if ac_fn_c_try_cpp "$LINENO"; then :
7753  # Broken: success on invalid input.
7754continue
7755else
7756  # Passes both tests.
7757ac_preproc_ok=:
7758break
7759fi
7760rm -f conftest.err conftest.i conftest.$ac_ext
7761
7762done
7763# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7764rm -f conftest.i conftest.err conftest.$ac_ext
7765if $ac_preproc_ok; then :
7766
7767else
7768  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7769$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7770as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
7771See \`config.log' for more details" "$LINENO" 5; }
7772fi
7773
7774ac_ext=c
7775ac_cpp='$CPP $CPPFLAGS'
7776ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7777ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7778ac_compiler_gnu=$ac_cv_c_compiler_gnu
7779
7780
7781{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7782$as_echo_n "checking for ANSI C header files... " >&6; }
7783if ${ac_cv_header_stdc+:} false; then :
7784  $as_echo_n "(cached) " >&6
7785else
7786  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7787/* end confdefs.h.  */
7788#include <stdlib.h>
7789#include <stdarg.h>
7790#include <string.h>
7791#include <float.h>
7792
7793int
7794main ()
7795{
7796
7797  ;
7798  return 0;
7799}
7800_ACEOF
7801if ac_fn_c_try_compile "$LINENO"; then :
7802  ac_cv_header_stdc=yes
7803else
7804  ac_cv_header_stdc=no
7805fi
7806rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7807
7808if test $ac_cv_header_stdc = yes; then
7809  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7810  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7811/* end confdefs.h.  */
7812#include <string.h>
7813
7814_ACEOF
7815if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7816  $EGREP "memchr" >/dev/null 2>&1; then :
7817
7818else
7819  ac_cv_header_stdc=no
7820fi
7821rm -f conftest*
7822
7823fi
7824
7825if test $ac_cv_header_stdc = yes; then
7826  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7827  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7828/* end confdefs.h.  */
7829#include <stdlib.h>
7830
7831_ACEOF
7832if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7833  $EGREP "free" >/dev/null 2>&1; then :
7834
7835else
7836  ac_cv_header_stdc=no
7837fi
7838rm -f conftest*
7839
7840fi
7841
7842if test $ac_cv_header_stdc = yes; then
7843  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7844  if test "$cross_compiling" = yes; then :
7845  :
7846else
7847  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7848/* end confdefs.h.  */
7849#include <ctype.h>
7850#include <stdlib.h>
7851#if ((' ' & 0x0FF) == 0x020)
7852# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7853# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7854#else
7855# define ISLOWER(c) \
7856		   (('a' <= (c) && (c) <= 'i') \
7857		     || ('j' <= (c) && (c) <= 'r') \
7858		     || ('s' <= (c) && (c) <= 'z'))
7859# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7860#endif
7861
7862#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7863int
7864main ()
7865{
7866  int i;
7867  for (i = 0; i < 256; i++)
7868    if (XOR (islower (i), ISLOWER (i))
7869	|| toupper (i) != TOUPPER (i))
7870      return 2;
7871  return 0;
7872}
7873_ACEOF
7874if ac_fn_c_try_run "$LINENO"; then :
7875
7876else
7877  ac_cv_header_stdc=no
7878fi
7879rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7880  conftest.$ac_objext conftest.beam conftest.$ac_ext
7881fi
7882
7883fi
7884fi
7885{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
7886$as_echo "$ac_cv_header_stdc" >&6; }
7887if test $ac_cv_header_stdc = yes; then
7888
7889$as_echo "#define STDC_HEADERS 1" >>confdefs.h
7890
7891fi
7892
7893# On IRIX 5.3, sys/types and inttypes.h are conflicting.
7894for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7895		  inttypes.h stdint.h unistd.h
7896do :
7897  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7898ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7899"
7900if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
7901  cat >>confdefs.h <<_ACEOF
7902#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7903_ACEOF
7904
7905fi
7906
7907done
7908
7909
7910for ac_header in dlfcn.h
7911do :
7912  ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7913"
7914if test "x$ac_cv_header_dlfcn_h" = xyes; then :
7915  cat >>confdefs.h <<_ACEOF
7916#define HAVE_DLFCN_H 1
7917_ACEOF
7918
7919fi
7920
7921done
7922
7923
7924
7925
7926
7927# Set options
7928
7929
7930
7931        enable_dlopen=no
7932
7933
7934  enable_win32_dll=no
7935
7936
7937            # Check whether --enable-shared was given.
7938if test "${enable_shared+set}" = set; then :
7939  enableval=$enable_shared; p=${PACKAGE-default}
7940    case $enableval in
7941    yes) enable_shared=yes ;;
7942    no) enable_shared=no ;;
7943    *)
7944      enable_shared=no
7945      # Look at the argument we got.  We use all the common list separators.
7946      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
7947      for pkg in $enableval; do
7948	IFS=$lt_save_ifs
7949	if test "X$pkg" = "X$p"; then
7950	  enable_shared=yes
7951	fi
7952      done
7953      IFS=$lt_save_ifs
7954      ;;
7955    esac
7956else
7957  enable_shared=yes
7958fi
7959
7960
7961
7962
7963
7964
7965
7966
7967
7968  # Check whether --enable-static was given.
7969if test "${enable_static+set}" = set; then :
7970  enableval=$enable_static; p=${PACKAGE-default}
7971    case $enableval in
7972    yes) enable_static=yes ;;
7973    no) enable_static=no ;;
7974    *)
7975     enable_static=no
7976      # Look at the argument we got.  We use all the common list separators.
7977      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
7978      for pkg in $enableval; do
7979	IFS=$lt_save_ifs
7980	if test "X$pkg" = "X$p"; then
7981	  enable_static=yes
7982	fi
7983      done
7984      IFS=$lt_save_ifs
7985      ;;
7986    esac
7987else
7988  enable_static=yes
7989fi
7990
7991
7992
7993
7994
7995
7996
7997
7998
7999
8000# Check whether --with-pic was given.
8001if test "${with_pic+set}" = set; then :
8002  withval=$with_pic; lt_p=${PACKAGE-default}
8003    case $withval in
8004    yes|no) pic_mode=$withval ;;
8005    *)
8006      pic_mode=default
8007      # Look at the argument we got.  We use all the common list separators.
8008      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8009      for lt_pkg in $withval; do
8010	IFS=$lt_save_ifs
8011	if test "X$lt_pkg" = "X$lt_p"; then
8012	  pic_mode=yes
8013	fi
8014      done
8015      IFS=$lt_save_ifs
8016      ;;
8017    esac
8018else
8019  pic_mode=default
8020fi
8021
8022
8023
8024
8025
8026
8027
8028
8029  # Check whether --enable-fast-install was given.
8030if test "${enable_fast_install+set}" = set; then :
8031  enableval=$enable_fast_install; p=${PACKAGE-default}
8032    case $enableval in
8033    yes) enable_fast_install=yes ;;
8034    no) enable_fast_install=no ;;
8035    *)
8036      enable_fast_install=no
8037      # Look at the argument we got.  We use all the common list separators.
8038      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8039      for pkg in $enableval; do
8040	IFS=$lt_save_ifs
8041	if test "X$pkg" = "X$p"; then
8042	  enable_fast_install=yes
8043	fi
8044      done
8045      IFS=$lt_save_ifs
8046      ;;
8047    esac
8048else
8049  enable_fast_install=yes
8050fi
8051
8052
8053
8054
8055
8056
8057
8058
8059
8060
8061
8062# This can be used to rebuild libtool when needed
8063LIBTOOL_DEPS=$ltmain
8064
8065# Always use our own libtool.
8066LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8067
8068
8069
8070
8071
8072
8073
8074
8075
8076
8077
8078
8079
8080
8081
8082
8083
8084
8085
8086
8087
8088
8089
8090
8091
8092
8093
8094
8095
8096
8097test -z "$LN_S" && LN_S="ln -s"
8098
8099
8100
8101
8102
8103
8104
8105
8106
8107
8108
8109
8110
8111
8112if test -n "${ZSH_VERSION+set}"; then
8113   setopt NO_GLOB_SUBST
8114fi
8115
8116{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8117$as_echo_n "checking for objdir... " >&6; }
8118if ${lt_cv_objdir+:} false; then :
8119  $as_echo_n "(cached) " >&6
8120else
8121  rm -f .libs 2>/dev/null
8122mkdir .libs 2>/dev/null
8123if test -d .libs; then
8124  lt_cv_objdir=.libs
8125else
8126  # MS-DOS does not allow filenames that begin with a dot.
8127  lt_cv_objdir=_libs
8128fi
8129rmdir .libs 2>/dev/null
8130fi
8131{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8132$as_echo "$lt_cv_objdir" >&6; }
8133objdir=$lt_cv_objdir
8134
8135
8136
8137
8138
8139cat >>confdefs.h <<_ACEOF
8140#define LT_OBJDIR "$lt_cv_objdir/"
8141_ACEOF
8142
8143
8144
8145
8146case $host_os in
8147aix3*)
8148  # AIX sometimes has problems with the GCC collect2 program.  For some
8149  # reason, if we set the COLLECT_NAMES environment variable, the problems
8150  # vanish in a puff of smoke.
8151  if test set != "${COLLECT_NAMES+set}"; then
8152    COLLECT_NAMES=
8153    export COLLECT_NAMES
8154  fi
8155  ;;
8156esac
8157
8158# Global variables:
8159ofile=libtool
8160can_build_shared=yes
8161
8162# All known linkers require a '.a' archive for static linking (except MSVC,
8163# which needs '.lib').
8164libext=a
8165
8166with_gnu_ld=$lt_cv_prog_gnu_ld
8167
8168old_CC=$CC
8169old_CFLAGS=$CFLAGS
8170
8171# Set sane defaults for various variables
8172test -z "$CC" && CC=cc
8173test -z "$LTCC" && LTCC=$CC
8174test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8175test -z "$LD" && LD=ld
8176test -z "$ac_objext" && ac_objext=o
8177
8178for cc_temp in $compiler""; do
8179  case $cc_temp in
8180    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8181    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8182    \-*) ;;
8183    *) break;;
8184  esac
8185done
8186cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
8187
8188
8189# Only perform the check for file, if the check method requires it
8190test -z "$MAGIC_CMD" && MAGIC_CMD=file
8191case $deplibs_check_method in
8192file_magic*)
8193  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8194    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8195$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8196if ${lt_cv_path_MAGIC_CMD+:} false; then :
8197  $as_echo_n "(cached) " >&6
8198else
8199  case $MAGIC_CMD in
8200[\\/*] |  ?:[\\/]*)
8201  lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
8202  ;;
8203*)
8204  lt_save_MAGIC_CMD=$MAGIC_CMD
8205  lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
8206  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8207  for ac_dir in $ac_dummy; do
8208    IFS=$lt_save_ifs
8209    test -z "$ac_dir" && ac_dir=.
8210    if test -f "$ac_dir/${ac_tool_prefix}file"; then
8211      lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
8212      if test -n "$file_magic_test_file"; then
8213	case $deplibs_check_method in
8214	"file_magic "*)
8215	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8216	  MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8217	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8218	    $EGREP "$file_magic_regex" > /dev/null; then
8219	    :
8220	  else
8221	    cat <<_LT_EOF 1>&2
8222
8223*** Warning: the command libtool uses to detect shared libraries,
8224*** $file_magic_cmd, produces output that libtool cannot recognize.
8225*** The result is that libtool may fail to recognize shared libraries
8226*** as such.  This will affect the creation of libtool libraries that
8227*** depend on shared libraries, but programs linked with such libtool
8228*** libraries will work regardless of this problem.  Nevertheless, you
8229*** may want to report the problem to your system manager and/or to
8230*** bug-libtool@gnu.org
8231
8232_LT_EOF
8233	  fi ;;
8234	esac
8235      fi
8236      break
8237    fi
8238  done
8239  IFS=$lt_save_ifs
8240  MAGIC_CMD=$lt_save_MAGIC_CMD
8241  ;;
8242esac
8243fi
8244
8245MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8246if test -n "$MAGIC_CMD"; then
8247  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8248$as_echo "$MAGIC_CMD" >&6; }
8249else
8250  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8251$as_echo "no" >&6; }
8252fi
8253
8254
8255
8256
8257
8258if test -z "$lt_cv_path_MAGIC_CMD"; then
8259  if test -n "$ac_tool_prefix"; then
8260    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8261$as_echo_n "checking for file... " >&6; }
8262if ${lt_cv_path_MAGIC_CMD+:} false; then :
8263  $as_echo_n "(cached) " >&6
8264else
8265  case $MAGIC_CMD in
8266[\\/*] |  ?:[\\/]*)
8267  lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
8268  ;;
8269*)
8270  lt_save_MAGIC_CMD=$MAGIC_CMD
8271  lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
8272  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8273  for ac_dir in $ac_dummy; do
8274    IFS=$lt_save_ifs
8275    test -z "$ac_dir" && ac_dir=.
8276    if test -f "$ac_dir/file"; then
8277      lt_cv_path_MAGIC_CMD=$ac_dir/"file"
8278      if test -n "$file_magic_test_file"; then
8279	case $deplibs_check_method in
8280	"file_magic "*)
8281	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8282	  MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8283	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8284	    $EGREP "$file_magic_regex" > /dev/null; then
8285	    :
8286	  else
8287	    cat <<_LT_EOF 1>&2
8288
8289*** Warning: the command libtool uses to detect shared libraries,
8290*** $file_magic_cmd, produces output that libtool cannot recognize.
8291*** The result is that libtool may fail to recognize shared libraries
8292*** as such.  This will affect the creation of libtool libraries that
8293*** depend on shared libraries, but programs linked with such libtool
8294*** libraries will work regardless of this problem.  Nevertheless, you
8295*** may want to report the problem to your system manager and/or to
8296*** bug-libtool@gnu.org
8297
8298_LT_EOF
8299	  fi ;;
8300	esac
8301      fi
8302      break
8303    fi
8304  done
8305  IFS=$lt_save_ifs
8306  MAGIC_CMD=$lt_save_MAGIC_CMD
8307  ;;
8308esac
8309fi
8310
8311MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8312if test -n "$MAGIC_CMD"; then
8313  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8314$as_echo "$MAGIC_CMD" >&6; }
8315else
8316  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8317$as_echo "no" >&6; }
8318fi
8319
8320
8321  else
8322    MAGIC_CMD=:
8323  fi
8324fi
8325
8326  fi
8327  ;;
8328esac
8329
8330# Use C for the default configuration in the libtool script
8331
8332lt_save_CC=$CC
8333ac_ext=c
8334ac_cpp='$CPP $CPPFLAGS'
8335ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8336ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8337ac_compiler_gnu=$ac_cv_c_compiler_gnu
8338
8339
8340# Source file extension for C test sources.
8341ac_ext=c
8342
8343# Object file extension for compiled C test sources.
8344objext=o
8345objext=$objext
8346
8347# Code to be used in simple compile tests
8348lt_simple_compile_test_code="int some_variable = 0;"
8349
8350# Code to be used in simple link tests
8351lt_simple_link_test_code='int main(){return(0);}'
8352
8353
8354
8355
8356
8357
8358
8359# If no C compiler was specified, use CC.
8360LTCC=${LTCC-"$CC"}
8361
8362# If no C compiler flags were specified, use CFLAGS.
8363LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8364
8365# Allow CC to be a program name with arguments.
8366compiler=$CC
8367
8368# Save the default compiler, since it gets overwritten when the other
8369# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8370compiler_DEFAULT=$CC
8371
8372# save warnings/boilerplate of simple test code
8373ac_outfile=conftest.$ac_objext
8374echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8375eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8376_lt_compiler_boilerplate=`cat conftest.err`
8377$RM conftest*
8378
8379ac_outfile=conftest.$ac_objext
8380echo "$lt_simple_link_test_code" >conftest.$ac_ext
8381eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8382_lt_linker_boilerplate=`cat conftest.err`
8383$RM -r conftest*
8384
8385
8386## CAVEAT EMPTOR:
8387## There is no encapsulation within the following macros, do not change
8388## the running order or otherwise move them around unless you know exactly
8389## what you are doing...
8390if test -n "$compiler"; then
8391
8392lt_prog_compiler_no_builtin_flag=
8393
8394if test yes = "$GCC"; then
8395  case $cc_basename in
8396  nvcc*)
8397    lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8398  *)
8399    lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8400  esac
8401
8402  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8403$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8404if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
8405  $as_echo_n "(cached) " >&6
8406else
8407  lt_cv_prog_compiler_rtti_exceptions=no
8408   ac_outfile=conftest.$ac_objext
8409   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8410   lt_compiler_flag="-fno-rtti -fno-exceptions"  ## exclude from sc_useless_quotes_in_assignment
8411   # Insert the option either (1) after the last *FLAGS variable, or
8412   # (2) before a word containing "conftest.", or (3) at the end.
8413   # Note that $ac_compile itself does not contain backslashes and begins
8414   # with a dollar sign (not a hyphen), so the echo should work correctly.
8415   # The option is referenced via a variable to avoid confusing sed.
8416   lt_compile=`echo "$ac_compile" | $SED \
8417   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8418   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8419   -e 's:$: $lt_compiler_flag:'`
8420   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8421   (eval "$lt_compile" 2>conftest.err)
8422   ac_status=$?
8423   cat conftest.err >&5
8424   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8425   if (exit $ac_status) && test -s "$ac_outfile"; then
8426     # The compiler can only warn and ignore the option if not recognized
8427     # So say no if there are warnings other than the usual output.
8428     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8429     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8430     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8431       lt_cv_prog_compiler_rtti_exceptions=yes
8432     fi
8433   fi
8434   $RM conftest*
8435
8436fi
8437{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8438$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8439
8440if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
8441    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8442else
8443    :
8444fi
8445
8446fi
8447
8448
8449
8450
8451
8452
8453  lt_prog_compiler_wl=
8454lt_prog_compiler_pic=
8455lt_prog_compiler_static=
8456
8457
8458  if test yes = "$GCC"; then
8459    lt_prog_compiler_wl='-Wl,'
8460    lt_prog_compiler_static='-static'
8461
8462    case $host_os in
8463      aix*)
8464      # All AIX code is PIC.
8465      if test ia64 = "$host_cpu"; then
8466	# AIX 5 now supports IA64 processor
8467	lt_prog_compiler_static='-Bstatic'
8468      fi
8469      lt_prog_compiler_pic='-fPIC'
8470      ;;
8471
8472    amigaos*)
8473      case $host_cpu in
8474      powerpc)
8475            # see comment about AmigaOS4 .so support
8476            lt_prog_compiler_pic='-fPIC'
8477        ;;
8478      m68k)
8479            # FIXME: we need at least 68020 code to build shared libraries, but
8480            # adding the '-m68020' flag to GCC prevents building anything better,
8481            # like '-m68040'.
8482            lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8483        ;;
8484      esac
8485      ;;
8486
8487    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8488      # PIC is the default for these OSes.
8489      ;;
8490
8491    mingw* | cygwin* | pw32* | os2* | cegcc*)
8492      # This hack is so that the source file can tell whether it is being
8493      # built for inclusion in a dll (and should export symbols for example).
8494      # Although the cygwin gcc ignores -fPIC, still need this for old-style
8495      # (--disable-auto-import) libraries
8496      lt_prog_compiler_pic='-DDLL_EXPORT'
8497      ;;
8498
8499    darwin* | rhapsody*)
8500      # PIC is the default on this platform
8501      # Common symbols not allowed in MH_DYLIB files
8502      lt_prog_compiler_pic='-fno-common'
8503      ;;
8504
8505    haiku*)
8506      # PIC is the default for Haiku.
8507      # The "-static" flag exists, but is broken.
8508      lt_prog_compiler_static=
8509      ;;
8510
8511    hpux*)
8512      # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8513      # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
8514      # sets the default TLS model and affects inlining.
8515      case $host_cpu in
8516      hppa*64*)
8517	# +Z the default
8518	;;
8519      *)
8520	lt_prog_compiler_pic='-fPIC'
8521	;;
8522      esac
8523      ;;
8524
8525    interix[3-9]*)
8526      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8527      # Instead, we relocate shared libraries at runtime.
8528      ;;
8529
8530    msdosdjgpp*)
8531      # Just because we use GCC doesn't mean we suddenly get shared libraries
8532      # on systems that don't support them.
8533      lt_prog_compiler_can_build_shared=no
8534      enable_shared=no
8535      ;;
8536
8537    *nto* | *qnx*)
8538      # QNX uses GNU C++, but need to define -shared option too, otherwise
8539      # it will coredump.
8540      lt_prog_compiler_pic='-fPIC -shared'
8541      ;;
8542
8543    sysv4*MP*)
8544      if test -d /usr/nec; then
8545	lt_prog_compiler_pic=-Kconform_pic
8546      fi
8547      ;;
8548
8549    *)
8550      lt_prog_compiler_pic='-fPIC'
8551      ;;
8552    esac
8553
8554    case $cc_basename in
8555    nvcc*) # Cuda Compiler Driver 2.2
8556      lt_prog_compiler_wl='-Xlinker '
8557      if test -n "$lt_prog_compiler_pic"; then
8558        lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
8559      fi
8560      ;;
8561    esac
8562  else
8563    # PORTME Check for flag to pass linker flags through the system compiler.
8564    case $host_os in
8565    aix*)
8566      lt_prog_compiler_wl='-Wl,'
8567      if test ia64 = "$host_cpu"; then
8568	# AIX 5 now supports IA64 processor
8569	lt_prog_compiler_static='-Bstatic'
8570      else
8571	lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8572      fi
8573      ;;
8574
8575    darwin* | rhapsody*)
8576      # PIC is the default on this platform
8577      # Common symbols not allowed in MH_DYLIB files
8578      lt_prog_compiler_pic='-fno-common'
8579      case $cc_basename in
8580      nagfor*)
8581        # NAG Fortran compiler
8582        lt_prog_compiler_wl='-Wl,-Wl,,'
8583        lt_prog_compiler_pic='-PIC'
8584        lt_prog_compiler_static='-Bstatic'
8585        ;;
8586      esac
8587      ;;
8588
8589    mingw* | cygwin* | pw32* | os2* | cegcc*)
8590      # This hack is so that the source file can tell whether it is being
8591      # built for inclusion in a dll (and should export symbols for example).
8592      lt_prog_compiler_pic='-DDLL_EXPORT'
8593      ;;
8594
8595    hpux9* | hpux10* | hpux11*)
8596      lt_prog_compiler_wl='-Wl,'
8597      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8598      # not for PA HP-UX.
8599      case $host_cpu in
8600      hppa*64*|ia64*)
8601	# +Z the default
8602	;;
8603      *)
8604	lt_prog_compiler_pic='+Z'
8605	;;
8606      esac
8607      # Is there a better lt_prog_compiler_static that works with the bundled CC?
8608      lt_prog_compiler_static='$wl-a ${wl}archive'
8609      ;;
8610
8611    irix5* | irix6* | nonstopux*)
8612      lt_prog_compiler_wl='-Wl,'
8613      # PIC (with -KPIC) is the default.
8614      lt_prog_compiler_static='-non_shared'
8615      ;;
8616
8617    linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
8618      case $cc_basename in
8619      # old Intel for x86_64, which still supported -KPIC.
8620      ecc*)
8621	lt_prog_compiler_wl='-Wl,'
8622	lt_prog_compiler_pic='-KPIC'
8623	lt_prog_compiler_static='-static'
8624        ;;
8625      # icc used to be incompatible with GCC.
8626      # ICC 10 doesn't accept -KPIC any more.
8627      icc* | ifort*)
8628	lt_prog_compiler_wl='-Wl,'
8629	lt_prog_compiler_pic='-fPIC'
8630	lt_prog_compiler_static='-static'
8631        ;;
8632      # Lahey Fortran 8.1.
8633      lf95*)
8634	lt_prog_compiler_wl='-Wl,'
8635	lt_prog_compiler_pic='--shared'
8636	lt_prog_compiler_static='--static'
8637	;;
8638      nagfor*)
8639	# NAG Fortran compiler
8640	lt_prog_compiler_wl='-Wl,-Wl,,'
8641	lt_prog_compiler_pic='-PIC'
8642	lt_prog_compiler_static='-Bstatic'
8643	;;
8644      tcc*)
8645	# Fabrice Bellard et al's Tiny C Compiler
8646	lt_prog_compiler_wl='-Wl,'
8647	lt_prog_compiler_pic='-fPIC'
8648	lt_prog_compiler_static='-static'
8649	;;
8650      pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
8651        # Portland Group compilers (*not* the Pentium gcc compiler,
8652	# which looks to be a dead project)
8653	lt_prog_compiler_wl='-Wl,'
8654	lt_prog_compiler_pic='-fpic'
8655	lt_prog_compiler_static='-Bstatic'
8656        ;;
8657      ccc*)
8658        lt_prog_compiler_wl='-Wl,'
8659        # All Alpha code is PIC.
8660        lt_prog_compiler_static='-non_shared'
8661        ;;
8662      xl* | bgxl* | bgf* | mpixl*)
8663	# IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8664	lt_prog_compiler_wl='-Wl,'
8665	lt_prog_compiler_pic='-qpic'
8666	lt_prog_compiler_static='-qstaticlink'
8667	;;
8668      *)
8669	case `$CC -V 2>&1 | sed 5q` in
8670	*Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
8671	  # Sun Fortran 8.3 passes all unrecognized flags to the linker
8672	  lt_prog_compiler_pic='-KPIC'
8673	  lt_prog_compiler_static='-Bstatic'
8674	  lt_prog_compiler_wl=''
8675	  ;;
8676	*Sun\ F* | *Sun*Fortran*)
8677	  lt_prog_compiler_pic='-KPIC'
8678	  lt_prog_compiler_static='-Bstatic'
8679	  lt_prog_compiler_wl='-Qoption ld '
8680	  ;;
8681	*Sun\ C*)
8682	  # Sun C 5.9
8683	  lt_prog_compiler_pic='-KPIC'
8684	  lt_prog_compiler_static='-Bstatic'
8685	  lt_prog_compiler_wl='-Wl,'
8686	  ;;
8687        *Intel*\ [CF]*Compiler*)
8688	  lt_prog_compiler_wl='-Wl,'
8689	  lt_prog_compiler_pic='-fPIC'
8690	  lt_prog_compiler_static='-static'
8691	  ;;
8692	*Portland\ Group*)
8693	  lt_prog_compiler_wl='-Wl,'
8694	  lt_prog_compiler_pic='-fpic'
8695	  lt_prog_compiler_static='-Bstatic'
8696	  ;;
8697	esac
8698	;;
8699      esac
8700      ;;
8701
8702    newsos6)
8703      lt_prog_compiler_pic='-KPIC'
8704      lt_prog_compiler_static='-Bstatic'
8705      ;;
8706
8707    *nto* | *qnx*)
8708      # QNX uses GNU C++, but need to define -shared option too, otherwise
8709      # it will coredump.
8710      lt_prog_compiler_pic='-fPIC -shared'
8711      ;;
8712
8713    osf3* | osf4* | osf5*)
8714      lt_prog_compiler_wl='-Wl,'
8715      # All OSF/1 code is PIC.
8716      lt_prog_compiler_static='-non_shared'
8717      ;;
8718
8719    rdos*)
8720      lt_prog_compiler_static='-non_shared'
8721      ;;
8722
8723    solaris*)
8724      lt_prog_compiler_pic='-KPIC'
8725      lt_prog_compiler_static='-Bstatic'
8726      case $cc_basename in
8727      f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
8728	lt_prog_compiler_wl='-Qoption ld ';;
8729      *)
8730	lt_prog_compiler_wl='-Wl,';;
8731      esac
8732      ;;
8733
8734    sunos4*)
8735      lt_prog_compiler_wl='-Qoption ld '
8736      lt_prog_compiler_pic='-PIC'
8737      lt_prog_compiler_static='-Bstatic'
8738      ;;
8739
8740    sysv4 | sysv4.2uw2* | sysv4.3*)
8741      lt_prog_compiler_wl='-Wl,'
8742      lt_prog_compiler_pic='-KPIC'
8743      lt_prog_compiler_static='-Bstatic'
8744      ;;
8745
8746    sysv4*MP*)
8747      if test -d /usr/nec; then
8748	lt_prog_compiler_pic='-Kconform_pic'
8749	lt_prog_compiler_static='-Bstatic'
8750      fi
8751      ;;
8752
8753    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8754      lt_prog_compiler_wl='-Wl,'
8755      lt_prog_compiler_pic='-KPIC'
8756      lt_prog_compiler_static='-Bstatic'
8757      ;;
8758
8759    unicos*)
8760      lt_prog_compiler_wl='-Wl,'
8761      lt_prog_compiler_can_build_shared=no
8762      ;;
8763
8764    uts4*)
8765      lt_prog_compiler_pic='-pic'
8766      lt_prog_compiler_static='-Bstatic'
8767      ;;
8768
8769    *)
8770      lt_prog_compiler_can_build_shared=no
8771      ;;
8772    esac
8773  fi
8774
8775case $host_os in
8776  # For platforms that do not support PIC, -DPIC is meaningless:
8777  *djgpp*)
8778    lt_prog_compiler_pic=
8779    ;;
8780  *)
8781    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8782    ;;
8783esac
8784
8785{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8786$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8787if ${lt_cv_prog_compiler_pic+:} false; then :
8788  $as_echo_n "(cached) " >&6
8789else
8790  lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
8791fi
8792{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
8793$as_echo "$lt_cv_prog_compiler_pic" >&6; }
8794lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
8795
8796#
8797# Check to make sure the PIC flag actually works.
8798#
8799if test -n "$lt_prog_compiler_pic"; then
8800  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8801$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8802if ${lt_cv_prog_compiler_pic_works+:} false; then :
8803  $as_echo_n "(cached) " >&6
8804else
8805  lt_cv_prog_compiler_pic_works=no
8806   ac_outfile=conftest.$ac_objext
8807   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8808   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"  ## exclude from sc_useless_quotes_in_assignment
8809   # Insert the option either (1) after the last *FLAGS variable, or
8810   # (2) before a word containing "conftest.", or (3) at the end.
8811   # Note that $ac_compile itself does not contain backslashes and begins
8812   # with a dollar sign (not a hyphen), so the echo should work correctly.
8813   # The option is referenced via a variable to avoid confusing sed.
8814   lt_compile=`echo "$ac_compile" | $SED \
8815   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8816   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8817   -e 's:$: $lt_compiler_flag:'`
8818   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8819   (eval "$lt_compile" 2>conftest.err)
8820   ac_status=$?
8821   cat conftest.err >&5
8822   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8823   if (exit $ac_status) && test -s "$ac_outfile"; then
8824     # The compiler can only warn and ignore the option if not recognized
8825     # So say no if there are warnings other than the usual output.
8826     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8827     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8828     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8829       lt_cv_prog_compiler_pic_works=yes
8830     fi
8831   fi
8832   $RM conftest*
8833
8834fi
8835{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8836$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8837
8838if test yes = "$lt_cv_prog_compiler_pic_works"; then
8839    case $lt_prog_compiler_pic in
8840     "" | " "*) ;;
8841     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8842     esac
8843else
8844    lt_prog_compiler_pic=
8845     lt_prog_compiler_can_build_shared=no
8846fi
8847
8848fi
8849
8850
8851
8852
8853
8854
8855
8856
8857
8858
8859
8860#
8861# Check to make sure the static flag actually works.
8862#
8863wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8864{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8865$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8866if ${lt_cv_prog_compiler_static_works+:} false; then :
8867  $as_echo_n "(cached) " >&6
8868else
8869  lt_cv_prog_compiler_static_works=no
8870   save_LDFLAGS=$LDFLAGS
8871   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8872   echo "$lt_simple_link_test_code" > conftest.$ac_ext
8873   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8874     # The linker can only warn and ignore the option if not recognized
8875     # So say no if there are warnings
8876     if test -s conftest.err; then
8877       # Append any errors to the config.log.
8878       cat conftest.err 1>&5
8879       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
8880       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8881       if diff conftest.exp conftest.er2 >/dev/null; then
8882         lt_cv_prog_compiler_static_works=yes
8883       fi
8884     else
8885       lt_cv_prog_compiler_static_works=yes
8886     fi
8887   fi
8888   $RM -r conftest*
8889   LDFLAGS=$save_LDFLAGS
8890
8891fi
8892{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8893$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8894
8895if test yes = "$lt_cv_prog_compiler_static_works"; then
8896    :
8897else
8898    lt_prog_compiler_static=
8899fi
8900
8901
8902
8903
8904
8905
8906
8907  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8908$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8909if ${lt_cv_prog_compiler_c_o+:} false; then :
8910  $as_echo_n "(cached) " >&6
8911else
8912  lt_cv_prog_compiler_c_o=no
8913   $RM -r conftest 2>/dev/null
8914   mkdir conftest
8915   cd conftest
8916   mkdir out
8917   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8918
8919   lt_compiler_flag="-o out/conftest2.$ac_objext"
8920   # Insert the option either (1) after the last *FLAGS variable, or
8921   # (2) before a word containing "conftest.", or (3) at the end.
8922   # Note that $ac_compile itself does not contain backslashes and begins
8923   # with a dollar sign (not a hyphen), so the echo should work correctly.
8924   lt_compile=`echo "$ac_compile" | $SED \
8925   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8926   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8927   -e 's:$: $lt_compiler_flag:'`
8928   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8929   (eval "$lt_compile" 2>out/conftest.err)
8930   ac_status=$?
8931   cat out/conftest.err >&5
8932   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8933   if (exit $ac_status) && test -s out/conftest2.$ac_objext
8934   then
8935     # The compiler can only warn and ignore the option if not recognized
8936     # So say no if there are warnings
8937     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8938     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8939     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8940       lt_cv_prog_compiler_c_o=yes
8941     fi
8942   fi
8943   chmod u+w . 2>&5
8944   $RM conftest*
8945   # SGI C++ compiler will create directory out/ii_files/ for
8946   # template instantiation
8947   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8948   $RM out/* && rmdir out
8949   cd ..
8950   $RM -r conftest
8951   $RM conftest*
8952
8953fi
8954{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8955$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8956
8957
8958
8959
8960
8961
8962  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8963$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8964if ${lt_cv_prog_compiler_c_o+:} false; then :
8965  $as_echo_n "(cached) " >&6
8966else
8967  lt_cv_prog_compiler_c_o=no
8968   $RM -r conftest 2>/dev/null
8969   mkdir conftest
8970   cd conftest
8971   mkdir out
8972   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8973
8974   lt_compiler_flag="-o out/conftest2.$ac_objext"
8975   # Insert the option either (1) after the last *FLAGS variable, or
8976   # (2) before a word containing "conftest.", or (3) at the end.
8977   # Note that $ac_compile itself does not contain backslashes and begins
8978   # with a dollar sign (not a hyphen), so the echo should work correctly.
8979   lt_compile=`echo "$ac_compile" | $SED \
8980   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8981   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8982   -e 's:$: $lt_compiler_flag:'`
8983   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8984   (eval "$lt_compile" 2>out/conftest.err)
8985   ac_status=$?
8986   cat out/conftest.err >&5
8987   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8988   if (exit $ac_status) && test -s out/conftest2.$ac_objext
8989   then
8990     # The compiler can only warn and ignore the option if not recognized
8991     # So say no if there are warnings
8992     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8993     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8994     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8995       lt_cv_prog_compiler_c_o=yes
8996     fi
8997   fi
8998   chmod u+w . 2>&5
8999   $RM conftest*
9000   # SGI C++ compiler will create directory out/ii_files/ for
9001   # template instantiation
9002   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9003   $RM out/* && rmdir out
9004   cd ..
9005   $RM -r conftest
9006   $RM conftest*
9007
9008fi
9009{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9010$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9011
9012
9013
9014
9015hard_links=nottested
9016if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
9017  # do not overwrite the value of need_locks provided by the user
9018  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
9019$as_echo_n "checking if we can lock with hard links... " >&6; }
9020  hard_links=yes
9021  $RM conftest*
9022  ln conftest.a conftest.b 2>/dev/null && hard_links=no
9023  touch conftest.a
9024  ln conftest.a conftest.b 2>&5 || hard_links=no
9025  ln conftest.a conftest.b 2>/dev/null && hard_links=no
9026  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
9027$as_echo "$hard_links" >&6; }
9028  if test no = "$hard_links"; then
9029    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
9030$as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
9031    need_locks=warn
9032  fi
9033else
9034  need_locks=no
9035fi
9036
9037
9038
9039
9040
9041
9042  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9043$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9044
9045  runpath_var=
9046  allow_undefined_flag=
9047  always_export_symbols=no
9048  archive_cmds=
9049  archive_expsym_cmds=
9050  compiler_needs_object=no
9051  enable_shared_with_static_runtimes=no
9052  export_dynamic_flag_spec=
9053  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9054  hardcode_automatic=no
9055  hardcode_direct=no
9056  hardcode_direct_absolute=no
9057  hardcode_libdir_flag_spec=
9058  hardcode_libdir_separator=
9059  hardcode_minus_L=no
9060  hardcode_shlibpath_var=unsupported
9061  inherit_rpath=no
9062  link_all_deplibs=unknown
9063  module_cmds=
9064  module_expsym_cmds=
9065  old_archive_from_new_cmds=
9066  old_archive_from_expsyms_cmds=
9067  thread_safe_flag_spec=
9068  whole_archive_flag_spec=
9069  # include_expsyms should be a list of space-separated symbols to be *always*
9070  # included in the symbol list
9071  include_expsyms=
9072  # exclude_expsyms can be an extended regexp of symbols to exclude
9073  # it will be wrapped by ' (' and ')$', so one must not match beginning or
9074  # end of line.  Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
9075  # as well as any symbol that contains 'd'.
9076  exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9077  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9078  # platforms (ab)use it in PIC code, but their linkers get confused if
9079  # the symbol is explicitly referenced.  Since portable code cannot
9080  # rely on this symbol name, it's probably fine to never include it in
9081  # preloaded symbol tables.
9082  # Exclude shared library initialization/finalization symbols.
9083  extract_expsyms_cmds=
9084
9085  case $host_os in
9086  cygwin* | mingw* | pw32* | cegcc*)
9087    # FIXME: the MSVC++ port hasn't been tested in a loooong time
9088    # When not using gcc, we currently assume that we are using
9089    # Microsoft Visual C++.
9090    if test yes != "$GCC"; then
9091      with_gnu_ld=no
9092    fi
9093    ;;
9094  interix*)
9095    # we just hope/assume this is gcc and not c89 (= MSVC++)
9096    with_gnu_ld=yes
9097    ;;
9098  openbsd* | bitrig*)
9099    with_gnu_ld=no
9100    ;;
9101  esac
9102
9103  ld_shlibs=yes
9104
9105  # On some targets, GNU ld is compatible enough with the native linker
9106  # that we're better off using the native interface for both.
9107  lt_use_gnu_ld_interface=no
9108  if test yes = "$with_gnu_ld"; then
9109    case $host_os in
9110      aix*)
9111	# The AIX port of GNU ld has always aspired to compatibility
9112	# with the native linker.  However, as the warning in the GNU ld
9113	# block says, versions before 2.19.5* couldn't really create working
9114	# shared libraries, regardless of the interface used.
9115	case `$LD -v 2>&1` in
9116	  *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
9117	  *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
9118	  *\ \(GNU\ Binutils\)\ [3-9]*) ;;
9119	  *)
9120	    lt_use_gnu_ld_interface=yes
9121	    ;;
9122	esac
9123	;;
9124      *)
9125	lt_use_gnu_ld_interface=yes
9126	;;
9127    esac
9128  fi
9129
9130  if test yes = "$lt_use_gnu_ld_interface"; then
9131    # If archive_cmds runs LD, not CC, wlarc should be empty
9132    wlarc='$wl'
9133
9134    # Set some defaults for GNU ld with shared library support. These
9135    # are reset later if shared libraries are not supported. Putting them
9136    # here allows them to be overridden if necessary.
9137    runpath_var=LD_RUN_PATH
9138    hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9139    export_dynamic_flag_spec='$wl--export-dynamic'
9140    # ancient GNU ld didn't support --whole-archive et. al.
9141    if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9142      whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
9143    else
9144      whole_archive_flag_spec=
9145    fi
9146    supports_anon_versioning=no
9147    case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in
9148      *GNU\ gold*) supports_anon_versioning=yes ;;
9149      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9150      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9151      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9152      *\ 2.11.*) ;; # other 2.11 versions
9153      *) supports_anon_versioning=yes ;;
9154    esac
9155
9156    # See if GNU ld supports shared libraries.
9157    case $host_os in
9158    aix[3-9]*)
9159      # On AIX/PPC, the GNU linker is very broken
9160      if test ia64 != "$host_cpu"; then
9161	ld_shlibs=no
9162	cat <<_LT_EOF 1>&2
9163
9164*** Warning: the GNU linker, at least up to release 2.19, is reported
9165*** to be unable to reliably create shared libraries on AIX.
9166*** Therefore, libtool is disabling shared libraries support.  If you
9167*** really care for shared libraries, you may want to install binutils
9168*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9169*** You will then need to restart the configuration process.
9170
9171_LT_EOF
9172      fi
9173      ;;
9174
9175    amigaos*)
9176      case $host_cpu in
9177      powerpc)
9178            # see comment about AmigaOS4 .so support
9179            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9180            archive_expsym_cmds=''
9181        ;;
9182      m68k)
9183            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)'
9184            hardcode_libdir_flag_spec='-L$libdir'
9185            hardcode_minus_L=yes
9186        ;;
9187      esac
9188      ;;
9189
9190    beos*)
9191      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9192	allow_undefined_flag=unsupported
9193	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9194	# support --undefined.  This deserves some investigation.  FIXME
9195	archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9196      else
9197	ld_shlibs=no
9198      fi
9199      ;;
9200
9201    cygwin* | mingw* | pw32* | cegcc*)
9202      # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9203      # as there is no search path for DLLs.
9204      hardcode_libdir_flag_spec='-L$libdir'
9205      export_dynamic_flag_spec='$wl--export-all-symbols'
9206      allow_undefined_flag=unsupported
9207      always_export_symbols=no
9208      enable_shared_with_static_runtimes=yes
9209      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'
9210      exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
9211
9212      if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9213        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9214	# If the export-symbols file already is a .def file, use it as
9215	# is; otherwise, prepend EXPORTS...
9216	archive_expsym_cmds='if   test DEF = "`$SED -n     -e '\''s/^[	 ]*//'\''     -e '\''/^\(;.*\)*$/d'\''     -e '\''s/^\(EXPORTS\|LIBRARY\)\([	 ].*\)*$/DEF/p'\''     -e q     $export_symbols`" ; then
9217          cp $export_symbols $output_objdir/$soname.def;
9218        else
9219          echo EXPORTS > $output_objdir/$soname.def;
9220          cat $export_symbols >> $output_objdir/$soname.def;
9221        fi~
9222        $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9223      else
9224	ld_shlibs=no
9225      fi
9226      ;;
9227
9228    haiku*)
9229      archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9230      link_all_deplibs=yes
9231      ;;
9232
9233    interix[3-9]*)
9234      hardcode_direct=no
9235      hardcode_shlibpath_var=no
9236      hardcode_libdir_flag_spec='$wl-rpath,$libdir'
9237      export_dynamic_flag_spec='$wl-E'
9238      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9239      # Instead, shared libraries are loaded at an image base (0x10000000 by
9240      # default) and relocated if they conflict, which is a slow very memory
9241      # consuming and fragmenting process.  To avoid this, we pick a random,
9242      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9243      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
9244      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9245      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'
9246      ;;
9247
9248    gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
9249      tmp_diet=no
9250      if test linux-dietlibc = "$host_os"; then
9251	case $cc_basename in
9252	  diet\ *) tmp_diet=yes;;	# linux-dietlibc with static linking (!diet-dyn)
9253	esac
9254      fi
9255      if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9256	 && test no = "$tmp_diet"
9257      then
9258	tmp_addflag=' $pic_flag'
9259	tmp_sharedflag='-shared'
9260	case $cc_basename,$host_cpu in
9261        pgcc*)				# Portland Group C compiler
9262	  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'
9263	  tmp_addflag=' $pic_flag'
9264	  ;;
9265	pgf77* | pgf90* | pgf95* | pgfortran*)
9266					# Portland Group f77 and f90 compilers
9267	  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'
9268	  tmp_addflag=' $pic_flag -Mnomain' ;;
9269	ecc*,ia64* | icc*,ia64*)	# Intel C compiler on ia64
9270	  tmp_addflag=' -i_dynamic' ;;
9271	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
9272	  tmp_addflag=' -i_dynamic -nofor_main' ;;
9273	ifc* | ifort*)			# Intel Fortran compiler
9274	  tmp_addflag=' -nofor_main' ;;
9275	lf95*)				# Lahey Fortran 8.1
9276	  whole_archive_flag_spec=
9277	  tmp_sharedflag='--shared' ;;
9278        nagfor*)                        # NAGFOR 5.3
9279          tmp_sharedflag='-Wl,-shared' ;;
9280	xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9281	  tmp_sharedflag='-qmkshrobj'
9282	  tmp_addflag= ;;
9283	nvcc*)	# Cuda Compiler Driver 2.2
9284	  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'
9285	  compiler_needs_object=yes
9286	  ;;
9287	esac
9288	case `$CC -V 2>&1 | sed 5q` in
9289	*Sun\ C*)			# Sun C 5.9
9290	  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'
9291	  compiler_needs_object=yes
9292	  tmp_sharedflag='-G' ;;
9293	*Sun\ F*)			# Sun Fortran 8.3
9294	  tmp_sharedflag='-G' ;;
9295	esac
9296	archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9297
9298        if test yes = "$supports_anon_versioning"; then
9299          archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9300            cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9301            echo "local: *; };" >> $output_objdir/$libname.ver~
9302            $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
9303        fi
9304
9305	case $cc_basename in
9306	xlf* | bgf* | bgxlf* | mpixlf*)
9307	  # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9308	  whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9309	  hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9310	  archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
9311	  if test yes = "$supports_anon_versioning"; then
9312	    archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9313              cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9314              echo "local: *; };" >> $output_objdir/$libname.ver~
9315              $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9316	  fi
9317	  ;;
9318	esac
9319      else
9320        ld_shlibs=no
9321      fi
9322      ;;
9323
9324    netbsd*)
9325      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9326	archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9327	wlarc=
9328      else
9329	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9330	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9331      fi
9332      ;;
9333
9334    solaris*)
9335      if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9336	ld_shlibs=no
9337	cat <<_LT_EOF 1>&2
9338
9339*** Warning: The releases 2.8.* of the GNU linker cannot reliably
9340*** create shared libraries on Solaris systems.  Therefore, libtool
9341*** is disabling shared libraries support.  We urge you to upgrade GNU
9342*** binutils to release 2.9.1 or newer.  Another option is to modify
9343*** your PATH or compiler configuration so that the native linker is
9344*** used, and then restart.
9345
9346_LT_EOF
9347      elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9348	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9349	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9350      else
9351	ld_shlibs=no
9352      fi
9353      ;;
9354
9355    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9356      case `$LD -v 2>&1` in
9357        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9358	ld_shlibs=no
9359	cat <<_LT_EOF 1>&2
9360
9361*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
9362*** reliably create shared libraries on SCO systems.  Therefore, libtool
9363*** is disabling shared libraries support.  We urge you to upgrade GNU
9364*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
9365*** your PATH or compiler configuration so that the native linker is
9366*** used, and then restart.
9367
9368_LT_EOF
9369	;;
9370	*)
9371	  # For security reasons, it is highly recommended that you always
9372	  # use absolute paths for naming shared libraries, and exclude the
9373	  # DT_RUNPATH tag from executables and libraries.  But doing so
9374	  # requires that you compile everything twice, which is a pain.
9375	  if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9376	    hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9377	    archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9378	    archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9379	  else
9380	    ld_shlibs=no
9381	  fi
9382	;;
9383      esac
9384      ;;
9385
9386    sunos4*)
9387      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9388      wlarc=
9389      hardcode_direct=yes
9390      hardcode_shlibpath_var=no
9391      ;;
9392
9393    *)
9394      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9395	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9396	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9397      else
9398	ld_shlibs=no
9399      fi
9400      ;;
9401    esac
9402
9403    if test no = "$ld_shlibs"; then
9404      runpath_var=
9405      hardcode_libdir_flag_spec=
9406      export_dynamic_flag_spec=
9407      whole_archive_flag_spec=
9408    fi
9409  else
9410    # PORTME fill in a description of your system's linker (not GNU ld)
9411    case $host_os in
9412    aix3*)
9413      allow_undefined_flag=unsupported
9414      always_export_symbols=yes
9415      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'
9416      # Note: this linker hardcodes the directories in LIBPATH if there
9417      # are no directories specified by -L.
9418      hardcode_minus_L=yes
9419      if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
9420	# Neither direct hardcoding nor static linking is supported with a
9421	# broken collect2.
9422	hardcode_direct=unsupported
9423      fi
9424      ;;
9425
9426    aix[4-9]*)
9427      if test ia64 = "$host_cpu"; then
9428	# On IA64, the linker does run time linking by default, so we don't
9429	# have to do anything special.
9430	aix_use_runtimelinking=no
9431	exp_sym_flag='-Bexport'
9432	no_entry_flag=
9433      else
9434	# If we're using GNU nm, then we don't want the "-C" option.
9435	# -C means demangle to AIX nm, but means don't demangle with GNU nm
9436	# Also, AIX nm treats weak defined symbols like other global
9437	# defined symbols, whereas GNU nm marks them as "W".
9438	if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9439	  export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
9440	else
9441	  export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
9442	fi
9443	aix_use_runtimelinking=no
9444
9445	# Test if we are trying to use run time linking or normal
9446	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
9447	# need to do runtime linking.
9448	case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9449	  for ld_flag in $LDFLAGS; do
9450	  if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
9451	    aix_use_runtimelinking=yes
9452	    break
9453	  fi
9454	  done
9455	  ;;
9456	esac
9457
9458	exp_sym_flag='-bexport'
9459	no_entry_flag='-bnoentry'
9460      fi
9461
9462      # When large executables or shared objects are built, AIX ld can
9463      # have problems creating the table of contents.  If linking a library
9464      # or program results in "error TOC overflow" add -mminimal-toc to
9465      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
9466      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9467
9468      archive_cmds=''
9469      hardcode_direct=yes
9470      hardcode_direct_absolute=yes
9471      hardcode_libdir_separator=':'
9472      link_all_deplibs=yes
9473      file_list_spec='$wl-f,'
9474
9475      if test yes = "$GCC"; then
9476	case $host_os in aix4.[012]|aix4.[012].*)
9477	# We only want to do this on AIX 4.2 and lower, the check
9478	# below for broken collect2 doesn't work under 4.3+
9479	  collect2name=`$CC -print-prog-name=collect2`
9480	  if test -f "$collect2name" &&
9481	   strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9482	  then
9483	  # We have reworked collect2
9484	  :
9485	  else
9486	  # We have old collect2
9487	  hardcode_direct=unsupported
9488	  # It fails to find uninstalled libraries when the uninstalled
9489	  # path is not listed in the libpath.  Setting hardcode_minus_L
9490	  # to unsupported forces relinking
9491	  hardcode_minus_L=yes
9492	  hardcode_libdir_flag_spec='-L$libdir'
9493	  hardcode_libdir_separator=
9494	  fi
9495	  ;;
9496	esac
9497	shared_flag='-shared'
9498	if test yes = "$aix_use_runtimelinking"; then
9499	  shared_flag="$shared_flag "'$wl-G'
9500	fi
9501      else
9502	# not using gcc
9503	if test ia64 = "$host_cpu"; then
9504	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9505	# chokes on -Wl,-G. The following line is correct:
9506	  shared_flag='-G'
9507	else
9508	  if test yes = "$aix_use_runtimelinking"; then
9509	    shared_flag='$wl-G'
9510	  else
9511	    shared_flag='$wl-bM:SRE'
9512	  fi
9513	fi
9514      fi
9515
9516      export_dynamic_flag_spec='$wl-bexpall'
9517      # It seems that -bexpall does not export symbols beginning with
9518      # underscore (_), so it is better to generate a list of symbols to export.
9519      always_export_symbols=yes
9520      if test yes = "$aix_use_runtimelinking"; then
9521	# Warning - without using the other runtime loading flags (-brtl),
9522	# -berok will link without error, but may produce a broken library.
9523	allow_undefined_flag='-berok'
9524        # Determine the default libpath from the value encoded in an
9525        # empty executable.
9526        if test set = "${lt_cv_aix_libpath+set}"; then
9527  aix_libpath=$lt_cv_aix_libpath
9528else
9529  if ${lt_cv_aix_libpath_+:} false; then :
9530  $as_echo_n "(cached) " >&6
9531else
9532  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9533/* end confdefs.h.  */
9534
9535int
9536main ()
9537{
9538
9539  ;
9540  return 0;
9541}
9542_ACEOF
9543if ac_fn_c_try_link "$LINENO"; then :
9544
9545  lt_aix_libpath_sed='
9546      /Import File Strings/,/^$/ {
9547	  /^0/ {
9548	      s/^0  *\([^ ]*\) *$/\1/
9549	      p
9550	  }
9551      }'
9552  lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9553  # Check for a 64-bit object if we didn't find anything.
9554  if test -z "$lt_cv_aix_libpath_"; then
9555    lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9556  fi
9557fi
9558rm -f core conftest.err conftest.$ac_objext \
9559    conftest$ac_exeext conftest.$ac_ext
9560  if test -z "$lt_cv_aix_libpath_"; then
9561    lt_cv_aix_libpath_=/usr/lib:/lib
9562  fi
9563
9564fi
9565
9566  aix_libpath=$lt_cv_aix_libpath_
9567fi
9568
9569        hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
9570        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
9571      else
9572	if test ia64 = "$host_cpu"; then
9573	  hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
9574	  allow_undefined_flag="-z nodefs"
9575	  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"
9576	else
9577	 # Determine the default libpath from the value encoded in an
9578	 # empty executable.
9579	 if test set = "${lt_cv_aix_libpath+set}"; then
9580  aix_libpath=$lt_cv_aix_libpath
9581else
9582  if ${lt_cv_aix_libpath_+:} false; then :
9583  $as_echo_n "(cached) " >&6
9584else
9585  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9586/* end confdefs.h.  */
9587
9588int
9589main ()
9590{
9591
9592  ;
9593  return 0;
9594}
9595_ACEOF
9596if ac_fn_c_try_link "$LINENO"; then :
9597
9598  lt_aix_libpath_sed='
9599      /Import File Strings/,/^$/ {
9600	  /^0/ {
9601	      s/^0  *\([^ ]*\) *$/\1/
9602	      p
9603	  }
9604      }'
9605  lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9606  # Check for a 64-bit object if we didn't find anything.
9607  if test -z "$lt_cv_aix_libpath_"; then
9608    lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9609  fi
9610fi
9611rm -f core conftest.err conftest.$ac_objext \
9612    conftest$ac_exeext conftest.$ac_ext
9613  if test -z "$lt_cv_aix_libpath_"; then
9614    lt_cv_aix_libpath_=/usr/lib:/lib
9615  fi
9616
9617fi
9618
9619  aix_libpath=$lt_cv_aix_libpath_
9620fi
9621
9622	 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
9623	  # Warning - without using the other run time loading flags,
9624	  # -berok will link without error, but may produce a broken library.
9625	  no_undefined_flag=' $wl-bernotok'
9626	  allow_undefined_flag=' $wl-berok'
9627	  if test yes = "$with_gnu_ld"; then
9628	    # We only use this code for GNU lds that support --whole-archive.
9629	    whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
9630	  else
9631	    # Exported symbols can be pulled into shared objects from archives
9632	    whole_archive_flag_spec='$convenience'
9633	  fi
9634	  archive_cmds_need_lc=yes
9635	  # This is similar to how AIX traditionally builds its shared libraries.
9636	  archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $wl-bnoentry $compiler_flags $wl-bE:$export_symbols$allow_undefined_flag~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
9637	fi
9638      fi
9639      ;;
9640
9641    amigaos*)
9642      case $host_cpu in
9643      powerpc)
9644            # see comment about AmigaOS4 .so support
9645            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9646            archive_expsym_cmds=''
9647        ;;
9648      m68k)
9649            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)'
9650            hardcode_libdir_flag_spec='-L$libdir'
9651            hardcode_minus_L=yes
9652        ;;
9653      esac
9654      ;;
9655
9656    bsdi[45]*)
9657      export_dynamic_flag_spec=-rdynamic
9658      ;;
9659
9660    cygwin* | mingw* | pw32* | cegcc*)
9661      # When not using gcc, we currently assume that we are using
9662      # Microsoft Visual C++.
9663      # hardcode_libdir_flag_spec is actually meaningless, as there is
9664      # no search path for DLLs.
9665      case $cc_basename in
9666      cl*)
9667	# Native MSVC
9668	hardcode_libdir_flag_spec=' '
9669	allow_undefined_flag=unsupported
9670	always_export_symbols=yes
9671	file_list_spec='@'
9672	# Tell ltmain to make .lib files, not .a files.
9673	libext=lib
9674	# Tell ltmain to make .dll files, not .so files.
9675	shrext_cmds=.dll
9676	# FIXME: Setting linknames here is a bad hack.
9677	archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
9678	archive_expsym_cmds='if   test DEF = "`$SED -n     -e '\''s/^[	 ]*//'\''     -e '\''/^\(;.*\)*$/d'\''     -e '\''s/^\(EXPORTS\|LIBRARY\)\([	 ].*\)*$/DEF/p'\''     -e q     $export_symbols`" ; then
9679            cp "$export_symbols" "$output_objdir/$soname.def";
9680            echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
9681          else
9682            $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
9683          fi~
9684          $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
9685          linknames='
9686	# The linker will not automatically build a static lib if we build a DLL.
9687	# _LT_TAGVAR(old_archive_from_new_cmds, )='true'
9688	enable_shared_with_static_runtimes=yes
9689	exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
9690	export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9691	# Don't use ranlib
9692	old_postinstall_cmds='chmod 644 $oldlib'
9693	postlink_cmds='lt_outputfile="@OUTPUT@"~
9694          lt_tool_outputfile="@TOOL_OUTPUT@"~
9695          case $lt_outputfile in
9696            *.exe|*.EXE) ;;
9697            *)
9698              lt_outputfile=$lt_outputfile.exe
9699              lt_tool_outputfile=$lt_tool_outputfile.exe
9700              ;;
9701          esac~
9702          if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
9703            $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
9704            $RM "$lt_outputfile.manifest";
9705          fi'
9706	;;
9707      *)
9708	# Assume MSVC wrapper
9709	hardcode_libdir_flag_spec=' '
9710	allow_undefined_flag=unsupported
9711	# Tell ltmain to make .lib files, not .a files.
9712	libext=lib
9713	# Tell ltmain to make .dll files, not .so files.
9714	shrext_cmds=.dll
9715	# FIXME: Setting linknames here is a bad hack.
9716	archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9717	# The linker will automatically build a .lib file if we build a DLL.
9718	old_archive_from_new_cmds='true'
9719	# FIXME: Should let the user specify the lib program.
9720	old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9721	enable_shared_with_static_runtimes=yes
9722	;;
9723      esac
9724      ;;
9725
9726    darwin* | rhapsody*)
9727
9728
9729  archive_cmds_need_lc=no
9730  hardcode_direct=no
9731  hardcode_automatic=yes
9732  hardcode_shlibpath_var=unsupported
9733  if test yes = "$lt_cv_ld_force_load"; then
9734    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\"`'
9735
9736  else
9737    whole_archive_flag_spec=''
9738  fi
9739  link_all_deplibs=yes
9740  allow_undefined_flag=$_lt_dar_allow_undefined
9741  case $cc_basename in
9742     ifort*|nagfor*) _lt_dar_can_shared=yes ;;
9743     *) _lt_dar_can_shared=$GCC ;;
9744  esac
9745  if test yes = "$_lt_dar_can_shared"; then
9746    output_verbose_link_cmd=func_echo_all
9747    archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
9748    module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
9749    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"
9750    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"
9751
9752  else
9753  ld_shlibs=no
9754  fi
9755
9756      ;;
9757
9758    dgux*)
9759      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9760      hardcode_libdir_flag_spec='-L$libdir'
9761      hardcode_shlibpath_var=no
9762      ;;
9763
9764    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9765    # support.  Future versions do this automatically, but an explicit c++rt0.o
9766    # does not break anything, and helps significantly (at the cost of a little
9767    # extra space).
9768    freebsd2.2*)
9769      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9770      hardcode_libdir_flag_spec='-R$libdir'
9771      hardcode_direct=yes
9772      hardcode_shlibpath_var=no
9773      ;;
9774
9775    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9776    freebsd2.*)
9777      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9778      hardcode_direct=yes
9779      hardcode_minus_L=yes
9780      hardcode_shlibpath_var=no
9781      ;;
9782
9783    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9784    freebsd* | dragonfly*)
9785      archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9786      hardcode_libdir_flag_spec='-R$libdir'
9787      hardcode_direct=yes
9788      hardcode_shlibpath_var=no
9789      ;;
9790
9791    hpux9*)
9792      if test yes = "$GCC"; then
9793	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'
9794      else
9795	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'
9796      fi
9797      hardcode_libdir_flag_spec='$wl+b $wl$libdir'
9798      hardcode_libdir_separator=:
9799      hardcode_direct=yes
9800
9801      # hardcode_minus_L: Not really in the search PATH,
9802      # but as the default location of the library.
9803      hardcode_minus_L=yes
9804      export_dynamic_flag_spec='$wl-E'
9805      ;;
9806
9807    hpux10*)
9808      if test yes,no = "$GCC,$with_gnu_ld"; then
9809	archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9810      else
9811	archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9812      fi
9813      if test no = "$with_gnu_ld"; then
9814	hardcode_libdir_flag_spec='$wl+b $wl$libdir'
9815	hardcode_libdir_separator=:
9816	hardcode_direct=yes
9817	hardcode_direct_absolute=yes
9818	export_dynamic_flag_spec='$wl-E'
9819	# hardcode_minus_L: Not really in the search PATH,
9820	# but as the default location of the library.
9821	hardcode_minus_L=yes
9822      fi
9823      ;;
9824
9825    hpux11*)
9826      if test yes,no = "$GCC,$with_gnu_ld"; then
9827	case $host_cpu in
9828	hppa*64*)
9829	  archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
9830	  ;;
9831	ia64*)
9832	  archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9833	  ;;
9834	*)
9835	  archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9836	  ;;
9837	esac
9838      else
9839	case $host_cpu in
9840	hppa*64*)
9841	  archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
9842	  ;;
9843	ia64*)
9844	  archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9845	  ;;
9846	*)
9847
9848	  # Older versions of the 11.00 compiler do not understand -b yet
9849	  # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
9850	  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
9851$as_echo_n "checking if $CC understands -b... " >&6; }
9852if ${lt_cv_prog_compiler__b+:} false; then :
9853  $as_echo_n "(cached) " >&6
9854else
9855  lt_cv_prog_compiler__b=no
9856   save_LDFLAGS=$LDFLAGS
9857   LDFLAGS="$LDFLAGS -b"
9858   echo "$lt_simple_link_test_code" > conftest.$ac_ext
9859   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9860     # The linker can only warn and ignore the option if not recognized
9861     # So say no if there are warnings
9862     if test -s conftest.err; then
9863       # Append any errors to the config.log.
9864       cat conftest.err 1>&5
9865       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9866       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9867       if diff conftest.exp conftest.er2 >/dev/null; then
9868         lt_cv_prog_compiler__b=yes
9869       fi
9870     else
9871       lt_cv_prog_compiler__b=yes
9872     fi
9873   fi
9874   $RM -r conftest*
9875   LDFLAGS=$save_LDFLAGS
9876
9877fi
9878{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
9879$as_echo "$lt_cv_prog_compiler__b" >&6; }
9880
9881if test yes = "$lt_cv_prog_compiler__b"; then
9882    archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9883else
9884    archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9885fi
9886
9887	  ;;
9888	esac
9889      fi
9890      if test no = "$with_gnu_ld"; then
9891	hardcode_libdir_flag_spec='$wl+b $wl$libdir'
9892	hardcode_libdir_separator=:
9893
9894	case $host_cpu in
9895	hppa*64*|ia64*)
9896	  hardcode_direct=no
9897	  hardcode_shlibpath_var=no
9898	  ;;
9899	*)
9900	  hardcode_direct=yes
9901	  hardcode_direct_absolute=yes
9902	  export_dynamic_flag_spec='$wl-E'
9903
9904	  # hardcode_minus_L: Not really in the search PATH,
9905	  # but as the default location of the library.
9906	  hardcode_minus_L=yes
9907	  ;;
9908	esac
9909      fi
9910      ;;
9911
9912    irix5* | irix6* | nonstopux*)
9913      if test yes = "$GCC"; then
9914	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'
9915	# Try to use the -exported_symbol ld option, if it does not
9916	# work, assume that -exports_file does not work either and
9917	# implicitly export all symbols.
9918	# This should be the same for all languages, so no per-tag cache variable.
9919	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
9920$as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
9921if ${lt_cv_irix_exported_symbol+:} false; then :
9922  $as_echo_n "(cached) " >&6
9923else
9924  save_LDFLAGS=$LDFLAGS
9925	   LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
9926	   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9927/* end confdefs.h.  */
9928int foo (void) { return 0; }
9929_ACEOF
9930if ac_fn_c_try_link "$LINENO"; then :
9931  lt_cv_irix_exported_symbol=yes
9932else
9933  lt_cv_irix_exported_symbol=no
9934fi
9935rm -f core conftest.err conftest.$ac_objext \
9936    conftest$ac_exeext conftest.$ac_ext
9937           LDFLAGS=$save_LDFLAGS
9938fi
9939{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
9940$as_echo "$lt_cv_irix_exported_symbol" >&6; }
9941	if test yes = "$lt_cv_irix_exported_symbol"; then
9942          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'
9943	fi
9944      else
9945	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'
9946	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'
9947      fi
9948      archive_cmds_need_lc='no'
9949      hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9950      hardcode_libdir_separator=:
9951      inherit_rpath=yes
9952      link_all_deplibs=yes
9953      ;;
9954
9955    netbsd*)
9956      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9957	archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
9958      else
9959	archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
9960      fi
9961      hardcode_libdir_flag_spec='-R$libdir'
9962      hardcode_direct=yes
9963      hardcode_shlibpath_var=no
9964      ;;
9965
9966    newsos6)
9967      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9968      hardcode_direct=yes
9969      hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9970      hardcode_libdir_separator=:
9971      hardcode_shlibpath_var=no
9972      ;;
9973
9974    *nto* | *qnx*)
9975      ;;
9976
9977    openbsd* | bitrig*)
9978      if test -f /usr/libexec/ld.so; then
9979	hardcode_direct=yes
9980	hardcode_shlibpath_var=no
9981	hardcode_direct_absolute=yes
9982	if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
9983	  archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9984	  archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
9985	  hardcode_libdir_flag_spec='$wl-rpath,$libdir'
9986	  export_dynamic_flag_spec='$wl-E'
9987	else
9988	  archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9989	  hardcode_libdir_flag_spec='$wl-rpath,$libdir'
9990	fi
9991      else
9992	ld_shlibs=no
9993      fi
9994      ;;
9995
9996    os2*)
9997      hardcode_libdir_flag_spec='-L$libdir'
9998      hardcode_minus_L=yes
9999      allow_undefined_flag=unsupported
10000      archive_cmds='$ECHO "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~echo DATA >> $output_objdir/$libname.def~echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
10001      old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
10002      ;;
10003
10004    osf3*)
10005      if test yes = "$GCC"; then
10006	allow_undefined_flag=' $wl-expect_unresolved $wl\*'
10007	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'
10008      else
10009	allow_undefined_flag=' -expect_unresolved \*'
10010	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'
10011      fi
10012      archive_cmds_need_lc='no'
10013      hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10014      hardcode_libdir_separator=:
10015      ;;
10016
10017    osf4* | osf5*)	# as osf3* with the addition of -msym flag
10018      if test yes = "$GCC"; then
10019	allow_undefined_flag=' $wl-expect_unresolved $wl\*'
10020	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'
10021	hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10022      else
10023	allow_undefined_flag=' -expect_unresolved \*'
10024	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'
10025	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~
10026          $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'
10027
10028	# Both c and cxx compiler support -rpath directly
10029	hardcode_libdir_flag_spec='-rpath $libdir'
10030      fi
10031      archive_cmds_need_lc='no'
10032      hardcode_libdir_separator=:
10033      ;;
10034
10035    solaris*)
10036      no_undefined_flag=' -z defs'
10037      if test yes = "$GCC"; then
10038	wlarc='$wl'
10039	archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
10040	archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10041          $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'
10042      else
10043	case `$CC -V 2>&1` in
10044	*"Compilers 5.0"*)
10045	  wlarc=''
10046	  archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
10047	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10048            $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10049	  ;;
10050	*)
10051	  wlarc='$wl'
10052	  archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10053	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10054            $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10055	  ;;
10056	esac
10057      fi
10058      hardcode_libdir_flag_spec='-R$libdir'
10059      hardcode_shlibpath_var=no
10060      case $host_os in
10061      solaris2.[0-5] | solaris2.[0-5].*) ;;
10062      *)
10063	# The compiler driver will combine and reorder linker options,
10064	# but understands '-z linker_flag'.  GCC discards it without '$wl',
10065	# but is careful enough not to reorder.
10066	# Supported since Solaris 2.6 (maybe 2.5.1?)
10067	if test yes = "$GCC"; then
10068	  whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
10069	else
10070	  whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10071	fi
10072	;;
10073      esac
10074      link_all_deplibs=yes
10075      ;;
10076
10077    sunos4*)
10078      if test sequent = "$host_vendor"; then
10079	# Use $CC to link under sequent, because it throws in some extra .o
10080	# files that make .init and .fini sections work.
10081	archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10082      else
10083	archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10084      fi
10085      hardcode_libdir_flag_spec='-L$libdir'
10086      hardcode_direct=yes
10087      hardcode_minus_L=yes
10088      hardcode_shlibpath_var=no
10089      ;;
10090
10091    sysv4)
10092      case $host_vendor in
10093	sni)
10094	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10095	  hardcode_direct=yes # is this really true???
10096	;;
10097	siemens)
10098	  ## LD is ld it makes a PLAMLIB
10099	  ## CC just makes a GrossModule.
10100	  archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10101	  reload_cmds='$CC -r -o $output$reload_objs'
10102	  hardcode_direct=no
10103        ;;
10104	motorola)
10105	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10106	  hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10107	;;
10108      esac
10109      runpath_var='LD_RUN_PATH'
10110      hardcode_shlibpath_var=no
10111      ;;
10112
10113    sysv4.3*)
10114      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10115      hardcode_shlibpath_var=no
10116      export_dynamic_flag_spec='-Bexport'
10117      ;;
10118
10119    sysv4*MP*)
10120      if test -d /usr/nec; then
10121	archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10122	hardcode_shlibpath_var=no
10123	runpath_var=LD_RUN_PATH
10124	hardcode_runpath_var=yes
10125	ld_shlibs=yes
10126      fi
10127      ;;
10128
10129    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10130      no_undefined_flag='$wl-z,text'
10131      archive_cmds_need_lc=no
10132      hardcode_shlibpath_var=no
10133      runpath_var='LD_RUN_PATH'
10134
10135      if test yes = "$GCC"; then
10136	archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10137	archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10138      else
10139	archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10140	archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10141      fi
10142      ;;
10143
10144    sysv5* | sco3.2v5* | sco5v6*)
10145      # Note: We CANNOT use -z defs as we might desire, because we do not
10146      # link with -lc, and that would cause any symbols used from libc to
10147      # always be unresolved, which means just about no library would
10148      # ever link correctly.  If we're not using GNU ld we use -z text
10149      # though, which does catch some bad symbols but isn't as heavy-handed
10150      # as -z defs.
10151      no_undefined_flag='$wl-z,text'
10152      allow_undefined_flag='$wl-z,nodefs'
10153      archive_cmds_need_lc=no
10154      hardcode_shlibpath_var=no
10155      hardcode_libdir_flag_spec='$wl-R,$libdir'
10156      hardcode_libdir_separator=':'
10157      link_all_deplibs=yes
10158      export_dynamic_flag_spec='$wl-Bexport'
10159      runpath_var='LD_RUN_PATH'
10160
10161      if test yes = "$GCC"; then
10162	archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10163	archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10164      else
10165	archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10166	archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10167      fi
10168      ;;
10169
10170    uts4*)
10171      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10172      hardcode_libdir_flag_spec='-L$libdir'
10173      hardcode_shlibpath_var=no
10174      ;;
10175
10176    *)
10177      ld_shlibs=no
10178      ;;
10179    esac
10180
10181    if test sni = "$host_vendor"; then
10182      case $host in
10183      sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10184	export_dynamic_flag_spec='$wl-Blargedynsym'
10185	;;
10186      esac
10187    fi
10188  fi
10189
10190{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10191$as_echo "$ld_shlibs" >&6; }
10192test no = "$ld_shlibs" && can_build_shared=no
10193
10194with_gnu_ld=$with_gnu_ld
10195
10196
10197
10198
10199
10200
10201
10202
10203
10204
10205
10206
10207
10208
10209
10210#
10211# Do we need to explicitly link libc?
10212#
10213case "x$archive_cmds_need_lc" in
10214x|xyes)
10215  # Assume -lc should be added
10216  archive_cmds_need_lc=yes
10217
10218  if test yes,yes = "$GCC,$enable_shared"; then
10219    case $archive_cmds in
10220    *'~'*)
10221      # FIXME: we may have to deal with multi-command sequences.
10222      ;;
10223    '$CC '*)
10224      # Test whether the compiler implicitly links with -lc since on some
10225      # systems, -lgcc has to come before -lc. If gcc already passes -lc
10226      # to ld, don't add -lc before -lgcc.
10227      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10228$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10229if ${lt_cv_archive_cmds_need_lc+:} false; then :
10230  $as_echo_n "(cached) " >&6
10231else
10232  $RM conftest*
10233	echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10234
10235	if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10236  (eval $ac_compile) 2>&5
10237  ac_status=$?
10238  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10239  test $ac_status = 0; } 2>conftest.err; then
10240	  soname=conftest
10241	  lib=conftest
10242	  libobjs=conftest.$ac_objext
10243	  deplibs=
10244	  wl=$lt_prog_compiler_wl
10245	  pic_flag=$lt_prog_compiler_pic
10246	  compiler_flags=-v
10247	  linker_flags=-v
10248	  verstring=
10249	  output_objdir=.
10250	  libname=conftest
10251	  lt_save_allow_undefined_flag=$allow_undefined_flag
10252	  allow_undefined_flag=
10253	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10254  (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10255  ac_status=$?
10256  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10257  test $ac_status = 0; }
10258	  then
10259	    lt_cv_archive_cmds_need_lc=no
10260	  else
10261	    lt_cv_archive_cmds_need_lc=yes
10262	  fi
10263	  allow_undefined_flag=$lt_save_allow_undefined_flag
10264	else
10265	  cat conftest.err 1>&5
10266	fi
10267	$RM conftest*
10268
10269fi
10270{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10271$as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
10272      archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
10273      ;;
10274    esac
10275  fi
10276  ;;
10277esac
10278
10279
10280
10281
10282
10283
10284
10285
10286
10287
10288
10289
10290
10291
10292
10293
10294
10295
10296
10297
10298
10299
10300
10301
10302
10303
10304
10305
10306
10307
10308
10309
10310
10311
10312
10313
10314
10315
10316
10317
10318
10319
10320
10321
10322
10323
10324
10325
10326
10327
10328
10329
10330
10331
10332
10333
10334
10335
10336
10337
10338
10339
10340
10341
10342
10343
10344
10345
10346
10347
10348
10349
10350
10351
10352
10353
10354
10355
10356
10357
10358
10359
10360
10361
10362
10363
10364
10365
10366
10367
10368
10369
10370
10371
10372
10373
10374
10375
10376
10377
10378
10379
10380
10381
10382
10383
10384
10385
10386
10387
10388
10389
10390
10391
10392
10393
10394
10395
10396
10397
10398
10399
10400
10401
10402
10403
10404
10405
10406
10407
10408
10409
10410
10411
10412
10413
10414
10415
10416
10417
10418
10419
10420
10421
10422
10423
10424
10425
10426
10427
10428
10429
10430  { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10431$as_echo_n "checking dynamic linker characteristics... " >&6; }
10432
10433if test yes = "$GCC"; then
10434  case $host_os in
10435    darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
10436    *) lt_awk_arg='/^libraries:/' ;;
10437  esac
10438  case $host_os in
10439    mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
10440    *) lt_sed_strip_eq='s|=/|/|g' ;;
10441  esac
10442  lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10443  case $lt_search_path_spec in
10444  *\;*)
10445    # if the path contains ";" then we assume it to be the separator
10446    # otherwise default to the standard path separator (i.e. ":") - it is
10447    # assumed that no part of a normal pathname contains ";" but that should
10448    # okay in the real world where ";" in dirpaths is itself problematic.
10449    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10450    ;;
10451  *)
10452    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10453    ;;
10454  esac
10455  # Ok, now we have the path, separated by spaces, we can step through it
10456  # and add multilib dir if necessary...
10457  lt_tmp_lt_search_path_spec=
10458  lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10459  # ...but if some path component already ends with the multilib dir we assume
10460  # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
10461  case "$lt_multi_os_dir; $lt_search_path_spec " in
10462  "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
10463    lt_multi_os_dir=
10464    ;;
10465  esac
10466  for lt_sys_path in $lt_search_path_spec; do
10467    if test -d "$lt_sys_path$lt_multi_os_dir"; then
10468      lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
10469    elif test -n "$lt_multi_os_dir"; then
10470      test -d "$lt_sys_path" && \
10471	lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10472    fi
10473  done
10474  lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10475BEGIN {RS = " "; FS = "/|\n";} {
10476  lt_foo = "";
10477  lt_count = 0;
10478  for (lt_i = NF; lt_i > 0; lt_i--) {
10479    if ($lt_i != "" && $lt_i != ".") {
10480      if ($lt_i == "..") {
10481        lt_count++;
10482      } else {
10483        if (lt_count == 0) {
10484          lt_foo = "/" $lt_i lt_foo;
10485        } else {
10486          lt_count--;
10487        }
10488      }
10489    }
10490  }
10491  if (lt_foo != "") { lt_freq[lt_foo]++; }
10492  if (lt_freq[lt_foo] == 1) { print lt_foo; }
10493}'`
10494  # AWK program above erroneously prepends '/' to C:/dos/paths
10495  # for these hosts.
10496  case $host_os in
10497    mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
10498      $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
10499  esac
10500  sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
10501else
10502  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10503fi
10504library_names_spec=
10505libname_spec='lib$name'
10506soname_spec=
10507shrext_cmds=.so
10508postinstall_cmds=
10509postuninstall_cmds=
10510finish_cmds=
10511finish_eval=
10512shlibpath_var=
10513shlibpath_overrides_runpath=unknown
10514version_type=none
10515dynamic_linker="$host_os ld.so"
10516sys_lib_dlsearch_path_spec="/lib /usr/lib"
10517need_lib_prefix=unknown
10518hardcode_into_libs=no
10519
10520# when you set need_version to no, make sure it does not cause -set_version
10521# flags to be left without arguments
10522need_version=unknown
10523
10524case $host_os in
10525aix3*)
10526  version_type=linux # correct to gnu/linux during the next big refactor
10527  library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
10528  shlibpath_var=LIBPATH
10529
10530  # AIX 3 has no versioning support, so we append a major version to the name.
10531  soname_spec='$libname$release$shared_ext$major'
10532  ;;
10533
10534aix[4-9]*)
10535  version_type=linux # correct to gnu/linux during the next big refactor
10536  need_lib_prefix=no
10537  need_version=no
10538  hardcode_into_libs=yes
10539  if test ia64 = "$host_cpu"; then
10540    # AIX 5 supports IA64
10541    library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
10542    shlibpath_var=LD_LIBRARY_PATH
10543  else
10544    # With GCC up to 2.95.x, collect2 would create an import file
10545    # for dependence libraries.  The import file would start with
10546    # the line '#! .'.  This would cause the generated library to
10547    # depend on '.', always an invalid library.  This was fixed in
10548    # development snapshots of GCC prior to 3.0.
10549    case $host_os in
10550      aix4 | aix4.[01] | aix4.[01].*)
10551      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10552	   echo ' yes '
10553	   echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
10554	:
10555      else
10556	can_build_shared=no
10557      fi
10558      ;;
10559    esac
10560    # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
10561    # soname into executable. Probably we can add versioning support to
10562    # collect2, so additional links can be useful in future.
10563    if test yes = "$aix_use_runtimelinking"; then
10564      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10565      # instead of lib<name>.a to let people know that these are not
10566      # typical AIX shared libraries.
10567      library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10568    else
10569      # We preserve .a as extension for shared libraries through AIX4.2
10570      # and later when we are not doing run time linking.
10571      library_names_spec='$libname$release.a $libname.a'
10572      soname_spec='$libname$release$shared_ext$major'
10573    fi
10574    shlibpath_var=LIBPATH
10575  fi
10576  ;;
10577
10578amigaos*)
10579  case $host_cpu in
10580  powerpc)
10581    # Since July 2007 AmigaOS4 officially supports .so libraries.
10582    # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10583    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10584    ;;
10585  m68k)
10586    library_names_spec='$libname.ixlibrary $libname.a'
10587    # Create ${libname}_ixlibrary.a entries in /sys/libs.
10588    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'
10589    ;;
10590  esac
10591  ;;
10592
10593beos*)
10594  library_names_spec='$libname$shared_ext'
10595  dynamic_linker="$host_os ld.so"
10596  shlibpath_var=LIBRARY_PATH
10597  ;;
10598
10599bsdi[45]*)
10600  version_type=linux # correct to gnu/linux during the next big refactor
10601  need_version=no
10602  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10603  soname_spec='$libname$release$shared_ext$major'
10604  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10605  shlibpath_var=LD_LIBRARY_PATH
10606  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10607  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10608  # the default ld.so.conf also contains /usr/contrib/lib and
10609  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10610  # libtool to hard-code these into programs
10611  ;;
10612
10613cygwin* | mingw* | pw32* | cegcc*)
10614  version_type=windows
10615  shrext_cmds=.dll
10616  need_version=no
10617  need_lib_prefix=no
10618
10619  case $GCC,$cc_basename in
10620  yes,*)
10621    # gcc
10622    library_names_spec='$libname.dll.a'
10623    # DLL is installed to $(libdir)/../bin by postinstall_cmds
10624    postinstall_cmds='base_file=`basename \$file`~
10625      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
10626      dldir=$destdir/`dirname \$dlpath`~
10627      test -d \$dldir || mkdir -p \$dldir~
10628      $install_prog $dir/$dlname \$dldir/$dlname~
10629      chmod a+x \$dldir/$dlname~
10630      if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10631        eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10632      fi'
10633    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10634      dlpath=$dir/\$dldll~
10635       $RM \$dlpath'
10636    shlibpath_overrides_runpath=yes
10637
10638    case $host_os in
10639    cygwin*)
10640      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10641      soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
10642
10643      sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
10644      ;;
10645    mingw* | cegcc*)
10646      # MinGW DLLs use traditional 'lib' prefix
10647      soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
10648      ;;
10649    pw32*)
10650      # pw32 DLLs use 'pw' prefix rather than 'lib'
10651      library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
10652      ;;
10653    esac
10654    dynamic_linker='Win32 ld.exe'
10655    ;;
10656
10657  *,cl*)
10658    # Native MSVC
10659    libname_spec='$name'
10660    soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
10661    library_names_spec='$libname.dll.lib'
10662
10663    case $build_os in
10664    mingw*)
10665      sys_lib_search_path_spec=
10666      lt_save_ifs=$IFS
10667      IFS=';'
10668      for lt_path in $LIB
10669      do
10670        IFS=$lt_save_ifs
10671        # Let DOS variable expansion print the short 8.3 style file name.
10672        lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
10673        sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
10674      done
10675      IFS=$lt_save_ifs
10676      # Convert to MSYS style.
10677      sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
10678      ;;
10679    cygwin*)
10680      # Convert to unix form, then to dos form, then back to unix form
10681      # but this time dos style (no spaces!) so that the unix form looks
10682      # like /cygdrive/c/PROGRA~1:/cygdr...
10683      sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
10684      sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
10685      sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10686      ;;
10687    *)
10688      sys_lib_search_path_spec=$LIB
10689      if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
10690        # It is most probably a Windows format PATH.
10691        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10692      else
10693        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10694      fi
10695      # FIXME: find the short name or the path components, as spaces are
10696      # common. (e.g. "Program Files" -> "PROGRA~1")
10697      ;;
10698    esac
10699
10700    # DLL is installed to $(libdir)/../bin by postinstall_cmds
10701    postinstall_cmds='base_file=`basename \$file`~
10702      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
10703      dldir=$destdir/`dirname \$dlpath`~
10704      test -d \$dldir || mkdir -p \$dldir~
10705      $install_prog $dir/$dlname \$dldir/$dlname'
10706    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10707      dlpath=$dir/\$dldll~
10708       $RM \$dlpath'
10709    shlibpath_overrides_runpath=yes
10710    dynamic_linker='Win32 link.exe'
10711    ;;
10712
10713  *)
10714    # Assume MSVC wrapper
10715    library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
10716    dynamic_linker='Win32 ld.exe'
10717    ;;
10718  esac
10719  # FIXME: first we should search . and the directory the executable is in
10720  shlibpath_var=PATH
10721  ;;
10722
10723darwin* | rhapsody*)
10724  dynamic_linker="$host_os dyld"
10725  version_type=darwin
10726  need_lib_prefix=no
10727  need_version=no
10728  library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
10729  soname_spec='$libname$release$major$shared_ext'
10730  shlibpath_overrides_runpath=yes
10731  shlibpath_var=DYLD_LIBRARY_PATH
10732  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10733
10734  sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10735  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10736  ;;
10737
10738dgux*)
10739  version_type=linux # correct to gnu/linux during the next big refactor
10740  need_lib_prefix=no
10741  need_version=no
10742  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10743  soname_spec='$libname$release$shared_ext$major'
10744  shlibpath_var=LD_LIBRARY_PATH
10745  ;;
10746
10747freebsd* | dragonfly*)
10748  # DragonFly does not have aout.  When/if they implement a new
10749  # versioning mechanism, adjust this.
10750  if test -x /usr/bin/objformat; then
10751    objformat=`/usr/bin/objformat`
10752  else
10753    case $host_os in
10754    freebsd[23].*) objformat=aout ;;
10755    *) objformat=elf ;;
10756    esac
10757  fi
10758  version_type=freebsd-$objformat
10759  case $version_type in
10760    freebsd-elf*)
10761      library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10762      soname_spec='$libname$release$shared_ext$major'
10763      need_version=no
10764      need_lib_prefix=no
10765      ;;
10766    freebsd-*)
10767      library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
10768      need_version=yes
10769      ;;
10770  esac
10771  shlibpath_var=LD_LIBRARY_PATH
10772  case $host_os in
10773  freebsd2.*)
10774    shlibpath_overrides_runpath=yes
10775    ;;
10776  freebsd3.[01]* | freebsdelf3.[01]*)
10777    shlibpath_overrides_runpath=yes
10778    hardcode_into_libs=yes
10779    ;;
10780  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10781  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10782    shlibpath_overrides_runpath=no
10783    hardcode_into_libs=yes
10784    ;;
10785  *) # from 4.6 on, and DragonFly
10786    shlibpath_overrides_runpath=yes
10787    hardcode_into_libs=yes
10788    ;;
10789  esac
10790  ;;
10791
10792haiku*)
10793  version_type=linux # correct to gnu/linux during the next big refactor
10794  need_lib_prefix=no
10795  need_version=no
10796  dynamic_linker="$host_os runtime_loader"
10797  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10798  soname_spec='$libname$release$shared_ext$major'
10799  shlibpath_var=LIBRARY_PATH
10800  shlibpath_overrides_runpath=no
10801  sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
10802  hardcode_into_libs=yes
10803  ;;
10804
10805hpux9* | hpux10* | hpux11*)
10806  # Give a soname corresponding to the major version so that dld.sl refuses to
10807  # link against other versions.
10808  version_type=sunos
10809  need_lib_prefix=no
10810  need_version=no
10811  case $host_cpu in
10812  ia64*)
10813    shrext_cmds='.so'
10814    hardcode_into_libs=yes
10815    dynamic_linker="$host_os dld.so"
10816    shlibpath_var=LD_LIBRARY_PATH
10817    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10818    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10819    soname_spec='$libname$release$shared_ext$major'
10820    if test 32 = "$HPUX_IA64_MODE"; then
10821      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10822    else
10823      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10824    fi
10825    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10826    ;;
10827  hppa*64*)
10828    shrext_cmds='.sl'
10829    hardcode_into_libs=yes
10830    dynamic_linker="$host_os dld.sl"
10831    shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10832    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10833    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10834    soname_spec='$libname$release$shared_ext$major'
10835    sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10836    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10837    ;;
10838  *)
10839    shrext_cmds='.sl'
10840    dynamic_linker="$host_os dld.sl"
10841    shlibpath_var=SHLIB_PATH
10842    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10843    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10844    soname_spec='$libname$release$shared_ext$major'
10845    ;;
10846  esac
10847  # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
10848  postinstall_cmds='chmod 555 $lib'
10849  # or fails outright, so override atomically:
10850  install_override_mode=555
10851  ;;
10852
10853interix[3-9]*)
10854  version_type=linux # correct to gnu/linux during the next big refactor
10855  need_lib_prefix=no
10856  need_version=no
10857  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10858  soname_spec='$libname$release$shared_ext$major'
10859  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10860  shlibpath_var=LD_LIBRARY_PATH
10861  shlibpath_overrides_runpath=no
10862  hardcode_into_libs=yes
10863  ;;
10864
10865irix5* | irix6* | nonstopux*)
10866  case $host_os in
10867    nonstopux*) version_type=nonstopux ;;
10868    *)
10869	if test yes = "$lt_cv_prog_gnu_ld"; then
10870		version_type=linux # correct to gnu/linux during the next big refactor
10871	else
10872		version_type=irix
10873	fi ;;
10874  esac
10875  need_lib_prefix=no
10876  need_version=no
10877  soname_spec='$libname$release$shared_ext$major'
10878  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
10879  case $host_os in
10880  irix5* | nonstopux*)
10881    libsuff= shlibsuff=
10882    ;;
10883  *)
10884    case $LD in # libtool.m4 will add one of these switches to LD
10885    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10886      libsuff= shlibsuff= libmagic=32-bit;;
10887    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10888      libsuff=32 shlibsuff=N32 libmagic=N32;;
10889    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10890      libsuff=64 shlibsuff=64 libmagic=64-bit;;
10891    *) libsuff= shlibsuff= libmagic=never-match;;
10892    esac
10893    ;;
10894  esac
10895  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10896  shlibpath_overrides_runpath=no
10897  sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
10898  sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
10899  hardcode_into_libs=yes
10900  ;;
10901
10902# No shared lib support for Linux oldld, aout, or coff.
10903linux*oldld* | linux*aout* | linux*coff*)
10904  dynamic_linker=no
10905  ;;
10906
10907linux*android*)
10908  version_type=none # Android doesn't support versioned libraries.
10909  need_lib_prefix=no
10910  need_version=no
10911  library_names_spec='$libname$release$shared_ext'
10912  soname_spec='$libname$release$shared_ext'
10913  finish_cmds=
10914  shlibpath_var=LD_LIBRARY_PATH
10915  shlibpath_overrides_runpath=yes
10916
10917  # This implies no fast_install, which is unacceptable.
10918  # Some rework will be needed to allow for fast_install
10919  # before this can be enabled.
10920  hardcode_into_libs=yes
10921
10922  dynamic_linker='Android linker'
10923  # Don't embed -rpath directories since the linker doesn't support them.
10924  hardcode_libdir_flag_spec='-L$libdir'
10925  ;;
10926
10927# This must be glibc/ELF.
10928linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
10929  version_type=linux # correct to gnu/linux during the next big refactor
10930  need_lib_prefix=no
10931  need_version=no
10932  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10933  soname_spec='$libname$release$shared_ext$major'
10934  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10935  shlibpath_var=LD_LIBRARY_PATH
10936  shlibpath_overrides_runpath=no
10937
10938  # Some binutils ld are patched to set DT_RUNPATH
10939  if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
10940  $as_echo_n "(cached) " >&6
10941else
10942  lt_cv_shlibpath_overrides_runpath=no
10943    save_LDFLAGS=$LDFLAGS
10944    save_libdir=$libdir
10945    eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10946	 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10947    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10948/* end confdefs.h.  */
10949
10950int
10951main ()
10952{
10953
10954  ;
10955  return 0;
10956}
10957_ACEOF
10958if ac_fn_c_try_link "$LINENO"; then :
10959  if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
10960  lt_cv_shlibpath_overrides_runpath=yes
10961fi
10962fi
10963rm -f core conftest.err conftest.$ac_objext \
10964    conftest$ac_exeext conftest.$ac_ext
10965    LDFLAGS=$save_LDFLAGS
10966    libdir=$save_libdir
10967
10968fi
10969
10970  shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
10971
10972  # This implies no fast_install, which is unacceptable.
10973  # Some rework will be needed to allow for fast_install
10974  # before this can be enabled.
10975  hardcode_into_libs=yes
10976
10977  # Append ld.so.conf contents to the search path
10978  if test -f /etc/ld.so.conf; then
10979    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' ' '`
10980    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10981  fi
10982
10983  # We used to test for /lib/ld.so.1 and disable shared libraries on
10984  # powerpc, because MkLinux only supported shared libraries with the
10985  # GNU dynamic linker.  Since this was broken with cross compilers,
10986  # most powerpc-linux boxes support dynamic linking these days and
10987  # people can always --disable-shared, the test was removed, and we
10988  # assume the GNU/Linux dynamic linker is in use.
10989  dynamic_linker='GNU/Linux ld.so'
10990  ;;
10991
10992netbsd*)
10993  version_type=sunos
10994  need_lib_prefix=no
10995  need_version=no
10996  if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10997    library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
10998    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10999    dynamic_linker='NetBSD (a.out) ld.so'
11000  else
11001    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11002    soname_spec='$libname$release$shared_ext$major'
11003    dynamic_linker='NetBSD ld.elf_so'
11004  fi
11005  shlibpath_var=LD_LIBRARY_PATH
11006  shlibpath_overrides_runpath=yes
11007  hardcode_into_libs=yes
11008  ;;
11009
11010newsos6)
11011  version_type=linux # correct to gnu/linux during the next big refactor
11012  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11013  shlibpath_var=LD_LIBRARY_PATH
11014  shlibpath_overrides_runpath=yes
11015  ;;
11016
11017*nto* | *qnx*)
11018  version_type=qnx
11019  need_lib_prefix=no
11020  need_version=no
11021  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11022  soname_spec='$libname$release$shared_ext$major'
11023  shlibpath_var=LD_LIBRARY_PATH
11024  shlibpath_overrides_runpath=no
11025  hardcode_into_libs=yes
11026  dynamic_linker='ldqnx.so'
11027  ;;
11028
11029openbsd* | bitrig*)
11030  version_type=sunos
11031  sys_lib_dlsearch_path_spec=/usr/lib
11032  need_lib_prefix=no
11033  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
11034    need_version=no
11035  else
11036    need_version=yes
11037  fi
11038  library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11039  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11040  shlibpath_var=LD_LIBRARY_PATH
11041  shlibpath_overrides_runpath=yes
11042  ;;
11043
11044os2*)
11045  libname_spec='$name'
11046  shrext_cmds=.dll
11047  need_lib_prefix=no
11048  library_names_spec='$libname$shared_ext $libname.a'
11049  dynamic_linker='OS/2 ld.exe'
11050  shlibpath_var=LIBPATH
11051  ;;
11052
11053osf3* | osf4* | osf5*)
11054  version_type=osf
11055  need_lib_prefix=no
11056  need_version=no
11057  soname_spec='$libname$release$shared_ext$major'
11058  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11059  shlibpath_var=LD_LIBRARY_PATH
11060  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11061  sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11062  ;;
11063
11064rdos*)
11065  dynamic_linker=no
11066  ;;
11067
11068solaris*)
11069  version_type=linux # correct to gnu/linux during the next big refactor
11070  need_lib_prefix=no
11071  need_version=no
11072  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11073  soname_spec='$libname$release$shared_ext$major'
11074  shlibpath_var=LD_LIBRARY_PATH
11075  shlibpath_overrides_runpath=yes
11076  hardcode_into_libs=yes
11077  # ldd complains unless libraries are executable
11078  postinstall_cmds='chmod +x $lib'
11079  ;;
11080
11081sunos4*)
11082  version_type=sunos
11083  library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11084  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11085  shlibpath_var=LD_LIBRARY_PATH
11086  shlibpath_overrides_runpath=yes
11087  if test yes = "$with_gnu_ld"; then
11088    need_lib_prefix=no
11089  fi
11090  need_version=yes
11091  ;;
11092
11093sysv4 | sysv4.3*)
11094  version_type=linux # correct to gnu/linux during the next big refactor
11095  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11096  soname_spec='$libname$release$shared_ext$major'
11097  shlibpath_var=LD_LIBRARY_PATH
11098  case $host_vendor in
11099    sni)
11100      shlibpath_overrides_runpath=no
11101      need_lib_prefix=no
11102      runpath_var=LD_RUN_PATH
11103      ;;
11104    siemens)
11105      need_lib_prefix=no
11106      ;;
11107    motorola)
11108      need_lib_prefix=no
11109      need_version=no
11110      shlibpath_overrides_runpath=no
11111      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11112      ;;
11113  esac
11114  ;;
11115
11116sysv4*MP*)
11117  if test -d /usr/nec; then
11118    version_type=linux # correct to gnu/linux during the next big refactor
11119    library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
11120    soname_spec='$libname$shared_ext.$major'
11121    shlibpath_var=LD_LIBRARY_PATH
11122  fi
11123  ;;
11124
11125sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11126  version_type=freebsd-elf
11127  need_lib_prefix=no
11128  need_version=no
11129  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
11130  soname_spec='$libname$release$shared_ext$major'
11131  shlibpath_var=LD_LIBRARY_PATH
11132  shlibpath_overrides_runpath=yes
11133  hardcode_into_libs=yes
11134  if test yes = "$with_gnu_ld"; then
11135    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11136  else
11137    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11138    case $host_os in
11139      sco3.2v5*)
11140        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11141	;;
11142    esac
11143  fi
11144  sys_lib_dlsearch_path_spec='/usr/lib'
11145  ;;
11146
11147tpf*)
11148  # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
11149  version_type=linux # correct to gnu/linux during the next big refactor
11150  need_lib_prefix=no
11151  need_version=no
11152  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11153  shlibpath_var=LD_LIBRARY_PATH
11154  shlibpath_overrides_runpath=no
11155  hardcode_into_libs=yes
11156  ;;
11157
11158uts4*)
11159  version_type=linux # correct to gnu/linux during the next big refactor
11160  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11161  soname_spec='$libname$release$shared_ext$major'
11162  shlibpath_var=LD_LIBRARY_PATH
11163  ;;
11164
11165*)
11166  dynamic_linker=no
11167  ;;
11168esac
11169{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11170$as_echo "$dynamic_linker" >&6; }
11171test no = "$dynamic_linker" && can_build_shared=no
11172
11173variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11174if test yes = "$GCC"; then
11175  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11176fi
11177
11178if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
11179  sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
11180fi
11181if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
11182  sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
11183fi
11184
11185
11186
11187
11188
11189
11190
11191
11192
11193
11194
11195
11196
11197
11198
11199
11200
11201
11202
11203
11204
11205
11206
11207
11208
11209
11210
11211
11212
11213
11214
11215
11216
11217
11218
11219
11220
11221
11222
11223
11224
11225
11226
11227
11228
11229
11230
11231
11232
11233
11234
11235
11236
11237
11238
11239
11240
11241
11242
11243
11244
11245
11246
11247
11248
11249
11250
11251
11252
11253
11254
11255
11256
11257
11258
11259
11260
11261
11262
11263
11264
11265
11266
11267
11268
11269
11270
11271
11272
11273
11274
11275
11276  { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11277$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11278hardcode_action=
11279if test -n "$hardcode_libdir_flag_spec" ||
11280   test -n "$runpath_var" ||
11281   test yes = "$hardcode_automatic"; then
11282
11283  # We can hardcode non-existent directories.
11284  if test no != "$hardcode_direct" &&
11285     # If the only mechanism to avoid hardcoding is shlibpath_var, we
11286     # have to relink, otherwise we might link with an installed library
11287     # when we should be linking with a yet-to-be-installed one
11288     ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
11289     test no != "$hardcode_minus_L"; then
11290    # Linking always hardcodes the temporary library directory.
11291    hardcode_action=relink
11292  else
11293    # We can link without hardcoding, and we can hardcode nonexisting dirs.
11294    hardcode_action=immediate
11295  fi
11296else
11297  # We cannot hardcode anything, or else we can only hardcode existing
11298  # directories.
11299  hardcode_action=unsupported
11300fi
11301{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11302$as_echo "$hardcode_action" >&6; }
11303
11304if test relink = "$hardcode_action" ||
11305   test yes = "$inherit_rpath"; then
11306  # Fast installation is not supported
11307  enable_fast_install=no
11308elif test yes = "$shlibpath_overrides_runpath" ||
11309     test no = "$enable_shared"; then
11310  # Fast installation is not necessary
11311  enable_fast_install=needless
11312fi
11313
11314
11315
11316
11317
11318
11319  if test yes != "$enable_dlopen"; then
11320  enable_dlopen=unknown
11321  enable_dlopen_self=unknown
11322  enable_dlopen_self_static=unknown
11323else
11324  lt_cv_dlopen=no
11325  lt_cv_dlopen_libs=
11326
11327  case $host_os in
11328  beos*)
11329    lt_cv_dlopen=load_add_on
11330    lt_cv_dlopen_libs=
11331    lt_cv_dlopen_self=yes
11332    ;;
11333
11334  mingw* | pw32* | cegcc*)
11335    lt_cv_dlopen=LoadLibrary
11336    lt_cv_dlopen_libs=
11337    ;;
11338
11339  cygwin*)
11340    lt_cv_dlopen=dlopen
11341    lt_cv_dlopen_libs=
11342    ;;
11343
11344  darwin*)
11345    # if libdl is installed we need to link against it
11346    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11347$as_echo_n "checking for dlopen in -ldl... " >&6; }
11348if ${ac_cv_lib_dl_dlopen+:} false; then :
11349  $as_echo_n "(cached) " >&6
11350else
11351  ac_check_lib_save_LIBS=$LIBS
11352LIBS="-ldl  $LIBS"
11353cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11354/* end confdefs.h.  */
11355
11356/* Override any GCC internal prototype to avoid an error.
11357   Use char because int might match the return type of a GCC
11358   builtin and then its argument prototype would still apply.  */
11359#ifdef __cplusplus
11360extern "C"
11361#endif
11362char dlopen ();
11363int
11364main ()
11365{
11366return dlopen ();
11367  ;
11368  return 0;
11369}
11370_ACEOF
11371if ac_fn_c_try_link "$LINENO"; then :
11372  ac_cv_lib_dl_dlopen=yes
11373else
11374  ac_cv_lib_dl_dlopen=no
11375fi
11376rm -f core conftest.err conftest.$ac_objext \
11377    conftest$ac_exeext conftest.$ac_ext
11378LIBS=$ac_check_lib_save_LIBS
11379fi
11380{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11381$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11382if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11383  lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
11384else
11385
11386    lt_cv_dlopen=dyld
11387    lt_cv_dlopen_libs=
11388    lt_cv_dlopen_self=yes
11389
11390fi
11391
11392    ;;
11393
11394  tpf*)
11395    # Don't try to run any link tests for TPF.  We know it's impossible
11396    # because TPF is a cross-compiler, and we know how we open DSOs.
11397    lt_cv_dlopen=dlopen
11398    lt_cv_dlopen_libs=
11399    lt_cv_dlopen_self=no
11400    ;;
11401
11402  *)
11403    ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
11404if test "x$ac_cv_func_shl_load" = xyes; then :
11405  lt_cv_dlopen=shl_load
11406else
11407  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11408$as_echo_n "checking for shl_load in -ldld... " >&6; }
11409if ${ac_cv_lib_dld_shl_load+:} false; then :
11410  $as_echo_n "(cached) " >&6
11411else
11412  ac_check_lib_save_LIBS=$LIBS
11413LIBS="-ldld  $LIBS"
11414cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11415/* end confdefs.h.  */
11416
11417/* Override any GCC internal prototype to avoid an error.
11418   Use char because int might match the return type of a GCC
11419   builtin and then its argument prototype would still apply.  */
11420#ifdef __cplusplus
11421extern "C"
11422#endif
11423char shl_load ();
11424int
11425main ()
11426{
11427return shl_load ();
11428  ;
11429  return 0;
11430}
11431_ACEOF
11432if ac_fn_c_try_link "$LINENO"; then :
11433  ac_cv_lib_dld_shl_load=yes
11434else
11435  ac_cv_lib_dld_shl_load=no
11436fi
11437rm -f core conftest.err conftest.$ac_objext \
11438    conftest$ac_exeext conftest.$ac_ext
11439LIBS=$ac_check_lib_save_LIBS
11440fi
11441{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11442$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11443if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
11444  lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
11445else
11446  ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
11447if test "x$ac_cv_func_dlopen" = xyes; then :
11448  lt_cv_dlopen=dlopen
11449else
11450  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11451$as_echo_n "checking for dlopen in -ldl... " >&6; }
11452if ${ac_cv_lib_dl_dlopen+:} false; then :
11453  $as_echo_n "(cached) " >&6
11454else
11455  ac_check_lib_save_LIBS=$LIBS
11456LIBS="-ldl  $LIBS"
11457cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11458/* end confdefs.h.  */
11459
11460/* Override any GCC internal prototype to avoid an error.
11461   Use char because int might match the return type of a GCC
11462   builtin and then its argument prototype would still apply.  */
11463#ifdef __cplusplus
11464extern "C"
11465#endif
11466char dlopen ();
11467int
11468main ()
11469{
11470return dlopen ();
11471  ;
11472  return 0;
11473}
11474_ACEOF
11475if ac_fn_c_try_link "$LINENO"; then :
11476  ac_cv_lib_dl_dlopen=yes
11477else
11478  ac_cv_lib_dl_dlopen=no
11479fi
11480rm -f core conftest.err conftest.$ac_objext \
11481    conftest$ac_exeext conftest.$ac_ext
11482LIBS=$ac_check_lib_save_LIBS
11483fi
11484{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11485$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11486if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11487  lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
11488else
11489  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11490$as_echo_n "checking for dlopen in -lsvld... " >&6; }
11491if ${ac_cv_lib_svld_dlopen+:} false; then :
11492  $as_echo_n "(cached) " >&6
11493else
11494  ac_check_lib_save_LIBS=$LIBS
11495LIBS="-lsvld  $LIBS"
11496cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11497/* end confdefs.h.  */
11498
11499/* Override any GCC internal prototype to avoid an error.
11500   Use char because int might match the return type of a GCC
11501   builtin and then its argument prototype would still apply.  */
11502#ifdef __cplusplus
11503extern "C"
11504#endif
11505char dlopen ();
11506int
11507main ()
11508{
11509return dlopen ();
11510  ;
11511  return 0;
11512}
11513_ACEOF
11514if ac_fn_c_try_link "$LINENO"; then :
11515  ac_cv_lib_svld_dlopen=yes
11516else
11517  ac_cv_lib_svld_dlopen=no
11518fi
11519rm -f core conftest.err conftest.$ac_objext \
11520    conftest$ac_exeext conftest.$ac_ext
11521LIBS=$ac_check_lib_save_LIBS
11522fi
11523{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11524$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11525if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
11526  lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
11527else
11528  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11529$as_echo_n "checking for dld_link in -ldld... " >&6; }
11530if ${ac_cv_lib_dld_dld_link+:} false; then :
11531  $as_echo_n "(cached) " >&6
11532else
11533  ac_check_lib_save_LIBS=$LIBS
11534LIBS="-ldld  $LIBS"
11535cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11536/* end confdefs.h.  */
11537
11538/* Override any GCC internal prototype to avoid an error.
11539   Use char because int might match the return type of a GCC
11540   builtin and then its argument prototype would still apply.  */
11541#ifdef __cplusplus
11542extern "C"
11543#endif
11544char dld_link ();
11545int
11546main ()
11547{
11548return dld_link ();
11549  ;
11550  return 0;
11551}
11552_ACEOF
11553if ac_fn_c_try_link "$LINENO"; then :
11554  ac_cv_lib_dld_dld_link=yes
11555else
11556  ac_cv_lib_dld_dld_link=no
11557fi
11558rm -f core conftest.err conftest.$ac_objext \
11559    conftest$ac_exeext conftest.$ac_ext
11560LIBS=$ac_check_lib_save_LIBS
11561fi
11562{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11563$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11564if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
11565  lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
11566fi
11567
11568
11569fi
11570
11571
11572fi
11573
11574
11575fi
11576
11577
11578fi
11579
11580
11581fi
11582
11583    ;;
11584  esac
11585
11586  if test no = "$lt_cv_dlopen"; then
11587    enable_dlopen=no
11588  else
11589    enable_dlopen=yes
11590  fi
11591
11592  case $lt_cv_dlopen in
11593  dlopen)
11594    save_CPPFLAGS=$CPPFLAGS
11595    test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11596
11597    save_LDFLAGS=$LDFLAGS
11598    wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11599
11600    save_LIBS=$LIBS
11601    LIBS="$lt_cv_dlopen_libs $LIBS"
11602
11603    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11604$as_echo_n "checking whether a program can dlopen itself... " >&6; }
11605if ${lt_cv_dlopen_self+:} false; then :
11606  $as_echo_n "(cached) " >&6
11607else
11608  	  if test yes = "$cross_compiling"; then :
11609  lt_cv_dlopen_self=cross
11610else
11611  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11612  lt_status=$lt_dlunknown
11613  cat > conftest.$ac_ext <<_LT_EOF
11614#line $LINENO "configure"
11615#include "confdefs.h"
11616
11617#if HAVE_DLFCN_H
11618#include <dlfcn.h>
11619#endif
11620
11621#include <stdio.h>
11622
11623#ifdef RTLD_GLOBAL
11624#  define LT_DLGLOBAL		RTLD_GLOBAL
11625#else
11626#  ifdef DL_GLOBAL
11627#    define LT_DLGLOBAL		DL_GLOBAL
11628#  else
11629#    define LT_DLGLOBAL		0
11630#  endif
11631#endif
11632
11633/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11634   find out it does not work in some platform. */
11635#ifndef LT_DLLAZY_OR_NOW
11636#  ifdef RTLD_LAZY
11637#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
11638#  else
11639#    ifdef DL_LAZY
11640#      define LT_DLLAZY_OR_NOW		DL_LAZY
11641#    else
11642#      ifdef RTLD_NOW
11643#        define LT_DLLAZY_OR_NOW	RTLD_NOW
11644#      else
11645#        ifdef DL_NOW
11646#          define LT_DLLAZY_OR_NOW	DL_NOW
11647#        else
11648#          define LT_DLLAZY_OR_NOW	0
11649#        endif
11650#      endif
11651#    endif
11652#  endif
11653#endif
11654
11655/* When -fvisbility=hidden is used, assume the code has been annotated
11656   correspondingly for the symbols needed.  */
11657#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11658int fnord () __attribute__((visibility("default")));
11659#endif
11660
11661int fnord () { return 42; }
11662int main ()
11663{
11664  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11665  int status = $lt_dlunknown;
11666
11667  if (self)
11668    {
11669      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
11670      else
11671        {
11672	  if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
11673          else puts (dlerror ());
11674	}
11675      /* dlclose (self); */
11676    }
11677  else
11678    puts (dlerror ());
11679
11680  return status;
11681}
11682_LT_EOF
11683  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11684  (eval $ac_link) 2>&5
11685  ac_status=$?
11686  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11687  test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
11688    (./conftest; exit; ) >&5 2>/dev/null
11689    lt_status=$?
11690    case x$lt_status in
11691      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11692      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11693      x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11694    esac
11695  else :
11696    # compilation failed
11697    lt_cv_dlopen_self=no
11698  fi
11699fi
11700rm -fr conftest*
11701
11702
11703fi
11704{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11705$as_echo "$lt_cv_dlopen_self" >&6; }
11706
11707    if test yes = "$lt_cv_dlopen_self"; then
11708      wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11709      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11710$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11711if ${lt_cv_dlopen_self_static+:} false; then :
11712  $as_echo_n "(cached) " >&6
11713else
11714  	  if test yes = "$cross_compiling"; then :
11715  lt_cv_dlopen_self_static=cross
11716else
11717  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11718  lt_status=$lt_dlunknown
11719  cat > conftest.$ac_ext <<_LT_EOF
11720#line $LINENO "configure"
11721#include "confdefs.h"
11722
11723#if HAVE_DLFCN_H
11724#include <dlfcn.h>
11725#endif
11726
11727#include <stdio.h>
11728
11729#ifdef RTLD_GLOBAL
11730#  define LT_DLGLOBAL		RTLD_GLOBAL
11731#else
11732#  ifdef DL_GLOBAL
11733#    define LT_DLGLOBAL		DL_GLOBAL
11734#  else
11735#    define LT_DLGLOBAL		0
11736#  endif
11737#endif
11738
11739/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11740   find out it does not work in some platform. */
11741#ifndef LT_DLLAZY_OR_NOW
11742#  ifdef RTLD_LAZY
11743#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
11744#  else
11745#    ifdef DL_LAZY
11746#      define LT_DLLAZY_OR_NOW		DL_LAZY
11747#    else
11748#      ifdef RTLD_NOW
11749#        define LT_DLLAZY_OR_NOW	RTLD_NOW
11750#      else
11751#        ifdef DL_NOW
11752#          define LT_DLLAZY_OR_NOW	DL_NOW
11753#        else
11754#          define LT_DLLAZY_OR_NOW	0
11755#        endif
11756#      endif
11757#    endif
11758#  endif
11759#endif
11760
11761/* When -fvisbility=hidden is used, assume the code has been annotated
11762   correspondingly for the symbols needed.  */
11763#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11764int fnord () __attribute__((visibility("default")));
11765#endif
11766
11767int fnord () { return 42; }
11768int main ()
11769{
11770  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11771  int status = $lt_dlunknown;
11772
11773  if (self)
11774    {
11775      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
11776      else
11777        {
11778	  if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
11779          else puts (dlerror ());
11780	}
11781      /* dlclose (self); */
11782    }
11783  else
11784    puts (dlerror ());
11785
11786  return status;
11787}
11788_LT_EOF
11789  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11790  (eval $ac_link) 2>&5
11791  ac_status=$?
11792  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11793  test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
11794    (./conftest; exit; ) >&5 2>/dev/null
11795    lt_status=$?
11796    case x$lt_status in
11797      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11798      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11799      x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11800    esac
11801  else :
11802    # compilation failed
11803    lt_cv_dlopen_self_static=no
11804  fi
11805fi
11806rm -fr conftest*
11807
11808
11809fi
11810{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11811$as_echo "$lt_cv_dlopen_self_static" >&6; }
11812    fi
11813
11814    CPPFLAGS=$save_CPPFLAGS
11815    LDFLAGS=$save_LDFLAGS
11816    LIBS=$save_LIBS
11817    ;;
11818  esac
11819
11820  case $lt_cv_dlopen_self in
11821  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11822  *) enable_dlopen_self=unknown ;;
11823  esac
11824
11825  case $lt_cv_dlopen_self_static in
11826  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11827  *) enable_dlopen_self_static=unknown ;;
11828  esac
11829fi
11830
11831
11832
11833
11834
11835
11836
11837
11838
11839
11840
11841
11842
11843
11844
11845
11846
11847striplib=
11848old_striplib=
11849{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11850$as_echo_n "checking whether stripping libraries is possible... " >&6; }
11851if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11852  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11853  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11854  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11855$as_echo "yes" >&6; }
11856else
11857# FIXME - insert some real tests, host_os isn't really good enough
11858  case $host_os in
11859  darwin*)
11860    if test -n "$STRIP"; then
11861      striplib="$STRIP -x"
11862      old_striplib="$STRIP -S"
11863      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11864$as_echo "yes" >&6; }
11865    else
11866      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11867$as_echo "no" >&6; }
11868    fi
11869    ;;
11870  *)
11871    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11872$as_echo "no" >&6; }
11873    ;;
11874  esac
11875fi
11876
11877
11878
11879
11880
11881
11882
11883
11884
11885
11886
11887
11888  # Report what library types will actually be built
11889  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11890$as_echo_n "checking if libtool supports shared libraries... " >&6; }
11891  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11892$as_echo "$can_build_shared" >&6; }
11893
11894  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11895$as_echo_n "checking whether to build shared libraries... " >&6; }
11896  test no = "$can_build_shared" && enable_shared=no
11897
11898  # On AIX, shared libraries and static libraries use the same namespace, and
11899  # are all built from PIC.
11900  case $host_os in
11901  aix3*)
11902    test yes = "$enable_shared" && enable_static=no
11903    if test -n "$RANLIB"; then
11904      archive_cmds="$archive_cmds~\$RANLIB \$lib"
11905      postinstall_cmds='$RANLIB $lib'
11906    fi
11907    ;;
11908
11909  aix[4-9]*)
11910    if test ia64 != "$host_cpu" && test no = "$aix_use_runtimelinking"; then
11911      test yes = "$enable_shared" && enable_static=no
11912    fi
11913    ;;
11914  esac
11915  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11916$as_echo "$enable_shared" >&6; }
11917
11918  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11919$as_echo_n "checking whether to build static libraries... " >&6; }
11920  # Make sure either enable_shared or enable_static is yes.
11921  test yes = "$enable_shared" || enable_static=yes
11922  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11923$as_echo "$enable_static" >&6; }
11924
11925
11926
11927
11928fi
11929ac_ext=c
11930ac_cpp='$CPP $CPPFLAGS'
11931ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11932ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11933ac_compiler_gnu=$ac_cv_c_compiler_gnu
11934
11935CC=$lt_save_CC
11936
11937
11938
11939
11940
11941
11942
11943
11944
11945
11946
11947
11948
11949
11950
11951        ac_config_commands="$ac_config_commands libtool"
11952
11953
11954
11955
11956# Only expand once:
11957
11958
11959
11960
11961ac_ext=c
11962ac_cpp='$CPP $CPPFLAGS'
11963ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11964ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11965ac_compiler_gnu=$ac_cv_c_compiler_gnu
11966
11967ac_ext=c
11968ac_cpp='$CPP $CPPFLAGS'
11969ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11970ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11971ac_compiler_gnu=$ac_cv_c_compiler_gnu
11972if test -n "$ac_tool_prefix"; then
11973  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
11974set dummy ${ac_tool_prefix}gcc; ac_word=$2
11975{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11976$as_echo_n "checking for $ac_word... " >&6; }
11977if ${ac_cv_prog_CC+:} false; then :
11978  $as_echo_n "(cached) " >&6
11979else
11980  if test -n "$CC"; then
11981  ac_cv_prog_CC="$CC" # Let the user override the test.
11982else
11983as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11984for as_dir in $PATH
11985do
11986  IFS=$as_save_IFS
11987  test -z "$as_dir" && as_dir=.
11988    for ac_exec_ext in '' $ac_executable_extensions; do
11989  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11990    ac_cv_prog_CC="${ac_tool_prefix}gcc"
11991    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11992    break 2
11993  fi
11994done
11995  done
11996IFS=$as_save_IFS
11997
11998fi
11999fi
12000CC=$ac_cv_prog_CC
12001if test -n "$CC"; then
12002  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
12003$as_echo "$CC" >&6; }
12004else
12005  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12006$as_echo "no" >&6; }
12007fi
12008
12009
12010fi
12011if test -z "$ac_cv_prog_CC"; then
12012  ac_ct_CC=$CC
12013  # Extract the first word of "gcc", so it can be a program name with args.
12014set dummy gcc; ac_word=$2
12015{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12016$as_echo_n "checking for $ac_word... " >&6; }
12017if ${ac_cv_prog_ac_ct_CC+:} false; then :
12018  $as_echo_n "(cached) " >&6
12019else
12020  if test -n "$ac_ct_CC"; then
12021  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
12022else
12023as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12024for as_dir in $PATH
12025do
12026  IFS=$as_save_IFS
12027  test -z "$as_dir" && as_dir=.
12028    for ac_exec_ext in '' $ac_executable_extensions; do
12029  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12030    ac_cv_prog_ac_ct_CC="gcc"
12031    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12032    break 2
12033  fi
12034done
12035  done
12036IFS=$as_save_IFS
12037
12038fi
12039fi
12040ac_ct_CC=$ac_cv_prog_ac_ct_CC
12041if test -n "$ac_ct_CC"; then
12042  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
12043$as_echo "$ac_ct_CC" >&6; }
12044else
12045  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12046$as_echo "no" >&6; }
12047fi
12048
12049  if test "x$ac_ct_CC" = x; then
12050    CC=""
12051  else
12052    case $cross_compiling:$ac_tool_warned in
12053yes:)
12054{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12055$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12056ac_tool_warned=yes ;;
12057esac
12058    CC=$ac_ct_CC
12059  fi
12060else
12061  CC="$ac_cv_prog_CC"
12062fi
12063
12064if test -z "$CC"; then
12065          if test -n "$ac_tool_prefix"; then
12066    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
12067set dummy ${ac_tool_prefix}cc; ac_word=$2
12068{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12069$as_echo_n "checking for $ac_word... " >&6; }
12070if ${ac_cv_prog_CC+:} false; then :
12071  $as_echo_n "(cached) " >&6
12072else
12073  if test -n "$CC"; then
12074  ac_cv_prog_CC="$CC" # Let the user override the test.
12075else
12076as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12077for as_dir in $PATH
12078do
12079  IFS=$as_save_IFS
12080  test -z "$as_dir" && as_dir=.
12081    for ac_exec_ext in '' $ac_executable_extensions; do
12082  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12083    ac_cv_prog_CC="${ac_tool_prefix}cc"
12084    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12085    break 2
12086  fi
12087done
12088  done
12089IFS=$as_save_IFS
12090
12091fi
12092fi
12093CC=$ac_cv_prog_CC
12094if test -n "$CC"; then
12095  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
12096$as_echo "$CC" >&6; }
12097else
12098  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12099$as_echo "no" >&6; }
12100fi
12101
12102
12103  fi
12104fi
12105if test -z "$CC"; then
12106  # Extract the first word of "cc", so it can be a program name with args.
12107set dummy cc; ac_word=$2
12108{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12109$as_echo_n "checking for $ac_word... " >&6; }
12110if ${ac_cv_prog_CC+:} false; then :
12111  $as_echo_n "(cached) " >&6
12112else
12113  if test -n "$CC"; then
12114  ac_cv_prog_CC="$CC" # Let the user override the test.
12115else
12116  ac_prog_rejected=no
12117as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12118for as_dir in $PATH
12119do
12120  IFS=$as_save_IFS
12121  test -z "$as_dir" && as_dir=.
12122    for ac_exec_ext in '' $ac_executable_extensions; do
12123  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12124    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
12125       ac_prog_rejected=yes
12126       continue
12127     fi
12128    ac_cv_prog_CC="cc"
12129    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12130    break 2
12131  fi
12132done
12133  done
12134IFS=$as_save_IFS
12135
12136if test $ac_prog_rejected = yes; then
12137  # We found a bogon in the path, so make sure we never use it.
12138  set dummy $ac_cv_prog_CC
12139  shift
12140  if test $# != 0; then
12141    # We chose a different compiler from the bogus one.
12142    # However, it has the same basename, so the bogon will be chosen
12143    # first if we set CC to just the basename; use the full file name.
12144    shift
12145    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
12146  fi
12147fi
12148fi
12149fi
12150CC=$ac_cv_prog_CC
12151if test -n "$CC"; then
12152  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
12153$as_echo "$CC" >&6; }
12154else
12155  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12156$as_echo "no" >&6; }
12157fi
12158
12159
12160fi
12161if test -z "$CC"; then
12162  if test -n "$ac_tool_prefix"; then
12163  for ac_prog in cl.exe
12164  do
12165    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
12166set dummy $ac_tool_prefix$ac_prog; ac_word=$2
12167{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12168$as_echo_n "checking for $ac_word... " >&6; }
12169if ${ac_cv_prog_CC+:} false; then :
12170  $as_echo_n "(cached) " >&6
12171else
12172  if test -n "$CC"; then
12173  ac_cv_prog_CC="$CC" # Let the user override the test.
12174else
12175as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12176for as_dir in $PATH
12177do
12178  IFS=$as_save_IFS
12179  test -z "$as_dir" && as_dir=.
12180    for ac_exec_ext in '' $ac_executable_extensions; do
12181  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12182    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
12183    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12184    break 2
12185  fi
12186done
12187  done
12188IFS=$as_save_IFS
12189
12190fi
12191fi
12192CC=$ac_cv_prog_CC
12193if test -n "$CC"; then
12194  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
12195$as_echo "$CC" >&6; }
12196else
12197  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12198$as_echo "no" >&6; }
12199fi
12200
12201
12202    test -n "$CC" && break
12203  done
12204fi
12205if test -z "$CC"; then
12206  ac_ct_CC=$CC
12207  for ac_prog in cl.exe
12208do
12209  # Extract the first word of "$ac_prog", so it can be a program name with args.
12210set dummy $ac_prog; ac_word=$2
12211{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12212$as_echo_n "checking for $ac_word... " >&6; }
12213if ${ac_cv_prog_ac_ct_CC+:} false; then :
12214  $as_echo_n "(cached) " >&6
12215else
12216  if test -n "$ac_ct_CC"; then
12217  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
12218else
12219as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12220for as_dir in $PATH
12221do
12222  IFS=$as_save_IFS
12223  test -z "$as_dir" && as_dir=.
12224    for ac_exec_ext in '' $ac_executable_extensions; do
12225  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12226    ac_cv_prog_ac_ct_CC="$ac_prog"
12227    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12228    break 2
12229  fi
12230done
12231  done
12232IFS=$as_save_IFS
12233
12234fi
12235fi
12236ac_ct_CC=$ac_cv_prog_ac_ct_CC
12237if test -n "$ac_ct_CC"; then
12238  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
12239$as_echo "$ac_ct_CC" >&6; }
12240else
12241  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12242$as_echo "no" >&6; }
12243fi
12244
12245
12246  test -n "$ac_ct_CC" && break
12247done
12248
12249  if test "x$ac_ct_CC" = x; then
12250    CC=""
12251  else
12252    case $cross_compiling:$ac_tool_warned in
12253yes:)
12254{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12255$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12256ac_tool_warned=yes ;;
12257esac
12258    CC=$ac_ct_CC
12259  fi
12260fi
12261
12262fi
12263
12264
12265test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12266$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12267as_fn_error $? "no acceptable C compiler found in \$PATH
12268See \`config.log' for more details" "$LINENO" 5; }
12269
12270# Provide some information about the compiler.
12271$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
12272set X $ac_compile
12273ac_compiler=$2
12274for ac_option in --version -v -V -qversion; do
12275  { { ac_try="$ac_compiler $ac_option >&5"
12276case "(($ac_try" in
12277  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12278  *) ac_try_echo=$ac_try;;
12279esac
12280eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
12281$as_echo "$ac_try_echo"; } >&5
12282  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
12283  ac_status=$?
12284  if test -s conftest.err; then
12285    sed '10a\
12286... rest of stderr output deleted ...
12287         10q' conftest.err >conftest.er1
12288    cat conftest.er1 >&5
12289  fi
12290  rm -f conftest.er1 conftest.err
12291  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12292  test $ac_status = 0; }
12293done
12294
12295{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
12296$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
12297if ${ac_cv_c_compiler_gnu+:} false; then :
12298  $as_echo_n "(cached) " >&6
12299else
12300  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12301/* end confdefs.h.  */
12302
12303int
12304main ()
12305{
12306#ifndef __GNUC__
12307       choke me
12308#endif
12309
12310  ;
12311  return 0;
12312}
12313_ACEOF
12314if ac_fn_c_try_compile "$LINENO"; then :
12315  ac_compiler_gnu=yes
12316else
12317  ac_compiler_gnu=no
12318fi
12319rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12320ac_cv_c_compiler_gnu=$ac_compiler_gnu
12321
12322fi
12323{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
12324$as_echo "$ac_cv_c_compiler_gnu" >&6; }
12325if test $ac_compiler_gnu = yes; then
12326  GCC=yes
12327else
12328  GCC=
12329fi
12330ac_test_CFLAGS=${CFLAGS+set}
12331ac_save_CFLAGS=$CFLAGS
12332{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
12333$as_echo_n "checking whether $CC accepts -g... " >&6; }
12334if ${ac_cv_prog_cc_g+:} false; then :
12335  $as_echo_n "(cached) " >&6
12336else
12337  ac_save_c_werror_flag=$ac_c_werror_flag
12338   ac_c_werror_flag=yes
12339   ac_cv_prog_cc_g=no
12340   CFLAGS="-g"
12341   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12342/* end confdefs.h.  */
12343
12344int
12345main ()
12346{
12347
12348  ;
12349  return 0;
12350}
12351_ACEOF
12352if ac_fn_c_try_compile "$LINENO"; then :
12353  ac_cv_prog_cc_g=yes
12354else
12355  CFLAGS=""
12356      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12357/* end confdefs.h.  */
12358
12359int
12360main ()
12361{
12362
12363  ;
12364  return 0;
12365}
12366_ACEOF
12367if ac_fn_c_try_compile "$LINENO"; then :
12368
12369else
12370  ac_c_werror_flag=$ac_save_c_werror_flag
12371	 CFLAGS="-g"
12372	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12373/* end confdefs.h.  */
12374
12375int
12376main ()
12377{
12378
12379  ;
12380  return 0;
12381}
12382_ACEOF
12383if ac_fn_c_try_compile "$LINENO"; then :
12384  ac_cv_prog_cc_g=yes
12385fi
12386rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12387fi
12388rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12389fi
12390rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12391   ac_c_werror_flag=$ac_save_c_werror_flag
12392fi
12393{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
12394$as_echo "$ac_cv_prog_cc_g" >&6; }
12395if test "$ac_test_CFLAGS" = set; then
12396  CFLAGS=$ac_save_CFLAGS
12397elif test $ac_cv_prog_cc_g = yes; then
12398  if test "$GCC" = yes; then
12399    CFLAGS="-g -O2"
12400  else
12401    CFLAGS="-g"
12402  fi
12403else
12404  if test "$GCC" = yes; then
12405    CFLAGS="-O2"
12406  else
12407    CFLAGS=
12408  fi
12409fi
12410{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
12411$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
12412if ${ac_cv_prog_cc_c89+:} false; then :
12413  $as_echo_n "(cached) " >&6
12414else
12415  ac_cv_prog_cc_c89=no
12416ac_save_CC=$CC
12417cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12418/* end confdefs.h.  */
12419#include <stdarg.h>
12420#include <stdio.h>
12421struct stat;
12422/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
12423struct buf { int x; };
12424FILE * (*rcsopen) (struct buf *, struct stat *, int);
12425static char *e (p, i)
12426     char **p;
12427     int i;
12428{
12429  return p[i];
12430}
12431static char *f (char * (*g) (char **, int), char **p, ...)
12432{
12433  char *s;
12434  va_list v;
12435  va_start (v,p);
12436  s = g (p, va_arg (v,int));
12437  va_end (v);
12438  return s;
12439}
12440
12441/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
12442   function prototypes and stuff, but not '\xHH' hex character constants.
12443   These don't provoke an error unfortunately, instead are silently treated
12444   as 'x'.  The following induces an error, until -std is added to get
12445   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
12446   array size at least.  It's necessary to write '\x00'==0 to get something
12447   that's true only with -std.  */
12448int osf4_cc_array ['\x00' == 0 ? 1 : -1];
12449
12450/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
12451   inside strings and character constants.  */
12452#define FOO(x) 'x'
12453int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
12454
12455int test (int i, double x);
12456struct s1 {int (*f) (int a);};
12457struct s2 {int (*f) (double a);};
12458int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
12459int argc;
12460char **argv;
12461int
12462main ()
12463{
12464return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
12465  ;
12466  return 0;
12467}
12468_ACEOF
12469for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
12470	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
12471do
12472  CC="$ac_save_CC $ac_arg"
12473  if ac_fn_c_try_compile "$LINENO"; then :
12474  ac_cv_prog_cc_c89=$ac_arg
12475fi
12476rm -f core conftest.err conftest.$ac_objext
12477  test "x$ac_cv_prog_cc_c89" != "xno" && break
12478done
12479rm -f conftest.$ac_ext
12480CC=$ac_save_CC
12481
12482fi
12483# AC_CACHE_VAL
12484case "x$ac_cv_prog_cc_c89" in
12485  x)
12486    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
12487$as_echo "none needed" >&6; } ;;
12488  xno)
12489    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
12490$as_echo "unsupported" >&6; } ;;
12491  *)
12492    CC="$CC $ac_cv_prog_cc_c89"
12493    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
12494$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
12495esac
12496if test "x$ac_cv_prog_cc_c89" != xno; then :
12497
12498fi
12499
12500ac_ext=c
12501ac_cpp='$CPP $CPPFLAGS'
12502ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12503ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12504ac_compiler_gnu=$ac_cv_c_compiler_gnu
12505
12506ac_ext=c
12507ac_cpp='$CPP $CPPFLAGS'
12508ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12509ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12510ac_compiler_gnu=$ac_cv_c_compiler_gnu
12511{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
12512$as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
12513if ${am_cv_prog_cc_c_o+:} false; then :
12514  $as_echo_n "(cached) " >&6
12515else
12516  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12517/* end confdefs.h.  */
12518
12519int
12520main ()
12521{
12522
12523  ;
12524  return 0;
12525}
12526_ACEOF
12527  # Make sure it works both with $CC and with simple cc.
12528  # Following AC_PROG_CC_C_O, we do the test twice because some
12529  # compilers refuse to overwrite an existing .o file with -o,
12530  # though they will create one.
12531  am_cv_prog_cc_c_o=yes
12532  for am_i in 1 2; do
12533    if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
12534   ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
12535   ac_status=$?
12536   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12537   (exit $ac_status); } \
12538         && test -f conftest2.$ac_objext; then
12539      : OK
12540    else
12541      am_cv_prog_cc_c_o=no
12542      break
12543    fi
12544  done
12545  rm -f core conftest*
12546  unset am_i
12547fi
12548{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
12549$as_echo "$am_cv_prog_cc_c_o" >&6; }
12550if test "$am_cv_prog_cc_c_o" != yes; then
12551   # Losing compiler, so override with the script.
12552   # FIXME: It is wrong to rewrite CC.
12553   # But if we don't then we get into trouble of one sort or another.
12554   # A longer-term fix would be to have automake use am__CC in this case,
12555   # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
12556   CC="$am_aux_dir/compile $CC"
12557fi
12558ac_ext=c
12559ac_cpp='$CPP $CPPFLAGS'
12560ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12561ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12562ac_compiler_gnu=$ac_cv_c_compiler_gnu
12563
12564
12565depcc="$CC"   am_compiler_list=
12566
12567{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
12568$as_echo_n "checking dependency style of $depcc... " >&6; }
12569if ${am_cv_CC_dependencies_compiler_type+:} false; then :
12570  $as_echo_n "(cached) " >&6
12571else
12572  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
12573  # We make a subdir and do the tests there.  Otherwise we can end up
12574  # making bogus files that we don't know about and never remove.  For
12575  # instance it was reported that on HP-UX the gcc test will end up
12576  # making a dummy file named 'D' -- because '-MD' means "put the output
12577  # in D".
12578  rm -rf conftest.dir
12579  mkdir conftest.dir
12580  # Copy depcomp to subdir because otherwise we won't find it if we're
12581  # using a relative directory.
12582  cp "$am_depcomp" conftest.dir
12583  cd conftest.dir
12584  # We will build objects and dependencies in a subdirectory because
12585  # it helps to detect inapplicable dependency modes.  For instance
12586  # both Tru64's cc and ICC support -MD to output dependencies as a
12587  # side effect of compilation, but ICC will put the dependencies in
12588  # the current directory while Tru64 will put them in the object
12589  # directory.
12590  mkdir sub
12591
12592  am_cv_CC_dependencies_compiler_type=none
12593  if test "$am_compiler_list" = ""; then
12594     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
12595  fi
12596  am__universal=false
12597  case " $depcc " in #(
12598     *\ -arch\ *\ -arch\ *) am__universal=true ;;
12599     esac
12600
12601  for depmode in $am_compiler_list; do
12602    # Setup a source with many dependencies, because some compilers
12603    # like to wrap large dependency lists on column 80 (with \), and
12604    # we should not choose a depcomp mode which is confused by this.
12605    #
12606    # We need to recreate these files for each test, as the compiler may
12607    # overwrite some of them when testing with obscure command lines.
12608    # This happens at least with the AIX C compiler.
12609    : > sub/conftest.c
12610    for i in 1 2 3 4 5 6; do
12611      echo '#include "conftst'$i'.h"' >> sub/conftest.c
12612      # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
12613      # Solaris 10 /bin/sh.
12614      echo '/* dummy */' > sub/conftst$i.h
12615    done
12616    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
12617
12618    # We check with '-c' and '-o' for the sake of the "dashmstdout"
12619    # mode.  It turns out that the SunPro C++ compiler does not properly
12620    # handle '-M -o', and we need to detect this.  Also, some Intel
12621    # versions had trouble with output in subdirs.
12622    am__obj=sub/conftest.${OBJEXT-o}
12623    am__minus_obj="-o $am__obj"
12624    case $depmode in
12625    gcc)
12626      # This depmode causes a compiler race in universal mode.
12627      test "$am__universal" = false || continue
12628      ;;
12629    nosideeffect)
12630      # After this tag, mechanisms are not by side-effect, so they'll
12631      # only be used when explicitly requested.
12632      if test "x$enable_dependency_tracking" = xyes; then
12633	continue
12634      else
12635	break
12636      fi
12637      ;;
12638    msvc7 | msvc7msys | msvisualcpp | msvcmsys)
12639      # This compiler won't grok '-c -o', but also, the minuso test has
12640      # not run yet.  These depmodes are late enough in the game, and
12641      # so weak that their functioning should not be impacted.
12642      am__obj=conftest.${OBJEXT-o}
12643      am__minus_obj=
12644      ;;
12645    none) break ;;
12646    esac
12647    if depmode=$depmode \
12648       source=sub/conftest.c object=$am__obj \
12649       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
12650       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
12651         >/dev/null 2>conftest.err &&
12652       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
12653       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
12654       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
12655       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
12656      # icc doesn't choke on unknown options, it will just issue warnings
12657      # or remarks (even with -Werror).  So we grep stderr for any message
12658      # that says an option was ignored or not supported.
12659      # When given -MP, icc 7.0 and 7.1 complain thusly:
12660      #   icc: Command line warning: ignoring option '-M'; no argument required
12661      # The diagnosis changed in icc 8.0:
12662      #   icc: Command line remark: option '-MP' not supported
12663      if (grep 'ignoring option' conftest.err ||
12664          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
12665        am_cv_CC_dependencies_compiler_type=$depmode
12666        break
12667      fi
12668    fi
12669  done
12670
12671  cd ..
12672  rm -rf conftest.dir
12673else
12674  am_cv_CC_dependencies_compiler_type=none
12675fi
12676
12677fi
12678{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
12679$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
12680CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
12681
12682 if
12683  test "x$enable_dependency_tracking" != xno \
12684  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
12685  am__fastdepCC_TRUE=
12686  am__fastdepCC_FALSE='#'
12687else
12688  am__fastdepCC_TRUE='#'
12689  am__fastdepCC_FALSE=
12690fi
12691
12692
12693
12694
12695ac_ext=cpp
12696ac_cpp='$CXXCPP $CPPFLAGS'
12697ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12698ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12699ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12700
12701ac_ext=cpp
12702ac_cpp='$CXXCPP $CPPFLAGS'
12703ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12704ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12705ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12706if test -z "$CXX"; then
12707  if test -n "$CCC"; then
12708    CXX=$CCC
12709  else
12710    if test -n "$ac_tool_prefix"; then
12711  for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
12712  do
12713    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
12714set dummy $ac_tool_prefix$ac_prog; ac_word=$2
12715{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12716$as_echo_n "checking for $ac_word... " >&6; }
12717if ${ac_cv_prog_CXX+:} false; then :
12718  $as_echo_n "(cached) " >&6
12719else
12720  if test -n "$CXX"; then
12721  ac_cv_prog_CXX="$CXX" # Let the user override the test.
12722else
12723as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12724for as_dir in $PATH
12725do
12726  IFS=$as_save_IFS
12727  test -z "$as_dir" && as_dir=.
12728    for ac_exec_ext in '' $ac_executable_extensions; do
12729  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12730    ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
12731    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12732    break 2
12733  fi
12734done
12735  done
12736IFS=$as_save_IFS
12737
12738fi
12739fi
12740CXX=$ac_cv_prog_CXX
12741if test -n "$CXX"; then
12742  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
12743$as_echo "$CXX" >&6; }
12744else
12745  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12746$as_echo "no" >&6; }
12747fi
12748
12749
12750    test -n "$CXX" && break
12751  done
12752fi
12753if test -z "$CXX"; then
12754  ac_ct_CXX=$CXX
12755  for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
12756do
12757  # Extract the first word of "$ac_prog", so it can be a program name with args.
12758set dummy $ac_prog; ac_word=$2
12759{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12760$as_echo_n "checking for $ac_word... " >&6; }
12761if ${ac_cv_prog_ac_ct_CXX+:} false; then :
12762  $as_echo_n "(cached) " >&6
12763else
12764  if test -n "$ac_ct_CXX"; then
12765  ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
12766else
12767as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12768for as_dir in $PATH
12769do
12770  IFS=$as_save_IFS
12771  test -z "$as_dir" && as_dir=.
12772    for ac_exec_ext in '' $ac_executable_extensions; do
12773  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12774    ac_cv_prog_ac_ct_CXX="$ac_prog"
12775    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12776    break 2
12777  fi
12778done
12779  done
12780IFS=$as_save_IFS
12781
12782fi
12783fi
12784ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
12785if test -n "$ac_ct_CXX"; then
12786  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
12787$as_echo "$ac_ct_CXX" >&6; }
12788else
12789  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12790$as_echo "no" >&6; }
12791fi
12792
12793
12794  test -n "$ac_ct_CXX" && break
12795done
12796
12797  if test "x$ac_ct_CXX" = x; then
12798    CXX="g++"
12799  else
12800    case $cross_compiling:$ac_tool_warned in
12801yes:)
12802{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12803$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12804ac_tool_warned=yes ;;
12805esac
12806    CXX=$ac_ct_CXX
12807  fi
12808fi
12809
12810  fi
12811fi
12812# Provide some information about the compiler.
12813$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
12814set X $ac_compile
12815ac_compiler=$2
12816for ac_option in --version -v -V -qversion; do
12817  { { ac_try="$ac_compiler $ac_option >&5"
12818case "(($ac_try" in
12819  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12820  *) ac_try_echo=$ac_try;;
12821esac
12822eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
12823$as_echo "$ac_try_echo"; } >&5
12824  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
12825  ac_status=$?
12826  if test -s conftest.err; then
12827    sed '10a\
12828... rest of stderr output deleted ...
12829         10q' conftest.err >conftest.er1
12830    cat conftest.er1 >&5
12831  fi
12832  rm -f conftest.er1 conftest.err
12833  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12834  test $ac_status = 0; }
12835done
12836
12837{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
12838$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
12839if ${ac_cv_cxx_compiler_gnu+:} false; then :
12840  $as_echo_n "(cached) " >&6
12841else
12842  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12843/* end confdefs.h.  */
12844
12845int
12846main ()
12847{
12848#ifndef __GNUC__
12849       choke me
12850#endif
12851
12852  ;
12853  return 0;
12854}
12855_ACEOF
12856if ac_fn_cxx_try_compile "$LINENO"; then :
12857  ac_compiler_gnu=yes
12858else
12859  ac_compiler_gnu=no
12860fi
12861rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12862ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
12863
12864fi
12865{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
12866$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
12867if test $ac_compiler_gnu = yes; then
12868  GXX=yes
12869else
12870  GXX=
12871fi
12872ac_test_CXXFLAGS=${CXXFLAGS+set}
12873ac_save_CXXFLAGS=$CXXFLAGS
12874{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
12875$as_echo_n "checking whether $CXX accepts -g... " >&6; }
12876if ${ac_cv_prog_cxx_g+:} false; then :
12877  $as_echo_n "(cached) " >&6
12878else
12879  ac_save_cxx_werror_flag=$ac_cxx_werror_flag
12880   ac_cxx_werror_flag=yes
12881   ac_cv_prog_cxx_g=no
12882   CXXFLAGS="-g"
12883   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12884/* end confdefs.h.  */
12885
12886int
12887main ()
12888{
12889
12890  ;
12891  return 0;
12892}
12893_ACEOF
12894if ac_fn_cxx_try_compile "$LINENO"; then :
12895  ac_cv_prog_cxx_g=yes
12896else
12897  CXXFLAGS=""
12898      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12899/* end confdefs.h.  */
12900
12901int
12902main ()
12903{
12904
12905  ;
12906  return 0;
12907}
12908_ACEOF
12909if ac_fn_cxx_try_compile "$LINENO"; then :
12910
12911else
12912  ac_cxx_werror_flag=$ac_save_cxx_werror_flag
12913	 CXXFLAGS="-g"
12914	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12915/* end confdefs.h.  */
12916
12917int
12918main ()
12919{
12920
12921  ;
12922  return 0;
12923}
12924_ACEOF
12925if ac_fn_cxx_try_compile "$LINENO"; then :
12926  ac_cv_prog_cxx_g=yes
12927fi
12928rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12929fi
12930rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12931fi
12932rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12933   ac_cxx_werror_flag=$ac_save_cxx_werror_flag
12934fi
12935{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
12936$as_echo "$ac_cv_prog_cxx_g" >&6; }
12937if test "$ac_test_CXXFLAGS" = set; then
12938  CXXFLAGS=$ac_save_CXXFLAGS
12939elif test $ac_cv_prog_cxx_g = yes; then
12940  if test "$GXX" = yes; then
12941    CXXFLAGS="-g -O2"
12942  else
12943    CXXFLAGS="-g"
12944  fi
12945else
12946  if test "$GXX" = yes; then
12947    CXXFLAGS="-O2"
12948  else
12949    CXXFLAGS=
12950  fi
12951fi
12952ac_ext=cpp
12953ac_cpp='$CXXCPP $CPPFLAGS'
12954ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12955ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12956ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12957
12958depcc="$CXX"  am_compiler_list=
12959
12960{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
12961$as_echo_n "checking dependency style of $depcc... " >&6; }
12962if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
12963  $as_echo_n "(cached) " >&6
12964else
12965  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
12966  # We make a subdir and do the tests there.  Otherwise we can end up
12967  # making bogus files that we don't know about and never remove.  For
12968  # instance it was reported that on HP-UX the gcc test will end up
12969  # making a dummy file named 'D' -- because '-MD' means "put the output
12970  # in D".
12971  rm -rf conftest.dir
12972  mkdir conftest.dir
12973  # Copy depcomp to subdir because otherwise we won't find it if we're
12974  # using a relative directory.
12975  cp "$am_depcomp" conftest.dir
12976  cd conftest.dir
12977  # We will build objects and dependencies in a subdirectory because
12978  # it helps to detect inapplicable dependency modes.  For instance
12979  # both Tru64's cc and ICC support -MD to output dependencies as a
12980  # side effect of compilation, but ICC will put the dependencies in
12981  # the current directory while Tru64 will put them in the object
12982  # directory.
12983  mkdir sub
12984
12985  am_cv_CXX_dependencies_compiler_type=none
12986  if test "$am_compiler_list" = ""; then
12987     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
12988  fi
12989  am__universal=false
12990  case " $depcc " in #(
12991     *\ -arch\ *\ -arch\ *) am__universal=true ;;
12992     esac
12993
12994  for depmode in $am_compiler_list; do
12995    # Setup a source with many dependencies, because some compilers
12996    # like to wrap large dependency lists on column 80 (with \), and
12997    # we should not choose a depcomp mode which is confused by this.
12998    #
12999    # We need to recreate these files for each test, as the compiler may
13000    # overwrite some of them when testing with obscure command lines.
13001    # This happens at least with the AIX C compiler.
13002    : > sub/conftest.c
13003    for i in 1 2 3 4 5 6; do
13004      echo '#include "conftst'$i'.h"' >> sub/conftest.c
13005      # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
13006      # Solaris 10 /bin/sh.
13007      echo '/* dummy */' > sub/conftst$i.h
13008    done
13009    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
13010
13011    # We check with '-c' and '-o' for the sake of the "dashmstdout"
13012    # mode.  It turns out that the SunPro C++ compiler does not properly
13013    # handle '-M -o', and we need to detect this.  Also, some Intel
13014    # versions had trouble with output in subdirs.
13015    am__obj=sub/conftest.${OBJEXT-o}
13016    am__minus_obj="-o $am__obj"
13017    case $depmode in
13018    gcc)
13019      # This depmode causes a compiler race in universal mode.
13020      test "$am__universal" = false || continue
13021      ;;
13022    nosideeffect)
13023      # After this tag, mechanisms are not by side-effect, so they'll
13024      # only be used when explicitly requested.
13025      if test "x$enable_dependency_tracking" = xyes; then
13026	continue
13027      else
13028	break
13029      fi
13030      ;;
13031    msvc7 | msvc7msys | msvisualcpp | msvcmsys)
13032      # This compiler won't grok '-c -o', but also, the minuso test has
13033      # not run yet.  These depmodes are late enough in the game, and
13034      # so weak that their functioning should not be impacted.
13035      am__obj=conftest.${OBJEXT-o}
13036      am__minus_obj=
13037      ;;
13038    none) break ;;
13039    esac
13040    if depmode=$depmode \
13041       source=sub/conftest.c object=$am__obj \
13042       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
13043       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
13044         >/dev/null 2>conftest.err &&
13045       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
13046       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
13047       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
13048       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
13049      # icc doesn't choke on unknown options, it will just issue warnings
13050      # or remarks (even with -Werror).  So we grep stderr for any message
13051      # that says an option was ignored or not supported.
13052      # When given -MP, icc 7.0 and 7.1 complain thusly:
13053      #   icc: Command line warning: ignoring option '-M'; no argument required
13054      # The diagnosis changed in icc 8.0:
13055      #   icc: Command line remark: option '-MP' not supported
13056      if (grep 'ignoring option' conftest.err ||
13057          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
13058        am_cv_CXX_dependencies_compiler_type=$depmode
13059        break
13060      fi
13061    fi
13062  done
13063
13064  cd ..
13065  rm -rf conftest.dir
13066else
13067  am_cv_CXX_dependencies_compiler_type=none
13068fi
13069
13070fi
13071{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
13072$as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
13073CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
13074
13075 if
13076  test "x$enable_dependency_tracking" != xno \
13077  && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
13078  am__fastdepCXX_TRUE=
13079  am__fastdepCXX_FALSE='#'
13080else
13081  am__fastdepCXX_TRUE='#'
13082  am__fastdepCXX_FALSE=
13083fi
13084
13085
13086
13087
13088func_stripname_cnf ()
13089{
13090  case $2 in
13091  .*) func_stripname_result=`$ECHO "$3" | $SED "s%^$1%%; s%\\\\$2\$%%"`;;
13092  *)  func_stripname_result=`$ECHO "$3" | $SED "s%^$1%%; s%$2\$%%"`;;
13093  esac
13094} # func_stripname_cnf
13095
13096      if test -n "$CXX" && ( test no != "$CXX" &&
13097    ( (test g++ = "$CXX" && `g++ -v >/dev/null 2>&1` ) ||
13098    (test g++ != "$CXX"))); then
13099  ac_ext=cpp
13100ac_cpp='$CXXCPP $CPPFLAGS'
13101ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13102ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13103ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13104{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
13105$as_echo_n "checking how to run the C++ preprocessor... " >&6; }
13106if test -z "$CXXCPP"; then
13107  if ${ac_cv_prog_CXXCPP+:} false; then :
13108  $as_echo_n "(cached) " >&6
13109else
13110      # Double quotes because CXXCPP needs to be expanded
13111    for CXXCPP in "$CXX -E" "/lib/cpp"
13112    do
13113      ac_preproc_ok=false
13114for ac_cxx_preproc_warn_flag in '' yes
13115do
13116  # Use a header file that comes with gcc, so configuring glibc
13117  # with a fresh cross-compiler works.
13118  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13119  # <limits.h> exists even on freestanding compilers.
13120  # On the NeXT, cc -E runs the code through the compiler's parser,
13121  # not just through cpp. "Syntax error" is here to catch this case.
13122  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13123/* end confdefs.h.  */
13124#ifdef __STDC__
13125# include <limits.h>
13126#else
13127# include <assert.h>
13128#endif
13129		     Syntax error
13130_ACEOF
13131if ac_fn_cxx_try_cpp "$LINENO"; then :
13132
13133else
13134  # Broken: fails on valid input.
13135continue
13136fi
13137rm -f conftest.err conftest.i conftest.$ac_ext
13138
13139  # OK, works on sane cases.  Now check whether nonexistent headers
13140  # can be detected and how.
13141  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13142/* end confdefs.h.  */
13143#include <ac_nonexistent.h>
13144_ACEOF
13145if ac_fn_cxx_try_cpp "$LINENO"; then :
13146  # Broken: success on invalid input.
13147continue
13148else
13149  # Passes both tests.
13150ac_preproc_ok=:
13151break
13152fi
13153rm -f conftest.err conftest.i conftest.$ac_ext
13154
13155done
13156# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
13157rm -f conftest.i conftest.err conftest.$ac_ext
13158if $ac_preproc_ok; then :
13159  break
13160fi
13161
13162    done
13163    ac_cv_prog_CXXCPP=$CXXCPP
13164
13165fi
13166  CXXCPP=$ac_cv_prog_CXXCPP
13167else
13168  ac_cv_prog_CXXCPP=$CXXCPP
13169fi
13170{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
13171$as_echo "$CXXCPP" >&6; }
13172ac_preproc_ok=false
13173for ac_cxx_preproc_warn_flag in '' yes
13174do
13175  # Use a header file that comes with gcc, so configuring glibc
13176  # with a fresh cross-compiler works.
13177  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13178  # <limits.h> exists even on freestanding compilers.
13179  # On the NeXT, cc -E runs the code through the compiler's parser,
13180  # not just through cpp. "Syntax error" is here to catch this case.
13181  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13182/* end confdefs.h.  */
13183#ifdef __STDC__
13184# include <limits.h>
13185#else
13186# include <assert.h>
13187#endif
13188		     Syntax error
13189_ACEOF
13190if ac_fn_cxx_try_cpp "$LINENO"; then :
13191
13192else
13193  # Broken: fails on valid input.
13194continue
13195fi
13196rm -f conftest.err conftest.i conftest.$ac_ext
13197
13198  # OK, works on sane cases.  Now check whether nonexistent headers
13199  # can be detected and how.
13200  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13201/* end confdefs.h.  */
13202#include <ac_nonexistent.h>
13203_ACEOF
13204if ac_fn_cxx_try_cpp "$LINENO"; then :
13205  # Broken: success on invalid input.
13206continue
13207else
13208  # Passes both tests.
13209ac_preproc_ok=:
13210break
13211fi
13212rm -f conftest.err conftest.i conftest.$ac_ext
13213
13214done
13215# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
13216rm -f conftest.i conftest.err conftest.$ac_ext
13217if $ac_preproc_ok; then :
13218
13219else
13220  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13221$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13222as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
13223See \`config.log' for more details" "$LINENO" 5; }
13224fi
13225
13226ac_ext=cpp
13227ac_cpp='$CXXCPP $CPPFLAGS'
13228ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13229ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13230ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13231
13232else
13233  _lt_caught_CXX_error=yes
13234fi
13235
13236ac_ext=cpp
13237ac_cpp='$CXXCPP $CPPFLAGS'
13238ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13239ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13240ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13241
13242archive_cmds_need_lc_CXX=no
13243allow_undefined_flag_CXX=
13244always_export_symbols_CXX=no
13245archive_expsym_cmds_CXX=
13246compiler_needs_object_CXX=no
13247export_dynamic_flag_spec_CXX=
13248hardcode_direct_CXX=no
13249hardcode_direct_absolute_CXX=no
13250hardcode_libdir_flag_spec_CXX=
13251hardcode_libdir_separator_CXX=
13252hardcode_minus_L_CXX=no
13253hardcode_shlibpath_var_CXX=unsupported
13254hardcode_automatic_CXX=no
13255inherit_rpath_CXX=no
13256module_cmds_CXX=
13257module_expsym_cmds_CXX=
13258link_all_deplibs_CXX=unknown
13259old_archive_cmds_CXX=$old_archive_cmds
13260reload_flag_CXX=$reload_flag
13261reload_cmds_CXX=$reload_cmds
13262no_undefined_flag_CXX=
13263whole_archive_flag_spec_CXX=
13264enable_shared_with_static_runtimes_CXX=no
13265
13266# Source file extension for C++ test sources.
13267ac_ext=cpp
13268
13269# Object file extension for compiled C++ test sources.
13270objext=o
13271objext_CXX=$objext
13272
13273# No sense in running all these tests if we already determined that
13274# the CXX compiler isn't working.  Some variables (like enable_shared)
13275# are currently assumed to apply to all compilers on this platform,
13276# and will be corrupted by setting them based on a non-working compiler.
13277if test yes != "$_lt_caught_CXX_error"; then
13278  # Code to be used in simple compile tests
13279  lt_simple_compile_test_code="int some_variable = 0;"
13280
13281  # Code to be used in simple link tests
13282  lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
13283
13284  # ltmain only uses $CC for tagged configurations so make sure $CC is set.
13285
13286
13287
13288
13289
13290
13291# If no C compiler was specified, use CC.
13292LTCC=${LTCC-"$CC"}
13293
13294# If no C compiler flags were specified, use CFLAGS.
13295LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
13296
13297# Allow CC to be a program name with arguments.
13298compiler=$CC
13299
13300
13301  # save warnings/boilerplate of simple test code
13302  ac_outfile=conftest.$ac_objext
13303echo "$lt_simple_compile_test_code" >conftest.$ac_ext
13304eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13305_lt_compiler_boilerplate=`cat conftest.err`
13306$RM conftest*
13307
13308  ac_outfile=conftest.$ac_objext
13309echo "$lt_simple_link_test_code" >conftest.$ac_ext
13310eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13311_lt_linker_boilerplate=`cat conftest.err`
13312$RM -r conftest*
13313
13314
13315  # Allow CC to be a program name with arguments.
13316  lt_save_CC=$CC
13317  lt_save_CFLAGS=$CFLAGS
13318  lt_save_LD=$LD
13319  lt_save_GCC=$GCC
13320  GCC=$GXX
13321  lt_save_with_gnu_ld=$with_gnu_ld
13322  lt_save_path_LD=$lt_cv_path_LD
13323  if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
13324    lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
13325  else
13326    $as_unset lt_cv_prog_gnu_ld
13327  fi
13328  if test -n "${lt_cv_path_LDCXX+set}"; then
13329    lt_cv_path_LD=$lt_cv_path_LDCXX
13330  else
13331    $as_unset lt_cv_path_LD
13332  fi
13333  test -z "${LDCXX+set}" || LD=$LDCXX
13334  CC=${CXX-"c++"}
13335  CFLAGS=$CXXFLAGS
13336  compiler=$CC
13337  compiler_CXX=$CC
13338  for cc_temp in $compiler""; do
13339  case $cc_temp in
13340    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
13341    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
13342    \-*) ;;
13343    *) break;;
13344  esac
13345done
13346cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
13347
13348
13349  if test -n "$compiler"; then
13350    # We don't want -fno-exception when compiling C++ code, so set the
13351    # no_builtin_flag separately
13352    if test yes = "$GXX"; then
13353      lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
13354    else
13355      lt_prog_compiler_no_builtin_flag_CXX=
13356    fi
13357
13358    if test yes = "$GXX"; then
13359      # Set up default GNU C++ configuration
13360
13361
13362
13363# Check whether --with-gnu-ld was given.
13364if test "${with_gnu_ld+set}" = set; then :
13365  withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
13366else
13367  with_gnu_ld=no
13368fi
13369
13370ac_prog=ld
13371if test yes = "$GCC"; then
13372  # Check if gcc -print-prog-name=ld gives a path.
13373  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
13374$as_echo_n "checking for ld used by $CC... " >&6; }
13375  case $host in
13376  *-*-mingw*)
13377    # gcc leaves a trailing carriage return, which upsets mingw
13378    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
13379  *)
13380    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
13381  esac
13382  case $ac_prog in
13383    # Accept absolute paths.
13384    [\\/]* | ?:[\\/]*)
13385      re_direlt='/[^/][^/]*/\.\./'
13386      # Canonicalize the pathname of ld
13387      ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
13388      while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
13389	ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
13390      done
13391      test -z "$LD" && LD=$ac_prog
13392      ;;
13393  "")
13394    # If it fails, then pretend we aren't using GCC.
13395    ac_prog=ld
13396    ;;
13397  *)
13398    # If it is relative, then search for the first ld in PATH.
13399    with_gnu_ld=unknown
13400    ;;
13401  esac
13402elif test yes = "$with_gnu_ld"; then
13403  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
13404$as_echo_n "checking for GNU ld... " >&6; }
13405else
13406  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
13407$as_echo_n "checking for non-GNU ld... " >&6; }
13408fi
13409if ${lt_cv_path_LD+:} false; then :
13410  $as_echo_n "(cached) " >&6
13411else
13412  if test -z "$LD"; then
13413  lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
13414  for ac_dir in $PATH; do
13415    IFS=$lt_save_ifs
13416    test -z "$ac_dir" && ac_dir=.
13417    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
13418      lt_cv_path_LD=$ac_dir/$ac_prog
13419      # Check to see if the program is GNU ld.  I'd rather use --version,
13420      # but apparently some variants of GNU ld only accept -v.
13421      # Break only if it was the GNU/non-GNU ld that we prefer.
13422      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
13423      *GNU* | *'with BFD'*)
13424	test no != "$with_gnu_ld" && break
13425	;;
13426      *)
13427	test yes != "$with_gnu_ld" && break
13428	;;
13429      esac
13430    fi
13431  done
13432  IFS=$lt_save_ifs
13433else
13434  lt_cv_path_LD=$LD # Let the user override the test with a path.
13435fi
13436fi
13437
13438LD=$lt_cv_path_LD
13439if test -n "$LD"; then
13440  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
13441$as_echo "$LD" >&6; }
13442else
13443  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13444$as_echo "no" >&6; }
13445fi
13446test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
13447{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
13448$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
13449if ${lt_cv_prog_gnu_ld+:} false; then :
13450  $as_echo_n "(cached) " >&6
13451else
13452  # I'd rather use --version here, but apparently some GNU lds only accept -v.
13453case `$LD -v 2>&1 </dev/null` in
13454*GNU* | *'with BFD'*)
13455  lt_cv_prog_gnu_ld=yes
13456  ;;
13457*)
13458  lt_cv_prog_gnu_ld=no
13459  ;;
13460esac
13461fi
13462{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
13463$as_echo "$lt_cv_prog_gnu_ld" >&6; }
13464with_gnu_ld=$lt_cv_prog_gnu_ld
13465
13466
13467
13468
13469
13470
13471
13472      # Check if GNU C++ uses GNU ld as the underlying linker, since the
13473      # archiving commands below assume that GNU ld is being used.
13474      if test yes = "$with_gnu_ld"; then
13475        archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
13476        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'
13477
13478        hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
13479        export_dynamic_flag_spec_CXX='$wl--export-dynamic'
13480
13481        # If archive_cmds runs LD, not CC, wlarc should be empty
13482        # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
13483        #     investigate it a little bit more. (MM)
13484        wlarc='$wl'
13485
13486        # ancient GNU ld didn't support --whole-archive et. al.
13487        if eval "`$CC -print-prog-name=ld` --help 2>&1" |
13488	  $GREP 'no-whole-archive' > /dev/null; then
13489          whole_archive_flag_spec_CXX=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
13490        else
13491          whole_archive_flag_spec_CXX=
13492        fi
13493      else
13494        with_gnu_ld=no
13495        wlarc=
13496
13497        # A generic and very simple default shared library creation
13498        # command for GNU C++ for the case where it uses the native
13499        # linker, instead of GNU ld.  If possible, this setting should
13500        # overridden to take advantage of the native linker features on
13501        # the platform it is being used on.
13502        archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
13503      fi
13504
13505      # Commands to make compiler produce verbose output that lists
13506      # what "hidden" libraries, object files and flags are used when
13507      # linking a shared library.
13508      output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13509
13510    else
13511      GXX=no
13512      with_gnu_ld=no
13513      wlarc=
13514    fi
13515
13516    # PORTME: fill in a description of your system's C++ link characteristics
13517    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13518$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
13519    ld_shlibs_CXX=yes
13520    case $host_os in
13521      aix3*)
13522        # FIXME: insert proper C++ library support
13523        ld_shlibs_CXX=no
13524        ;;
13525      aix[4-9]*)
13526        if test ia64 = "$host_cpu"; then
13527          # On IA64, the linker does run time linking by default, so we don't
13528          # have to do anything special.
13529          aix_use_runtimelinking=no
13530          exp_sym_flag='-Bexport'
13531          no_entry_flag=
13532        else
13533          aix_use_runtimelinking=no
13534
13535          # Test if we are trying to use run time linking or normal
13536          # AIX style linking. If -brtl is somewhere in LDFLAGS, we
13537          # need to do runtime linking.
13538          case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
13539	    for ld_flag in $LDFLAGS; do
13540	      case $ld_flag in
13541	      *-brtl*)
13542	        aix_use_runtimelinking=yes
13543	        break
13544	        ;;
13545	      esac
13546	    done
13547	    ;;
13548          esac
13549
13550          exp_sym_flag='-bexport'
13551          no_entry_flag='-bnoentry'
13552        fi
13553
13554        # When large executables or shared objects are built, AIX ld can
13555        # have problems creating the table of contents.  If linking a library
13556        # or program results in "error TOC overflow" add -mminimal-toc to
13557        # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
13558        # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
13559
13560        archive_cmds_CXX=''
13561        hardcode_direct_CXX=yes
13562        hardcode_direct_absolute_CXX=yes
13563        hardcode_libdir_separator_CXX=':'
13564        link_all_deplibs_CXX=yes
13565        file_list_spec_CXX='$wl-f,'
13566
13567        if test yes = "$GXX"; then
13568          case $host_os in aix4.[012]|aix4.[012].*)
13569          # We only want to do this on AIX 4.2 and lower, the check
13570          # below for broken collect2 doesn't work under 4.3+
13571	  collect2name=`$CC -print-prog-name=collect2`
13572	  if test -f "$collect2name" &&
13573	     strings "$collect2name" | $GREP resolve_lib_name >/dev/null
13574	  then
13575	    # We have reworked collect2
13576	    :
13577	  else
13578	    # We have old collect2
13579	    hardcode_direct_CXX=unsupported
13580	    # It fails to find uninstalled libraries when the uninstalled
13581	    # path is not listed in the libpath.  Setting hardcode_minus_L
13582	    # to unsupported forces relinking
13583	    hardcode_minus_L_CXX=yes
13584	    hardcode_libdir_flag_spec_CXX='-L$libdir'
13585	    hardcode_libdir_separator_CXX=
13586	  fi
13587          esac
13588          shared_flag='-shared'
13589	  if test yes = "$aix_use_runtimelinking"; then
13590	    shared_flag=$shared_flag' $wl-G'
13591	  fi
13592        else
13593          # not using gcc
13594          if test ia64 = "$host_cpu"; then
13595	  # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
13596	  # chokes on -Wl,-G. The following line is correct:
13597	  shared_flag='-G'
13598          else
13599	    if test yes = "$aix_use_runtimelinking"; then
13600	      shared_flag='$wl-G'
13601	    else
13602	      shared_flag='$wl-bM:SRE'
13603	    fi
13604          fi
13605        fi
13606
13607        export_dynamic_flag_spec_CXX='$wl-bexpall'
13608        # It seems that -bexpall does not export symbols beginning with
13609        # underscore (_), so it is better to generate a list of symbols to
13610	# export.
13611        always_export_symbols_CXX=yes
13612        if test yes = "$aix_use_runtimelinking"; then
13613          # Warning - without using the other runtime loading flags (-brtl),
13614          # -berok will link without error, but may produce a broken library.
13615          allow_undefined_flag_CXX='-berok'
13616          # Determine the default libpath from the value encoded in an empty
13617          # executable.
13618          if test set = "${lt_cv_aix_libpath+set}"; then
13619  aix_libpath=$lt_cv_aix_libpath
13620else
13621  if ${lt_cv_aix_libpath__CXX+:} false; then :
13622  $as_echo_n "(cached) " >&6
13623else
13624  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13625/* end confdefs.h.  */
13626
13627int
13628main ()
13629{
13630
13631  ;
13632  return 0;
13633}
13634_ACEOF
13635if ac_fn_cxx_try_link "$LINENO"; then :
13636
13637  lt_aix_libpath_sed='
13638      /Import File Strings/,/^$/ {
13639	  /^0/ {
13640	      s/^0  *\([^ ]*\) *$/\1/
13641	      p
13642	  }
13643      }'
13644  lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13645  # Check for a 64-bit object if we didn't find anything.
13646  if test -z "$lt_cv_aix_libpath__CXX"; then
13647    lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13648  fi
13649fi
13650rm -f core conftest.err conftest.$ac_objext \
13651    conftest$ac_exeext conftest.$ac_ext
13652  if test -z "$lt_cv_aix_libpath__CXX"; then
13653    lt_cv_aix_libpath__CXX=/usr/lib:/lib
13654  fi
13655
13656fi
13657
13658  aix_libpath=$lt_cv_aix_libpath__CXX
13659fi
13660
13661          hardcode_libdir_flag_spec_CXX='$wl-blibpath:$libdir:'"$aix_libpath"
13662
13663          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
13664        else
13665          if test ia64 = "$host_cpu"; then
13666	    hardcode_libdir_flag_spec_CXX='$wl-R $libdir:/usr/lib:/lib'
13667	    allow_undefined_flag_CXX="-z nodefs"
13668	    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"
13669          else
13670	    # Determine the default libpath from the value encoded in an
13671	    # empty executable.
13672	    if test set = "${lt_cv_aix_libpath+set}"; then
13673  aix_libpath=$lt_cv_aix_libpath
13674else
13675  if ${lt_cv_aix_libpath__CXX+:} false; then :
13676  $as_echo_n "(cached) " >&6
13677else
13678  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13679/* end confdefs.h.  */
13680
13681int
13682main ()
13683{
13684
13685  ;
13686  return 0;
13687}
13688_ACEOF
13689if ac_fn_cxx_try_link "$LINENO"; then :
13690
13691  lt_aix_libpath_sed='
13692      /Import File Strings/,/^$/ {
13693	  /^0/ {
13694	      s/^0  *\([^ ]*\) *$/\1/
13695	      p
13696	  }
13697      }'
13698  lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13699  # Check for a 64-bit object if we didn't find anything.
13700  if test -z "$lt_cv_aix_libpath__CXX"; then
13701    lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13702  fi
13703fi
13704rm -f core conftest.err conftest.$ac_objext \
13705    conftest$ac_exeext conftest.$ac_ext
13706  if test -z "$lt_cv_aix_libpath__CXX"; then
13707    lt_cv_aix_libpath__CXX=/usr/lib:/lib
13708  fi
13709
13710fi
13711
13712  aix_libpath=$lt_cv_aix_libpath__CXX
13713fi
13714
13715	    hardcode_libdir_flag_spec_CXX='$wl-blibpath:$libdir:'"$aix_libpath"
13716	    # Warning - without using the other run time loading flags,
13717	    # -berok will link without error, but may produce a broken library.
13718	    no_undefined_flag_CXX=' $wl-bernotok'
13719	    allow_undefined_flag_CXX=' $wl-berok'
13720	    if test yes = "$with_gnu_ld"; then
13721	      # We only use this code for GNU lds that support --whole-archive.
13722	      whole_archive_flag_spec_CXX='$wl--whole-archive$convenience $wl--no-whole-archive'
13723	    else
13724	      # Exported symbols can be pulled into shared objects from archives
13725	      whole_archive_flag_spec_CXX='$convenience'
13726	    fi
13727	    archive_cmds_need_lc_CXX=yes
13728	    # This is similar to how AIX traditionally builds its shared
13729	    # libraries.
13730	    archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $wl-bnoentry $compiler_flags $wl-bE:$export_symbols$allow_undefined_flag~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
13731          fi
13732        fi
13733        ;;
13734
13735      beos*)
13736	if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
13737	  allow_undefined_flag_CXX=unsupported
13738	  # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
13739	  # support --undefined.  This deserves some investigation.  FIXME
13740	  archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
13741	else
13742	  ld_shlibs_CXX=no
13743	fi
13744	;;
13745
13746      chorus*)
13747        case $cc_basename in
13748          *)
13749	  # FIXME: insert proper C++ library support
13750	  ld_shlibs_CXX=no
13751	  ;;
13752        esac
13753        ;;
13754
13755      cygwin* | mingw* | pw32* | cegcc*)
13756	case $GXX,$cc_basename in
13757	,cl* | no,cl*)
13758	  # Native MSVC
13759	  # hardcode_libdir_flag_spec is actually meaningless, as there is
13760	  # no search path for DLLs.
13761	  hardcode_libdir_flag_spec_CXX=' '
13762	  allow_undefined_flag_CXX=unsupported
13763	  always_export_symbols_CXX=yes
13764	  file_list_spec_CXX='@'
13765	  # Tell ltmain to make .lib files, not .a files.
13766	  libext=lib
13767	  # Tell ltmain to make .dll files, not .so files.
13768	  shrext_cmds=.dll
13769	  # FIXME: Setting linknames here is a bad hack.
13770	  archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
13771	  archive_expsym_cmds_CXX='if   test DEF = "`$SED -n     -e '\''s/^[	 ]*//'\''     -e '\''/^\(;.*\)*$/d'\''     -e '\''s/^\(EXPORTS\|LIBRARY\)\([	 ].*\)*$/DEF/p'\''     -e q     $export_symbols`" ; then
13772              cp "$export_symbols" "$output_objdir/$soname.def";
13773              echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
13774            else
13775              $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
13776            fi~
13777            $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
13778            linknames='
13779	  # The linker will not automatically build a static lib if we build a DLL.
13780	  # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true'
13781	  enable_shared_with_static_runtimes_CXX=yes
13782	  # Don't use ranlib
13783	  old_postinstall_cmds_CXX='chmod 644 $oldlib'
13784	  postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~
13785            lt_tool_outputfile="@TOOL_OUTPUT@"~
13786            case $lt_outputfile in
13787              *.exe|*.EXE) ;;
13788              *)
13789                lt_outputfile=$lt_outputfile.exe
13790                lt_tool_outputfile=$lt_tool_outputfile.exe
13791                ;;
13792            esac~
13793            func_to_tool_file "$lt_outputfile"~
13794            if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
13795              $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
13796              $RM "$lt_outputfile.manifest";
13797            fi'
13798	  ;;
13799	*)
13800	  # g++
13801	  # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
13802	  # as there is no search path for DLLs.
13803	  hardcode_libdir_flag_spec_CXX='-L$libdir'
13804	  export_dynamic_flag_spec_CXX='$wl--export-all-symbols'
13805	  allow_undefined_flag_CXX=unsupported
13806	  always_export_symbols_CXX=no
13807	  enable_shared_with_static_runtimes_CXX=yes
13808
13809	  if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
13810	    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'
13811	    # If the export-symbols file already is a .def file, use it as
13812	    # is; otherwise, prepend EXPORTS...
13813	    archive_expsym_cmds_CXX='if   test DEF = "`$SED -n     -e '\''s/^[	 ]*//'\''     -e '\''/^\(;.*\)*$/d'\''     -e '\''s/^\(EXPORTS\|LIBRARY\)\([	 ].*\)*$/DEF/p'\''     -e q     $export_symbols`" ; then
13814              cp $export_symbols $output_objdir/$soname.def;
13815            else
13816              echo EXPORTS > $output_objdir/$soname.def;
13817              cat $export_symbols >> $output_objdir/$soname.def;
13818            fi~
13819            $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'
13820	  else
13821	    ld_shlibs_CXX=no
13822	  fi
13823	  ;;
13824	esac
13825	;;
13826      darwin* | rhapsody*)
13827
13828
13829  archive_cmds_need_lc_CXX=no
13830  hardcode_direct_CXX=no
13831  hardcode_automatic_CXX=yes
13832  hardcode_shlibpath_var_CXX=unsupported
13833  if test yes = "$lt_cv_ld_force_load"; then
13834    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\"`'
13835
13836  else
13837    whole_archive_flag_spec_CXX=''
13838  fi
13839  link_all_deplibs_CXX=yes
13840  allow_undefined_flag_CXX=$_lt_dar_allow_undefined
13841  case $cc_basename in
13842     ifort*|nagfor*) _lt_dar_can_shared=yes ;;
13843     *) _lt_dar_can_shared=$GCC ;;
13844  esac
13845  if test yes = "$_lt_dar_can_shared"; then
13846    output_verbose_link_cmd=func_echo_all
13847    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"
13848    module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
13849    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"
13850    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"
13851       if test yes != "$lt_cv_apple_cc_single_mod"; then
13852      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"
13853      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"
13854    fi
13855
13856  else
13857  ld_shlibs_CXX=no
13858  fi
13859
13860	;;
13861
13862      dgux*)
13863        case $cc_basename in
13864          ec++*)
13865	    # FIXME: insert proper C++ library support
13866	    ld_shlibs_CXX=no
13867	    ;;
13868          ghcx*)
13869	    # Green Hills C++ Compiler
13870	    # FIXME: insert proper C++ library support
13871	    ld_shlibs_CXX=no
13872	    ;;
13873          *)
13874	    # FIXME: insert proper C++ library support
13875	    ld_shlibs_CXX=no
13876	    ;;
13877        esac
13878        ;;
13879
13880      freebsd2.*)
13881        # C++ shared libraries reported to be fairly broken before
13882	# switch to ELF
13883        ld_shlibs_CXX=no
13884        ;;
13885
13886      freebsd-elf*)
13887        archive_cmds_need_lc_CXX=no
13888        ;;
13889
13890      freebsd* | dragonfly*)
13891        # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
13892        # conventions
13893        ld_shlibs_CXX=yes
13894        ;;
13895
13896      haiku*)
13897        archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
13898        link_all_deplibs_CXX=yes
13899        ;;
13900
13901      hpux9*)
13902        hardcode_libdir_flag_spec_CXX='$wl+b $wl$libdir'
13903        hardcode_libdir_separator_CXX=:
13904        export_dynamic_flag_spec_CXX='$wl-E'
13905        hardcode_direct_CXX=yes
13906        hardcode_minus_L_CXX=yes # Not in the search PATH,
13907				             # but as the default
13908				             # location of the library.
13909
13910        case $cc_basename in
13911          CC*)
13912            # FIXME: insert proper C++ library support
13913            ld_shlibs_CXX=no
13914            ;;
13915          aCC*)
13916            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'
13917            # Commands to make compiler produce verbose output that lists
13918            # what "hidden" libraries, object files and flags are used when
13919            # linking a shared library.
13920            #
13921            # There doesn't appear to be a way to prevent this compiler from
13922            # explicitly linking system object files so we need to strip them
13923            # from the output so that they don't get included in the library
13924            # dependencies.
13925            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"'
13926            ;;
13927          *)
13928            if test yes = "$GXX"; then
13929              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'
13930            else
13931              # FIXME: insert proper C++ library support
13932              ld_shlibs_CXX=no
13933            fi
13934            ;;
13935        esac
13936        ;;
13937
13938      hpux10*|hpux11*)
13939        if test no = "$with_gnu_ld"; then
13940	  hardcode_libdir_flag_spec_CXX='$wl+b $wl$libdir'
13941	  hardcode_libdir_separator_CXX=:
13942
13943          case $host_cpu in
13944            hppa*64*|ia64*)
13945              ;;
13946            *)
13947	      export_dynamic_flag_spec_CXX='$wl-E'
13948              ;;
13949          esac
13950        fi
13951        case $host_cpu in
13952          hppa*64*|ia64*)
13953            hardcode_direct_CXX=no
13954            hardcode_shlibpath_var_CXX=no
13955            ;;
13956          *)
13957            hardcode_direct_CXX=yes
13958            hardcode_direct_absolute_CXX=yes
13959            hardcode_minus_L_CXX=yes # Not in the search PATH,
13960					         # but as the default
13961					         # location of the library.
13962            ;;
13963        esac
13964
13965        case $cc_basename in
13966          CC*)
13967	    # FIXME: insert proper C++ library support
13968	    ld_shlibs_CXX=no
13969	    ;;
13970          aCC*)
13971	    case $host_cpu in
13972	      hppa*64*)
13973	        archive_cmds_CXX='$CC -b $wl+h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13974	        ;;
13975	      ia64*)
13976	        archive_cmds_CXX='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13977	        ;;
13978	      *)
13979	        archive_cmds_CXX='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13980	        ;;
13981	    esac
13982	    # Commands to make compiler produce verbose output that lists
13983	    # what "hidden" libraries, object files and flags are used when
13984	    # linking a shared library.
13985	    #
13986	    # There doesn't appear to be a way to prevent this compiler from
13987	    # explicitly linking system object files so we need to strip them
13988	    # from the output so that they don't get included in the library
13989	    # dependencies.
13990	    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"'
13991	    ;;
13992          *)
13993	    if test yes = "$GXX"; then
13994	      if test no = "$with_gnu_ld"; then
13995	        case $host_cpu in
13996	          hppa*64*)
13997	            archive_cmds_CXX='$CC -shared -nostdlib -fPIC $wl+h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13998	            ;;
13999	          ia64*)
14000	            archive_cmds_CXX='$CC -shared -nostdlib $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14001	            ;;
14002	          *)
14003	            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'
14004	            ;;
14005	        esac
14006	      fi
14007	    else
14008	      # FIXME: insert proper C++ library support
14009	      ld_shlibs_CXX=no
14010	    fi
14011	    ;;
14012        esac
14013        ;;
14014
14015      interix[3-9]*)
14016	hardcode_direct_CXX=no
14017	hardcode_shlibpath_var_CXX=no
14018	hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
14019	export_dynamic_flag_spec_CXX='$wl-E'
14020	# Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
14021	# Instead, shared libraries are loaded at an image base (0x10000000 by
14022	# default) and relocated if they conflict, which is a slow very memory
14023	# consuming and fragmenting process.  To avoid this, we pick a random,
14024	# 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
14025	# time.  Moving up from 0x10000000 also allows more sbrk(2) space.
14026	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'
14027	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'
14028	;;
14029      irix5* | irix6*)
14030        case $cc_basename in
14031          CC*)
14032	    # SGI C++
14033	    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'
14034
14035	    # Archives containing C++ object files must be created using
14036	    # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
14037	    # necessary to make sure instantiated templates are included
14038	    # in the archive.
14039	    old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
14040	    ;;
14041          *)
14042	    if test yes = "$GXX"; then
14043	      if test no = "$with_gnu_ld"; then
14044	        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'
14045	      else
14046	        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'
14047	      fi
14048	    fi
14049	    link_all_deplibs_CXX=yes
14050	    ;;
14051        esac
14052        hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
14053        hardcode_libdir_separator_CXX=:
14054        inherit_rpath_CXX=yes
14055        ;;
14056
14057      linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
14058        case $cc_basename in
14059          KCC*)
14060	    # Kuck and Associates, Inc. (KAI) C++ Compiler
14061
14062	    # KCC will only create a shared library if the output file
14063	    # ends with ".so" (or ".sl" for HP-UX), so rename the library
14064	    # to its proper name (with version) after linking.
14065	    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'
14066	    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'
14067	    # Commands to make compiler produce verbose output that lists
14068	    # what "hidden" libraries, object files and flags are used when
14069	    # linking a shared library.
14070	    #
14071	    # There doesn't appear to be a way to prevent this compiler from
14072	    # explicitly linking system object files so we need to strip them
14073	    # from the output so that they don't get included in the library
14074	    # dependencies.
14075	    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"'
14076
14077	    hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
14078	    export_dynamic_flag_spec_CXX='$wl--export-dynamic'
14079
14080	    # Archives containing C++ object files must be created using
14081	    # "CC -Bstatic", where "CC" is the KAI C++ compiler.
14082	    old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
14083	    ;;
14084	  icpc* | ecpc* )
14085	    # Intel C++
14086	    with_gnu_ld=yes
14087	    # version 8.0 and above of icpc choke on multiply defined symbols
14088	    # if we add $predep_objects and $postdep_objects, however 7.1 and
14089	    # earlier do not add the objects themselves.
14090	    case `$CC -V 2>&1` in
14091	      *"Version 7."*)
14092	        archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
14093		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'
14094		;;
14095	      *)  # Version 8.0 or newer
14096	        tmp_idyn=
14097	        case $host_cpu in
14098		  ia64*) tmp_idyn=' -i_dynamic';;
14099		esac
14100	        archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
14101		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'
14102		;;
14103	    esac
14104	    archive_cmds_need_lc_CXX=no
14105	    hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
14106	    export_dynamic_flag_spec_CXX='$wl--export-dynamic'
14107	    whole_archive_flag_spec_CXX='$wl--whole-archive$convenience $wl--no-whole-archive'
14108	    ;;
14109          pgCC* | pgcpp*)
14110            # Portland Group C++ compiler
14111	    case `$CC -V` in
14112	    *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
14113	      prelink_cmds_CXX='tpldir=Template.dir~
14114               rm -rf $tpldir~
14115               $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
14116               compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
14117	      old_archive_cmds_CXX='tpldir=Template.dir~
14118                rm -rf $tpldir~
14119                $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
14120                $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
14121                $RANLIB $oldlib'
14122	      archive_cmds_CXX='tpldir=Template.dir~
14123                rm -rf $tpldir~
14124                $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
14125                $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
14126	      archive_expsym_cmds_CXX='tpldir=Template.dir~
14127                rm -rf $tpldir~
14128                $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
14129                $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'
14130	      ;;
14131	    *) # Version 6 and above use weak symbols
14132	      archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
14133	      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'
14134	      ;;
14135	    esac
14136
14137	    hardcode_libdir_flag_spec_CXX='$wl--rpath $wl$libdir'
14138	    export_dynamic_flag_spec_CXX='$wl--export-dynamic'
14139	    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'
14140            ;;
14141	  cxx*)
14142	    # Compaq C++
14143	    archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
14144	    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'
14145
14146	    runpath_var=LD_RUN_PATH
14147	    hardcode_libdir_flag_spec_CXX='-rpath $libdir'
14148	    hardcode_libdir_separator_CXX=:
14149
14150	    # Commands to make compiler produce verbose output that lists
14151	    # what "hidden" libraries, object files and flags are used when
14152	    # linking a shared library.
14153	    #
14154	    # There doesn't appear to be a way to prevent this compiler from
14155	    # explicitly linking system object files so we need to strip them
14156	    # from the output so that they don't get included in the library
14157	    # dependencies.
14158	    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'
14159	    ;;
14160	  xl* | mpixl* | bgxl*)
14161	    # IBM XL 8.0 on PPC, with GNU ld
14162	    hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
14163	    export_dynamic_flag_spec_CXX='$wl--export-dynamic'
14164	    archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
14165	    if test yes = "$supports_anon_versioning"; then
14166	      archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
14167                cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14168                echo "local: *; };" >> $output_objdir/$libname.ver~
14169                $CC -qmkshrobj $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
14170	    fi
14171	    ;;
14172	  *)
14173	    case `$CC -V 2>&1 | sed 5q` in
14174	    *Sun\ C*)
14175	      # Sun C++ 5.9
14176	      no_undefined_flag_CXX=' -zdefs'
14177	      archive_cmds_CXX='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14178	      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'
14179	      hardcode_libdir_flag_spec_CXX='-R$libdir'
14180	      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'
14181	      compiler_needs_object_CXX=yes
14182
14183	      # Not sure whether something based on
14184	      # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
14185	      # would be better.
14186	      output_verbose_link_cmd='func_echo_all'
14187
14188	      # Archives containing C++ object files must be created using
14189	      # "CC -xar", where "CC" is the Sun C++ compiler.  This is
14190	      # necessary to make sure instantiated templates are included
14191	      # in the archive.
14192	      old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
14193	      ;;
14194	    esac
14195	    ;;
14196	esac
14197	;;
14198
14199      lynxos*)
14200        # FIXME: insert proper C++ library support
14201	ld_shlibs_CXX=no
14202	;;
14203
14204      m88k*)
14205        # FIXME: insert proper C++ library support
14206        ld_shlibs_CXX=no
14207	;;
14208
14209      mvs*)
14210        case $cc_basename in
14211          cxx*)
14212	    # FIXME: insert proper C++ library support
14213	    ld_shlibs_CXX=no
14214	    ;;
14215	  *)
14216	    # FIXME: insert proper C++ library support
14217	    ld_shlibs_CXX=no
14218	    ;;
14219	esac
14220	;;
14221
14222      netbsd*)
14223        if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
14224	  archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
14225	  wlarc=
14226	  hardcode_libdir_flag_spec_CXX='-R$libdir'
14227	  hardcode_direct_CXX=yes
14228	  hardcode_shlibpath_var_CXX=no
14229	fi
14230	# Workaround some broken pre-1.5 toolchains
14231	output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
14232	;;
14233
14234      *nto* | *qnx*)
14235        ld_shlibs_CXX=yes
14236	;;
14237
14238      openbsd* | bitrig*)
14239	if test -f /usr/libexec/ld.so; then
14240	  hardcode_direct_CXX=yes
14241	  hardcode_shlibpath_var_CXX=no
14242	  hardcode_direct_absolute_CXX=yes
14243	  archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
14244	  hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
14245	  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`"; then
14246	    archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-retain-symbols-file,$export_symbols -o $lib'
14247	    export_dynamic_flag_spec_CXX='$wl-E'
14248	    whole_archive_flag_spec_CXX=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
14249	  fi
14250	  output_verbose_link_cmd=func_echo_all
14251	else
14252	  ld_shlibs_CXX=no
14253	fi
14254	;;
14255
14256      osf3* | osf4* | osf5*)
14257        case $cc_basename in
14258          KCC*)
14259	    # Kuck and Associates, Inc. (KAI) C++ Compiler
14260
14261	    # KCC will only create a shared library if the output file
14262	    # ends with ".so" (or ".sl" for HP-UX), so rename the library
14263	    # to its proper name (with version) after linking.
14264	    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'
14265
14266	    hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
14267	    hardcode_libdir_separator_CXX=:
14268
14269	    # Archives containing C++ object files must be created using
14270	    # the KAI C++ compiler.
14271	    case $host in
14272	      osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
14273	      *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
14274	    esac
14275	    ;;
14276          RCC*)
14277	    # Rational C++ 2.4.1
14278	    # FIXME: insert proper C++ library support
14279	    ld_shlibs_CXX=no
14280	    ;;
14281          cxx*)
14282	    case $host in
14283	      osf3*)
14284	        allow_undefined_flag_CXX=' $wl-expect_unresolved $wl\*'
14285	        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'
14286	        hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
14287		;;
14288	      *)
14289	        allow_undefined_flag_CXX=' -expect_unresolved \*'
14290	        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'
14291	        archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
14292                  echo "-hidden">> $lib.exp~
14293                  $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~
14294                  $RM $lib.exp'
14295	        hardcode_libdir_flag_spec_CXX='-rpath $libdir'
14296		;;
14297	    esac
14298
14299	    hardcode_libdir_separator_CXX=:
14300
14301	    # Commands to make compiler produce verbose output that lists
14302	    # what "hidden" libraries, object files and flags are used when
14303	    # linking a shared library.
14304	    #
14305	    # There doesn't appear to be a way to prevent this compiler from
14306	    # explicitly linking system object files so we need to strip them
14307	    # from the output so that they don't get included in the library
14308	    # dependencies.
14309	    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"'
14310	    ;;
14311	  *)
14312	    if test yes,no = "$GXX,$with_gnu_ld"; then
14313	      allow_undefined_flag_CXX=' $wl-expect_unresolved $wl\*'
14314	      case $host in
14315	        osf3*)
14316	          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'
14317		  ;;
14318	        *)
14319	          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'
14320		  ;;
14321	      esac
14322
14323	      hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
14324	      hardcode_libdir_separator_CXX=:
14325
14326	      # Commands to make compiler produce verbose output that lists
14327	      # what "hidden" libraries, object files and flags are used when
14328	      # linking a shared library.
14329	      output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
14330
14331	    else
14332	      # FIXME: insert proper C++ library support
14333	      ld_shlibs_CXX=no
14334	    fi
14335	    ;;
14336        esac
14337        ;;
14338
14339      psos*)
14340        # FIXME: insert proper C++ library support
14341        ld_shlibs_CXX=no
14342        ;;
14343
14344      sunos4*)
14345        case $cc_basename in
14346          CC*)
14347	    # Sun C++ 4.x
14348	    # FIXME: insert proper C++ library support
14349	    ld_shlibs_CXX=no
14350	    ;;
14351          lcc*)
14352	    # Lucid
14353	    # FIXME: insert proper C++ library support
14354	    ld_shlibs_CXX=no
14355	    ;;
14356          *)
14357	    # FIXME: insert proper C++ library support
14358	    ld_shlibs_CXX=no
14359	    ;;
14360        esac
14361        ;;
14362
14363      solaris*)
14364        case $cc_basename in
14365          CC* | sunCC*)
14366	    # Sun C++ 4.2, 5.x and Centerline C++
14367            archive_cmds_need_lc_CXX=yes
14368	    no_undefined_flag_CXX=' -zdefs'
14369	    archive_cmds_CXX='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14370	    archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14371              $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'
14372
14373	    hardcode_libdir_flag_spec_CXX='-R$libdir'
14374	    hardcode_shlibpath_var_CXX=no
14375	    case $host_os in
14376	      solaris2.[0-5] | solaris2.[0-5].*) ;;
14377	      *)
14378		# The compiler driver will combine and reorder linker options,
14379		# but understands '-z linker_flag'.
14380	        # Supported since Solaris 2.6 (maybe 2.5.1?)
14381		whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
14382	        ;;
14383	    esac
14384	    link_all_deplibs_CXX=yes
14385
14386	    output_verbose_link_cmd='func_echo_all'
14387
14388	    # Archives containing C++ object files must be created using
14389	    # "CC -xar", where "CC" is the Sun C++ compiler.  This is
14390	    # necessary to make sure instantiated templates are included
14391	    # in the archive.
14392	    old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
14393	    ;;
14394          gcx*)
14395	    # Green Hills C++ Compiler
14396	    archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
14397
14398	    # The C++ compiler must be used to create the archive.
14399	    old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
14400	    ;;
14401          *)
14402	    # GNU C++ compiler with Solaris linker
14403	    if test yes,no = "$GXX,$with_gnu_ld"; then
14404	      no_undefined_flag_CXX=' $wl-z ${wl}defs'
14405	      if $CC --version | $GREP -v '^2\.7' > /dev/null; then
14406	        archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
14407	        archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14408                  $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'
14409
14410	        # Commands to make compiler produce verbose output that lists
14411	        # what "hidden" libraries, object files and flags are used when
14412	        # linking a shared library.
14413	        output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
14414	      else
14415	        # g++ 2.7 appears to require '-G' NOT '-shared' on this
14416	        # platform.
14417	        archive_cmds_CXX='$CC -G -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
14418	        archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14419                  $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'
14420
14421	        # Commands to make compiler produce verbose output that lists
14422	        # what "hidden" libraries, object files and flags are used when
14423	        # linking a shared library.
14424	        output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
14425	      fi
14426
14427	      hardcode_libdir_flag_spec_CXX='$wl-R $wl$libdir'
14428	      case $host_os in
14429		solaris2.[0-5] | solaris2.[0-5].*) ;;
14430		*)
14431		  whole_archive_flag_spec_CXX='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
14432		  ;;
14433	      esac
14434	    fi
14435	    ;;
14436        esac
14437        ;;
14438
14439    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
14440      no_undefined_flag_CXX='$wl-z,text'
14441      archive_cmds_need_lc_CXX=no
14442      hardcode_shlibpath_var_CXX=no
14443      runpath_var='LD_RUN_PATH'
14444
14445      case $cc_basename in
14446        CC*)
14447	  archive_cmds_CXX='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14448	  archive_expsym_cmds_CXX='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14449	  ;;
14450	*)
14451	  archive_cmds_CXX='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14452	  archive_expsym_cmds_CXX='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14453	  ;;
14454      esac
14455      ;;
14456
14457      sysv5* | sco3.2v5* | sco5v6*)
14458	# Note: We CANNOT use -z defs as we might desire, because we do not
14459	# link with -lc, and that would cause any symbols used from libc to
14460	# always be unresolved, which means just about no library would
14461	# ever link correctly.  If we're not using GNU ld we use -z text
14462	# though, which does catch some bad symbols but isn't as heavy-handed
14463	# as -z defs.
14464	no_undefined_flag_CXX='$wl-z,text'
14465	allow_undefined_flag_CXX='$wl-z,nodefs'
14466	archive_cmds_need_lc_CXX=no
14467	hardcode_shlibpath_var_CXX=no
14468	hardcode_libdir_flag_spec_CXX='$wl-R,$libdir'
14469	hardcode_libdir_separator_CXX=':'
14470	link_all_deplibs_CXX=yes
14471	export_dynamic_flag_spec_CXX='$wl-Bexport'
14472	runpath_var='LD_RUN_PATH'
14473
14474	case $cc_basename in
14475          CC*)
14476	    archive_cmds_CXX='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14477	    archive_expsym_cmds_CXX='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14478	    old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
14479              '"$old_archive_cmds_CXX"
14480	    reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
14481              '"$reload_cmds_CXX"
14482	    ;;
14483	  *)
14484	    archive_cmds_CXX='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14485	    archive_expsym_cmds_CXX='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14486	    ;;
14487	esac
14488      ;;
14489
14490      tandem*)
14491        case $cc_basename in
14492          NCC*)
14493	    # NonStop-UX NCC 3.20
14494	    # FIXME: insert proper C++ library support
14495	    ld_shlibs_CXX=no
14496	    ;;
14497          *)
14498	    # FIXME: insert proper C++ library support
14499	    ld_shlibs_CXX=no
14500	    ;;
14501        esac
14502        ;;
14503
14504      vxworks*)
14505        # FIXME: insert proper C++ library support
14506        ld_shlibs_CXX=no
14507        ;;
14508
14509      *)
14510        # FIXME: insert proper C++ library support
14511        ld_shlibs_CXX=no
14512        ;;
14513    esac
14514
14515    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
14516$as_echo "$ld_shlibs_CXX" >&6; }
14517    test no = "$ld_shlibs_CXX" && can_build_shared=no
14518
14519    GCC_CXX=$GXX
14520    LD_CXX=$LD
14521
14522    ## CAVEAT EMPTOR:
14523    ## There is no encapsulation within the following macros, do not change
14524    ## the running order or otherwise move them around unless you know exactly
14525    ## what you are doing...
14526    # Dependencies to place before and after the object being linked:
14527predep_objects_CXX=
14528postdep_objects_CXX=
14529predeps_CXX=
14530postdeps_CXX=
14531compiler_lib_search_path_CXX=
14532
14533cat > conftest.$ac_ext <<_LT_EOF
14534class Foo
14535{
14536public:
14537  Foo (void) { a = 0; }
14538private:
14539  int a;
14540};
14541_LT_EOF
14542
14543
14544_lt_libdeps_save_CFLAGS=$CFLAGS
14545case "$CC $CFLAGS " in #(
14546*\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;;
14547*\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;;
14548*\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;;
14549esac
14550
14551if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14552  (eval $ac_compile) 2>&5
14553  ac_status=$?
14554  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14555  test $ac_status = 0; }; then
14556  # Parse the compiler output and extract the necessary
14557  # objects, libraries and library flags.
14558
14559  # Sentinel used to keep track of whether or not we are before
14560  # the conftest object file.
14561  pre_test_object_deps_done=no
14562
14563  for p in `eval "$output_verbose_link_cmd"`; do
14564    case $prev$p in
14565
14566    -L* | -R* | -l*)
14567       # Some compilers place space between "-{L,R}" and the path.
14568       # Remove the space.
14569       if test x-L = "$p" ||
14570          test x-R = "$p"; then
14571	 prev=$p
14572	 continue
14573       fi
14574
14575       # Expand the sysroot to ease extracting the directories later.
14576       if test -z "$prev"; then
14577         case $p in
14578         -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;;
14579         -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;;
14580         -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;;
14581         esac
14582       fi
14583       case $p in
14584       =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;;
14585       esac
14586       if test no = "$pre_test_object_deps_done"; then
14587	 case $prev in
14588	 -L | -R)
14589	   # Internal compiler library paths should come after those
14590	   # provided the user.  The postdeps already come after the
14591	   # user supplied libs so there is no need to process them.
14592	   if test -z "$compiler_lib_search_path_CXX"; then
14593	     compiler_lib_search_path_CXX=$prev$p
14594	   else
14595	     compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} $prev$p"
14596	   fi
14597	   ;;
14598	 # The "-l" case would never come before the object being
14599	 # linked, so don't bother handling this case.
14600	 esac
14601       else
14602	 if test -z "$postdeps_CXX"; then
14603	   postdeps_CXX=$prev$p
14604	 else
14605	   postdeps_CXX="${postdeps_CXX} $prev$p"
14606	 fi
14607       fi
14608       prev=
14609       ;;
14610
14611    *.lto.$objext) ;; # Ignore GCC LTO objects
14612    *.$objext)
14613       # This assumes that the test object file only shows up
14614       # once in the compiler output.
14615       if test "$p" = "conftest.$objext"; then
14616	 pre_test_object_deps_done=yes
14617	 continue
14618       fi
14619
14620       if test no = "$pre_test_object_deps_done"; then
14621	 if test -z "$predep_objects_CXX"; then
14622	   predep_objects_CXX=$p
14623	 else
14624	   predep_objects_CXX="$predep_objects_CXX $p"
14625	 fi
14626       else
14627	 if test -z "$postdep_objects_CXX"; then
14628	   postdep_objects_CXX=$p
14629	 else
14630	   postdep_objects_CXX="$postdep_objects_CXX $p"
14631	 fi
14632       fi
14633       ;;
14634
14635    *) ;; # Ignore the rest.
14636
14637    esac
14638  done
14639
14640  # Clean up.
14641  rm -f a.out a.exe
14642else
14643  echo "libtool.m4: error: problem compiling CXX test program"
14644fi
14645
14646$RM -f confest.$objext
14647CFLAGS=$_lt_libdeps_save_CFLAGS
14648
14649# PORTME: override above test on systems where it is broken
14650case $host_os in
14651interix[3-9]*)
14652  # Interix 3.5 installs completely hosed .la files for C++, so rather than
14653  # hack all around it, let's just trust "g++" to DTRT.
14654  predep_objects_CXX=
14655  postdep_objects_CXX=
14656  postdeps_CXX=
14657  ;;
14658
14659linux*)
14660  case `$CC -V 2>&1 | sed 5q` in
14661  *Sun\ C*)
14662    # Sun C++ 5.9
14663
14664    # The more standards-conforming stlport4 library is
14665    # incompatible with the Cstd library. Avoid specifying
14666    # it if it's in CXXFLAGS. Ignore libCrun as
14667    # -library=stlport4 depends on it.
14668    case " $CXX $CXXFLAGS " in
14669    *" -library=stlport4 "*)
14670      solaris_use_stlport4=yes
14671      ;;
14672    esac
14673
14674    if test yes != "$solaris_use_stlport4"; then
14675      postdeps_CXX='-library=Cstd -library=Crun'
14676    fi
14677    ;;
14678  esac
14679  ;;
14680
14681solaris*)
14682  case $cc_basename in
14683  CC* | sunCC*)
14684    # The more standards-conforming stlport4 library is
14685    # incompatible with the Cstd library. Avoid specifying
14686    # it if it's in CXXFLAGS. Ignore libCrun as
14687    # -library=stlport4 depends on it.
14688    case " $CXX $CXXFLAGS " in
14689    *" -library=stlport4 "*)
14690      solaris_use_stlport4=yes
14691      ;;
14692    esac
14693
14694    # Adding this requires a known-good setup of shared libraries for
14695    # Sun compiler versions before 5.6, else PIC objects from an old
14696    # archive will be linked into the output, leading to subtle bugs.
14697    if test yes != "$solaris_use_stlport4"; then
14698      postdeps_CXX='-library=Cstd -library=Crun'
14699    fi
14700    ;;
14701  esac
14702  ;;
14703esac
14704
14705
14706case " $postdeps_CXX " in
14707*" -lc "*) archive_cmds_need_lc_CXX=no ;;
14708esac
14709 compiler_lib_search_dirs_CXX=
14710if test -n "${compiler_lib_search_path_CXX}"; then
14711 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | $SED -e 's! -L! !g' -e 's!^ !!'`
14712fi
14713
14714
14715
14716
14717
14718
14719
14720
14721
14722
14723
14724
14725
14726
14727
14728
14729
14730
14731
14732
14733
14734
14735
14736
14737
14738
14739
14740
14741
14742
14743
14744    lt_prog_compiler_wl_CXX=
14745lt_prog_compiler_pic_CXX=
14746lt_prog_compiler_static_CXX=
14747
14748
14749  # C++ specific cases for pic, static, wl, etc.
14750  if test yes = "$GXX"; then
14751    lt_prog_compiler_wl_CXX='-Wl,'
14752    lt_prog_compiler_static_CXX='-static'
14753
14754    case $host_os in
14755    aix*)
14756      # All AIX code is PIC.
14757      if test ia64 = "$host_cpu"; then
14758	# AIX 5 now supports IA64 processor
14759	lt_prog_compiler_static_CXX='-Bstatic'
14760      fi
14761      lt_prog_compiler_pic_CXX='-fPIC'
14762      ;;
14763
14764    amigaos*)
14765      case $host_cpu in
14766      powerpc)
14767            # see comment about AmigaOS4 .so support
14768            lt_prog_compiler_pic_CXX='-fPIC'
14769        ;;
14770      m68k)
14771            # FIXME: we need at least 68020 code to build shared libraries, but
14772            # adding the '-m68020' flag to GCC prevents building anything better,
14773            # like '-m68040'.
14774            lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
14775        ;;
14776      esac
14777      ;;
14778
14779    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14780      # PIC is the default for these OSes.
14781      ;;
14782    mingw* | cygwin* | os2* | pw32* | cegcc*)
14783      # This hack is so that the source file can tell whether it is being
14784      # built for inclusion in a dll (and should export symbols for example).
14785      # Although the cygwin gcc ignores -fPIC, still need this for old-style
14786      # (--disable-auto-import) libraries
14787      lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
14788      ;;
14789    darwin* | rhapsody*)
14790      # PIC is the default on this platform
14791      # Common symbols not allowed in MH_DYLIB files
14792      lt_prog_compiler_pic_CXX='-fno-common'
14793      ;;
14794    *djgpp*)
14795      # DJGPP does not support shared libraries at all
14796      lt_prog_compiler_pic_CXX=
14797      ;;
14798    haiku*)
14799      # PIC is the default for Haiku.
14800      # The "-static" flag exists, but is broken.
14801      lt_prog_compiler_static_CXX=
14802      ;;
14803    interix[3-9]*)
14804      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14805      # Instead, we relocate shared libraries at runtime.
14806      ;;
14807    sysv4*MP*)
14808      if test -d /usr/nec; then
14809	lt_prog_compiler_pic_CXX=-Kconform_pic
14810      fi
14811      ;;
14812    hpux*)
14813      # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
14814      # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
14815      # sets the default TLS model and affects inlining.
14816      case $host_cpu in
14817      hppa*64*)
14818	;;
14819      *)
14820	lt_prog_compiler_pic_CXX='-fPIC'
14821	;;
14822      esac
14823      ;;
14824    *qnx* | *nto*)
14825      # QNX uses GNU C++, but need to define -shared option too, otherwise
14826      # it will coredump.
14827      lt_prog_compiler_pic_CXX='-fPIC -shared'
14828      ;;
14829    *)
14830      lt_prog_compiler_pic_CXX='-fPIC'
14831      ;;
14832    esac
14833  else
14834    case $host_os in
14835      aix[4-9]*)
14836	# All AIX code is PIC.
14837	if test ia64 = "$host_cpu"; then
14838	  # AIX 5 now supports IA64 processor
14839	  lt_prog_compiler_static_CXX='-Bstatic'
14840	else
14841	  lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
14842	fi
14843	;;
14844      chorus*)
14845	case $cc_basename in
14846	cxch68*)
14847	  # Green Hills C++ Compiler
14848	  # _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"
14849	  ;;
14850	esac
14851	;;
14852      mingw* | cygwin* | os2* | pw32* | cegcc*)
14853	# This hack is so that the source file can tell whether it is being
14854	# built for inclusion in a dll (and should export symbols for example).
14855	lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
14856	;;
14857      dgux*)
14858	case $cc_basename in
14859	  ec++*)
14860	    lt_prog_compiler_pic_CXX='-KPIC'
14861	    ;;
14862	  ghcx*)
14863	    # Green Hills C++ Compiler
14864	    lt_prog_compiler_pic_CXX='-pic'
14865	    ;;
14866	  *)
14867	    ;;
14868	esac
14869	;;
14870      freebsd* | dragonfly*)
14871	# FreeBSD uses GNU C++
14872	;;
14873      hpux9* | hpux10* | hpux11*)
14874	case $cc_basename in
14875	  CC*)
14876	    lt_prog_compiler_wl_CXX='-Wl,'
14877	    lt_prog_compiler_static_CXX='$wl-a ${wl}archive'
14878	    if test ia64 != "$host_cpu"; then
14879	      lt_prog_compiler_pic_CXX='+Z'
14880	    fi
14881	    ;;
14882	  aCC*)
14883	    lt_prog_compiler_wl_CXX='-Wl,'
14884	    lt_prog_compiler_static_CXX='$wl-a ${wl}archive'
14885	    case $host_cpu in
14886	    hppa*64*|ia64*)
14887	      # +Z the default
14888	      ;;
14889	    *)
14890	      lt_prog_compiler_pic_CXX='+Z'
14891	      ;;
14892	    esac
14893	    ;;
14894	  *)
14895	    ;;
14896	esac
14897	;;
14898      interix*)
14899	# This is c89, which is MS Visual C++ (no shared libs)
14900	# Anyone wants to do a port?
14901	;;
14902      irix5* | irix6* | nonstopux*)
14903	case $cc_basename in
14904	  CC*)
14905	    lt_prog_compiler_wl_CXX='-Wl,'
14906	    lt_prog_compiler_static_CXX='-non_shared'
14907	    # CC pic flag -KPIC is the default.
14908	    ;;
14909	  *)
14910	    ;;
14911	esac
14912	;;
14913      linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
14914	case $cc_basename in
14915	  KCC*)
14916	    # KAI C++ Compiler
14917	    lt_prog_compiler_wl_CXX='--backend -Wl,'
14918	    lt_prog_compiler_pic_CXX='-fPIC'
14919	    ;;
14920	  ecpc* )
14921	    # old Intel C++ for x86_64, which still supported -KPIC.
14922	    lt_prog_compiler_wl_CXX='-Wl,'
14923	    lt_prog_compiler_pic_CXX='-KPIC'
14924	    lt_prog_compiler_static_CXX='-static'
14925	    ;;
14926	  icpc* )
14927	    # Intel C++, used to be incompatible with GCC.
14928	    # ICC 10 doesn't accept -KPIC any more.
14929	    lt_prog_compiler_wl_CXX='-Wl,'
14930	    lt_prog_compiler_pic_CXX='-fPIC'
14931	    lt_prog_compiler_static_CXX='-static'
14932	    ;;
14933	  pgCC* | pgcpp*)
14934	    # Portland Group C++ compiler
14935	    lt_prog_compiler_wl_CXX='-Wl,'
14936	    lt_prog_compiler_pic_CXX='-fpic'
14937	    lt_prog_compiler_static_CXX='-Bstatic'
14938	    ;;
14939	  cxx*)
14940	    # Compaq C++
14941	    # Make sure the PIC flag is empty.  It appears that all Alpha
14942	    # Linux and Compaq Tru64 Unix objects are PIC.
14943	    lt_prog_compiler_pic_CXX=
14944	    lt_prog_compiler_static_CXX='-non_shared'
14945	    ;;
14946	  xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
14947	    # IBM XL 8.0, 9.0 on PPC and BlueGene
14948	    lt_prog_compiler_wl_CXX='-Wl,'
14949	    lt_prog_compiler_pic_CXX='-qpic'
14950	    lt_prog_compiler_static_CXX='-qstaticlink'
14951	    ;;
14952	  *)
14953	    case `$CC -V 2>&1 | sed 5q` in
14954	    *Sun\ C*)
14955	      # Sun C++ 5.9
14956	      lt_prog_compiler_pic_CXX='-KPIC'
14957	      lt_prog_compiler_static_CXX='-Bstatic'
14958	      lt_prog_compiler_wl_CXX='-Qoption ld '
14959	      ;;
14960	    esac
14961	    ;;
14962	esac
14963	;;
14964      lynxos*)
14965	;;
14966      m88k*)
14967	;;
14968      mvs*)
14969	case $cc_basename in
14970	  cxx*)
14971	    lt_prog_compiler_pic_CXX='-W c,exportall'
14972	    ;;
14973	  *)
14974	    ;;
14975	esac
14976	;;
14977      netbsd*)
14978	;;
14979      *qnx* | *nto*)
14980        # QNX uses GNU C++, but need to define -shared option too, otherwise
14981        # it will coredump.
14982        lt_prog_compiler_pic_CXX='-fPIC -shared'
14983        ;;
14984      osf3* | osf4* | osf5*)
14985	case $cc_basename in
14986	  KCC*)
14987	    lt_prog_compiler_wl_CXX='--backend -Wl,'
14988	    ;;
14989	  RCC*)
14990	    # Rational C++ 2.4.1
14991	    lt_prog_compiler_pic_CXX='-pic'
14992	    ;;
14993	  cxx*)
14994	    # Digital/Compaq C++
14995	    lt_prog_compiler_wl_CXX='-Wl,'
14996	    # Make sure the PIC flag is empty.  It appears that all Alpha
14997	    # Linux and Compaq Tru64 Unix objects are PIC.
14998	    lt_prog_compiler_pic_CXX=
14999	    lt_prog_compiler_static_CXX='-non_shared'
15000	    ;;
15001	  *)
15002	    ;;
15003	esac
15004	;;
15005      psos*)
15006	;;
15007      solaris*)
15008	case $cc_basename in
15009	  CC* | sunCC*)
15010	    # Sun C++ 4.2, 5.x and Centerline C++
15011	    lt_prog_compiler_pic_CXX='-KPIC'
15012	    lt_prog_compiler_static_CXX='-Bstatic'
15013	    lt_prog_compiler_wl_CXX='-Qoption ld '
15014	    ;;
15015	  gcx*)
15016	    # Green Hills C++ Compiler
15017	    lt_prog_compiler_pic_CXX='-PIC'
15018	    ;;
15019	  *)
15020	    ;;
15021	esac
15022	;;
15023      sunos4*)
15024	case $cc_basename in
15025	  CC*)
15026	    # Sun C++ 4.x
15027	    lt_prog_compiler_pic_CXX='-pic'
15028	    lt_prog_compiler_static_CXX='-Bstatic'
15029	    ;;
15030	  lcc*)
15031	    # Lucid
15032	    lt_prog_compiler_pic_CXX='-pic'
15033	    ;;
15034	  *)
15035	    ;;
15036	esac
15037	;;
15038      sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
15039	case $cc_basename in
15040	  CC*)
15041	    lt_prog_compiler_wl_CXX='-Wl,'
15042	    lt_prog_compiler_pic_CXX='-KPIC'
15043	    lt_prog_compiler_static_CXX='-Bstatic'
15044	    ;;
15045	esac
15046	;;
15047      tandem*)
15048	case $cc_basename in
15049	  NCC*)
15050	    # NonStop-UX NCC 3.20
15051	    lt_prog_compiler_pic_CXX='-KPIC'
15052	    ;;
15053	  *)
15054	    ;;
15055	esac
15056	;;
15057      vxworks*)
15058	;;
15059      *)
15060	lt_prog_compiler_can_build_shared_CXX=no
15061	;;
15062    esac
15063  fi
15064
15065case $host_os in
15066  # For platforms that do not support PIC, -DPIC is meaningless:
15067  *djgpp*)
15068    lt_prog_compiler_pic_CXX=
15069    ;;
15070  *)
15071    lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
15072    ;;
15073esac
15074
15075{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
15076$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
15077if ${lt_cv_prog_compiler_pic_CXX+:} false; then :
15078  $as_echo_n "(cached) " >&6
15079else
15080  lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX
15081fi
15082{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5
15083$as_echo "$lt_cv_prog_compiler_pic_CXX" >&6; }
15084lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX
15085
15086#
15087# Check to make sure the PIC flag actually works.
15088#
15089if test -n "$lt_prog_compiler_pic_CXX"; then
15090  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
15091$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
15092if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then :
15093  $as_echo_n "(cached) " >&6
15094else
15095  lt_cv_prog_compiler_pic_works_CXX=no
15096   ac_outfile=conftest.$ac_objext
15097   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15098   lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"  ## exclude from sc_useless_quotes_in_assignment
15099   # Insert the option either (1) after the last *FLAGS variable, or
15100   # (2) before a word containing "conftest.", or (3) at the end.
15101   # Note that $ac_compile itself does not contain backslashes and begins
15102   # with a dollar sign (not a hyphen), so the echo should work correctly.
15103   # The option is referenced via a variable to avoid confusing sed.
15104   lt_compile=`echo "$ac_compile" | $SED \
15105   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15106   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15107   -e 's:$: $lt_compiler_flag:'`
15108   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15109   (eval "$lt_compile" 2>conftest.err)
15110   ac_status=$?
15111   cat conftest.err >&5
15112   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15113   if (exit $ac_status) && test -s "$ac_outfile"; then
15114     # The compiler can only warn and ignore the option if not recognized
15115     # So say no if there are warnings other than the usual output.
15116     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
15117     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15118     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15119       lt_cv_prog_compiler_pic_works_CXX=yes
15120     fi
15121   fi
15122   $RM conftest*
15123
15124fi
15125{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
15126$as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
15127
15128if test yes = "$lt_cv_prog_compiler_pic_works_CXX"; then
15129    case $lt_prog_compiler_pic_CXX in
15130     "" | " "*) ;;
15131     *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
15132     esac
15133else
15134    lt_prog_compiler_pic_CXX=
15135     lt_prog_compiler_can_build_shared_CXX=no
15136fi
15137
15138fi
15139
15140
15141
15142
15143
15144#
15145# Check to make sure the static flag actually works.
15146#
15147wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
15148{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
15149$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
15150if ${lt_cv_prog_compiler_static_works_CXX+:} false; then :
15151  $as_echo_n "(cached) " >&6
15152else
15153  lt_cv_prog_compiler_static_works_CXX=no
15154   save_LDFLAGS=$LDFLAGS
15155   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
15156   echo "$lt_simple_link_test_code" > conftest.$ac_ext
15157   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
15158     # The linker can only warn and ignore the option if not recognized
15159     # So say no if there are warnings
15160     if test -s conftest.err; then
15161       # Append any errors to the config.log.
15162       cat conftest.err 1>&5
15163       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
15164       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15165       if diff conftest.exp conftest.er2 >/dev/null; then
15166         lt_cv_prog_compiler_static_works_CXX=yes
15167       fi
15168     else
15169       lt_cv_prog_compiler_static_works_CXX=yes
15170     fi
15171   fi
15172   $RM -r conftest*
15173   LDFLAGS=$save_LDFLAGS
15174
15175fi
15176{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
15177$as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
15178
15179if test yes = "$lt_cv_prog_compiler_static_works_CXX"; then
15180    :
15181else
15182    lt_prog_compiler_static_CXX=
15183fi
15184
15185
15186
15187
15188    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
15189$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
15190if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
15191  $as_echo_n "(cached) " >&6
15192else
15193  lt_cv_prog_compiler_c_o_CXX=no
15194   $RM -r conftest 2>/dev/null
15195   mkdir conftest
15196   cd conftest
15197   mkdir out
15198   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15199
15200   lt_compiler_flag="-o out/conftest2.$ac_objext"
15201   # Insert the option either (1) after the last *FLAGS variable, or
15202   # (2) before a word containing "conftest.", or (3) at the end.
15203   # Note that $ac_compile itself does not contain backslashes and begins
15204   # with a dollar sign (not a hyphen), so the echo should work correctly.
15205   lt_compile=`echo "$ac_compile" | $SED \
15206   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15207   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15208   -e 's:$: $lt_compiler_flag:'`
15209   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15210   (eval "$lt_compile" 2>out/conftest.err)
15211   ac_status=$?
15212   cat out/conftest.err >&5
15213   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15214   if (exit $ac_status) && test -s out/conftest2.$ac_objext
15215   then
15216     # The compiler can only warn and ignore the option if not recognized
15217     # So say no if there are warnings
15218     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
15219     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15220     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15221       lt_cv_prog_compiler_c_o_CXX=yes
15222     fi
15223   fi
15224   chmod u+w . 2>&5
15225   $RM conftest*
15226   # SGI C++ compiler will create directory out/ii_files/ for
15227   # template instantiation
15228   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
15229   $RM out/* && rmdir out
15230   cd ..
15231   $RM -r conftest
15232   $RM conftest*
15233
15234fi
15235{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
15236$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
15237
15238
15239
15240    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
15241$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
15242if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
15243  $as_echo_n "(cached) " >&6
15244else
15245  lt_cv_prog_compiler_c_o_CXX=no
15246   $RM -r conftest 2>/dev/null
15247   mkdir conftest
15248   cd conftest
15249   mkdir out
15250   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15251
15252   lt_compiler_flag="-o out/conftest2.$ac_objext"
15253   # Insert the option either (1) after the last *FLAGS variable, or
15254   # (2) before a word containing "conftest.", or (3) at the end.
15255   # Note that $ac_compile itself does not contain backslashes and begins
15256   # with a dollar sign (not a hyphen), so the echo should work correctly.
15257   lt_compile=`echo "$ac_compile" | $SED \
15258   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15259   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15260   -e 's:$: $lt_compiler_flag:'`
15261   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15262   (eval "$lt_compile" 2>out/conftest.err)
15263   ac_status=$?
15264   cat out/conftest.err >&5
15265   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15266   if (exit $ac_status) && test -s out/conftest2.$ac_objext
15267   then
15268     # The compiler can only warn and ignore the option if not recognized
15269     # So say no if there are warnings
15270     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
15271     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15272     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15273       lt_cv_prog_compiler_c_o_CXX=yes
15274     fi
15275   fi
15276   chmod u+w . 2>&5
15277   $RM conftest*
15278   # SGI C++ compiler will create directory out/ii_files/ for
15279   # template instantiation
15280   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
15281   $RM out/* && rmdir out
15282   cd ..
15283   $RM -r conftest
15284   $RM conftest*
15285
15286fi
15287{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
15288$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
15289
15290
15291
15292
15293hard_links=nottested
15294if test no = "$lt_cv_prog_compiler_c_o_CXX" && test no != "$need_locks"; then
15295  # do not overwrite the value of need_locks provided by the user
15296  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
15297$as_echo_n "checking if we can lock with hard links... " >&6; }
15298  hard_links=yes
15299  $RM conftest*
15300  ln conftest.a conftest.b 2>/dev/null && hard_links=no
15301  touch conftest.a
15302  ln conftest.a conftest.b 2>&5 || hard_links=no
15303  ln conftest.a conftest.b 2>/dev/null && hard_links=no
15304  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
15305$as_echo "$hard_links" >&6; }
15306  if test no = "$hard_links"; then
15307    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
15308$as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
15309    need_locks=warn
15310  fi
15311else
15312  need_locks=no
15313fi
15314
15315
15316
15317    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15318$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
15319
15320  export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15321  exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
15322  case $host_os in
15323  aix[4-9]*)
15324    # If we're using GNU nm, then we don't want the "-C" option.
15325    # -C means demangle to AIX nm, but means don't demangle with GNU nm
15326    # Also, AIX nm treats weak defined symbols like other global defined
15327    # symbols, whereas GNU nm marks them as "W".
15328    if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
15329      export_symbols_cmds_CXX='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
15330    else
15331      export_symbols_cmds_CXX='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
15332    fi
15333    ;;
15334  pw32*)
15335    export_symbols_cmds_CXX=$ltdll_cmds
15336    ;;
15337  cygwin* | mingw* | cegcc*)
15338    case $cc_basename in
15339    cl*)
15340      exclude_expsyms_CXX='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
15341      ;;
15342    *)
15343      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'
15344      exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
15345      ;;
15346    esac
15347    ;;
15348  *)
15349    export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15350    ;;
15351  esac
15352
15353{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
15354$as_echo "$ld_shlibs_CXX" >&6; }
15355test no = "$ld_shlibs_CXX" && can_build_shared=no
15356
15357with_gnu_ld_CXX=$with_gnu_ld
15358
15359
15360
15361
15362
15363
15364#
15365# Do we need to explicitly link libc?
15366#
15367case "x$archive_cmds_need_lc_CXX" in
15368x|xyes)
15369  # Assume -lc should be added
15370  archive_cmds_need_lc_CXX=yes
15371
15372  if test yes,yes = "$GCC,$enable_shared"; then
15373    case $archive_cmds_CXX in
15374    *'~'*)
15375      # FIXME: we may have to deal with multi-command sequences.
15376      ;;
15377    '$CC '*)
15378      # Test whether the compiler implicitly links with -lc since on some
15379      # systems, -lgcc has to come before -lc. If gcc already passes -lc
15380      # to ld, don't add -lc before -lgcc.
15381      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
15382$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
15383if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then :
15384  $as_echo_n "(cached) " >&6
15385else
15386  $RM conftest*
15387	echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15388
15389	if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
15390  (eval $ac_compile) 2>&5
15391  ac_status=$?
15392  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15393  test $ac_status = 0; } 2>conftest.err; then
15394	  soname=conftest
15395	  lib=conftest
15396	  libobjs=conftest.$ac_objext
15397	  deplibs=
15398	  wl=$lt_prog_compiler_wl_CXX
15399	  pic_flag=$lt_prog_compiler_pic_CXX
15400	  compiler_flags=-v
15401	  linker_flags=-v
15402	  verstring=
15403	  output_objdir=.
15404	  libname=conftest
15405	  lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
15406	  allow_undefined_flag_CXX=
15407	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
15408  (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
15409  ac_status=$?
15410  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15411  test $ac_status = 0; }
15412	  then
15413	    lt_cv_archive_cmds_need_lc_CXX=no
15414	  else
15415	    lt_cv_archive_cmds_need_lc_CXX=yes
15416	  fi
15417	  allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
15418	else
15419	  cat conftest.err 1>&5
15420	fi
15421	$RM conftest*
15422
15423fi
15424{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
15425$as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
15426      archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
15427      ;;
15428    esac
15429  fi
15430  ;;
15431esac
15432
15433
15434
15435
15436
15437
15438
15439
15440
15441
15442
15443
15444
15445
15446
15447
15448
15449
15450
15451
15452
15453
15454
15455
15456
15457
15458
15459
15460
15461
15462
15463
15464
15465
15466
15467
15468
15469
15470
15471
15472
15473
15474
15475
15476
15477
15478
15479
15480
15481
15482
15483
15484
15485
15486
15487
15488
15489
15490
15491
15492
15493
15494    { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
15495$as_echo_n "checking dynamic linker characteristics... " >&6; }
15496
15497library_names_spec=
15498libname_spec='lib$name'
15499soname_spec=
15500shrext_cmds=.so
15501postinstall_cmds=
15502postuninstall_cmds=
15503finish_cmds=
15504finish_eval=
15505shlibpath_var=
15506shlibpath_overrides_runpath=unknown
15507version_type=none
15508dynamic_linker="$host_os ld.so"
15509sys_lib_dlsearch_path_spec="/lib /usr/lib"
15510need_lib_prefix=unknown
15511hardcode_into_libs=no
15512
15513# when you set need_version to no, make sure it does not cause -set_version
15514# flags to be left without arguments
15515need_version=unknown
15516
15517case $host_os in
15518aix3*)
15519  version_type=linux # correct to gnu/linux during the next big refactor
15520  library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
15521  shlibpath_var=LIBPATH
15522
15523  # AIX 3 has no versioning support, so we append a major version to the name.
15524  soname_spec='$libname$release$shared_ext$major'
15525  ;;
15526
15527aix[4-9]*)
15528  version_type=linux # correct to gnu/linux during the next big refactor
15529  need_lib_prefix=no
15530  need_version=no
15531  hardcode_into_libs=yes
15532  if test ia64 = "$host_cpu"; then
15533    # AIX 5 supports IA64
15534    library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
15535    shlibpath_var=LD_LIBRARY_PATH
15536  else
15537    # With GCC up to 2.95.x, collect2 would create an import file
15538    # for dependence libraries.  The import file would start with
15539    # the line '#! .'.  This would cause the generated library to
15540    # depend on '.', always an invalid library.  This was fixed in
15541    # development snapshots of GCC prior to 3.0.
15542    case $host_os in
15543      aix4 | aix4.[01] | aix4.[01].*)
15544      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15545	   echo ' yes '
15546	   echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
15547	:
15548      else
15549	can_build_shared=no
15550      fi
15551      ;;
15552    esac
15553    # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
15554    # soname into executable. Probably we can add versioning support to
15555    # collect2, so additional links can be useful in future.
15556    if test yes = "$aix_use_runtimelinking"; then
15557      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
15558      # instead of lib<name>.a to let people know that these are not
15559      # typical AIX shared libraries.
15560      library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15561    else
15562      # We preserve .a as extension for shared libraries through AIX4.2
15563      # and later when we are not doing run time linking.
15564      library_names_spec='$libname$release.a $libname.a'
15565      soname_spec='$libname$release$shared_ext$major'
15566    fi
15567    shlibpath_var=LIBPATH
15568  fi
15569  ;;
15570
15571amigaos*)
15572  case $host_cpu in
15573  powerpc)
15574    # Since July 2007 AmigaOS4 officially supports .so libraries.
15575    # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
15576    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15577    ;;
15578  m68k)
15579    library_names_spec='$libname.ixlibrary $libname.a'
15580    # Create ${libname}_ixlibrary.a entries in /sys/libs.
15581    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'
15582    ;;
15583  esac
15584  ;;
15585
15586beos*)
15587  library_names_spec='$libname$shared_ext'
15588  dynamic_linker="$host_os ld.so"
15589  shlibpath_var=LIBRARY_PATH
15590  ;;
15591
15592bsdi[45]*)
15593  version_type=linux # correct to gnu/linux during the next big refactor
15594  need_version=no
15595  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15596  soname_spec='$libname$release$shared_ext$major'
15597  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15598  shlibpath_var=LD_LIBRARY_PATH
15599  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15600  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
15601  # the default ld.so.conf also contains /usr/contrib/lib and
15602  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15603  # libtool to hard-code these into programs
15604  ;;
15605
15606cygwin* | mingw* | pw32* | cegcc*)
15607  version_type=windows
15608  shrext_cmds=.dll
15609  need_version=no
15610  need_lib_prefix=no
15611
15612  case $GCC,$cc_basename in
15613  yes,*)
15614    # gcc
15615    library_names_spec='$libname.dll.a'
15616    # DLL is installed to $(libdir)/../bin by postinstall_cmds
15617    postinstall_cmds='base_file=`basename \$file`~
15618      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
15619      dldir=$destdir/`dirname \$dlpath`~
15620      test -d \$dldir || mkdir -p \$dldir~
15621      $install_prog $dir/$dlname \$dldir/$dlname~
15622      chmod a+x \$dldir/$dlname~
15623      if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
15624        eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
15625      fi'
15626    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15627      dlpath=$dir/\$dldll~
15628       $RM \$dlpath'
15629    shlibpath_overrides_runpath=yes
15630
15631    case $host_os in
15632    cygwin*)
15633      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
15634      soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
15635
15636      ;;
15637    mingw* | cegcc*)
15638      # MinGW DLLs use traditional 'lib' prefix
15639      soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
15640      ;;
15641    pw32*)
15642      # pw32 DLLs use 'pw' prefix rather than 'lib'
15643      library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
15644      ;;
15645    esac
15646    dynamic_linker='Win32 ld.exe'
15647    ;;
15648
15649  *,cl*)
15650    # Native MSVC
15651    libname_spec='$name'
15652    soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
15653    library_names_spec='$libname.dll.lib'
15654
15655    case $build_os in
15656    mingw*)
15657      sys_lib_search_path_spec=
15658      lt_save_ifs=$IFS
15659      IFS=';'
15660      for lt_path in $LIB
15661      do
15662        IFS=$lt_save_ifs
15663        # Let DOS variable expansion print the short 8.3 style file name.
15664        lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
15665        sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
15666      done
15667      IFS=$lt_save_ifs
15668      # Convert to MSYS style.
15669      sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
15670      ;;
15671    cygwin*)
15672      # Convert to unix form, then to dos form, then back to unix form
15673      # but this time dos style (no spaces!) so that the unix form looks
15674      # like /cygdrive/c/PROGRA~1:/cygdr...
15675      sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
15676      sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
15677      sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15678      ;;
15679    *)
15680      sys_lib_search_path_spec=$LIB
15681      if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
15682        # It is most probably a Windows format PATH.
15683        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15684      else
15685        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15686      fi
15687      # FIXME: find the short name or the path components, as spaces are
15688      # common. (e.g. "Program Files" -> "PROGRA~1")
15689      ;;
15690    esac
15691
15692    # DLL is installed to $(libdir)/../bin by postinstall_cmds
15693    postinstall_cmds='base_file=`basename \$file`~
15694      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
15695      dldir=$destdir/`dirname \$dlpath`~
15696      test -d \$dldir || mkdir -p \$dldir~
15697      $install_prog $dir/$dlname \$dldir/$dlname'
15698    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15699      dlpath=$dir/\$dldll~
15700       $RM \$dlpath'
15701    shlibpath_overrides_runpath=yes
15702    dynamic_linker='Win32 link.exe'
15703    ;;
15704
15705  *)
15706    # Assume MSVC wrapper
15707    library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
15708    dynamic_linker='Win32 ld.exe'
15709    ;;
15710  esac
15711  # FIXME: first we should search . and the directory the executable is in
15712  shlibpath_var=PATH
15713  ;;
15714
15715darwin* | rhapsody*)
15716  dynamic_linker="$host_os dyld"
15717  version_type=darwin
15718  need_lib_prefix=no
15719  need_version=no
15720  library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
15721  soname_spec='$libname$release$major$shared_ext'
15722  shlibpath_overrides_runpath=yes
15723  shlibpath_var=DYLD_LIBRARY_PATH
15724  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
15725
15726  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15727  ;;
15728
15729dgux*)
15730  version_type=linux # correct to gnu/linux during the next big refactor
15731  need_lib_prefix=no
15732  need_version=no
15733  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15734  soname_spec='$libname$release$shared_ext$major'
15735  shlibpath_var=LD_LIBRARY_PATH
15736  ;;
15737
15738freebsd* | dragonfly*)
15739  # DragonFly does not have aout.  When/if they implement a new
15740  # versioning mechanism, adjust this.
15741  if test -x /usr/bin/objformat; then
15742    objformat=`/usr/bin/objformat`
15743  else
15744    case $host_os in
15745    freebsd[23].*) objformat=aout ;;
15746    *) objformat=elf ;;
15747    esac
15748  fi
15749  version_type=freebsd-$objformat
15750  case $version_type in
15751    freebsd-elf*)
15752      library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15753      soname_spec='$libname$release$shared_ext$major'
15754      need_version=no
15755      need_lib_prefix=no
15756      ;;
15757    freebsd-*)
15758      library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
15759      need_version=yes
15760      ;;
15761  esac
15762  shlibpath_var=LD_LIBRARY_PATH
15763  case $host_os in
15764  freebsd2.*)
15765    shlibpath_overrides_runpath=yes
15766    ;;
15767  freebsd3.[01]* | freebsdelf3.[01]*)
15768    shlibpath_overrides_runpath=yes
15769    hardcode_into_libs=yes
15770    ;;
15771  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
15772  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
15773    shlibpath_overrides_runpath=no
15774    hardcode_into_libs=yes
15775    ;;
15776  *) # from 4.6 on, and DragonFly
15777    shlibpath_overrides_runpath=yes
15778    hardcode_into_libs=yes
15779    ;;
15780  esac
15781  ;;
15782
15783haiku*)
15784  version_type=linux # correct to gnu/linux during the next big refactor
15785  need_lib_prefix=no
15786  need_version=no
15787  dynamic_linker="$host_os runtime_loader"
15788  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15789  soname_spec='$libname$release$shared_ext$major'
15790  shlibpath_var=LIBRARY_PATH
15791  shlibpath_overrides_runpath=no
15792  sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
15793  hardcode_into_libs=yes
15794  ;;
15795
15796hpux9* | hpux10* | hpux11*)
15797  # Give a soname corresponding to the major version so that dld.sl refuses to
15798  # link against other versions.
15799  version_type=sunos
15800  need_lib_prefix=no
15801  need_version=no
15802  case $host_cpu in
15803  ia64*)
15804    shrext_cmds='.so'
15805    hardcode_into_libs=yes
15806    dynamic_linker="$host_os dld.so"
15807    shlibpath_var=LD_LIBRARY_PATH
15808    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15809    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15810    soname_spec='$libname$release$shared_ext$major'
15811    if test 32 = "$HPUX_IA64_MODE"; then
15812      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15813    else
15814      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
15815    fi
15816    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15817    ;;
15818  hppa*64*)
15819    shrext_cmds='.sl'
15820    hardcode_into_libs=yes
15821    dynamic_linker="$host_os dld.sl"
15822    shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
15823    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15824    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15825    soname_spec='$libname$release$shared_ext$major'
15826    sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15827    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15828    ;;
15829  *)
15830    shrext_cmds='.sl'
15831    dynamic_linker="$host_os dld.sl"
15832    shlibpath_var=SHLIB_PATH
15833    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
15834    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15835    soname_spec='$libname$release$shared_ext$major'
15836    ;;
15837  esac
15838  # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
15839  postinstall_cmds='chmod 555 $lib'
15840  # or fails outright, so override atomically:
15841  install_override_mode=555
15842  ;;
15843
15844interix[3-9]*)
15845  version_type=linux # correct to gnu/linux during the next big refactor
15846  need_lib_prefix=no
15847  need_version=no
15848  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15849  soname_spec='$libname$release$shared_ext$major'
15850  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
15851  shlibpath_var=LD_LIBRARY_PATH
15852  shlibpath_overrides_runpath=no
15853  hardcode_into_libs=yes
15854  ;;
15855
15856irix5* | irix6* | nonstopux*)
15857  case $host_os in
15858    nonstopux*) version_type=nonstopux ;;
15859    *)
15860	if test yes = "$lt_cv_prog_gnu_ld"; then
15861		version_type=linux # correct to gnu/linux during the next big refactor
15862	else
15863		version_type=irix
15864	fi ;;
15865  esac
15866  need_lib_prefix=no
15867  need_version=no
15868  soname_spec='$libname$release$shared_ext$major'
15869  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
15870  case $host_os in
15871  irix5* | nonstopux*)
15872    libsuff= shlibsuff=
15873    ;;
15874  *)
15875    case $LD in # libtool.m4 will add one of these switches to LD
15876    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15877      libsuff= shlibsuff= libmagic=32-bit;;
15878    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15879      libsuff=32 shlibsuff=N32 libmagic=N32;;
15880    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15881      libsuff=64 shlibsuff=64 libmagic=64-bit;;
15882    *) libsuff= shlibsuff= libmagic=never-match;;
15883    esac
15884    ;;
15885  esac
15886  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15887  shlibpath_overrides_runpath=no
15888  sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
15889  sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
15890  hardcode_into_libs=yes
15891  ;;
15892
15893# No shared lib support for Linux oldld, aout, or coff.
15894linux*oldld* | linux*aout* | linux*coff*)
15895  dynamic_linker=no
15896  ;;
15897
15898linux*android*)
15899  version_type=none # Android doesn't support versioned libraries.
15900  need_lib_prefix=no
15901  need_version=no
15902  library_names_spec='$libname$release$shared_ext'
15903  soname_spec='$libname$release$shared_ext'
15904  finish_cmds=
15905  shlibpath_var=LD_LIBRARY_PATH
15906  shlibpath_overrides_runpath=yes
15907
15908  # This implies no fast_install, which is unacceptable.
15909  # Some rework will be needed to allow for fast_install
15910  # before this can be enabled.
15911  hardcode_into_libs=yes
15912
15913  dynamic_linker='Android linker'
15914  # Don't embed -rpath directories since the linker doesn't support them.
15915  hardcode_libdir_flag_spec_CXX='-L$libdir'
15916  ;;
15917
15918# This must be glibc/ELF.
15919linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
15920  version_type=linux # correct to gnu/linux during the next big refactor
15921  need_lib_prefix=no
15922  need_version=no
15923  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15924  soname_spec='$libname$release$shared_ext$major'
15925  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15926  shlibpath_var=LD_LIBRARY_PATH
15927  shlibpath_overrides_runpath=no
15928
15929  # Some binutils ld are patched to set DT_RUNPATH
15930  if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
15931  $as_echo_n "(cached) " >&6
15932else
15933  lt_cv_shlibpath_overrides_runpath=no
15934    save_LDFLAGS=$LDFLAGS
15935    save_libdir=$libdir
15936    eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
15937	 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
15938    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15939/* end confdefs.h.  */
15940
15941int
15942main ()
15943{
15944
15945  ;
15946  return 0;
15947}
15948_ACEOF
15949if ac_fn_cxx_try_link "$LINENO"; then :
15950  if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
15951  lt_cv_shlibpath_overrides_runpath=yes
15952fi
15953fi
15954rm -f core conftest.err conftest.$ac_objext \
15955    conftest$ac_exeext conftest.$ac_ext
15956    LDFLAGS=$save_LDFLAGS
15957    libdir=$save_libdir
15958
15959fi
15960
15961  shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
15962
15963  # This implies no fast_install, which is unacceptable.
15964  # Some rework will be needed to allow for fast_install
15965  # before this can be enabled.
15966  hardcode_into_libs=yes
15967
15968  # Append ld.so.conf contents to the search path
15969  if test -f /etc/ld.so.conf; then
15970    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' ' '`
15971    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
15972  fi
15973
15974  # We used to test for /lib/ld.so.1 and disable shared libraries on
15975  # powerpc, because MkLinux only supported shared libraries with the
15976  # GNU dynamic linker.  Since this was broken with cross compilers,
15977  # most powerpc-linux boxes support dynamic linking these days and
15978  # people can always --disable-shared, the test was removed, and we
15979  # assume the GNU/Linux dynamic linker is in use.
15980  dynamic_linker='GNU/Linux ld.so'
15981  ;;
15982
15983netbsd*)
15984  version_type=sunos
15985  need_lib_prefix=no
15986  need_version=no
15987  if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
15988    library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
15989    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15990    dynamic_linker='NetBSD (a.out) ld.so'
15991  else
15992    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15993    soname_spec='$libname$release$shared_ext$major'
15994    dynamic_linker='NetBSD ld.elf_so'
15995  fi
15996  shlibpath_var=LD_LIBRARY_PATH
15997  shlibpath_overrides_runpath=yes
15998  hardcode_into_libs=yes
15999  ;;
16000
16001newsos6)
16002  version_type=linux # correct to gnu/linux during the next big refactor
16003  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16004  shlibpath_var=LD_LIBRARY_PATH
16005  shlibpath_overrides_runpath=yes
16006  ;;
16007
16008*nto* | *qnx*)
16009  version_type=qnx
16010  need_lib_prefix=no
16011  need_version=no
16012  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16013  soname_spec='$libname$release$shared_ext$major'
16014  shlibpath_var=LD_LIBRARY_PATH
16015  shlibpath_overrides_runpath=no
16016  hardcode_into_libs=yes
16017  dynamic_linker='ldqnx.so'
16018  ;;
16019
16020openbsd* | bitrig*)
16021  version_type=sunos
16022  sys_lib_dlsearch_path_spec=/usr/lib
16023  need_lib_prefix=no
16024  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
16025    need_version=no
16026  else
16027    need_version=yes
16028  fi
16029  library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
16030  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16031  shlibpath_var=LD_LIBRARY_PATH
16032  shlibpath_overrides_runpath=yes
16033  ;;
16034
16035os2*)
16036  libname_spec='$name'
16037  shrext_cmds=.dll
16038  need_lib_prefix=no
16039  library_names_spec='$libname$shared_ext $libname.a'
16040  dynamic_linker='OS/2 ld.exe'
16041  shlibpath_var=LIBPATH
16042  ;;
16043
16044osf3* | osf4* | osf5*)
16045  version_type=osf
16046  need_lib_prefix=no
16047  need_version=no
16048  soname_spec='$libname$release$shared_ext$major'
16049  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16050  shlibpath_var=LD_LIBRARY_PATH
16051  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16052  sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16053  ;;
16054
16055rdos*)
16056  dynamic_linker=no
16057  ;;
16058
16059solaris*)
16060  version_type=linux # correct to gnu/linux during the next big refactor
16061  need_lib_prefix=no
16062  need_version=no
16063  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16064  soname_spec='$libname$release$shared_ext$major'
16065  shlibpath_var=LD_LIBRARY_PATH
16066  shlibpath_overrides_runpath=yes
16067  hardcode_into_libs=yes
16068  # ldd complains unless libraries are executable
16069  postinstall_cmds='chmod +x $lib'
16070  ;;
16071
16072sunos4*)
16073  version_type=sunos
16074  library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
16075  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16076  shlibpath_var=LD_LIBRARY_PATH
16077  shlibpath_overrides_runpath=yes
16078  if test yes = "$with_gnu_ld"; then
16079    need_lib_prefix=no
16080  fi
16081  need_version=yes
16082  ;;
16083
16084sysv4 | sysv4.3*)
16085  version_type=linux # correct to gnu/linux during the next big refactor
16086  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16087  soname_spec='$libname$release$shared_ext$major'
16088  shlibpath_var=LD_LIBRARY_PATH
16089  case $host_vendor in
16090    sni)
16091      shlibpath_overrides_runpath=no
16092      need_lib_prefix=no
16093      runpath_var=LD_RUN_PATH
16094      ;;
16095    siemens)
16096      need_lib_prefix=no
16097      ;;
16098    motorola)
16099      need_lib_prefix=no
16100      need_version=no
16101      shlibpath_overrides_runpath=no
16102      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16103      ;;
16104  esac
16105  ;;
16106
16107sysv4*MP*)
16108  if test -d /usr/nec; then
16109    version_type=linux # correct to gnu/linux during the next big refactor
16110    library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
16111    soname_spec='$libname$shared_ext.$major'
16112    shlibpath_var=LD_LIBRARY_PATH
16113  fi
16114  ;;
16115
16116sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
16117  version_type=freebsd-elf
16118  need_lib_prefix=no
16119  need_version=no
16120  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
16121  soname_spec='$libname$release$shared_ext$major'
16122  shlibpath_var=LD_LIBRARY_PATH
16123  shlibpath_overrides_runpath=yes
16124  hardcode_into_libs=yes
16125  if test yes = "$with_gnu_ld"; then
16126    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
16127  else
16128    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
16129    case $host_os in
16130      sco3.2v5*)
16131        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
16132	;;
16133    esac
16134  fi
16135  sys_lib_dlsearch_path_spec='/usr/lib'
16136  ;;
16137
16138tpf*)
16139  # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
16140  version_type=linux # correct to gnu/linux during the next big refactor
16141  need_lib_prefix=no
16142  need_version=no
16143  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16144  shlibpath_var=LD_LIBRARY_PATH
16145  shlibpath_overrides_runpath=no
16146  hardcode_into_libs=yes
16147  ;;
16148
16149uts4*)
16150  version_type=linux # correct to gnu/linux during the next big refactor
16151  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16152  soname_spec='$libname$release$shared_ext$major'
16153  shlibpath_var=LD_LIBRARY_PATH
16154  ;;
16155
16156*)
16157  dynamic_linker=no
16158  ;;
16159esac
16160{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
16161$as_echo "$dynamic_linker" >&6; }
16162test no = "$dynamic_linker" && can_build_shared=no
16163
16164variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16165if test yes = "$GCC"; then
16166  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16167fi
16168
16169if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
16170  sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
16171fi
16172if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
16173  sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
16174fi
16175
16176
16177
16178
16179
16180
16181
16182
16183
16184
16185
16186
16187
16188
16189
16190
16191
16192
16193
16194
16195
16196
16197
16198
16199
16200
16201
16202
16203
16204
16205
16206
16207
16208
16209
16210
16211
16212
16213    { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
16214$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
16215hardcode_action_CXX=
16216if test -n "$hardcode_libdir_flag_spec_CXX" ||
16217   test -n "$runpath_var_CXX" ||
16218   test yes = "$hardcode_automatic_CXX"; then
16219
16220  # We can hardcode non-existent directories.
16221  if test no != "$hardcode_direct_CXX" &&
16222     # If the only mechanism to avoid hardcoding is shlibpath_var, we
16223     # have to relink, otherwise we might link with an installed library
16224     # when we should be linking with a yet-to-be-installed one
16225     ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" &&
16226     test no != "$hardcode_minus_L_CXX"; then
16227    # Linking always hardcodes the temporary library directory.
16228    hardcode_action_CXX=relink
16229  else
16230    # We can link without hardcoding, and we can hardcode nonexisting dirs.
16231    hardcode_action_CXX=immediate
16232  fi
16233else
16234  # We cannot hardcode anything, or else we can only hardcode existing
16235  # directories.
16236  hardcode_action_CXX=unsupported
16237fi
16238{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
16239$as_echo "$hardcode_action_CXX" >&6; }
16240
16241if test relink = "$hardcode_action_CXX" ||
16242   test yes = "$inherit_rpath_CXX"; then
16243  # Fast installation is not supported
16244  enable_fast_install=no
16245elif test yes = "$shlibpath_overrides_runpath" ||
16246     test no = "$enable_shared"; then
16247  # Fast installation is not necessary
16248  enable_fast_install=needless
16249fi
16250
16251
16252
16253
16254
16255
16256
16257  fi # test -n "$compiler"
16258
16259  CC=$lt_save_CC
16260  CFLAGS=$lt_save_CFLAGS
16261  LDCXX=$LD
16262  LD=$lt_save_LD
16263  GCC=$lt_save_GCC
16264  with_gnu_ld=$lt_save_with_gnu_ld
16265  lt_cv_path_LDCXX=$lt_cv_path_LD
16266  lt_cv_path_LD=$lt_save_path_LD
16267  lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
16268  lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
16269fi # test yes != "$_lt_caught_CXX_error"
16270
16271ac_ext=cpp
16272ac_cpp='$CXXCPP $CPPFLAGS'
16273ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16274ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16275ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16276
16277
16278{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C++ compiler works" >&5
16279$as_echo_n "checking whether the C++ compiler works... " >&6; }
16280if ${atf_cv_prog_cxx_works+:} false; then :
16281  $as_echo_n "(cached) " >&6
16282else
16283  ac_ext=cpp
16284ac_cpp='$CXXCPP $CPPFLAGS'
16285ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16286ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16287ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16288
16289                cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16290/* end confdefs.h.  */
16291
16292int
16293main ()
16294{
16295
16296  ;
16297  return 0;
16298}
16299_ACEOF
16300if ac_fn_cxx_try_link "$LINENO"; then :
16301  atf_cv_prog_cxx_works=yes
16302else
16303  atf_cv_prog_cxx_works=no
16304fi
16305rm -f core conftest.err conftest.$ac_objext \
16306    conftest$ac_exeext conftest.$ac_ext
16307                ac_ext=cpp
16308ac_cpp='$CXXCPP $CPPFLAGS'
16309ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16310ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16311ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16312
16313fi
16314{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $atf_cv_prog_cxx_works" >&5
16315$as_echo "$atf_cv_prog_cxx_works" >&6; }
16316if test "${atf_cv_prog_cxx_works}" = no; then
16317    as_fn_error $? "C++ compiler cannot create executables" "$LINENO" 5
16318fi
16319
16320
16321
16322
16323    # Check whether --enable-developer was given.
16324if test "${enable_developer+set}" = set; then :
16325  enableval=$enable_developer;
16326else
16327  if test -d ${srcdir}/.git; then
16328             { $as_echo "$as_me:${as_lineno-$LINENO}: building from HEAD; developer mode autoenabled" >&5
16329$as_echo "$as_me: building from HEAD; developer mode autoenabled" >&6;}
16330             enable_developer=yes
16331         else
16332             enable_developer=no
16333         fi
16334fi
16335
16336
16337    #
16338    # The following warning flags should also be enabled but cannot be.
16339    # Reasons given below.
16340    #
16341    # -Wold-style-cast: Raises errors when using TIOCGWINSZ, at least under
16342    #                   Mac OS X.  This is due to the way _IOR is defined.
16343    #
16344
16345    try_c_cxx_flags="-D_FORTIFY_SOURCE=2 \
16346                     -Wall \
16347                     -Wcast-qual \
16348                     -Wextra \
16349                     -Wpointer-arith \
16350                     -Wredundant-decls \
16351                     -Wreturn-type \
16352                     -Wshadow \
16353                     -Wsign-compare \
16354                     -Wswitch \
16355                     -Wwrite-strings"
16356
16357    try_c_flags="-Wmissing-prototypes \
16358                 -Wno-traditional \
16359                 -Wstrict-prototypes"
16360
16361    try_cxx_flags="-Wabi \
16362                   -Wctor-dtor-privacy \
16363                   -Wno-deprecated \
16364                   -Wno-non-template-friend \
16365                   -Wno-pmf-conversions \
16366                   -Wnon-virtual-dtor \
16367                   -Woverloaded-virtual \
16368                   -Wreorder \
16369                   -Wsign-promo \
16370                   -Wsynth"
16371
16372    if test ${enable_developer} = yes; then
16373        try_werror=yes
16374        try_c_cxx_flags="${try_c_cxx_flags} -g -Werror"
16375    else
16376        try_werror=no
16377        try_c_cxx_flags="${try_c_cxx_flags} -DNDEBUG"
16378    fi
16379
16380
16381    ac_ext=c
16382ac_cpp='$CPP $CPPFLAGS'
16383ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16384ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16385ac_compiler_gnu=$ac_cv_c_compiler_gnu
16386
16387    valid_cflags=
16388    for f in ${try_c_cxx_flags} ${try_c_flags}; do
16389
16390
16391
16392
16393    if test x"${kyua_CC_has_werror-unset}" = xunset; then
16394        { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} supports -Werror" >&5
16395$as_echo_n "checking whether ${CC} supports -Werror... " >&6; }
16396        saved_flags="${CFLAGS}"
16397        kyua_CC_has_werror=no
16398        CFLAGS="${CFLAGS}  -Werror"
16399        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16400/* end confdefs.h.  */
16401
16402int
16403main ()
16404{
16405return 0;
16406  ;
16407  return 0;
16408}
16409_ACEOF
16410if ac_fn_c_try_link "$LINENO"; then :
16411  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16412$as_echo "yes" >&6; }
16413                       kyua_CC_has_werror=yes
16414else
16415  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16416$as_echo "no" >&6; }
16417fi
16418rm -f core conftest.err conftest.$ac_objext \
16419    conftest$ac_exeext conftest.$ac_ext
16420        CFLAGS="${saved_flags}"
16421    fi
16422
16423    if test "${f}" = "-Werror"; then
16424        found=${kyua_CC_has_werror}
16425    else
16426        found=unset
16427        if test ${kyua_CC_has_werror} = yes; then
16428
16429    if test x"${found-unset}" = xunset; then
16430        { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} supports ${f}" >&5
16431$as_echo_n "checking whether ${CC} supports ${f}... " >&6; }
16432        saved_flags="${CFLAGS}"
16433        found=no
16434        CFLAGS="${CFLAGS} -Werror ${f}"
16435        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16436/* end confdefs.h.  */
16437
16438int
16439main ()
16440{
16441return 0;
16442  ;
16443  return 0;
16444}
16445_ACEOF
16446if ac_fn_c_try_link "$LINENO"; then :
16447  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16448$as_echo "yes" >&6; }
16449                       found=yes
16450else
16451  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16452$as_echo "no" >&6; }
16453fi
16454rm -f core conftest.err conftest.$ac_objext \
16455    conftest$ac_exeext conftest.$ac_ext
16456        CFLAGS="${saved_flags}"
16457    fi
16458
16459        else
16460
16461    if test x"${found-unset}" = xunset; then
16462        { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} supports ${f}" >&5
16463$as_echo_n "checking whether ${CC} supports ${f}... " >&6; }
16464        saved_flags="${CFLAGS}"
16465        found=no
16466        CFLAGS="${CFLAGS}  ${f}"
16467        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16468/* end confdefs.h.  */
16469
16470int
16471main ()
16472{
16473return 0;
16474  ;
16475  return 0;
16476}
16477_ACEOF
16478if ac_fn_c_try_link "$LINENO"; then :
16479  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16480$as_echo "yes" >&6; }
16481                       found=yes
16482else
16483  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16484$as_echo "no" >&6; }
16485fi
16486rm -f core conftest.err conftest.$ac_objext \
16487    conftest$ac_exeext conftest.$ac_ext
16488        CFLAGS="${saved_flags}"
16489    fi
16490
16491        fi
16492    fi
16493    if test ${found} = yes; then
16494        valid_cflags="${valid_cflags} ${f}"
16495    fi
16496
16497
16498    done
16499    if test -n "${valid_cflags}"; then
16500        CFLAGS="${CFLAGS} ${valid_cflags}"
16501    fi
16502    ac_ext=cpp
16503ac_cpp='$CXXCPP $CPPFLAGS'
16504ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16505ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16506ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16507
16508
16509
16510    ac_ext=cpp
16511ac_cpp='$CXXCPP $CPPFLAGS'
16512ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16513ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16514ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16515
16516    valid_cxxflags=
16517    for f in ${try_c_cxx_flags} ${try_cxx_flags}; do
16518
16519
16520
16521
16522    if test x"${kyua_CXX_has_werror-unset}" = xunset; then
16523        { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CXX} supports -Werror" >&5
16524$as_echo_n "checking whether ${CXX} supports -Werror... " >&6; }
16525        saved_flags="${CXXFLAGS}"
16526        kyua_CXX_has_werror=no
16527        CXXFLAGS="${CXXFLAGS}  -Werror"
16528        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16529/* end confdefs.h.  */
16530
16531int
16532main ()
16533{
16534return 0;
16535  ;
16536  return 0;
16537}
16538_ACEOF
16539if ac_fn_cxx_try_link "$LINENO"; then :
16540  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16541$as_echo "yes" >&6; }
16542                       kyua_CXX_has_werror=yes
16543else
16544  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16545$as_echo "no" >&6; }
16546fi
16547rm -f core conftest.err conftest.$ac_objext \
16548    conftest$ac_exeext conftest.$ac_ext
16549        CXXFLAGS="${saved_flags}"
16550    fi
16551
16552    if test "${f}" = "-Werror"; then
16553        found=${kyua_CXX_has_werror}
16554    else
16555        found=unset
16556        if test ${kyua_CXX_has_werror} = yes; then
16557
16558    if test x"${found-unset}" = xunset; then
16559        { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CXX} supports ${f}" >&5
16560$as_echo_n "checking whether ${CXX} supports ${f}... " >&6; }
16561        saved_flags="${CXXFLAGS}"
16562        found=no
16563        CXXFLAGS="${CXXFLAGS} -Werror ${f}"
16564        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16565/* end confdefs.h.  */
16566
16567int
16568main ()
16569{
16570return 0;
16571  ;
16572  return 0;
16573}
16574_ACEOF
16575if ac_fn_cxx_try_link "$LINENO"; then :
16576  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16577$as_echo "yes" >&6; }
16578                       found=yes
16579else
16580  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16581$as_echo "no" >&6; }
16582fi
16583rm -f core conftest.err conftest.$ac_objext \
16584    conftest$ac_exeext conftest.$ac_ext
16585        CXXFLAGS="${saved_flags}"
16586    fi
16587
16588        else
16589
16590    if test x"${found-unset}" = xunset; then
16591        { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CXX} supports ${f}" >&5
16592$as_echo_n "checking whether ${CXX} supports ${f}... " >&6; }
16593        saved_flags="${CXXFLAGS}"
16594        found=no
16595        CXXFLAGS="${CXXFLAGS}  ${f}"
16596        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16597/* end confdefs.h.  */
16598
16599int
16600main ()
16601{
16602return 0;
16603  ;
16604  return 0;
16605}
16606_ACEOF
16607if ac_fn_cxx_try_link "$LINENO"; then :
16608  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16609$as_echo "yes" >&6; }
16610                       found=yes
16611else
16612  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16613$as_echo "no" >&6; }
16614fi
16615rm -f core conftest.err conftest.$ac_objext \
16616    conftest$ac_exeext conftest.$ac_ext
16617        CXXFLAGS="${saved_flags}"
16618    fi
16619
16620        fi
16621    fi
16622    if test ${found} = yes; then
16623        valid_cxxflags="${valid_cxxflags} ${f}"
16624    fi
16625
16626
16627    done
16628    if test -n "${valid_cxxflags}"; then
16629        CXXFLAGS="${CXXFLAGS} ${valid_cxxflags}"
16630    fi
16631    ac_ext=cpp
16632ac_cpp='$CXXCPP $CPPFLAGS'
16633ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16634ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16635ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16636
16637
16638
16639
16640{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
16641$as_echo_n "checking whether ln -s works... " >&6; }
16642LN_S=$as_ln_s
16643if test "$LN_S" = "ln -s"; then
16644  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16645$as_echo "yes" >&6; }
16646else
16647  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
16648$as_echo "no, using $LN_S" >&6; }
16649fi
16650
16651
16652
16653
16654
16655    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether vsnprintf is in std" >&5
16656$as_echo_n "checking whether vsnprintf is in std... " >&6; }
16657    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16658/* end confdefs.h.  */
16659#include <cstdarg>
16660                      #include <cstdio>
16661int
16662main ()
16663{
16664va_list ap;
16665                      char* buf = NULL;
16666                      const char* fmt = NULL;
16667                      std::vsnprintf(buf, 0, fmt, ap);
16668                     return 0;
16669  ;
16670  return 0;
16671}
16672_ACEOF
16673if ac_fn_cxx_try_compile "$LINENO"; then :
16674  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16675$as_echo "yes" >&6; }
16676
16677$as_echo "#define HAVE_VSNPRINTF_IN_STD 1" >>confdefs.h
16678
16679else
16680  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16681$as_echo "no" >&6; }
16682
16683fi
16684rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16685
16686
16687
16688    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether getopt allows a + sign for POSIX behavior" >&5
16689$as_echo_n "checking whether getopt allows a + sign for POSIX behavior... " >&6; }
16690if ${kyua_cv_getopt_plus+:} false; then :
16691  $as_echo_n "(cached) " >&6
16692else
16693
16694      ac_ext=c
16695ac_cpp='$CPP $CPPFLAGS'
16696ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16697ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16698ac_compiler_gnu=$ac_cv_c_compiler_gnu
16699
16700      if test "$cross_compiling" = yes; then :
16701  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16702$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16703as_fn_error $? "cannot run test program while cross compiling
16704See \`config.log' for more details" "$LINENO" 5; }
16705else
16706  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16707/* end confdefs.h.  */
16708#include <stdlib.h>
16709#include <string.h>
16710#include <unistd.h>
16711int
16712main ()
16713{
16714
16715    int argc = 4;
16716    char* argv[5] = {
16717        strdup("conftest"),
16718        strdup("-+"),
16719        strdup("-a"),
16720        strdup("bar"),
16721        NULL
16722    };
16723    int ch;
16724    int seen_a = 0, seen_plus = 0;
16725
16726    while ((ch = getopt(argc, argv, "+a:")) != -1) {
16727        switch (ch) {
16728        case 'a':
16729            seen_a = 1;
16730            break;
16731
16732        case '+':
16733            seen_plus = 1;
16734            break;
16735
16736        case '?':
16737        default:
16738            ;
16739        }
16740    }
16741
16742    return (seen_a && !seen_plus) ? EXIT_SUCCESS : EXIT_FAILURE;
16743
16744  ;
16745  return 0;
16746}
16747_ACEOF
16748if ac_fn_c_try_run "$LINENO"; then :
16749  kyua_cv_getopt_plus=yes
16750else
16751  kyua_cv_getopt_plus=no
16752fi
16753rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16754  conftest.$ac_objext conftest.beam conftest.$ac_ext
16755fi
16756
16757      ac_ext=cpp
16758ac_cpp='$CXXCPP $CPPFLAGS'
16759ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16760ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16761ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16762
16763
16764fi
16765{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $kyua_cv_getopt_plus" >&5
16766$as_echo "$kyua_cv_getopt_plus" >&6; }
16767    if test x"${kyua_cv_getopt_plus}" = xyes; then
16768
16769$as_echo "#define HAVE_GNU_GETOPT 1" >>confdefs.h
16770
16771    fi
16772
16773    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether getopt has optreset" >&5
16774$as_echo_n "checking whether getopt has optreset... " >&6; }
16775if ${kyua_cv_getopt_optreset+:} false; then :
16776  $as_echo_n "(cached) " >&6
16777else
16778
16779      ac_ext=c
16780ac_cpp='$CPP $CPPFLAGS'
16781ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16782ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16783ac_compiler_gnu=$ac_cv_c_compiler_gnu
16784
16785      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16786/* end confdefs.h.  */
16787#include <stdlib.h>
16788#include <unistd.h>
16789int
16790main ()
16791{
16792
16793    optreset = 1;
16794    return EXIT_SUCCESS;
16795
16796  ;
16797  return 0;
16798}
16799_ACEOF
16800if ac_fn_c_try_compile "$LINENO"; then :
16801  kyua_cv_getopt_optreset=yes
16802else
16803  kyua_cv_getopt_optreset=no
16804fi
16805rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16806      ac_ext=cpp
16807ac_cpp='$CXXCPP $CPPFLAGS'
16808ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16809ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16810ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16811
16812
16813fi
16814{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $kyua_cv_getopt_optreset" >&5
16815$as_echo "$kyua_cv_getopt_optreset" >&6; }
16816    if test x"${kyua_cv_getopt_optreset}" = xyes; then
16817
16818$as_echo "#define HAVE_OPTRESET 1" >>confdefs.h
16819
16820    fi
16821
16822
16823
16824    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether __attribute__((__format__(__printf__, a, b))) is supported" >&5
16825$as_echo_n "checking whether __attribute__((__format__(__printf__, a, b))) is supported... " >&6; }
16826    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16827/* end confdefs.h.  */
16828
16829#include <stdarg.h>
16830#include <stdio.h>
16831
16832static void test_printf(const char *, ...)
16833    __attribute__((__format__(__printf__, 1, 2)));
16834
16835static void
16836test_printf(const char *format, ...)
16837{
16838    va_list ap;
16839
16840    va_start(ap, format);
16841    vprintf(format, ap);
16842    va_end(ap);
16843}
16844int
16845main ()
16846{
16847
16848    test_printf("foo %s", "bar");
16849    return 0;
16850
16851  ;
16852  return 0;
16853}
16854_ACEOF
16855if ac_fn_cxx_try_compile "$LINENO"; then :
16856  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16857$as_echo "yes" >&6; }
16858         value="__attribute__((__format__(__printf__, a, b)))"
16859else
16860  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16861$as_echo "no" >&6; }
16862         value=""
16863
16864fi
16865rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16866    ATTRIBUTE_FORMAT_PRINTF=${value}
16867
16868
16869
16870                        { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether __attribute__((__noreturn__)) is supported" >&5
16871$as_echo_n "checking whether __attribute__((__noreturn__)) is supported... " >&6; }
16872if ${kyua_cv_attribute_noreturn+:} false; then :
16873  $as_echo_n "(cached) " >&6
16874else
16875
16876        if test "$cross_compiling" = yes; then :
16877  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16878$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16879as_fn_error $? "cannot run test program while cross compiling
16880See \`config.log' for more details" "$LINENO" 5; }
16881else
16882  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16883/* end confdefs.h.  */
16884
16885int
16886main ()
16887{
16888
16889#if ((__GNUC__ == 2 && __GNUC_MINOR__ >= 5) || __GNUC__ > 2)
16890    return 0;
16891#else
16892    return 1;
16893#endif
16894
16895  ;
16896  return 0;
16897}
16898_ACEOF
16899if ac_fn_cxx_try_run "$LINENO"; then :
16900  kyua_cv_attribute_noreturn=yes
16901else
16902  kyua_cv_attribute_noreturn=no
16903fi
16904rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16905  conftest.$ac_objext conftest.beam conftest.$ac_ext
16906fi
16907
16908
16909fi
16910{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $kyua_cv_attribute_noreturn" >&5
16911$as_echo "$kyua_cv_attribute_noreturn" >&6; }
16912    if test x"${kyua_cv_attribute_noreturn}" = xyes; then
16913        value="__attribute__((__noreturn__))"
16914    else
16915        value=""
16916    fi
16917    ATTRIBUTE_NORETURN=${value}
16918
16919
16920
16921    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether __attribute__((__unused__)) is supported" >&5
16922$as_echo_n "checking whether __attribute__((__unused__)) is supported... " >&6; }
16923    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16924/* end confdefs.h.  */
16925
16926static void
16927function(int a __attribute__((__unused__)))
16928{
16929}
16930int
16931main ()
16932{
16933
16934    function(3);
16935    return 0;
16936
16937  ;
16938  return 0;
16939}
16940_ACEOF
16941if ac_fn_cxx_try_compile "$LINENO"; then :
16942  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16943$as_echo "yes" >&6; }
16944         value="__attribute__((__unused__))"
16945else
16946  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16947$as_echo "no" >&6; }
16948         value=""
16949
16950fi
16951rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16952    ATTRIBUTE_UNUSED=${value}
16953
16954
16955
16956
16957    for ac_func in putenv setenv unsetenv
16958do :
16959  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
16960ac_fn_cxx_check_func "$LINENO" "$ac_func" "$as_ac_var"
16961if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
16962  cat >>confdefs.h <<_ACEOF
16963#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
16964_ACEOF
16965
16966fi
16967done
16968
16969
16970
16971    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether basename takes a constant pointer" >&5
16972$as_echo_n "checking whether basename takes a constant pointer... " >&6; }
16973    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16974/* end confdefs.h.  */
16975#include <libgen.h>
16976int
16977main ()
16978{
16979
16980         const char* s = "/foo/bar/";
16981         (void)::basename(s);
16982
16983  ;
16984  return 0;
16985}
16986_ACEOF
16987if ac_fn_cxx_try_compile "$LINENO"; then :
16988  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16989$as_echo "yes" >&6; }
16990
16991$as_echo "#define HAVE_CONST_BASENAME 1" >>confdefs.h
16992
16993else
16994  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16995$as_echo "no" >&6; }
16996fi
16997rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16998
16999    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether dirname takes a constant pointer" >&5
17000$as_echo_n "checking whether dirname takes a constant pointer... " >&6; }
17001    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17002/* end confdefs.h.  */
17003#include <libgen.h>
17004int
17005main ()
17006{
17007
17008         const char* s = "/foo/bar/";
17009         (void)::dirname(s);
17010
17011  ;
17012  return 0;
17013}
17014_ACEOF
17015if ac_fn_cxx_try_compile "$LINENO"; then :
17016  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17017$as_echo "yes" >&6; }
17018
17019$as_echo "#define HAVE_CONST_DIRNAME 1" >>confdefs.h
17020
17021else
17022  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17023$as_echo "no" >&6; }
17024fi
17025rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17026
17027    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether getcwd(NULL, 0) works" >&5
17028$as_echo_n "checking whether getcwd(NULL, 0) works... " >&6; }
17029if ${kyua_cv_getcwd_works+:} false; then :
17030  $as_echo_n "(cached) " >&6
17031else
17032
17033        if test "$cross_compiling" = yes; then :
17034  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
17035$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
17036as_fn_error $? "cannot run test program while cross compiling
17037See \`config.log' for more details" "$LINENO" 5; }
17038else
17039  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17040/* end confdefs.h.  */
17041#include <stdlib.h>
17042#include <unistd.h>
17043int
17044main ()
17045{
17046
17047         char *cwd = getcwd(NULL, 0);
17048         return (cwd != NULL) ? EXIT_SUCCESS : EXIT_FAILURE;
17049
17050  ;
17051  return 0;
17052}
17053_ACEOF
17054if ac_fn_cxx_try_run "$LINENO"; then :
17055  kyua_cv_getcwd_works=yes
17056else
17057  kyua_cv_getcwd_works=no
17058fi
17059rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
17060  conftest.$ac_objext conftest.beam conftest.$ac_ext
17061fi
17062
17063
17064fi
17065{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $kyua_cv_getcwd_works" >&5
17066$as_echo "$kyua_cv_getcwd_works" >&6; }
17067    if test x"${kyua_cv_getcwd_works}" = xyes; then
17068
17069$as_echo "#define HAVE_GETCWD_DYN 1" >>confdefs.h
17070
17071    fi
17072
17073
17074
17075
17076    test x"${ATF_BUILD_CC-unset}" = x"unset" && ATF_BUILD_CC="${CC}"
17077
17078
17079
17080
17081    test x"${ATF_BUILD_CFLAGS-unset}" = x"unset" && ATF_BUILD_CFLAGS="${CFLAGS}"
17082
17083
17084
17085
17086    test x"${ATF_BUILD_CPP-unset}" = x"unset" && ATF_BUILD_CPP="${CPP}"
17087
17088
17089
17090
17091    test x"${ATF_BUILD_CPPFLAGS-unset}" = x"unset" && ATF_BUILD_CPPFLAGS="${CPPFLAGS}"
17092
17093
17094
17095
17096    test x"${ATF_BUILD_CXX-unset}" = x"unset" && ATF_BUILD_CXX="${CXX}"
17097
17098
17099
17100
17101    test x"${ATF_BUILD_CXXFLAGS-unset}" = x"unset" && ATF_BUILD_CXXFLAGS="${CXXFLAGS}"
17102
17103
17104
17105
17106if test "${srcdir}" = .; then
17107    target_srcdir=
17108else
17109    target_srcdir="${srcdir}/"
17110fi
17111
17112
17113
17114atf_aclocaldir=\${datadir}/aclocal
17115
17116atf_pkgconfigdir=\${libdir}/pkgconfig
17117
17118
17119
17120
17121if test x"${ATF_SHELL}" = x""; then
17122    for ac_prog in bash sh
17123do
17124  # Extract the first word of "$ac_prog", so it can be a program name with args.
17125set dummy $ac_prog; ac_word=$2
17126{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17127$as_echo_n "checking for $ac_word... " >&6; }
17128if ${ac_cv_path_ATF_SHELL+:} false; then :
17129  $as_echo_n "(cached) " >&6
17130else
17131  case $ATF_SHELL in
17132  [\\/]* | ?:[\\/]*)
17133  ac_cv_path_ATF_SHELL="$ATF_SHELL" # Let the user override the test with a path.
17134  ;;
17135  *)
17136  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17137for as_dir in $PATH
17138do
17139  IFS=$as_save_IFS
17140  test -z "$as_dir" && as_dir=.
17141    for ac_exec_ext in '' $ac_executable_extensions; do
17142  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17143    ac_cv_path_ATF_SHELL="$as_dir/$ac_word$ac_exec_ext"
17144    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17145    break 2
17146  fi
17147done
17148  done
17149IFS=$as_save_IFS
17150
17151  ;;
17152esac
17153fi
17154ATF_SHELL=$ac_cv_path_ATF_SHELL
17155if test -n "$ATF_SHELL"; then
17156  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ATF_SHELL" >&5
17157$as_echo "$ATF_SHELL" >&6; }
17158else
17159  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17160$as_echo "no" >&6; }
17161fi
17162
17163
17164  test -n "$ATF_SHELL" && break
17165done
17166
17167else
17168    case ${ATF_SHELL} in
17169    /*)
17170        ;;
17171    *)
17172        as_fn_error $? "ATF_SHELL must hold an absolute path" "$LINENO" 5
17173        ;;
17174    esac
17175fi
17176if test x"${ATF_SHELL}" = x""; then
17177    as_fn_error $? "No POSIX shell interpreter found; maybe set ATF_SHELL?" "$LINENO" 5
17178fi
17179
17180
17181# Extract the first word of "kyua", so it can be a program name with args.
17182set dummy kyua; ac_word=$2
17183{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17184$as_echo_n "checking for $ac_word... " >&6; }
17185if ${ac_cv_path_KYUA+:} false; then :
17186  $as_echo_n "(cached) " >&6
17187else
17188  case $KYUA in
17189  [\\/]* | ?:[\\/]*)
17190  ac_cv_path_KYUA="$KYUA" # Let the user override the test with a path.
17191  ;;
17192  *)
17193  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17194for as_dir in $PATH
17195do
17196  IFS=$as_save_IFS
17197  test -z "$as_dir" && as_dir=.
17198    for ac_exec_ext in '' $ac_executable_extensions; do
17199  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17200    ac_cv_path_KYUA="$as_dir/$ac_word$ac_exec_ext"
17201    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17202    break 2
17203  fi
17204done
17205  done
17206IFS=$as_save_IFS
17207
17208  ;;
17209esac
17210fi
17211KYUA=$ac_cv_path_KYUA
17212if test -n "$KYUA"; then
17213  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $KYUA" >&5
17214$as_echo "$KYUA" >&6; }
17215else
17216  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17217$as_echo "no" >&6; }
17218fi
17219
17220
17221 if test -n "${KYUA}"; then
17222  HAVE_KYUA_TRUE=
17223  HAVE_KYUA_FALSE='#'
17224else
17225  HAVE_KYUA_TRUE='#'
17226  HAVE_KYUA_FALSE=
17227fi
17228
17229# Extract the first word of "git", so it can be a program name with args.
17230set dummy git; ac_word=$2
17231{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17232$as_echo_n "checking for $ac_word... " >&6; }
17233if ${ac_cv_path_GIT+:} false; then :
17234  $as_echo_n "(cached) " >&6
17235else
17236  case $GIT in
17237  [\\/]* | ?:[\\/]*)
17238  ac_cv_path_GIT="$GIT" # Let the user override the test with a path.
17239  ;;
17240  *)
17241  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17242for as_dir in $PATH
17243do
17244  IFS=$as_save_IFS
17245  test -z "$as_dir" && as_dir=.
17246    for ac_exec_ext in '' $ac_executable_extensions; do
17247  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17248    ac_cv_path_GIT="$as_dir/$ac_word$ac_exec_ext"
17249    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17250    break 2
17251  fi
17252done
17253  done
17254IFS=$as_save_IFS
17255
17256  ;;
17257esac
17258fi
17259GIT=$ac_cv_path_GIT
17260if test -n "$GIT"; then
17261  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GIT" >&5
17262$as_echo "$GIT" >&6; }
17263else
17264  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17265$as_echo "no" >&6; }
17266fi
17267
17268
17269
17270
17271ac_config_files="$ac_config_files Makefile atf-c/defs.h"
17272
17273cat >confcache <<\_ACEOF
17274# This file is a shell script that caches the results of configure
17275# tests run on this system so they can be shared between configure
17276# scripts and configure runs, see configure's option --config-cache.
17277# It is not useful on other systems.  If it contains results you don't
17278# want to keep, you may remove or edit it.
17279#
17280# config.status only pays attention to the cache file if you give it
17281# the --recheck option to rerun configure.
17282#
17283# `ac_cv_env_foo' variables (set or unset) will be overridden when
17284# loading this file, other *unset* `ac_cv_foo' will be assigned the
17285# following values.
17286
17287_ACEOF
17288
17289# The following way of writing the cache mishandles newlines in values,
17290# but we know of no workaround that is simple, portable, and efficient.
17291# So, we kill variables containing newlines.
17292# Ultrix sh set writes to stderr and can't be redirected directly,
17293# and sets the high bit in the cache file unless we assign to the vars.
17294(
17295  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
17296    eval ac_val=\$$ac_var
17297    case $ac_val in #(
17298    *${as_nl}*)
17299      case $ac_var in #(
17300      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
17301$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
17302      esac
17303      case $ac_var in #(
17304      _ | IFS | as_nl) ;; #(
17305      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
17306      *) { eval $ac_var=; unset $ac_var;} ;;
17307      esac ;;
17308    esac
17309  done
17310
17311  (set) 2>&1 |
17312    case $as_nl`(ac_space=' '; set) 2>&1` in #(
17313    *${as_nl}ac_space=\ *)
17314      # `set' does not quote correctly, so add quotes: double-quote
17315      # substitution turns \\\\ into \\, and sed turns \\ into \.
17316      sed -n \
17317	"s/'/'\\\\''/g;
17318	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
17319      ;; #(
17320    *)
17321      # `set' quotes correctly as required by POSIX, so do not add quotes.
17322      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
17323      ;;
17324    esac |
17325    sort
17326) |
17327  sed '
17328     /^ac_cv_env_/b end
17329     t clear
17330     :clear
17331     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
17332     t end
17333     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
17334     :end' >>confcache
17335if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
17336  if test -w "$cache_file"; then
17337    if test "x$cache_file" != "x/dev/null"; then
17338      { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
17339$as_echo "$as_me: updating cache $cache_file" >&6;}
17340      if test ! -f "$cache_file" || test -h "$cache_file"; then
17341	cat confcache >"$cache_file"
17342      else
17343        case $cache_file in #(
17344        */* | ?:*)
17345	  mv -f confcache "$cache_file"$$ &&
17346	  mv -f "$cache_file"$$ "$cache_file" ;; #(
17347        *)
17348	  mv -f confcache "$cache_file" ;;
17349	esac
17350      fi
17351    fi
17352  else
17353    { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
17354$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
17355  fi
17356fi
17357rm -f confcache
17358
17359test "x$prefix" = xNONE && prefix=$ac_default_prefix
17360# Let make expand exec_prefix.
17361test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
17362
17363DEFS=-DHAVE_CONFIG_H
17364
17365ac_libobjs=
17366ac_ltlibobjs=
17367U=
17368for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
17369  # 1. Remove the extension, and $U if already installed.
17370  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
17371  ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
17372  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
17373  #    will be set to the directory where LIBOBJS objects are built.
17374  as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
17375  as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
17376done
17377LIBOBJS=$ac_libobjs
17378
17379LTLIBOBJS=$ac_ltlibobjs
17380
17381
17382{ $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
17383$as_echo_n "checking that generated files are newer than configure... " >&6; }
17384   if test -n "$am_sleep_pid"; then
17385     # Hide warnings about reused PIDs.
17386     wait $am_sleep_pid 2>/dev/null
17387   fi
17388   { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
17389$as_echo "done" >&6; }
17390 if test -n "$EXEEXT"; then
17391  am__EXEEXT_TRUE=
17392  am__EXEEXT_FALSE='#'
17393else
17394  am__EXEEXT_TRUE='#'
17395  am__EXEEXT_FALSE=
17396fi
17397
17398if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
17399  as_fn_error $? "conditional \"AMDEP\" was never defined.
17400Usually this means the macro was only invoked conditionally." "$LINENO" 5
17401fi
17402if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
17403  as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
17404Usually this means the macro was only invoked conditionally." "$LINENO" 5
17405fi
17406if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
17407  as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
17408Usually this means the macro was only invoked conditionally." "$LINENO" 5
17409fi
17410if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
17411  as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
17412Usually this means the macro was only invoked conditionally." "$LINENO" 5
17413fi
17414if test -z "${HAVE_KYUA_TRUE}" && test -z "${HAVE_KYUA_FALSE}"; then
17415  as_fn_error $? "conditional \"HAVE_KYUA\" was never defined.
17416Usually this means the macro was only invoked conditionally." "$LINENO" 5
17417fi
17418
17419: "${CONFIG_STATUS=./config.status}"
17420ac_write_fail=0
17421ac_clean_files_save=$ac_clean_files
17422ac_clean_files="$ac_clean_files $CONFIG_STATUS"
17423{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
17424$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
17425as_write_fail=0
17426cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
17427#! $SHELL
17428# Generated by $as_me.
17429# Run this file to recreate the current configuration.
17430# Compiler output produced by configure, useful for debugging
17431# configure, is in config.log if it exists.
17432
17433debug=false
17434ac_cs_recheck=false
17435ac_cs_silent=false
17436
17437SHELL=\${CONFIG_SHELL-$SHELL}
17438export SHELL
17439_ASEOF
17440cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
17441## -------------------- ##
17442## M4sh Initialization. ##
17443## -------------------- ##
17444
17445# Be more Bourne compatible
17446DUALCASE=1; export DUALCASE # for MKS sh
17447if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
17448  emulate sh
17449  NULLCMD=:
17450  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
17451  # is contrary to our usage.  Disable this feature.
17452  alias -g '${1+"$@"}'='"$@"'
17453  setopt NO_GLOB_SUBST
17454else
17455  case `(set -o) 2>/dev/null` in #(
17456  *posix*) :
17457    set -o posix ;; #(
17458  *) :
17459     ;;
17460esac
17461fi
17462
17463
17464as_nl='
17465'
17466export as_nl
17467# Printing a long string crashes Solaris 7 /usr/bin/printf.
17468as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
17469as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
17470as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
17471# Prefer a ksh shell builtin over an external printf program on Solaris,
17472# but without wasting forks for bash or zsh.
17473if test -z "$BASH_VERSION$ZSH_VERSION" \
17474    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
17475  as_echo='print -r --'
17476  as_echo_n='print -rn --'
17477elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
17478  as_echo='printf %s\n'
17479  as_echo_n='printf %s'
17480else
17481  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
17482    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
17483    as_echo_n='/usr/ucb/echo -n'
17484  else
17485    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
17486    as_echo_n_body='eval
17487      arg=$1;
17488      case $arg in #(
17489      *"$as_nl"*)
17490	expr "X$arg" : "X\\(.*\\)$as_nl";
17491	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
17492      esac;
17493      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
17494    '
17495    export as_echo_n_body
17496    as_echo_n='sh -c $as_echo_n_body as_echo'
17497  fi
17498  export as_echo_body
17499  as_echo='sh -c $as_echo_body as_echo'
17500fi
17501
17502# The user is always right.
17503if test "${PATH_SEPARATOR+set}" != set; then
17504  PATH_SEPARATOR=:
17505  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
17506    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
17507      PATH_SEPARATOR=';'
17508  }
17509fi
17510
17511
17512# IFS
17513# We need space, tab and new line, in precisely that order.  Quoting is
17514# there to prevent editors from complaining about space-tab.
17515# (If _AS_PATH_WALK were called with IFS unset, it would disable word
17516# splitting by setting IFS to empty value.)
17517IFS=" ""	$as_nl"
17518
17519# Find who we are.  Look in the path if we contain no directory separator.
17520as_myself=
17521case $0 in #((
17522  *[\\/]* ) as_myself=$0 ;;
17523  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17524for as_dir in $PATH
17525do
17526  IFS=$as_save_IFS
17527  test -z "$as_dir" && as_dir=.
17528    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
17529  done
17530IFS=$as_save_IFS
17531
17532     ;;
17533esac
17534# We did not find ourselves, most probably we were run as `sh COMMAND'
17535# in which case we are not to be found in the path.
17536if test "x$as_myself" = x; then
17537  as_myself=$0
17538fi
17539if test ! -f "$as_myself"; then
17540  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
17541  exit 1
17542fi
17543
17544# Unset variables that we do not need and which cause bugs (e.g. in
17545# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
17546# suppresses any "Segmentation fault" message there.  '((' could
17547# trigger a bug in pdksh 5.2.14.
17548for as_var in BASH_ENV ENV MAIL MAILPATH
17549do eval test x\${$as_var+set} = xset \
17550  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
17551done
17552PS1='$ '
17553PS2='> '
17554PS4='+ '
17555
17556# NLS nuisances.
17557LC_ALL=C
17558export LC_ALL
17559LANGUAGE=C
17560export LANGUAGE
17561
17562# CDPATH.
17563(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
17564
17565
17566# as_fn_error STATUS ERROR [LINENO LOG_FD]
17567# ----------------------------------------
17568# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
17569# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
17570# script with STATUS, using 1 if that was 0.
17571as_fn_error ()
17572{
17573  as_status=$1; test $as_status -eq 0 && as_status=1
17574  if test "$4"; then
17575    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
17576    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
17577  fi
17578  $as_echo "$as_me: error: $2" >&2
17579  as_fn_exit $as_status
17580} # as_fn_error
17581
17582
17583# as_fn_set_status STATUS
17584# -----------------------
17585# Set $? to STATUS, without forking.
17586as_fn_set_status ()
17587{
17588  return $1
17589} # as_fn_set_status
17590
17591# as_fn_exit STATUS
17592# -----------------
17593# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
17594as_fn_exit ()
17595{
17596  set +e
17597  as_fn_set_status $1
17598  exit $1
17599} # as_fn_exit
17600
17601# as_fn_unset VAR
17602# ---------------
17603# Portably unset VAR.
17604as_fn_unset ()
17605{
17606  { eval $1=; unset $1;}
17607}
17608as_unset=as_fn_unset
17609# as_fn_append VAR VALUE
17610# ----------------------
17611# Append the text in VALUE to the end of the definition contained in VAR. Take
17612# advantage of any shell optimizations that allow amortized linear growth over
17613# repeated appends, instead of the typical quadratic growth present in naive
17614# implementations.
17615if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
17616  eval 'as_fn_append ()
17617  {
17618    eval $1+=\$2
17619  }'
17620else
17621  as_fn_append ()
17622  {
17623    eval $1=\$$1\$2
17624  }
17625fi # as_fn_append
17626
17627# as_fn_arith ARG...
17628# ------------------
17629# Perform arithmetic evaluation on the ARGs, and store the result in the
17630# global $as_val. Take advantage of shells that can avoid forks. The arguments
17631# must be portable across $(()) and expr.
17632if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
17633  eval 'as_fn_arith ()
17634  {
17635    as_val=$(( $* ))
17636  }'
17637else
17638  as_fn_arith ()
17639  {
17640    as_val=`expr "$@" || test $? -eq 1`
17641  }
17642fi # as_fn_arith
17643
17644
17645if expr a : '\(a\)' >/dev/null 2>&1 &&
17646   test "X`expr 00001 : '.*\(...\)'`" = X001; then
17647  as_expr=expr
17648else
17649  as_expr=false
17650fi
17651
17652if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
17653  as_basename=basename
17654else
17655  as_basename=false
17656fi
17657
17658if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
17659  as_dirname=dirname
17660else
17661  as_dirname=false
17662fi
17663
17664as_me=`$as_basename -- "$0" ||
17665$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
17666	 X"$0" : 'X\(//\)$' \| \
17667	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
17668$as_echo X/"$0" |
17669    sed '/^.*\/\([^/][^/]*\)\/*$/{
17670	    s//\1/
17671	    q
17672	  }
17673	  /^X\/\(\/\/\)$/{
17674	    s//\1/
17675	    q
17676	  }
17677	  /^X\/\(\/\).*/{
17678	    s//\1/
17679	    q
17680	  }
17681	  s/.*/./; q'`
17682
17683# Avoid depending upon Character Ranges.
17684as_cr_letters='abcdefghijklmnopqrstuvwxyz'
17685as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
17686as_cr_Letters=$as_cr_letters$as_cr_LETTERS
17687as_cr_digits='0123456789'
17688as_cr_alnum=$as_cr_Letters$as_cr_digits
17689
17690ECHO_C= ECHO_N= ECHO_T=
17691case `echo -n x` in #(((((
17692-n*)
17693  case `echo 'xy\c'` in
17694  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
17695  xy)  ECHO_C='\c';;
17696  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
17697       ECHO_T='	';;
17698  esac;;
17699*)
17700  ECHO_N='-n';;
17701esac
17702
17703rm -f conf$$ conf$$.exe conf$$.file
17704if test -d conf$$.dir; then
17705  rm -f conf$$.dir/conf$$.file
17706else
17707  rm -f conf$$.dir
17708  mkdir conf$$.dir 2>/dev/null
17709fi
17710if (echo >conf$$.file) 2>/dev/null; then
17711  if ln -s conf$$.file conf$$ 2>/dev/null; then
17712    as_ln_s='ln -s'
17713    # ... but there are two gotchas:
17714    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
17715    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
17716    # In both cases, we have to default to `cp -pR'.
17717    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
17718      as_ln_s='cp -pR'
17719  elif ln conf$$.file conf$$ 2>/dev/null; then
17720    as_ln_s=ln
17721  else
17722    as_ln_s='cp -pR'
17723  fi
17724else
17725  as_ln_s='cp -pR'
17726fi
17727rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
17728rmdir conf$$.dir 2>/dev/null
17729
17730
17731# as_fn_mkdir_p
17732# -------------
17733# Create "$as_dir" as a directory, including parents if necessary.
17734as_fn_mkdir_p ()
17735{
17736
17737  case $as_dir in #(
17738  -*) as_dir=./$as_dir;;
17739  esac
17740  test -d "$as_dir" || eval $as_mkdir_p || {
17741    as_dirs=
17742    while :; do
17743      case $as_dir in #(
17744      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
17745      *) as_qdir=$as_dir;;
17746      esac
17747      as_dirs="'$as_qdir' $as_dirs"
17748      as_dir=`$as_dirname -- "$as_dir" ||
17749$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17750	 X"$as_dir" : 'X\(//\)[^/]' \| \
17751	 X"$as_dir" : 'X\(//\)$' \| \
17752	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
17753$as_echo X"$as_dir" |
17754    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17755	    s//\1/
17756	    q
17757	  }
17758	  /^X\(\/\/\)[^/].*/{
17759	    s//\1/
17760	    q
17761	  }
17762	  /^X\(\/\/\)$/{
17763	    s//\1/
17764	    q
17765	  }
17766	  /^X\(\/\).*/{
17767	    s//\1/
17768	    q
17769	  }
17770	  s/.*/./; q'`
17771      test -d "$as_dir" && break
17772    done
17773    test -z "$as_dirs" || eval "mkdir $as_dirs"
17774  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
17775
17776
17777} # as_fn_mkdir_p
17778if mkdir -p . 2>/dev/null; then
17779  as_mkdir_p='mkdir -p "$as_dir"'
17780else
17781  test -d ./-p && rmdir ./-p
17782  as_mkdir_p=false
17783fi
17784
17785
17786# as_fn_executable_p FILE
17787# -----------------------
17788# Test if FILE is an executable regular file.
17789as_fn_executable_p ()
17790{
17791  test -f "$1" && test -x "$1"
17792} # as_fn_executable_p
17793as_test_x='test -x'
17794as_executable_p=as_fn_executable_p
17795
17796# Sed expression to map a string onto a valid CPP name.
17797as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
17798
17799# Sed expression to map a string onto a valid variable name.
17800as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
17801
17802
17803exec 6>&1
17804## ----------------------------------- ##
17805## Main body of $CONFIG_STATUS script. ##
17806## ----------------------------------- ##
17807_ASEOF
17808test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
17809
17810cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17811# Save the log message, to keep $0 and so on meaningful, and to
17812# report actual input values of CONFIG_FILES etc. instead of their
17813# values after options handling.
17814ac_log="
17815This file was extended by Automated Testing Framework $as_me 0.21, which was
17816generated by GNU Autoconf 2.69.  Invocation command line was
17817
17818  CONFIG_FILES    = $CONFIG_FILES
17819  CONFIG_HEADERS  = $CONFIG_HEADERS
17820  CONFIG_LINKS    = $CONFIG_LINKS
17821  CONFIG_COMMANDS = $CONFIG_COMMANDS
17822  $ $0 $@
17823
17824on `(hostname || uname -n) 2>/dev/null | sed 1q`
17825"
17826
17827_ACEOF
17828
17829case $ac_config_files in *"
17830"*) set x $ac_config_files; shift; ac_config_files=$*;;
17831esac
17832
17833case $ac_config_headers in *"
17834"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
17835esac
17836
17837
17838cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17839# Files that config.status was made for.
17840config_files="$ac_config_files"
17841config_headers="$ac_config_headers"
17842config_commands="$ac_config_commands"
17843
17844_ACEOF
17845
17846cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17847ac_cs_usage="\
17848\`$as_me' instantiates files and other configuration actions
17849from templates according to the current configuration.  Unless the files
17850and actions are specified as TAGs, all are instantiated by default.
17851
17852Usage: $0 [OPTION]... [TAG]...
17853
17854  -h, --help       print this help, then exit
17855  -V, --version    print version number and configuration settings, then exit
17856      --config     print configuration, then exit
17857  -q, --quiet, --silent
17858                   do not print progress messages
17859  -d, --debug      don't remove temporary files
17860      --recheck    update $as_me by reconfiguring in the same conditions
17861      --file=FILE[:TEMPLATE]
17862                   instantiate the configuration file FILE
17863      --header=FILE[:TEMPLATE]
17864                   instantiate the configuration header FILE
17865
17866Configuration files:
17867$config_files
17868
17869Configuration headers:
17870$config_headers
17871
17872Configuration commands:
17873$config_commands
17874
17875Report bugs to <atf-discuss@googlegroups.com>.
17876Automated Testing Framework home page: <https://github.com/jmmv/atf/>."
17877
17878_ACEOF
17879cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17880ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
17881ac_cs_version="\\
17882Automated Testing Framework config.status 0.21
17883configured by $0, generated by GNU Autoconf 2.69,
17884  with options \\"\$ac_cs_config\\"
17885
17886Copyright (C) 2012 Free Software Foundation, Inc.
17887This config.status script is free software; the Free Software Foundation
17888gives unlimited permission to copy, distribute and modify it."
17889
17890ac_pwd='$ac_pwd'
17891srcdir='$srcdir'
17892INSTALL='$INSTALL'
17893MKDIR_P='$MKDIR_P'
17894AWK='$AWK'
17895test -n "\$AWK" || AWK=awk
17896_ACEOF
17897
17898cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17899# The default lists apply if the user does not specify any file.
17900ac_need_defaults=:
17901while test $# != 0
17902do
17903  case $1 in
17904  --*=?*)
17905    ac_option=`expr "X$1" : 'X\([^=]*\)='`
17906    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
17907    ac_shift=:
17908    ;;
17909  --*=)
17910    ac_option=`expr "X$1" : 'X\([^=]*\)='`
17911    ac_optarg=
17912    ac_shift=:
17913    ;;
17914  *)
17915    ac_option=$1
17916    ac_optarg=$2
17917    ac_shift=shift
17918    ;;
17919  esac
17920
17921  case $ac_option in
17922  # Handling of the options.
17923  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
17924    ac_cs_recheck=: ;;
17925  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
17926    $as_echo "$ac_cs_version"; exit ;;
17927  --config | --confi | --conf | --con | --co | --c )
17928    $as_echo "$ac_cs_config"; exit ;;
17929  --debug | --debu | --deb | --de | --d | -d )
17930    debug=: ;;
17931  --file | --fil | --fi | --f )
17932    $ac_shift
17933    case $ac_optarg in
17934    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
17935    '') as_fn_error $? "missing file argument" ;;
17936    esac
17937    as_fn_append CONFIG_FILES " '$ac_optarg'"
17938    ac_need_defaults=false;;
17939  --header | --heade | --head | --hea )
17940    $ac_shift
17941    case $ac_optarg in
17942    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
17943    esac
17944    as_fn_append CONFIG_HEADERS " '$ac_optarg'"
17945    ac_need_defaults=false;;
17946  --he | --h)
17947    # Conflict between --help and --header
17948    as_fn_error $? "ambiguous option: \`$1'
17949Try \`$0 --help' for more information.";;
17950  --help | --hel | -h )
17951    $as_echo "$ac_cs_usage"; exit ;;
17952  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
17953  | -silent | --silent | --silen | --sile | --sil | --si | --s)
17954    ac_cs_silent=: ;;
17955
17956  # This is an error.
17957  -*) as_fn_error $? "unrecognized option: \`$1'
17958Try \`$0 --help' for more information." ;;
17959
17960  *) as_fn_append ac_config_targets " $1"
17961     ac_need_defaults=false ;;
17962
17963  esac
17964  shift
17965done
17966
17967ac_configure_extra_args=
17968
17969if $ac_cs_silent; then
17970  exec 6>/dev/null
17971  ac_configure_extra_args="$ac_configure_extra_args --silent"
17972fi
17973
17974_ACEOF
17975cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17976if \$ac_cs_recheck; then
17977  set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
17978  shift
17979  \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
17980  CONFIG_SHELL='$SHELL'
17981  export CONFIG_SHELL
17982  exec "\$@"
17983fi
17984
17985_ACEOF
17986cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17987exec 5>>config.log
17988{
17989  echo
17990  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
17991## Running $as_me. ##
17992_ASBOX
17993  $as_echo "$ac_log"
17994} >&5
17995
17996_ACEOF
17997cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17998#
17999# INIT-COMMANDS
18000#
18001
18002AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
18003
18004
18005# The HP-UX ksh and POSIX shell print the target directory to stdout
18006# if CDPATH is set.
18007(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
18008
18009sed_quote_subst='$sed_quote_subst'
18010double_quote_subst='$double_quote_subst'
18011delay_variable_subst='$delay_variable_subst'
18012macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
18013macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
18014enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
18015enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
18016pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
18017enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
18018SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
18019ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
18020PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
18021host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
18022host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
18023host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
18024build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
18025build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
18026build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
18027SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
18028Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
18029GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
18030EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
18031FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
18032LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
18033NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
18034LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
18035max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
18036ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
18037exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
18038lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
18039lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
18040lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
18041lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
18042lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
18043reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
18044reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
18045OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
18046deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
18047file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
18048file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
18049want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
18050DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
18051sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
18052AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
18053AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
18054archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
18055STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
18056RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
18057old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
18058old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
18059old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
18060lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
18061CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
18062CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
18063compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
18064GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
18065lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
18066lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
18067lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
18068lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
18069lt_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"`'
18070lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
18071nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
18072lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
18073objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
18074MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
18075lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
18076lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
18077lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
18078lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
18079lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
18080need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
18081MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
18082DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
18083NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
18084LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
18085OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
18086OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
18087libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
18088shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
18089extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
18090archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
18091enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
18092export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
18093whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
18094compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
18095old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
18096old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
18097archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
18098archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
18099module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
18100module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
18101with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
18102allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
18103no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
18104hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
18105hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
18106hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
18107hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
18108hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
18109hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
18110hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
18111inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
18112link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
18113always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
18114export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
18115exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
18116include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
18117prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
18118postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
18119file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
18120variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
18121need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
18122need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
18123version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
18124runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
18125shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
18126shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
18127libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
18128library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
18129soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
18130install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
18131postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
18132postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
18133finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
18134finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
18135hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
18136sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
18137sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
18138hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
18139enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
18140enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
18141enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
18142old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
18143striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
18144compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
18145predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
18146postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
18147predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
18148postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
18149compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
18150LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
18151reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
18152reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18153old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18154compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
18155GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
18156lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
18157lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
18158lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
18159lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
18160lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
18161archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
18162enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
18163export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
18164whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
18165compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
18166old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18167old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18168archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18169archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18170module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18171module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18172with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
18173allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
18174no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
18175hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
18176hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
18177hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
18178hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
18179hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
18180hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
18181hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
18182inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
18183link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
18184always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
18185export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18186exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
18187include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
18188prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18189postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18190file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
18191hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
18192compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
18193predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
18194postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
18195predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
18196postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
18197compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
18198
18199LTCC='$LTCC'
18200LTCFLAGS='$LTCFLAGS'
18201compiler='$compiler_DEFAULT'
18202
18203# A function that is used when there is no print builtin or printf.
18204func_fallback_echo ()
18205{
18206  eval 'cat <<_LTECHO_EOF
18207\$1
18208_LTECHO_EOF'
18209}
18210
18211# Quote evaled strings.
18212for var in SHELL \
18213ECHO \
18214PATH_SEPARATOR \
18215SED \
18216GREP \
18217EGREP \
18218FGREP \
18219LD \
18220NM \
18221LN_S \
18222lt_SP2NL \
18223lt_NL2SP \
18224reload_flag \
18225OBJDUMP \
18226deplibs_check_method \
18227file_magic_cmd \
18228file_magic_glob \
18229want_nocaseglob \
18230DLLTOOL \
18231sharedlib_from_linklib_cmd \
18232AR \
18233AR_FLAGS \
18234archiver_list_spec \
18235STRIP \
18236RANLIB \
18237CC \
18238CFLAGS \
18239compiler \
18240lt_cv_sys_global_symbol_pipe \
18241lt_cv_sys_global_symbol_to_cdecl \
18242lt_cv_sys_global_symbol_to_import \
18243lt_cv_sys_global_symbol_to_c_name_address \
18244lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
18245lt_cv_nm_interface \
18246nm_file_list_spec \
18247lt_prog_compiler_no_builtin_flag \
18248lt_prog_compiler_pic \
18249lt_prog_compiler_wl \
18250lt_prog_compiler_static \
18251lt_cv_prog_compiler_c_o \
18252need_locks \
18253MANIFEST_TOOL \
18254DSYMUTIL \
18255NMEDIT \
18256LIPO \
18257OTOOL \
18258OTOOL64 \
18259shrext_cmds \
18260export_dynamic_flag_spec \
18261whole_archive_flag_spec \
18262compiler_needs_object \
18263with_gnu_ld \
18264allow_undefined_flag \
18265no_undefined_flag \
18266hardcode_libdir_flag_spec \
18267hardcode_libdir_separator \
18268exclude_expsyms \
18269include_expsyms \
18270file_list_spec \
18271variables_saved_for_relink \
18272libname_spec \
18273library_names_spec \
18274soname_spec \
18275install_override_mode \
18276finish_eval \
18277old_striplib \
18278striplib \
18279compiler_lib_search_dirs \
18280predep_objects \
18281postdep_objects \
18282predeps \
18283postdeps \
18284compiler_lib_search_path \
18285LD_CXX \
18286reload_flag_CXX \
18287compiler_CXX \
18288lt_prog_compiler_no_builtin_flag_CXX \
18289lt_prog_compiler_pic_CXX \
18290lt_prog_compiler_wl_CXX \
18291lt_prog_compiler_static_CXX \
18292lt_cv_prog_compiler_c_o_CXX \
18293export_dynamic_flag_spec_CXX \
18294whole_archive_flag_spec_CXX \
18295compiler_needs_object_CXX \
18296with_gnu_ld_CXX \
18297allow_undefined_flag_CXX \
18298no_undefined_flag_CXX \
18299hardcode_libdir_flag_spec_CXX \
18300hardcode_libdir_separator_CXX \
18301exclude_expsyms_CXX \
18302include_expsyms_CXX \
18303file_list_spec_CXX \
18304compiler_lib_search_dirs_CXX \
18305predep_objects_CXX \
18306postdep_objects_CXX \
18307predeps_CXX \
18308postdeps_CXX \
18309compiler_lib_search_path_CXX; do
18310    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
18311    *[\\\\\\\`\\"\\\$]*)
18312      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
18313      ;;
18314    *)
18315      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
18316      ;;
18317    esac
18318done
18319
18320# Double-quote double-evaled strings.
18321for var in reload_cmds \
18322old_postinstall_cmds \
18323old_postuninstall_cmds \
18324old_archive_cmds \
18325extract_expsyms_cmds \
18326old_archive_from_new_cmds \
18327old_archive_from_expsyms_cmds \
18328archive_cmds \
18329archive_expsym_cmds \
18330module_cmds \
18331module_expsym_cmds \
18332export_symbols_cmds \
18333prelink_cmds \
18334postlink_cmds \
18335postinstall_cmds \
18336postuninstall_cmds \
18337finish_cmds \
18338sys_lib_search_path_spec \
18339sys_lib_dlsearch_path_spec \
18340reload_cmds_CXX \
18341old_archive_cmds_CXX \
18342old_archive_from_new_cmds_CXX \
18343old_archive_from_expsyms_cmds_CXX \
18344archive_cmds_CXX \
18345archive_expsym_cmds_CXX \
18346module_cmds_CXX \
18347module_expsym_cmds_CXX \
18348export_symbols_cmds_CXX \
18349prelink_cmds_CXX \
18350postlink_cmds_CXX; do
18351    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
18352    *[\\\\\\\`\\"\\\$]*)
18353      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
18354      ;;
18355    *)
18356      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
18357      ;;
18358    esac
18359done
18360
18361ac_aux_dir='$ac_aux_dir'
18362
18363# See if we are running on zsh, and set the options that allow our
18364# commands through without removal of \ escapes INIT.
18365if test -n "\${ZSH_VERSION+set}"; then
18366   setopt NO_GLOB_SUBST
18367fi
18368
18369
18370    PACKAGE='$PACKAGE'
18371    VERSION='$VERSION'
18372    RM='$RM'
18373    ofile='$ofile'
18374
18375
18376
18377
18378
18379
18380_ACEOF
18381
18382cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18383
18384# Handling of arguments.
18385for ac_config_target in $ac_config_targets
18386do
18387  case $ac_config_target in
18388    "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
18389    "bootstrap/atconfig") CONFIG_COMMANDS="$CONFIG_COMMANDS bootstrap/atconfig" ;;
18390    "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
18391    "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
18392    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
18393    "atf-c/defs.h") CONFIG_FILES="$CONFIG_FILES atf-c/defs.h" ;;
18394
18395  *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
18396  esac
18397done
18398
18399
18400# If the user did not use the arguments to specify the items to instantiate,
18401# then the envvar interface is used.  Set only those that are not.
18402# We use the long form for the default assignment because of an extremely
18403# bizarre bug on SunOS 4.1.3.
18404if $ac_need_defaults; then
18405  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
18406  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
18407  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
18408fi
18409
18410# Have a temporary directory for convenience.  Make it in the build tree
18411# simply because there is no reason against having it here, and in addition,
18412# creating and moving files from /tmp can sometimes cause problems.
18413# Hook for its removal unless debugging.
18414# Note that there is a small window in which the directory will not be cleaned:
18415# after its creation but before its name has been assigned to `$tmp'.
18416$debug ||
18417{
18418  tmp= ac_tmp=
18419  trap 'exit_status=$?
18420  : "${ac_tmp:=$tmp}"
18421  { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
18422' 0
18423  trap 'as_fn_exit 1' 1 2 13 15
18424}
18425# Create a (secure) tmp directory for tmp files.
18426
18427{
18428  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
18429  test -d "$tmp"
18430}  ||
18431{
18432  tmp=./conf$$-$RANDOM
18433  (umask 077 && mkdir "$tmp")
18434} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
18435ac_tmp=$tmp
18436
18437# Set up the scripts for CONFIG_FILES section.
18438# No need to generate them if there are no CONFIG_FILES.
18439# This happens for instance with `./config.status config.h'.
18440if test -n "$CONFIG_FILES"; then
18441
18442
18443ac_cr=`echo X | tr X '\015'`
18444# On cygwin, bash can eat \r inside `` if the user requested igncr.
18445# But we know of no other shell where ac_cr would be empty at this
18446# point, so we can use a bashism as a fallback.
18447if test "x$ac_cr" = x; then
18448  eval ac_cr=\$\'\\r\'
18449fi
18450ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
18451if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
18452  ac_cs_awk_cr='\\r'
18453else
18454  ac_cs_awk_cr=$ac_cr
18455fi
18456
18457echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
18458_ACEOF
18459
18460
18461{
18462  echo "cat >conf$$subs.awk <<_ACEOF" &&
18463  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
18464  echo "_ACEOF"
18465} >conf$$subs.sh ||
18466  as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
18467ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
18468ac_delim='%!_!# '
18469for ac_last_try in false false false false false :; do
18470  . ./conf$$subs.sh ||
18471    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
18472
18473  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
18474  if test $ac_delim_n = $ac_delim_num; then
18475    break
18476  elif $ac_last_try; then
18477    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
18478  else
18479    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
18480  fi
18481done
18482rm -f conf$$subs.sh
18483
18484cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18485cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
18486_ACEOF
18487sed -n '
18488h
18489s/^/S["/; s/!.*/"]=/
18490p
18491g
18492s/^[^!]*!//
18493:repl
18494t repl
18495s/'"$ac_delim"'$//
18496t delim
18497:nl
18498h
18499s/\(.\{148\}\)..*/\1/
18500t more1
18501s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
18502p
18503n
18504b repl
18505:more1
18506s/["\\]/\\&/g; s/^/"/; s/$/"\\/
18507p
18508g
18509s/.\{148\}//
18510t nl
18511:delim
18512h
18513s/\(.\{148\}\)..*/\1/
18514t more2
18515s/["\\]/\\&/g; s/^/"/; s/$/"/
18516p
18517b
18518:more2
18519s/["\\]/\\&/g; s/^/"/; s/$/"\\/
18520p
18521g
18522s/.\{148\}//
18523t delim
18524' <conf$$subs.awk | sed '
18525/^[^""]/{
18526  N
18527  s/\n//
18528}
18529' >>$CONFIG_STATUS || ac_write_fail=1
18530rm -f conf$$subs.awk
18531cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18532_ACAWK
18533cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
18534  for (key in S) S_is_set[key] = 1
18535  FS = ""
18536
18537}
18538{
18539  line = $ 0
18540  nfields = split(line, field, "@")
18541  substed = 0
18542  len = length(field[1])
18543  for (i = 2; i < nfields; i++) {
18544    key = field[i]
18545    keylen = length(key)
18546    if (S_is_set[key]) {
18547      value = S[key]
18548      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
18549      len += length(value) + length(field[++i])
18550      substed = 1
18551    } else
18552      len += 1 + keylen
18553  }
18554
18555  print line
18556}
18557
18558_ACAWK
18559_ACEOF
18560cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18561if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
18562  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
18563else
18564  cat
18565fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
18566  || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
18567_ACEOF
18568
18569# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
18570# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
18571# trailing colons and then remove the whole line if VPATH becomes empty
18572# (actually we leave an empty line to preserve line numbers).
18573if test "x$srcdir" = x.; then
18574  ac_vpsub='/^[	 ]*VPATH[	 ]*=[	 ]*/{
18575h
18576s///
18577s/^/:/
18578s/[	 ]*$/:/
18579s/:\$(srcdir):/:/g
18580s/:\${srcdir}:/:/g
18581s/:@srcdir@:/:/g
18582s/^:*//
18583s/:*$//
18584x
18585s/\(=[	 ]*\).*/\1/
18586G
18587s/\n//
18588s/^[^=]*=[	 ]*$//
18589}'
18590fi
18591
18592cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18593fi # test -n "$CONFIG_FILES"
18594
18595# Set up the scripts for CONFIG_HEADERS section.
18596# No need to generate them if there are no CONFIG_HEADERS.
18597# This happens for instance with `./config.status Makefile'.
18598if test -n "$CONFIG_HEADERS"; then
18599cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
18600BEGIN {
18601_ACEOF
18602
18603# Transform confdefs.h into an awk script `defines.awk', embedded as
18604# here-document in config.status, that substitutes the proper values into
18605# config.h.in to produce config.h.
18606
18607# Create a delimiter string that does not exist in confdefs.h, to ease
18608# handling of long lines.
18609ac_delim='%!_!# '
18610for ac_last_try in false false :; do
18611  ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
18612  if test -z "$ac_tt"; then
18613    break
18614  elif $ac_last_try; then
18615    as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
18616  else
18617    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
18618  fi
18619done
18620
18621# For the awk script, D is an array of macro values keyed by name,
18622# likewise P contains macro parameters if any.  Preserve backslash
18623# newline sequences.
18624
18625ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
18626sed -n '
18627s/.\{148\}/&'"$ac_delim"'/g
18628t rset
18629:rset
18630s/^[	 ]*#[	 ]*define[	 ][	 ]*/ /
18631t def
18632d
18633:def
18634s/\\$//
18635t bsnl
18636s/["\\]/\\&/g
18637s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
18638D["\1"]=" \3"/p
18639s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2"/p
18640d
18641:bsnl
18642s/["\\]/\\&/g
18643s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
18644D["\1"]=" \3\\\\\\n"\\/p
18645t cont
18646s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
18647t cont
18648d
18649:cont
18650n
18651s/.\{148\}/&'"$ac_delim"'/g
18652t clear
18653:clear
18654s/\\$//
18655t bsnlc
18656s/["\\]/\\&/g; s/^/"/; s/$/"/p
18657d
18658:bsnlc
18659s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
18660b cont
18661' <confdefs.h | sed '
18662s/'"$ac_delim"'/"\\\
18663"/g' >>$CONFIG_STATUS || ac_write_fail=1
18664
18665cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18666  for (key in D) D_is_set[key] = 1
18667  FS = ""
18668}
18669/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
18670  line = \$ 0
18671  split(line, arg, " ")
18672  if (arg[1] == "#") {
18673    defundef = arg[2]
18674    mac1 = arg[3]
18675  } else {
18676    defundef = substr(arg[1], 2)
18677    mac1 = arg[2]
18678  }
18679  split(mac1, mac2, "(") #)
18680  macro = mac2[1]
18681  prefix = substr(line, 1, index(line, defundef) - 1)
18682  if (D_is_set[macro]) {
18683    # Preserve the white space surrounding the "#".
18684    print prefix "define", macro P[macro] D[macro]
18685    next
18686  } else {
18687    # Replace #undef with comments.  This is necessary, for example,
18688    # in the case of _POSIX_SOURCE, which is predefined and required
18689    # on some systems where configure will not decide to define it.
18690    if (defundef == "undef") {
18691      print "/*", prefix defundef, macro, "*/"
18692      next
18693    }
18694  }
18695}
18696{ print }
18697_ACAWK
18698_ACEOF
18699cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18700  as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
18701fi # test -n "$CONFIG_HEADERS"
18702
18703
18704eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
18705shift
18706for ac_tag
18707do
18708  case $ac_tag in
18709  :[FHLC]) ac_mode=$ac_tag; continue;;
18710  esac
18711  case $ac_mode$ac_tag in
18712  :[FHL]*:*);;
18713  :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
18714  :[FH]-) ac_tag=-:-;;
18715  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
18716  esac
18717  ac_save_IFS=$IFS
18718  IFS=:
18719  set x $ac_tag
18720  IFS=$ac_save_IFS
18721  shift
18722  ac_file=$1
18723  shift
18724
18725  case $ac_mode in
18726  :L) ac_source=$1;;
18727  :[FH])
18728    ac_file_inputs=
18729    for ac_f
18730    do
18731      case $ac_f in
18732      -) ac_f="$ac_tmp/stdin";;
18733      *) # Look for the file first in the build tree, then in the source tree
18734	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
18735	 # because $ac_f cannot contain `:'.
18736	 test -f "$ac_f" ||
18737	   case $ac_f in
18738	   [\\/$]*) false;;
18739	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
18740	   esac ||
18741	   as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
18742      esac
18743      case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
18744      as_fn_append ac_file_inputs " '$ac_f'"
18745    done
18746
18747    # Let's still pretend it is `configure' which instantiates (i.e., don't
18748    # use $as_me), people would be surprised to read:
18749    #    /* config.h.  Generated by config.status.  */
18750    configure_input='Generated from '`
18751	  $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
18752	`' by configure.'
18753    if test x"$ac_file" != x-; then
18754      configure_input="$ac_file.  $configure_input"
18755      { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
18756$as_echo "$as_me: creating $ac_file" >&6;}
18757    fi
18758    # Neutralize special characters interpreted by sed in replacement strings.
18759    case $configure_input in #(
18760    *\&* | *\|* | *\\* )
18761       ac_sed_conf_input=`$as_echo "$configure_input" |
18762       sed 's/[\\\\&|]/\\\\&/g'`;; #(
18763    *) ac_sed_conf_input=$configure_input;;
18764    esac
18765
18766    case $ac_tag in
18767    *:-:* | *:-) cat >"$ac_tmp/stdin" \
18768      || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
18769    esac
18770    ;;
18771  esac
18772
18773  ac_dir=`$as_dirname -- "$ac_file" ||
18774$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18775	 X"$ac_file" : 'X\(//\)[^/]' \| \
18776	 X"$ac_file" : 'X\(//\)$' \| \
18777	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
18778$as_echo X"$ac_file" |
18779    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18780	    s//\1/
18781	    q
18782	  }
18783	  /^X\(\/\/\)[^/].*/{
18784	    s//\1/
18785	    q
18786	  }
18787	  /^X\(\/\/\)$/{
18788	    s//\1/
18789	    q
18790	  }
18791	  /^X\(\/\).*/{
18792	    s//\1/
18793	    q
18794	  }
18795	  s/.*/./; q'`
18796  as_dir="$ac_dir"; as_fn_mkdir_p
18797  ac_builddir=.
18798
18799case "$ac_dir" in
18800.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
18801*)
18802  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
18803  # A ".." for each directory in $ac_dir_suffix.
18804  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
18805  case $ac_top_builddir_sub in
18806  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
18807  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
18808  esac ;;
18809esac
18810ac_abs_top_builddir=$ac_pwd
18811ac_abs_builddir=$ac_pwd$ac_dir_suffix
18812# for backward compatibility:
18813ac_top_builddir=$ac_top_build_prefix
18814
18815case $srcdir in
18816  .)  # We are building in place.
18817    ac_srcdir=.
18818    ac_top_srcdir=$ac_top_builddir_sub
18819    ac_abs_top_srcdir=$ac_pwd ;;
18820  [\\/]* | ?:[\\/]* )  # Absolute name.
18821    ac_srcdir=$srcdir$ac_dir_suffix;
18822    ac_top_srcdir=$srcdir
18823    ac_abs_top_srcdir=$srcdir ;;
18824  *) # Relative name.
18825    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
18826    ac_top_srcdir=$ac_top_build_prefix$srcdir
18827    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
18828esac
18829ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
18830
18831
18832  case $ac_mode in
18833  :F)
18834  #
18835  # CONFIG_FILE
18836  #
18837
18838  case $INSTALL in
18839  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
18840  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
18841  esac
18842  ac_MKDIR_P=$MKDIR_P
18843  case $MKDIR_P in
18844  [\\/$]* | ?:[\\/]* ) ;;
18845  */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
18846  esac
18847_ACEOF
18848
18849cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18850# If the template does not know about datarootdir, expand it.
18851# FIXME: This hack should be removed a few years after 2.60.
18852ac_datarootdir_hack=; ac_datarootdir_seen=
18853ac_sed_dataroot='
18854/datarootdir/ {
18855  p
18856  q
18857}
18858/@datadir@/p
18859/@docdir@/p
18860/@infodir@/p
18861/@localedir@/p
18862/@mandir@/p'
18863case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
18864*datarootdir*) ac_datarootdir_seen=yes;;
18865*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
18866  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
18867$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
18868_ACEOF
18869cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18870  ac_datarootdir_hack='
18871  s&@datadir@&$datadir&g
18872  s&@docdir@&$docdir&g
18873  s&@infodir@&$infodir&g
18874  s&@localedir@&$localedir&g
18875  s&@mandir@&$mandir&g
18876  s&\\\${datarootdir}&$datarootdir&g' ;;
18877esac
18878_ACEOF
18879
18880# Neutralize VPATH when `$srcdir' = `.'.
18881# Shell code in configure.ac might set extrasub.
18882# FIXME: do we really want to maintain this feature?
18883cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18884ac_sed_extra="$ac_vpsub
18885$extrasub
18886_ACEOF
18887cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18888:t
18889/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
18890s|@configure_input@|$ac_sed_conf_input|;t t
18891s&@top_builddir@&$ac_top_builddir_sub&;t t
18892s&@top_build_prefix@&$ac_top_build_prefix&;t t
18893s&@srcdir@&$ac_srcdir&;t t
18894s&@abs_srcdir@&$ac_abs_srcdir&;t t
18895s&@top_srcdir@&$ac_top_srcdir&;t t
18896s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
18897s&@builddir@&$ac_builddir&;t t
18898s&@abs_builddir@&$ac_abs_builddir&;t t
18899s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
18900s&@INSTALL@&$ac_INSTALL&;t t
18901s&@MKDIR_P@&$ac_MKDIR_P&;t t
18902$ac_datarootdir_hack
18903"
18904eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
18905  >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
18906
18907test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
18908  { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
18909  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' \
18910      "$ac_tmp/out"`; test -z "$ac_out"; } &&
18911  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
18912which seems to be undefined.  Please make sure it is defined" >&5
18913$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
18914which seems to be undefined.  Please make sure it is defined" >&2;}
18915
18916  rm -f "$ac_tmp/stdin"
18917  case $ac_file in
18918  -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
18919  *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
18920  esac \
18921  || as_fn_error $? "could not create $ac_file" "$LINENO" 5
18922 ;;
18923  :H)
18924  #
18925  # CONFIG_HEADER
18926  #
18927  if test x"$ac_file" != x-; then
18928    {
18929      $as_echo "/* $configure_input  */" \
18930      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
18931    } >"$ac_tmp/config.h" \
18932      || as_fn_error $? "could not create $ac_file" "$LINENO" 5
18933    if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
18934      { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
18935$as_echo "$as_me: $ac_file is unchanged" >&6;}
18936    else
18937      rm -f "$ac_file"
18938      mv "$ac_tmp/config.h" "$ac_file" \
18939	|| as_fn_error $? "could not create $ac_file" "$LINENO" 5
18940    fi
18941  else
18942    $as_echo "/* $configure_input  */" \
18943      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
18944      || as_fn_error $? "could not create -" "$LINENO" 5
18945  fi
18946# Compute "$ac_file"'s index in $config_headers.
18947_am_arg="$ac_file"
18948_am_stamp_count=1
18949for _am_header in $config_headers :; do
18950  case $_am_header in
18951    $_am_arg | $_am_arg:* )
18952      break ;;
18953    * )
18954      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
18955  esac
18956done
18957echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
18958$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18959	 X"$_am_arg" : 'X\(//\)[^/]' \| \
18960	 X"$_am_arg" : 'X\(//\)$' \| \
18961	 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
18962$as_echo X"$_am_arg" |
18963    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18964	    s//\1/
18965	    q
18966	  }
18967	  /^X\(\/\/\)[^/].*/{
18968	    s//\1/
18969	    q
18970	  }
18971	  /^X\(\/\/\)$/{
18972	    s//\1/
18973	    q
18974	  }
18975	  /^X\(\/\).*/{
18976	    s//\1/
18977	    q
18978	  }
18979	  s/.*/./; q'`/stamp-h$_am_stamp_count
18980 ;;
18981
18982  :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
18983$as_echo "$as_me: executing $ac_file commands" >&6;}
18984 ;;
18985  esac
18986
18987
18988  case $ac_file$ac_mode in
18989    "bootstrap/atconfig":C) cat >bootstrap/atconfig <<ATEOF
18990# Configurable variable values for building test suites.
18991# Generated by $0.
18992# Copyright (C) 2012 Free Software Foundation, Inc.
18993
18994# The test suite will define top_srcdir=$at_top_srcdir/../.. etc.
18995at_testdir='bootstrap'
18996abs_builddir='$ac_abs_builddir'
18997at_srcdir='$ac_srcdir'
18998abs_srcdir='$ac_abs_srcdir'
18999at_top_srcdir='$ac_top_srcdir'
19000abs_top_srcdir='$ac_abs_top_srcdir'
19001at_top_build_prefix='$ac_top_build_prefix'
19002abs_top_builddir='$ac_abs_top_builddir'
19003
19004# Backward compatibility with Autotest <= 2.59b:
19005at_top_builddir=\$at_top_build_prefix
19006
19007AUTOTEST_PATH='bootstrap'
19008
19009SHELL=\${CONFIG_SHELL-'$SHELL'}
19010ATEOF
19011 ;;
19012    "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
19013  # Older Autoconf quotes --file arguments for eval, but not when files
19014  # are listed without --file.  Let's play safe and only enable the eval
19015  # if we detect the quoting.
19016  case $CONFIG_FILES in
19017  *\'*) eval set x "$CONFIG_FILES" ;;
19018  *)   set x $CONFIG_FILES ;;
19019  esac
19020  shift
19021  for mf
19022  do
19023    # Strip MF so we end up with the name of the file.
19024    mf=`echo "$mf" | sed -e 's/:.*$//'`
19025    # Check whether this is an Automake generated Makefile or not.
19026    # We used to match only the files named 'Makefile.in', but
19027    # some people rename them; so instead we look at the file content.
19028    # Grep'ing the first line is not enough: some people post-process
19029    # each Makefile.in and add a new line on top of each file to say so.
19030    # Grep'ing the whole file is not good either: AIX grep has a line
19031    # limit of 2048, but all sed's we know have understand at least 4000.
19032    if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
19033      dirpart=`$as_dirname -- "$mf" ||
19034$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19035	 X"$mf" : 'X\(//\)[^/]' \| \
19036	 X"$mf" : 'X\(//\)$' \| \
19037	 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
19038$as_echo X"$mf" |
19039    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19040	    s//\1/
19041	    q
19042	  }
19043	  /^X\(\/\/\)[^/].*/{
19044	    s//\1/
19045	    q
19046	  }
19047	  /^X\(\/\/\)$/{
19048	    s//\1/
19049	    q
19050	  }
19051	  /^X\(\/\).*/{
19052	    s//\1/
19053	    q
19054	  }
19055	  s/.*/./; q'`
19056    else
19057      continue
19058    fi
19059    # Extract the definition of DEPDIR, am__include, and am__quote
19060    # from the Makefile without running 'make'.
19061    DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
19062    test -z "$DEPDIR" && continue
19063    am__include=`sed -n 's/^am__include = //p' < "$mf"`
19064    test -z "$am__include" && continue
19065    am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
19066    # Find all dependency output files, they are included files with
19067    # $(DEPDIR) in their names.  We invoke sed twice because it is the
19068    # simplest approach to changing $(DEPDIR) to its actual value in the
19069    # expansion.
19070    for file in `sed -n "
19071      s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
19072	 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
19073      # Make sure the directory exists.
19074      test -f "$dirpart/$file" && continue
19075      fdir=`$as_dirname -- "$file" ||
19076$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19077	 X"$file" : 'X\(//\)[^/]' \| \
19078	 X"$file" : 'X\(//\)$' \| \
19079	 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
19080$as_echo X"$file" |
19081    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19082	    s//\1/
19083	    q
19084	  }
19085	  /^X\(\/\/\)[^/].*/{
19086	    s//\1/
19087	    q
19088	  }
19089	  /^X\(\/\/\)$/{
19090	    s//\1/
19091	    q
19092	  }
19093	  /^X\(\/\).*/{
19094	    s//\1/
19095	    q
19096	  }
19097	  s/.*/./; q'`
19098      as_dir=$dirpart/$fdir; as_fn_mkdir_p
19099      # echo "creating $dirpart/$file"
19100      echo '# dummy' > "$dirpart/$file"
19101    done
19102  done
19103}
19104 ;;
19105    "libtool":C)
19106
19107    # See if we are running on zsh, and set the options that allow our
19108    # commands through without removal of \ escapes.
19109    if test -n "${ZSH_VERSION+set}"; then
19110      setopt NO_GLOB_SUBST
19111    fi
19112
19113    cfgfile=${ofile}T
19114    trap "$RM \"$cfgfile\"; exit 1" 1 2 15
19115    $RM "$cfgfile"
19116
19117    cat <<_LT_EOF >> "$cfgfile"
19118#! $SHELL
19119
19120# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
19121# Generated automatically by $as_me ($PACKAGE) $VERSION
19122# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19123# NOTE: Changes made to this file will be lost: look at ltmain.sh.
19124#
19125#   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
19126#                 2006, 2007, 2008, 2009, 2010, 2011 Free Software
19127#                 Foundation, Inc.
19128#   Written by Gordon Matzigkeit, 1996
19129#
19130#   This file is part of GNU Libtool.
19131#
19132# GNU Libtool is free software; you can redistribute it and/or
19133# modify it under the terms of the GNU General Public License as
19134# published by the Free Software Foundation; either version 2 of
19135# the License, or (at your option) any later version.
19136#
19137# As a special exception to the GNU General Public License,
19138# if you distribute this file as part of a program or library that
19139# is built using GNU Libtool, you may include this file under the
19140# same distribution terms that you use for the rest of that program.
19141#
19142# GNU Libtool is distributed in the hope that it will be useful,
19143# but WITHOUT ANY WARRANTY; without even the implied warranty of
19144# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
19145# GNU General Public License for more details.
19146#
19147# You should have received a copy of the GNU General Public License
19148# along with GNU Libtool; see the file COPYING.  If not, a copy
19149# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
19150# obtained by writing to the Free Software Foundation, Inc.,
19151# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
19152
19153
19154# The names of the tagged configurations supported by this script.
19155available_tags='CXX '
19156
19157# ### BEGIN LIBTOOL CONFIG
19158
19159# Which release of libtool.m4 was used?
19160macro_version=$macro_version
19161macro_revision=$macro_revision
19162
19163# Whether or not to build shared libraries.
19164build_libtool_libs=$enable_shared
19165
19166# Whether or not to build static libraries.
19167build_old_libs=$enable_static
19168
19169# What type of objects to build.
19170pic_mode=$pic_mode
19171
19172# Whether or not to optimize for fast installation.
19173fast_install=$enable_fast_install
19174
19175# Shell to use when invoking shell scripts.
19176SHELL=$lt_SHELL
19177
19178# An echo program that protects backslashes.
19179ECHO=$lt_ECHO
19180
19181# The PATH separator for the build system.
19182PATH_SEPARATOR=$lt_PATH_SEPARATOR
19183
19184# The host system.
19185host_alias=$host_alias
19186host=$host
19187host_os=$host_os
19188
19189# The build system.
19190build_alias=$build_alias
19191build=$build
19192build_os=$build_os
19193
19194# A sed program that does not truncate output.
19195SED=$lt_SED
19196
19197# Sed that helps us avoid accidentally triggering echo(1) options like -n.
19198Xsed="\$SED -e 1s/^X//"
19199
19200# A grep program that handles long lines.
19201GREP=$lt_GREP
19202
19203# An ERE matcher.
19204EGREP=$lt_EGREP
19205
19206# A literal string matcher.
19207FGREP=$lt_FGREP
19208
19209# A BSD- or MS-compatible name lister.
19210NM=$lt_NM
19211
19212# Whether we need soft or hard links.
19213LN_S=$lt_LN_S
19214
19215# What is the maximum length of a command?
19216max_cmd_len=$max_cmd_len
19217
19218# Object file suffix (normally "o").
19219objext=$ac_objext
19220
19221# Executable file suffix (normally "").
19222exeext=$exeext
19223
19224# whether the shell understands "unset".
19225lt_unset=$lt_unset
19226
19227# turn spaces into newlines.
19228SP2NL=$lt_lt_SP2NL
19229
19230# turn newlines into spaces.
19231NL2SP=$lt_lt_NL2SP
19232
19233# convert \$build file names to \$host format.
19234to_host_file_cmd=$lt_cv_to_host_file_cmd
19235
19236# convert \$build files to toolchain format.
19237to_tool_file_cmd=$lt_cv_to_tool_file_cmd
19238
19239# An object symbol dumper.
19240OBJDUMP=$lt_OBJDUMP
19241
19242# Method to check whether dependent libraries are shared objects.
19243deplibs_check_method=$lt_deplibs_check_method
19244
19245# Command to use when deplibs_check_method = "file_magic".
19246file_magic_cmd=$lt_file_magic_cmd
19247
19248# How to find potential files when deplibs_check_method = "file_magic".
19249file_magic_glob=$lt_file_magic_glob
19250
19251# Find potential files using nocaseglob when deplibs_check_method = "file_magic".
19252want_nocaseglob=$lt_want_nocaseglob
19253
19254# DLL creation program.
19255DLLTOOL=$lt_DLLTOOL
19256
19257# Command to associate shared and link libraries.
19258sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
19259
19260# The archiver.
19261AR=$lt_AR
19262
19263# Flags to create an archive.
19264AR_FLAGS=$lt_AR_FLAGS
19265
19266# How to feed a file listing to the archiver.
19267archiver_list_spec=$lt_archiver_list_spec
19268
19269# A symbol stripping program.
19270STRIP=$lt_STRIP
19271
19272# Commands used to install an old-style archive.
19273RANLIB=$lt_RANLIB
19274old_postinstall_cmds=$lt_old_postinstall_cmds
19275old_postuninstall_cmds=$lt_old_postuninstall_cmds
19276
19277# Whether to use a lock for old archive extraction.
19278lock_old_archive_extraction=$lock_old_archive_extraction
19279
19280# A C compiler.
19281LTCC=$lt_CC
19282
19283# LTCC compiler flags.
19284LTCFLAGS=$lt_CFLAGS
19285
19286# Take the output of nm and produce a listing of raw symbols and C names.
19287global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19288
19289# Transform the output of nm in a proper C declaration.
19290global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19291
19292# Transform the output of nm into a list of symbols to manually relocate.
19293global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
19294
19295# Transform the output of nm in a C name address pair.
19296global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19297
19298# Transform the output of nm in a C name address pair when lib prefix is needed.
19299global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
19300
19301# The name lister interface.
19302nm_interface=$lt_lt_cv_nm_interface
19303
19304# Specify filename containing input files for \$NM.
19305nm_file_list_spec=$lt_nm_file_list_spec
19306
19307# The root where to search for dependent libraries,and where our libraries should be installed.
19308lt_sysroot=$lt_sysroot
19309
19310# The name of the directory that contains temporary libtool files.
19311objdir=$objdir
19312
19313# Used to examine libraries when file_magic_cmd begins with "file".
19314MAGIC_CMD=$MAGIC_CMD
19315
19316# Must we lock files when doing compilation?
19317need_locks=$lt_need_locks
19318
19319# Manifest tool.
19320MANIFEST_TOOL=$lt_MANIFEST_TOOL
19321
19322# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
19323DSYMUTIL=$lt_DSYMUTIL
19324
19325# Tool to change global to local symbols on Mac OS X.
19326NMEDIT=$lt_NMEDIT
19327
19328# Tool to manipulate fat objects and archives on Mac OS X.
19329LIPO=$lt_LIPO
19330
19331# ldd/readelf like tool for Mach-O binaries on Mac OS X.
19332OTOOL=$lt_OTOOL
19333
19334# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
19335OTOOL64=$lt_OTOOL64
19336
19337# Old archive suffix (normally "a").
19338libext=$libext
19339
19340# Shared library suffix (normally ".so").
19341shrext_cmds=$lt_shrext_cmds
19342
19343# The commands to extract the exported symbol list from a shared archive.
19344extract_expsyms_cmds=$lt_extract_expsyms_cmds
19345
19346# Variables whose values should be saved in libtool wrapper scripts and
19347# restored at link time.
19348variables_saved_for_relink=$lt_variables_saved_for_relink
19349
19350# Do we need the "lib" prefix for modules?
19351need_lib_prefix=$need_lib_prefix
19352
19353# Do we need a version for libraries?
19354need_version=$need_version
19355
19356# Library versioning type.
19357version_type=$version_type
19358
19359# Shared library runtime path variable.
19360runpath_var=$runpath_var
19361
19362# Shared library path variable.
19363shlibpath_var=$shlibpath_var
19364
19365# Is shlibpath searched before the hard-coded library search path?
19366shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19367
19368# Format of library name prefix.
19369libname_spec=$lt_libname_spec
19370
19371# List of archive names.  First name is the real one, the rest are links.
19372# The last name is the one that the linker finds with -lNAME
19373library_names_spec=$lt_library_names_spec
19374
19375# The coded name of the library, if different from the real name.
19376soname_spec=$lt_soname_spec
19377
19378# Permission mode override for installation of shared libraries.
19379install_override_mode=$lt_install_override_mode
19380
19381# Command to use after installation of a shared archive.
19382postinstall_cmds=$lt_postinstall_cmds
19383
19384# Command to use after uninstallation of a shared archive.
19385postuninstall_cmds=$lt_postuninstall_cmds
19386
19387# Commands used to finish a libtool library installation in a directory.
19388finish_cmds=$lt_finish_cmds
19389
19390# As "finish_cmds", except a single script fragment to be evaled but
19391# not shown.
19392finish_eval=$lt_finish_eval
19393
19394# Whether we should hardcode library paths into libraries.
19395hardcode_into_libs=$hardcode_into_libs
19396
19397# Compile-time system search path for libraries.
19398sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19399
19400# Run-time system search path for libraries.
19401sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19402
19403# Whether dlopen is supported.
19404dlopen_support=$enable_dlopen
19405
19406# Whether dlopen of programs is supported.
19407dlopen_self=$enable_dlopen_self
19408
19409# Whether dlopen of statically linked programs is supported.
19410dlopen_self_static=$enable_dlopen_self_static
19411
19412# Commands to strip libraries.
19413old_striplib=$lt_old_striplib
19414striplib=$lt_striplib
19415
19416
19417# The linker used to build libraries.
19418LD=$lt_LD
19419
19420# How to create reloadable object files.
19421reload_flag=$lt_reload_flag
19422reload_cmds=$lt_reload_cmds
19423
19424# Commands used to build an old-style archive.
19425old_archive_cmds=$lt_old_archive_cmds
19426
19427# A language specific compiler.
19428CC=$lt_compiler
19429
19430# Is the compiler the GNU compiler?
19431with_gcc=$GCC
19432
19433# Compiler flag to turn off builtin functions.
19434no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
19435
19436# Additional compiler flags for building library objects.
19437pic_flag=$lt_lt_prog_compiler_pic
19438
19439# How to pass a linker flag through the compiler.
19440wl=$lt_lt_prog_compiler_wl
19441
19442# Compiler flag to prevent dynamic linking.
19443link_static_flag=$lt_lt_prog_compiler_static
19444
19445# Does compiler simultaneously support -c and -o options?
19446compiler_c_o=$lt_lt_cv_prog_compiler_c_o
19447
19448# Whether or not to add -lc for building shared libraries.
19449build_libtool_need_lc=$archive_cmds_need_lc
19450
19451# Whether or not to disallow shared libs when runtime libs are static.
19452allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
19453
19454# Compiler flag to allow reflexive dlopens.
19455export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
19456
19457# Compiler flag to generate shared objects directly from archives.
19458whole_archive_flag_spec=$lt_whole_archive_flag_spec
19459
19460# Whether the compiler copes with passing no objects directly.
19461compiler_needs_object=$lt_compiler_needs_object
19462
19463# Create an old-style archive from a shared archive.
19464old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
19465
19466# Create a temporary old-style archive to link instead of a shared archive.
19467old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
19468
19469# Commands used to build a shared archive.
19470archive_cmds=$lt_archive_cmds
19471archive_expsym_cmds=$lt_archive_expsym_cmds
19472
19473# Commands used to build a loadable module if different from building
19474# a shared archive.
19475module_cmds=$lt_module_cmds
19476module_expsym_cmds=$lt_module_expsym_cmds
19477
19478# Whether we are building with GNU ld or not.
19479with_gnu_ld=$lt_with_gnu_ld
19480
19481# Flag that allows shared libraries with undefined symbols to be built.
19482allow_undefined_flag=$lt_allow_undefined_flag
19483
19484# Flag that enforces no undefined symbols.
19485no_undefined_flag=$lt_no_undefined_flag
19486
19487# Flag to hardcode \$libdir into a binary during linking.
19488# This must work even if \$libdir does not exist
19489hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
19490
19491# Whether we need a single "-rpath" flag with a separated argument.
19492hardcode_libdir_separator=$lt_hardcode_libdir_separator
19493
19494# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
19495# DIR into the resulting binary.
19496hardcode_direct=$hardcode_direct
19497
19498# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
19499# DIR into the resulting binary and the resulting library dependency is
19500# "absolute",i.e impossible to change by setting \$shlibpath_var if the
19501# library is relocated.
19502hardcode_direct_absolute=$hardcode_direct_absolute
19503
19504# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
19505# into the resulting binary.
19506hardcode_minus_L=$hardcode_minus_L
19507
19508# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
19509# into the resulting binary.
19510hardcode_shlibpath_var=$hardcode_shlibpath_var
19511
19512# Set to "yes" if building a shared library automatically hardcodes DIR
19513# into the library and all subsequent libraries and executables linked
19514# against it.
19515hardcode_automatic=$hardcode_automatic
19516
19517# Set to yes if linker adds runtime paths of dependent libraries
19518# to runtime path list.
19519inherit_rpath=$inherit_rpath
19520
19521# Whether libtool must link a program against all its dependency libraries.
19522link_all_deplibs=$link_all_deplibs
19523
19524# Set to "yes" if exported symbols are required.
19525always_export_symbols=$always_export_symbols
19526
19527# The commands to list exported symbols.
19528export_symbols_cmds=$lt_export_symbols_cmds
19529
19530# Symbols that should not be listed in the preloaded symbols.
19531exclude_expsyms=$lt_exclude_expsyms
19532
19533# Symbols that must always be exported.
19534include_expsyms=$lt_include_expsyms
19535
19536# Commands necessary for linking programs (against libraries) with templates.
19537prelink_cmds=$lt_prelink_cmds
19538
19539# Commands necessary for finishing linking programs.
19540postlink_cmds=$lt_postlink_cmds
19541
19542# Specify filename containing input files.
19543file_list_spec=$lt_file_list_spec
19544
19545# How to hardcode a shared library path into an executable.
19546hardcode_action=$hardcode_action
19547
19548# The directories searched by this compiler when creating a shared library.
19549compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
19550
19551# Dependencies to place before and after the objects being linked to
19552# create a shared library.
19553predep_objects=$lt_predep_objects
19554postdep_objects=$lt_postdep_objects
19555predeps=$lt_predeps
19556postdeps=$lt_postdeps
19557
19558# The library search path used internally by the compiler when linking
19559# a shared library.
19560compiler_lib_search_path=$lt_compiler_lib_search_path
19561
19562# ### END LIBTOOL CONFIG
19563
19564_LT_EOF
19565
19566  case $host_os in
19567  aix3*)
19568    cat <<\_LT_EOF >> "$cfgfile"
19569# AIX sometimes has problems with the GCC collect2 program.  For some
19570# reason, if we set the COLLECT_NAMES environment variable, the problems
19571# vanish in a puff of smoke.
19572if test set != "${COLLECT_NAMES+set}"; then
19573  COLLECT_NAMES=
19574  export COLLECT_NAMES
19575fi
19576_LT_EOF
19577    ;;
19578  esac
19579
19580
19581ltmain=$ac_aux_dir/ltmain.sh
19582
19583
19584  # We use sed instead of cat because bash on DJGPP gets confused if
19585  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
19586  # text mode, it properly converts lines to CR/LF.  This bash problem
19587  # is reportedly fixed, but why not run on old versions too?
19588  sed '$q' "$ltmain" >> "$cfgfile" \
19589     || (rm -f "$cfgfile"; exit 1)
19590
19591   mv -f "$cfgfile" "$ofile" ||
19592    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
19593  chmod +x "$ofile"
19594
19595
19596    cat <<_LT_EOF >> "$ofile"
19597
19598# ### BEGIN LIBTOOL TAG CONFIG: CXX
19599
19600# The linker used to build libraries.
19601LD=$lt_LD_CXX
19602
19603# How to create reloadable object files.
19604reload_flag=$lt_reload_flag_CXX
19605reload_cmds=$lt_reload_cmds_CXX
19606
19607# Commands used to build an old-style archive.
19608old_archive_cmds=$lt_old_archive_cmds_CXX
19609
19610# A language specific compiler.
19611CC=$lt_compiler_CXX
19612
19613# Is the compiler the GNU compiler?
19614with_gcc=$GCC_CXX
19615
19616# Compiler flag to turn off builtin functions.
19617no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
19618
19619# Additional compiler flags for building library objects.
19620pic_flag=$lt_lt_prog_compiler_pic_CXX
19621
19622# How to pass a linker flag through the compiler.
19623wl=$lt_lt_prog_compiler_wl_CXX
19624
19625# Compiler flag to prevent dynamic linking.
19626link_static_flag=$lt_lt_prog_compiler_static_CXX
19627
19628# Does compiler simultaneously support -c and -o options?
19629compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
19630
19631# Whether or not to add -lc for building shared libraries.
19632build_libtool_need_lc=$archive_cmds_need_lc_CXX
19633
19634# Whether or not to disallow shared libs when runtime libs are static.
19635allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
19636
19637# Compiler flag to allow reflexive dlopens.
19638export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
19639
19640# Compiler flag to generate shared objects directly from archives.
19641whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
19642
19643# Whether the compiler copes with passing no objects directly.
19644compiler_needs_object=$lt_compiler_needs_object_CXX
19645
19646# Create an old-style archive from a shared archive.
19647old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
19648
19649# Create a temporary old-style archive to link instead of a shared archive.
19650old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
19651
19652# Commands used to build a shared archive.
19653archive_cmds=$lt_archive_cmds_CXX
19654archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
19655
19656# Commands used to build a loadable module if different from building
19657# a shared archive.
19658module_cmds=$lt_module_cmds_CXX
19659module_expsym_cmds=$lt_module_expsym_cmds_CXX
19660
19661# Whether we are building with GNU ld or not.
19662with_gnu_ld=$lt_with_gnu_ld_CXX
19663
19664# Flag that allows shared libraries with undefined symbols to be built.
19665allow_undefined_flag=$lt_allow_undefined_flag_CXX
19666
19667# Flag that enforces no undefined symbols.
19668no_undefined_flag=$lt_no_undefined_flag_CXX
19669
19670# Flag to hardcode \$libdir into a binary during linking.
19671# This must work even if \$libdir does not exist
19672hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
19673
19674# Whether we need a single "-rpath" flag with a separated argument.
19675hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
19676
19677# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
19678# DIR into the resulting binary.
19679hardcode_direct=$hardcode_direct_CXX
19680
19681# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
19682# DIR into the resulting binary and the resulting library dependency is
19683# "absolute",i.e impossible to change by setting \$shlibpath_var if the
19684# library is relocated.
19685hardcode_direct_absolute=$hardcode_direct_absolute_CXX
19686
19687# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
19688# into the resulting binary.
19689hardcode_minus_L=$hardcode_minus_L_CXX
19690
19691# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
19692# into the resulting binary.
19693hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
19694
19695# Set to "yes" if building a shared library automatically hardcodes DIR
19696# into the library and all subsequent libraries and executables linked
19697# against it.
19698hardcode_automatic=$hardcode_automatic_CXX
19699
19700# Set to yes if linker adds runtime paths of dependent libraries
19701# to runtime path list.
19702inherit_rpath=$inherit_rpath_CXX
19703
19704# Whether libtool must link a program against all its dependency libraries.
19705link_all_deplibs=$link_all_deplibs_CXX
19706
19707# Set to "yes" if exported symbols are required.
19708always_export_symbols=$always_export_symbols_CXX
19709
19710# The commands to list exported symbols.
19711export_symbols_cmds=$lt_export_symbols_cmds_CXX
19712
19713# Symbols that should not be listed in the preloaded symbols.
19714exclude_expsyms=$lt_exclude_expsyms_CXX
19715
19716# Symbols that must always be exported.
19717include_expsyms=$lt_include_expsyms_CXX
19718
19719# Commands necessary for linking programs (against libraries) with templates.
19720prelink_cmds=$lt_prelink_cmds_CXX
19721
19722# Commands necessary for finishing linking programs.
19723postlink_cmds=$lt_postlink_cmds_CXX
19724
19725# Specify filename containing input files.
19726file_list_spec=$lt_file_list_spec_CXX
19727
19728# How to hardcode a shared library path into an executable.
19729hardcode_action=$hardcode_action_CXX
19730
19731# The directories searched by this compiler when creating a shared library.
19732compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
19733
19734# Dependencies to place before and after the objects being linked to
19735# create a shared library.
19736predep_objects=$lt_predep_objects_CXX
19737postdep_objects=$lt_postdep_objects_CXX
19738predeps=$lt_predeps_CXX
19739postdeps=$lt_postdeps_CXX
19740
19741# The library search path used internally by the compiler when linking
19742# a shared library.
19743compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
19744
19745# ### END LIBTOOL TAG CONFIG: CXX
19746_LT_EOF
19747
19748 ;;
19749
19750  esac
19751done # for ac_tag
19752
19753
19754as_fn_exit 0
19755_ACEOF
19756ac_clean_files=$ac_clean_files_save
19757
19758test $ac_write_fail = 0 ||
19759  as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
19760
19761
19762# configure is writing to config.log, and then calls config.status.
19763# config.status does its own redirection, appending to config.log.
19764# Unfortunately, on DOS this fails, as config.log is still kept open
19765# by configure, so config.status won't be able to write to it; its
19766# output is simply discarded.  So we exec the FD to /dev/null,
19767# effectively closing config.log, so it can be properly (re)opened and
19768# appended to by config.status.  When coming back to configure, we
19769# need to make the FD available again.
19770if test "$no_create" != yes; then
19771  ac_cs_success=:
19772  ac_config_status_args=
19773  test "$silent" = yes &&
19774    ac_config_status_args="$ac_config_status_args --quiet"
19775  exec 5>/dev/null
19776  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
19777  exec 5>>config.log
19778  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
19779  # would make configure fail if this is the last instruction.
19780  $ac_cs_success || as_fn_exit 1
19781fi
19782if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
19783  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
19784$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
19785fi
19786
19787
19788