1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.69 for libgc-mono 6.6.
4#
5# Report bugs to <Hans_Boehm@hp.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## M4sh Initialization. ##
15## -------------------- ##
16
17# Be more Bourne compatible
18DUALCASE=1; export DUALCASE # for MKS sh
19if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
20  emulate sh
21  NULLCMD=:
22  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23  # is contrary to our usage.  Disable this feature.
24  alias -g '${1+"$@"}'='"$@"'
25  setopt NO_GLOB_SUBST
26else
27  case `(set -o) 2>/dev/null` in #(
28  *posix*) :
29    set -o posix ;; #(
30  *) :
31     ;;
32esac
33fi
34
35
36as_nl='
37'
38export as_nl
39# Printing a long string crashes Solaris 7 /usr/bin/printf.
40as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
42as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
43# Prefer a ksh shell builtin over an external printf program on Solaris,
44# but without wasting forks for bash or zsh.
45if test -z "$BASH_VERSION$ZSH_VERSION" \
46    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
47  as_echo='print -r --'
48  as_echo_n='print -rn --'
49elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
50  as_echo='printf %s\n'
51  as_echo_n='printf %s'
52else
53  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
55    as_echo_n='/usr/ucb/echo -n'
56  else
57    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
58    as_echo_n_body='eval
59      arg=$1;
60      case $arg in #(
61      *"$as_nl"*)
62	expr "X$arg" : "X\\(.*\\)$as_nl";
63	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
64      esac;
65      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
66    '
67    export as_echo_n_body
68    as_echo_n='sh -c $as_echo_n_body as_echo'
69  fi
70  export as_echo_body
71  as_echo='sh -c $as_echo_body as_echo'
72fi
73
74# The user is always right.
75if test "${PATH_SEPARATOR+set}" != set; then
76  PATH_SEPARATOR=:
77  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
79      PATH_SEPARATOR=';'
80  }
81fi
82
83
84# IFS
85# We need space, tab and new line, in precisely that order.  Quoting is
86# there to prevent editors from complaining about space-tab.
87# (If _AS_PATH_WALK were called with IFS unset, it would disable word
88# splitting by setting IFS to empty value.)
89IFS=" ""	$as_nl"
90
91# Find who we are.  Look in the path if we contain no directory separator.
92as_myself=
93case $0 in #((
94  *[\\/]* ) as_myself=$0 ;;
95  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
96for as_dir in $PATH
97do
98  IFS=$as_save_IFS
99  test -z "$as_dir" && as_dir=.
100    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
101  done
102IFS=$as_save_IFS
103
104     ;;
105esac
106# We did not find ourselves, most probably we were run as `sh COMMAND'
107# in which case we are not to be found in the path.
108if test "x$as_myself" = x; then
109  as_myself=$0
110fi
111if test ! -f "$as_myself"; then
112  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
113  exit 1
114fi
115
116# Unset variables that we do not need and which cause bugs (e.g. in
117# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
118# suppresses any "Segmentation fault" message there.  '((' could
119# trigger a bug in pdksh 5.2.14.
120for as_var in BASH_ENV ENV MAIL MAILPATH
121do eval test x\${$as_var+set} = xset \
122  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
123done
124PS1='$ '
125PS2='> '
126PS4='+ '
127
128# NLS nuisances.
129LC_ALL=C
130export LC_ALL
131LANGUAGE=C
132export LANGUAGE
133
134# CDPATH.
135(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
136
137# Use a proper internal environment variable to ensure we don't fall
138  # into an infinite loop, continuously re-executing ourselves.
139  if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
140    _as_can_reexec=no; export _as_can_reexec;
141    # We cannot yet assume a decent shell, so we have to provide a
142# neutralization value for shells without unset; and this also
143# works around shells that cannot unset nonexistent variables.
144# Preserve -v and -x to the replacement shell.
145BASH_ENV=/dev/null
146ENV=/dev/null
147(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
148case $- in # ((((
149  *v*x* | *x*v* ) as_opts=-vx ;;
150  *v* ) as_opts=-v ;;
151  *x* ) as_opts=-x ;;
152  * ) as_opts= ;;
153esac
154exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
155# Admittedly, this is quite paranoid, since all the known shells bail
156# out after a failed `exec'.
157$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
158as_fn_exit 255
159  fi
160  # We don't want this to propagate to other subprocesses.
161          { _as_can_reexec=; unset _as_can_reexec;}
162if test "x$CONFIG_SHELL" = x; then
163  as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
164  emulate sh
165  NULLCMD=:
166  # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
167  # is contrary to our usage.  Disable this feature.
168  alias -g '\${1+\"\$@\"}'='\"\$@\"'
169  setopt NO_GLOB_SUBST
170else
171  case \`(set -o) 2>/dev/null\` in #(
172  *posix*) :
173    set -o posix ;; #(
174  *) :
175     ;;
176esac
177fi
178"
179  as_required="as_fn_return () { (exit \$1); }
180as_fn_success () { as_fn_return 0; }
181as_fn_failure () { as_fn_return 1; }
182as_fn_ret_success () { return 0; }
183as_fn_ret_failure () { return 1; }
184
185exitcode=0
186as_fn_success || { exitcode=1; echo as_fn_success failed.; }
187as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
188as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
189as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
190if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
191
192else
193  exitcode=1; echo positional parameters were not saved.
194fi
195test x\$exitcode = x0 || exit 1
196test -x / || exit 1"
197  as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
198  as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
199  eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
200  test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
201
202  test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
203    ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
204    ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
205    ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
206    PATH=/empty FPATH=/empty; export PATH FPATH
207    test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
208      || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1
209test \$(( 1 + 1 )) = 2 || exit 1"
210  if (eval "$as_required") 2>/dev/null; then :
211  as_have_required=yes
212else
213  as_have_required=no
214fi
215  if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
216
217else
218  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
219as_found=false
220for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
221do
222  IFS=$as_save_IFS
223  test -z "$as_dir" && as_dir=.
224  as_found=:
225  case $as_dir in #(
226	 /*)
227	   for as_base in sh bash ksh sh5; do
228	     # Try only shells that exist, to save several forks.
229	     as_shell=$as_dir/$as_base
230	     if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
231		    { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
232  CONFIG_SHELL=$as_shell as_have_required=yes
233		   if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
234  break 2
235fi
236fi
237	   done;;
238       esac
239  as_found=false
240done
241$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
242	      { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
243  CONFIG_SHELL=$SHELL as_have_required=yes
244fi; }
245IFS=$as_save_IFS
246
247
248      if test "x$CONFIG_SHELL" != x; then :
249  export CONFIG_SHELL
250             # We cannot yet assume a decent shell, so we have to provide a
251# neutralization value for shells without unset; and this also
252# works around shells that cannot unset nonexistent variables.
253# Preserve -v and -x to the replacement shell.
254BASH_ENV=/dev/null
255ENV=/dev/null
256(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
257case $- in # ((((
258  *v*x* | *x*v* ) as_opts=-vx ;;
259  *v* ) as_opts=-v ;;
260  *x* ) as_opts=-x ;;
261  * ) as_opts= ;;
262esac
263exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
264# Admittedly, this is quite paranoid, since all the known shells bail
265# out after a failed `exec'.
266$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
267exit 255
268fi
269
270    if test x$as_have_required = xno; then :
271  $as_echo "$0: This script requires a shell more modern than all"
272  $as_echo "$0: the shells that I found on your system."
273  if test x${ZSH_VERSION+set} = xset ; then
274    $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
275    $as_echo "$0: be upgraded to zsh 4.3.4 or later."
276  else
277    $as_echo "$0: Please tell bug-autoconf@gnu.org and Hans_Boehm@hp.com
278$0: about your system, including any error possibly output
279$0: before this message. Then install a modern shell, or
280$0: manually run the script under such a shell if you do
281$0: have one."
282  fi
283  exit 1
284fi
285fi
286fi
287SHELL=${CONFIG_SHELL-/bin/sh}
288export SHELL
289# Unset more variables known to interfere with behavior of common tools.
290CLICOLOR_FORCE= GREP_OPTIONS=
291unset CLICOLOR_FORCE GREP_OPTIONS
292
293## --------------------- ##
294## M4sh Shell Functions. ##
295## --------------------- ##
296# as_fn_unset VAR
297# ---------------
298# Portably unset VAR.
299as_fn_unset ()
300{
301  { eval $1=; unset $1;}
302}
303as_unset=as_fn_unset
304
305# as_fn_set_status STATUS
306# -----------------------
307# Set $? to STATUS, without forking.
308as_fn_set_status ()
309{
310  return $1
311} # as_fn_set_status
312
313# as_fn_exit STATUS
314# -----------------
315# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
316as_fn_exit ()
317{
318  set +e
319  as_fn_set_status $1
320  exit $1
321} # as_fn_exit
322
323# as_fn_mkdir_p
324# -------------
325# Create "$as_dir" as a directory, including parents if necessary.
326as_fn_mkdir_p ()
327{
328
329  case $as_dir in #(
330  -*) as_dir=./$as_dir;;
331  esac
332  test -d "$as_dir" || eval $as_mkdir_p || {
333    as_dirs=
334    while :; do
335      case $as_dir in #(
336      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
337      *) as_qdir=$as_dir;;
338      esac
339      as_dirs="'$as_qdir' $as_dirs"
340      as_dir=`$as_dirname -- "$as_dir" ||
341$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
342	 X"$as_dir" : 'X\(//\)[^/]' \| \
343	 X"$as_dir" : 'X\(//\)$' \| \
344	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
345$as_echo X"$as_dir" |
346    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
347	    s//\1/
348	    q
349	  }
350	  /^X\(\/\/\)[^/].*/{
351	    s//\1/
352	    q
353	  }
354	  /^X\(\/\/\)$/{
355	    s//\1/
356	    q
357	  }
358	  /^X\(\/\).*/{
359	    s//\1/
360	    q
361	  }
362	  s/.*/./; q'`
363      test -d "$as_dir" && break
364    done
365    test -z "$as_dirs" || eval "mkdir $as_dirs"
366  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
367
368
369} # as_fn_mkdir_p
370
371# as_fn_executable_p FILE
372# -----------------------
373# Test if FILE is an executable regular file.
374as_fn_executable_p ()
375{
376  test -f "$1" && test -x "$1"
377} # as_fn_executable_p
378# as_fn_append VAR VALUE
379# ----------------------
380# Append the text in VALUE to the end of the definition contained in VAR. Take
381# advantage of any shell optimizations that allow amortized linear growth over
382# repeated appends, instead of the typical quadratic growth present in naive
383# implementations.
384if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
385  eval 'as_fn_append ()
386  {
387    eval $1+=\$2
388  }'
389else
390  as_fn_append ()
391  {
392    eval $1=\$$1\$2
393  }
394fi # as_fn_append
395
396# as_fn_arith ARG...
397# ------------------
398# Perform arithmetic evaluation on the ARGs, and store the result in the
399# global $as_val. Take advantage of shells that can avoid forks. The arguments
400# must be portable across $(()) and expr.
401if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
402  eval 'as_fn_arith ()
403  {
404    as_val=$(( $* ))
405  }'
406else
407  as_fn_arith ()
408  {
409    as_val=`expr "$@" || test $? -eq 1`
410  }
411fi # as_fn_arith
412
413
414# as_fn_error STATUS ERROR [LINENO LOG_FD]
415# ----------------------------------------
416# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
417# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
418# script with STATUS, using 1 if that was 0.
419as_fn_error ()
420{
421  as_status=$1; test $as_status -eq 0 && as_status=1
422  if test "$4"; then
423    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
424    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
425  fi
426  $as_echo "$as_me: error: $2" >&2
427  as_fn_exit $as_status
428} # as_fn_error
429
430if expr a : '\(a\)' >/dev/null 2>&1 &&
431   test "X`expr 00001 : '.*\(...\)'`" = X001; then
432  as_expr=expr
433else
434  as_expr=false
435fi
436
437if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
438  as_basename=basename
439else
440  as_basename=false
441fi
442
443if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
444  as_dirname=dirname
445else
446  as_dirname=false
447fi
448
449as_me=`$as_basename -- "$0" ||
450$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
451	 X"$0" : 'X\(//\)$' \| \
452	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
453$as_echo X/"$0" |
454    sed '/^.*\/\([^/][^/]*\)\/*$/{
455	    s//\1/
456	    q
457	  }
458	  /^X\/\(\/\/\)$/{
459	    s//\1/
460	    q
461	  }
462	  /^X\/\(\/\).*/{
463	    s//\1/
464	    q
465	  }
466	  s/.*/./; q'`
467
468# Avoid depending upon Character Ranges.
469as_cr_letters='abcdefghijklmnopqrstuvwxyz'
470as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
471as_cr_Letters=$as_cr_letters$as_cr_LETTERS
472as_cr_digits='0123456789'
473as_cr_alnum=$as_cr_Letters$as_cr_digits
474
475
476  as_lineno_1=$LINENO as_lineno_1a=$LINENO
477  as_lineno_2=$LINENO as_lineno_2a=$LINENO
478  eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
479  test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
480  # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
481  sed -n '
482    p
483    /[$]LINENO/=
484  ' <$as_myself |
485    sed '
486      s/[$]LINENO.*/&-/
487      t lineno
488      b
489      :lineno
490      N
491      :loop
492      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
493      t loop
494      s/-\n.*//
495    ' >$as_me.lineno &&
496  chmod +x "$as_me.lineno" ||
497    { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
498
499  # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
500  # already done that, so ensure we don't try to do so again and fall
501  # in an infinite loop.  This has already happened in practice.
502  _as_can_reexec=no; export _as_can_reexec
503  # Don't try to exec as it changes $[0], causing all sort of problems
504  # (the dirname of $[0] is not the place where we might find the
505  # original and so on.  Autoconf is especially sensitive to this).
506  . "./$as_me.lineno"
507  # Exit status is that of the last command.
508  exit
509}
510
511ECHO_C= ECHO_N= ECHO_T=
512case `echo -n x` in #(((((
513-n*)
514  case `echo 'xy\c'` in
515  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
516  xy)  ECHO_C='\c';;
517  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
518       ECHO_T='	';;
519  esac;;
520*)
521  ECHO_N='-n';;
522esac
523
524rm -f conf$$ conf$$.exe conf$$.file
525if test -d conf$$.dir; then
526  rm -f conf$$.dir/conf$$.file
527else
528  rm -f conf$$.dir
529  mkdir conf$$.dir 2>/dev/null
530fi
531if (echo >conf$$.file) 2>/dev/null; then
532  if ln -s conf$$.file conf$$ 2>/dev/null; then
533    as_ln_s='ln -s'
534    # ... but there are two gotchas:
535    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
536    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
537    # In both cases, we have to default to `cp -pR'.
538    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
539      as_ln_s='cp -pR'
540  elif ln conf$$.file conf$$ 2>/dev/null; then
541    as_ln_s=ln
542  else
543    as_ln_s='cp -pR'
544  fi
545else
546  as_ln_s='cp -pR'
547fi
548rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
549rmdir conf$$.dir 2>/dev/null
550
551if mkdir -p . 2>/dev/null; then
552  as_mkdir_p='mkdir -p "$as_dir"'
553else
554  test -d ./-p && rmdir ./-p
555  as_mkdir_p=false
556fi
557
558as_test_x='test -x'
559as_executable_p=as_fn_executable_p
560
561# Sed expression to map a string onto a valid CPP name.
562as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
563
564# Sed expression to map a string onto a valid variable name.
565as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
566
567SHELL=${CONFIG_SHELL-/bin/sh}
568
569
570test -n "$DJDIR" || exec 7<&0 </dev/null
571exec 6>&1
572
573# Name of the host.
574# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
575# so uname gets run too.
576ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
577
578#
579# Initializations.
580#
581ac_default_prefix=/usr/local
582ac_clean_files=
583ac_config_libobj_dir=.
584LIBOBJS=
585cross_compiling=no
586subdirs=
587MFLAGS=
588MAKEFLAGS=
589
590# Identity of this package.
591PACKAGE_NAME='libgc-mono'
592PACKAGE_TARNAME='libgc-mono'
593PACKAGE_VERSION='6.6'
594PACKAGE_STRING='libgc-mono 6.6'
595PACKAGE_BUGREPORT='Hans_Boehm@hp.com'
596PACKAGE_URL=''
597
598ac_unique_file="gcj_mlc.c"
599# Factoring default headers for most tests.
600ac_includes_default="\
601#include <stdio.h>
602#ifdef HAVE_SYS_TYPES_H
603# include <sys/types.h>
604#endif
605#ifdef HAVE_SYS_STAT_H
606# include <sys/stat.h>
607#endif
608#ifdef STDC_HEADERS
609# include <stdlib.h>
610# include <stddef.h>
611#else
612# ifdef HAVE_STDLIB_H
613#  include <stdlib.h>
614# endif
615#endif
616#ifdef HAVE_STRING_H
617# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
618#  include <memory.h>
619# endif
620# include <string.h>
621#endif
622#ifdef HAVE_STRINGS_H
623# include <strings.h>
624#endif
625#ifdef HAVE_INTTYPES_H
626# include <inttypes.h>
627#endif
628#ifdef HAVE_STDINT_H
629# include <stdint.h>
630#endif
631#ifdef HAVE_UNISTD_H
632# include <unistd.h>
633#endif"
634
635ac_subst_vars='am__EXEEXT_FALSE
636am__EXEEXT_TRUE
637LTLIBOBJS
638LIBOBJS
639WERROR_CFLAGS
640USE_LIBDIR_FALSE
641USE_LIBDIR_TRUE
642UNWINDLIBS
643MY_CFLAGS
644LTCXXCOMPILE
645LTCOMPILE
646DOLT_BASH
647CXXCPP
648CPP
649OTOOL64
650OTOOL
651LIPO
652NMEDIT
653DSYMUTIL
654MANIFEST_TOOL
655ac_ct_AR
656DLLTOOL
657OBJDUMP
658LN_S
659NM
660ac_ct_DUMPBIN
661DUMPBIN
662LD
663FGREP
664EGREP
665GREP
666SED
667LIBTOOL
668TARGET_IA64_FALSE
669TARGET_IA64_TRUE
670addtests
671addlibs
672addincludes
673CXXINCLUDES
674AM_CPPFLAGS
675CPLUSPLUS_FALSE
676CPLUSPLUS_TRUE
677target_all
678EXTRA_TEST_LIBS
679COMPILER_XLC_FALSE
680COMPILER_XLC_TRUE
681POWERPC_DARWIN_FALSE
682POWERPC_DARWIN_TRUE
683THREADDLLIBS
684GC_CFLAGS
685MAINT
686MAINTAINER_MODE_FALSE
687MAINTAINER_MODE_TRUE
688RANLIB
689AR
690am__fastdepCCAS_FALSE
691am__fastdepCCAS_TRUE
692CCASDEPMODE
693CCASFLAGS
694CCAS
695am__fastdepCXX_FALSE
696am__fastdepCXX_TRUE
697CXXDEPMODE
698ac_ct_CXX
699CXXFLAGS
700CXX
701am__fastdepCC_FALSE
702am__fastdepCC_TRUE
703CCDEPMODE
704am__nodep
705AMDEPBACKSLASH
706AMDEP_FALSE
707AMDEP_TRUE
708am__quote
709am__include
710DEPDIR
711OBJEXT
712EXEEXT
713ac_ct_CC
714CPPFLAGS
715LDFLAGS
716CFLAGS
717CC
718GC_VERSION
719host_os
720host_vendor
721host_cpu
722host
723build_os
724build_vendor
725build_cpu
726build
727AM_BACKSLASH
728AM_DEFAULT_VERBOSITY
729AM_DEFAULT_V
730AM_V
731am__untar
732am__tar
733AMTAR
734am__leading_dot
735SET_MAKE
736AWK
737mkdir_p
738MKDIR_P
739INSTALL_STRIP_PROGRAM
740STRIP
741install_sh
742MAKEINFO
743AUTOHEADER
744AUTOMAKE
745AUTOCONF
746ACLOCAL
747VERSION
748PACKAGE
749CYGPATH_W
750am__isrc
751INSTALL_DATA
752INSTALL_SCRIPT
753INSTALL_PROGRAM
754target_alias
755host_alias
756build_alias
757LIBS
758ECHO_T
759ECHO_N
760ECHO_C
761DEFS
762mandir
763localedir
764libdir
765psdir
766pdfdir
767dvidir
768htmldir
769infodir
770docdir
771oldincludedir
772includedir
773localstatedir
774sharedstatedir
775sysconfdir
776datadir
777datarootdir
778libexecdir
779sbindir
780bindir
781program_transform_name
782prefix
783exec_prefix
784PACKAGE_URL
785PACKAGE_BUGREPORT
786PACKAGE_STRING
787PACKAGE_VERSION
788PACKAGE_TARNAME
789PACKAGE_NAME
790PATH_SEPARATOR
791SHELL'
792ac_subst_files=''
793ac_user_opts='
794enable_option_checking
795enable_silent_rules
796enable_dependency_tracking
797enable_maintainer_mode
798enable_win32_dllmain
799enable_parallel_mark
800enable_cplusplus
801with_ecos
802enable_shared
803enable_static
804with_pic
805enable_fast_install
806with_gnu_ld
807with_sysroot
808enable_libtool_lock
809with_target_subdir
810with_cross_host
811enable_full_debug
812enable_redirect_malloc
813enable_gc_assertions
814enable_quiet_build
815enable_werror
816'
817      ac_precious_vars='build_alias
818host_alias
819target_alias
820CC
821CFLAGS
822LDFLAGS
823LIBS
824CPPFLAGS
825CXX
826CXXFLAGS
827CCC
828CCAS
829CCASFLAGS
830CPP
831CXXCPP'
832
833
834# Initialize some variables set by options.
835ac_init_help=
836ac_init_version=false
837ac_unrecognized_opts=
838ac_unrecognized_sep=
839# The variables have the same names as the options, with
840# dashes changed to underlines.
841cache_file=/dev/null
842exec_prefix=NONE
843no_create=
844no_recursion=
845prefix=NONE
846program_prefix=NONE
847program_suffix=NONE
848program_transform_name=s,x,x,
849silent=
850site=
851srcdir=
852verbose=
853x_includes=NONE
854x_libraries=NONE
855
856# Installation directory options.
857# These are left unexpanded so users can "make install exec_prefix=/foo"
858# and all the variables that are supposed to be based on exec_prefix
859# by default will actually change.
860# Use braces instead of parens because sh, perl, etc. also accept them.
861# (The list follows the same order as the GNU Coding Standards.)
862bindir='${exec_prefix}/bin'
863sbindir='${exec_prefix}/sbin'
864libexecdir='${exec_prefix}/libexec'
865datarootdir='${prefix}/share'
866datadir='${datarootdir}'
867sysconfdir='${prefix}/etc'
868sharedstatedir='${prefix}/com'
869localstatedir='${prefix}/var'
870includedir='${prefix}/include'
871oldincludedir='/usr/include'
872docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
873infodir='${datarootdir}/info'
874htmldir='${docdir}'
875dvidir='${docdir}'
876pdfdir='${docdir}'
877psdir='${docdir}'
878libdir='${exec_prefix}/lib'
879localedir='${datarootdir}/locale'
880mandir='${datarootdir}/man'
881
882ac_prev=
883ac_dashdash=
884for ac_option
885do
886  # If the previous option needs an argument, assign it.
887  if test -n "$ac_prev"; then
888    eval $ac_prev=\$ac_option
889    ac_prev=
890    continue
891  fi
892
893  case $ac_option in
894  *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
895  *=)   ac_optarg= ;;
896  *)    ac_optarg=yes ;;
897  esac
898
899  # Accept the important Cygnus configure options, so we can diagnose typos.
900
901  case $ac_dashdash$ac_option in
902  --)
903    ac_dashdash=yes ;;
904
905  -bindir | --bindir | --bindi | --bind | --bin | --bi)
906    ac_prev=bindir ;;
907  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
908    bindir=$ac_optarg ;;
909
910  -build | --build | --buil | --bui | --bu)
911    ac_prev=build_alias ;;
912  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
913    build_alias=$ac_optarg ;;
914
915  -cache-file | --cache-file | --cache-fil | --cache-fi \
916  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
917    ac_prev=cache_file ;;
918  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
919  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
920    cache_file=$ac_optarg ;;
921
922  --config-cache | -C)
923    cache_file=config.cache ;;
924
925  -datadir | --datadir | --datadi | --datad)
926    ac_prev=datadir ;;
927  -datadir=* | --datadir=* | --datadi=* | --datad=*)
928    datadir=$ac_optarg ;;
929
930  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
931  | --dataroo | --dataro | --datar)
932    ac_prev=datarootdir ;;
933  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
934  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
935    datarootdir=$ac_optarg ;;
936
937  -disable-* | --disable-*)
938    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
939    # Reject names that are not valid shell variable names.
940    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
941      as_fn_error $? "invalid feature name: $ac_useropt"
942    ac_useropt_orig=$ac_useropt
943    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
944    case $ac_user_opts in
945      *"
946"enable_$ac_useropt"
947"*) ;;
948      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
949	 ac_unrecognized_sep=', ';;
950    esac
951    eval enable_$ac_useropt=no ;;
952
953  -docdir | --docdir | --docdi | --doc | --do)
954    ac_prev=docdir ;;
955  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
956    docdir=$ac_optarg ;;
957
958  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
959    ac_prev=dvidir ;;
960  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
961    dvidir=$ac_optarg ;;
962
963  -enable-* | --enable-*)
964    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
965    # Reject names that are not valid shell variable names.
966    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
967      as_fn_error $? "invalid feature name: $ac_useropt"
968    ac_useropt_orig=$ac_useropt
969    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
970    case $ac_user_opts in
971      *"
972"enable_$ac_useropt"
973"*) ;;
974      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
975	 ac_unrecognized_sep=', ';;
976    esac
977    eval enable_$ac_useropt=\$ac_optarg ;;
978
979  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
980  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
981  | --exec | --exe | --ex)
982    ac_prev=exec_prefix ;;
983  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
984  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
985  | --exec=* | --exe=* | --ex=*)
986    exec_prefix=$ac_optarg ;;
987
988  -gas | --gas | --ga | --g)
989    # Obsolete; use --with-gas.
990    with_gas=yes ;;
991
992  -help | --help | --hel | --he | -h)
993    ac_init_help=long ;;
994  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
995    ac_init_help=recursive ;;
996  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
997    ac_init_help=short ;;
998
999  -host | --host | --hos | --ho)
1000    ac_prev=host_alias ;;
1001  -host=* | --host=* | --hos=* | --ho=*)
1002    host_alias=$ac_optarg ;;
1003
1004  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1005    ac_prev=htmldir ;;
1006  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1007  | --ht=*)
1008    htmldir=$ac_optarg ;;
1009
1010  -includedir | --includedir | --includedi | --included | --include \
1011  | --includ | --inclu | --incl | --inc)
1012    ac_prev=includedir ;;
1013  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1014  | --includ=* | --inclu=* | --incl=* | --inc=*)
1015    includedir=$ac_optarg ;;
1016
1017  -infodir | --infodir | --infodi | --infod | --info | --inf)
1018    ac_prev=infodir ;;
1019  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1020    infodir=$ac_optarg ;;
1021
1022  -libdir | --libdir | --libdi | --libd)
1023    ac_prev=libdir ;;
1024  -libdir=* | --libdir=* | --libdi=* | --libd=*)
1025    libdir=$ac_optarg ;;
1026
1027  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1028  | --libexe | --libex | --libe)
1029    ac_prev=libexecdir ;;
1030  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1031  | --libexe=* | --libex=* | --libe=*)
1032    libexecdir=$ac_optarg ;;
1033
1034  -localedir | --localedir | --localedi | --localed | --locale)
1035    ac_prev=localedir ;;
1036  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1037    localedir=$ac_optarg ;;
1038
1039  -localstatedir | --localstatedir | --localstatedi | --localstated \
1040  | --localstate | --localstat | --localsta | --localst | --locals)
1041    ac_prev=localstatedir ;;
1042  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1043  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1044    localstatedir=$ac_optarg ;;
1045
1046  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1047    ac_prev=mandir ;;
1048  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1049    mandir=$ac_optarg ;;
1050
1051  -nfp | --nfp | --nf)
1052    # Obsolete; use --without-fp.
1053    with_fp=no ;;
1054
1055  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1056  | --no-cr | --no-c | -n)
1057    no_create=yes ;;
1058
1059  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1060  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1061    no_recursion=yes ;;
1062
1063  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1064  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1065  | --oldin | --oldi | --old | --ol | --o)
1066    ac_prev=oldincludedir ;;
1067  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1068  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1069  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1070    oldincludedir=$ac_optarg ;;
1071
1072  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1073    ac_prev=prefix ;;
1074  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1075    prefix=$ac_optarg ;;
1076
1077  -program-prefix | --program-prefix | --program-prefi | --program-pref \
1078  | --program-pre | --program-pr | --program-p)
1079    ac_prev=program_prefix ;;
1080  -program-prefix=* | --program-prefix=* | --program-prefi=* \
1081  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1082    program_prefix=$ac_optarg ;;
1083
1084  -program-suffix | --program-suffix | --program-suffi | --program-suff \
1085  | --program-suf | --program-su | --program-s)
1086    ac_prev=program_suffix ;;
1087  -program-suffix=* | --program-suffix=* | --program-suffi=* \
1088  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1089    program_suffix=$ac_optarg ;;
1090
1091  -program-transform-name | --program-transform-name \
1092  | --program-transform-nam | --program-transform-na \
1093  | --program-transform-n | --program-transform- \
1094  | --program-transform | --program-transfor \
1095  | --program-transfo | --program-transf \
1096  | --program-trans | --program-tran \
1097  | --progr-tra | --program-tr | --program-t)
1098    ac_prev=program_transform_name ;;
1099  -program-transform-name=* | --program-transform-name=* \
1100  | --program-transform-nam=* | --program-transform-na=* \
1101  | --program-transform-n=* | --program-transform-=* \
1102  | --program-transform=* | --program-transfor=* \
1103  | --program-transfo=* | --program-transf=* \
1104  | --program-trans=* | --program-tran=* \
1105  | --progr-tra=* | --program-tr=* | --program-t=*)
1106    program_transform_name=$ac_optarg ;;
1107
1108  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1109    ac_prev=pdfdir ;;
1110  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1111    pdfdir=$ac_optarg ;;
1112
1113  -psdir | --psdir | --psdi | --psd | --ps)
1114    ac_prev=psdir ;;
1115  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1116    psdir=$ac_optarg ;;
1117
1118  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1119  | -silent | --silent | --silen | --sile | --sil)
1120    silent=yes ;;
1121
1122  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1123    ac_prev=sbindir ;;
1124  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1125  | --sbi=* | --sb=*)
1126    sbindir=$ac_optarg ;;
1127
1128  -sharedstatedir | --sharedstatedir | --sharedstatedi \
1129  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1130  | --sharedst | --shareds | --shared | --share | --shar \
1131  | --sha | --sh)
1132    ac_prev=sharedstatedir ;;
1133  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1134  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1135  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1136  | --sha=* | --sh=*)
1137    sharedstatedir=$ac_optarg ;;
1138
1139  -site | --site | --sit)
1140    ac_prev=site ;;
1141  -site=* | --site=* | --sit=*)
1142    site=$ac_optarg ;;
1143
1144  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1145    ac_prev=srcdir ;;
1146  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1147    srcdir=$ac_optarg ;;
1148
1149  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1150  | --syscon | --sysco | --sysc | --sys | --sy)
1151    ac_prev=sysconfdir ;;
1152  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1153  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1154    sysconfdir=$ac_optarg ;;
1155
1156  -target | --target | --targe | --targ | --tar | --ta | --t)
1157    ac_prev=target_alias ;;
1158  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1159    target_alias=$ac_optarg ;;
1160
1161  -v | -verbose | --verbose | --verbos | --verbo | --verb)
1162    verbose=yes ;;
1163
1164  -version | --version | --versio | --versi | --vers | -V)
1165    ac_init_version=: ;;
1166
1167  -with-* | --with-*)
1168    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1169    # Reject names that are not valid shell variable names.
1170    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1171      as_fn_error $? "invalid package name: $ac_useropt"
1172    ac_useropt_orig=$ac_useropt
1173    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1174    case $ac_user_opts in
1175      *"
1176"with_$ac_useropt"
1177"*) ;;
1178      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1179	 ac_unrecognized_sep=', ';;
1180    esac
1181    eval with_$ac_useropt=\$ac_optarg ;;
1182
1183  -without-* | --without-*)
1184    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1185    # Reject names that are not valid shell variable names.
1186    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1187      as_fn_error $? "invalid package name: $ac_useropt"
1188    ac_useropt_orig=$ac_useropt
1189    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1190    case $ac_user_opts in
1191      *"
1192"with_$ac_useropt"
1193"*) ;;
1194      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1195	 ac_unrecognized_sep=', ';;
1196    esac
1197    eval with_$ac_useropt=no ;;
1198
1199  --x)
1200    # Obsolete; use --with-x.
1201    with_x=yes ;;
1202
1203  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1204  | --x-incl | --x-inc | --x-in | --x-i)
1205    ac_prev=x_includes ;;
1206  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1207  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1208    x_includes=$ac_optarg ;;
1209
1210  -x-libraries | --x-libraries | --x-librarie | --x-librari \
1211  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1212    ac_prev=x_libraries ;;
1213  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1214  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1215    x_libraries=$ac_optarg ;;
1216
1217  -*) as_fn_error $? "unrecognized option: \`$ac_option'
1218Try \`$0 --help' for more information"
1219    ;;
1220
1221  *=*)
1222    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1223    # Reject names that are not valid shell variable names.
1224    case $ac_envvar in #(
1225      '' | [0-9]* | *[!_$as_cr_alnum]* )
1226      as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1227    esac
1228    eval $ac_envvar=\$ac_optarg
1229    export $ac_envvar ;;
1230
1231  *)
1232    # FIXME: should be removed in autoconf 3.0.
1233    $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1234    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1235      $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1236    : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1237    ;;
1238
1239  esac
1240done
1241
1242if test -n "$ac_prev"; then
1243  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1244  as_fn_error $? "missing argument to $ac_option"
1245fi
1246
1247if test -n "$ac_unrecognized_opts"; then
1248  case $enable_option_checking in
1249    no) ;;
1250    fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1251    *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1252  esac
1253fi
1254
1255# Check all directory arguments for consistency.
1256for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
1257		datadir sysconfdir sharedstatedir localstatedir includedir \
1258		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1259		libdir localedir mandir
1260do
1261  eval ac_val=\$$ac_var
1262  # Remove trailing slashes.
1263  case $ac_val in
1264    */ )
1265      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1266      eval $ac_var=\$ac_val;;
1267  esac
1268  # Be sure to have absolute directory names.
1269  case $ac_val in
1270    [\\/$]* | ?:[\\/]* )  continue;;
1271    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1272  esac
1273  as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1274done
1275
1276# There might be people who depend on the old broken behavior: `$host'
1277# used to hold the argument of --host etc.
1278# FIXME: To remove some day.
1279build=$build_alias
1280host=$host_alias
1281target=$target_alias
1282
1283# FIXME: To remove some day.
1284if test "x$host_alias" != x; then
1285  if test "x$build_alias" = x; then
1286    cross_compiling=maybe
1287  elif test "x$build_alias" != "x$host_alias"; then
1288    cross_compiling=yes
1289  fi
1290fi
1291
1292ac_tool_prefix=
1293test -n "$host_alias" && ac_tool_prefix=$host_alias-
1294
1295test "$silent" = yes && exec 6>/dev/null
1296
1297
1298ac_pwd=`pwd` && test -n "$ac_pwd" &&
1299ac_ls_di=`ls -di .` &&
1300ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1301  as_fn_error $? "working directory cannot be determined"
1302test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1303  as_fn_error $? "pwd does not report name of working directory"
1304
1305
1306# Find the source files, if location was not specified.
1307if test -z "$srcdir"; then
1308  ac_srcdir_defaulted=yes
1309  # Try the directory containing this script, then the parent directory.
1310  ac_confdir=`$as_dirname -- "$as_myself" ||
1311$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1312	 X"$as_myself" : 'X\(//\)[^/]' \| \
1313	 X"$as_myself" : 'X\(//\)$' \| \
1314	 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1315$as_echo X"$as_myself" |
1316    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1317	    s//\1/
1318	    q
1319	  }
1320	  /^X\(\/\/\)[^/].*/{
1321	    s//\1/
1322	    q
1323	  }
1324	  /^X\(\/\/\)$/{
1325	    s//\1/
1326	    q
1327	  }
1328	  /^X\(\/\).*/{
1329	    s//\1/
1330	    q
1331	  }
1332	  s/.*/./; q'`
1333  srcdir=$ac_confdir
1334  if test ! -r "$srcdir/$ac_unique_file"; then
1335    srcdir=..
1336  fi
1337else
1338  ac_srcdir_defaulted=no
1339fi
1340if test ! -r "$srcdir/$ac_unique_file"; then
1341  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1342  as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1343fi
1344ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1345ac_abs_confdir=`(
1346	cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1347	pwd)`
1348# When building in place, set srcdir=.
1349if test "$ac_abs_confdir" = "$ac_pwd"; then
1350  srcdir=.
1351fi
1352# Remove unnecessary trailing slashes from srcdir.
1353# Double slashes in file names in object file debugging info
1354# mess up M-x gdb in Emacs.
1355case $srcdir in
1356*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1357esac
1358for ac_var in $ac_precious_vars; do
1359  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1360  eval ac_env_${ac_var}_value=\$${ac_var}
1361  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1362  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1363done
1364
1365#
1366# Report the --help message.
1367#
1368if test "$ac_init_help" = "long"; then
1369  # Omit some internal or obsolete options to make the list less imposing.
1370  # This message is too long to be a string in the A/UX 3.1 sh.
1371  cat <<_ACEOF
1372\`configure' configures libgc-mono 6.6 to adapt to many kinds of systems.
1373
1374Usage: $0 [OPTION]... [VAR=VALUE]...
1375
1376To assign environment variables (e.g., CC, CFLAGS...), specify them as
1377VAR=VALUE.  See below for descriptions of some of the useful variables.
1378
1379Defaults for the options are specified in brackets.
1380
1381Configuration:
1382  -h, --help              display this help and exit
1383      --help=short        display options specific to this package
1384      --help=recursive    display the short help of all the included packages
1385  -V, --version           display version information and exit
1386  -q, --quiet, --silent   do not print \`checking ...' messages
1387      --cache-file=FILE   cache test results in FILE [disabled]
1388  -C, --config-cache      alias for \`--cache-file=config.cache'
1389  -n, --no-create         do not create output files
1390      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1391
1392Installation directories:
1393  --prefix=PREFIX         install architecture-independent files in PREFIX
1394                          [$ac_default_prefix]
1395  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1396                          [PREFIX]
1397
1398By default, \`make install' will install all the files in
1399\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1400an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1401for instance \`--prefix=\$HOME'.
1402
1403For better control, use the options below.
1404
1405Fine tuning of the installation directories:
1406  --bindir=DIR            user executables [EPREFIX/bin]
1407  --sbindir=DIR           system admin executables [EPREFIX/sbin]
1408  --libexecdir=DIR        program executables [EPREFIX/libexec]
1409  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1410  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1411  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1412  --libdir=DIR            object code libraries [EPREFIX/lib]
1413  --includedir=DIR        C header files [PREFIX/include]
1414  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1415  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1416  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1417  --infodir=DIR           info documentation [DATAROOTDIR/info]
1418  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1419  --mandir=DIR            man documentation [DATAROOTDIR/man]
1420  --docdir=DIR            documentation root [DATAROOTDIR/doc/libgc-mono]
1421  --htmldir=DIR           html documentation [DOCDIR]
1422  --dvidir=DIR            dvi documentation [DOCDIR]
1423  --pdfdir=DIR            pdf documentation [DOCDIR]
1424  --psdir=DIR             ps documentation [DOCDIR]
1425_ACEOF
1426
1427  cat <<\_ACEOF
1428
1429Program names:
1430  --program-prefix=PREFIX            prepend PREFIX to installed program names
1431  --program-suffix=SUFFIX            append SUFFIX to installed program names
1432  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1433
1434System types:
1435  --build=BUILD     configure for building on BUILD [guessed]
1436  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1437_ACEOF
1438fi
1439
1440if test -n "$ac_init_help"; then
1441  case $ac_init_help in
1442     short | recursive ) echo "Configuration of libgc-mono 6.6:";;
1443   esac
1444  cat <<\_ACEOF
1445
1446Optional Features:
1447  --disable-option-checking  ignore unrecognized --enable/--with options
1448  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1449  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1450  --enable-silent-rules   less verbose build output (undo: "make V=1")
1451  --disable-silent-rules  verbose build output (undo: "make V=0")
1452  --enable-dependency-tracking
1453                          do not reject slow dependency extractors
1454  --disable-dependency-tracking
1455                          speeds up one-time build
1456  --enable-maintainer-mode
1457                          enable make rules and dependencies not useful (and
1458                          sometimes confusing) to the casual installer
1459  --enable-win32-dllmain    Define the DllMain function in win32_threads.c even if the collector is not built as a dll
1460  --enable-parallel-mark	parallelize marking and free list construction
1461  --enable-cplusplus		install C++ support
1462  --enable-shared[=PKGS]  build shared libraries [default=yes]
1463  --enable-static[=PKGS]  build static libraries [default=yes]
1464  --enable-fast-install[=PKGS]
1465                          optimize for fast installation [default=yes]
1466  --disable-libtool-lock  avoid locking (might break parallel builds)
1467  --enable-full-debug	include full support for pointer backtracing etc.
1468  --enable-redirect-malloc  redirect malloc and friends to GC routines
1469  --enable-gc-assertions  collector-internal assertion checking
1470  --enable-quiet-build  Enable quiet libgc build (on by default)
1471  --enable-werror Pass -Werror to the C compiler
1472
1473Optional Packages:
1474  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1475  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1476  --with-ecos             enable runtime eCos target support
1477  --with-pic[=PKGS]       try to use only PIC/non-PIC objects [default=use
1478                          both]
1479  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1480  --with-sysroot=DIR Search for dependent libraries within DIR
1481                        (or the compiler's sysroot if not specified).
1482  --with-target-subdir=SUBDIR
1483                          configuring with a cross compiler
1484  --with-cross-host=HOST  configuring with a cross compiler
1485
1486Some influential environment variables:
1487  CC          C compiler command
1488  CFLAGS      C compiler flags
1489  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1490              nonstandard directory <lib dir>
1491  LIBS        libraries to pass to the linker, e.g. -l<library>
1492  CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1493              you have headers in a nonstandard directory <include dir>
1494  CXX         C++ compiler command
1495  CXXFLAGS    C++ compiler flags
1496  CCAS        assembler compiler command (defaults to CC)
1497  CCASFLAGS   assembler compiler flags (defaults to CFLAGS)
1498  CPP         C preprocessor
1499  CXXCPP      C++ preprocessor
1500
1501Use these variables to override the choices made by `configure' or to help
1502it to find libraries and programs with nonstandard names/locations.
1503
1504Report bugs to <Hans_Boehm@hp.com>.
1505_ACEOF
1506ac_status=$?
1507fi
1508
1509if test "$ac_init_help" = "recursive"; then
1510  # If there are subdirs, report their specific --help.
1511  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1512    test -d "$ac_dir" ||
1513      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1514      continue
1515    ac_builddir=.
1516
1517case "$ac_dir" in
1518.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1519*)
1520  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1521  # A ".." for each directory in $ac_dir_suffix.
1522  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1523  case $ac_top_builddir_sub in
1524  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1525  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1526  esac ;;
1527esac
1528ac_abs_top_builddir=$ac_pwd
1529ac_abs_builddir=$ac_pwd$ac_dir_suffix
1530# for backward compatibility:
1531ac_top_builddir=$ac_top_build_prefix
1532
1533case $srcdir in
1534  .)  # We are building in place.
1535    ac_srcdir=.
1536    ac_top_srcdir=$ac_top_builddir_sub
1537    ac_abs_top_srcdir=$ac_pwd ;;
1538  [\\/]* | ?:[\\/]* )  # Absolute name.
1539    ac_srcdir=$srcdir$ac_dir_suffix;
1540    ac_top_srcdir=$srcdir
1541    ac_abs_top_srcdir=$srcdir ;;
1542  *) # Relative name.
1543    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1544    ac_top_srcdir=$ac_top_build_prefix$srcdir
1545    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1546esac
1547ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1548
1549    cd "$ac_dir" || { ac_status=$?; continue; }
1550    # Check for guested configure.
1551    if test -f "$ac_srcdir/configure.gnu"; then
1552      echo &&
1553      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1554    elif test -f "$ac_srcdir/configure"; then
1555      echo &&
1556      $SHELL "$ac_srcdir/configure" --help=recursive
1557    else
1558      $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1559    fi || ac_status=$?
1560    cd "$ac_pwd" || { ac_status=$?; break; }
1561  done
1562fi
1563
1564test -n "$ac_init_help" && exit $ac_status
1565if $ac_init_version; then
1566  cat <<\_ACEOF
1567libgc-mono configure 6.6
1568generated by GNU Autoconf 2.69
1569
1570Copyright (C) 2012 Free Software Foundation, Inc.
1571This configure script is free software; the Free Software Foundation
1572gives unlimited permission to copy, distribute and modify it.
1573_ACEOF
1574  exit
1575fi
1576
1577## ------------------------ ##
1578## Autoconf initialization. ##
1579## ------------------------ ##
1580
1581# ac_fn_c_try_compile LINENO
1582# --------------------------
1583# Try to compile conftest.$ac_ext, and return whether this succeeded.
1584ac_fn_c_try_compile ()
1585{
1586  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1587  rm -f conftest.$ac_objext
1588  if { { ac_try="$ac_compile"
1589case "(($ac_try" in
1590  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1591  *) ac_try_echo=$ac_try;;
1592esac
1593eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1594$as_echo "$ac_try_echo"; } >&5
1595  (eval "$ac_compile") 2>conftest.err
1596  ac_status=$?
1597  if test -s conftest.err; then
1598    grep -v '^ *+' conftest.err >conftest.er1
1599    cat conftest.er1 >&5
1600    mv -f conftest.er1 conftest.err
1601  fi
1602  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1603  test $ac_status = 0; } && {
1604	 test -z "$ac_c_werror_flag" ||
1605	 test ! -s conftest.err
1606       } && test -s conftest.$ac_objext; then :
1607  ac_retval=0
1608else
1609  $as_echo "$as_me: failed program was:" >&5
1610sed 's/^/| /' conftest.$ac_ext >&5
1611
1612	ac_retval=1
1613fi
1614  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1615  as_fn_set_status $ac_retval
1616
1617} # ac_fn_c_try_compile
1618
1619# ac_fn_cxx_try_compile LINENO
1620# ----------------------------
1621# Try to compile conftest.$ac_ext, and return whether this succeeded.
1622ac_fn_cxx_try_compile ()
1623{
1624  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1625  rm -f conftest.$ac_objext
1626  if { { ac_try="$ac_compile"
1627case "(($ac_try" in
1628  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1629  *) ac_try_echo=$ac_try;;
1630esac
1631eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1632$as_echo "$ac_try_echo"; } >&5
1633  (eval "$ac_compile") 2>conftest.err
1634  ac_status=$?
1635  if test -s conftest.err; then
1636    grep -v '^ *+' conftest.err >conftest.er1
1637    cat conftest.er1 >&5
1638    mv -f conftest.er1 conftest.err
1639  fi
1640  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1641  test $ac_status = 0; } && {
1642	 test -z "$ac_cxx_werror_flag" ||
1643	 test ! -s conftest.err
1644       } && test -s conftest.$ac_objext; then :
1645  ac_retval=0
1646else
1647  $as_echo "$as_me: failed program was:" >&5
1648sed 's/^/| /' conftest.$ac_ext >&5
1649
1650	ac_retval=1
1651fi
1652  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1653  as_fn_set_status $ac_retval
1654
1655} # ac_fn_cxx_try_compile
1656
1657# ac_fn_c_try_link LINENO
1658# -----------------------
1659# Try to link conftest.$ac_ext, and return whether this succeeded.
1660ac_fn_c_try_link ()
1661{
1662  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1663  rm -f conftest.$ac_objext conftest$ac_exeext
1664  if { { ac_try="$ac_link"
1665case "(($ac_try" in
1666  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1667  *) ac_try_echo=$ac_try;;
1668esac
1669eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1670$as_echo "$ac_try_echo"; } >&5
1671  (eval "$ac_link") 2>conftest.err
1672  ac_status=$?
1673  if test -s conftest.err; then
1674    grep -v '^ *+' conftest.err >conftest.er1
1675    cat conftest.er1 >&5
1676    mv -f conftest.er1 conftest.err
1677  fi
1678  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1679  test $ac_status = 0; } && {
1680	 test -z "$ac_c_werror_flag" ||
1681	 test ! -s conftest.err
1682       } && test -s conftest$ac_exeext && {
1683	 test "$cross_compiling" = yes ||
1684	 test -x conftest$ac_exeext
1685       }; then :
1686  ac_retval=0
1687else
1688  $as_echo "$as_me: failed program was:" >&5
1689sed 's/^/| /' conftest.$ac_ext >&5
1690
1691	ac_retval=1
1692fi
1693  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1694  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1695  # interfere with the next link command; also delete a directory that is
1696  # left behind by Apple's compiler.  We do this before executing the actions.
1697  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1698  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1699  as_fn_set_status $ac_retval
1700
1701} # ac_fn_c_try_link
1702
1703# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1704# -------------------------------------------------------
1705# Tests whether HEADER exists and can be compiled using the include files in
1706# INCLUDES, setting the cache variable VAR accordingly.
1707ac_fn_c_check_header_compile ()
1708{
1709  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1710  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1711$as_echo_n "checking for $2... " >&6; }
1712if eval \${$3+:} false; then :
1713  $as_echo_n "(cached) " >&6
1714else
1715  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1716/* end confdefs.h.  */
1717$4
1718#include <$2>
1719_ACEOF
1720if ac_fn_c_try_compile "$LINENO"; then :
1721  eval "$3=yes"
1722else
1723  eval "$3=no"
1724fi
1725rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1726fi
1727eval ac_res=\$$3
1728	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1729$as_echo "$ac_res" >&6; }
1730  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1731
1732} # ac_fn_c_check_header_compile
1733
1734# ac_fn_c_try_cpp LINENO
1735# ----------------------
1736# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1737ac_fn_c_try_cpp ()
1738{
1739  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1740  if { { ac_try="$ac_cpp conftest.$ac_ext"
1741case "(($ac_try" in
1742  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1743  *) ac_try_echo=$ac_try;;
1744esac
1745eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1746$as_echo "$ac_try_echo"; } >&5
1747  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1748  ac_status=$?
1749  if test -s conftest.err; then
1750    grep -v '^ *+' conftest.err >conftest.er1
1751    cat conftest.er1 >&5
1752    mv -f conftest.er1 conftest.err
1753  fi
1754  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1755  test $ac_status = 0; } > conftest.i && {
1756	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1757	 test ! -s conftest.err
1758       }; then :
1759  ac_retval=0
1760else
1761  $as_echo "$as_me: failed program was:" >&5
1762sed 's/^/| /' conftest.$ac_ext >&5
1763
1764    ac_retval=1
1765fi
1766  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1767  as_fn_set_status $ac_retval
1768
1769} # ac_fn_c_try_cpp
1770
1771# ac_fn_c_try_run LINENO
1772# ----------------------
1773# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1774# that executables *can* be run.
1775ac_fn_c_try_run ()
1776{
1777  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1778  if { { ac_try="$ac_link"
1779case "(($ac_try" in
1780  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1781  *) ac_try_echo=$ac_try;;
1782esac
1783eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1784$as_echo "$ac_try_echo"; } >&5
1785  (eval "$ac_link") 2>&5
1786  ac_status=$?
1787  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1788  test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1789  { { case "(($ac_try" in
1790  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1791  *) ac_try_echo=$ac_try;;
1792esac
1793eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1794$as_echo "$ac_try_echo"; } >&5
1795  (eval "$ac_try") 2>&5
1796  ac_status=$?
1797  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1798  test $ac_status = 0; }; }; then :
1799  ac_retval=0
1800else
1801  $as_echo "$as_me: program exited with status $ac_status" >&5
1802       $as_echo "$as_me: failed program was:" >&5
1803sed 's/^/| /' conftest.$ac_ext >&5
1804
1805       ac_retval=$ac_status
1806fi
1807  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1808  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1809  as_fn_set_status $ac_retval
1810
1811} # ac_fn_c_try_run
1812
1813# ac_fn_c_check_func LINENO FUNC VAR
1814# ----------------------------------
1815# Tests whether FUNC exists, setting the cache variable VAR accordingly
1816ac_fn_c_check_func ()
1817{
1818  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1819  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1820$as_echo_n "checking for $2... " >&6; }
1821if eval \${$3+:} false; then :
1822  $as_echo_n "(cached) " >&6
1823else
1824  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1825/* end confdefs.h.  */
1826/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1827   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
1828#define $2 innocuous_$2
1829
1830/* System header to define __stub macros and hopefully few prototypes,
1831    which can conflict with char $2 (); below.
1832    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1833    <limits.h> exists even on freestanding compilers.  */
1834
1835#ifdef __STDC__
1836# include <limits.h>
1837#else
1838# include <assert.h>
1839#endif
1840
1841#undef $2
1842
1843/* Override any GCC internal prototype to avoid an error.
1844   Use char because int might match the return type of a GCC
1845   builtin and then its argument prototype would still apply.  */
1846#ifdef __cplusplus
1847extern "C"
1848#endif
1849char $2 ();
1850/* The GNU C library defines this for functions which it implements
1851    to always fail with ENOSYS.  Some functions are actually named
1852    something starting with __ and the normal name is an alias.  */
1853#if defined __stub_$2 || defined __stub___$2
1854choke me
1855#endif
1856
1857int
1858main ()
1859{
1860return $2 ();
1861  ;
1862  return 0;
1863}
1864_ACEOF
1865if ac_fn_c_try_link "$LINENO"; then :
1866  eval "$3=yes"
1867else
1868  eval "$3=no"
1869fi
1870rm -f core conftest.err conftest.$ac_objext \
1871    conftest$ac_exeext conftest.$ac_ext
1872fi
1873eval ac_res=\$$3
1874	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1875$as_echo "$ac_res" >&6; }
1876  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1877
1878} # ac_fn_c_check_func
1879
1880# ac_fn_cxx_try_cpp LINENO
1881# ------------------------
1882# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1883ac_fn_cxx_try_cpp ()
1884{
1885  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1886  if { { ac_try="$ac_cpp conftest.$ac_ext"
1887case "(($ac_try" in
1888  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1889  *) ac_try_echo=$ac_try;;
1890esac
1891eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1892$as_echo "$ac_try_echo"; } >&5
1893  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1894  ac_status=$?
1895  if test -s conftest.err; then
1896    grep -v '^ *+' conftest.err >conftest.er1
1897    cat conftest.er1 >&5
1898    mv -f conftest.er1 conftest.err
1899  fi
1900  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1901  test $ac_status = 0; } > conftest.i && {
1902	 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
1903	 test ! -s conftest.err
1904       }; then :
1905  ac_retval=0
1906else
1907  $as_echo "$as_me: failed program was:" >&5
1908sed 's/^/| /' conftest.$ac_ext >&5
1909
1910    ac_retval=1
1911fi
1912  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1913  as_fn_set_status $ac_retval
1914
1915} # ac_fn_cxx_try_cpp
1916
1917# ac_fn_cxx_try_link LINENO
1918# -------------------------
1919# Try to link conftest.$ac_ext, and return whether this succeeded.
1920ac_fn_cxx_try_link ()
1921{
1922  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1923  rm -f conftest.$ac_objext conftest$ac_exeext
1924  if { { ac_try="$ac_link"
1925case "(($ac_try" in
1926  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1927  *) ac_try_echo=$ac_try;;
1928esac
1929eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1930$as_echo "$ac_try_echo"; } >&5
1931  (eval "$ac_link") 2>conftest.err
1932  ac_status=$?
1933  if test -s conftest.err; then
1934    grep -v '^ *+' conftest.err >conftest.er1
1935    cat conftest.er1 >&5
1936    mv -f conftest.er1 conftest.err
1937  fi
1938  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1939  test $ac_status = 0; } && {
1940	 test -z "$ac_cxx_werror_flag" ||
1941	 test ! -s conftest.err
1942       } && test -s conftest$ac_exeext && {
1943	 test "$cross_compiling" = yes ||
1944	 test -x conftest$ac_exeext
1945       }; then :
1946  ac_retval=0
1947else
1948  $as_echo "$as_me: failed program was:" >&5
1949sed 's/^/| /' conftest.$ac_ext >&5
1950
1951	ac_retval=1
1952fi
1953  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1954  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1955  # interfere with the next link command; also delete a directory that is
1956  # left behind by Apple's compiler.  We do this before executing the actions.
1957  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1958  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1959  as_fn_set_status $ac_retval
1960
1961} # ac_fn_cxx_try_link
1962
1963# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1964# -------------------------------------------------------
1965# Tests whether HEADER exists, giving a warning if it cannot be compiled using
1966# the include files in INCLUDES and setting the cache variable VAR
1967# accordingly.
1968ac_fn_c_check_header_mongrel ()
1969{
1970  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1971  if eval \${$3+:} false; then :
1972  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1973$as_echo_n "checking for $2... " >&6; }
1974if eval \${$3+:} false; then :
1975  $as_echo_n "(cached) " >&6
1976fi
1977eval ac_res=\$$3
1978	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1979$as_echo "$ac_res" >&6; }
1980else
1981  # Is the header compilable?
1982{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1983$as_echo_n "checking $2 usability... " >&6; }
1984cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1985/* end confdefs.h.  */
1986$4
1987#include <$2>
1988_ACEOF
1989if ac_fn_c_try_compile "$LINENO"; then :
1990  ac_header_compiler=yes
1991else
1992  ac_header_compiler=no
1993fi
1994rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1995{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1996$as_echo "$ac_header_compiler" >&6; }
1997
1998# Is the header present?
1999{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2000$as_echo_n "checking $2 presence... " >&6; }
2001cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2002/* end confdefs.h.  */
2003#include <$2>
2004_ACEOF
2005if ac_fn_c_try_cpp "$LINENO"; then :
2006  ac_header_preproc=yes
2007else
2008  ac_header_preproc=no
2009fi
2010rm -f conftest.err conftest.i conftest.$ac_ext
2011{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2012$as_echo "$ac_header_preproc" >&6; }
2013
2014# So?  What about this header?
2015case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2016  yes:no: )
2017    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2018$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2019    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2020$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2021    ;;
2022  no:yes:* )
2023    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2024$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2025    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
2026$as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
2027    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2028$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2029    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
2030$as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
2031    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2032$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2033( $as_echo "## -------------------------------- ##
2034## Report this to Hans_Boehm@hp.com ##
2035## -------------------------------- ##"
2036     ) | sed "s/^/$as_me: WARNING:     /" >&2
2037    ;;
2038esac
2039  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2040$as_echo_n "checking for $2... " >&6; }
2041if eval \${$3+:} false; then :
2042  $as_echo_n "(cached) " >&6
2043else
2044  eval "$3=\$ac_header_compiler"
2045fi
2046eval ac_res=\$$3
2047	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2048$as_echo "$ac_res" >&6; }
2049fi
2050  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2051
2052} # ac_fn_c_check_header_mongrel
2053cat >config.log <<_ACEOF
2054This file contains any messages produced by compilers while
2055running configure, to aid debugging if configure makes a mistake.
2056
2057It was created by libgc-mono $as_me 6.6, which was
2058generated by GNU Autoconf 2.69.  Invocation command line was
2059
2060  $ $0 $@
2061
2062_ACEOF
2063exec 5>>config.log
2064{
2065cat <<_ASUNAME
2066## --------- ##
2067## Platform. ##
2068## --------- ##
2069
2070hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2071uname -m = `(uname -m) 2>/dev/null || echo unknown`
2072uname -r = `(uname -r) 2>/dev/null || echo unknown`
2073uname -s = `(uname -s) 2>/dev/null || echo unknown`
2074uname -v = `(uname -v) 2>/dev/null || echo unknown`
2075
2076/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2077/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2078
2079/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2080/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2081/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2082/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2083/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2084/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2085/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2086
2087_ASUNAME
2088
2089as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2090for as_dir in $PATH
2091do
2092  IFS=$as_save_IFS
2093  test -z "$as_dir" && as_dir=.
2094    $as_echo "PATH: $as_dir"
2095  done
2096IFS=$as_save_IFS
2097
2098} >&5
2099
2100cat >&5 <<_ACEOF
2101
2102
2103## ----------- ##
2104## Core tests. ##
2105## ----------- ##
2106
2107_ACEOF
2108
2109
2110# Keep a trace of the command line.
2111# Strip out --no-create and --no-recursion so they do not pile up.
2112# Strip out --silent because we don't want to record it for future runs.
2113# Also quote any args containing shell meta-characters.
2114# Make two passes to allow for proper duplicate-argument suppression.
2115ac_configure_args=
2116ac_configure_args0=
2117ac_configure_args1=
2118ac_must_keep_next=false
2119for ac_pass in 1 2
2120do
2121  for ac_arg
2122  do
2123    case $ac_arg in
2124    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2125    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2126    | -silent | --silent | --silen | --sile | --sil)
2127      continue ;;
2128    *\'*)
2129      ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2130    esac
2131    case $ac_pass in
2132    1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2133    2)
2134      as_fn_append ac_configure_args1 " '$ac_arg'"
2135      if test $ac_must_keep_next = true; then
2136	ac_must_keep_next=false # Got value, back to normal.
2137      else
2138	case $ac_arg in
2139	  *=* | --config-cache | -C | -disable-* | --disable-* \
2140	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2141	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2142	  | -with-* | --with-* | -without-* | --without-* | --x)
2143	    case "$ac_configure_args0 " in
2144	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2145	    esac
2146	    ;;
2147	  -* ) ac_must_keep_next=true ;;
2148	esac
2149      fi
2150      as_fn_append ac_configure_args " '$ac_arg'"
2151      ;;
2152    esac
2153  done
2154done
2155{ ac_configure_args0=; unset ac_configure_args0;}
2156{ ac_configure_args1=; unset ac_configure_args1;}
2157
2158# When interrupted or exit'd, cleanup temporary files, and complete
2159# config.log.  We remove comments because anyway the quotes in there
2160# would cause problems or look ugly.
2161# WARNING: Use '\'' to represent an apostrophe within the trap.
2162# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2163trap 'exit_status=$?
2164  # Save into config.log some information that might help in debugging.
2165  {
2166    echo
2167
2168    $as_echo "## ---------------- ##
2169## Cache variables. ##
2170## ---------------- ##"
2171    echo
2172    # The following way of writing the cache mishandles newlines in values,
2173(
2174  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2175    eval ac_val=\$$ac_var
2176    case $ac_val in #(
2177    *${as_nl}*)
2178      case $ac_var in #(
2179      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2180$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2181      esac
2182      case $ac_var in #(
2183      _ | IFS | as_nl) ;; #(
2184      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2185      *) { eval $ac_var=; unset $ac_var;} ;;
2186      esac ;;
2187    esac
2188  done
2189  (set) 2>&1 |
2190    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2191    *${as_nl}ac_space=\ *)
2192      sed -n \
2193	"s/'\''/'\''\\\\'\'''\''/g;
2194	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2195      ;; #(
2196    *)
2197      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2198      ;;
2199    esac |
2200    sort
2201)
2202    echo
2203
2204    $as_echo "## ----------------- ##
2205## Output variables. ##
2206## ----------------- ##"
2207    echo
2208    for ac_var in $ac_subst_vars
2209    do
2210      eval ac_val=\$$ac_var
2211      case $ac_val in
2212      *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2213      esac
2214      $as_echo "$ac_var='\''$ac_val'\''"
2215    done | sort
2216    echo
2217
2218    if test -n "$ac_subst_files"; then
2219      $as_echo "## ------------------- ##
2220## File substitutions. ##
2221## ------------------- ##"
2222      echo
2223      for ac_var in $ac_subst_files
2224      do
2225	eval ac_val=\$$ac_var
2226	case $ac_val in
2227	*\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2228	esac
2229	$as_echo "$ac_var='\''$ac_val'\''"
2230      done | sort
2231      echo
2232    fi
2233
2234    if test -s confdefs.h; then
2235      $as_echo "## ----------- ##
2236## confdefs.h. ##
2237## ----------- ##"
2238      echo
2239      cat confdefs.h
2240      echo
2241    fi
2242    test "$ac_signal" != 0 &&
2243      $as_echo "$as_me: caught signal $ac_signal"
2244    $as_echo "$as_me: exit $exit_status"
2245  } >&5
2246  rm -f core *.core core.conftest.* &&
2247    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2248    exit $exit_status
2249' 0
2250for ac_signal in 1 2 13 15; do
2251  trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2252done
2253ac_signal=0
2254
2255# confdefs.h avoids OS command line length limits that DEFS can exceed.
2256rm -f -r conftest* confdefs.h
2257
2258$as_echo "/* confdefs.h */" > confdefs.h
2259
2260# Predefined preprocessor variables.
2261
2262cat >>confdefs.h <<_ACEOF
2263#define PACKAGE_NAME "$PACKAGE_NAME"
2264_ACEOF
2265
2266cat >>confdefs.h <<_ACEOF
2267#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2268_ACEOF
2269
2270cat >>confdefs.h <<_ACEOF
2271#define PACKAGE_VERSION "$PACKAGE_VERSION"
2272_ACEOF
2273
2274cat >>confdefs.h <<_ACEOF
2275#define PACKAGE_STRING "$PACKAGE_STRING"
2276_ACEOF
2277
2278cat >>confdefs.h <<_ACEOF
2279#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2280_ACEOF
2281
2282cat >>confdefs.h <<_ACEOF
2283#define PACKAGE_URL "$PACKAGE_URL"
2284_ACEOF
2285
2286
2287# Let the site file select an alternate cache file if it wants to.
2288# Prefer an explicitly selected file to automatically selected ones.
2289ac_site_file1=NONE
2290ac_site_file2=NONE
2291if test -n "$CONFIG_SITE"; then
2292  # We do not want a PATH search for config.site.
2293  case $CONFIG_SITE in #((
2294    -*)  ac_site_file1=./$CONFIG_SITE;;
2295    */*) ac_site_file1=$CONFIG_SITE;;
2296    *)   ac_site_file1=./$CONFIG_SITE;;
2297  esac
2298elif test "x$prefix" != xNONE; then
2299  ac_site_file1=$prefix/share/config.site
2300  ac_site_file2=$prefix/etc/config.site
2301else
2302  ac_site_file1=$ac_default_prefix/share/config.site
2303  ac_site_file2=$ac_default_prefix/etc/config.site
2304fi
2305for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2306do
2307  test "x$ac_site_file" = xNONE && continue
2308  if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2309    { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2310$as_echo "$as_me: loading site script $ac_site_file" >&6;}
2311    sed 's/^/| /' "$ac_site_file" >&5
2312    . "$ac_site_file" \
2313      || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2314$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2315as_fn_error $? "failed to load site script $ac_site_file
2316See \`config.log' for more details" "$LINENO" 5; }
2317  fi
2318done
2319
2320if test -r "$cache_file"; then
2321  # Some versions of bash will fail to source /dev/null (special files
2322  # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2323  if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2324    { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2325$as_echo "$as_me: loading cache $cache_file" >&6;}
2326    case $cache_file in
2327      [\\/]* | ?:[\\/]* ) . "$cache_file";;
2328      *)                      . "./$cache_file";;
2329    esac
2330  fi
2331else
2332  { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2333$as_echo "$as_me: creating cache $cache_file" >&6;}
2334  >$cache_file
2335fi
2336
2337# Check that the precious variables saved in the cache have kept the same
2338# value.
2339ac_cache_corrupted=false
2340for ac_var in $ac_precious_vars; do
2341  eval ac_old_set=\$ac_cv_env_${ac_var}_set
2342  eval ac_new_set=\$ac_env_${ac_var}_set
2343  eval ac_old_val=\$ac_cv_env_${ac_var}_value
2344  eval ac_new_val=\$ac_env_${ac_var}_value
2345  case $ac_old_set,$ac_new_set in
2346    set,)
2347      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2348$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2349      ac_cache_corrupted=: ;;
2350    ,set)
2351      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2352$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2353      ac_cache_corrupted=: ;;
2354    ,);;
2355    *)
2356      if test "x$ac_old_val" != "x$ac_new_val"; then
2357	# differences in whitespace do not lead to failure.
2358	ac_old_val_w=`echo x $ac_old_val`
2359	ac_new_val_w=`echo x $ac_new_val`
2360	if test "$ac_old_val_w" != "$ac_new_val_w"; then
2361	  { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2362$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2363	  ac_cache_corrupted=:
2364	else
2365	  { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2366$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2367	  eval $ac_var=\$ac_old_val
2368	fi
2369	{ $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2370$as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2371	{ $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2372$as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2373      fi;;
2374  esac
2375  # Pass precious variables to config.status.
2376  if test "$ac_new_set" = set; then
2377    case $ac_new_val in
2378    *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2379    *) ac_arg=$ac_var=$ac_new_val ;;
2380    esac
2381    case " $ac_configure_args " in
2382      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2383      *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2384    esac
2385  fi
2386done
2387if $ac_cache_corrupted; then
2388  { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2389$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2390  { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2391$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2392  as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2393fi
2394## -------------------- ##
2395## Main body of script. ##
2396## -------------------- ##
2397
2398ac_ext=c
2399ac_cpp='$CPP $CPPFLAGS'
2400ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2401ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2402ac_compiler_gnu=$ac_cv_c_compiler_gnu
2403
2404
2405
2406am__api_version='1.14'
2407
2408ac_aux_dir=
2409for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2410  if test -f "$ac_dir/install-sh"; then
2411    ac_aux_dir=$ac_dir
2412    ac_install_sh="$ac_aux_dir/install-sh -c"
2413    break
2414  elif 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/shtool"; then
2419    ac_aux_dir=$ac_dir
2420    ac_install_sh="$ac_aux_dir/shtool install -c"
2421    break
2422  fi
2423done
2424if test -z "$ac_aux_dir"; then
2425  as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2426fi
2427
2428# These three variables are undocumented and unsupported,
2429# and are intended to be withdrawn in a future Autoconf release.
2430# They can cause serious problems if a builder's source tree is in a directory
2431# whose full name contains unusual characters.
2432ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2433ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2434ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2435
2436
2437# Find a good install program.  We prefer a C program (faster),
2438# so one script is as good as another.  But avoid the broken or
2439# incompatible versions:
2440# SysV /etc/install, /usr/sbin/install
2441# SunOS /usr/etc/install
2442# IRIX /sbin/install
2443# AIX /bin/install
2444# AmigaOS /C/install, which installs bootblocks on floppy discs
2445# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2446# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2447# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2448# OS/2's system install, which has a completely different semantic
2449# ./install, which can be erroneously created by make from ./install.sh.
2450# Reject install programs that cannot install multiple files.
2451{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2452$as_echo_n "checking for a BSD-compatible install... " >&6; }
2453if test -z "$INSTALL"; then
2454if ${ac_cv_path_install+:} false; then :
2455  $as_echo_n "(cached) " >&6
2456else
2457  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2458for as_dir in $PATH
2459do
2460  IFS=$as_save_IFS
2461  test -z "$as_dir" && as_dir=.
2462    # Account for people who put trailing slashes in PATH elements.
2463case $as_dir/ in #((
2464  ./ | .// | /[cC]/* | \
2465  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2466  ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2467  /usr/ucb/* ) ;;
2468  *)
2469    # OSF1 and SCO ODT 3.0 have their own names for install.
2470    # Don't use installbsd from OSF since it installs stuff as root
2471    # by default.
2472    for ac_prog in ginstall scoinst install; do
2473      for ac_exec_ext in '' $ac_executable_extensions; do
2474	if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2475	  if test $ac_prog = install &&
2476	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2477	    # AIX install.  It has an incompatible calling convention.
2478	    :
2479	  elif test $ac_prog = install &&
2480	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2481	    # program-specific install script used by HP pwplus--don't use.
2482	    :
2483	  else
2484	    rm -rf conftest.one conftest.two conftest.dir
2485	    echo one > conftest.one
2486	    echo two > conftest.two
2487	    mkdir conftest.dir
2488	    if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2489	      test -s conftest.one && test -s conftest.two &&
2490	      test -s conftest.dir/conftest.one &&
2491	      test -s conftest.dir/conftest.two
2492	    then
2493	      ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2494	      break 3
2495	    fi
2496	  fi
2497	fi
2498      done
2499    done
2500    ;;
2501esac
2502
2503  done
2504IFS=$as_save_IFS
2505
2506rm -rf conftest.one conftest.two conftest.dir
2507
2508fi
2509  if test "${ac_cv_path_install+set}" = set; then
2510    INSTALL=$ac_cv_path_install
2511  else
2512    # As a last resort, use the slow shell script.  Don't cache a
2513    # value for INSTALL within a source directory, because that will
2514    # break other packages using the cache if that directory is
2515    # removed, or if the value is a relative name.
2516    INSTALL=$ac_install_sh
2517  fi
2518fi
2519{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2520$as_echo "$INSTALL" >&6; }
2521
2522# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2523# It thinks the first close brace ends the variable substitution.
2524test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2525
2526test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2527
2528test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2529
2530{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2531$as_echo_n "checking whether build environment is sane... " >&6; }
2532# Reject unsafe characters in $srcdir or the absolute working directory
2533# name.  Accept space and tab only in the latter.
2534am_lf='
2535'
2536case `pwd` in
2537  *[\\\"\#\$\&\'\`$am_lf]*)
2538    as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2539esac
2540case $srcdir in
2541  *[\\\"\#\$\&\'\`$am_lf\ \	]*)
2542    as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2543esac
2544
2545# Do 'set' in a subshell so we don't clobber the current shell's
2546# arguments.  Must try -L first in case configure is actually a
2547# symlink; some systems play weird games with the mod time of symlinks
2548# (eg FreeBSD returns the mod time of the symlink's containing
2549# directory).
2550if (
2551   am_has_slept=no
2552   for am_try in 1 2; do
2553     echo "timestamp, slept: $am_has_slept" > conftest.file
2554     set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2555     if test "$*" = "X"; then
2556	# -L didn't work.
2557	set X `ls -t "$srcdir/configure" conftest.file`
2558     fi
2559     if test "$*" != "X $srcdir/configure conftest.file" \
2560	&& test "$*" != "X conftest.file $srcdir/configure"; then
2561
2562	# If neither matched, then we have a broken ls.  This can happen
2563	# if, for instance, CONFIG_SHELL is bash and it inherits a
2564	# broken ls alias from the environment.  This has actually
2565	# happened.  Such a system could not be considered "sane".
2566	as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
2567  alias in your environment" "$LINENO" 5
2568     fi
2569     if test "$2" = conftest.file || test $am_try -eq 2; then
2570       break
2571     fi
2572     # Just in case.
2573     sleep 1
2574     am_has_slept=yes
2575   done
2576   test "$2" = conftest.file
2577   )
2578then
2579   # Ok.
2580   :
2581else
2582   as_fn_error $? "newly created file is older than distributed files!
2583Check your system clock" "$LINENO" 5
2584fi
2585{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2586$as_echo "yes" >&6; }
2587# If we didn't sleep, we still need to ensure time stamps of config.status and
2588# generated files are strictly newer.
2589am_sleep_pid=
2590if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2591  ( sleep 1 ) &
2592  am_sleep_pid=$!
2593fi
2594
2595rm -f conftest.file
2596
2597test "$program_prefix" != NONE &&
2598  program_transform_name="s&^&$program_prefix&;$program_transform_name"
2599# Use a double $ so make ignores it.
2600test "$program_suffix" != NONE &&
2601  program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2602# Double any \ or $.
2603# By default was `s,x,x', remove it if useless.
2604ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2605program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2606
2607# expand $ac_aux_dir to an absolute path
2608am_aux_dir=`cd $ac_aux_dir && pwd`
2609
2610if test x"${MISSING+set}" != xset; then
2611  case $am_aux_dir in
2612  *\ * | *\	*)
2613    MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2614  *)
2615    MISSING="\${SHELL} $am_aux_dir/missing" ;;
2616  esac
2617fi
2618# Use eval to expand $SHELL
2619if eval "$MISSING --is-lightweight"; then
2620  am_missing_run="$MISSING "
2621else
2622  am_missing_run=
2623  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2624$as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
2625fi
2626
2627if test x"${install_sh}" != xset; then
2628  case $am_aux_dir in
2629  *\ * | *\	*)
2630    install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2631  *)
2632    install_sh="\${SHELL} $am_aux_dir/install-sh"
2633  esac
2634fi
2635
2636# Installed binaries are usually stripped using 'strip' when the user
2637# run "make install-strip".  However 'strip' might not be the right
2638# tool to use in cross-compilation environments, therefore Automake
2639# will honor the 'STRIP' environment variable to overrule this program.
2640if test "$cross_compiling" != no; then
2641  if test -n "$ac_tool_prefix"; then
2642  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2643set dummy ${ac_tool_prefix}strip; ac_word=$2
2644{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2645$as_echo_n "checking for $ac_word... " >&6; }
2646if ${ac_cv_prog_STRIP+:} false; then :
2647  $as_echo_n "(cached) " >&6
2648else
2649  if test -n "$STRIP"; then
2650  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2651else
2652as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2653for as_dir in $PATH
2654do
2655  IFS=$as_save_IFS
2656  test -z "$as_dir" && as_dir=.
2657    for ac_exec_ext in '' $ac_executable_extensions; do
2658  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2659    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2660    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2661    break 2
2662  fi
2663done
2664  done
2665IFS=$as_save_IFS
2666
2667fi
2668fi
2669STRIP=$ac_cv_prog_STRIP
2670if test -n "$STRIP"; then
2671  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2672$as_echo "$STRIP" >&6; }
2673else
2674  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2675$as_echo "no" >&6; }
2676fi
2677
2678
2679fi
2680if test -z "$ac_cv_prog_STRIP"; then
2681  ac_ct_STRIP=$STRIP
2682  # Extract the first word of "strip", so it can be a program name with args.
2683set dummy strip; ac_word=$2
2684{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2685$as_echo_n "checking for $ac_word... " >&6; }
2686if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2687  $as_echo_n "(cached) " >&6
2688else
2689  if test -n "$ac_ct_STRIP"; then
2690  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2691else
2692as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2693for as_dir in $PATH
2694do
2695  IFS=$as_save_IFS
2696  test -z "$as_dir" && as_dir=.
2697    for ac_exec_ext in '' $ac_executable_extensions; do
2698  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2699    ac_cv_prog_ac_ct_STRIP="strip"
2700    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2701    break 2
2702  fi
2703done
2704  done
2705IFS=$as_save_IFS
2706
2707fi
2708fi
2709ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2710if test -n "$ac_ct_STRIP"; then
2711  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2712$as_echo "$ac_ct_STRIP" >&6; }
2713else
2714  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2715$as_echo "no" >&6; }
2716fi
2717
2718  if test "x$ac_ct_STRIP" = x; then
2719    STRIP=":"
2720  else
2721    case $cross_compiling:$ac_tool_warned in
2722yes:)
2723{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2724$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2725ac_tool_warned=yes ;;
2726esac
2727    STRIP=$ac_ct_STRIP
2728  fi
2729else
2730  STRIP="$ac_cv_prog_STRIP"
2731fi
2732
2733fi
2734INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2735
2736{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2737$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2738if test -z "$MKDIR_P"; then
2739  if ${ac_cv_path_mkdir+:} false; then :
2740  $as_echo_n "(cached) " >&6
2741else
2742  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2743for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2744do
2745  IFS=$as_save_IFS
2746  test -z "$as_dir" && as_dir=.
2747    for ac_prog in mkdir gmkdir; do
2748	 for ac_exec_ext in '' $ac_executable_extensions; do
2749	   as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
2750	   case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2751	     'mkdir (GNU coreutils) '* | \
2752	     'mkdir (coreutils) '* | \
2753	     'mkdir (fileutils) '4.1*)
2754	       ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2755	       break 3;;
2756	   esac
2757	 done
2758       done
2759  done
2760IFS=$as_save_IFS
2761
2762fi
2763
2764  test -d ./--version && rmdir ./--version
2765  if test "${ac_cv_path_mkdir+set}" = set; then
2766    MKDIR_P="$ac_cv_path_mkdir -p"
2767  else
2768    # As a last resort, use the slow shell script.  Don't cache a
2769    # value for MKDIR_P within a source directory, because that will
2770    # break other packages using the cache if that directory is
2771    # removed, or if the value is a relative name.
2772    MKDIR_P="$ac_install_sh -d"
2773  fi
2774fi
2775{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2776$as_echo "$MKDIR_P" >&6; }
2777
2778for ac_prog in gawk mawk nawk awk
2779do
2780  # Extract the first word of "$ac_prog", so it can be a program name with args.
2781set dummy $ac_prog; ac_word=$2
2782{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2783$as_echo_n "checking for $ac_word... " >&6; }
2784if ${ac_cv_prog_AWK+:} false; then :
2785  $as_echo_n "(cached) " >&6
2786else
2787  if test -n "$AWK"; then
2788  ac_cv_prog_AWK="$AWK" # Let the user override the test.
2789else
2790as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2791for as_dir in $PATH
2792do
2793  IFS=$as_save_IFS
2794  test -z "$as_dir" && as_dir=.
2795    for ac_exec_ext in '' $ac_executable_extensions; do
2796  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2797    ac_cv_prog_AWK="$ac_prog"
2798    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2799    break 2
2800  fi
2801done
2802  done
2803IFS=$as_save_IFS
2804
2805fi
2806fi
2807AWK=$ac_cv_prog_AWK
2808if test -n "$AWK"; then
2809  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2810$as_echo "$AWK" >&6; }
2811else
2812  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2813$as_echo "no" >&6; }
2814fi
2815
2816
2817  test -n "$AWK" && break
2818done
2819
2820{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2821$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2822set x ${MAKE-make}
2823ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2824if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2825  $as_echo_n "(cached) " >&6
2826else
2827  cat >conftest.make <<\_ACEOF
2828SHELL = /bin/sh
2829all:
2830	@echo '@@@%%%=$(MAKE)=@@@%%%'
2831_ACEOF
2832# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2833case `${MAKE-make} -f conftest.make 2>/dev/null` in
2834  *@@@%%%=?*=@@@%%%*)
2835    eval ac_cv_prog_make_${ac_make}_set=yes;;
2836  *)
2837    eval ac_cv_prog_make_${ac_make}_set=no;;
2838esac
2839rm -f conftest.make
2840fi
2841if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2842  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2843$as_echo "yes" >&6; }
2844  SET_MAKE=
2845else
2846  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2847$as_echo "no" >&6; }
2848  SET_MAKE="MAKE=${MAKE-make}"
2849fi
2850
2851rm -rf .tst 2>/dev/null
2852mkdir .tst 2>/dev/null
2853if test -d .tst; then
2854  am__leading_dot=.
2855else
2856  am__leading_dot=_
2857fi
2858rmdir .tst 2>/dev/null
2859
2860# Check whether --enable-silent-rules was given.
2861if test "${enable_silent_rules+set}" = set; then :
2862  enableval=$enable_silent_rules;
2863fi
2864
2865case $enable_silent_rules in # (((
2866  yes) AM_DEFAULT_VERBOSITY=0;;
2867   no) AM_DEFAULT_VERBOSITY=1;;
2868    *) AM_DEFAULT_VERBOSITY=1;;
2869esac
2870am_make=${MAKE-make}
2871{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
2872$as_echo_n "checking whether $am_make supports nested variables... " >&6; }
2873if ${am_cv_make_support_nested_variables+:} false; then :
2874  $as_echo_n "(cached) " >&6
2875else
2876  if $as_echo 'TRUE=$(BAR$(V))
2877BAR0=false
2878BAR1=true
2879V=1
2880am__doit:
2881	@$(TRUE)
2882.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
2883  am_cv_make_support_nested_variables=yes
2884else
2885  am_cv_make_support_nested_variables=no
2886fi
2887fi
2888{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
2889$as_echo "$am_cv_make_support_nested_variables" >&6; }
2890if test $am_cv_make_support_nested_variables = yes; then
2891    AM_V='$(V)'
2892  AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
2893else
2894  AM_V=$AM_DEFAULT_VERBOSITY
2895  AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
2896fi
2897AM_BACKSLASH='\'
2898
2899if test "`cd $srcdir && pwd`" != "`pwd`"; then
2900  # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2901  # is not polluted with repeated "-I."
2902  am__isrc=' -I$(srcdir)'
2903  # test to see if srcdir already configured
2904  if test -f $srcdir/config.status; then
2905    as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2906  fi
2907fi
2908
2909# test whether we have cygpath
2910if test -z "$CYGPATH_W"; then
2911  if (cygpath --version) >/dev/null 2>/dev/null; then
2912    CYGPATH_W='cygpath -w'
2913  else
2914    CYGPATH_W=echo
2915  fi
2916fi
2917
2918
2919# Define the identity of the package.
2920 PACKAGE='libgc-mono'
2921 VERSION='6.6'
2922
2923
2924# Some tools Automake needs.
2925
2926ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2927
2928
2929AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2930
2931
2932AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2933
2934
2935AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2936
2937
2938MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2939
2940# For better backward compatibility.  To be removed once Automake 1.9.x
2941# dies out for good.  For more background, see:
2942# <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
2943# <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
2944mkdir_p='$(MKDIR_P)'
2945
2946# We need awk for the "check" target.  The system "awk" is bad on
2947# some platforms.
2948# Always define AMTAR for backward compatibility.  Yes, it's still used
2949# in the wild :-(  We should find a proper way to deprecate it ...
2950AMTAR='$${TAR-tar}'
2951
2952
2953# We'll loop over all known methods to create a tar archive until one works.
2954_am_tools='gnutar  pax cpio none'
2955
2956am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
2957
2958
2959
2960
2961
2962
2963# POSIX will say in a future version that running "rm -f" with no argument
2964# is OK; and we want to be able to make that assumption in our Makefile
2965# recipes.  So use an aggressive probe to check that the usage we want is
2966# actually supported "in the wild" to an acceptable degree.
2967# See automake bug#10828.
2968# To make any issue more visible, cause the running configure to be aborted
2969# by default if the 'rm' program in use doesn't match our expectations; the
2970# user can still override this though.
2971if rm -f && rm -fr && rm -rf; then : OK; else
2972  cat >&2 <<'END'
2973Oops!
2974
2975Your 'rm' program seems unable to run without file operands specified
2976on the command line, even when the '-f' option is present.  This is contrary
2977to the behaviour of most rm programs out there, and not conforming with
2978the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
2979
2980Please tell bug-automake@gnu.org about your system, including the value
2981of your $PATH and any error possibly output before this message.  This
2982can help us improve future automake versions.
2983
2984END
2985  if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
2986    echo 'Configuration will proceed anyway, since you have set the' >&2
2987    echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
2988    echo >&2
2989  else
2990    cat >&2 <<'END'
2991Aborting the configuration process, to ensure you take notice of the issue.
2992
2993You can download and install GNU coreutils to get an 'rm' implementation
2994that behaves properly: <http://www.gnu.org/software/coreutils/>.
2995
2996If you want to complete the configuration process using your problematic
2997'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
2998to "yes", and re-run configure.
2999
3000END
3001    as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
3002  fi
3003fi
3004
3005
3006# Make sure we can run config.sub.
3007$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3008  as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
3009
3010{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3011$as_echo_n "checking build system type... " >&6; }
3012if ${ac_cv_build+:} false; then :
3013  $as_echo_n "(cached) " >&6
3014else
3015  ac_build_alias=$build_alias
3016test "x$ac_build_alias" = x &&
3017  ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3018test "x$ac_build_alias" = x &&
3019  as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
3020ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3021  as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
3022
3023fi
3024{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3025$as_echo "$ac_cv_build" >&6; }
3026case $ac_cv_build in
3027*-*-*) ;;
3028*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
3029esac
3030build=$ac_cv_build
3031ac_save_IFS=$IFS; IFS='-'
3032set x $ac_cv_build
3033shift
3034build_cpu=$1
3035build_vendor=$2
3036shift; shift
3037# Remember, the first character of IFS is used to create $*,
3038# except with old shells:
3039build_os=$*
3040IFS=$ac_save_IFS
3041case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3042
3043
3044{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3045$as_echo_n "checking host system type... " >&6; }
3046if ${ac_cv_host+:} false; then :
3047  $as_echo_n "(cached) " >&6
3048else
3049  if test "x$host_alias" = x; then
3050  ac_cv_host=$ac_cv_build
3051else
3052  ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3053    as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3054fi
3055
3056fi
3057{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3058$as_echo "$ac_cv_host" >&6; }
3059case $ac_cv_host in
3060*-*-*) ;;
3061*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
3062esac
3063host=$ac_cv_host
3064ac_save_IFS=$IFS; IFS='-'
3065set x $ac_cv_host
3066shift
3067host_cpu=$1
3068host_vendor=$2
3069shift; shift
3070# Remember, the first character of IFS is used to create $*,
3071# except with old shells:
3072host_os=$*
3073IFS=$ac_save_IFS
3074case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3075
3076
3077
3078
3079
3080
3081ac_ext=c
3082ac_cpp='$CPP $CPPFLAGS'
3083ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3084ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3085ac_compiler_gnu=$ac_cv_c_compiler_gnu
3086if test -n "$ac_tool_prefix"; then
3087  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3088set dummy ${ac_tool_prefix}gcc; ac_word=$2
3089{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3090$as_echo_n "checking for $ac_word... " >&6; }
3091if ${ac_cv_prog_CC+:} false; then :
3092  $as_echo_n "(cached) " >&6
3093else
3094  if test -n "$CC"; then
3095  ac_cv_prog_CC="$CC" # Let the user override the test.
3096else
3097as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3098for as_dir in $PATH
3099do
3100  IFS=$as_save_IFS
3101  test -z "$as_dir" && as_dir=.
3102    for ac_exec_ext in '' $ac_executable_extensions; do
3103  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3104    ac_cv_prog_CC="${ac_tool_prefix}gcc"
3105    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3106    break 2
3107  fi
3108done
3109  done
3110IFS=$as_save_IFS
3111
3112fi
3113fi
3114CC=$ac_cv_prog_CC
3115if test -n "$CC"; then
3116  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3117$as_echo "$CC" >&6; }
3118else
3119  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3120$as_echo "no" >&6; }
3121fi
3122
3123
3124fi
3125if test -z "$ac_cv_prog_CC"; then
3126  ac_ct_CC=$CC
3127  # Extract the first word of "gcc", so it can be a program name with args.
3128set dummy gcc; ac_word=$2
3129{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3130$as_echo_n "checking for $ac_word... " >&6; }
3131if ${ac_cv_prog_ac_ct_CC+:} false; then :
3132  $as_echo_n "(cached) " >&6
3133else
3134  if test -n "$ac_ct_CC"; then
3135  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3136else
3137as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3138for as_dir in $PATH
3139do
3140  IFS=$as_save_IFS
3141  test -z "$as_dir" && as_dir=.
3142    for ac_exec_ext in '' $ac_executable_extensions; do
3143  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3144    ac_cv_prog_ac_ct_CC="gcc"
3145    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3146    break 2
3147  fi
3148done
3149  done
3150IFS=$as_save_IFS
3151
3152fi
3153fi
3154ac_ct_CC=$ac_cv_prog_ac_ct_CC
3155if test -n "$ac_ct_CC"; then
3156  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3157$as_echo "$ac_ct_CC" >&6; }
3158else
3159  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3160$as_echo "no" >&6; }
3161fi
3162
3163  if test "x$ac_ct_CC" = x; then
3164    CC=""
3165  else
3166    case $cross_compiling:$ac_tool_warned in
3167yes:)
3168{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3169$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3170ac_tool_warned=yes ;;
3171esac
3172    CC=$ac_ct_CC
3173  fi
3174else
3175  CC="$ac_cv_prog_CC"
3176fi
3177
3178if test -z "$CC"; then
3179          if test -n "$ac_tool_prefix"; then
3180    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3181set dummy ${ac_tool_prefix}cc; ac_word=$2
3182{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3183$as_echo_n "checking for $ac_word... " >&6; }
3184if ${ac_cv_prog_CC+:} false; then :
3185  $as_echo_n "(cached) " >&6
3186else
3187  if test -n "$CC"; then
3188  ac_cv_prog_CC="$CC" # Let the user override the test.
3189else
3190as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3191for as_dir in $PATH
3192do
3193  IFS=$as_save_IFS
3194  test -z "$as_dir" && as_dir=.
3195    for ac_exec_ext in '' $ac_executable_extensions; do
3196  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3197    ac_cv_prog_CC="${ac_tool_prefix}cc"
3198    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3199    break 2
3200  fi
3201done
3202  done
3203IFS=$as_save_IFS
3204
3205fi
3206fi
3207CC=$ac_cv_prog_CC
3208if test -n "$CC"; then
3209  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3210$as_echo "$CC" >&6; }
3211else
3212  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3213$as_echo "no" >&6; }
3214fi
3215
3216
3217  fi
3218fi
3219if test -z "$CC"; then
3220  # Extract the first word of "cc", so it can be a program name with args.
3221set dummy cc; ac_word=$2
3222{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3223$as_echo_n "checking for $ac_word... " >&6; }
3224if ${ac_cv_prog_CC+:} false; then :
3225  $as_echo_n "(cached) " >&6
3226else
3227  if test -n "$CC"; then
3228  ac_cv_prog_CC="$CC" # Let the user override the test.
3229else
3230  ac_prog_rejected=no
3231as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3232for as_dir in $PATH
3233do
3234  IFS=$as_save_IFS
3235  test -z "$as_dir" && as_dir=.
3236    for ac_exec_ext in '' $ac_executable_extensions; do
3237  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3238    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3239       ac_prog_rejected=yes
3240       continue
3241     fi
3242    ac_cv_prog_CC="cc"
3243    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3244    break 2
3245  fi
3246done
3247  done
3248IFS=$as_save_IFS
3249
3250if test $ac_prog_rejected = yes; then
3251  # We found a bogon in the path, so make sure we never use it.
3252  set dummy $ac_cv_prog_CC
3253  shift
3254  if test $# != 0; then
3255    # We chose a different compiler from the bogus one.
3256    # However, it has the same basename, so the bogon will be chosen
3257    # first if we set CC to just the basename; use the full file name.
3258    shift
3259    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3260  fi
3261fi
3262fi
3263fi
3264CC=$ac_cv_prog_CC
3265if test -n "$CC"; then
3266  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3267$as_echo "$CC" >&6; }
3268else
3269  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3270$as_echo "no" >&6; }
3271fi
3272
3273
3274fi
3275if test -z "$CC"; then
3276  if test -n "$ac_tool_prefix"; then
3277  for ac_prog in cl.exe
3278  do
3279    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3280set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3281{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3282$as_echo_n "checking for $ac_word... " >&6; }
3283if ${ac_cv_prog_CC+:} false; then :
3284  $as_echo_n "(cached) " >&6
3285else
3286  if test -n "$CC"; then
3287  ac_cv_prog_CC="$CC" # Let the user override the test.
3288else
3289as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3290for as_dir in $PATH
3291do
3292  IFS=$as_save_IFS
3293  test -z "$as_dir" && as_dir=.
3294    for ac_exec_ext in '' $ac_executable_extensions; do
3295  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3296    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3297    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3298    break 2
3299  fi
3300done
3301  done
3302IFS=$as_save_IFS
3303
3304fi
3305fi
3306CC=$ac_cv_prog_CC
3307if test -n "$CC"; then
3308  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3309$as_echo "$CC" >&6; }
3310else
3311  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3312$as_echo "no" >&6; }
3313fi
3314
3315
3316    test -n "$CC" && break
3317  done
3318fi
3319if test -z "$CC"; then
3320  ac_ct_CC=$CC
3321  for ac_prog in cl.exe
3322do
3323  # Extract the first word of "$ac_prog", so it can be a program name with args.
3324set dummy $ac_prog; ac_word=$2
3325{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3326$as_echo_n "checking for $ac_word... " >&6; }
3327if ${ac_cv_prog_ac_ct_CC+:} false; then :
3328  $as_echo_n "(cached) " >&6
3329else
3330  if test -n "$ac_ct_CC"; then
3331  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3332else
3333as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3334for as_dir in $PATH
3335do
3336  IFS=$as_save_IFS
3337  test -z "$as_dir" && as_dir=.
3338    for ac_exec_ext in '' $ac_executable_extensions; do
3339  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3340    ac_cv_prog_ac_ct_CC="$ac_prog"
3341    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3342    break 2
3343  fi
3344done
3345  done
3346IFS=$as_save_IFS
3347
3348fi
3349fi
3350ac_ct_CC=$ac_cv_prog_ac_ct_CC
3351if test -n "$ac_ct_CC"; then
3352  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3353$as_echo "$ac_ct_CC" >&6; }
3354else
3355  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3356$as_echo "no" >&6; }
3357fi
3358
3359
3360  test -n "$ac_ct_CC" && break
3361done
3362
3363  if test "x$ac_ct_CC" = x; then
3364    CC=""
3365  else
3366    case $cross_compiling:$ac_tool_warned in
3367yes:)
3368{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3369$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3370ac_tool_warned=yes ;;
3371esac
3372    CC=$ac_ct_CC
3373  fi
3374fi
3375
3376fi
3377
3378
3379test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3380$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3381as_fn_error $? "no acceptable C compiler found in \$PATH
3382See \`config.log' for more details" "$LINENO" 5; }
3383
3384# Provide some information about the compiler.
3385$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3386set X $ac_compile
3387ac_compiler=$2
3388for ac_option in --version -v -V -qversion; do
3389  { { ac_try="$ac_compiler $ac_option >&5"
3390case "(($ac_try" in
3391  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3392  *) ac_try_echo=$ac_try;;
3393esac
3394eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3395$as_echo "$ac_try_echo"; } >&5
3396  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3397  ac_status=$?
3398  if test -s conftest.err; then
3399    sed '10a\
3400... rest of stderr output deleted ...
3401         10q' conftest.err >conftest.er1
3402    cat conftest.er1 >&5
3403  fi
3404  rm -f conftest.er1 conftest.err
3405  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3406  test $ac_status = 0; }
3407done
3408
3409cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3410/* end confdefs.h.  */
3411
3412int
3413main ()
3414{
3415
3416  ;
3417  return 0;
3418}
3419_ACEOF
3420ac_clean_files_save=$ac_clean_files
3421ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3422# Try to create an executable without -o first, disregard a.out.
3423# It will help us diagnose broken compilers, and finding out an intuition
3424# of exeext.
3425{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3426$as_echo_n "checking whether the C compiler works... " >&6; }
3427ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3428
3429# The possible output files:
3430ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3431
3432ac_rmfiles=
3433for ac_file in $ac_files
3434do
3435  case $ac_file in
3436    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3437    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3438  esac
3439done
3440rm -f $ac_rmfiles
3441
3442if { { ac_try="$ac_link_default"
3443case "(($ac_try" in
3444  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3445  *) ac_try_echo=$ac_try;;
3446esac
3447eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3448$as_echo "$ac_try_echo"; } >&5
3449  (eval "$ac_link_default") 2>&5
3450  ac_status=$?
3451  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3452  test $ac_status = 0; }; then :
3453  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3454# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3455# in a Makefile.  We should not override ac_cv_exeext if it was cached,
3456# so that the user can short-circuit this test for compilers unknown to
3457# Autoconf.
3458for ac_file in $ac_files ''
3459do
3460  test -f "$ac_file" || continue
3461  case $ac_file in
3462    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3463	;;
3464    [ab].out )
3465	# We found the default executable, but exeext='' is most
3466	# certainly right.
3467	break;;
3468    *.* )
3469	if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3470	then :; else
3471	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3472	fi
3473	# We set ac_cv_exeext here because the later test for it is not
3474	# safe: cross compilers may not add the suffix if given an `-o'
3475	# argument, so we may need to know it at that point already.
3476	# Even if this section looks crufty: it has the advantage of
3477	# actually working.
3478	break;;
3479    * )
3480	break;;
3481  esac
3482done
3483test "$ac_cv_exeext" = no && ac_cv_exeext=
3484
3485else
3486  ac_file=''
3487fi
3488if test -z "$ac_file"; then :
3489  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3490$as_echo "no" >&6; }
3491$as_echo "$as_me: failed program was:" >&5
3492sed 's/^/| /' conftest.$ac_ext >&5
3493
3494{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3495$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3496as_fn_error 77 "C compiler cannot create executables
3497See \`config.log' for more details" "$LINENO" 5; }
3498else
3499  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3500$as_echo "yes" >&6; }
3501fi
3502{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3503$as_echo_n "checking for C compiler default output file name... " >&6; }
3504{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3505$as_echo "$ac_file" >&6; }
3506ac_exeext=$ac_cv_exeext
3507
3508rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3509ac_clean_files=$ac_clean_files_save
3510{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3511$as_echo_n "checking for suffix of executables... " >&6; }
3512if { { ac_try="$ac_link"
3513case "(($ac_try" in
3514  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3515  *) ac_try_echo=$ac_try;;
3516esac
3517eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3518$as_echo "$ac_try_echo"; } >&5
3519  (eval "$ac_link") 2>&5
3520  ac_status=$?
3521  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3522  test $ac_status = 0; }; then :
3523  # If both `conftest.exe' and `conftest' are `present' (well, observable)
3524# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3525# work properly (i.e., refer to `conftest.exe'), while it won't with
3526# `rm'.
3527for ac_file in conftest.exe conftest conftest.*; do
3528  test -f "$ac_file" || continue
3529  case $ac_file in
3530    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3531    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3532	  break;;
3533    * ) break;;
3534  esac
3535done
3536else
3537  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3538$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3539as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3540See \`config.log' for more details" "$LINENO" 5; }
3541fi
3542rm -f conftest conftest$ac_cv_exeext
3543{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3544$as_echo "$ac_cv_exeext" >&6; }
3545
3546rm -f conftest.$ac_ext
3547EXEEXT=$ac_cv_exeext
3548ac_exeext=$EXEEXT
3549cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3550/* end confdefs.h.  */
3551#include <stdio.h>
3552int
3553main ()
3554{
3555FILE *f = fopen ("conftest.out", "w");
3556 return ferror (f) || fclose (f) != 0;
3557
3558  ;
3559  return 0;
3560}
3561_ACEOF
3562ac_clean_files="$ac_clean_files conftest.out"
3563# Check that the compiler produces executables we can run.  If not, either
3564# the compiler is broken, or we cross compile.
3565{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3566$as_echo_n "checking whether we are cross compiling... " >&6; }
3567if test "$cross_compiling" != yes; then
3568  { { ac_try="$ac_link"
3569case "(($ac_try" in
3570  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3571  *) ac_try_echo=$ac_try;;
3572esac
3573eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3574$as_echo "$ac_try_echo"; } >&5
3575  (eval "$ac_link") 2>&5
3576  ac_status=$?
3577  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3578  test $ac_status = 0; }
3579  if { ac_try='./conftest$ac_cv_exeext'
3580  { { case "(($ac_try" in
3581  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3582  *) ac_try_echo=$ac_try;;
3583esac
3584eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3585$as_echo "$ac_try_echo"; } >&5
3586  (eval "$ac_try") 2>&5
3587  ac_status=$?
3588  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3589  test $ac_status = 0; }; }; then
3590    cross_compiling=no
3591  else
3592    if test "$cross_compiling" = maybe; then
3593	cross_compiling=yes
3594    else
3595	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3596$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3597as_fn_error $? "cannot run C compiled programs.
3598If you meant to cross compile, use \`--host'.
3599See \`config.log' for more details" "$LINENO" 5; }
3600    fi
3601  fi
3602fi
3603{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3604$as_echo "$cross_compiling" >&6; }
3605
3606rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3607ac_clean_files=$ac_clean_files_save
3608{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3609$as_echo_n "checking for suffix of object files... " >&6; }
3610if ${ac_cv_objext+:} false; then :
3611  $as_echo_n "(cached) " >&6
3612else
3613  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3614/* end confdefs.h.  */
3615
3616int
3617main ()
3618{
3619
3620  ;
3621  return 0;
3622}
3623_ACEOF
3624rm -f conftest.o conftest.obj
3625if { { ac_try="$ac_compile"
3626case "(($ac_try" in
3627  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3628  *) ac_try_echo=$ac_try;;
3629esac
3630eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3631$as_echo "$ac_try_echo"; } >&5
3632  (eval "$ac_compile") 2>&5
3633  ac_status=$?
3634  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3635  test $ac_status = 0; }; then :
3636  for ac_file in conftest.o conftest.obj conftest.*; do
3637  test -f "$ac_file" || continue;
3638  case $ac_file in
3639    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3640    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3641       break;;
3642  esac
3643done
3644else
3645  $as_echo "$as_me: failed program was:" >&5
3646sed 's/^/| /' conftest.$ac_ext >&5
3647
3648{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3649$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3650as_fn_error $? "cannot compute suffix of object files: cannot compile
3651See \`config.log' for more details" "$LINENO" 5; }
3652fi
3653rm -f conftest.$ac_cv_objext conftest.$ac_ext
3654fi
3655{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3656$as_echo "$ac_cv_objext" >&6; }
3657OBJEXT=$ac_cv_objext
3658ac_objext=$OBJEXT
3659{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3660$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3661if ${ac_cv_c_compiler_gnu+:} false; then :
3662  $as_echo_n "(cached) " >&6
3663else
3664  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3665/* end confdefs.h.  */
3666
3667int
3668main ()
3669{
3670#ifndef __GNUC__
3671       choke me
3672#endif
3673
3674  ;
3675  return 0;
3676}
3677_ACEOF
3678if ac_fn_c_try_compile "$LINENO"; then :
3679  ac_compiler_gnu=yes
3680else
3681  ac_compiler_gnu=no
3682fi
3683rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3684ac_cv_c_compiler_gnu=$ac_compiler_gnu
3685
3686fi
3687{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3688$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3689if test $ac_compiler_gnu = yes; then
3690  GCC=yes
3691else
3692  GCC=
3693fi
3694ac_test_CFLAGS=${CFLAGS+set}
3695ac_save_CFLAGS=$CFLAGS
3696{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3697$as_echo_n "checking whether $CC accepts -g... " >&6; }
3698if ${ac_cv_prog_cc_g+:} false; then :
3699  $as_echo_n "(cached) " >&6
3700else
3701  ac_save_c_werror_flag=$ac_c_werror_flag
3702   ac_c_werror_flag=yes
3703   ac_cv_prog_cc_g=no
3704   CFLAGS="-g"
3705   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3706/* end confdefs.h.  */
3707
3708int
3709main ()
3710{
3711
3712  ;
3713  return 0;
3714}
3715_ACEOF
3716if ac_fn_c_try_compile "$LINENO"; then :
3717  ac_cv_prog_cc_g=yes
3718else
3719  CFLAGS=""
3720      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3721/* end confdefs.h.  */
3722
3723int
3724main ()
3725{
3726
3727  ;
3728  return 0;
3729}
3730_ACEOF
3731if ac_fn_c_try_compile "$LINENO"; then :
3732
3733else
3734  ac_c_werror_flag=$ac_save_c_werror_flag
3735	 CFLAGS="-g"
3736	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3737/* end confdefs.h.  */
3738
3739int
3740main ()
3741{
3742
3743  ;
3744  return 0;
3745}
3746_ACEOF
3747if ac_fn_c_try_compile "$LINENO"; then :
3748  ac_cv_prog_cc_g=yes
3749fi
3750rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3751fi
3752rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3753fi
3754rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3755   ac_c_werror_flag=$ac_save_c_werror_flag
3756fi
3757{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3758$as_echo "$ac_cv_prog_cc_g" >&6; }
3759if test "$ac_test_CFLAGS" = set; then
3760  CFLAGS=$ac_save_CFLAGS
3761elif test $ac_cv_prog_cc_g = yes; then
3762  if test "$GCC" = yes; then
3763    CFLAGS="-g -O2"
3764  else
3765    CFLAGS="-g"
3766  fi
3767else
3768  if test "$GCC" = yes; then
3769    CFLAGS="-O2"
3770  else
3771    CFLAGS=
3772  fi
3773fi
3774{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3775$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3776if ${ac_cv_prog_cc_c89+:} false; then :
3777  $as_echo_n "(cached) " >&6
3778else
3779  ac_cv_prog_cc_c89=no
3780ac_save_CC=$CC
3781cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3782/* end confdefs.h.  */
3783#include <stdarg.h>
3784#include <stdio.h>
3785struct stat;
3786/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3787struct buf { int x; };
3788FILE * (*rcsopen) (struct buf *, struct stat *, int);
3789static char *e (p, i)
3790     char **p;
3791     int i;
3792{
3793  return p[i];
3794}
3795static char *f (char * (*g) (char **, int), char **p, ...)
3796{
3797  char *s;
3798  va_list v;
3799  va_start (v,p);
3800  s = g (p, va_arg (v,int));
3801  va_end (v);
3802  return s;
3803}
3804
3805/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3806   function prototypes and stuff, but not '\xHH' hex character constants.
3807   These don't provoke an error unfortunately, instead are silently treated
3808   as 'x'.  The following induces an error, until -std is added to get
3809   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3810   array size at least.  It's necessary to write '\x00'==0 to get something
3811   that's true only with -std.  */
3812int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3813
3814/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3815   inside strings and character constants.  */
3816#define FOO(x) 'x'
3817int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3818
3819int test (int i, double x);
3820struct s1 {int (*f) (int a);};
3821struct s2 {int (*f) (double a);};
3822int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3823int argc;
3824char **argv;
3825int
3826main ()
3827{
3828return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3829  ;
3830  return 0;
3831}
3832_ACEOF
3833for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3834	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3835do
3836  CC="$ac_save_CC $ac_arg"
3837  if ac_fn_c_try_compile "$LINENO"; then :
3838  ac_cv_prog_cc_c89=$ac_arg
3839fi
3840rm -f core conftest.err conftest.$ac_objext
3841  test "x$ac_cv_prog_cc_c89" != "xno" && break
3842done
3843rm -f conftest.$ac_ext
3844CC=$ac_save_CC
3845
3846fi
3847# AC_CACHE_VAL
3848case "x$ac_cv_prog_cc_c89" in
3849  x)
3850    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3851$as_echo "none needed" >&6; } ;;
3852  xno)
3853    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3854$as_echo "unsupported" >&6; } ;;
3855  *)
3856    CC="$CC $ac_cv_prog_cc_c89"
3857    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3858$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3859esac
3860if test "x$ac_cv_prog_cc_c89" != xno; then :
3861
3862fi
3863
3864ac_ext=c
3865ac_cpp='$CPP $CPPFLAGS'
3866ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3867ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3868ac_compiler_gnu=$ac_cv_c_compiler_gnu
3869
3870ac_ext=c
3871ac_cpp='$CPP $CPPFLAGS'
3872ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3873ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3874ac_compiler_gnu=$ac_cv_c_compiler_gnu
3875{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
3876$as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
3877if ${am_cv_prog_cc_c_o+:} false; then :
3878  $as_echo_n "(cached) " >&6
3879else
3880  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3881/* end confdefs.h.  */
3882
3883int
3884main ()
3885{
3886
3887  ;
3888  return 0;
3889}
3890_ACEOF
3891  # Make sure it works both with $CC and with simple cc.
3892  # Following AC_PROG_CC_C_O, we do the test twice because some
3893  # compilers refuse to overwrite an existing .o file with -o,
3894  # though they will create one.
3895  am_cv_prog_cc_c_o=yes
3896  for am_i in 1 2; do
3897    if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
3898   ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
3899   ac_status=$?
3900   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3901   (exit $ac_status); } \
3902         && test -f conftest2.$ac_objext; then
3903      : OK
3904    else
3905      am_cv_prog_cc_c_o=no
3906      break
3907    fi
3908  done
3909  rm -f core conftest*
3910  unset am_i
3911fi
3912{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
3913$as_echo "$am_cv_prog_cc_c_o" >&6; }
3914if test "$am_cv_prog_cc_c_o" != yes; then
3915   # Losing compiler, so override with the script.
3916   # FIXME: It is wrong to rewrite CC.
3917   # But if we don't then we get into trouble of one sort or another.
3918   # A longer-term fix would be to have automake use am__CC in this case,
3919   # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
3920   CC="$am_aux_dir/compile $CC"
3921fi
3922ac_ext=c
3923ac_cpp='$CPP $CPPFLAGS'
3924ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3925ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3926ac_compiler_gnu=$ac_cv_c_compiler_gnu
3927
3928DEPDIR="${am__leading_dot}deps"
3929
3930ac_config_commands="$ac_config_commands depfiles"
3931
3932
3933am_make=${MAKE-make}
3934cat > confinc << 'END'
3935am__doit:
3936	@echo this is the am__doit target
3937.PHONY: am__doit
3938END
3939# If we don't find an include directive, just comment out the code.
3940{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3941$as_echo_n "checking for style of include used by $am_make... " >&6; }
3942am__include="#"
3943am__quote=
3944_am_result=none
3945# First try GNU make style include.
3946echo "include confinc" > confmf
3947# Ignore all kinds of additional output from 'make'.
3948case `$am_make -s -f confmf 2> /dev/null` in #(
3949*the\ am__doit\ target*)
3950  am__include=include
3951  am__quote=
3952  _am_result=GNU
3953  ;;
3954esac
3955# Now try BSD make style include.
3956if test "$am__include" = "#"; then
3957   echo '.include "confinc"' > confmf
3958   case `$am_make -s -f confmf 2> /dev/null` in #(
3959   *the\ am__doit\ target*)
3960     am__include=.include
3961     am__quote="\""
3962     _am_result=BSD
3963     ;;
3964   esac
3965fi
3966
3967
3968{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3969$as_echo "$_am_result" >&6; }
3970rm -f confinc confmf
3971
3972# Check whether --enable-dependency-tracking was given.
3973if test "${enable_dependency_tracking+set}" = set; then :
3974  enableval=$enable_dependency_tracking;
3975fi
3976
3977if test "x$enable_dependency_tracking" != xno; then
3978  am_depcomp="$ac_aux_dir/depcomp"
3979  AMDEPBACKSLASH='\'
3980  am__nodep='_no'
3981fi
3982 if test "x$enable_dependency_tracking" != xno; then
3983  AMDEP_TRUE=
3984  AMDEP_FALSE='#'
3985else
3986  AMDEP_TRUE='#'
3987  AMDEP_FALSE=
3988fi
3989
3990
3991
3992depcc="$CC"   am_compiler_list=
3993
3994{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3995$as_echo_n "checking dependency style of $depcc... " >&6; }
3996if ${am_cv_CC_dependencies_compiler_type+:} false; then :
3997  $as_echo_n "(cached) " >&6
3998else
3999  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4000  # We make a subdir and do the tests there.  Otherwise we can end up
4001  # making bogus files that we don't know about and never remove.  For
4002  # instance it was reported that on HP-UX the gcc test will end up
4003  # making a dummy file named 'D' -- because '-MD' means "put the output
4004  # in D".
4005  rm -rf conftest.dir
4006  mkdir conftest.dir
4007  # Copy depcomp to subdir because otherwise we won't find it if we're
4008  # using a relative directory.
4009  cp "$am_depcomp" conftest.dir
4010  cd conftest.dir
4011  # We will build objects and dependencies in a subdirectory because
4012  # it helps to detect inapplicable dependency modes.  For instance
4013  # both Tru64's cc and ICC support -MD to output dependencies as a
4014  # side effect of compilation, but ICC will put the dependencies in
4015  # the current directory while Tru64 will put them in the object
4016  # directory.
4017  mkdir sub
4018
4019  am_cv_CC_dependencies_compiler_type=none
4020  if test "$am_compiler_list" = ""; then
4021     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4022  fi
4023  am__universal=false
4024  case " $depcc " in #(
4025     *\ -arch\ *\ -arch\ *) am__universal=true ;;
4026     esac
4027
4028  for depmode in $am_compiler_list; do
4029    # Setup a source with many dependencies, because some compilers
4030    # like to wrap large dependency lists on column 80 (with \), and
4031    # we should not choose a depcomp mode which is confused by this.
4032    #
4033    # We need to recreate these files for each test, as the compiler may
4034    # overwrite some of them when testing with obscure command lines.
4035    # This happens at least with the AIX C compiler.
4036    : > sub/conftest.c
4037    for i in 1 2 3 4 5 6; do
4038      echo '#include "conftst'$i'.h"' >> sub/conftest.c
4039      # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4040      # Solaris 10 /bin/sh.
4041      echo '/* dummy */' > sub/conftst$i.h
4042    done
4043    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4044
4045    # We check with '-c' and '-o' for the sake of the "dashmstdout"
4046    # mode.  It turns out that the SunPro C++ compiler does not properly
4047    # handle '-M -o', and we need to detect this.  Also, some Intel
4048    # versions had trouble with output in subdirs.
4049    am__obj=sub/conftest.${OBJEXT-o}
4050    am__minus_obj="-o $am__obj"
4051    case $depmode in
4052    gcc)
4053      # This depmode causes a compiler race in universal mode.
4054      test "$am__universal" = false || continue
4055      ;;
4056    nosideeffect)
4057      # After this tag, mechanisms are not by side-effect, so they'll
4058      # only be used when explicitly requested.
4059      if test "x$enable_dependency_tracking" = xyes; then
4060	continue
4061      else
4062	break
4063      fi
4064      ;;
4065    msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4066      # This compiler won't grok '-c -o', but also, the minuso test has
4067      # not run yet.  These depmodes are late enough in the game, and
4068      # so weak that their functioning should not be impacted.
4069      am__obj=conftest.${OBJEXT-o}
4070      am__minus_obj=
4071      ;;
4072    none) break ;;
4073    esac
4074    if depmode=$depmode \
4075       source=sub/conftest.c object=$am__obj \
4076       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4077       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4078         >/dev/null 2>conftest.err &&
4079       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4080       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4081       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4082       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4083      # icc doesn't choke on unknown options, it will just issue warnings
4084      # or remarks (even with -Werror).  So we grep stderr for any message
4085      # that says an option was ignored or not supported.
4086      # When given -MP, icc 7.0 and 7.1 complain thusly:
4087      #   icc: Command line warning: ignoring option '-M'; no argument required
4088      # The diagnosis changed in icc 8.0:
4089      #   icc: Command line remark: option '-MP' not supported
4090      if (grep 'ignoring option' conftest.err ||
4091          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4092        am_cv_CC_dependencies_compiler_type=$depmode
4093        break
4094      fi
4095    fi
4096  done
4097
4098  cd ..
4099  rm -rf conftest.dir
4100else
4101  am_cv_CC_dependencies_compiler_type=none
4102fi
4103
4104fi
4105{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4106$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4107CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4108
4109 if
4110  test "x$enable_dependency_tracking" != xno \
4111  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4112  am__fastdepCC_TRUE=
4113  am__fastdepCC_FALSE='#'
4114else
4115  am__fastdepCC_TRUE='#'
4116  am__fastdepCC_FALSE=
4117fi
4118
4119
4120ac_ext=cpp
4121ac_cpp='$CXXCPP $CPPFLAGS'
4122ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4123ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4124ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4125if test -z "$CXX"; then
4126  if test -n "$CCC"; then
4127    CXX=$CCC
4128  else
4129    if test -n "$ac_tool_prefix"; then
4130  for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4131  do
4132    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4133set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4134{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4135$as_echo_n "checking for $ac_word... " >&6; }
4136if ${ac_cv_prog_CXX+:} false; then :
4137  $as_echo_n "(cached) " >&6
4138else
4139  if test -n "$CXX"; then
4140  ac_cv_prog_CXX="$CXX" # Let the user override the test.
4141else
4142as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4143for as_dir in $PATH
4144do
4145  IFS=$as_save_IFS
4146  test -z "$as_dir" && as_dir=.
4147    for ac_exec_ext in '' $ac_executable_extensions; do
4148  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4149    ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4150    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4151    break 2
4152  fi
4153done
4154  done
4155IFS=$as_save_IFS
4156
4157fi
4158fi
4159CXX=$ac_cv_prog_CXX
4160if test -n "$CXX"; then
4161  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4162$as_echo "$CXX" >&6; }
4163else
4164  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4165$as_echo "no" >&6; }
4166fi
4167
4168
4169    test -n "$CXX" && break
4170  done
4171fi
4172if test -z "$CXX"; then
4173  ac_ct_CXX=$CXX
4174  for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4175do
4176  # Extract the first word of "$ac_prog", so it can be a program name with args.
4177set dummy $ac_prog; ac_word=$2
4178{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4179$as_echo_n "checking for $ac_word... " >&6; }
4180if ${ac_cv_prog_ac_ct_CXX+:} false; then :
4181  $as_echo_n "(cached) " >&6
4182else
4183  if test -n "$ac_ct_CXX"; then
4184  ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4185else
4186as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4187for as_dir in $PATH
4188do
4189  IFS=$as_save_IFS
4190  test -z "$as_dir" && as_dir=.
4191    for ac_exec_ext in '' $ac_executable_extensions; do
4192  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4193    ac_cv_prog_ac_ct_CXX="$ac_prog"
4194    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4195    break 2
4196  fi
4197done
4198  done
4199IFS=$as_save_IFS
4200
4201fi
4202fi
4203ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4204if test -n "$ac_ct_CXX"; then
4205  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
4206$as_echo "$ac_ct_CXX" >&6; }
4207else
4208  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4209$as_echo "no" >&6; }
4210fi
4211
4212
4213  test -n "$ac_ct_CXX" && break
4214done
4215
4216  if test "x$ac_ct_CXX" = x; then
4217    CXX="g++"
4218  else
4219    case $cross_compiling:$ac_tool_warned in
4220yes:)
4221{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4222$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4223ac_tool_warned=yes ;;
4224esac
4225    CXX=$ac_ct_CXX
4226  fi
4227fi
4228
4229  fi
4230fi
4231# Provide some information about the compiler.
4232$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
4233set X $ac_compile
4234ac_compiler=$2
4235for ac_option in --version -v -V -qversion; do
4236  { { ac_try="$ac_compiler $ac_option >&5"
4237case "(($ac_try" in
4238  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4239  *) ac_try_echo=$ac_try;;
4240esac
4241eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4242$as_echo "$ac_try_echo"; } >&5
4243  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4244  ac_status=$?
4245  if test -s conftest.err; then
4246    sed '10a\
4247... rest of stderr output deleted ...
4248         10q' conftest.err >conftest.er1
4249    cat conftest.er1 >&5
4250  fi
4251  rm -f conftest.er1 conftest.err
4252  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4253  test $ac_status = 0; }
4254done
4255
4256{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
4257$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
4258if ${ac_cv_cxx_compiler_gnu+:} false; then :
4259  $as_echo_n "(cached) " >&6
4260else
4261  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4262/* end confdefs.h.  */
4263
4264int
4265main ()
4266{
4267#ifndef __GNUC__
4268       choke me
4269#endif
4270
4271  ;
4272  return 0;
4273}
4274_ACEOF
4275if ac_fn_cxx_try_compile "$LINENO"; then :
4276  ac_compiler_gnu=yes
4277else
4278  ac_compiler_gnu=no
4279fi
4280rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4281ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4282
4283fi
4284{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4285$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
4286if test $ac_compiler_gnu = yes; then
4287  GXX=yes
4288else
4289  GXX=
4290fi
4291ac_test_CXXFLAGS=${CXXFLAGS+set}
4292ac_save_CXXFLAGS=$CXXFLAGS
4293{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
4294$as_echo_n "checking whether $CXX accepts -g... " >&6; }
4295if ${ac_cv_prog_cxx_g+:} false; then :
4296  $as_echo_n "(cached) " >&6
4297else
4298  ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4299   ac_cxx_werror_flag=yes
4300   ac_cv_prog_cxx_g=no
4301   CXXFLAGS="-g"
4302   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4303/* end confdefs.h.  */
4304
4305int
4306main ()
4307{
4308
4309  ;
4310  return 0;
4311}
4312_ACEOF
4313if ac_fn_cxx_try_compile "$LINENO"; then :
4314  ac_cv_prog_cxx_g=yes
4315else
4316  CXXFLAGS=""
4317      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4318/* end confdefs.h.  */
4319
4320int
4321main ()
4322{
4323
4324  ;
4325  return 0;
4326}
4327_ACEOF
4328if ac_fn_cxx_try_compile "$LINENO"; then :
4329
4330else
4331  ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4332	 CXXFLAGS="-g"
4333	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4334/* end confdefs.h.  */
4335
4336int
4337main ()
4338{
4339
4340  ;
4341  return 0;
4342}
4343_ACEOF
4344if ac_fn_cxx_try_compile "$LINENO"; then :
4345  ac_cv_prog_cxx_g=yes
4346fi
4347rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4348fi
4349rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4350fi
4351rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4352   ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4353fi
4354{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
4355$as_echo "$ac_cv_prog_cxx_g" >&6; }
4356if test "$ac_test_CXXFLAGS" = set; then
4357  CXXFLAGS=$ac_save_CXXFLAGS
4358elif test $ac_cv_prog_cxx_g = yes; then
4359  if test "$GXX" = yes; then
4360    CXXFLAGS="-g -O2"
4361  else
4362    CXXFLAGS="-g"
4363  fi
4364else
4365  if test "$GXX" = yes; then
4366    CXXFLAGS="-O2"
4367  else
4368    CXXFLAGS=
4369  fi
4370fi
4371ac_ext=c
4372ac_cpp='$CPP $CPPFLAGS'
4373ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4374ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4375ac_compiler_gnu=$ac_cv_c_compiler_gnu
4376
4377depcc="$CXX"  am_compiler_list=
4378
4379{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4380$as_echo_n "checking dependency style of $depcc... " >&6; }
4381if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
4382  $as_echo_n "(cached) " >&6
4383else
4384  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4385  # We make a subdir and do the tests there.  Otherwise we can end up
4386  # making bogus files that we don't know about and never remove.  For
4387  # instance it was reported that on HP-UX the gcc test will end up
4388  # making a dummy file named 'D' -- because '-MD' means "put the output
4389  # in D".
4390  rm -rf conftest.dir
4391  mkdir conftest.dir
4392  # Copy depcomp to subdir because otherwise we won't find it if we're
4393  # using a relative directory.
4394  cp "$am_depcomp" conftest.dir
4395  cd conftest.dir
4396  # We will build objects and dependencies in a subdirectory because
4397  # it helps to detect inapplicable dependency modes.  For instance
4398  # both Tru64's cc and ICC support -MD to output dependencies as a
4399  # side effect of compilation, but ICC will put the dependencies in
4400  # the current directory while Tru64 will put them in the object
4401  # directory.
4402  mkdir sub
4403
4404  am_cv_CXX_dependencies_compiler_type=none
4405  if test "$am_compiler_list" = ""; then
4406     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4407  fi
4408  am__universal=false
4409  case " $depcc " in #(
4410     *\ -arch\ *\ -arch\ *) am__universal=true ;;
4411     esac
4412
4413  for depmode in $am_compiler_list; do
4414    # Setup a source with many dependencies, because some compilers
4415    # like to wrap large dependency lists on column 80 (with \), and
4416    # we should not choose a depcomp mode which is confused by this.
4417    #
4418    # We need to recreate these files for each test, as the compiler may
4419    # overwrite some of them when testing with obscure command lines.
4420    # This happens at least with the AIX C compiler.
4421    : > sub/conftest.c
4422    for i in 1 2 3 4 5 6; do
4423      echo '#include "conftst'$i'.h"' >> sub/conftest.c
4424      # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4425      # Solaris 10 /bin/sh.
4426      echo '/* dummy */' > sub/conftst$i.h
4427    done
4428    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4429
4430    # We check with '-c' and '-o' for the sake of the "dashmstdout"
4431    # mode.  It turns out that the SunPro C++ compiler does not properly
4432    # handle '-M -o', and we need to detect this.  Also, some Intel
4433    # versions had trouble with output in subdirs.
4434    am__obj=sub/conftest.${OBJEXT-o}
4435    am__minus_obj="-o $am__obj"
4436    case $depmode in
4437    gcc)
4438      # This depmode causes a compiler race in universal mode.
4439      test "$am__universal" = false || continue
4440      ;;
4441    nosideeffect)
4442      # After this tag, mechanisms are not by side-effect, so they'll
4443      # only be used when explicitly requested.
4444      if test "x$enable_dependency_tracking" = xyes; then
4445	continue
4446      else
4447	break
4448      fi
4449      ;;
4450    msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4451      # This compiler won't grok '-c -o', but also, the minuso test has
4452      # not run yet.  These depmodes are late enough in the game, and
4453      # so weak that their functioning should not be impacted.
4454      am__obj=conftest.${OBJEXT-o}
4455      am__minus_obj=
4456      ;;
4457    none) break ;;
4458    esac
4459    if depmode=$depmode \
4460       source=sub/conftest.c object=$am__obj \
4461       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4462       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4463         >/dev/null 2>conftest.err &&
4464       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4465       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4466       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4467       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4468      # icc doesn't choke on unknown options, it will just issue warnings
4469      # or remarks (even with -Werror).  So we grep stderr for any message
4470      # that says an option was ignored or not supported.
4471      # When given -MP, icc 7.0 and 7.1 complain thusly:
4472      #   icc: Command line warning: ignoring option '-M'; no argument required
4473      # The diagnosis changed in icc 8.0:
4474      #   icc: Command line remark: option '-MP' not supported
4475      if (grep 'ignoring option' conftest.err ||
4476          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4477        am_cv_CXX_dependencies_compiler_type=$depmode
4478        break
4479      fi
4480    fi
4481  done
4482
4483  cd ..
4484  rm -rf conftest.dir
4485else
4486  am_cv_CXX_dependencies_compiler_type=none
4487fi
4488
4489fi
4490{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
4491$as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
4492CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
4493
4494 if
4495  test "x$enable_dependency_tracking" != xno \
4496  && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
4497  am__fastdepCXX_TRUE=
4498  am__fastdepCXX_FALSE='#'
4499else
4500  am__fastdepCXX_TRUE='#'
4501  am__fastdepCXX_FALSE=
4502fi
4503
4504
4505
4506# Check whether --enable-silent-rules was given.
4507if test "${enable_silent_rules+set}" = set; then :
4508  enableval=$enable_silent_rules;
4509fi
4510
4511case $enable_silent_rules in # (((
4512  yes) AM_DEFAULT_VERBOSITY=0;;
4513   no) AM_DEFAULT_VERBOSITY=1;;
4514    *) AM_DEFAULT_VERBOSITY=0;;
4515esac
4516am_make=${MAKE-make}
4517{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
4518$as_echo_n "checking whether $am_make supports nested variables... " >&6; }
4519if ${am_cv_make_support_nested_variables+:} false; then :
4520  $as_echo_n "(cached) " >&6
4521else
4522  if $as_echo 'TRUE=$(BAR$(V))
4523BAR0=false
4524BAR1=true
4525V=1
4526am__doit:
4527	@$(TRUE)
4528.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
4529  am_cv_make_support_nested_variables=yes
4530else
4531  am_cv_make_support_nested_variables=no
4532fi
4533fi
4534{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
4535$as_echo "$am_cv_make_support_nested_variables" >&6; }
4536if test $am_cv_make_support_nested_variables = yes; then
4537    AM_V='$(V)'
4538  AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
4539else
4540  AM_V=$AM_DEFAULT_VERBOSITY
4541  AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
4542fi
4543AM_BACKSLASH='\'
4544
4545
4546# By default we simply use the C compiler to build assembly code.
4547
4548test "${CCAS+set}" = set || CCAS=$CC
4549test "${CCASFLAGS+set}" = set || CCASFLAGS=$CFLAGS
4550
4551
4552
4553depcc="$CCAS"   am_compiler_list=
4554
4555{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4556$as_echo_n "checking dependency style of $depcc... " >&6; }
4557if ${am_cv_CCAS_dependencies_compiler_type+:} false; then :
4558  $as_echo_n "(cached) " >&6
4559else
4560  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4561  # We make a subdir and do the tests there.  Otherwise we can end up
4562  # making bogus files that we don't know about and never remove.  For
4563  # instance it was reported that on HP-UX the gcc test will end up
4564  # making a dummy file named 'D' -- because '-MD' means "put the output
4565  # in D".
4566  rm -rf conftest.dir
4567  mkdir conftest.dir
4568  # Copy depcomp to subdir because otherwise we won't find it if we're
4569  # using a relative directory.
4570  cp "$am_depcomp" conftest.dir
4571  cd conftest.dir
4572  # We will build objects and dependencies in a subdirectory because
4573  # it helps to detect inapplicable dependency modes.  For instance
4574  # both Tru64's cc and ICC support -MD to output dependencies as a
4575  # side effect of compilation, but ICC will put the dependencies in
4576  # the current directory while Tru64 will put them in the object
4577  # directory.
4578  mkdir sub
4579
4580  am_cv_CCAS_dependencies_compiler_type=none
4581  if test "$am_compiler_list" = ""; then
4582     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4583  fi
4584  am__universal=false
4585
4586
4587  for depmode in $am_compiler_list; do
4588    # Setup a source with many dependencies, because some compilers
4589    # like to wrap large dependency lists on column 80 (with \), and
4590    # we should not choose a depcomp mode which is confused by this.
4591    #
4592    # We need to recreate these files for each test, as the compiler may
4593    # overwrite some of them when testing with obscure command lines.
4594    # This happens at least with the AIX C compiler.
4595    : > sub/conftest.c
4596    for i in 1 2 3 4 5 6; do
4597      echo '#include "conftst'$i'.h"' >> sub/conftest.c
4598      # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4599      # Solaris 10 /bin/sh.
4600      echo '/* dummy */' > sub/conftst$i.h
4601    done
4602    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4603
4604    # We check with '-c' and '-o' for the sake of the "dashmstdout"
4605    # mode.  It turns out that the SunPro C++ compiler does not properly
4606    # handle '-M -o', and we need to detect this.  Also, some Intel
4607    # versions had trouble with output in subdirs.
4608    am__obj=sub/conftest.${OBJEXT-o}
4609    am__minus_obj="-o $am__obj"
4610    case $depmode in
4611    gcc)
4612      # This depmode causes a compiler race in universal mode.
4613      test "$am__universal" = false || continue
4614      ;;
4615    nosideeffect)
4616      # After this tag, mechanisms are not by side-effect, so they'll
4617      # only be used when explicitly requested.
4618      if test "x$enable_dependency_tracking" = xyes; then
4619	continue
4620      else
4621	break
4622      fi
4623      ;;
4624    msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4625      # This compiler won't grok '-c -o', but also, the minuso test has
4626      # not run yet.  These depmodes are late enough in the game, and
4627      # so weak that their functioning should not be impacted.
4628      am__obj=conftest.${OBJEXT-o}
4629      am__minus_obj=
4630      ;;
4631    none) break ;;
4632    esac
4633    if depmode=$depmode \
4634       source=sub/conftest.c object=$am__obj \
4635       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4636       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4637         >/dev/null 2>conftest.err &&
4638       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4639       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4640       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4641       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4642      # icc doesn't choke on unknown options, it will just issue warnings
4643      # or remarks (even with -Werror).  So we grep stderr for any message
4644      # that says an option was ignored or not supported.
4645      # When given -MP, icc 7.0 and 7.1 complain thusly:
4646      #   icc: Command line warning: ignoring option '-M'; no argument required
4647      # The diagnosis changed in icc 8.0:
4648      #   icc: Command line remark: option '-MP' not supported
4649      if (grep 'ignoring option' conftest.err ||
4650          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4651        am_cv_CCAS_dependencies_compiler_type=$depmode
4652        break
4653      fi
4654    fi
4655  done
4656
4657  cd ..
4658  rm -rf conftest.dir
4659else
4660  am_cv_CCAS_dependencies_compiler_type=none
4661fi
4662
4663fi
4664{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CCAS_dependencies_compiler_type" >&5
4665$as_echo "$am_cv_CCAS_dependencies_compiler_type" >&6; }
4666CCASDEPMODE=depmode=$am_cv_CCAS_dependencies_compiler_type
4667
4668 if
4669  test "x$enable_dependency_tracking" != xno \
4670  && test "$am_cv_CCAS_dependencies_compiler_type" = gcc3; then
4671  am__fastdepCCAS_TRUE=
4672  am__fastdepCCAS_FALSE='#'
4673else
4674  am__fastdepCCAS_TRUE='#'
4675  am__fastdepCCAS_FALSE=
4676fi
4677
4678
4679if test -n "$ac_tool_prefix"; then
4680  # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
4681set dummy ${ac_tool_prefix}ar; ac_word=$2
4682{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4683$as_echo_n "checking for $ac_word... " >&6; }
4684if ${ac_cv_prog_AR+:} false; then :
4685  $as_echo_n "(cached) " >&6
4686else
4687  if test -n "$AR"; then
4688  ac_cv_prog_AR="$AR" # Let the user override the test.
4689else
4690as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4691for as_dir in $PATH
4692do
4693  IFS=$as_save_IFS
4694  test -z "$as_dir" && as_dir=.
4695    for ac_exec_ext in '' $ac_executable_extensions; do
4696  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4697    ac_cv_prog_AR="${ac_tool_prefix}ar"
4698    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4699    break 2
4700  fi
4701done
4702  done
4703IFS=$as_save_IFS
4704
4705fi
4706fi
4707AR=$ac_cv_prog_AR
4708if test -n "$AR"; then
4709  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
4710$as_echo "$AR" >&6; }
4711else
4712  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4713$as_echo "no" >&6; }
4714fi
4715
4716
4717fi
4718if test -z "$ac_cv_prog_AR"; then
4719  ac_ct_AR=$AR
4720  # Extract the first word of "ar", so it can be a program name with args.
4721set dummy ar; ac_word=$2
4722{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4723$as_echo_n "checking for $ac_word... " >&6; }
4724if ${ac_cv_prog_ac_ct_AR+:} false; then :
4725  $as_echo_n "(cached) " >&6
4726else
4727  if test -n "$ac_ct_AR"; then
4728  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
4729else
4730as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4731for as_dir in $PATH
4732do
4733  IFS=$as_save_IFS
4734  test -z "$as_dir" && as_dir=.
4735    for ac_exec_ext in '' $ac_executable_extensions; do
4736  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4737    ac_cv_prog_ac_ct_AR="ar"
4738    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4739    break 2
4740  fi
4741done
4742  done
4743IFS=$as_save_IFS
4744
4745fi
4746fi
4747ac_ct_AR=$ac_cv_prog_ac_ct_AR
4748if test -n "$ac_ct_AR"; then
4749  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
4750$as_echo "$ac_ct_AR" >&6; }
4751else
4752  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4753$as_echo "no" >&6; }
4754fi
4755
4756  if test "x$ac_ct_AR" = x; then
4757    AR=""
4758  else
4759    case $cross_compiling:$ac_tool_warned in
4760yes:)
4761{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4762$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4763ac_tool_warned=yes ;;
4764esac
4765    AR=$ac_ct_AR
4766  fi
4767else
4768  AR="$ac_cv_prog_AR"
4769fi
4770
4771if test -n "$ac_tool_prefix"; then
4772  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4773set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4774{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4775$as_echo_n "checking for $ac_word... " >&6; }
4776if ${ac_cv_prog_RANLIB+:} false; then :
4777  $as_echo_n "(cached) " >&6
4778else
4779  if test -n "$RANLIB"; then
4780  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4781else
4782as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4783for as_dir in $PATH
4784do
4785  IFS=$as_save_IFS
4786  test -z "$as_dir" && as_dir=.
4787    for ac_exec_ext in '' $ac_executable_extensions; do
4788  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4789    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4790    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4791    break 2
4792  fi
4793done
4794  done
4795IFS=$as_save_IFS
4796
4797fi
4798fi
4799RANLIB=$ac_cv_prog_RANLIB
4800if test -n "$RANLIB"; then
4801  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
4802$as_echo "$RANLIB" >&6; }
4803else
4804  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4805$as_echo "no" >&6; }
4806fi
4807
4808
4809fi
4810if test -z "$ac_cv_prog_RANLIB"; then
4811  ac_ct_RANLIB=$RANLIB
4812  # Extract the first word of "ranlib", so it can be a program name with args.
4813set dummy ranlib; ac_word=$2
4814{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4815$as_echo_n "checking for $ac_word... " >&6; }
4816if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
4817  $as_echo_n "(cached) " >&6
4818else
4819  if test -n "$ac_ct_RANLIB"; then
4820  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4821else
4822as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4823for as_dir in $PATH
4824do
4825  IFS=$as_save_IFS
4826  test -z "$as_dir" && as_dir=.
4827    for ac_exec_ext in '' $ac_executable_extensions; do
4828  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4829    ac_cv_prog_ac_ct_RANLIB="ranlib"
4830    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4831    break 2
4832  fi
4833done
4834  done
4835IFS=$as_save_IFS
4836
4837fi
4838fi
4839ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4840if test -n "$ac_ct_RANLIB"; then
4841  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
4842$as_echo "$ac_ct_RANLIB" >&6; }
4843else
4844  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4845$as_echo "no" >&6; }
4846fi
4847
4848  if test "x$ac_ct_RANLIB" = x; then
4849    RANLIB=":"
4850  else
4851    case $cross_compiling:$ac_tool_warned in
4852yes:)
4853{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4854$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4855ac_tool_warned=yes ;;
4856esac
4857    RANLIB=$ac_ct_RANLIB
4858  fi
4859else
4860  RANLIB="$ac_cv_prog_RANLIB"
4861fi
4862  # :)
4863
4864
4865
4866
4867{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
4868$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
4869    # Check whether --enable-maintainer-mode was given.
4870if test "${enable_maintainer_mode+set}" = set; then :
4871  enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
4872else
4873  USE_MAINTAINER_MODE=no
4874fi
4875
4876  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
4877$as_echo "$USE_MAINTAINER_MODE" >&6; }
4878   if test $USE_MAINTAINER_MODE = yes; then
4879  MAINTAINER_MODE_TRUE=
4880  MAINTAINER_MODE_FALSE='#'
4881else
4882  MAINTAINER_MODE_TRUE='#'
4883  MAINTAINER_MODE_FALSE=
4884fi
4885
4886  MAINT=$MAINTAINER_MODE_TRUE
4887
4888
4889
4890. ${srcdir}/configure.host
4891
4892# We use a separate variable to pass down CPPFLAGS and CFLAGS from the main mono
4893# configure, because of autoconf brokeness
4894if test "x$CPPFLAGS_FOR_LIBGC" != "x"; then
4895   CPPFLAGS=$CPPFLAGS_FOR_LIBGC
4896fi
4897if test "x$CFLAGS_FOR_LIBGC" != "x"; then
4898   CFLAGS=$CFLAGS_FOR_LIBGC
4899fi
4900
4901GC_CFLAGS=${gc_cflags}
4902
4903
4904case $enable_embed_check in
4905no) ;;
4906*) as_fn_error $? "This module is now part of 'mono' and cannot be built as a stand-alone module any longer." "$LINENO" 5 ;;
4907esac
4908
4909THREADS=$with_libgc_threads
4910
4911# Check whether --enable-win32-dllmain was given.
4912if test "${enable_win32_dllmain+set}" = set; then :
4913  enableval=$enable_win32_dllmain;
4914fi
4915
4916
4917# Check whether --enable-parallel-mark was given.
4918if test "${enable_parallel_mark+set}" = set; then :
4919  enableval=$enable_parallel_mark; case "$THREADS" in
4920      no | none | single)
4921	as_fn_error $? "Parallel mark requires --enable-threads=x spec" "$LINENO" 5
4922	;;
4923    esac
4924
4925fi
4926
4927
4928# Check whether --enable-cplusplus was given.
4929if test "${enable_cplusplus+set}" = set; then :
4930  enableval=$enable_cplusplus;
4931fi
4932
4933
4934AM_CPPFLAGS=-I${srcdir}/include
4935THREADDLLIBS=
4936## Libraries needed to support dynamic loading and/or threads.
4937case "$THREADS" in
4938 no | none | single)
4939    THREADS=none
4940    ;;
4941 posix | pthreads)
4942    THREADS=posix
4943
4944{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_self in -lpthread" >&5
4945$as_echo_n "checking for pthread_self in -lpthread... " >&6; }
4946if ${ac_cv_lib_pthread_pthread_self+:} false; then :
4947  $as_echo_n "(cached) " >&6
4948else
4949  ac_check_lib_save_LIBS=$LIBS
4950LIBS="-lpthread  $LIBS"
4951cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4952/* end confdefs.h.  */
4953
4954/* Override any GCC internal prototype to avoid an error.
4955   Use char because int might match the return type of a GCC
4956   builtin and then its argument prototype would still apply.  */
4957#ifdef __cplusplus
4958extern "C"
4959#endif
4960char pthread_self ();
4961int
4962main ()
4963{
4964return pthread_self ();
4965  ;
4966  return 0;
4967}
4968_ACEOF
4969if ac_fn_c_try_link "$LINENO"; then :
4970  ac_cv_lib_pthread_pthread_self=yes
4971else
4972  ac_cv_lib_pthread_pthread_self=no
4973fi
4974rm -f core conftest.err conftest.$ac_objext \
4975    conftest$ac_exeext conftest.$ac_ext
4976LIBS=$ac_check_lib_save_LIBS
4977fi
4978{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_self" >&5
4979$as_echo "$ac_cv_lib_pthread_pthread_self" >&6; }
4980if test "x$ac_cv_lib_pthread_pthread_self" = xyes; then :
4981  THREADDLLIBS="-lpthread"
4982fi
4983
4984    case "$host" in
4985     x86-*-linux* | ia64-*-linux* | i386-*-linux* | i486-*-linux* | i586-*-linux* | i686-*-linux* | x86_64-*-linux* | alpha*-*-linux* | s390*-*-linux* | sparc*-*-linux* | powerpc-*-linux*)
4986	$as_echo "#define GC_LINUX_THREADS 1" >>confdefs.h
4987
4988	$as_echo "#define _REENTRANT 1" >>confdefs.h
4989
4990        if test "${enable_parallel_mark}" = yes; then
4991	  $as_echo "#define PARALLEL_MARK 1" >>confdefs.h
4992
4993	fi
4994	$as_echo "#define THREAD_LOCAL_ALLOC 1" >>confdefs.h
4995
4996	;;
4997     *-*-linux* | *-*-nacl*)
4998	$as_echo "#define GC_LINUX_THREADS 1" >>confdefs.h
4999
5000	$as_echo "#define _REENTRANT 1" >>confdefs.h
5001
5002	;;
5003     *-*-aix*)
5004	$as_echo "#define GC_AIX_THREADS 1" >>confdefs.h
5005
5006	$as_echo "#define _REENTRANT 1" >>confdefs.h
5007
5008	;;
5009     *-*-hpux*)
5010	{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Only HP/UX 11 threads are supported.\"" >&5
5011$as_echo "$as_me: WARNING: \"Only HP/UX 11 threads are supported.\"" >&2;}
5012	$as_echo "#define GC_HPUX_THREADS 1" >>confdefs.h
5013
5014	$as_echo "#define _POSIX_C_SOURCE 199506L" >>confdefs.h
5015
5016	if test "${enable_parallel_mark}" = yes; then
5017	  $as_echo "#define PARALLEL_MARK 1" >>confdefs.h
5018
5019	fi
5020	$as_echo "#define THREAD_LOCAL_ALLOC 1" >>confdefs.h
5021
5022	THREADDLLIBS="-lpthread -lrt"
5023	;;
5024     *-*-kfreebsd*-gnu)
5025	$as_echo "#define GC_FREEBSD_THREADS 1" >>confdefs.h
5026
5027	INCLUDES="$INCLUDES -pthread"
5028	THREADDLLIBS=-pthread
5029	$as_echo "#define _REENTRANT 1" >>confdefs.h
5030
5031	if test "${enable_parallel_mark}" = yes; then
5032		$as_echo "#define PARALLEL_MARK 1" >>confdefs.h
5033
5034	fi
5035	$as_echo "#define THREAD_LOCAL_ALLOC 1" >>confdefs.h
5036
5037	$as_echo "#define USE_COMPILER_TLS 1" >>confdefs.h
5038
5039	;;
5040      *-*-freebsd*)
5041	$as_echo "#define GC_FREEBSD_THREADS 1" >>confdefs.h
5042
5043	if test "x$PTHREAD_CFLAGS" != "x"; then
5044		AM_CPPFLAGS="$AM_CPPFLAGS $PTHREAD_CFLAGS"
5045	fi
5046	if test "x$PTHREAD_LIBS" = "x"; then
5047		THREADDLLIBS=-pthread
5048	else
5049		THREADDLLIBS="$PTHREAD_LIBS"
5050	fi
5051	$as_echo "#define THREAD_LOCAL_ALLOC 1" >>confdefs.h
5052
5053	;;
5054     *-*-solaris*)
5055	$as_echo "#define GC_SOLARIS_THREADS 1" >>confdefs.h
5056
5057	$as_echo "#define GC_SOLARIS_PTHREADS 1" >>confdefs.h
5058
5059	;;
5060     *-*-irix*)
5061	$as_echo "#define GC_IRIX_THREADS 1" >>confdefs.h
5062
5063	;;
5064     *-*-cygwin*)
5065	$as_echo "#define GC_WIN32_THREADS 1" >>confdefs.h
5066
5067	;;
5068     *-*-darwin*)
5069	$as_echo "#define GC_DARWIN_THREADS 1" >>confdefs.h
5070
5071	$as_echo "#define THREAD_LOCAL_ALLOC 1" >>confdefs.h
5072
5073	if test "${enable_parallel_mark}" = yes; then
5074	  $as_echo "#define PARALLEL_MARK 1" >>confdefs.h
5075
5076	fi
5077	;;
5078     *-*-netbsd*)
5079	$as_echo "#define GC_NETBSD_THREADS 1" >>confdefs.h
5080
5081	if test "${enable_parallel_mark}" = yes; then
5082	  $as_echo "#define PARALLEL_MARK 1" >>confdefs.h
5083
5084	fi
5085	$as_echo "#define THREAD_LOCAL_ALLOC 1" >>confdefs.h
5086
5087	;;
5088     *-*-openbsd*)
5089	$as_echo "#define GC_OPENBSD_THREADS 1" >>confdefs.h
5090
5091	if test "${enable_parallel_mark}" = yes; then
5092	  $as_echo "#define PARALLEL_MARK 1" >>confdefs.h
5093
5094	fi
5095	$as_echo "#define THREAD_LOCAL_ALLOC 1" >>confdefs.h
5096
5097	;;
5098     *-*-osf*)
5099	$as_echo "#define GC_OSF1_THREADS 1" >>confdefs.h
5100
5101        if test "${enable_parallel_mark}" = yes; then
5102	  $as_echo "#define PARALLEL_MARK 1" >>confdefs.h
5103
5104	  $as_echo "#define THREAD_LOCAL_ALLOC 1" >>confdefs.h
5105
5106	  # May want to enable it in other cases, too.
5107	  # Measurements havent yet been done.
5108	fi
5109	AM_CPPFLAGS="$AM_CPPFLAGS -pthread"
5110	THREADDLLIBS="-lpthread -lrt"
5111	;;
5112      *)
5113	as_fn_error $? "\"Pthreads not supported by the GC on this platform.\"" "$LINENO" 5
5114	;;
5115    esac
5116    ;;
5117 win32)
5118    $as_echo "#define GC_WIN32_THREADS 1" >>confdefs.h
5119
5120        $as_echo "#define NO_GETENV 1" >>confdefs.h
5121
5122	if test "${enable_win32_dllmain}" = yes; then
5123	   $as_echo "#define GC_INSIDE_DLL 1" >>confdefs.h
5124
5125	fi
5126    ;;
5127 dgux386)
5128    THREADS=dgux386
5129    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $THREADDLLIBS" >&5
5130$as_echo "$THREADDLLIBS" >&6; }
5131    # Use pthread GCC  switch
5132    THREADDLLIBS=-pthread
5133    if test "${enable_parallel_mark}" = yes; then
5134        $as_echo "#define PARALLEL_MARK 1" >>confdefs.h
5135
5136    fi
5137    $as_echo "#define THREAD_LOCAL_ALLOC 1" >>confdefs.h
5138
5139    $as_echo "#define GC_DGUX386_THREADS 1" >>confdefs.h
5140
5141    $as_echo "#define DGUX_THREADS 1" >>confdefs.h
5142
5143    # Enable _POSIX4A_DRAFT10_SOURCE with flag -pthread
5144    AM_CPPFLAGS="-pthread $AM_CPPFLAGS"
5145    ;;
5146 aix)
5147    THREADS=posix
5148    THREADDLLIBS=-lpthread
5149    $as_echo "#define GC_AIX_THREADS 1" >>confdefs.h
5150
5151    $as_echo "#define _REENTRANT 1" >>confdefs.h
5152
5153    ;;
5154 decosf1 | irix | mach | os2 | solaris | dce | vxworks)
5155    as_fn_error $? "thread package $THREADS not yet supported" "$LINENO" 5
5156    ;;
5157 *)
5158    as_fn_error $? "$THREADS is an unknown thread package" "$LINENO" 5
5159    ;;
5160esac
5161
5162
5163case "$host" in
5164   powerpc-*-darwin*)
5165      powerpc_darwin=true
5166      ;;
5167esac
5168 if test x$powerpc_darwin = xtrue; then
5169  POWERPC_DARWIN_TRUE=
5170  POWERPC_DARWIN_FALSE='#'
5171else
5172  POWERPC_DARWIN_TRUE='#'
5173  POWERPC_DARWIN_FALSE=
5174fi
5175
5176
5177# Check if the GCC builtin __sync_bool_compare_and_swap is available.
5178# It is preferred in gc_locks.h for PPC as GCC 4.4 has a problem with the inline assembly there.
5179{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for __sync_bool_compare_and_swap" >&5
5180$as_echo_n "checking for __sync_bool_compare_and_swap... " >&6; }
5181cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5182/* end confdefs.h.  */
5183
5184int
5185main ()
5186{
5187
5188volatile unsigned int foo = 0;
5189unsigned int r1 = __sync_bool_compare_and_swap(&foo, 0, 1);
5190return 0;
5191
5192  ;
5193  return 0;
5194}
5195_ACEOF
5196if ac_fn_c_try_compile "$LINENO"; then :
5197
5198{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5199$as_echo "yes" >&6; }
5200$as_echo "#define HAS___SYNC_BOOL_COMPARE_AND_SWAP 1" >>confdefs.h
5201
5202
5203else
5204
5205{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5206$as_echo "no" >&6; }
5207
5208fi
5209rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5210
5211{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for xlc" >&5
5212$as_echo_n "checking for xlc... " >&6; }
5213cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5214/* end confdefs.h.  */
5215
5216int
5217main ()
5218{
5219
5220 #ifndef __xlC__
5221 # error
5222 #endif
5223
5224  ;
5225  return 0;
5226}
5227_ACEOF
5228if ac_fn_c_try_compile "$LINENO"; then :
5229  compiler_xlc=yes
5230else
5231  compiler_xlc=no
5232fi
5233rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5234{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $compiler_xlc" >&5
5235$as_echo "$compiler_xlc" >&6; }
5236 if test $compiler_xlc = yes; then
5237  COMPILER_XLC_TRUE=
5238  COMPILER_XLC_FALSE='#'
5239else
5240  COMPILER_XLC_TRUE='#'
5241  COMPILER_XLC_FALSE=
5242fi
5243
5244if test $compiler_xlc = yes -a "$powerpc_darwin" = true; then
5245  # the darwin stack-frame-walking code is completely broken on xlc
5246  $as_echo "#define DARWIN_DONT_PARSE_STACK 1" >>confdefs.h
5247
5248fi
5249
5250# We never want libdl on darwin. It is a fake libdl that just ends up making
5251# dyld calls anyway
5252case "$host" in
5253  *-*-darwin*) ;;
5254  *)
5255    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
5256$as_echo_n "checking for dlopen in -ldl... " >&6; }
5257if ${ac_cv_lib_dl_dlopen+:} false; then :
5258  $as_echo_n "(cached) " >&6
5259else
5260  ac_check_lib_save_LIBS=$LIBS
5261LIBS="-ldl  $LIBS"
5262cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5263/* end confdefs.h.  */
5264
5265/* Override any GCC internal prototype to avoid an error.
5266   Use char because int might match the return type of a GCC
5267   builtin and then its argument prototype would still apply.  */
5268#ifdef __cplusplus
5269extern "C"
5270#endif
5271char dlopen ();
5272int
5273main ()
5274{
5275return dlopen ();
5276  ;
5277  return 0;
5278}
5279_ACEOF
5280if ac_fn_c_try_link "$LINENO"; then :
5281  ac_cv_lib_dl_dlopen=yes
5282else
5283  ac_cv_lib_dl_dlopen=no
5284fi
5285rm -f core conftest.err conftest.$ac_objext \
5286    conftest$ac_exeext conftest.$ac_ext
5287LIBS=$ac_check_lib_save_LIBS
5288fi
5289{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
5290$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
5291if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
5292  THREADDLLIBS="$THREADDLLIBS -ldl"
5293fi
5294
5295    ;;
5296esac
5297
5298
5299
5300target_all=libgc.la
5301
5302
5303TARGET_ECOS="no"
5304
5305# Check whether --with-ecos was given.
5306if test "${with_ecos+set}" = set; then :
5307  withval=$with_ecos; TARGET_ECOS="$with_ecos"
5308
5309fi
5310
5311
5312addobjs=
5313addlibs=
5314addincludes=
5315addtests=
5316CXXAM_CPPFLAGS=
5317case "$TARGET_ECOS" in
5318   no)
5319      ;;
5320   *)
5321      $as_echo "#define ECOS 1" >>confdefs.h
5322
5323      CXXINCLUDES="-I${TARGET_ECOS}/include"
5324      addobjs="$addobjs ecos.lo"
5325      ;;
5326esac
5327
5328if test "${enable_cplusplus}" = yes; then
5329      addincludes="$addincludes include/gc_cpp.h include/gc_allocator.h"
5330      addtests="$addtests test_cpp"
5331fi
5332
5333 if test "${enable_cplusplus}" = yes; then
5334  CPLUSPLUS_TRUE=
5335  CPLUSPLUS_FALSE='#'
5336else
5337  CPLUSPLUS_TRUE='#'
5338  CPLUSPLUS_FALSE=
5339fi
5340
5341
5342
5343
5344
5345
5346
5347# Configuration of shared libraries
5348#
5349{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
5350$as_echo_n "checking whether to build shared libraries... " >&6; }
5351# Check whether --enable-shared was given.
5352if test "${enable_shared+set}" = set; then :
5353  enableval=$enable_shared; p=${PACKAGE-default}
5354    case $enableval in
5355    yes) enable_shared=yes ;;
5356    no) enable_shared=no ;;
5357    *)
5358      enable_shared=no
5359      # Look at the argument we got.  We use all the common list separators.
5360      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
5361      for pkg in $enableval; do
5362	IFS="$lt_save_ifs"
5363	if test "X$pkg" = "X$p"; then
5364	  enable_shared=yes
5365	fi
5366      done
5367      IFS="$lt_save_ifs"
5368      ;;
5369    esac
5370else
5371  enable_shared=yes
5372fi
5373
5374
5375
5376
5377
5378
5379
5380
5381
5382
5383case "$host" in
5384 alpha-*-openbsd*)
5385     enable_shared=no
5386     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5387$as_echo "no" >&6; }
5388     ;;
5389 *)
5390     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5391$as_echo "yes" >&6; }
5392     ;;
5393esac
5394
5395# Configuration of machine-dependent code
5396#
5397{ $as_echo "$as_me:${as_lineno-$LINENO}: checking which machine-dependent code should be used" >&5
5398$as_echo_n "checking which machine-dependent code should be used... " >&6; }
5399machdep=
5400case "$host" in
5401 alpha-*-openbsd*)
5402    machdep="alpha_mach_dep.lo"
5403    if test x"${ac_cv_lib_dl_dlopen}" != xyes ; then
5404       { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: OpenBSD/Alpha without dlopen(). Shared library support is disabled" >&5
5405$as_echo "$as_me: WARNING: OpenBSD/Alpha without dlopen(). Shared library support is disabled" >&2;}
5406    fi
5407    ;;
5408 alpha*-*-linux*)
5409    machdep="alpha_mach_dep.lo"
5410    ;;
5411 i?86-*-solaris2.[89] | i?86-*-solaris2.1?)
5412    $as_echo "#define SOLARIS25_PROC_VDB_BUG_FIXED 1" >>confdefs.h
5413
5414    ;;
5415 mipstx39-*-elf*)
5416    machdep="mips_ultrix_mach_dep.lo"
5417    $as_echo "#define STACKBASE __stackbase" >>confdefs.h
5418
5419    $as_echo "#define DATASTART_IS_ETEXT 1" >>confdefs.h
5420
5421    ;;
5422 mips-dec-ultrix*)
5423    machdep="mips_ultrix_mach-dep.lo"
5424    ;;
5425 mips-nec-sysv*|mips-unknown-sysv*)
5426    ;;
5427 mips*-*-linux*)
5428    ;;
5429 mips-*-*)
5430    machdep="mips_sgi_mach_dep.lo"
5431    $as_echo "#define NO_EXECUTE_PERMISSION 1" >>confdefs.h
5432
5433    ;;
5434 sparc-*-netbsd*)
5435    machdep="sparc_netbsd_mach_dep.lo"
5436    ;;
5437 sparc-sun-solaris2.3)
5438    machdep="sparc_mach_dep.lo"
5439    $as_echo "#define SUNOS53_SHARED_LIB 1" >>confdefs.h
5440
5441    ;;
5442 sparc*-sun-solaris2.*)
5443    machdep="sparc_mach_dep.lo"
5444    ;;
5445 ia64-*-*)
5446     machdep="mach_dep.lo ia64_save_regs_in_stack.lo"
5447	target_ia64=true
5448    ;;
5449 *-*-nacl*)
5450    $as_echo "#define NO_EXECUTE_PERMISSION 1" >>confdefs.h
5451
5452    ;;
5453esac
5454if test x"$machdep" = x; then
5455{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $machdep" >&5
5456$as_echo "$machdep" >&6; }
5457   machdep="mach_dep.lo"
5458fi
5459addobjs="$addobjs $machdep"
5460#
5461# Adding object files directly to _LIBADD breaks -j builds, so we need to add the sources
5462# instead, but _SOURCES can't contain autoconf substitutions, so add them using automake
5463# conditionals.
5464#
5465#AC_SUBST(addobjs)
5466
5467
5468
5469
5470 if test x$target_ia64 = xtrue; then
5471  TARGET_IA64_TRUE=
5472  TARGET_IA64_FALSE='#'
5473else
5474  TARGET_IA64_TRUE='#'
5475  TARGET_IA64_FALSE=
5476fi
5477
5478
5479case `pwd` in
5480  *\ * | *\	*)
5481    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
5482$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
5483esac
5484
5485
5486
5487macro_version='2.4.2'
5488macro_revision='1.3337'
5489
5490
5491
5492
5493
5494
5495
5496
5497
5498
5499
5500
5501
5502ltmain="$ac_aux_dir/ltmain.sh"
5503
5504# Backslashify metacharacters that are still active within
5505# double-quoted strings.
5506sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
5507
5508# Same as above, but do not quote variable references.
5509double_quote_subst='s/\(["`\\]\)/\\\1/g'
5510
5511# Sed substitution to delay expansion of an escaped shell variable in a
5512# double_quote_subst'ed string.
5513delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5514
5515# Sed substitution to delay expansion of an escaped single quote.
5516delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
5517
5518# Sed substitution to avoid accidental globbing in evaled expressions
5519no_glob_subst='s/\*/\\\*/g'
5520
5521ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
5522ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
5523ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
5524
5525{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
5526$as_echo_n "checking how to print strings... " >&6; }
5527# Test print first, because it will be a builtin if present.
5528if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
5529   test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
5530  ECHO='print -r --'
5531elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
5532  ECHO='printf %s\n'
5533else
5534  # Use this function as a fallback that always works.
5535  func_fallback_echo ()
5536  {
5537    eval 'cat <<_LTECHO_EOF
5538$1
5539_LTECHO_EOF'
5540  }
5541  ECHO='func_fallback_echo'
5542fi
5543
5544# func_echo_all arg...
5545# Invoke $ECHO with all args, space-separated.
5546func_echo_all ()
5547{
5548    $ECHO ""
5549}
5550
5551case "$ECHO" in
5552  printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
5553$as_echo "printf" >&6; } ;;
5554  print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
5555$as_echo "print -r" >&6; } ;;
5556  *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
5557$as_echo "cat" >&6; } ;;
5558esac
5559
5560
5561
5562
5563
5564
5565
5566
5567
5568
5569
5570
5571
5572
5573{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
5574$as_echo_n "checking for a sed that does not truncate output... " >&6; }
5575if ${ac_cv_path_SED+:} false; then :
5576  $as_echo_n "(cached) " >&6
5577else
5578            ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5579     for ac_i in 1 2 3 4 5 6 7; do
5580       ac_script="$ac_script$as_nl$ac_script"
5581     done
5582     echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5583     { ac_script=; unset ac_script;}
5584     if test -z "$SED"; then
5585  ac_path_SED_found=false
5586  # Loop through the user's path and test for each of PROGNAME-LIST
5587  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5588for as_dir in $PATH
5589do
5590  IFS=$as_save_IFS
5591  test -z "$as_dir" && as_dir=.
5592    for ac_prog in sed gsed; do
5593    for ac_exec_ext in '' $ac_executable_extensions; do
5594      ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
5595      as_fn_executable_p "$ac_path_SED" || continue
5596# Check for GNU ac_path_SED and select it if it is found.
5597  # Check for GNU $ac_path_SED
5598case `"$ac_path_SED" --version 2>&1` in
5599*GNU*)
5600  ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5601*)
5602  ac_count=0
5603  $as_echo_n 0123456789 >"conftest.in"
5604  while :
5605  do
5606    cat "conftest.in" "conftest.in" >"conftest.tmp"
5607    mv "conftest.tmp" "conftest.in"
5608    cp "conftest.in" "conftest.nl"
5609    $as_echo '' >> "conftest.nl"
5610    "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5611    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5612    as_fn_arith $ac_count + 1 && ac_count=$as_val
5613    if test $ac_count -gt ${ac_path_SED_max-0}; then
5614      # Best one so far, save it but keep looking for a better one
5615      ac_cv_path_SED="$ac_path_SED"
5616      ac_path_SED_max=$ac_count
5617    fi
5618    # 10*(2^10) chars as input seems more than enough
5619    test $ac_count -gt 10 && break
5620  done
5621  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5622esac
5623
5624      $ac_path_SED_found && break 3
5625    done
5626  done
5627  done
5628IFS=$as_save_IFS
5629  if test -z "$ac_cv_path_SED"; then
5630    as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
5631  fi
5632else
5633  ac_cv_path_SED=$SED
5634fi
5635
5636fi
5637{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
5638$as_echo "$ac_cv_path_SED" >&6; }
5639 SED="$ac_cv_path_SED"
5640  rm -f conftest.sed
5641
5642test -z "$SED" && SED=sed
5643Xsed="$SED -e 1s/^X//"
5644
5645
5646
5647
5648
5649
5650
5651
5652
5653
5654
5655{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5656$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5657if ${ac_cv_path_GREP+:} false; then :
5658  $as_echo_n "(cached) " >&6
5659else
5660  if test -z "$GREP"; then
5661  ac_path_GREP_found=false
5662  # Loop through the user's path and test for each of PROGNAME-LIST
5663  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5664for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5665do
5666  IFS=$as_save_IFS
5667  test -z "$as_dir" && as_dir=.
5668    for ac_prog in grep ggrep; do
5669    for ac_exec_ext in '' $ac_executable_extensions; do
5670      ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5671      as_fn_executable_p "$ac_path_GREP" || continue
5672# Check for GNU ac_path_GREP and select it if it is found.
5673  # Check for GNU $ac_path_GREP
5674case `"$ac_path_GREP" --version 2>&1` in
5675*GNU*)
5676  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5677*)
5678  ac_count=0
5679  $as_echo_n 0123456789 >"conftest.in"
5680  while :
5681  do
5682    cat "conftest.in" "conftest.in" >"conftest.tmp"
5683    mv "conftest.tmp" "conftest.in"
5684    cp "conftest.in" "conftest.nl"
5685    $as_echo 'GREP' >> "conftest.nl"
5686    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5687    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5688    as_fn_arith $ac_count + 1 && ac_count=$as_val
5689    if test $ac_count -gt ${ac_path_GREP_max-0}; then
5690      # Best one so far, save it but keep looking for a better one
5691      ac_cv_path_GREP="$ac_path_GREP"
5692      ac_path_GREP_max=$ac_count
5693    fi
5694    # 10*(2^10) chars as input seems more than enough
5695    test $ac_count -gt 10 && break
5696  done
5697  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5698esac
5699
5700      $ac_path_GREP_found && break 3
5701    done
5702  done
5703  done
5704IFS=$as_save_IFS
5705  if test -z "$ac_cv_path_GREP"; then
5706    as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5707  fi
5708else
5709  ac_cv_path_GREP=$GREP
5710fi
5711
5712fi
5713{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5714$as_echo "$ac_cv_path_GREP" >&6; }
5715 GREP="$ac_cv_path_GREP"
5716
5717
5718{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5719$as_echo_n "checking for egrep... " >&6; }
5720if ${ac_cv_path_EGREP+:} false; then :
5721  $as_echo_n "(cached) " >&6
5722else
5723  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5724   then ac_cv_path_EGREP="$GREP -E"
5725   else
5726     if test -z "$EGREP"; then
5727  ac_path_EGREP_found=false
5728  # Loop through the user's path and test for each of PROGNAME-LIST
5729  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5730for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5731do
5732  IFS=$as_save_IFS
5733  test -z "$as_dir" && as_dir=.
5734    for ac_prog in egrep; do
5735    for ac_exec_ext in '' $ac_executable_extensions; do
5736      ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5737      as_fn_executable_p "$ac_path_EGREP" || continue
5738# Check for GNU ac_path_EGREP and select it if it is found.
5739  # Check for GNU $ac_path_EGREP
5740case `"$ac_path_EGREP" --version 2>&1` in
5741*GNU*)
5742  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5743*)
5744  ac_count=0
5745  $as_echo_n 0123456789 >"conftest.in"
5746  while :
5747  do
5748    cat "conftest.in" "conftest.in" >"conftest.tmp"
5749    mv "conftest.tmp" "conftest.in"
5750    cp "conftest.in" "conftest.nl"
5751    $as_echo 'EGREP' >> "conftest.nl"
5752    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5753    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5754    as_fn_arith $ac_count + 1 && ac_count=$as_val
5755    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5756      # Best one so far, save it but keep looking for a better one
5757      ac_cv_path_EGREP="$ac_path_EGREP"
5758      ac_path_EGREP_max=$ac_count
5759    fi
5760    # 10*(2^10) chars as input seems more than enough
5761    test $ac_count -gt 10 && break
5762  done
5763  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5764esac
5765
5766      $ac_path_EGREP_found && break 3
5767    done
5768  done
5769  done
5770IFS=$as_save_IFS
5771  if test -z "$ac_cv_path_EGREP"; then
5772    as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5773  fi
5774else
5775  ac_cv_path_EGREP=$EGREP
5776fi
5777
5778   fi
5779fi
5780{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5781$as_echo "$ac_cv_path_EGREP" >&6; }
5782 EGREP="$ac_cv_path_EGREP"
5783
5784
5785{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
5786$as_echo_n "checking for fgrep... " >&6; }
5787if ${ac_cv_path_FGREP+:} false; then :
5788  $as_echo_n "(cached) " >&6
5789else
5790  if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5791   then ac_cv_path_FGREP="$GREP -F"
5792   else
5793     if test -z "$FGREP"; then
5794  ac_path_FGREP_found=false
5795  # Loop through the user's path and test for each of PROGNAME-LIST
5796  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5797for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5798do
5799  IFS=$as_save_IFS
5800  test -z "$as_dir" && as_dir=.
5801    for ac_prog in fgrep; do
5802    for ac_exec_ext in '' $ac_executable_extensions; do
5803      ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
5804      as_fn_executable_p "$ac_path_FGREP" || continue
5805# Check for GNU ac_path_FGREP and select it if it is found.
5806  # Check for GNU $ac_path_FGREP
5807case `"$ac_path_FGREP" --version 2>&1` in
5808*GNU*)
5809  ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5810*)
5811  ac_count=0
5812  $as_echo_n 0123456789 >"conftest.in"
5813  while :
5814  do
5815    cat "conftest.in" "conftest.in" >"conftest.tmp"
5816    mv "conftest.tmp" "conftest.in"
5817    cp "conftest.in" "conftest.nl"
5818    $as_echo 'FGREP' >> "conftest.nl"
5819    "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5820    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5821    as_fn_arith $ac_count + 1 && ac_count=$as_val
5822    if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5823      # Best one so far, save it but keep looking for a better one
5824      ac_cv_path_FGREP="$ac_path_FGREP"
5825      ac_path_FGREP_max=$ac_count
5826    fi
5827    # 10*(2^10) chars as input seems more than enough
5828    test $ac_count -gt 10 && break
5829  done
5830  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5831esac
5832
5833      $ac_path_FGREP_found && break 3
5834    done
5835  done
5836  done
5837IFS=$as_save_IFS
5838  if test -z "$ac_cv_path_FGREP"; then
5839    as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5840  fi
5841else
5842  ac_cv_path_FGREP=$FGREP
5843fi
5844
5845   fi
5846fi
5847{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5848$as_echo "$ac_cv_path_FGREP" >&6; }
5849 FGREP="$ac_cv_path_FGREP"
5850
5851
5852test -z "$GREP" && GREP=grep
5853
5854
5855
5856
5857
5858
5859
5860
5861
5862
5863
5864
5865
5866
5867
5868
5869
5870
5871
5872# Check whether --with-gnu-ld was given.
5873if test "${with_gnu_ld+set}" = set; then :
5874  withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
5875else
5876  with_gnu_ld=no
5877fi
5878
5879ac_prog=ld
5880if test "$GCC" = yes; then
5881  # Check if gcc -print-prog-name=ld gives a path.
5882  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5883$as_echo_n "checking for ld used by $CC... " >&6; }
5884  case $host in
5885  *-*-mingw*)
5886    # gcc leaves a trailing carriage return which upsets mingw
5887    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5888  *)
5889    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5890  esac
5891  case $ac_prog in
5892    # Accept absolute paths.
5893    [\\/]* | ?:[\\/]*)
5894      re_direlt='/[^/][^/]*/\.\./'
5895      # Canonicalize the pathname of ld
5896      ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5897      while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5898	ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5899      done
5900      test -z "$LD" && LD="$ac_prog"
5901      ;;
5902  "")
5903    # If it fails, then pretend we aren't using GCC.
5904    ac_prog=ld
5905    ;;
5906  *)
5907    # If it is relative, then search for the first ld in PATH.
5908    with_gnu_ld=unknown
5909    ;;
5910  esac
5911elif test "$with_gnu_ld" = yes; then
5912  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5913$as_echo_n "checking for GNU ld... " >&6; }
5914else
5915  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5916$as_echo_n "checking for non-GNU ld... " >&6; }
5917fi
5918if ${lt_cv_path_LD+:} false; then :
5919  $as_echo_n "(cached) " >&6
5920else
5921  if test -z "$LD"; then
5922  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5923  for ac_dir in $PATH; do
5924    IFS="$lt_save_ifs"
5925    test -z "$ac_dir" && ac_dir=.
5926    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5927      lt_cv_path_LD="$ac_dir/$ac_prog"
5928      # Check to see if the program is GNU ld.  I'd rather use --version,
5929      # but apparently some variants of GNU ld only accept -v.
5930      # Break only if it was the GNU/non-GNU ld that we prefer.
5931      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5932      *GNU* | *'with BFD'*)
5933	test "$with_gnu_ld" != no && break
5934	;;
5935      *)
5936	test "$with_gnu_ld" != yes && break
5937	;;
5938      esac
5939    fi
5940  done
5941  IFS="$lt_save_ifs"
5942else
5943  lt_cv_path_LD="$LD" # Let the user override the test with a path.
5944fi
5945fi
5946
5947LD="$lt_cv_path_LD"
5948if test -n "$LD"; then
5949  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5950$as_echo "$LD" >&6; }
5951else
5952  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5953$as_echo "no" >&6; }
5954fi
5955test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
5956{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5957$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5958if ${lt_cv_prog_gnu_ld+:} false; then :
5959  $as_echo_n "(cached) " >&6
5960else
5961  # I'd rather use --version here, but apparently some GNU lds only accept -v.
5962case `$LD -v 2>&1 </dev/null` in
5963*GNU* | *'with BFD'*)
5964  lt_cv_prog_gnu_ld=yes
5965  ;;
5966*)
5967  lt_cv_prog_gnu_ld=no
5968  ;;
5969esac
5970fi
5971{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5972$as_echo "$lt_cv_prog_gnu_ld" >&6; }
5973with_gnu_ld=$lt_cv_prog_gnu_ld
5974
5975
5976
5977
5978
5979
5980
5981
5982
5983{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5984$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5985if ${lt_cv_path_NM+:} false; then :
5986  $as_echo_n "(cached) " >&6
5987else
5988  if test -n "$NM"; then
5989  # Let the user override the test.
5990  lt_cv_path_NM="$NM"
5991else
5992  lt_nm_to_check="${ac_tool_prefix}nm"
5993  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5994    lt_nm_to_check="$lt_nm_to_check nm"
5995  fi
5996  for lt_tmp_nm in $lt_nm_to_check; do
5997    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5998    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5999      IFS="$lt_save_ifs"
6000      test -z "$ac_dir" && ac_dir=.
6001      tmp_nm="$ac_dir/$lt_tmp_nm"
6002      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
6003	# Check to see if the nm accepts a BSD-compat flag.
6004	# Adding the `sed 1q' prevents false positives on HP-UX, which says:
6005	#   nm: unknown option "B" ignored
6006	# Tru64's nm complains that /dev/null is an invalid object file
6007	case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
6008	*/dev/null* | *'Invalid file or object type'*)
6009	  lt_cv_path_NM="$tmp_nm -B"
6010	  break
6011	  ;;
6012	*)
6013	  case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
6014	  */dev/null*)
6015	    lt_cv_path_NM="$tmp_nm -p"
6016	    break
6017	    ;;
6018	  *)
6019	    lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6020	    continue # so that we can try to find one that supports BSD flags
6021	    ;;
6022	  esac
6023	  ;;
6024	esac
6025      fi
6026    done
6027    IFS="$lt_save_ifs"
6028  done
6029  : ${lt_cv_path_NM=no}
6030fi
6031fi
6032{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
6033$as_echo "$lt_cv_path_NM" >&6; }
6034if test "$lt_cv_path_NM" != "no"; then
6035  NM="$lt_cv_path_NM"
6036else
6037  # Didn't find any BSD compatible name lister, look for dumpbin.
6038  if test -n "$DUMPBIN"; then :
6039    # Let the user override the test.
6040  else
6041    if test -n "$ac_tool_prefix"; then
6042  for ac_prog in dumpbin "link -dump"
6043  do
6044    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6045set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6046{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6047$as_echo_n "checking for $ac_word... " >&6; }
6048if ${ac_cv_prog_DUMPBIN+:} false; then :
6049  $as_echo_n "(cached) " >&6
6050else
6051  if test -n "$DUMPBIN"; then
6052  ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
6053else
6054as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6055for as_dir in $PATH
6056do
6057  IFS=$as_save_IFS
6058  test -z "$as_dir" && as_dir=.
6059    for ac_exec_ext in '' $ac_executable_extensions; do
6060  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6061    ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
6062    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6063    break 2
6064  fi
6065done
6066  done
6067IFS=$as_save_IFS
6068
6069fi
6070fi
6071DUMPBIN=$ac_cv_prog_DUMPBIN
6072if test -n "$DUMPBIN"; then
6073  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
6074$as_echo "$DUMPBIN" >&6; }
6075else
6076  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6077$as_echo "no" >&6; }
6078fi
6079
6080
6081    test -n "$DUMPBIN" && break
6082  done
6083fi
6084if test -z "$DUMPBIN"; then
6085  ac_ct_DUMPBIN=$DUMPBIN
6086  for ac_prog in dumpbin "link -dump"
6087do
6088  # Extract the first word of "$ac_prog", so it can be a program name with args.
6089set dummy $ac_prog; ac_word=$2
6090{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6091$as_echo_n "checking for $ac_word... " >&6; }
6092if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
6093  $as_echo_n "(cached) " >&6
6094else
6095  if test -n "$ac_ct_DUMPBIN"; then
6096  ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
6097else
6098as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6099for as_dir in $PATH
6100do
6101  IFS=$as_save_IFS
6102  test -z "$as_dir" && as_dir=.
6103    for ac_exec_ext in '' $ac_executable_extensions; do
6104  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6105    ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
6106    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6107    break 2
6108  fi
6109done
6110  done
6111IFS=$as_save_IFS
6112
6113fi
6114fi
6115ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
6116if test -n "$ac_ct_DUMPBIN"; then
6117  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
6118$as_echo "$ac_ct_DUMPBIN" >&6; }
6119else
6120  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6121$as_echo "no" >&6; }
6122fi
6123
6124
6125  test -n "$ac_ct_DUMPBIN" && break
6126done
6127
6128  if test "x$ac_ct_DUMPBIN" = x; then
6129    DUMPBIN=":"
6130  else
6131    case $cross_compiling:$ac_tool_warned in
6132yes:)
6133{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6134$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6135ac_tool_warned=yes ;;
6136esac
6137    DUMPBIN=$ac_ct_DUMPBIN
6138  fi
6139fi
6140
6141    case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
6142    *COFF*)
6143      DUMPBIN="$DUMPBIN -symbols"
6144      ;;
6145    *)
6146      DUMPBIN=:
6147      ;;
6148    esac
6149  fi
6150
6151  if test "$DUMPBIN" != ":"; then
6152    NM="$DUMPBIN"
6153  fi
6154fi
6155test -z "$NM" && NM=nm
6156
6157
6158
6159
6160
6161
6162{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
6163$as_echo_n "checking the name lister ($NM) interface... " >&6; }
6164if ${lt_cv_nm_interface+:} false; then :
6165  $as_echo_n "(cached) " >&6
6166else
6167  lt_cv_nm_interface="BSD nm"
6168  echo "int some_variable = 0;" > conftest.$ac_ext
6169  (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
6170  (eval "$ac_compile" 2>conftest.err)
6171  cat conftest.err >&5
6172  (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
6173  (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
6174  cat conftest.err >&5
6175  (eval echo "\"\$as_me:$LINENO: output\"" >&5)
6176  cat conftest.out >&5
6177  if $GREP 'External.*some_variable' conftest.out > /dev/null; then
6178    lt_cv_nm_interface="MS dumpbin"
6179  fi
6180  rm -f conftest*
6181fi
6182{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
6183$as_echo "$lt_cv_nm_interface" >&6; }
6184
6185{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
6186$as_echo_n "checking whether ln -s works... " >&6; }
6187LN_S=$as_ln_s
6188if test "$LN_S" = "ln -s"; then
6189  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6190$as_echo "yes" >&6; }
6191else
6192  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
6193$as_echo "no, using $LN_S" >&6; }
6194fi
6195
6196# find the maximum length of command line arguments
6197{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
6198$as_echo_n "checking the maximum length of command line arguments... " >&6; }
6199if ${lt_cv_sys_max_cmd_len+:} false; then :
6200  $as_echo_n "(cached) " >&6
6201else
6202    i=0
6203  teststring="ABCD"
6204
6205  case $build_os in
6206  msdosdjgpp*)
6207    # On DJGPP, this test can blow up pretty badly due to problems in libc
6208    # (any single argument exceeding 2000 bytes causes a buffer overrun
6209    # during glob expansion).  Even if it were fixed, the result of this
6210    # check would be larger than it should be.
6211    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
6212    ;;
6213
6214  gnu*)
6215    # Under GNU Hurd, this test is not required because there is
6216    # no limit to the length of command line arguments.
6217    # Libtool will interpret -1 as no limit whatsoever
6218    lt_cv_sys_max_cmd_len=-1;
6219    ;;
6220
6221  cygwin* | mingw* | cegcc*)
6222    # On Win9x/ME, this test blows up -- it succeeds, but takes
6223    # about 5 minutes as the teststring grows exponentially.
6224    # Worse, since 9x/ME are not pre-emptively multitasking,
6225    # you end up with a "frozen" computer, even though with patience
6226    # the test eventually succeeds (with a max line length of 256k).
6227    # Instead, let's just punt: use the minimum linelength reported by
6228    # all of the supported platforms: 8192 (on NT/2K/XP).
6229    lt_cv_sys_max_cmd_len=8192;
6230    ;;
6231
6232  mint*)
6233    # On MiNT this can take a long time and run out of memory.
6234    lt_cv_sys_max_cmd_len=8192;
6235    ;;
6236
6237  amigaos*)
6238    # On AmigaOS with pdksh, this test takes hours, literally.
6239    # So we just punt and use a minimum line length of 8192.
6240    lt_cv_sys_max_cmd_len=8192;
6241    ;;
6242
6243  netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6244    # This has been around since 386BSD, at least.  Likely further.
6245    if test -x /sbin/sysctl; then
6246      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6247    elif test -x /usr/sbin/sysctl; then
6248      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6249    else
6250      lt_cv_sys_max_cmd_len=65536	# usable default for all BSDs
6251    fi
6252    # And add a safety zone
6253    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6254    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6255    ;;
6256
6257  interix*)
6258    # We know the value 262144 and hardcode it with a safety zone (like BSD)
6259    lt_cv_sys_max_cmd_len=196608
6260    ;;
6261
6262  os2*)
6263    # The test takes a long time on OS/2.
6264    lt_cv_sys_max_cmd_len=8192
6265    ;;
6266
6267  osf*)
6268    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6269    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6270    # nice to cause kernel panics so lets avoid the loop below.
6271    # First set a reasonable default.
6272    lt_cv_sys_max_cmd_len=16384
6273    #
6274    if test -x /sbin/sysconfig; then
6275      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6276        *1*) lt_cv_sys_max_cmd_len=-1 ;;
6277      esac
6278    fi
6279    ;;
6280  sco3.2v5*)
6281    lt_cv_sys_max_cmd_len=102400
6282    ;;
6283  sysv5* | sco5v6* | sysv4.2uw2*)
6284    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6285    if test -n "$kargmax"; then
6286      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[	 ]//'`
6287    else
6288      lt_cv_sys_max_cmd_len=32768
6289    fi
6290    ;;
6291  *)
6292    lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
6293    if test -n "$lt_cv_sys_max_cmd_len" && \
6294	test undefined != "$lt_cv_sys_max_cmd_len"; then
6295      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6296      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6297    else
6298      # Make teststring a little bigger before we do anything with it.
6299      # a 1K string should be a reasonable start.
6300      for i in 1 2 3 4 5 6 7 8 ; do
6301        teststring=$teststring$teststring
6302      done
6303      SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6304      # If test is not a shell built-in, we'll probably end up computing a
6305      # maximum length that is only half of the actual maximum length, but
6306      # we can't tell.
6307      while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
6308	         = "X$teststring$teststring"; } >/dev/null 2>&1 &&
6309	      test $i != 17 # 1/2 MB should be enough
6310      do
6311        i=`expr $i + 1`
6312        teststring=$teststring$teststring
6313      done
6314      # Only check the string length outside the loop.
6315      lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
6316      teststring=
6317      # Add a significant safety factor because C++ compilers can tack on
6318      # massive amounts of additional arguments before passing them to the
6319      # linker.  It appears as though 1/2 is a usable value.
6320      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6321    fi
6322    ;;
6323  esac
6324
6325fi
6326
6327if test -n $lt_cv_sys_max_cmd_len ; then
6328  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
6329$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
6330else
6331  { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
6332$as_echo "none" >&6; }
6333fi
6334max_cmd_len=$lt_cv_sys_max_cmd_len
6335
6336
6337
6338
6339
6340
6341: ${CP="cp -f"}
6342: ${MV="mv -f"}
6343: ${RM="rm -f"}
6344
6345{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
6346$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
6347# Try some XSI features
6348xsi_shell=no
6349( _lt_dummy="a/b/c"
6350  test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
6351      = c,a/b,b/c, \
6352    && eval 'test $(( 1 + 1 )) -eq 2 \
6353    && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
6354  && xsi_shell=yes
6355{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
6356$as_echo "$xsi_shell" >&6; }
6357
6358
6359{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
6360$as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
6361lt_shell_append=no
6362( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
6363    >/dev/null 2>&1 \
6364  && lt_shell_append=yes
6365{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
6366$as_echo "$lt_shell_append" >&6; }
6367
6368
6369if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
6370  lt_unset=unset
6371else
6372  lt_unset=false
6373fi
6374
6375
6376
6377
6378
6379# test EBCDIC or ASCII
6380case `echo X|tr X '\101'` in
6381 A) # ASCII based system
6382    # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
6383  lt_SP2NL='tr \040 \012'
6384  lt_NL2SP='tr \015\012 \040\040'
6385  ;;
6386 *) # EBCDIC based system
6387  lt_SP2NL='tr \100 \n'
6388  lt_NL2SP='tr \r\n \100\100'
6389  ;;
6390esac
6391
6392
6393
6394
6395
6396
6397
6398
6399
6400{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
6401$as_echo_n "checking how to convert $build file names to $host format... " >&6; }
6402if ${lt_cv_to_host_file_cmd+:} false; then :
6403  $as_echo_n "(cached) " >&6
6404else
6405  case $host in
6406  *-*-mingw* )
6407    case $build in
6408      *-*-mingw* ) # actually msys
6409        lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
6410        ;;
6411      *-*-cygwin* )
6412        lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
6413        ;;
6414      * ) # otherwise, assume *nix
6415        lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
6416        ;;
6417    esac
6418    ;;
6419  *-*-cygwin* )
6420    case $build in
6421      *-*-mingw* ) # actually msys
6422        lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
6423        ;;
6424      *-*-cygwin* )
6425        lt_cv_to_host_file_cmd=func_convert_file_noop
6426        ;;
6427      * ) # otherwise, assume *nix
6428        lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
6429        ;;
6430    esac
6431    ;;
6432  * ) # unhandled hosts (and "normal" native builds)
6433    lt_cv_to_host_file_cmd=func_convert_file_noop
6434    ;;
6435esac
6436
6437fi
6438
6439to_host_file_cmd=$lt_cv_to_host_file_cmd
6440{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
6441$as_echo "$lt_cv_to_host_file_cmd" >&6; }
6442
6443
6444
6445
6446
6447{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
6448$as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
6449if ${lt_cv_to_tool_file_cmd+:} false; then :
6450  $as_echo_n "(cached) " >&6
6451else
6452  #assume ordinary cross tools, or native build.
6453lt_cv_to_tool_file_cmd=func_convert_file_noop
6454case $host in
6455  *-*-mingw* )
6456    case $build in
6457      *-*-mingw* ) # actually msys
6458        lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
6459        ;;
6460    esac
6461    ;;
6462esac
6463
6464fi
6465
6466to_tool_file_cmd=$lt_cv_to_tool_file_cmd
6467{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
6468$as_echo "$lt_cv_to_tool_file_cmd" >&6; }
6469
6470
6471
6472
6473
6474{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
6475$as_echo_n "checking for $LD option to reload object files... " >&6; }
6476if ${lt_cv_ld_reload_flag+:} false; then :
6477  $as_echo_n "(cached) " >&6
6478else
6479  lt_cv_ld_reload_flag='-r'
6480fi
6481{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
6482$as_echo "$lt_cv_ld_reload_flag" >&6; }
6483reload_flag=$lt_cv_ld_reload_flag
6484case $reload_flag in
6485"" | " "*) ;;
6486*) reload_flag=" $reload_flag" ;;
6487esac
6488reload_cmds='$LD$reload_flag -o $output$reload_objs'
6489case $host_os in
6490  cygwin* | mingw* | pw32* | cegcc*)
6491    if test "$GCC" != yes; then
6492      reload_cmds=false
6493    fi
6494    ;;
6495  darwin*)
6496    if test "$GCC" = yes; then
6497      reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
6498    else
6499      reload_cmds='$LD$reload_flag -o $output$reload_objs'
6500    fi
6501    ;;
6502esac
6503
6504
6505
6506
6507
6508
6509
6510
6511
6512if test -n "$ac_tool_prefix"; then
6513  # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
6514set dummy ${ac_tool_prefix}objdump; ac_word=$2
6515{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6516$as_echo_n "checking for $ac_word... " >&6; }
6517if ${ac_cv_prog_OBJDUMP+:} false; then :
6518  $as_echo_n "(cached) " >&6
6519else
6520  if test -n "$OBJDUMP"; then
6521  ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6522else
6523as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6524for as_dir in $PATH
6525do
6526  IFS=$as_save_IFS
6527  test -z "$as_dir" && as_dir=.
6528    for ac_exec_ext in '' $ac_executable_extensions; do
6529  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6530    ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
6531    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6532    break 2
6533  fi
6534done
6535  done
6536IFS=$as_save_IFS
6537
6538fi
6539fi
6540OBJDUMP=$ac_cv_prog_OBJDUMP
6541if test -n "$OBJDUMP"; then
6542  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
6543$as_echo "$OBJDUMP" >&6; }
6544else
6545  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6546$as_echo "no" >&6; }
6547fi
6548
6549
6550fi
6551if test -z "$ac_cv_prog_OBJDUMP"; then
6552  ac_ct_OBJDUMP=$OBJDUMP
6553  # Extract the first word of "objdump", so it can be a program name with args.
6554set dummy objdump; ac_word=$2
6555{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6556$as_echo_n "checking for $ac_word... " >&6; }
6557if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
6558  $as_echo_n "(cached) " >&6
6559else
6560  if test -n "$ac_ct_OBJDUMP"; then
6561  ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6562else
6563as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6564for as_dir in $PATH
6565do
6566  IFS=$as_save_IFS
6567  test -z "$as_dir" && as_dir=.
6568    for ac_exec_ext in '' $ac_executable_extensions; do
6569  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6570    ac_cv_prog_ac_ct_OBJDUMP="objdump"
6571    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6572    break 2
6573  fi
6574done
6575  done
6576IFS=$as_save_IFS
6577
6578fi
6579fi
6580ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6581if test -n "$ac_ct_OBJDUMP"; then
6582  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
6583$as_echo "$ac_ct_OBJDUMP" >&6; }
6584else
6585  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6586$as_echo "no" >&6; }
6587fi
6588
6589  if test "x$ac_ct_OBJDUMP" = x; then
6590    OBJDUMP="false"
6591  else
6592    case $cross_compiling:$ac_tool_warned in
6593yes:)
6594{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6595$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6596ac_tool_warned=yes ;;
6597esac
6598    OBJDUMP=$ac_ct_OBJDUMP
6599  fi
6600else
6601  OBJDUMP="$ac_cv_prog_OBJDUMP"
6602fi
6603
6604test -z "$OBJDUMP" && OBJDUMP=objdump
6605
6606
6607
6608
6609
6610
6611
6612
6613
6614{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
6615$as_echo_n "checking how to recognize dependent libraries... " >&6; }
6616if ${lt_cv_deplibs_check_method+:} false; then :
6617  $as_echo_n "(cached) " >&6
6618else
6619  lt_cv_file_magic_cmd='$MAGIC_CMD'
6620lt_cv_file_magic_test_file=
6621lt_cv_deplibs_check_method='unknown'
6622# Need to set the preceding variable on all platforms that support
6623# interlibrary dependencies.
6624# 'none' -- dependencies not supported.
6625# `unknown' -- same as none, but documents that we really don't know.
6626# 'pass_all' -- all dependencies passed with no checks.
6627# 'test_compile' -- check by making test program.
6628# 'file_magic [[regex]]' -- check by looking for files in library path
6629# which responds to the $file_magic_cmd with a given extended regex.
6630# If you have `file' or equivalent on your system and you're not sure
6631# whether `pass_all' will *always* work, you probably want this one.
6632
6633case $host_os in
6634aix[4-9]*)
6635  lt_cv_deplibs_check_method=pass_all
6636  ;;
6637
6638beos*)
6639  lt_cv_deplibs_check_method=pass_all
6640  ;;
6641
6642bsdi[45]*)
6643  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6644  lt_cv_file_magic_cmd='/usr/bin/file -L'
6645  lt_cv_file_magic_test_file=/shlib/libc.so
6646  ;;
6647
6648cygwin*)
6649  # func_win32_libid is a shell function defined in ltmain.sh
6650  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6651  lt_cv_file_magic_cmd='func_win32_libid'
6652  ;;
6653
6654mingw* | pw32*)
6655  # Base MSYS/MinGW do not provide the 'file' command needed by
6656  # func_win32_libid shell function, so use a weaker test based on 'objdump',
6657  # unless we find 'file', for example because we are cross-compiling.
6658  # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
6659  if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
6660    lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6661    lt_cv_file_magic_cmd='func_win32_libid'
6662  else
6663    # Keep this pattern in sync with the one in func_win32_libid.
6664    lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
6665    lt_cv_file_magic_cmd='$OBJDUMP -f'
6666  fi
6667  ;;
6668
6669cegcc*)
6670  # use the weaker test based on 'objdump'. See mingw*.
6671  lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6672  lt_cv_file_magic_cmd='$OBJDUMP -f'
6673  ;;
6674
6675darwin* | rhapsody*)
6676  lt_cv_deplibs_check_method=pass_all
6677  ;;
6678
6679freebsd* | dragonfly*)
6680  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6681    case $host_cpu in
6682    i*86 )
6683      # Not sure whether the presence of OpenBSD here was a mistake.
6684      # Let's accept both of them until this is cleared up.
6685      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6686      lt_cv_file_magic_cmd=/usr/bin/file
6687      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6688      ;;
6689    esac
6690  else
6691    lt_cv_deplibs_check_method=pass_all
6692  fi
6693  ;;
6694
6695haiku*)
6696  lt_cv_deplibs_check_method=pass_all
6697  ;;
6698
6699hpux10.20* | hpux11*)
6700  lt_cv_file_magic_cmd=/usr/bin/file
6701  case $host_cpu in
6702  ia64*)
6703    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6704    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6705    ;;
6706  hppa*64*)
6707    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]'
6708    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6709    ;;
6710  *)
6711    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
6712    lt_cv_file_magic_test_file=/usr/lib/libc.sl
6713    ;;
6714  esac
6715  ;;
6716
6717interix[3-9]*)
6718  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6719  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6720  ;;
6721
6722irix5* | irix6* | nonstopux*)
6723  case $LD in
6724  *-32|*"-32 ") libmagic=32-bit;;
6725  *-n32|*"-n32 ") libmagic=N32;;
6726  *-64|*"-64 ") libmagic=64-bit;;
6727  *) libmagic=never-match;;
6728  esac
6729  lt_cv_deplibs_check_method=pass_all
6730  ;;
6731
6732# This must be glibc/ELF.
6733linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
6734  lt_cv_deplibs_check_method=pass_all
6735  ;;
6736
6737netbsd* | netbsdelf*-gnu)
6738  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6739    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6740  else
6741    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6742  fi
6743  ;;
6744
6745newos6*)
6746  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6747  lt_cv_file_magic_cmd=/usr/bin/file
6748  lt_cv_file_magic_test_file=/usr/lib/libnls.so
6749  ;;
6750
6751*nto* | *qnx*)
6752  lt_cv_deplibs_check_method=pass_all
6753  ;;
6754
6755openbsd*)
6756  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6757    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6758  else
6759    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6760  fi
6761  ;;
6762
6763osf3* | osf4* | osf5*)
6764  lt_cv_deplibs_check_method=pass_all
6765  ;;
6766
6767rdos*)
6768  lt_cv_deplibs_check_method=pass_all
6769  ;;
6770
6771solaris*)
6772  lt_cv_deplibs_check_method=pass_all
6773  ;;
6774
6775sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6776  lt_cv_deplibs_check_method=pass_all
6777  ;;
6778
6779sysv4 | sysv4.3*)
6780  case $host_vendor in
6781  motorola)
6782    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]'
6783    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6784    ;;
6785  ncr)
6786    lt_cv_deplibs_check_method=pass_all
6787    ;;
6788  sequent)
6789    lt_cv_file_magic_cmd='/bin/file'
6790    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6791    ;;
6792  sni)
6793    lt_cv_file_magic_cmd='/bin/file'
6794    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6795    lt_cv_file_magic_test_file=/lib/libc.so
6796    ;;
6797  siemens)
6798    lt_cv_deplibs_check_method=pass_all
6799    ;;
6800  pc)
6801    lt_cv_deplibs_check_method=pass_all
6802    ;;
6803  esac
6804  ;;
6805
6806tpf*)
6807  lt_cv_deplibs_check_method=pass_all
6808  ;;
6809esac
6810
6811fi
6812{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
6813$as_echo "$lt_cv_deplibs_check_method" >&6; }
6814
6815file_magic_glob=
6816want_nocaseglob=no
6817if test "$build" = "$host"; then
6818  case $host_os in
6819  mingw* | pw32*)
6820    if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
6821      want_nocaseglob=yes
6822    else
6823      file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
6824    fi
6825    ;;
6826  esac
6827fi
6828
6829file_magic_cmd=$lt_cv_file_magic_cmd
6830deplibs_check_method=$lt_cv_deplibs_check_method
6831test -z "$deplibs_check_method" && deplibs_check_method=unknown
6832
6833
6834
6835
6836
6837
6838
6839
6840
6841
6842
6843
6844
6845
6846
6847
6848
6849
6850
6851
6852
6853
6854if test -n "$ac_tool_prefix"; then
6855  # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
6856set dummy ${ac_tool_prefix}dlltool; ac_word=$2
6857{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6858$as_echo_n "checking for $ac_word... " >&6; }
6859if ${ac_cv_prog_DLLTOOL+:} false; then :
6860  $as_echo_n "(cached) " >&6
6861else
6862  if test -n "$DLLTOOL"; then
6863  ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
6864else
6865as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6866for as_dir in $PATH
6867do
6868  IFS=$as_save_IFS
6869  test -z "$as_dir" && as_dir=.
6870    for ac_exec_ext in '' $ac_executable_extensions; do
6871  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6872    ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
6873    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6874    break 2
6875  fi
6876done
6877  done
6878IFS=$as_save_IFS
6879
6880fi
6881fi
6882DLLTOOL=$ac_cv_prog_DLLTOOL
6883if test -n "$DLLTOOL"; then
6884  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
6885$as_echo "$DLLTOOL" >&6; }
6886else
6887  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6888$as_echo "no" >&6; }
6889fi
6890
6891
6892fi
6893if test -z "$ac_cv_prog_DLLTOOL"; then
6894  ac_ct_DLLTOOL=$DLLTOOL
6895  # Extract the first word of "dlltool", so it can be a program name with args.
6896set dummy dlltool; ac_word=$2
6897{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6898$as_echo_n "checking for $ac_word... " >&6; }
6899if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
6900  $as_echo_n "(cached) " >&6
6901else
6902  if test -n "$ac_ct_DLLTOOL"; then
6903  ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
6904else
6905as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6906for as_dir in $PATH
6907do
6908  IFS=$as_save_IFS
6909  test -z "$as_dir" && as_dir=.
6910    for ac_exec_ext in '' $ac_executable_extensions; do
6911  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6912    ac_cv_prog_ac_ct_DLLTOOL="dlltool"
6913    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6914    break 2
6915  fi
6916done
6917  done
6918IFS=$as_save_IFS
6919
6920fi
6921fi
6922ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
6923if test -n "$ac_ct_DLLTOOL"; then
6924  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
6925$as_echo "$ac_ct_DLLTOOL" >&6; }
6926else
6927  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6928$as_echo "no" >&6; }
6929fi
6930
6931  if test "x$ac_ct_DLLTOOL" = x; then
6932    DLLTOOL="false"
6933  else
6934    case $cross_compiling:$ac_tool_warned in
6935yes:)
6936{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6937$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6938ac_tool_warned=yes ;;
6939esac
6940    DLLTOOL=$ac_ct_DLLTOOL
6941  fi
6942else
6943  DLLTOOL="$ac_cv_prog_DLLTOOL"
6944fi
6945
6946test -z "$DLLTOOL" && DLLTOOL=dlltool
6947
6948
6949
6950
6951
6952
6953
6954
6955
6956
6957{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
6958$as_echo_n "checking how to associate runtime and link libraries... " >&6; }
6959if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
6960  $as_echo_n "(cached) " >&6
6961else
6962  lt_cv_sharedlib_from_linklib_cmd='unknown'
6963
6964case $host_os in
6965cygwin* | mingw* | pw32* | cegcc*)
6966  # two different shell functions defined in ltmain.sh
6967  # decide which to use based on capabilities of $DLLTOOL
6968  case `$DLLTOOL --help 2>&1` in
6969  *--identify-strict*)
6970    lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
6971    ;;
6972  *)
6973    lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
6974    ;;
6975  esac
6976  ;;
6977*)
6978  # fallback: assume linklib IS sharedlib
6979  lt_cv_sharedlib_from_linklib_cmd="$ECHO"
6980  ;;
6981esac
6982
6983fi
6984{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
6985$as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
6986sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
6987test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
6988
6989
6990
6991
6992
6993
6994
6995if test -n "$ac_tool_prefix"; then
6996  for ac_prog in ar
6997  do
6998    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6999set dummy $ac_tool_prefix$ac_prog; ac_word=$2
7000{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7001$as_echo_n "checking for $ac_word... " >&6; }
7002if ${ac_cv_prog_AR+:} false; then :
7003  $as_echo_n "(cached) " >&6
7004else
7005  if test -n "$AR"; then
7006  ac_cv_prog_AR="$AR" # Let the user override the test.
7007else
7008as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7009for as_dir in $PATH
7010do
7011  IFS=$as_save_IFS
7012  test -z "$as_dir" && as_dir=.
7013    for ac_exec_ext in '' $ac_executable_extensions; do
7014  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7015    ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
7016    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7017    break 2
7018  fi
7019done
7020  done
7021IFS=$as_save_IFS
7022
7023fi
7024fi
7025AR=$ac_cv_prog_AR
7026if test -n "$AR"; then
7027  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
7028$as_echo "$AR" >&6; }
7029else
7030  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7031$as_echo "no" >&6; }
7032fi
7033
7034
7035    test -n "$AR" && break
7036  done
7037fi
7038if test -z "$AR"; then
7039  ac_ct_AR=$AR
7040  for ac_prog in ar
7041do
7042  # Extract the first word of "$ac_prog", so it can be a program name with args.
7043set dummy $ac_prog; ac_word=$2
7044{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7045$as_echo_n "checking for $ac_word... " >&6; }
7046if ${ac_cv_prog_ac_ct_AR+:} false; then :
7047  $as_echo_n "(cached) " >&6
7048else
7049  if test -n "$ac_ct_AR"; then
7050  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
7051else
7052as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7053for as_dir in $PATH
7054do
7055  IFS=$as_save_IFS
7056  test -z "$as_dir" && as_dir=.
7057    for ac_exec_ext in '' $ac_executable_extensions; do
7058  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7059    ac_cv_prog_ac_ct_AR="$ac_prog"
7060    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7061    break 2
7062  fi
7063done
7064  done
7065IFS=$as_save_IFS
7066
7067fi
7068fi
7069ac_ct_AR=$ac_cv_prog_ac_ct_AR
7070if test -n "$ac_ct_AR"; then
7071  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
7072$as_echo "$ac_ct_AR" >&6; }
7073else
7074  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7075$as_echo "no" >&6; }
7076fi
7077
7078
7079  test -n "$ac_ct_AR" && break
7080done
7081
7082  if test "x$ac_ct_AR" = x; then
7083    AR="false"
7084  else
7085    case $cross_compiling:$ac_tool_warned in
7086yes:)
7087{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7088$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7089ac_tool_warned=yes ;;
7090esac
7091    AR=$ac_ct_AR
7092  fi
7093fi
7094
7095: ${AR=ar}
7096: ${AR_FLAGS=cru}
7097
7098
7099
7100
7101
7102
7103
7104
7105
7106
7107
7108{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
7109$as_echo_n "checking for archiver @FILE support... " >&6; }
7110if ${lt_cv_ar_at_file+:} false; then :
7111  $as_echo_n "(cached) " >&6
7112else
7113  lt_cv_ar_at_file=no
7114   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7115/* end confdefs.h.  */
7116
7117int
7118main ()
7119{
7120
7121  ;
7122  return 0;
7123}
7124_ACEOF
7125if ac_fn_c_try_compile "$LINENO"; then :
7126  echo conftest.$ac_objext > conftest.lst
7127      lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
7128      { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
7129  (eval $lt_ar_try) 2>&5
7130  ac_status=$?
7131  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7132  test $ac_status = 0; }
7133      if test "$ac_status" -eq 0; then
7134	# Ensure the archiver fails upon bogus file names.
7135	rm -f conftest.$ac_objext libconftest.a
7136	{ { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
7137  (eval $lt_ar_try) 2>&5
7138  ac_status=$?
7139  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7140  test $ac_status = 0; }
7141	if test "$ac_status" -ne 0; then
7142          lt_cv_ar_at_file=@
7143        fi
7144      fi
7145      rm -f conftest.* libconftest.a
7146
7147fi
7148rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7149
7150fi
7151{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
7152$as_echo "$lt_cv_ar_at_file" >&6; }
7153
7154if test "x$lt_cv_ar_at_file" = xno; then
7155  archiver_list_spec=
7156else
7157  archiver_list_spec=$lt_cv_ar_at_file
7158fi
7159
7160
7161
7162
7163
7164
7165
7166if test -n "$ac_tool_prefix"; then
7167  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
7168set dummy ${ac_tool_prefix}strip; ac_word=$2
7169{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7170$as_echo_n "checking for $ac_word... " >&6; }
7171if ${ac_cv_prog_STRIP+:} false; then :
7172  $as_echo_n "(cached) " >&6
7173else
7174  if test -n "$STRIP"; then
7175  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7176else
7177as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7178for as_dir in $PATH
7179do
7180  IFS=$as_save_IFS
7181  test -z "$as_dir" && as_dir=.
7182    for ac_exec_ext in '' $ac_executable_extensions; do
7183  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7184    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
7185    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7186    break 2
7187  fi
7188done
7189  done
7190IFS=$as_save_IFS
7191
7192fi
7193fi
7194STRIP=$ac_cv_prog_STRIP
7195if test -n "$STRIP"; then
7196  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
7197$as_echo "$STRIP" >&6; }
7198else
7199  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7200$as_echo "no" >&6; }
7201fi
7202
7203
7204fi
7205if test -z "$ac_cv_prog_STRIP"; then
7206  ac_ct_STRIP=$STRIP
7207  # Extract the first word of "strip", so it can be a program name with args.
7208set dummy strip; ac_word=$2
7209{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7210$as_echo_n "checking for $ac_word... " >&6; }
7211if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
7212  $as_echo_n "(cached) " >&6
7213else
7214  if test -n "$ac_ct_STRIP"; then
7215  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
7216else
7217as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7218for as_dir in $PATH
7219do
7220  IFS=$as_save_IFS
7221  test -z "$as_dir" && as_dir=.
7222    for ac_exec_ext in '' $ac_executable_extensions; do
7223  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7224    ac_cv_prog_ac_ct_STRIP="strip"
7225    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7226    break 2
7227  fi
7228done
7229  done
7230IFS=$as_save_IFS
7231
7232fi
7233fi
7234ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
7235if test -n "$ac_ct_STRIP"; then
7236  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
7237$as_echo "$ac_ct_STRIP" >&6; }
7238else
7239  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7240$as_echo "no" >&6; }
7241fi
7242
7243  if test "x$ac_ct_STRIP" = x; then
7244    STRIP=":"
7245  else
7246    case $cross_compiling:$ac_tool_warned in
7247yes:)
7248{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7249$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7250ac_tool_warned=yes ;;
7251esac
7252    STRIP=$ac_ct_STRIP
7253  fi
7254else
7255  STRIP="$ac_cv_prog_STRIP"
7256fi
7257
7258test -z "$STRIP" && STRIP=:
7259
7260
7261
7262
7263
7264
7265if test -n "$ac_tool_prefix"; then
7266  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7267set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7268{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7269$as_echo_n "checking for $ac_word... " >&6; }
7270if ${ac_cv_prog_RANLIB+:} false; then :
7271  $as_echo_n "(cached) " >&6
7272else
7273  if test -n "$RANLIB"; then
7274  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7275else
7276as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7277for as_dir in $PATH
7278do
7279  IFS=$as_save_IFS
7280  test -z "$as_dir" && as_dir=.
7281    for ac_exec_ext in '' $ac_executable_extensions; do
7282  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7283    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7284    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7285    break 2
7286  fi
7287done
7288  done
7289IFS=$as_save_IFS
7290
7291fi
7292fi
7293RANLIB=$ac_cv_prog_RANLIB
7294if test -n "$RANLIB"; then
7295  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
7296$as_echo "$RANLIB" >&6; }
7297else
7298  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7299$as_echo "no" >&6; }
7300fi
7301
7302
7303fi
7304if test -z "$ac_cv_prog_RANLIB"; then
7305  ac_ct_RANLIB=$RANLIB
7306  # Extract the first word of "ranlib", so it can be a program name with args.
7307set dummy ranlib; ac_word=$2
7308{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7309$as_echo_n "checking for $ac_word... " >&6; }
7310if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
7311  $as_echo_n "(cached) " >&6
7312else
7313  if test -n "$ac_ct_RANLIB"; then
7314  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7315else
7316as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7317for as_dir in $PATH
7318do
7319  IFS=$as_save_IFS
7320  test -z "$as_dir" && as_dir=.
7321    for ac_exec_ext in '' $ac_executable_extensions; do
7322  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7323    ac_cv_prog_ac_ct_RANLIB="ranlib"
7324    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7325    break 2
7326  fi
7327done
7328  done
7329IFS=$as_save_IFS
7330
7331fi
7332fi
7333ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7334if test -n "$ac_ct_RANLIB"; then
7335  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
7336$as_echo "$ac_ct_RANLIB" >&6; }
7337else
7338  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7339$as_echo "no" >&6; }
7340fi
7341
7342  if test "x$ac_ct_RANLIB" = x; then
7343    RANLIB=":"
7344  else
7345    case $cross_compiling:$ac_tool_warned in
7346yes:)
7347{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7348$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7349ac_tool_warned=yes ;;
7350esac
7351    RANLIB=$ac_ct_RANLIB
7352  fi
7353else
7354  RANLIB="$ac_cv_prog_RANLIB"
7355fi
7356
7357test -z "$RANLIB" && RANLIB=:
7358
7359
7360
7361
7362
7363
7364# Determine commands to create old-style static archives.
7365old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
7366old_postinstall_cmds='chmod 644 $oldlib'
7367old_postuninstall_cmds=
7368
7369if test -n "$RANLIB"; then
7370  case $host_os in
7371  openbsd*)
7372    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
7373    ;;
7374  *)
7375    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
7376    ;;
7377  esac
7378  old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
7379fi
7380
7381case $host_os in
7382  darwin*)
7383    lock_old_archive_extraction=yes ;;
7384  *)
7385    lock_old_archive_extraction=no ;;
7386esac
7387
7388
7389
7390
7391
7392
7393
7394
7395
7396
7397
7398
7399
7400
7401
7402
7403
7404
7405
7406
7407
7408
7409
7410
7411
7412
7413
7414
7415
7416
7417
7418
7419
7420
7421
7422
7423
7424
7425
7426# If no C compiler was specified, use CC.
7427LTCC=${LTCC-"$CC"}
7428
7429# If no C compiler flags were specified, use CFLAGS.
7430LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7431
7432# Allow CC to be a program name with arguments.
7433compiler=$CC
7434
7435
7436# Check for command to grab the raw symbol name followed by C symbol from nm.
7437{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
7438$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
7439if ${lt_cv_sys_global_symbol_pipe+:} false; then :
7440  $as_echo_n "(cached) " >&6
7441else
7442
7443# These are sane defaults that work on at least a few old systems.
7444# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
7445
7446# Character class describing NM global symbol codes.
7447symcode='[BCDEGRST]'
7448
7449# Regexp to match symbols that can be accessed directly from C.
7450sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7451
7452# Define system-specific variables.
7453case $host_os in
7454aix*)
7455  symcode='[BCDT]'
7456  ;;
7457cygwin* | mingw* | pw32* | cegcc*)
7458  symcode='[ABCDGISTW]'
7459  ;;
7460hpux*)
7461  if test "$host_cpu" = ia64; then
7462    symcode='[ABCDEGRST]'
7463  fi
7464  ;;
7465irix* | nonstopux*)
7466  symcode='[BCDEGRST]'
7467  ;;
7468osf*)
7469  symcode='[BCDEGQRST]'
7470  ;;
7471solaris*)
7472  symcode='[BDRT]'
7473  ;;
7474sco3.2v5*)
7475  symcode='[DT]'
7476  ;;
7477sysv4.2uw2*)
7478  symcode='[DT]'
7479  ;;
7480sysv5* | sco5v6* | unixware* | OpenUNIX*)
7481  symcode='[ABDT]'
7482  ;;
7483sysv4)
7484  symcode='[DFNSTU]'
7485  ;;
7486esac
7487
7488# If we're using GNU nm, then use its standard symbol codes.
7489case `$NM -V 2>&1` in
7490*GNU* | *'with BFD'*)
7491  symcode='[ABCDGIRSTW]' ;;
7492esac
7493
7494# Transform an extracted symbol line into a proper C declaration.
7495# Some systems (esp. on ia64) link data and code symbols differently,
7496# so use this general approach.
7497lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7498
7499# Transform an extracted symbol line into symbol name and symbol address
7500lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'"
7501lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([^ ]*\)[ ]*$/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \(lib[^ ]*\)$/  {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"lib\2\", (void *) \&\2},/p'"
7502
7503# Handle CRLF in mingw tool chain
7504opt_cr=
7505case $build_os in
7506mingw*)
7507  opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7508  ;;
7509esac
7510
7511# Try without a prefix underscore, then with it.
7512for ac_symprfx in "" "_"; do
7513
7514  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7515  symxfrm="\\1 $ac_symprfx\\2 \\2"
7516
7517  # Write the raw and C identifiers.
7518  if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7519    # Fake it for dumpbin and say T for any non-static function
7520    # and D for any global variable.
7521    # Also find C++ and __fastcall symbols from MSVC++,
7522    # which start with @ or ?.
7523    lt_cv_sys_global_symbol_pipe="$AWK '"\
7524"     {last_section=section; section=\$ 3};"\
7525"     /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
7526"     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
7527"     \$ 0!~/External *\|/{next};"\
7528"     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
7529"     {if(hide[section]) next};"\
7530"     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
7531"     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
7532"     s[1]~/^[@?]/{print s[1], s[1]; next};"\
7533"     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
7534"     ' prfx=^$ac_symprfx"
7535  else
7536    lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[	 ]\($symcode$symcode*\)[	 ][	 ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7537  fi
7538  lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
7539
7540  # Check to see that the pipe works correctly.
7541  pipe_works=no
7542
7543  rm -f conftest*
7544  cat > conftest.$ac_ext <<_LT_EOF
7545#ifdef __cplusplus
7546extern "C" {
7547#endif
7548char nm_test_var;
7549void nm_test_func(void);
7550void nm_test_func(void){}
7551#ifdef __cplusplus
7552}
7553#endif
7554int main(){nm_test_var='a';nm_test_func();return(0);}
7555_LT_EOF
7556
7557  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7558  (eval $ac_compile) 2>&5
7559  ac_status=$?
7560  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7561  test $ac_status = 0; }; then
7562    # Now try to grab the symbols.
7563    nlist=conftest.nm
7564    if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
7565  (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
7566  ac_status=$?
7567  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7568  test $ac_status = 0; } && test -s "$nlist"; then
7569      # Try sorting and uniquifying the output.
7570      if sort "$nlist" | uniq > "$nlist"T; then
7571	mv -f "$nlist"T "$nlist"
7572      else
7573	rm -f "$nlist"T
7574      fi
7575
7576      # Make sure that we snagged all the symbols we need.
7577      if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
7578	if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
7579	  cat <<_LT_EOF > conftest.$ac_ext
7580/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests.  */
7581#if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
7582/* DATA imports from DLLs on WIN32 con't be const, because runtime
7583   relocations are performed -- see ld's documentation on pseudo-relocs.  */
7584# define LT_DLSYM_CONST
7585#elif defined(__osf__)
7586/* This system does not cope well with relocations in const data.  */
7587# define LT_DLSYM_CONST
7588#else
7589# define LT_DLSYM_CONST const
7590#endif
7591
7592#ifdef __cplusplus
7593extern "C" {
7594#endif
7595
7596_LT_EOF
7597	  # Now generate the symbol file.
7598	  eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
7599
7600	  cat <<_LT_EOF >> conftest.$ac_ext
7601
7602/* The mapping between symbol names and symbols.  */
7603LT_DLSYM_CONST struct {
7604  const char *name;
7605  void       *address;
7606}
7607lt__PROGRAM__LTX_preloaded_symbols[] =
7608{
7609  { "@PROGRAM@", (void *) 0 },
7610_LT_EOF
7611	  $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
7612	  cat <<\_LT_EOF >> conftest.$ac_ext
7613  {0, (void *) 0}
7614};
7615
7616/* This works around a problem in FreeBSD linker */
7617#ifdef FREEBSD_WORKAROUND
7618static const void *lt_preloaded_setup() {
7619  return lt__PROGRAM__LTX_preloaded_symbols;
7620}
7621#endif
7622
7623#ifdef __cplusplus
7624}
7625#endif
7626_LT_EOF
7627	  # Now try linking the two files.
7628	  mv conftest.$ac_objext conftstm.$ac_objext
7629	  lt_globsym_save_LIBS=$LIBS
7630	  lt_globsym_save_CFLAGS=$CFLAGS
7631	  LIBS="conftstm.$ac_objext"
7632	  CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7633	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
7634  (eval $ac_link) 2>&5
7635  ac_status=$?
7636  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7637  test $ac_status = 0; } && test -s conftest${ac_exeext}; then
7638	    pipe_works=yes
7639	  fi
7640	  LIBS=$lt_globsym_save_LIBS
7641	  CFLAGS=$lt_globsym_save_CFLAGS
7642	else
7643	  echo "cannot find nm_test_func in $nlist" >&5
7644	fi
7645      else
7646	echo "cannot find nm_test_var in $nlist" >&5
7647      fi
7648    else
7649      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7650    fi
7651  else
7652    echo "$progname: failed program was:" >&5
7653    cat conftest.$ac_ext >&5
7654  fi
7655  rm -rf conftest* conftst*
7656
7657  # Do not use the global_symbol_pipe unless it works.
7658  if test "$pipe_works" = yes; then
7659    break
7660  else
7661    lt_cv_sys_global_symbol_pipe=
7662  fi
7663done
7664
7665fi
7666
7667if test -z "$lt_cv_sys_global_symbol_pipe"; then
7668  lt_cv_sys_global_symbol_to_cdecl=
7669fi
7670if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7671  { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
7672$as_echo "failed" >&6; }
7673else
7674  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
7675$as_echo "ok" >&6; }
7676fi
7677
7678# Response file support.
7679if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7680  nm_file_list_spec='@'
7681elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
7682  nm_file_list_spec='@'
7683fi
7684
7685
7686
7687
7688
7689
7690
7691
7692
7693
7694
7695
7696
7697
7698
7699
7700
7701
7702
7703
7704
7705
7706
7707
7708
7709
7710
7711{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
7712$as_echo_n "checking for sysroot... " >&6; }
7713
7714# Check whether --with-sysroot was given.
7715if test "${with_sysroot+set}" = set; then :
7716  withval=$with_sysroot;
7717else
7718  with_sysroot=no
7719fi
7720
7721
7722lt_sysroot=
7723case ${with_sysroot} in #(
7724 yes)
7725   if test "$GCC" = yes; then
7726     lt_sysroot=`$CC --print-sysroot 2>/dev/null`
7727   fi
7728   ;; #(
7729 /*)
7730   lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
7731   ;; #(
7732 no|'')
7733   ;; #(
7734 *)
7735   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
7736$as_echo "${with_sysroot}" >&6; }
7737   as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
7738   ;;
7739esac
7740
7741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
7742$as_echo "${lt_sysroot:-no}" >&6; }
7743
7744
7745
7746
7747
7748# Check whether --enable-libtool-lock was given.
7749if test "${enable_libtool_lock+set}" = set; then :
7750  enableval=$enable_libtool_lock;
7751fi
7752
7753test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7754
7755# Some flags need to be propagated to the compiler or linker for good
7756# libtool support.
7757case $host in
7758ia64-*-hpux*)
7759  # Find out which ABI we are using.
7760  echo 'int i;' > conftest.$ac_ext
7761  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7762  (eval $ac_compile) 2>&5
7763  ac_status=$?
7764  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7765  test $ac_status = 0; }; then
7766    case `/usr/bin/file conftest.$ac_objext` in
7767      *ELF-32*)
7768	HPUX_IA64_MODE="32"
7769	;;
7770      *ELF-64*)
7771	HPUX_IA64_MODE="64"
7772	;;
7773    esac
7774  fi
7775  rm -rf conftest*
7776  ;;
7777*-*-irix6*)
7778  # Find out which ABI we are using.
7779  echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7780  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7781  (eval $ac_compile) 2>&5
7782  ac_status=$?
7783  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7784  test $ac_status = 0; }; then
7785    if test "$lt_cv_prog_gnu_ld" = yes; then
7786      case `/usr/bin/file conftest.$ac_objext` in
7787	*32-bit*)
7788	  LD="${LD-ld} -melf32bsmip"
7789	  ;;
7790	*N32*)
7791	  LD="${LD-ld} -melf32bmipn32"
7792	  ;;
7793	*64-bit*)
7794	  LD="${LD-ld} -melf64bmip"
7795	;;
7796      esac
7797    else
7798      case `/usr/bin/file conftest.$ac_objext` in
7799	*32-bit*)
7800	  LD="${LD-ld} -32"
7801	  ;;
7802	*N32*)
7803	  LD="${LD-ld} -n32"
7804	  ;;
7805	*64-bit*)
7806	  LD="${LD-ld} -64"
7807	  ;;
7808      esac
7809    fi
7810  fi
7811  rm -rf conftest*
7812  ;;
7813
7814x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
7815s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
7816  # Find out which ABI we are using.
7817  echo 'int i;' > conftest.$ac_ext
7818  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7819  (eval $ac_compile) 2>&5
7820  ac_status=$?
7821  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7822  test $ac_status = 0; }; then
7823    case `/usr/bin/file conftest.o` in
7824      *32-bit*)
7825	case $host in
7826	  x86_64-*kfreebsd*-gnu)
7827	    LD="${LD-ld} -m elf_i386_fbsd"
7828	    ;;
7829	  x86_64-*linux*)
7830	    case `/usr/bin/file conftest.o` in
7831	      *x86-64*)
7832		LD="${LD-ld} -m elf32_x86_64"
7833		;;
7834	      *)
7835		LD="${LD-ld} -m elf_i386"
7836		;;
7837	    esac
7838	    ;;
7839	  powerpc64le-*)
7840	    LD="${LD-ld} -m elf32lppclinux"
7841	    ;;
7842	  powerpc64-*)
7843	    LD="${LD-ld} -m elf32ppclinux"
7844	    ;;
7845	  s390x-*linux*)
7846	    LD="${LD-ld} -m elf_s390"
7847	    ;;
7848	  sparc64-*linux*)
7849	    LD="${LD-ld} -m elf32_sparc"
7850	    ;;
7851	esac
7852	;;
7853      *64-bit*)
7854	case $host in
7855	  x86_64-*kfreebsd*-gnu)
7856	    LD="${LD-ld} -m elf_x86_64_fbsd"
7857	    ;;
7858	  x86_64-*linux*)
7859	    LD="${LD-ld} -m elf_x86_64"
7860	    ;;
7861	  powerpcle-*)
7862	    LD="${LD-ld} -m elf64lppc"
7863	    ;;
7864	  powerpc-*)
7865	    LD="${LD-ld} -m elf64ppc"
7866	    ;;
7867	  s390*-*linux*|s390*-*tpf*)
7868	    LD="${LD-ld} -m elf64_s390"
7869	    ;;
7870	  sparc*-*linux*)
7871	    LD="${LD-ld} -m elf64_sparc"
7872	    ;;
7873	esac
7874	;;
7875    esac
7876  fi
7877  rm -rf conftest*
7878  ;;
7879
7880*-*-sco3.2v5*)
7881  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7882  SAVE_CFLAGS="$CFLAGS"
7883  CFLAGS="$CFLAGS -belf"
7884  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
7885$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
7886if ${lt_cv_cc_needs_belf+:} false; then :
7887  $as_echo_n "(cached) " >&6
7888else
7889  ac_ext=c
7890ac_cpp='$CPP $CPPFLAGS'
7891ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7892ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7893ac_compiler_gnu=$ac_cv_c_compiler_gnu
7894
7895     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7896/* end confdefs.h.  */
7897
7898int
7899main ()
7900{
7901
7902  ;
7903  return 0;
7904}
7905_ACEOF
7906if ac_fn_c_try_link "$LINENO"; then :
7907  lt_cv_cc_needs_belf=yes
7908else
7909  lt_cv_cc_needs_belf=no
7910fi
7911rm -f core conftest.err conftest.$ac_objext \
7912    conftest$ac_exeext conftest.$ac_ext
7913     ac_ext=c
7914ac_cpp='$CPP $CPPFLAGS'
7915ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7916ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7917ac_compiler_gnu=$ac_cv_c_compiler_gnu
7918
7919fi
7920{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
7921$as_echo "$lt_cv_cc_needs_belf" >&6; }
7922  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
7923    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7924    CFLAGS="$SAVE_CFLAGS"
7925  fi
7926  ;;
7927*-*solaris*)
7928  # Find out which ABI we are using.
7929  echo 'int i;' > conftest.$ac_ext
7930  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7931  (eval $ac_compile) 2>&5
7932  ac_status=$?
7933  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7934  test $ac_status = 0; }; then
7935    case `/usr/bin/file conftest.o` in
7936    *64-bit*)
7937      case $lt_cv_prog_gnu_ld in
7938      yes*)
7939        case $host in
7940        i?86-*-solaris*)
7941          LD="${LD-ld} -m elf_x86_64"
7942          ;;
7943        sparc*-*-solaris*)
7944          LD="${LD-ld} -m elf64_sparc"
7945          ;;
7946        esac
7947        # GNU ld 2.21 introduced _sol2 emulations.  Use them if available.
7948        if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
7949          LD="${LD-ld}_sol2"
7950        fi
7951        ;;
7952      *)
7953	if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7954	  LD="${LD-ld} -64"
7955	fi
7956	;;
7957      esac
7958      ;;
7959    esac
7960  fi
7961  rm -rf conftest*
7962  ;;
7963esac
7964
7965need_locks="$enable_libtool_lock"
7966
7967if test -n "$ac_tool_prefix"; then
7968  # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
7969set dummy ${ac_tool_prefix}mt; ac_word=$2
7970{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7971$as_echo_n "checking for $ac_word... " >&6; }
7972if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
7973  $as_echo_n "(cached) " >&6
7974else
7975  if test -n "$MANIFEST_TOOL"; then
7976  ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
7977else
7978as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7979for as_dir in $PATH
7980do
7981  IFS=$as_save_IFS
7982  test -z "$as_dir" && as_dir=.
7983    for ac_exec_ext in '' $ac_executable_extensions; do
7984  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7985    ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
7986    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7987    break 2
7988  fi
7989done
7990  done
7991IFS=$as_save_IFS
7992
7993fi
7994fi
7995MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
7996if test -n "$MANIFEST_TOOL"; then
7997  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
7998$as_echo "$MANIFEST_TOOL" >&6; }
7999else
8000  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8001$as_echo "no" >&6; }
8002fi
8003
8004
8005fi
8006if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
8007  ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
8008  # Extract the first word of "mt", so it can be a program name with args.
8009set dummy mt; ac_word=$2
8010{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8011$as_echo_n "checking for $ac_word... " >&6; }
8012if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
8013  $as_echo_n "(cached) " >&6
8014else
8015  if test -n "$ac_ct_MANIFEST_TOOL"; then
8016  ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
8017else
8018as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8019for as_dir in $PATH
8020do
8021  IFS=$as_save_IFS
8022  test -z "$as_dir" && as_dir=.
8023    for ac_exec_ext in '' $ac_executable_extensions; do
8024  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8025    ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
8026    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8027    break 2
8028  fi
8029done
8030  done
8031IFS=$as_save_IFS
8032
8033fi
8034fi
8035ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
8036if test -n "$ac_ct_MANIFEST_TOOL"; then
8037  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
8038$as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
8039else
8040  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8041$as_echo "no" >&6; }
8042fi
8043
8044  if test "x$ac_ct_MANIFEST_TOOL" = x; then
8045    MANIFEST_TOOL=":"
8046  else
8047    case $cross_compiling:$ac_tool_warned in
8048yes:)
8049{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8050$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8051ac_tool_warned=yes ;;
8052esac
8053    MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
8054  fi
8055else
8056  MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
8057fi
8058
8059test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
8060{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
8061$as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
8062if ${lt_cv_path_mainfest_tool+:} false; then :
8063  $as_echo_n "(cached) " >&6
8064else
8065  lt_cv_path_mainfest_tool=no
8066  echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
8067  $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
8068  cat conftest.err >&5
8069  if $GREP 'Manifest Tool' conftest.out > /dev/null; then
8070    lt_cv_path_mainfest_tool=yes
8071  fi
8072  rm -f conftest*
8073fi
8074{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
8075$as_echo "$lt_cv_path_mainfest_tool" >&6; }
8076if test "x$lt_cv_path_mainfest_tool" != xyes; then
8077  MANIFEST_TOOL=:
8078fi
8079
8080
8081
8082
8083
8084
8085  case $host_os in
8086    rhapsody* | darwin*)
8087    if test -n "$ac_tool_prefix"; then
8088  # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
8089set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
8090{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8091$as_echo_n "checking for $ac_word... " >&6; }
8092if ${ac_cv_prog_DSYMUTIL+:} false; then :
8093  $as_echo_n "(cached) " >&6
8094else
8095  if test -n "$DSYMUTIL"; then
8096  ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
8097else
8098as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8099for as_dir in $PATH
8100do
8101  IFS=$as_save_IFS
8102  test -z "$as_dir" && as_dir=.
8103    for ac_exec_ext in '' $ac_executable_extensions; do
8104  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8105    ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
8106    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8107    break 2
8108  fi
8109done
8110  done
8111IFS=$as_save_IFS
8112
8113fi
8114fi
8115DSYMUTIL=$ac_cv_prog_DSYMUTIL
8116if test -n "$DSYMUTIL"; then
8117  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
8118$as_echo "$DSYMUTIL" >&6; }
8119else
8120  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8121$as_echo "no" >&6; }
8122fi
8123
8124
8125fi
8126if test -z "$ac_cv_prog_DSYMUTIL"; then
8127  ac_ct_DSYMUTIL=$DSYMUTIL
8128  # Extract the first word of "dsymutil", so it can be a program name with args.
8129set dummy dsymutil; ac_word=$2
8130{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8131$as_echo_n "checking for $ac_word... " >&6; }
8132if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
8133  $as_echo_n "(cached) " >&6
8134else
8135  if test -n "$ac_ct_DSYMUTIL"; then
8136  ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
8137else
8138as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8139for as_dir in $PATH
8140do
8141  IFS=$as_save_IFS
8142  test -z "$as_dir" && as_dir=.
8143    for ac_exec_ext in '' $ac_executable_extensions; do
8144  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8145    ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
8146    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8147    break 2
8148  fi
8149done
8150  done
8151IFS=$as_save_IFS
8152
8153fi
8154fi
8155ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
8156if test -n "$ac_ct_DSYMUTIL"; then
8157  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
8158$as_echo "$ac_ct_DSYMUTIL" >&6; }
8159else
8160  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8161$as_echo "no" >&6; }
8162fi
8163
8164  if test "x$ac_ct_DSYMUTIL" = x; then
8165    DSYMUTIL=":"
8166  else
8167    case $cross_compiling:$ac_tool_warned in
8168yes:)
8169{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8170$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8171ac_tool_warned=yes ;;
8172esac
8173    DSYMUTIL=$ac_ct_DSYMUTIL
8174  fi
8175else
8176  DSYMUTIL="$ac_cv_prog_DSYMUTIL"
8177fi
8178
8179    if test -n "$ac_tool_prefix"; then
8180  # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
8181set dummy ${ac_tool_prefix}nmedit; ac_word=$2
8182{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8183$as_echo_n "checking for $ac_word... " >&6; }
8184if ${ac_cv_prog_NMEDIT+:} false; then :
8185  $as_echo_n "(cached) " >&6
8186else
8187  if test -n "$NMEDIT"; then
8188  ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
8189else
8190as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8191for as_dir in $PATH
8192do
8193  IFS=$as_save_IFS
8194  test -z "$as_dir" && as_dir=.
8195    for ac_exec_ext in '' $ac_executable_extensions; do
8196  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8197    ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
8198    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8199    break 2
8200  fi
8201done
8202  done
8203IFS=$as_save_IFS
8204
8205fi
8206fi
8207NMEDIT=$ac_cv_prog_NMEDIT
8208if test -n "$NMEDIT"; then
8209  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
8210$as_echo "$NMEDIT" >&6; }
8211else
8212  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8213$as_echo "no" >&6; }
8214fi
8215
8216
8217fi
8218if test -z "$ac_cv_prog_NMEDIT"; then
8219  ac_ct_NMEDIT=$NMEDIT
8220  # Extract the first word of "nmedit", so it can be a program name with args.
8221set dummy nmedit; ac_word=$2
8222{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8223$as_echo_n "checking for $ac_word... " >&6; }
8224if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
8225  $as_echo_n "(cached) " >&6
8226else
8227  if test -n "$ac_ct_NMEDIT"; then
8228  ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
8229else
8230as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8231for as_dir in $PATH
8232do
8233  IFS=$as_save_IFS
8234  test -z "$as_dir" && as_dir=.
8235    for ac_exec_ext in '' $ac_executable_extensions; do
8236  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8237    ac_cv_prog_ac_ct_NMEDIT="nmedit"
8238    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8239    break 2
8240  fi
8241done
8242  done
8243IFS=$as_save_IFS
8244
8245fi
8246fi
8247ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
8248if test -n "$ac_ct_NMEDIT"; then
8249  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
8250$as_echo "$ac_ct_NMEDIT" >&6; }
8251else
8252  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8253$as_echo "no" >&6; }
8254fi
8255
8256  if test "x$ac_ct_NMEDIT" = x; then
8257    NMEDIT=":"
8258  else
8259    case $cross_compiling:$ac_tool_warned in
8260yes:)
8261{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8262$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8263ac_tool_warned=yes ;;
8264esac
8265    NMEDIT=$ac_ct_NMEDIT
8266  fi
8267else
8268  NMEDIT="$ac_cv_prog_NMEDIT"
8269fi
8270
8271    if test -n "$ac_tool_prefix"; then
8272  # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
8273set dummy ${ac_tool_prefix}lipo; ac_word=$2
8274{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8275$as_echo_n "checking for $ac_word... " >&6; }
8276if ${ac_cv_prog_LIPO+:} false; then :
8277  $as_echo_n "(cached) " >&6
8278else
8279  if test -n "$LIPO"; then
8280  ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8281else
8282as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8283for as_dir in $PATH
8284do
8285  IFS=$as_save_IFS
8286  test -z "$as_dir" && as_dir=.
8287    for ac_exec_ext in '' $ac_executable_extensions; do
8288  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8289    ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
8290    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8291    break 2
8292  fi
8293done
8294  done
8295IFS=$as_save_IFS
8296
8297fi
8298fi
8299LIPO=$ac_cv_prog_LIPO
8300if test -n "$LIPO"; then
8301  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8302$as_echo "$LIPO" >&6; }
8303else
8304  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8305$as_echo "no" >&6; }
8306fi
8307
8308
8309fi
8310if test -z "$ac_cv_prog_LIPO"; then
8311  ac_ct_LIPO=$LIPO
8312  # Extract the first word of "lipo", so it can be a program name with args.
8313set dummy lipo; ac_word=$2
8314{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8315$as_echo_n "checking for $ac_word... " >&6; }
8316if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
8317  $as_echo_n "(cached) " >&6
8318else
8319  if test -n "$ac_ct_LIPO"; then
8320  ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
8321else
8322as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8323for as_dir in $PATH
8324do
8325  IFS=$as_save_IFS
8326  test -z "$as_dir" && as_dir=.
8327    for ac_exec_ext in '' $ac_executable_extensions; do
8328  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8329    ac_cv_prog_ac_ct_LIPO="lipo"
8330    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8331    break 2
8332  fi
8333done
8334  done
8335IFS=$as_save_IFS
8336
8337fi
8338fi
8339ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
8340if test -n "$ac_ct_LIPO"; then
8341  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
8342$as_echo "$ac_ct_LIPO" >&6; }
8343else
8344  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8345$as_echo "no" >&6; }
8346fi
8347
8348  if test "x$ac_ct_LIPO" = x; then
8349    LIPO=":"
8350  else
8351    case $cross_compiling:$ac_tool_warned in
8352yes:)
8353{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8354$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8355ac_tool_warned=yes ;;
8356esac
8357    LIPO=$ac_ct_LIPO
8358  fi
8359else
8360  LIPO="$ac_cv_prog_LIPO"
8361fi
8362
8363    if test -n "$ac_tool_prefix"; then
8364  # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
8365set dummy ${ac_tool_prefix}otool; ac_word=$2
8366{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8367$as_echo_n "checking for $ac_word... " >&6; }
8368if ${ac_cv_prog_OTOOL+:} false; then :
8369  $as_echo_n "(cached) " >&6
8370else
8371  if test -n "$OTOOL"; then
8372  ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
8373else
8374as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8375for as_dir in $PATH
8376do
8377  IFS=$as_save_IFS
8378  test -z "$as_dir" && as_dir=.
8379    for ac_exec_ext in '' $ac_executable_extensions; do
8380  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8381    ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
8382    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8383    break 2
8384  fi
8385done
8386  done
8387IFS=$as_save_IFS
8388
8389fi
8390fi
8391OTOOL=$ac_cv_prog_OTOOL
8392if test -n "$OTOOL"; then
8393  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
8394$as_echo "$OTOOL" >&6; }
8395else
8396  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8397$as_echo "no" >&6; }
8398fi
8399
8400
8401fi
8402if test -z "$ac_cv_prog_OTOOL"; then
8403  ac_ct_OTOOL=$OTOOL
8404  # Extract the first word of "otool", so it can be a program name with args.
8405set dummy otool; ac_word=$2
8406{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8407$as_echo_n "checking for $ac_word... " >&6; }
8408if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
8409  $as_echo_n "(cached) " >&6
8410else
8411  if test -n "$ac_ct_OTOOL"; then
8412  ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
8413else
8414as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8415for as_dir in $PATH
8416do
8417  IFS=$as_save_IFS
8418  test -z "$as_dir" && as_dir=.
8419    for ac_exec_ext in '' $ac_executable_extensions; do
8420  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8421    ac_cv_prog_ac_ct_OTOOL="otool"
8422    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8423    break 2
8424  fi
8425done
8426  done
8427IFS=$as_save_IFS
8428
8429fi
8430fi
8431ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
8432if test -n "$ac_ct_OTOOL"; then
8433  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
8434$as_echo "$ac_ct_OTOOL" >&6; }
8435else
8436  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8437$as_echo "no" >&6; }
8438fi
8439
8440  if test "x$ac_ct_OTOOL" = x; then
8441    OTOOL=":"
8442  else
8443    case $cross_compiling:$ac_tool_warned in
8444yes:)
8445{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8446$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8447ac_tool_warned=yes ;;
8448esac
8449    OTOOL=$ac_ct_OTOOL
8450  fi
8451else
8452  OTOOL="$ac_cv_prog_OTOOL"
8453fi
8454
8455    if test -n "$ac_tool_prefix"; then
8456  # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
8457set dummy ${ac_tool_prefix}otool64; ac_word=$2
8458{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8459$as_echo_n "checking for $ac_word... " >&6; }
8460if ${ac_cv_prog_OTOOL64+:} false; then :
8461  $as_echo_n "(cached) " >&6
8462else
8463  if test -n "$OTOOL64"; then
8464  ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
8465else
8466as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8467for as_dir in $PATH
8468do
8469  IFS=$as_save_IFS
8470  test -z "$as_dir" && as_dir=.
8471    for ac_exec_ext in '' $ac_executable_extensions; do
8472  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8473    ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
8474    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8475    break 2
8476  fi
8477done
8478  done
8479IFS=$as_save_IFS
8480
8481fi
8482fi
8483OTOOL64=$ac_cv_prog_OTOOL64
8484if test -n "$OTOOL64"; then
8485  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
8486$as_echo "$OTOOL64" >&6; }
8487else
8488  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8489$as_echo "no" >&6; }
8490fi
8491
8492
8493fi
8494if test -z "$ac_cv_prog_OTOOL64"; then
8495  ac_ct_OTOOL64=$OTOOL64
8496  # Extract the first word of "otool64", so it can be a program name with args.
8497set dummy otool64; ac_word=$2
8498{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8499$as_echo_n "checking for $ac_word... " >&6; }
8500if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
8501  $as_echo_n "(cached) " >&6
8502else
8503  if test -n "$ac_ct_OTOOL64"; then
8504  ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
8505else
8506as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8507for as_dir in $PATH
8508do
8509  IFS=$as_save_IFS
8510  test -z "$as_dir" && as_dir=.
8511    for ac_exec_ext in '' $ac_executable_extensions; do
8512  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8513    ac_cv_prog_ac_ct_OTOOL64="otool64"
8514    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8515    break 2
8516  fi
8517done
8518  done
8519IFS=$as_save_IFS
8520
8521fi
8522fi
8523ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
8524if test -n "$ac_ct_OTOOL64"; then
8525  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
8526$as_echo "$ac_ct_OTOOL64" >&6; }
8527else
8528  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8529$as_echo "no" >&6; }
8530fi
8531
8532  if test "x$ac_ct_OTOOL64" = x; then
8533    OTOOL64=":"
8534  else
8535    case $cross_compiling:$ac_tool_warned in
8536yes:)
8537{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8538$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8539ac_tool_warned=yes ;;
8540esac
8541    OTOOL64=$ac_ct_OTOOL64
8542  fi
8543else
8544  OTOOL64="$ac_cv_prog_OTOOL64"
8545fi
8546
8547
8548
8549
8550
8551
8552
8553
8554
8555
8556
8557
8558
8559
8560
8561
8562
8563
8564
8565
8566
8567
8568
8569
8570
8571
8572
8573    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
8574$as_echo_n "checking for -single_module linker flag... " >&6; }
8575if ${lt_cv_apple_cc_single_mod+:} false; then :
8576  $as_echo_n "(cached) " >&6
8577else
8578  lt_cv_apple_cc_single_mod=no
8579      if test -z "${LT_MULTI_MODULE}"; then
8580	# By default we will add the -single_module flag. You can override
8581	# by either setting the environment variable LT_MULTI_MODULE
8582	# non-empty at configure time, or by adding -multi_module to the
8583	# link flags.
8584	rm -rf libconftest.dylib*
8585	echo "int foo(void){return 1;}" > conftest.c
8586	echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8587-dynamiclib -Wl,-single_module conftest.c" >&5
8588	$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8589	  -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
8590        _lt_result=$?
8591	# If there is a non-empty error log, and "single_module"
8592	# appears in it, assume the flag caused a linker warning
8593        if test -s conftest.err && $GREP single_module conftest.err; then
8594	  cat conftest.err >&5
8595	# Otherwise, if the output was created with a 0 exit code from
8596	# the compiler, it worked.
8597	elif test -f libconftest.dylib && test $_lt_result -eq 0; then
8598	  lt_cv_apple_cc_single_mod=yes
8599	else
8600	  cat conftest.err >&5
8601	fi
8602	rm -rf libconftest.dylib*
8603	rm -f conftest.*
8604      fi
8605fi
8606{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
8607$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
8608
8609    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
8610$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
8611if ${lt_cv_ld_exported_symbols_list+:} false; then :
8612  $as_echo_n "(cached) " >&6
8613else
8614  lt_cv_ld_exported_symbols_list=no
8615      save_LDFLAGS=$LDFLAGS
8616      echo "_main" > conftest.sym
8617      LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
8618      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8619/* end confdefs.h.  */
8620
8621int
8622main ()
8623{
8624
8625  ;
8626  return 0;
8627}
8628_ACEOF
8629if ac_fn_c_try_link "$LINENO"; then :
8630  lt_cv_ld_exported_symbols_list=yes
8631else
8632  lt_cv_ld_exported_symbols_list=no
8633fi
8634rm -f core conftest.err conftest.$ac_objext \
8635    conftest$ac_exeext conftest.$ac_ext
8636	LDFLAGS="$save_LDFLAGS"
8637
8638fi
8639{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
8640$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
8641
8642    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
8643$as_echo_n "checking for -force_load linker flag... " >&6; }
8644if ${lt_cv_ld_force_load+:} false; then :
8645  $as_echo_n "(cached) " >&6
8646else
8647  lt_cv_ld_force_load=no
8648      cat > conftest.c << _LT_EOF
8649int forced_loaded() { return 2;}
8650_LT_EOF
8651      echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
8652      $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
8653      echo "$AR cru libconftest.a conftest.o" >&5
8654      $AR cru libconftest.a conftest.o 2>&5
8655      echo "$RANLIB libconftest.a" >&5
8656      $RANLIB libconftest.a 2>&5
8657      cat > conftest.c << _LT_EOF
8658int main() { return 0;}
8659_LT_EOF
8660      echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
8661      $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
8662      _lt_result=$?
8663      if test -s conftest.err && $GREP force_load conftest.err; then
8664	cat conftest.err >&5
8665      elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
8666	lt_cv_ld_force_load=yes
8667      else
8668	cat conftest.err >&5
8669      fi
8670        rm -f conftest.err libconftest.a conftest conftest.c
8671        rm -rf conftest.dSYM
8672
8673fi
8674{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
8675$as_echo "$lt_cv_ld_force_load" >&6; }
8676    case $host_os in
8677    rhapsody* | darwin1.[012])
8678      _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
8679    darwin1.*)
8680      _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8681    darwin*) # darwin 5.x on
8682      # if running on 10.5 or later, the deployment target defaults
8683      # to the OS version, if on x86, and 10.4, the deployment
8684      # target defaults to 10.4. Don't you love it?
8685      case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
8686	10.0,*86*-darwin8*|10.0,*-darwin[91]*)
8687	  _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8688	10.[012]*)
8689	  _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8690	10.*)
8691	  _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8692      esac
8693    ;;
8694  esac
8695    if test "$lt_cv_apple_cc_single_mod" = "yes"; then
8696      _lt_dar_single_mod='$single_module'
8697    fi
8698    if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
8699      _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
8700    else
8701      _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
8702    fi
8703    if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
8704      _lt_dsymutil='~$DSYMUTIL $lib || :'
8705    else
8706      _lt_dsymutil=
8707    fi
8708    ;;
8709  esac
8710
8711ac_ext=c
8712ac_cpp='$CPP $CPPFLAGS'
8713ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8714ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8715ac_compiler_gnu=$ac_cv_c_compiler_gnu
8716{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
8717$as_echo_n "checking how to run the C preprocessor... " >&6; }
8718# On Suns, sometimes $CPP names a directory.
8719if test -n "$CPP" && test -d "$CPP"; then
8720  CPP=
8721fi
8722if test -z "$CPP"; then
8723  if ${ac_cv_prog_CPP+:} false; then :
8724  $as_echo_n "(cached) " >&6
8725else
8726      # Double quotes because CPP needs to be expanded
8727    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
8728    do
8729      ac_preproc_ok=false
8730for ac_c_preproc_warn_flag in '' yes
8731do
8732  # Use a header file that comes with gcc, so configuring glibc
8733  # with a fresh cross-compiler works.
8734  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8735  # <limits.h> exists even on freestanding compilers.
8736  # On the NeXT, cc -E runs the code through the compiler's parser,
8737  # not just through cpp. "Syntax error" is here to catch this case.
8738  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8739/* end confdefs.h.  */
8740#ifdef __STDC__
8741# include <limits.h>
8742#else
8743# include <assert.h>
8744#endif
8745		     Syntax error
8746_ACEOF
8747if ac_fn_c_try_cpp "$LINENO"; then :
8748
8749else
8750  # Broken: fails on valid input.
8751continue
8752fi
8753rm -f conftest.err conftest.i conftest.$ac_ext
8754
8755  # OK, works on sane cases.  Now check whether nonexistent headers
8756  # can be detected and how.
8757  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8758/* end confdefs.h.  */
8759#include <ac_nonexistent.h>
8760_ACEOF
8761if ac_fn_c_try_cpp "$LINENO"; then :
8762  # Broken: success on invalid input.
8763continue
8764else
8765  # Passes both tests.
8766ac_preproc_ok=:
8767break
8768fi
8769rm -f conftest.err conftest.i conftest.$ac_ext
8770
8771done
8772# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8773rm -f conftest.i conftest.err conftest.$ac_ext
8774if $ac_preproc_ok; then :
8775  break
8776fi
8777
8778    done
8779    ac_cv_prog_CPP=$CPP
8780
8781fi
8782  CPP=$ac_cv_prog_CPP
8783else
8784  ac_cv_prog_CPP=$CPP
8785fi
8786{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
8787$as_echo "$CPP" >&6; }
8788ac_preproc_ok=false
8789for ac_c_preproc_warn_flag in '' yes
8790do
8791  # Use a header file that comes with gcc, so configuring glibc
8792  # with a fresh cross-compiler works.
8793  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8794  # <limits.h> exists even on freestanding compilers.
8795  # On the NeXT, cc -E runs the code through the compiler's parser,
8796  # not just through cpp. "Syntax error" is here to catch this case.
8797  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8798/* end confdefs.h.  */
8799#ifdef __STDC__
8800# include <limits.h>
8801#else
8802# include <assert.h>
8803#endif
8804		     Syntax error
8805_ACEOF
8806if ac_fn_c_try_cpp "$LINENO"; then :
8807
8808else
8809  # Broken: fails on valid input.
8810continue
8811fi
8812rm -f conftest.err conftest.i conftest.$ac_ext
8813
8814  # OK, works on sane cases.  Now check whether nonexistent headers
8815  # can be detected and how.
8816  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8817/* end confdefs.h.  */
8818#include <ac_nonexistent.h>
8819_ACEOF
8820if ac_fn_c_try_cpp "$LINENO"; then :
8821  # Broken: success on invalid input.
8822continue
8823else
8824  # Passes both tests.
8825ac_preproc_ok=:
8826break
8827fi
8828rm -f conftest.err conftest.i conftest.$ac_ext
8829
8830done
8831# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8832rm -f conftest.i conftest.err conftest.$ac_ext
8833if $ac_preproc_ok; then :
8834
8835else
8836  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8837$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
8838as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
8839See \`config.log' for more details" "$LINENO" 5; }
8840fi
8841
8842ac_ext=c
8843ac_cpp='$CPP $CPPFLAGS'
8844ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8845ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8846ac_compiler_gnu=$ac_cv_c_compiler_gnu
8847
8848
8849{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
8850$as_echo_n "checking for ANSI C header files... " >&6; }
8851if ${ac_cv_header_stdc+:} false; then :
8852  $as_echo_n "(cached) " >&6
8853else
8854  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8855/* end confdefs.h.  */
8856#include <stdlib.h>
8857#include <stdarg.h>
8858#include <string.h>
8859#include <float.h>
8860
8861int
8862main ()
8863{
8864
8865  ;
8866  return 0;
8867}
8868_ACEOF
8869if ac_fn_c_try_compile "$LINENO"; then :
8870  ac_cv_header_stdc=yes
8871else
8872  ac_cv_header_stdc=no
8873fi
8874rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8875
8876if test $ac_cv_header_stdc = yes; then
8877  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
8878  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8879/* end confdefs.h.  */
8880#include <string.h>
8881
8882_ACEOF
8883if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8884  $EGREP "memchr" >/dev/null 2>&1; then :
8885
8886else
8887  ac_cv_header_stdc=no
8888fi
8889rm -f conftest*
8890
8891fi
8892
8893if test $ac_cv_header_stdc = yes; then
8894  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8895  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8896/* end confdefs.h.  */
8897#include <stdlib.h>
8898
8899_ACEOF
8900if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8901  $EGREP "free" >/dev/null 2>&1; then :
8902
8903else
8904  ac_cv_header_stdc=no
8905fi
8906rm -f conftest*
8907
8908fi
8909
8910if test $ac_cv_header_stdc = yes; then
8911  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8912  if test "$cross_compiling" = yes; then :
8913  :
8914else
8915  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8916/* end confdefs.h.  */
8917#include <ctype.h>
8918#include <stdlib.h>
8919#if ((' ' & 0x0FF) == 0x020)
8920# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8921# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8922#else
8923# define ISLOWER(c) \
8924		   (('a' <= (c) && (c) <= 'i') \
8925		     || ('j' <= (c) && (c) <= 'r') \
8926		     || ('s' <= (c) && (c) <= 'z'))
8927# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8928#endif
8929
8930#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8931int
8932main ()
8933{
8934  int i;
8935  for (i = 0; i < 256; i++)
8936    if (XOR (islower (i), ISLOWER (i))
8937	|| toupper (i) != TOUPPER (i))
8938      return 2;
8939  return 0;
8940}
8941_ACEOF
8942if ac_fn_c_try_run "$LINENO"; then :
8943
8944else
8945  ac_cv_header_stdc=no
8946fi
8947rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8948  conftest.$ac_objext conftest.beam conftest.$ac_ext
8949fi
8950
8951fi
8952fi
8953{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
8954$as_echo "$ac_cv_header_stdc" >&6; }
8955if test $ac_cv_header_stdc = yes; then
8956
8957$as_echo "#define STDC_HEADERS 1" >>confdefs.h
8958
8959fi
8960
8961# On IRIX 5.3, sys/types and inttypes.h are conflicting.
8962for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
8963		  inttypes.h stdint.h unistd.h
8964do :
8965  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8966ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
8967"
8968if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
8969  cat >>confdefs.h <<_ACEOF
8970#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8971_ACEOF
8972
8973fi
8974
8975done
8976
8977
8978for ac_header in dlfcn.h
8979do :
8980  ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
8981"
8982if test "x$ac_cv_header_dlfcn_h" = xyes; then :
8983  cat >>confdefs.h <<_ACEOF
8984#define HAVE_DLFCN_H 1
8985_ACEOF
8986
8987fi
8988
8989done
8990
8991
8992
8993
8994func_stripname_cnf ()
8995{
8996  case ${2} in
8997  .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
8998  *)  func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
8999  esac
9000} # func_stripname_cnf
9001
9002
9003
9004
9005
9006# Set options
9007
9008
9009
9010        enable_dlopen=no
9011
9012
9013  enable_win32_dll=no
9014
9015
9016
9017  # Check whether --enable-static was given.
9018if test "${enable_static+set}" = set; then :
9019  enableval=$enable_static; p=${PACKAGE-default}
9020    case $enableval in
9021    yes) enable_static=yes ;;
9022    no) enable_static=no ;;
9023    *)
9024     enable_static=no
9025      # Look at the argument we got.  We use all the common list separators.
9026      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9027      for pkg in $enableval; do
9028	IFS="$lt_save_ifs"
9029	if test "X$pkg" = "X$p"; then
9030	  enable_static=yes
9031	fi
9032      done
9033      IFS="$lt_save_ifs"
9034      ;;
9035    esac
9036else
9037  enable_static=yes
9038fi
9039
9040
9041
9042
9043
9044
9045
9046
9047
9048
9049# Check whether --with-pic was given.
9050if test "${with_pic+set}" = set; then :
9051  withval=$with_pic; lt_p=${PACKAGE-default}
9052    case $withval in
9053    yes|no) pic_mode=$withval ;;
9054    *)
9055      pic_mode=default
9056      # Look at the argument we got.  We use all the common list separators.
9057      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9058      for lt_pkg in $withval; do
9059	IFS="$lt_save_ifs"
9060	if test "X$lt_pkg" = "X$lt_p"; then
9061	  pic_mode=yes
9062	fi
9063      done
9064      IFS="$lt_save_ifs"
9065      ;;
9066    esac
9067else
9068  pic_mode=default
9069fi
9070
9071
9072test -z "$pic_mode" && pic_mode=default
9073
9074
9075
9076
9077
9078
9079
9080  # Check whether --enable-fast-install was given.
9081if test "${enable_fast_install+set}" = set; then :
9082  enableval=$enable_fast_install; p=${PACKAGE-default}
9083    case $enableval in
9084    yes) enable_fast_install=yes ;;
9085    no) enable_fast_install=no ;;
9086    *)
9087      enable_fast_install=no
9088      # Look at the argument we got.  We use all the common list separators.
9089      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9090      for pkg in $enableval; do
9091	IFS="$lt_save_ifs"
9092	if test "X$pkg" = "X$p"; then
9093	  enable_fast_install=yes
9094	fi
9095      done
9096      IFS="$lt_save_ifs"
9097      ;;
9098    esac
9099else
9100  enable_fast_install=yes
9101fi
9102
9103
9104
9105
9106
9107
9108
9109
9110
9111
9112
9113# This can be used to rebuild libtool when needed
9114LIBTOOL_DEPS="$ltmain"
9115
9116# Always use our own libtool.
9117LIBTOOL='$(SHELL) $(top_builddir)/libtool'
9118
9119
9120
9121
9122
9123
9124
9125
9126
9127
9128
9129
9130
9131
9132
9133
9134
9135
9136
9137
9138
9139
9140
9141
9142
9143
9144
9145
9146
9147
9148test -z "$LN_S" && LN_S="ln -s"
9149
9150
9151
9152
9153
9154
9155
9156
9157
9158
9159
9160
9161
9162
9163if test -n "${ZSH_VERSION+set}" ; then
9164   setopt NO_GLOB_SUBST
9165fi
9166
9167{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
9168$as_echo_n "checking for objdir... " >&6; }
9169if ${lt_cv_objdir+:} false; then :
9170  $as_echo_n "(cached) " >&6
9171else
9172  rm -f .libs 2>/dev/null
9173mkdir .libs 2>/dev/null
9174if test -d .libs; then
9175  lt_cv_objdir=.libs
9176else
9177  # MS-DOS does not allow filenames that begin with a dot.
9178  lt_cv_objdir=_libs
9179fi
9180rmdir .libs 2>/dev/null
9181fi
9182{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
9183$as_echo "$lt_cv_objdir" >&6; }
9184objdir=$lt_cv_objdir
9185
9186
9187
9188
9189
9190cat >>confdefs.h <<_ACEOF
9191#define LT_OBJDIR "$lt_cv_objdir/"
9192_ACEOF
9193
9194
9195
9196
9197case $host_os in
9198aix3*)
9199  # AIX sometimes has problems with the GCC collect2 program.  For some
9200  # reason, if we set the COLLECT_NAMES environment variable, the problems
9201  # vanish in a puff of smoke.
9202  if test "X${COLLECT_NAMES+set}" != Xset; then
9203    COLLECT_NAMES=
9204    export COLLECT_NAMES
9205  fi
9206  ;;
9207esac
9208
9209# Global variables:
9210ofile=libtool
9211can_build_shared=yes
9212
9213# All known linkers require a `.a' archive for static linking (except MSVC,
9214# which needs '.lib').
9215libext=a
9216
9217with_gnu_ld="$lt_cv_prog_gnu_ld"
9218
9219old_CC="$CC"
9220old_CFLAGS="$CFLAGS"
9221
9222# Set sane defaults for various variables
9223test -z "$CC" && CC=cc
9224test -z "$LTCC" && LTCC=$CC
9225test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
9226test -z "$LD" && LD=ld
9227test -z "$ac_objext" && ac_objext=o
9228
9229for cc_temp in $compiler""; do
9230  case $cc_temp in
9231    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
9232    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
9233    \-*) ;;
9234    *) break;;
9235  esac
9236done
9237cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
9238
9239
9240# Only perform the check for file, if the check method requires it
9241test -z "$MAGIC_CMD" && MAGIC_CMD=file
9242case $deplibs_check_method in
9243file_magic*)
9244  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
9245    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
9246$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
9247if ${lt_cv_path_MAGIC_CMD+:} false; then :
9248  $as_echo_n "(cached) " >&6
9249else
9250  case $MAGIC_CMD in
9251[\\/*] |  ?:[\\/]*)
9252  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
9253  ;;
9254*)
9255  lt_save_MAGIC_CMD="$MAGIC_CMD"
9256  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9257  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9258  for ac_dir in $ac_dummy; do
9259    IFS="$lt_save_ifs"
9260    test -z "$ac_dir" && ac_dir=.
9261    if test -f $ac_dir/${ac_tool_prefix}file; then
9262      lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
9263      if test -n "$file_magic_test_file"; then
9264	case $deplibs_check_method in
9265	"file_magic "*)
9266	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9267	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9268	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9269	    $EGREP "$file_magic_regex" > /dev/null; then
9270	    :
9271	  else
9272	    cat <<_LT_EOF 1>&2
9273
9274*** Warning: the command libtool uses to detect shared libraries,
9275*** $file_magic_cmd, produces output that libtool cannot recognize.
9276*** The result is that libtool may fail to recognize shared libraries
9277*** as such.  This will affect the creation of libtool libraries that
9278*** depend on shared libraries, but programs linked with such libtool
9279*** libraries will work regardless of this problem.  Nevertheless, you
9280*** may want to report the problem to your system manager and/or to
9281*** bug-libtool@gnu.org
9282
9283_LT_EOF
9284	  fi ;;
9285	esac
9286      fi
9287      break
9288    fi
9289  done
9290  IFS="$lt_save_ifs"
9291  MAGIC_CMD="$lt_save_MAGIC_CMD"
9292  ;;
9293esac
9294fi
9295
9296MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9297if test -n "$MAGIC_CMD"; then
9298  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9299$as_echo "$MAGIC_CMD" >&6; }
9300else
9301  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9302$as_echo "no" >&6; }
9303fi
9304
9305
9306
9307
9308
9309if test -z "$lt_cv_path_MAGIC_CMD"; then
9310  if test -n "$ac_tool_prefix"; then
9311    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
9312$as_echo_n "checking for file... " >&6; }
9313if ${lt_cv_path_MAGIC_CMD+:} false; then :
9314  $as_echo_n "(cached) " >&6
9315else
9316  case $MAGIC_CMD in
9317[\\/*] |  ?:[\\/]*)
9318  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
9319  ;;
9320*)
9321  lt_save_MAGIC_CMD="$MAGIC_CMD"
9322  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9323  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9324  for ac_dir in $ac_dummy; do
9325    IFS="$lt_save_ifs"
9326    test -z "$ac_dir" && ac_dir=.
9327    if test -f $ac_dir/file; then
9328      lt_cv_path_MAGIC_CMD="$ac_dir/file"
9329      if test -n "$file_magic_test_file"; then
9330	case $deplibs_check_method in
9331	"file_magic "*)
9332	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9333	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9334	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9335	    $EGREP "$file_magic_regex" > /dev/null; then
9336	    :
9337	  else
9338	    cat <<_LT_EOF 1>&2
9339
9340*** Warning: the command libtool uses to detect shared libraries,
9341*** $file_magic_cmd, produces output that libtool cannot recognize.
9342*** The result is that libtool may fail to recognize shared libraries
9343*** as such.  This will affect the creation of libtool libraries that
9344*** depend on shared libraries, but programs linked with such libtool
9345*** libraries will work regardless of this problem.  Nevertheless, you
9346*** may want to report the problem to your system manager and/or to
9347*** bug-libtool@gnu.org
9348
9349_LT_EOF
9350	  fi ;;
9351	esac
9352      fi
9353      break
9354    fi
9355  done
9356  IFS="$lt_save_ifs"
9357  MAGIC_CMD="$lt_save_MAGIC_CMD"
9358  ;;
9359esac
9360fi
9361
9362MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9363if test -n "$MAGIC_CMD"; then
9364  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9365$as_echo "$MAGIC_CMD" >&6; }
9366else
9367  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9368$as_echo "no" >&6; }
9369fi
9370
9371
9372  else
9373    MAGIC_CMD=:
9374  fi
9375fi
9376
9377  fi
9378  ;;
9379esac
9380
9381# Use C for the default configuration in the libtool script
9382
9383lt_save_CC="$CC"
9384ac_ext=c
9385ac_cpp='$CPP $CPPFLAGS'
9386ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9387ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9388ac_compiler_gnu=$ac_cv_c_compiler_gnu
9389
9390
9391# Source file extension for C test sources.
9392ac_ext=c
9393
9394# Object file extension for compiled C test sources.
9395objext=o
9396objext=$objext
9397
9398# Code to be used in simple compile tests
9399lt_simple_compile_test_code="int some_variable = 0;"
9400
9401# Code to be used in simple link tests
9402lt_simple_link_test_code='int main(){return(0);}'
9403
9404
9405
9406
9407
9408
9409
9410# If no C compiler was specified, use CC.
9411LTCC=${LTCC-"$CC"}
9412
9413# If no C compiler flags were specified, use CFLAGS.
9414LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
9415
9416# Allow CC to be a program name with arguments.
9417compiler=$CC
9418
9419# Save the default compiler, since it gets overwritten when the other
9420# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
9421compiler_DEFAULT=$CC
9422
9423# save warnings/boilerplate of simple test code
9424ac_outfile=conftest.$ac_objext
9425echo "$lt_simple_compile_test_code" >conftest.$ac_ext
9426eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9427_lt_compiler_boilerplate=`cat conftest.err`
9428$RM conftest*
9429
9430ac_outfile=conftest.$ac_objext
9431echo "$lt_simple_link_test_code" >conftest.$ac_ext
9432eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9433_lt_linker_boilerplate=`cat conftest.err`
9434$RM -r conftest*
9435
9436
9437## CAVEAT EMPTOR:
9438## There is no encapsulation within the following macros, do not change
9439## the running order or otherwise move them around unless you know exactly
9440## what you are doing...
9441if test -n "$compiler"; then
9442
9443lt_prog_compiler_no_builtin_flag=
9444
9445if test "$GCC" = yes; then
9446  case $cc_basename in
9447  nvcc*)
9448    lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
9449  *)
9450    lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
9451  esac
9452
9453  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
9454$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
9455if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
9456  $as_echo_n "(cached) " >&6
9457else
9458  lt_cv_prog_compiler_rtti_exceptions=no
9459   ac_outfile=conftest.$ac_objext
9460   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9461   lt_compiler_flag="-fno-rtti -fno-exceptions"
9462   # Insert the option either (1) after the last *FLAGS variable, or
9463   # (2) before a word containing "conftest.", or (3) at the end.
9464   # Note that $ac_compile itself does not contain backslashes and begins
9465   # with a dollar sign (not a hyphen), so the echo should work correctly.
9466   # The option is referenced via a variable to avoid confusing sed.
9467   lt_compile=`echo "$ac_compile" | $SED \
9468   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9469   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9470   -e 's:$: $lt_compiler_flag:'`
9471   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9472   (eval "$lt_compile" 2>conftest.err)
9473   ac_status=$?
9474   cat conftest.err >&5
9475   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9476   if (exit $ac_status) && test -s "$ac_outfile"; then
9477     # The compiler can only warn and ignore the option if not recognized
9478     # So say no if there are warnings other than the usual output.
9479     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9480     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9481     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9482       lt_cv_prog_compiler_rtti_exceptions=yes
9483     fi
9484   fi
9485   $RM conftest*
9486
9487fi
9488{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
9489$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
9490
9491if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
9492    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
9493else
9494    :
9495fi
9496
9497fi
9498
9499
9500
9501
9502
9503
9504  lt_prog_compiler_wl=
9505lt_prog_compiler_pic=
9506lt_prog_compiler_static=
9507
9508
9509  if test "$GCC" = yes; then
9510    lt_prog_compiler_wl='-Wl,'
9511    lt_prog_compiler_static='-static'
9512
9513    case $host_os in
9514      aix*)
9515      # All AIX code is PIC.
9516      if test "$host_cpu" = ia64; then
9517	# AIX 5 now supports IA64 processor
9518	lt_prog_compiler_static='-Bstatic'
9519      fi
9520      ;;
9521
9522    amigaos*)
9523      case $host_cpu in
9524      powerpc)
9525            # see comment about AmigaOS4 .so support
9526            lt_prog_compiler_pic='-fPIC'
9527        ;;
9528      m68k)
9529            # FIXME: we need at least 68020 code to build shared libraries, but
9530            # adding the `-m68020' flag to GCC prevents building anything better,
9531            # like `-m68040'.
9532            lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
9533        ;;
9534      esac
9535      ;;
9536
9537    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
9538      # PIC is the default for these OSes.
9539      ;;
9540
9541    mingw* | cygwin* | pw32* | os2* | cegcc*)
9542      # This hack is so that the source file can tell whether it is being
9543      # built for inclusion in a dll (and should export symbols for example).
9544      # Although the cygwin gcc ignores -fPIC, still need this for old-style
9545      # (--disable-auto-import) libraries
9546      lt_prog_compiler_pic='-DDLL_EXPORT'
9547      ;;
9548
9549    darwin* | rhapsody*)
9550      # PIC is the default on this platform
9551      # Common symbols not allowed in MH_DYLIB files
9552      lt_prog_compiler_pic='-fno-common'
9553      ;;
9554
9555    haiku*)
9556      # PIC is the default for Haiku.
9557      # The "-static" flag exists, but is broken.
9558      lt_prog_compiler_static=
9559      ;;
9560
9561    hpux*)
9562      # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
9563      # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
9564      # sets the default TLS model and affects inlining.
9565      case $host_cpu in
9566      hppa*64*)
9567	# +Z the default
9568	;;
9569      *)
9570	lt_prog_compiler_pic='-fPIC'
9571	;;
9572      esac
9573      ;;
9574
9575    interix[3-9]*)
9576      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
9577      # Instead, we relocate shared libraries at runtime.
9578      ;;
9579
9580    msdosdjgpp*)
9581      # Just because we use GCC doesn't mean we suddenly get shared libraries
9582      # on systems that don't support them.
9583      lt_prog_compiler_can_build_shared=no
9584      enable_shared=no
9585      ;;
9586
9587    *nto* | *qnx*)
9588      # QNX uses GNU C++, but need to define -shared option too, otherwise
9589      # it will coredump.
9590      lt_prog_compiler_pic='-fPIC -shared'
9591      ;;
9592
9593    sysv4*MP*)
9594      if test -d /usr/nec; then
9595	lt_prog_compiler_pic=-Kconform_pic
9596      fi
9597      ;;
9598
9599    *)
9600      lt_prog_compiler_pic='-fPIC'
9601      ;;
9602    esac
9603
9604    case $cc_basename in
9605    nvcc*) # Cuda Compiler Driver 2.2
9606      lt_prog_compiler_wl='-Xlinker '
9607      if test -n "$lt_prog_compiler_pic"; then
9608        lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
9609      fi
9610      ;;
9611    esac
9612  else
9613    # PORTME Check for flag to pass linker flags through the system compiler.
9614    case $host_os in
9615    aix*)
9616      lt_prog_compiler_wl='-Wl,'
9617      if test "$host_cpu" = ia64; then
9618	# AIX 5 now supports IA64 processor
9619	lt_prog_compiler_static='-Bstatic'
9620      else
9621	lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
9622      fi
9623      ;;
9624
9625    mingw* | cygwin* | pw32* | os2* | cegcc*)
9626      # This hack is so that the source file can tell whether it is being
9627      # built for inclusion in a dll (and should export symbols for example).
9628      lt_prog_compiler_pic='-DDLL_EXPORT'
9629      ;;
9630
9631    hpux9* | hpux10* | hpux11*)
9632      lt_prog_compiler_wl='-Wl,'
9633      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
9634      # not for PA HP-UX.
9635      case $host_cpu in
9636      hppa*64*|ia64*)
9637	# +Z the default
9638	;;
9639      *)
9640	lt_prog_compiler_pic='+Z'
9641	;;
9642      esac
9643      # Is there a better lt_prog_compiler_static that works with the bundled CC?
9644      lt_prog_compiler_static='${wl}-a ${wl}archive'
9645      ;;
9646
9647    irix5* | irix6* | nonstopux*)
9648      lt_prog_compiler_wl='-Wl,'
9649      # PIC (with -KPIC) is the default.
9650      lt_prog_compiler_static='-non_shared'
9651      ;;
9652
9653    linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
9654      case $cc_basename in
9655      # old Intel for x86_64 which still supported -KPIC.
9656      ecc*)
9657	lt_prog_compiler_wl='-Wl,'
9658	lt_prog_compiler_pic='-KPIC'
9659	lt_prog_compiler_static='-static'
9660        ;;
9661      # icc used to be incompatible with GCC.
9662      # ICC 10 doesn't accept -KPIC any more.
9663      icc* | ifort*)
9664	lt_prog_compiler_wl='-Wl,'
9665	lt_prog_compiler_pic='-fPIC'
9666	lt_prog_compiler_static='-static'
9667        ;;
9668      # Lahey Fortran 8.1.
9669      lf95*)
9670	lt_prog_compiler_wl='-Wl,'
9671	lt_prog_compiler_pic='--shared'
9672	lt_prog_compiler_static='--static'
9673	;;
9674      nagfor*)
9675	# NAG Fortran compiler
9676	lt_prog_compiler_wl='-Wl,-Wl,,'
9677	lt_prog_compiler_pic='-PIC'
9678	lt_prog_compiler_static='-Bstatic'
9679	;;
9680      pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
9681        # Portland Group compilers (*not* the Pentium gcc compiler,
9682	# which looks to be a dead project)
9683	lt_prog_compiler_wl='-Wl,'
9684	lt_prog_compiler_pic='-fpic'
9685	lt_prog_compiler_static='-Bstatic'
9686        ;;
9687      ccc*)
9688        lt_prog_compiler_wl='-Wl,'
9689        # All Alpha code is PIC.
9690        lt_prog_compiler_static='-non_shared'
9691        ;;
9692      xl* | bgxl* | bgf* | mpixl*)
9693	# IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
9694	lt_prog_compiler_wl='-Wl,'
9695	lt_prog_compiler_pic='-qpic'
9696	lt_prog_compiler_static='-qstaticlink'
9697	;;
9698      *)
9699	case `$CC -V 2>&1 | sed 5q` in
9700	*Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
9701	  # Sun Fortran 8.3 passes all unrecognized flags to the linker
9702	  lt_prog_compiler_pic='-KPIC'
9703	  lt_prog_compiler_static='-Bstatic'
9704	  lt_prog_compiler_wl=''
9705	  ;;
9706	*Sun\ F* | *Sun*Fortran*)
9707	  lt_prog_compiler_pic='-KPIC'
9708	  lt_prog_compiler_static='-Bstatic'
9709	  lt_prog_compiler_wl='-Qoption ld '
9710	  ;;
9711	*Sun\ C*)
9712	  # Sun C 5.9
9713	  lt_prog_compiler_pic='-KPIC'
9714	  lt_prog_compiler_static='-Bstatic'
9715	  lt_prog_compiler_wl='-Wl,'
9716	  ;;
9717        *Intel*\ [CF]*Compiler*)
9718	  lt_prog_compiler_wl='-Wl,'
9719	  lt_prog_compiler_pic='-fPIC'
9720	  lt_prog_compiler_static='-static'
9721	  ;;
9722	*Portland\ Group*)
9723	  lt_prog_compiler_wl='-Wl,'
9724	  lt_prog_compiler_pic='-fpic'
9725	  lt_prog_compiler_static='-Bstatic'
9726	  ;;
9727	esac
9728	;;
9729      esac
9730      ;;
9731
9732    newsos6)
9733      lt_prog_compiler_pic='-KPIC'
9734      lt_prog_compiler_static='-Bstatic'
9735      ;;
9736
9737    *nto* | *qnx*)
9738      # QNX uses GNU C++, but need to define -shared option too, otherwise
9739      # it will coredump.
9740      lt_prog_compiler_pic='-fPIC -shared'
9741      ;;
9742
9743    osf3* | osf4* | osf5*)
9744      lt_prog_compiler_wl='-Wl,'
9745      # All OSF/1 code is PIC.
9746      lt_prog_compiler_static='-non_shared'
9747      ;;
9748
9749    rdos*)
9750      lt_prog_compiler_static='-non_shared'
9751      ;;
9752
9753    solaris*)
9754      lt_prog_compiler_pic='-KPIC'
9755      lt_prog_compiler_static='-Bstatic'
9756      case $cc_basename in
9757      f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
9758	lt_prog_compiler_wl='-Qoption ld ';;
9759      *)
9760	lt_prog_compiler_wl='-Wl,';;
9761      esac
9762      ;;
9763
9764    sunos4*)
9765      lt_prog_compiler_wl='-Qoption ld '
9766      lt_prog_compiler_pic='-PIC'
9767      lt_prog_compiler_static='-Bstatic'
9768      ;;
9769
9770    sysv4 | sysv4.2uw2* | sysv4.3*)
9771      lt_prog_compiler_wl='-Wl,'
9772      lt_prog_compiler_pic='-KPIC'
9773      lt_prog_compiler_static='-Bstatic'
9774      ;;
9775
9776    sysv4*MP*)
9777      if test -d /usr/nec ;then
9778	lt_prog_compiler_pic='-Kconform_pic'
9779	lt_prog_compiler_static='-Bstatic'
9780      fi
9781      ;;
9782
9783    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
9784      lt_prog_compiler_wl='-Wl,'
9785      lt_prog_compiler_pic='-KPIC'
9786      lt_prog_compiler_static='-Bstatic'
9787      ;;
9788
9789    unicos*)
9790      lt_prog_compiler_wl='-Wl,'
9791      lt_prog_compiler_can_build_shared=no
9792      ;;
9793
9794    uts4*)
9795      lt_prog_compiler_pic='-pic'
9796      lt_prog_compiler_static='-Bstatic'
9797      ;;
9798
9799    *)
9800      lt_prog_compiler_can_build_shared=no
9801      ;;
9802    esac
9803  fi
9804
9805case $host_os in
9806  # For platforms which do not support PIC, -DPIC is meaningless:
9807  *djgpp*)
9808    lt_prog_compiler_pic=
9809    ;;
9810  *)
9811    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
9812    ;;
9813esac
9814
9815{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
9816$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
9817if ${lt_cv_prog_compiler_pic+:} false; then :
9818  $as_echo_n "(cached) " >&6
9819else
9820  lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
9821fi
9822{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
9823$as_echo "$lt_cv_prog_compiler_pic" >&6; }
9824lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
9825
9826#
9827# Check to make sure the PIC flag actually works.
9828#
9829if test -n "$lt_prog_compiler_pic"; then
9830  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
9831$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
9832if ${lt_cv_prog_compiler_pic_works+:} false; then :
9833  $as_echo_n "(cached) " >&6
9834else
9835  lt_cv_prog_compiler_pic_works=no
9836   ac_outfile=conftest.$ac_objext
9837   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9838   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
9839   # Insert the option either (1) after the last *FLAGS variable, or
9840   # (2) before a word containing "conftest.", or (3) at the end.
9841   # Note that $ac_compile itself does not contain backslashes and begins
9842   # with a dollar sign (not a hyphen), so the echo should work correctly.
9843   # The option is referenced via a variable to avoid confusing sed.
9844   lt_compile=`echo "$ac_compile" | $SED \
9845   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9846   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9847   -e 's:$: $lt_compiler_flag:'`
9848   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9849   (eval "$lt_compile" 2>conftest.err)
9850   ac_status=$?
9851   cat conftest.err >&5
9852   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9853   if (exit $ac_status) && test -s "$ac_outfile"; then
9854     # The compiler can only warn and ignore the option if not recognized
9855     # So say no if there are warnings other than the usual output.
9856     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9857     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9858     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9859       lt_cv_prog_compiler_pic_works=yes
9860     fi
9861   fi
9862   $RM conftest*
9863
9864fi
9865{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
9866$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
9867
9868if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
9869    case $lt_prog_compiler_pic in
9870     "" | " "*) ;;
9871     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9872     esac
9873else
9874    lt_prog_compiler_pic=
9875     lt_prog_compiler_can_build_shared=no
9876fi
9877
9878fi
9879
9880
9881
9882
9883
9884
9885
9886
9887
9888
9889
9890#
9891# Check to make sure the static flag actually works.
9892#
9893wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9894{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9895$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
9896if ${lt_cv_prog_compiler_static_works+:} false; then :
9897  $as_echo_n "(cached) " >&6
9898else
9899  lt_cv_prog_compiler_static_works=no
9900   save_LDFLAGS="$LDFLAGS"
9901   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9902   echo "$lt_simple_link_test_code" > conftest.$ac_ext
9903   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9904     # The linker can only warn and ignore the option if not recognized
9905     # So say no if there are warnings
9906     if test -s conftest.err; then
9907       # Append any errors to the config.log.
9908       cat conftest.err 1>&5
9909       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9910       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9911       if diff conftest.exp conftest.er2 >/dev/null; then
9912         lt_cv_prog_compiler_static_works=yes
9913       fi
9914     else
9915       lt_cv_prog_compiler_static_works=yes
9916     fi
9917   fi
9918   $RM -r conftest*
9919   LDFLAGS="$save_LDFLAGS"
9920
9921fi
9922{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
9923$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
9924
9925if test x"$lt_cv_prog_compiler_static_works" = xyes; then
9926    :
9927else
9928    lt_prog_compiler_static=
9929fi
9930
9931
9932
9933
9934
9935
9936
9937  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9938$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9939if ${lt_cv_prog_compiler_c_o+:} false; then :
9940  $as_echo_n "(cached) " >&6
9941else
9942  lt_cv_prog_compiler_c_o=no
9943   $RM -r conftest 2>/dev/null
9944   mkdir conftest
9945   cd conftest
9946   mkdir out
9947   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9948
9949   lt_compiler_flag="-o out/conftest2.$ac_objext"
9950   # Insert the option either (1) after the last *FLAGS variable, or
9951   # (2) before a word containing "conftest.", or (3) at the end.
9952   # Note that $ac_compile itself does not contain backslashes and begins
9953   # with a dollar sign (not a hyphen), so the echo should work correctly.
9954   lt_compile=`echo "$ac_compile" | $SED \
9955   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9956   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9957   -e 's:$: $lt_compiler_flag:'`
9958   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9959   (eval "$lt_compile" 2>out/conftest.err)
9960   ac_status=$?
9961   cat out/conftest.err >&5
9962   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9963   if (exit $ac_status) && test -s out/conftest2.$ac_objext
9964   then
9965     # The compiler can only warn and ignore the option if not recognized
9966     # So say no if there are warnings
9967     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9968     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9969     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9970       lt_cv_prog_compiler_c_o=yes
9971     fi
9972   fi
9973   chmod u+w . 2>&5
9974   $RM conftest*
9975   # SGI C++ compiler will create directory out/ii_files/ for
9976   # template instantiation
9977   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9978   $RM out/* && rmdir out
9979   cd ..
9980   $RM -r conftest
9981   $RM conftest*
9982
9983fi
9984{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9985$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9986
9987
9988
9989
9990
9991
9992  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9993$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9994if ${lt_cv_prog_compiler_c_o+:} false; then :
9995  $as_echo_n "(cached) " >&6
9996else
9997  lt_cv_prog_compiler_c_o=no
9998   $RM -r conftest 2>/dev/null
9999   mkdir conftest
10000   cd conftest
10001   mkdir out
10002   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10003
10004   lt_compiler_flag="-o out/conftest2.$ac_objext"
10005   # Insert the option either (1) after the last *FLAGS variable, or
10006   # (2) before a word containing "conftest.", or (3) at the end.
10007   # Note that $ac_compile itself does not contain backslashes and begins
10008   # with a dollar sign (not a hyphen), so the echo should work correctly.
10009   lt_compile=`echo "$ac_compile" | $SED \
10010   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10011   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10012   -e 's:$: $lt_compiler_flag:'`
10013   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10014   (eval "$lt_compile" 2>out/conftest.err)
10015   ac_status=$?
10016   cat out/conftest.err >&5
10017   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10018   if (exit $ac_status) && test -s out/conftest2.$ac_objext
10019   then
10020     # The compiler can only warn and ignore the option if not recognized
10021     # So say no if there are warnings
10022     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
10023     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
10024     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
10025       lt_cv_prog_compiler_c_o=yes
10026     fi
10027   fi
10028   chmod u+w . 2>&5
10029   $RM conftest*
10030   # SGI C++ compiler will create directory out/ii_files/ for
10031   # template instantiation
10032   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
10033   $RM out/* && rmdir out
10034   cd ..
10035   $RM -r conftest
10036   $RM conftest*
10037
10038fi
10039{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
10040$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
10041
10042
10043
10044
10045hard_links="nottested"
10046if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
10047  # do not overwrite the value of need_locks provided by the user
10048  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
10049$as_echo_n "checking if we can lock with hard links... " >&6; }
10050  hard_links=yes
10051  $RM conftest*
10052  ln conftest.a conftest.b 2>/dev/null && hard_links=no
10053  touch conftest.a
10054  ln conftest.a conftest.b 2>&5 || hard_links=no
10055  ln conftest.a conftest.b 2>/dev/null && hard_links=no
10056  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
10057$as_echo "$hard_links" >&6; }
10058  if test "$hard_links" = no; then
10059    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
10060$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
10061    need_locks=warn
10062  fi
10063else
10064  need_locks=no
10065fi
10066
10067
10068
10069
10070
10071
10072  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10073$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
10074
10075  runpath_var=
10076  allow_undefined_flag=
10077  always_export_symbols=no
10078  archive_cmds=
10079  archive_expsym_cmds=
10080  compiler_needs_object=no
10081  enable_shared_with_static_runtimes=no
10082  export_dynamic_flag_spec=
10083  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
10084  hardcode_automatic=no
10085  hardcode_direct=no
10086  hardcode_direct_absolute=no
10087  hardcode_libdir_flag_spec=
10088  hardcode_libdir_separator=
10089  hardcode_minus_L=no
10090  hardcode_shlibpath_var=unsupported
10091  inherit_rpath=no
10092  link_all_deplibs=unknown
10093  module_cmds=
10094  module_expsym_cmds=
10095  old_archive_from_new_cmds=
10096  old_archive_from_expsyms_cmds=
10097  thread_safe_flag_spec=
10098  whole_archive_flag_spec=
10099  # include_expsyms should be a list of space-separated symbols to be *always*
10100  # included in the symbol list
10101  include_expsyms=
10102  # exclude_expsyms can be an extended regexp of symbols to exclude
10103  # it will be wrapped by ` (' and `)$', so one must not match beginning or
10104  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
10105  # as well as any symbol that contains `d'.
10106  exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
10107  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
10108  # platforms (ab)use it in PIC code, but their linkers get confused if
10109  # the symbol is explicitly referenced.  Since portable code cannot
10110  # rely on this symbol name, it's probably fine to never include it in
10111  # preloaded symbol tables.
10112  # Exclude shared library initialization/finalization symbols.
10113  extract_expsyms_cmds=
10114
10115  case $host_os in
10116  cygwin* | mingw* | pw32* | cegcc*)
10117    # FIXME: the MSVC++ port hasn't been tested in a loooong time
10118    # When not using gcc, we currently assume that we are using
10119    # Microsoft Visual C++.
10120    if test "$GCC" != yes; then
10121      with_gnu_ld=no
10122    fi
10123    ;;
10124  interix*)
10125    # we just hope/assume this is gcc and not c89 (= MSVC++)
10126    with_gnu_ld=yes
10127    ;;
10128  openbsd*)
10129    with_gnu_ld=no
10130    ;;
10131  linux* | k*bsd*-gnu | gnu*)
10132    link_all_deplibs=no
10133    ;;
10134  esac
10135
10136  ld_shlibs=yes
10137
10138  # On some targets, GNU ld is compatible enough with the native linker
10139  # that we're better off using the native interface for both.
10140  lt_use_gnu_ld_interface=no
10141  if test "$with_gnu_ld" = yes; then
10142    case $host_os in
10143      aix*)
10144	# The AIX port of GNU ld has always aspired to compatibility
10145	# with the native linker.  However, as the warning in the GNU ld
10146	# block says, versions before 2.19.5* couldn't really create working
10147	# shared libraries, regardless of the interface used.
10148	case `$LD -v 2>&1` in
10149	  *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
10150	  *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
10151	  *\ \(GNU\ Binutils\)\ [3-9]*) ;;
10152	  *)
10153	    lt_use_gnu_ld_interface=yes
10154	    ;;
10155	esac
10156	;;
10157      *)
10158	lt_use_gnu_ld_interface=yes
10159	;;
10160    esac
10161  fi
10162
10163  if test "$lt_use_gnu_ld_interface" = yes; then
10164    # If archive_cmds runs LD, not CC, wlarc should be empty
10165    wlarc='${wl}'
10166
10167    # Set some defaults for GNU ld with shared library support. These
10168    # are reset later if shared libraries are not supported. Putting them
10169    # here allows them to be overridden if necessary.
10170    runpath_var=LD_RUN_PATH
10171    hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10172    export_dynamic_flag_spec='${wl}--export-dynamic'
10173    # ancient GNU ld didn't support --whole-archive et. al.
10174    if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
10175      whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
10176    else
10177      whole_archive_flag_spec=
10178    fi
10179    supports_anon_versioning=no
10180    case `$LD -v 2>&1` in
10181      *GNU\ gold*) supports_anon_versioning=yes ;;
10182      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
10183      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
10184      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
10185      *\ 2.11.*) ;; # other 2.11 versions
10186      *) supports_anon_versioning=yes ;;
10187    esac
10188
10189    # See if GNU ld supports shared libraries.
10190    case $host_os in
10191    aix[3-9]*)
10192      # On AIX/PPC, the GNU linker is very broken
10193      if test "$host_cpu" != ia64; then
10194	ld_shlibs=no
10195	cat <<_LT_EOF 1>&2
10196
10197*** Warning: the GNU linker, at least up to release 2.19, is reported
10198*** to be unable to reliably create shared libraries on AIX.
10199*** Therefore, libtool is disabling shared libraries support.  If you
10200*** really care for shared libraries, you may want to install binutils
10201*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
10202*** You will then need to restart the configuration process.
10203
10204_LT_EOF
10205      fi
10206      ;;
10207
10208    amigaos*)
10209      case $host_cpu in
10210      powerpc)
10211            # see comment about AmigaOS4 .so support
10212            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10213            archive_expsym_cmds=''
10214        ;;
10215      m68k)
10216            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)'
10217            hardcode_libdir_flag_spec='-L$libdir'
10218            hardcode_minus_L=yes
10219        ;;
10220      esac
10221      ;;
10222
10223    beos*)
10224      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10225	allow_undefined_flag=unsupported
10226	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
10227	# support --undefined.  This deserves some investigation.  FIXME
10228	archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10229      else
10230	ld_shlibs=no
10231      fi
10232      ;;
10233
10234    cygwin* | mingw* | pw32* | cegcc*)
10235      # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
10236      # as there is no search path for DLLs.
10237      hardcode_libdir_flag_spec='-L$libdir'
10238      export_dynamic_flag_spec='${wl}--export-all-symbols'
10239      allow_undefined_flag=unsupported
10240      always_export_symbols=no
10241      enable_shared_with_static_runtimes=yes
10242      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'
10243      exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
10244
10245      if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
10246        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10247	# If the export-symbols file already is a .def file (1st line
10248	# is EXPORTS), use it as is; otherwise, prepend...
10249	archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
10250	  cp $export_symbols $output_objdir/$soname.def;
10251	else
10252	  echo EXPORTS > $output_objdir/$soname.def;
10253	  cat $export_symbols >> $output_objdir/$soname.def;
10254	fi~
10255	$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10256      else
10257	ld_shlibs=no
10258      fi
10259      ;;
10260
10261    haiku*)
10262      archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10263      link_all_deplibs=yes
10264      ;;
10265
10266    interix[3-9]*)
10267      hardcode_direct=no
10268      hardcode_shlibpath_var=no
10269      hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10270      export_dynamic_flag_spec='${wl}-E'
10271      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
10272      # Instead, shared libraries are loaded at an image base (0x10000000 by
10273      # default) and relocated if they conflict, which is a slow very memory
10274      # consuming and fragmenting process.  To avoid this, we pick a random,
10275      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
10276      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
10277      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
10278      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'
10279      ;;
10280
10281    gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
10282      tmp_diet=no
10283      if test "$host_os" = linux-dietlibc; then
10284	case $cc_basename in
10285	  diet\ *) tmp_diet=yes;;	# linux-dietlibc with static linking (!diet-dyn)
10286	esac
10287      fi
10288      if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
10289	 && test "$tmp_diet" = no
10290      then
10291	tmp_addflag=' $pic_flag'
10292	tmp_sharedflag='-shared'
10293	case $cc_basename,$host_cpu in
10294        pgcc*)				# Portland Group C compiler
10295	  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'
10296	  tmp_addflag=' $pic_flag'
10297	  ;;
10298	pgf77* | pgf90* | pgf95* | pgfortran*)
10299					# Portland Group f77 and f90 compilers
10300	  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'
10301	  tmp_addflag=' $pic_flag -Mnomain' ;;
10302	ecc*,ia64* | icc*,ia64*)	# Intel C compiler on ia64
10303	  tmp_addflag=' -i_dynamic' ;;
10304	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
10305	  tmp_addflag=' -i_dynamic -nofor_main' ;;
10306	ifc* | ifort*)			# Intel Fortran compiler
10307	  tmp_addflag=' -nofor_main' ;;
10308	lf95*)				# Lahey Fortran 8.1
10309	  whole_archive_flag_spec=
10310	  tmp_sharedflag='--shared' ;;
10311	xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
10312	  tmp_sharedflag='-qmkshrobj'
10313	  tmp_addflag= ;;
10314	nvcc*)	# Cuda Compiler Driver 2.2
10315	  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'
10316	  compiler_needs_object=yes
10317	  ;;
10318	esac
10319	case `$CC -V 2>&1 | sed 5q` in
10320	*Sun\ C*)			# Sun C 5.9
10321	  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'
10322	  compiler_needs_object=yes
10323	  tmp_sharedflag='-G' ;;
10324	*Sun\ F*)			# Sun Fortran 8.3
10325	  tmp_sharedflag='-G' ;;
10326	esac
10327	archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10328
10329        if test "x$supports_anon_versioning" = xyes; then
10330          archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10331	    cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10332	    echo "local: *; };" >> $output_objdir/$libname.ver~
10333	    $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
10334        fi
10335
10336	case $cc_basename in
10337	xlf* | bgf* | bgxlf* | mpixlf*)
10338	  # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
10339	  whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
10340	  hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10341	  archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
10342	  if test "x$supports_anon_versioning" = xyes; then
10343	    archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10344	      cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10345	      echo "local: *; };" >> $output_objdir/$libname.ver~
10346	      $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
10347	  fi
10348	  ;;
10349	esac
10350      else
10351        ld_shlibs=no
10352      fi
10353      ;;
10354
10355    netbsd* | netbsdelf*-gnu)
10356      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10357	archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
10358	wlarc=
10359      else
10360	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10361	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10362      fi
10363      ;;
10364
10365    solaris*)
10366      if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
10367	ld_shlibs=no
10368	cat <<_LT_EOF 1>&2
10369
10370*** Warning: The releases 2.8.* of the GNU linker cannot reliably
10371*** create shared libraries on Solaris systems.  Therefore, libtool
10372*** is disabling shared libraries support.  We urge you to upgrade GNU
10373*** binutils to release 2.9.1 or newer.  Another option is to modify
10374*** your PATH or compiler configuration so that the native linker is
10375*** used, and then restart.
10376
10377_LT_EOF
10378      elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10379	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10380	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10381      else
10382	ld_shlibs=no
10383      fi
10384      ;;
10385
10386    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
10387      case `$LD -v 2>&1` in
10388        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
10389	ld_shlibs=no
10390	cat <<_LT_EOF 1>&2
10391
10392*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
10393*** reliably create shared libraries on SCO systems.  Therefore, libtool
10394*** is disabling shared libraries support.  We urge you to upgrade GNU
10395*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
10396*** your PATH or compiler configuration so that the native linker is
10397*** used, and then restart.
10398
10399_LT_EOF
10400	;;
10401	*)
10402	  # For security reasons, it is highly recommended that you always
10403	  # use absolute paths for naming shared libraries, and exclude the
10404	  # DT_RUNPATH tag from executables and libraries.  But doing so
10405	  # requires that you compile everything twice, which is a pain.
10406	  if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10407	    hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10408	    archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10409	    archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10410	  else
10411	    ld_shlibs=no
10412	  fi
10413	;;
10414      esac
10415      ;;
10416
10417    sunos4*)
10418      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10419      wlarc=
10420      hardcode_direct=yes
10421      hardcode_shlibpath_var=no
10422      ;;
10423
10424    *)
10425      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10426	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10427	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10428      else
10429	ld_shlibs=no
10430      fi
10431      ;;
10432    esac
10433
10434    if test "$ld_shlibs" = no; then
10435      runpath_var=
10436      hardcode_libdir_flag_spec=
10437      export_dynamic_flag_spec=
10438      whole_archive_flag_spec=
10439    fi
10440  else
10441    # PORTME fill in a description of your system's linker (not GNU ld)
10442    case $host_os in
10443    aix3*)
10444      allow_undefined_flag=unsupported
10445      always_export_symbols=yes
10446      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'
10447      # Note: this linker hardcodes the directories in LIBPATH if there
10448      # are no directories specified by -L.
10449      hardcode_minus_L=yes
10450      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
10451	# Neither direct hardcoding nor static linking is supported with a
10452	# broken collect2.
10453	hardcode_direct=unsupported
10454      fi
10455      ;;
10456
10457    aix[4-9]*)
10458      if test "$host_cpu" = ia64; then
10459	# On IA64, the linker does run time linking by default, so we don't
10460	# have to do anything special.
10461	aix_use_runtimelinking=no
10462	exp_sym_flag='-Bexport'
10463	no_entry_flag=""
10464      else
10465	# If we're using GNU nm, then we don't want the "-C" option.
10466	# -C means demangle to AIX nm, but means don't demangle with GNU nm
10467	# Also, AIX nm treats weak defined symbols like other global
10468	# defined symbols, whereas GNU nm marks them as "W".
10469	if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
10470	  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'
10471	else
10472	  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'
10473	fi
10474	aix_use_runtimelinking=no
10475
10476	# Test if we are trying to use run time linking or normal
10477	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
10478	# need to do runtime linking.
10479	case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
10480	  for ld_flag in $LDFLAGS; do
10481	  if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
10482	    aix_use_runtimelinking=yes
10483	    break
10484	  fi
10485	  done
10486	  ;;
10487	esac
10488
10489	exp_sym_flag='-bexport'
10490	no_entry_flag='-bnoentry'
10491      fi
10492
10493      # When large executables or shared objects are built, AIX ld can
10494      # have problems creating the table of contents.  If linking a library
10495      # or program results in "error TOC overflow" add -mminimal-toc to
10496      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
10497      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10498
10499      archive_cmds=''
10500      hardcode_direct=yes
10501      hardcode_direct_absolute=yes
10502      hardcode_libdir_separator=':'
10503      link_all_deplibs=yes
10504      file_list_spec='${wl}-f,'
10505
10506      if test "$GCC" = yes; then
10507	case $host_os in aix4.[012]|aix4.[012].*)
10508	# We only want to do this on AIX 4.2 and lower, the check
10509	# below for broken collect2 doesn't work under 4.3+
10510	  collect2name=`${CC} -print-prog-name=collect2`
10511	  if test -f "$collect2name" &&
10512	   strings "$collect2name" | $GREP resolve_lib_name >/dev/null
10513	  then
10514	  # We have reworked collect2
10515	  :
10516	  else
10517	  # We have old collect2
10518	  hardcode_direct=unsupported
10519	  # It fails to find uninstalled libraries when the uninstalled
10520	  # path is not listed in the libpath.  Setting hardcode_minus_L
10521	  # to unsupported forces relinking
10522	  hardcode_minus_L=yes
10523	  hardcode_libdir_flag_spec='-L$libdir'
10524	  hardcode_libdir_separator=
10525	  fi
10526	  ;;
10527	esac
10528	shared_flag='-shared'
10529	if test "$aix_use_runtimelinking" = yes; then
10530	  shared_flag="$shared_flag "'${wl}-G'
10531	fi
10532	link_all_deplibs=no
10533      else
10534	# not using gcc
10535	if test "$host_cpu" = ia64; then
10536	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10537	# chokes on -Wl,-G. The following line is correct:
10538	  shared_flag='-G'
10539	else
10540	  if test "$aix_use_runtimelinking" = yes; then
10541	    shared_flag='${wl}-G'
10542	  else
10543	    shared_flag='${wl}-bM:SRE'
10544	  fi
10545	fi
10546      fi
10547
10548      export_dynamic_flag_spec='${wl}-bexpall'
10549      # It seems that -bexpall does not export symbols beginning with
10550      # underscore (_), so it is better to generate a list of symbols to export.
10551      always_export_symbols=yes
10552      if test "$aix_use_runtimelinking" = yes; then
10553	# Warning - without using the other runtime loading flags (-brtl),
10554	# -berok will link without error, but may produce a broken library.
10555	allow_undefined_flag='-berok'
10556        # Determine the default libpath from the value encoded in an
10557        # empty executable.
10558        if test "${lt_cv_aix_libpath+set}" = set; then
10559  aix_libpath=$lt_cv_aix_libpath
10560else
10561  if ${lt_cv_aix_libpath_+:} false; then :
10562  $as_echo_n "(cached) " >&6
10563else
10564  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10565/* end confdefs.h.  */
10566
10567int
10568main ()
10569{
10570
10571  ;
10572  return 0;
10573}
10574_ACEOF
10575if ac_fn_c_try_link "$LINENO"; then :
10576
10577  lt_aix_libpath_sed='
10578      /Import File Strings/,/^$/ {
10579	  /^0/ {
10580	      s/^0  *\([^ ]*\) *$/\1/
10581	      p
10582	  }
10583      }'
10584  lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10585  # Check for a 64-bit object if we didn't find anything.
10586  if test -z "$lt_cv_aix_libpath_"; then
10587    lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10588  fi
10589fi
10590rm -f core conftest.err conftest.$ac_objext \
10591    conftest$ac_exeext conftest.$ac_ext
10592  if test -z "$lt_cv_aix_libpath_"; then
10593    lt_cv_aix_libpath_="/usr/lib:/lib"
10594  fi
10595
10596fi
10597
10598  aix_libpath=$lt_cv_aix_libpath_
10599fi
10600
10601        hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10602        archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
10603      else
10604	if test "$host_cpu" = ia64; then
10605	  hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
10606	  allow_undefined_flag="-z nodefs"
10607	  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"
10608	else
10609	 # Determine the default libpath from the value encoded in an
10610	 # empty executable.
10611	 if test "${lt_cv_aix_libpath+set}" = set; then
10612  aix_libpath=$lt_cv_aix_libpath
10613else
10614  if ${lt_cv_aix_libpath_+:} false; then :
10615  $as_echo_n "(cached) " >&6
10616else
10617  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10618/* end confdefs.h.  */
10619
10620int
10621main ()
10622{
10623
10624  ;
10625  return 0;
10626}
10627_ACEOF
10628if ac_fn_c_try_link "$LINENO"; then :
10629
10630  lt_aix_libpath_sed='
10631      /Import File Strings/,/^$/ {
10632	  /^0/ {
10633	      s/^0  *\([^ ]*\) *$/\1/
10634	      p
10635	  }
10636      }'
10637  lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10638  # Check for a 64-bit object if we didn't find anything.
10639  if test -z "$lt_cv_aix_libpath_"; then
10640    lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10641  fi
10642fi
10643rm -f core conftest.err conftest.$ac_objext \
10644    conftest$ac_exeext conftest.$ac_ext
10645  if test -z "$lt_cv_aix_libpath_"; then
10646    lt_cv_aix_libpath_="/usr/lib:/lib"
10647  fi
10648
10649fi
10650
10651  aix_libpath=$lt_cv_aix_libpath_
10652fi
10653
10654	 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10655	  # Warning - without using the other run time loading flags,
10656	  # -berok will link without error, but may produce a broken library.
10657	  no_undefined_flag=' ${wl}-bernotok'
10658	  allow_undefined_flag=' ${wl}-berok'
10659	  if test "$with_gnu_ld" = yes; then
10660	    # We only use this code for GNU lds that support --whole-archive.
10661	    whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
10662	  else
10663	    # Exported symbols can be pulled into shared objects from archives
10664	    whole_archive_flag_spec='$convenience'
10665	  fi
10666	  archive_cmds_need_lc=yes
10667	  # This is similar to how AIX traditionally builds its shared libraries.
10668	  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'
10669	fi
10670      fi
10671      ;;
10672
10673    amigaos*)
10674      case $host_cpu in
10675      powerpc)
10676            # see comment about AmigaOS4 .so support
10677            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10678            archive_expsym_cmds=''
10679        ;;
10680      m68k)
10681            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)'
10682            hardcode_libdir_flag_spec='-L$libdir'
10683            hardcode_minus_L=yes
10684        ;;
10685      esac
10686      ;;
10687
10688    bsdi[45]*)
10689      export_dynamic_flag_spec=-rdynamic
10690      ;;
10691
10692    cygwin* | mingw* | pw32* | cegcc*)
10693      # When not using gcc, we currently assume that we are using
10694      # Microsoft Visual C++.
10695      # hardcode_libdir_flag_spec is actually meaningless, as there is
10696      # no search path for DLLs.
10697      case $cc_basename in
10698      cl*)
10699	# Native MSVC
10700	hardcode_libdir_flag_spec=' '
10701	allow_undefined_flag=unsupported
10702	always_export_symbols=yes
10703	file_list_spec='@'
10704	# Tell ltmain to make .lib files, not .a files.
10705	libext=lib
10706	# Tell ltmain to make .dll files, not .so files.
10707	shrext_cmds=".dll"
10708	# FIXME: Setting linknames here is a bad hack.
10709	archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
10710	archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
10711	    sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
10712	  else
10713	    sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
10714	  fi~
10715	  $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
10716	  linknames='
10717	# The linker will not automatically build a static lib if we build a DLL.
10718	# _LT_TAGVAR(old_archive_from_new_cmds, )='true'
10719	enable_shared_with_static_runtimes=yes
10720	exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
10721	export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
10722	# Don't use ranlib
10723	old_postinstall_cmds='chmod 644 $oldlib'
10724	postlink_cmds='lt_outputfile="@OUTPUT@"~
10725	  lt_tool_outputfile="@TOOL_OUTPUT@"~
10726	  case $lt_outputfile in
10727	    *.exe|*.EXE) ;;
10728	    *)
10729	      lt_outputfile="$lt_outputfile.exe"
10730	      lt_tool_outputfile="$lt_tool_outputfile.exe"
10731	      ;;
10732	  esac~
10733	  if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
10734	    $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
10735	    $RM "$lt_outputfile.manifest";
10736	  fi'
10737	;;
10738      *)
10739	# Assume MSVC wrapper
10740	hardcode_libdir_flag_spec=' '
10741	allow_undefined_flag=unsupported
10742	# Tell ltmain to make .lib files, not .a files.
10743	libext=lib
10744	# Tell ltmain to make .dll files, not .so files.
10745	shrext_cmds=".dll"
10746	# FIXME: Setting linknames here is a bad hack.
10747	archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
10748	# The linker will automatically build a .lib file if we build a DLL.
10749	old_archive_from_new_cmds='true'
10750	# FIXME: Should let the user specify the lib program.
10751	old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
10752	enable_shared_with_static_runtimes=yes
10753	;;
10754      esac
10755      ;;
10756
10757    darwin* | rhapsody*)
10758
10759
10760  archive_cmds_need_lc=no
10761  hardcode_direct=no
10762  hardcode_automatic=yes
10763  hardcode_shlibpath_var=unsupported
10764  if test "$lt_cv_ld_force_load" = "yes"; then
10765    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\"`'
10766
10767  else
10768    whole_archive_flag_spec=''
10769  fi
10770  link_all_deplibs=yes
10771  allow_undefined_flag="$_lt_dar_allow_undefined"
10772  case $cc_basename in
10773     ifort*) _lt_dar_can_shared=yes ;;
10774     *) _lt_dar_can_shared=$GCC ;;
10775  esac
10776  if test "$_lt_dar_can_shared" = "yes"; then
10777    output_verbose_link_cmd=func_echo_all
10778    archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
10779    module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
10780    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}"
10781    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}"
10782
10783  else
10784  ld_shlibs=no
10785  fi
10786
10787      ;;
10788
10789    dgux*)
10790      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10791      hardcode_libdir_flag_spec='-L$libdir'
10792      hardcode_shlibpath_var=no
10793      ;;
10794
10795    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
10796    # support.  Future versions do this automatically, but an explicit c++rt0.o
10797    # does not break anything, and helps significantly (at the cost of a little
10798    # extra space).
10799    freebsd2.2*)
10800      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
10801      hardcode_libdir_flag_spec='-R$libdir'
10802      hardcode_direct=yes
10803      hardcode_shlibpath_var=no
10804      ;;
10805
10806    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
10807    freebsd2.*)
10808      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10809      hardcode_direct=yes
10810      hardcode_minus_L=yes
10811      hardcode_shlibpath_var=no
10812      ;;
10813
10814    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
10815    freebsd* | dragonfly*)
10816      archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10817      hardcode_libdir_flag_spec='-R$libdir'
10818      hardcode_direct=yes
10819      hardcode_shlibpath_var=no
10820      ;;
10821
10822    hpux9*)
10823      if test "$GCC" = yes; then
10824	archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
10825      else
10826	archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
10827      fi
10828      hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10829      hardcode_libdir_separator=:
10830      hardcode_direct=yes
10831
10832      # hardcode_minus_L: Not really in the search PATH,
10833      # but as the default location of the library.
10834      hardcode_minus_L=yes
10835      export_dynamic_flag_spec='${wl}-E'
10836      ;;
10837
10838    hpux10*)
10839      if test "$GCC" = yes && test "$with_gnu_ld" = no; then
10840	archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10841      else
10842	archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10843      fi
10844      if test "$with_gnu_ld" = no; then
10845	hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10846	hardcode_libdir_separator=:
10847	hardcode_direct=yes
10848	hardcode_direct_absolute=yes
10849	export_dynamic_flag_spec='${wl}-E'
10850	# hardcode_minus_L: Not really in the search PATH,
10851	# but as the default location of the library.
10852	hardcode_minus_L=yes
10853      fi
10854      ;;
10855
10856    hpux11*)
10857      if test "$GCC" = yes && test "$with_gnu_ld" = no; then
10858	case $host_cpu in
10859	hppa*64*)
10860	  archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10861	  ;;
10862	ia64*)
10863	  archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10864	  ;;
10865	*)
10866	  archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10867	  ;;
10868	esac
10869      else
10870	case $host_cpu in
10871	hppa*64*)
10872	  archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10873	  ;;
10874	ia64*)
10875	  archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10876	  ;;
10877	*)
10878
10879	  # Older versions of the 11.00 compiler do not understand -b yet
10880	  # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
10881	  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
10882$as_echo_n "checking if $CC understands -b... " >&6; }
10883if ${lt_cv_prog_compiler__b+:} false; then :
10884  $as_echo_n "(cached) " >&6
10885else
10886  lt_cv_prog_compiler__b=no
10887   save_LDFLAGS="$LDFLAGS"
10888   LDFLAGS="$LDFLAGS -b"
10889   echo "$lt_simple_link_test_code" > conftest.$ac_ext
10890   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10891     # The linker can only warn and ignore the option if not recognized
10892     # So say no if there are warnings
10893     if test -s conftest.err; then
10894       # Append any errors to the config.log.
10895       cat conftest.err 1>&5
10896       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10897       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10898       if diff conftest.exp conftest.er2 >/dev/null; then
10899         lt_cv_prog_compiler__b=yes
10900       fi
10901     else
10902       lt_cv_prog_compiler__b=yes
10903     fi
10904   fi
10905   $RM -r conftest*
10906   LDFLAGS="$save_LDFLAGS"
10907
10908fi
10909{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
10910$as_echo "$lt_cv_prog_compiler__b" >&6; }
10911
10912if test x"$lt_cv_prog_compiler__b" = xyes; then
10913    archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10914else
10915    archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10916fi
10917
10918	  ;;
10919	esac
10920      fi
10921      if test "$with_gnu_ld" = no; then
10922	hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10923	hardcode_libdir_separator=:
10924
10925	case $host_cpu in
10926	hppa*64*|ia64*)
10927	  hardcode_direct=no
10928	  hardcode_shlibpath_var=no
10929	  ;;
10930	*)
10931	  hardcode_direct=yes
10932	  hardcode_direct_absolute=yes
10933	  export_dynamic_flag_spec='${wl}-E'
10934
10935	  # hardcode_minus_L: Not really in the search PATH,
10936	  # but as the default location of the library.
10937	  hardcode_minus_L=yes
10938	  ;;
10939	esac
10940      fi
10941      ;;
10942
10943    irix5* | irix6* | nonstopux*)
10944      if test "$GCC" = yes; then
10945	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'
10946	# Try to use the -exported_symbol ld option, if it does not
10947	# work, assume that -exports_file does not work either and
10948	# implicitly export all symbols.
10949	# This should be the same for all languages, so no per-tag cache variable.
10950	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
10951$as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
10952if ${lt_cv_irix_exported_symbol+:} false; then :
10953  $as_echo_n "(cached) " >&6
10954else
10955  save_LDFLAGS="$LDFLAGS"
10956	   LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
10957	   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10958/* end confdefs.h.  */
10959int foo (void) { return 0; }
10960_ACEOF
10961if ac_fn_c_try_link "$LINENO"; then :
10962  lt_cv_irix_exported_symbol=yes
10963else
10964  lt_cv_irix_exported_symbol=no
10965fi
10966rm -f core conftest.err conftest.$ac_objext \
10967    conftest$ac_exeext conftest.$ac_ext
10968           LDFLAGS="$save_LDFLAGS"
10969fi
10970{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
10971$as_echo "$lt_cv_irix_exported_symbol" >&6; }
10972	if test "$lt_cv_irix_exported_symbol" = yes; then
10973          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'
10974	fi
10975      else
10976	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'
10977	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'
10978      fi
10979      archive_cmds_need_lc='no'
10980      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10981      hardcode_libdir_separator=:
10982      inherit_rpath=yes
10983      link_all_deplibs=yes
10984      ;;
10985
10986    netbsd* | netbsdelf*-gnu)
10987      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10988	archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
10989      else
10990	archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
10991      fi
10992      hardcode_libdir_flag_spec='-R$libdir'
10993      hardcode_direct=yes
10994      hardcode_shlibpath_var=no
10995      ;;
10996
10997    newsos6)
10998      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10999      hardcode_direct=yes
11000      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11001      hardcode_libdir_separator=:
11002      hardcode_shlibpath_var=no
11003      ;;
11004
11005    *nto* | *qnx*)
11006      ;;
11007
11008    openbsd*)
11009      if test -f /usr/libexec/ld.so; then
11010	hardcode_direct=yes
11011	hardcode_shlibpath_var=no
11012	hardcode_direct_absolute=yes
11013	if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11014	  archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11015	  archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
11016	  hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
11017	  export_dynamic_flag_spec='${wl}-E'
11018	else
11019	  case $host_os in
11020	   openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
11021	     archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
11022	     hardcode_libdir_flag_spec='-R$libdir'
11023	     ;;
11024	   *)
11025	     archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11026	     hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
11027	     ;;
11028	  esac
11029	fi
11030      else
11031	ld_shlibs=no
11032      fi
11033      ;;
11034
11035    os2*)
11036      hardcode_libdir_flag_spec='-L$libdir'
11037      hardcode_minus_L=yes
11038      allow_undefined_flag=unsupported
11039      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'
11040      old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
11041      ;;
11042
11043    osf3*)
11044      if test "$GCC" = yes; then
11045	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
11046	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'
11047      else
11048	allow_undefined_flag=' -expect_unresolved \*'
11049	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'
11050      fi
11051      archive_cmds_need_lc='no'
11052      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11053      hardcode_libdir_separator=:
11054      ;;
11055
11056    osf4* | osf5*)	# as osf3* with the addition of -msym flag
11057      if test "$GCC" = yes; then
11058	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
11059	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'
11060	hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11061      else
11062	allow_undefined_flag=' -expect_unresolved \*'
11063	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'
11064	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~
11065	$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'
11066
11067	# Both c and cxx compiler support -rpath directly
11068	hardcode_libdir_flag_spec='-rpath $libdir'
11069      fi
11070      archive_cmds_need_lc='no'
11071      hardcode_libdir_separator=:
11072      ;;
11073
11074    solaris*)
11075      no_undefined_flag=' -z defs'
11076      if test "$GCC" = yes; then
11077	wlarc='${wl}'
11078	archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
11079	archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11080	  $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'
11081      else
11082	case `$CC -V 2>&1` in
11083	*"Compilers 5.0"*)
11084	  wlarc=''
11085	  archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
11086	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11087	  $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
11088	  ;;
11089	*)
11090	  wlarc='${wl}'
11091	  archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
11092	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11093	  $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
11094	  ;;
11095	esac
11096      fi
11097      hardcode_libdir_flag_spec='-R$libdir'
11098      hardcode_shlibpath_var=no
11099      case $host_os in
11100      solaris2.[0-5] | solaris2.[0-5].*) ;;
11101      *)
11102	# The compiler driver will combine and reorder linker options,
11103	# but understands `-z linker_flag'.  GCC discards it without `$wl',
11104	# but is careful enough not to reorder.
11105	# Supported since Solaris 2.6 (maybe 2.5.1?)
11106	if test "$GCC" = yes; then
11107	  whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
11108	else
11109	  whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
11110	fi
11111	;;
11112      esac
11113      link_all_deplibs=yes
11114      ;;
11115
11116    sunos4*)
11117      if test "x$host_vendor" = xsequent; then
11118	# Use $CC to link under sequent, because it throws in some extra .o
11119	# files that make .init and .fini sections work.
11120	archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
11121      else
11122	archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
11123      fi
11124      hardcode_libdir_flag_spec='-L$libdir'
11125      hardcode_direct=yes
11126      hardcode_minus_L=yes
11127      hardcode_shlibpath_var=no
11128      ;;
11129
11130    sysv4)
11131      case $host_vendor in
11132	sni)
11133	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11134	  hardcode_direct=yes # is this really true???
11135	;;
11136	siemens)
11137	  ## LD is ld it makes a PLAMLIB
11138	  ## CC just makes a GrossModule.
11139	  archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
11140	  reload_cmds='$CC -r -o $output$reload_objs'
11141	  hardcode_direct=no
11142        ;;
11143	motorola)
11144	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11145	  hardcode_direct=no #Motorola manual says yes, but my tests say they lie
11146	;;
11147      esac
11148      runpath_var='LD_RUN_PATH'
11149      hardcode_shlibpath_var=no
11150      ;;
11151
11152    sysv4.3*)
11153      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11154      hardcode_shlibpath_var=no
11155      export_dynamic_flag_spec='-Bexport'
11156      ;;
11157
11158    sysv4*MP*)
11159      if test -d /usr/nec; then
11160	archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11161	hardcode_shlibpath_var=no
11162	runpath_var=LD_RUN_PATH
11163	hardcode_runpath_var=yes
11164	ld_shlibs=yes
11165      fi
11166      ;;
11167
11168    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
11169      no_undefined_flag='${wl}-z,text'
11170      archive_cmds_need_lc=no
11171      hardcode_shlibpath_var=no
11172      runpath_var='LD_RUN_PATH'
11173
11174      if test "$GCC" = yes; then
11175	archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11176	archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11177      else
11178	archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11179	archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11180      fi
11181      ;;
11182
11183    sysv5* | sco3.2v5* | sco5v6*)
11184      # Note: We can NOT use -z defs as we might desire, because we do not
11185      # link with -lc, and that would cause any symbols used from libc to
11186      # always be unresolved, which means just about no library would
11187      # ever link correctly.  If we're not using GNU ld we use -z text
11188      # though, which does catch some bad symbols but isn't as heavy-handed
11189      # as -z defs.
11190      no_undefined_flag='${wl}-z,text'
11191      allow_undefined_flag='${wl}-z,nodefs'
11192      archive_cmds_need_lc=no
11193      hardcode_shlibpath_var=no
11194      hardcode_libdir_flag_spec='${wl}-R,$libdir'
11195      hardcode_libdir_separator=':'
11196      link_all_deplibs=yes
11197      export_dynamic_flag_spec='${wl}-Bexport'
11198      runpath_var='LD_RUN_PATH'
11199
11200      if test "$GCC" = yes; then
11201	archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11202	archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11203      else
11204	archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11205	archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11206      fi
11207      ;;
11208
11209    uts4*)
11210      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11211      hardcode_libdir_flag_spec='-L$libdir'
11212      hardcode_shlibpath_var=no
11213      ;;
11214
11215    *)
11216      ld_shlibs=no
11217      ;;
11218    esac
11219
11220    if test x$host_vendor = xsni; then
11221      case $host in
11222      sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
11223	export_dynamic_flag_spec='${wl}-Blargedynsym'
11224	;;
11225      esac
11226    fi
11227  fi
11228
11229{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
11230$as_echo "$ld_shlibs" >&6; }
11231test "$ld_shlibs" = no && can_build_shared=no
11232
11233with_gnu_ld=$with_gnu_ld
11234
11235
11236
11237
11238
11239
11240
11241
11242
11243
11244
11245
11246
11247
11248
11249#
11250# Do we need to explicitly link libc?
11251#
11252case "x$archive_cmds_need_lc" in
11253x|xyes)
11254  # Assume -lc should be added
11255  archive_cmds_need_lc=yes
11256
11257  if test "$enable_shared" = yes && test "$GCC" = yes; then
11258    case $archive_cmds in
11259    *'~'*)
11260      # FIXME: we may have to deal with multi-command sequences.
11261      ;;
11262    '$CC '*)
11263      # Test whether the compiler implicitly links with -lc since on some
11264      # systems, -lgcc has to come before -lc. If gcc already passes -lc
11265      # to ld, don't add -lc before -lgcc.
11266      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
11267$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
11268if ${lt_cv_archive_cmds_need_lc+:} false; then :
11269  $as_echo_n "(cached) " >&6
11270else
11271  $RM conftest*
11272	echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11273
11274	if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
11275  (eval $ac_compile) 2>&5
11276  ac_status=$?
11277  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11278  test $ac_status = 0; } 2>conftest.err; then
11279	  soname=conftest
11280	  lib=conftest
11281	  libobjs=conftest.$ac_objext
11282	  deplibs=
11283	  wl=$lt_prog_compiler_wl
11284	  pic_flag=$lt_prog_compiler_pic
11285	  compiler_flags=-v
11286	  linker_flags=-v
11287	  verstring=
11288	  output_objdir=.
11289	  libname=conftest
11290	  lt_save_allow_undefined_flag=$allow_undefined_flag
11291	  allow_undefined_flag=
11292	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
11293  (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
11294  ac_status=$?
11295  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11296  test $ac_status = 0; }
11297	  then
11298	    lt_cv_archive_cmds_need_lc=no
11299	  else
11300	    lt_cv_archive_cmds_need_lc=yes
11301	  fi
11302	  allow_undefined_flag=$lt_save_allow_undefined_flag
11303	else
11304	  cat conftest.err 1>&5
11305	fi
11306	$RM conftest*
11307
11308fi
11309{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
11310$as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
11311      archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
11312      ;;
11313    esac
11314  fi
11315  ;;
11316esac
11317
11318
11319
11320
11321
11322
11323
11324
11325
11326
11327
11328
11329
11330
11331
11332
11333
11334
11335
11336
11337
11338
11339
11340
11341
11342
11343
11344
11345
11346
11347
11348
11349
11350
11351
11352
11353
11354
11355
11356
11357
11358
11359
11360
11361
11362
11363
11364
11365
11366
11367
11368
11369
11370
11371
11372
11373
11374
11375
11376
11377
11378
11379
11380
11381
11382
11383
11384
11385
11386
11387
11388
11389
11390
11391
11392
11393
11394
11395
11396
11397
11398
11399
11400
11401
11402
11403
11404
11405
11406
11407
11408
11409
11410
11411
11412
11413
11414
11415
11416
11417
11418
11419
11420
11421
11422
11423
11424
11425
11426
11427
11428
11429
11430
11431
11432
11433
11434
11435
11436
11437
11438
11439
11440
11441
11442
11443
11444
11445
11446
11447
11448
11449
11450
11451
11452
11453
11454
11455
11456
11457
11458
11459
11460
11461
11462
11463
11464
11465
11466
11467
11468
11469  { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
11470$as_echo_n "checking dynamic linker characteristics... " >&6; }
11471
11472if test "$GCC" = yes; then
11473  case $host_os in
11474    darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
11475    *) lt_awk_arg="/^libraries:/" ;;
11476  esac
11477  case $host_os in
11478    mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
11479    *) lt_sed_strip_eq="s,=/,/,g" ;;
11480  esac
11481  lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
11482  case $lt_search_path_spec in
11483  *\;*)
11484    # if the path contains ";" then we assume it to be the separator
11485    # otherwise default to the standard path separator (i.e. ":") - it is
11486    # assumed that no part of a normal pathname contains ";" but that should
11487    # okay in the real world where ";" in dirpaths is itself problematic.
11488    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
11489    ;;
11490  *)
11491    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
11492    ;;
11493  esac
11494  # Ok, now we have the path, separated by spaces, we can step through it
11495  # and add multilib dir if necessary.
11496  lt_tmp_lt_search_path_spec=
11497  lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
11498  for lt_sys_path in $lt_search_path_spec; do
11499    if test -d "$lt_sys_path/$lt_multi_os_dir"; then
11500      lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
11501    else
11502      test -d "$lt_sys_path" && \
11503	lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
11504    fi
11505  done
11506  lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
11507BEGIN {RS=" "; FS="/|\n";} {
11508  lt_foo="";
11509  lt_count=0;
11510  for (lt_i = NF; lt_i > 0; lt_i--) {
11511    if ($lt_i != "" && $lt_i != ".") {
11512      if ($lt_i == "..") {
11513        lt_count++;
11514      } else {
11515        if (lt_count == 0) {
11516          lt_foo="/" $lt_i lt_foo;
11517        } else {
11518          lt_count--;
11519        }
11520      }
11521    }
11522  }
11523  if (lt_foo != "") { lt_freq[lt_foo]++; }
11524  if (lt_freq[lt_foo] == 1) { print lt_foo; }
11525}'`
11526  # AWK program above erroneously prepends '/' to C:/dos/paths
11527  # for these hosts.
11528  case $host_os in
11529    mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
11530      $SED 's,/\([A-Za-z]:\),\1,g'` ;;
11531  esac
11532  sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
11533else
11534  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11535fi
11536library_names_spec=
11537libname_spec='lib$name'
11538soname_spec=
11539shrext_cmds=".so"
11540postinstall_cmds=
11541postuninstall_cmds=
11542finish_cmds=
11543finish_eval=
11544shlibpath_var=
11545shlibpath_overrides_runpath=unknown
11546version_type=none
11547dynamic_linker="$host_os ld.so"
11548sys_lib_dlsearch_path_spec="/lib /usr/lib"
11549need_lib_prefix=unknown
11550hardcode_into_libs=no
11551
11552# when you set need_version to no, make sure it does not cause -set_version
11553# flags to be left without arguments
11554need_version=unknown
11555
11556case $host_os in
11557aix3*)
11558  version_type=linux # correct to gnu/linux during the next big refactor
11559  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
11560  shlibpath_var=LIBPATH
11561
11562  # AIX 3 has no versioning support, so we append a major version to the name.
11563  soname_spec='${libname}${release}${shared_ext}$major'
11564  ;;
11565
11566aix[4-9]*)
11567  version_type=linux # correct to gnu/linux during the next big refactor
11568  need_lib_prefix=no
11569  need_version=no
11570  hardcode_into_libs=yes
11571  if test "$host_cpu" = ia64; then
11572    # AIX 5 supports IA64
11573    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
11574    shlibpath_var=LD_LIBRARY_PATH
11575  else
11576    # With GCC up to 2.95.x, collect2 would create an import file
11577    # for dependence libraries.  The import file would start with
11578    # the line `#! .'.  This would cause the generated library to
11579    # depend on `.', always an invalid library.  This was fixed in
11580    # development snapshots of GCC prior to 3.0.
11581    case $host_os in
11582      aix4 | aix4.[01] | aix4.[01].*)
11583      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11584	   echo ' yes '
11585	   echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
11586	:
11587      else
11588	can_build_shared=no
11589      fi
11590      ;;
11591    esac
11592    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
11593    # soname into executable. Probably we can add versioning support to
11594    # collect2, so additional links can be useful in future.
11595    if test "$aix_use_runtimelinking" = yes; then
11596      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11597      # instead of lib<name>.a to let people know that these are not
11598      # typical AIX shared libraries.
11599      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11600    else
11601      # We preserve .a as extension for shared libraries through AIX4.2
11602      # and later when we are not doing run time linking.
11603      library_names_spec='${libname}${release}.a $libname.a'
11604      soname_spec='${libname}${release}${shared_ext}$major'
11605    fi
11606    shlibpath_var=LIBPATH
11607  fi
11608  ;;
11609
11610amigaos*)
11611  case $host_cpu in
11612  powerpc)
11613    # Since July 2007 AmigaOS4 officially supports .so libraries.
11614    # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
11615    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11616    ;;
11617  m68k)
11618    library_names_spec='$libname.ixlibrary $libname.a'
11619    # Create ${libname}_ixlibrary.a entries in /sys/libs.
11620    finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
11621    ;;
11622  esac
11623  ;;
11624
11625beos*)
11626  library_names_spec='${libname}${shared_ext}'
11627  dynamic_linker="$host_os ld.so"
11628  shlibpath_var=LIBRARY_PATH
11629  ;;
11630
11631bsdi[45]*)
11632  version_type=linux # correct to gnu/linux during the next big refactor
11633  need_version=no
11634  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11635  soname_spec='${libname}${release}${shared_ext}$major'
11636  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11637  shlibpath_var=LD_LIBRARY_PATH
11638  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11639  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11640  # the default ld.so.conf also contains /usr/contrib/lib and
11641  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11642  # libtool to hard-code these into programs
11643  ;;
11644
11645cygwin* | mingw* | pw32* | cegcc*)
11646  version_type=windows
11647  shrext_cmds=".dll"
11648  need_version=no
11649  need_lib_prefix=no
11650
11651  case $GCC,$cc_basename in
11652  yes,*)
11653    # gcc
11654    library_names_spec='$libname.dll.a'
11655    # DLL is installed to $(libdir)/../bin by postinstall_cmds
11656    postinstall_cmds='base_file=`basename \${file}`~
11657      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
11658      dldir=$destdir/`dirname \$dlpath`~
11659      test -d \$dldir || mkdir -p \$dldir~
11660      $install_prog $dir/$dlname \$dldir/$dlname~
11661      chmod a+x \$dldir/$dlname~
11662      if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11663        eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11664      fi'
11665    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11666      dlpath=$dir/\$dldll~
11667       $RM \$dlpath'
11668    shlibpath_overrides_runpath=yes
11669
11670    case $host_os in
11671    cygwin*)
11672      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11673      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11674
11675      sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
11676      ;;
11677    mingw* | cegcc*)
11678      # MinGW DLLs use traditional 'lib' prefix
11679      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11680      ;;
11681    pw32*)
11682      # pw32 DLLs use 'pw' prefix rather than 'lib'
11683      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11684      ;;
11685    esac
11686    dynamic_linker='Win32 ld.exe'
11687    ;;
11688
11689  *,cl*)
11690    # Native MSVC
11691    libname_spec='$name'
11692    soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11693    library_names_spec='${libname}.dll.lib'
11694
11695    case $build_os in
11696    mingw*)
11697      sys_lib_search_path_spec=
11698      lt_save_ifs=$IFS
11699      IFS=';'
11700      for lt_path in $LIB
11701      do
11702        IFS=$lt_save_ifs
11703        # Let DOS variable expansion print the short 8.3 style file name.
11704        lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
11705        sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
11706      done
11707      IFS=$lt_save_ifs
11708      # Convert to MSYS style.
11709      sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
11710      ;;
11711    cygwin*)
11712      # Convert to unix form, then to dos form, then back to unix form
11713      # but this time dos style (no spaces!) so that the unix form looks
11714      # like /cygdrive/c/PROGRA~1:/cygdr...
11715      sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
11716      sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
11717      sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11718      ;;
11719    *)
11720      sys_lib_search_path_spec="$LIB"
11721      if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
11722        # It is most probably a Windows format PATH.
11723        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11724      else
11725        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11726      fi
11727      # FIXME: find the short name or the path components, as spaces are
11728      # common. (e.g. "Program Files" -> "PROGRA~1")
11729      ;;
11730    esac
11731
11732    # DLL is installed to $(libdir)/../bin by postinstall_cmds
11733    postinstall_cmds='base_file=`basename \${file}`~
11734      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
11735      dldir=$destdir/`dirname \$dlpath`~
11736      test -d \$dldir || mkdir -p \$dldir~
11737      $install_prog $dir/$dlname \$dldir/$dlname'
11738    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11739      dlpath=$dir/\$dldll~
11740       $RM \$dlpath'
11741    shlibpath_overrides_runpath=yes
11742    dynamic_linker='Win32 link.exe'
11743    ;;
11744
11745  *)
11746    # Assume MSVC wrapper
11747    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
11748    dynamic_linker='Win32 ld.exe'
11749    ;;
11750  esac
11751  # FIXME: first we should search . and the directory the executable is in
11752  shlibpath_var=PATH
11753  ;;
11754
11755darwin* | rhapsody*)
11756  dynamic_linker="$host_os dyld"
11757  version_type=darwin
11758  need_lib_prefix=no
11759  need_version=no
11760  library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
11761  soname_spec='${libname}${release}${major}$shared_ext'
11762  shlibpath_overrides_runpath=yes
11763  shlibpath_var=DYLD_LIBRARY_PATH
11764  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
11765
11766  sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
11767  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11768  ;;
11769
11770dgux*)
11771  version_type=linux # correct to gnu/linux during the next big refactor
11772  need_lib_prefix=no
11773  need_version=no
11774  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
11775  soname_spec='${libname}${release}${shared_ext}$major'
11776  shlibpath_var=LD_LIBRARY_PATH
11777  ;;
11778
11779freebsd* | dragonfly*)
11780  # DragonFly does not have aout.  When/if they implement a new
11781  # versioning mechanism, adjust this.
11782  if test -x /usr/bin/objformat; then
11783    objformat=`/usr/bin/objformat`
11784  else
11785    case $host_os in
11786    freebsd[23].*) objformat=aout ;;
11787    *) objformat=elf ;;
11788    esac
11789  fi
11790  version_type=freebsd-$objformat
11791  case $version_type in
11792    freebsd-elf*)
11793      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11794      need_version=no
11795      need_lib_prefix=no
11796      ;;
11797    freebsd-*)
11798      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
11799      need_version=yes
11800      ;;
11801  esac
11802  shlibpath_var=LD_LIBRARY_PATH
11803  case $host_os in
11804  freebsd2.*)
11805    shlibpath_overrides_runpath=yes
11806    ;;
11807  freebsd3.[01]* | freebsdelf3.[01]*)
11808    shlibpath_overrides_runpath=yes
11809    hardcode_into_libs=yes
11810    ;;
11811  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
11812  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
11813    shlibpath_overrides_runpath=no
11814    hardcode_into_libs=yes
11815    ;;
11816  *) # from 4.6 on, and DragonFly
11817    shlibpath_overrides_runpath=yes
11818    hardcode_into_libs=yes
11819    ;;
11820  esac
11821  ;;
11822
11823haiku*)
11824  version_type=linux # correct to gnu/linux during the next big refactor
11825  need_lib_prefix=no
11826  need_version=no
11827  dynamic_linker="$host_os runtime_loader"
11828  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11829  soname_spec='${libname}${release}${shared_ext}$major'
11830  shlibpath_var=LIBRARY_PATH
11831  shlibpath_overrides_runpath=yes
11832  sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
11833  hardcode_into_libs=yes
11834  ;;
11835
11836hpux9* | hpux10* | hpux11*)
11837  # Give a soname corresponding to the major version so that dld.sl refuses to
11838  # link against other versions.
11839  version_type=sunos
11840  need_lib_prefix=no
11841  need_version=no
11842  case $host_cpu in
11843  ia64*)
11844    shrext_cmds='.so'
11845    hardcode_into_libs=yes
11846    dynamic_linker="$host_os dld.so"
11847    shlibpath_var=LD_LIBRARY_PATH
11848    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11849    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11850    soname_spec='${libname}${release}${shared_ext}$major'
11851    if test "X$HPUX_IA64_MODE" = X32; then
11852      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11853    else
11854      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11855    fi
11856    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11857    ;;
11858  hppa*64*)
11859    shrext_cmds='.sl'
11860    hardcode_into_libs=yes
11861    dynamic_linker="$host_os dld.sl"
11862    shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11863    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11864    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11865    soname_spec='${libname}${release}${shared_ext}$major'
11866    sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11867    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11868    ;;
11869  *)
11870    shrext_cmds='.sl'
11871    dynamic_linker="$host_os dld.sl"
11872    shlibpath_var=SHLIB_PATH
11873    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11874    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11875    soname_spec='${libname}${release}${shared_ext}$major'
11876    ;;
11877  esac
11878  # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
11879  postinstall_cmds='chmod 555 $lib'
11880  # or fails outright, so override atomically:
11881  install_override_mode=555
11882  ;;
11883
11884interix[3-9]*)
11885  version_type=linux # correct to gnu/linux during the next big refactor
11886  need_lib_prefix=no
11887  need_version=no
11888  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11889  soname_spec='${libname}${release}${shared_ext}$major'
11890  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
11891  shlibpath_var=LD_LIBRARY_PATH
11892  shlibpath_overrides_runpath=no
11893  hardcode_into_libs=yes
11894  ;;
11895
11896irix5* | irix6* | nonstopux*)
11897  case $host_os in
11898    nonstopux*) version_type=nonstopux ;;
11899    *)
11900	if test "$lt_cv_prog_gnu_ld" = yes; then
11901		version_type=linux # correct to gnu/linux during the next big refactor
11902	else
11903		version_type=irix
11904	fi ;;
11905  esac
11906  need_lib_prefix=no
11907  need_version=no
11908  soname_spec='${libname}${release}${shared_ext}$major'
11909  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
11910  case $host_os in
11911  irix5* | nonstopux*)
11912    libsuff= shlibsuff=
11913    ;;
11914  *)
11915    case $LD in # libtool.m4 will add one of these switches to LD
11916    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11917      libsuff= shlibsuff= libmagic=32-bit;;
11918    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11919      libsuff=32 shlibsuff=N32 libmagic=N32;;
11920    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11921      libsuff=64 shlibsuff=64 libmagic=64-bit;;
11922    *) libsuff= shlibsuff= libmagic=never-match;;
11923    esac
11924    ;;
11925  esac
11926  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11927  shlibpath_overrides_runpath=no
11928  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11929  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
11930  hardcode_into_libs=yes
11931  ;;
11932
11933# No shared lib support for Linux oldld, aout, or coff.
11934linux*oldld* | linux*aout* | linux*coff*)
11935  dynamic_linker=no
11936  ;;
11937
11938# This must be glibc/ELF.
11939linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
11940  version_type=linux # correct to gnu/linux during the next big refactor
11941  need_lib_prefix=no
11942  need_version=no
11943  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11944  soname_spec='${libname}${release}${shared_ext}$major'
11945  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11946  shlibpath_var=LD_LIBRARY_PATH
11947  shlibpath_overrides_runpath=no
11948
11949  # Some binutils ld are patched to set DT_RUNPATH
11950  if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
11951  $as_echo_n "(cached) " >&6
11952else
11953  lt_cv_shlibpath_overrides_runpath=no
11954    save_LDFLAGS=$LDFLAGS
11955    save_libdir=$libdir
11956    eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
11957	 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
11958    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11959/* end confdefs.h.  */
11960
11961int
11962main ()
11963{
11964
11965  ;
11966  return 0;
11967}
11968_ACEOF
11969if ac_fn_c_try_link "$LINENO"; then :
11970  if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
11971  lt_cv_shlibpath_overrides_runpath=yes
11972fi
11973fi
11974rm -f core conftest.err conftest.$ac_objext \
11975    conftest$ac_exeext conftest.$ac_ext
11976    LDFLAGS=$save_LDFLAGS
11977    libdir=$save_libdir
11978
11979fi
11980
11981  shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
11982
11983  # This implies no fast_install, which is unacceptable.
11984  # Some rework will be needed to allow for fast_install
11985  # before this can be enabled.
11986  hardcode_into_libs=yes
11987
11988  # Append ld.so.conf contents to the search path
11989  if test -f /etc/ld.so.conf; then
11990    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' ' '`
11991    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11992  fi
11993
11994  # We used to test for /lib/ld.so.1 and disable shared libraries on
11995  # powerpc, because MkLinux only supported shared libraries with the
11996  # GNU dynamic linker.  Since this was broken with cross compilers,
11997  # most powerpc-linux boxes support dynamic linking these days and
11998  # people can always --disable-shared, the test was removed, and we
11999  # assume the GNU/Linux dynamic linker is in use.
12000  dynamic_linker='GNU/Linux ld.so'
12001  ;;
12002
12003netbsdelf*-gnu)
12004  version_type=linux
12005  need_lib_prefix=no
12006  need_version=no
12007  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12008  soname_spec='${libname}${release}${shared_ext}$major'
12009  shlibpath_var=LD_LIBRARY_PATH
12010  shlibpath_overrides_runpath=no
12011  hardcode_into_libs=yes
12012  dynamic_linker='NetBSD ld.elf_so'
12013  ;;
12014
12015netbsd*)
12016  version_type=sunos
12017  need_lib_prefix=no
12018  need_version=no
12019  if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12020    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12021    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12022    dynamic_linker='NetBSD (a.out) ld.so'
12023  else
12024    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12025    soname_spec='${libname}${release}${shared_ext}$major'
12026    dynamic_linker='NetBSD ld.elf_so'
12027  fi
12028  shlibpath_var=LD_LIBRARY_PATH
12029  shlibpath_overrides_runpath=yes
12030  hardcode_into_libs=yes
12031  ;;
12032
12033newsos6)
12034  version_type=linux # correct to gnu/linux during the next big refactor
12035  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12036  shlibpath_var=LD_LIBRARY_PATH
12037  shlibpath_overrides_runpath=yes
12038  ;;
12039
12040*nto* | *qnx*)
12041  version_type=qnx
12042  need_lib_prefix=no
12043  need_version=no
12044  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12045  soname_spec='${libname}${release}${shared_ext}$major'
12046  shlibpath_var=LD_LIBRARY_PATH
12047  shlibpath_overrides_runpath=no
12048  hardcode_into_libs=yes
12049  dynamic_linker='ldqnx.so'
12050  ;;
12051
12052openbsd*)
12053  version_type=sunos
12054  sys_lib_dlsearch_path_spec="/usr/lib"
12055  need_lib_prefix=no
12056  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
12057  case $host_os in
12058    openbsd3.3 | openbsd3.3.*)	need_version=yes ;;
12059    *)				need_version=no  ;;
12060  esac
12061  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12062  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12063  shlibpath_var=LD_LIBRARY_PATH
12064  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12065    case $host_os in
12066      openbsd2.[89] | openbsd2.[89].*)
12067	shlibpath_overrides_runpath=no
12068	;;
12069      *)
12070	shlibpath_overrides_runpath=yes
12071	;;
12072      esac
12073  else
12074    shlibpath_overrides_runpath=yes
12075  fi
12076  ;;
12077
12078os2*)
12079  libname_spec='$name'
12080  shrext_cmds=".dll"
12081  need_lib_prefix=no
12082  library_names_spec='$libname${shared_ext} $libname.a'
12083  dynamic_linker='OS/2 ld.exe'
12084  shlibpath_var=LIBPATH
12085  ;;
12086
12087osf3* | osf4* | osf5*)
12088  version_type=osf
12089  need_lib_prefix=no
12090  need_version=no
12091  soname_spec='${libname}${release}${shared_ext}$major'
12092  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12093  shlibpath_var=LD_LIBRARY_PATH
12094  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
12095  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
12096  ;;
12097
12098rdos*)
12099  dynamic_linker=no
12100  ;;
12101
12102solaris*)
12103  version_type=linux # correct to gnu/linux during the next big refactor
12104  need_lib_prefix=no
12105  need_version=no
12106  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12107  soname_spec='${libname}${release}${shared_ext}$major'
12108  shlibpath_var=LD_LIBRARY_PATH
12109  shlibpath_overrides_runpath=yes
12110  hardcode_into_libs=yes
12111  # ldd complains unless libraries are executable
12112  postinstall_cmds='chmod +x $lib'
12113  ;;
12114
12115sunos4*)
12116  version_type=sunos
12117  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12118  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
12119  shlibpath_var=LD_LIBRARY_PATH
12120  shlibpath_overrides_runpath=yes
12121  if test "$with_gnu_ld" = yes; then
12122    need_lib_prefix=no
12123  fi
12124  need_version=yes
12125  ;;
12126
12127sysv4 | sysv4.3*)
12128  version_type=linux # correct to gnu/linux during the next big refactor
12129  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12130  soname_spec='${libname}${release}${shared_ext}$major'
12131  shlibpath_var=LD_LIBRARY_PATH
12132  case $host_vendor in
12133    sni)
12134      shlibpath_overrides_runpath=no
12135      need_lib_prefix=no
12136      runpath_var=LD_RUN_PATH
12137      ;;
12138    siemens)
12139      need_lib_prefix=no
12140      ;;
12141    motorola)
12142      need_lib_prefix=no
12143      need_version=no
12144      shlibpath_overrides_runpath=no
12145      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
12146      ;;
12147  esac
12148  ;;
12149
12150sysv4*MP*)
12151  if test -d /usr/nec ;then
12152    version_type=linux # correct to gnu/linux during the next big refactor
12153    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
12154    soname_spec='$libname${shared_ext}.$major'
12155    shlibpath_var=LD_LIBRARY_PATH
12156  fi
12157  ;;
12158
12159sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
12160  version_type=freebsd-elf
12161  need_lib_prefix=no
12162  need_version=no
12163  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
12164  soname_spec='${libname}${release}${shared_ext}$major'
12165  shlibpath_var=LD_LIBRARY_PATH
12166  shlibpath_overrides_runpath=yes
12167  hardcode_into_libs=yes
12168  if test "$with_gnu_ld" = yes; then
12169    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
12170  else
12171    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
12172    case $host_os in
12173      sco3.2v5*)
12174        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
12175	;;
12176    esac
12177  fi
12178  sys_lib_dlsearch_path_spec='/usr/lib'
12179  ;;
12180
12181tpf*)
12182  # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
12183  version_type=linux # correct to gnu/linux during the next big refactor
12184  need_lib_prefix=no
12185  need_version=no
12186  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12187  shlibpath_var=LD_LIBRARY_PATH
12188  shlibpath_overrides_runpath=no
12189  hardcode_into_libs=yes
12190  ;;
12191
12192uts4*)
12193  version_type=linux # correct to gnu/linux during the next big refactor
12194  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12195  soname_spec='${libname}${release}${shared_ext}$major'
12196  shlibpath_var=LD_LIBRARY_PATH
12197  ;;
12198
12199*)
12200  dynamic_linker=no
12201  ;;
12202esac
12203{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
12204$as_echo "$dynamic_linker" >&6; }
12205test "$dynamic_linker" = no && can_build_shared=no
12206
12207variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
12208if test "$GCC" = yes; then
12209  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
12210fi
12211
12212if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
12213  sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
12214fi
12215if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
12216  sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
12217fi
12218
12219
12220
12221
12222
12223
12224
12225
12226
12227
12228
12229
12230
12231
12232
12233
12234
12235
12236
12237
12238
12239
12240
12241
12242
12243
12244
12245
12246
12247
12248
12249
12250
12251
12252
12253
12254
12255
12256
12257
12258
12259
12260
12261
12262
12263
12264
12265
12266
12267
12268
12269
12270
12271
12272
12273
12274
12275
12276
12277
12278
12279
12280
12281
12282
12283
12284
12285
12286
12287
12288
12289
12290
12291
12292
12293
12294
12295
12296
12297
12298
12299
12300
12301
12302
12303
12304
12305
12306
12307
12308
12309
12310  { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
12311$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
12312hardcode_action=
12313if test -n "$hardcode_libdir_flag_spec" ||
12314   test -n "$runpath_var" ||
12315   test "X$hardcode_automatic" = "Xyes" ; then
12316
12317  # We can hardcode non-existent directories.
12318  if test "$hardcode_direct" != no &&
12319     # If the only mechanism to avoid hardcoding is shlibpath_var, we
12320     # have to relink, otherwise we might link with an installed library
12321     # when we should be linking with a yet-to-be-installed one
12322     ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
12323     test "$hardcode_minus_L" != no; then
12324    # Linking always hardcodes the temporary library directory.
12325    hardcode_action=relink
12326  else
12327    # We can link without hardcoding, and we can hardcode nonexisting dirs.
12328    hardcode_action=immediate
12329  fi
12330else
12331  # We cannot hardcode anything, or else we can only hardcode existing
12332  # directories.
12333  hardcode_action=unsupported
12334fi
12335{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
12336$as_echo "$hardcode_action" >&6; }
12337
12338if test "$hardcode_action" = relink ||
12339   test "$inherit_rpath" = yes; then
12340  # Fast installation is not supported
12341  enable_fast_install=no
12342elif test "$shlibpath_overrides_runpath" = yes ||
12343     test "$enable_shared" = no; then
12344  # Fast installation is not necessary
12345  enable_fast_install=needless
12346fi
12347
12348
12349
12350
12351
12352
12353  if test "x$enable_dlopen" != xyes; then
12354  enable_dlopen=unknown
12355  enable_dlopen_self=unknown
12356  enable_dlopen_self_static=unknown
12357else
12358  lt_cv_dlopen=no
12359  lt_cv_dlopen_libs=
12360
12361  case $host_os in
12362  beos*)
12363    lt_cv_dlopen="load_add_on"
12364    lt_cv_dlopen_libs=
12365    lt_cv_dlopen_self=yes
12366    ;;
12367
12368  mingw* | pw32* | cegcc*)
12369    lt_cv_dlopen="LoadLibrary"
12370    lt_cv_dlopen_libs=
12371    ;;
12372
12373  cygwin*)
12374    lt_cv_dlopen="dlopen"
12375    lt_cv_dlopen_libs=
12376    ;;
12377
12378  darwin*)
12379  # if libdl is installed we need to link against it
12380    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12381$as_echo_n "checking for dlopen in -ldl... " >&6; }
12382if ${ac_cv_lib_dl_dlopen+:} false; then :
12383  $as_echo_n "(cached) " >&6
12384else
12385  ac_check_lib_save_LIBS=$LIBS
12386LIBS="-ldl  $LIBS"
12387cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12388/* end confdefs.h.  */
12389
12390/* Override any GCC internal prototype to avoid an error.
12391   Use char because int might match the return type of a GCC
12392   builtin and then its argument prototype would still apply.  */
12393#ifdef __cplusplus
12394extern "C"
12395#endif
12396char dlopen ();
12397int
12398main ()
12399{
12400return dlopen ();
12401  ;
12402  return 0;
12403}
12404_ACEOF
12405if ac_fn_c_try_link "$LINENO"; then :
12406  ac_cv_lib_dl_dlopen=yes
12407else
12408  ac_cv_lib_dl_dlopen=no
12409fi
12410rm -f core conftest.err conftest.$ac_objext \
12411    conftest$ac_exeext conftest.$ac_ext
12412LIBS=$ac_check_lib_save_LIBS
12413fi
12414{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12415$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12416if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
12417  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12418else
12419
12420    lt_cv_dlopen="dyld"
12421    lt_cv_dlopen_libs=
12422    lt_cv_dlopen_self=yes
12423
12424fi
12425
12426    ;;
12427
12428  *)
12429    ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
12430if test "x$ac_cv_func_shl_load" = xyes; then :
12431  lt_cv_dlopen="shl_load"
12432else
12433  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
12434$as_echo_n "checking for shl_load in -ldld... " >&6; }
12435if ${ac_cv_lib_dld_shl_load+:} false; then :
12436  $as_echo_n "(cached) " >&6
12437else
12438  ac_check_lib_save_LIBS=$LIBS
12439LIBS="-ldld  $LIBS"
12440cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12441/* end confdefs.h.  */
12442
12443/* Override any GCC internal prototype to avoid an error.
12444   Use char because int might match the return type of a GCC
12445   builtin and then its argument prototype would still apply.  */
12446#ifdef __cplusplus
12447extern "C"
12448#endif
12449char shl_load ();
12450int
12451main ()
12452{
12453return shl_load ();
12454  ;
12455  return 0;
12456}
12457_ACEOF
12458if ac_fn_c_try_link "$LINENO"; then :
12459  ac_cv_lib_dld_shl_load=yes
12460else
12461  ac_cv_lib_dld_shl_load=no
12462fi
12463rm -f core conftest.err conftest.$ac_objext \
12464    conftest$ac_exeext conftest.$ac_ext
12465LIBS=$ac_check_lib_save_LIBS
12466fi
12467{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
12468$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
12469if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
12470  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
12471else
12472  ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
12473if test "x$ac_cv_func_dlopen" = xyes; then :
12474  lt_cv_dlopen="dlopen"
12475else
12476  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12477$as_echo_n "checking for dlopen in -ldl... " >&6; }
12478if ${ac_cv_lib_dl_dlopen+:} false; then :
12479  $as_echo_n "(cached) " >&6
12480else
12481  ac_check_lib_save_LIBS=$LIBS
12482LIBS="-ldl  $LIBS"
12483cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12484/* end confdefs.h.  */
12485
12486/* Override any GCC internal prototype to avoid an error.
12487   Use char because int might match the return type of a GCC
12488   builtin and then its argument prototype would still apply.  */
12489#ifdef __cplusplus
12490extern "C"
12491#endif
12492char dlopen ();
12493int
12494main ()
12495{
12496return dlopen ();
12497  ;
12498  return 0;
12499}
12500_ACEOF
12501if ac_fn_c_try_link "$LINENO"; then :
12502  ac_cv_lib_dl_dlopen=yes
12503else
12504  ac_cv_lib_dl_dlopen=no
12505fi
12506rm -f core conftest.err conftest.$ac_objext \
12507    conftest$ac_exeext conftest.$ac_ext
12508LIBS=$ac_check_lib_save_LIBS
12509fi
12510{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12511$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12512if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
12513  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12514else
12515  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
12516$as_echo_n "checking for dlopen in -lsvld... " >&6; }
12517if ${ac_cv_lib_svld_dlopen+:} false; then :
12518  $as_echo_n "(cached) " >&6
12519else
12520  ac_check_lib_save_LIBS=$LIBS
12521LIBS="-lsvld  $LIBS"
12522cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12523/* end confdefs.h.  */
12524
12525/* Override any GCC internal prototype to avoid an error.
12526   Use char because int might match the return type of a GCC
12527   builtin and then its argument prototype would still apply.  */
12528#ifdef __cplusplus
12529extern "C"
12530#endif
12531char dlopen ();
12532int
12533main ()
12534{
12535return dlopen ();
12536  ;
12537  return 0;
12538}
12539_ACEOF
12540if ac_fn_c_try_link "$LINENO"; then :
12541  ac_cv_lib_svld_dlopen=yes
12542else
12543  ac_cv_lib_svld_dlopen=no
12544fi
12545rm -f core conftest.err conftest.$ac_objext \
12546    conftest$ac_exeext conftest.$ac_ext
12547LIBS=$ac_check_lib_save_LIBS
12548fi
12549{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
12550$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
12551if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
12552  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
12553else
12554  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
12555$as_echo_n "checking for dld_link in -ldld... " >&6; }
12556if ${ac_cv_lib_dld_dld_link+:} false; then :
12557  $as_echo_n "(cached) " >&6
12558else
12559  ac_check_lib_save_LIBS=$LIBS
12560LIBS="-ldld  $LIBS"
12561cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12562/* end confdefs.h.  */
12563
12564/* Override any GCC internal prototype to avoid an error.
12565   Use char because int might match the return type of a GCC
12566   builtin and then its argument prototype would still apply.  */
12567#ifdef __cplusplus
12568extern "C"
12569#endif
12570char dld_link ();
12571int
12572main ()
12573{
12574return dld_link ();
12575  ;
12576  return 0;
12577}
12578_ACEOF
12579if ac_fn_c_try_link "$LINENO"; then :
12580  ac_cv_lib_dld_dld_link=yes
12581else
12582  ac_cv_lib_dld_dld_link=no
12583fi
12584rm -f core conftest.err conftest.$ac_objext \
12585    conftest$ac_exeext conftest.$ac_ext
12586LIBS=$ac_check_lib_save_LIBS
12587fi
12588{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
12589$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
12590if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
12591  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
12592fi
12593
12594
12595fi
12596
12597
12598fi
12599
12600
12601fi
12602
12603
12604fi
12605
12606
12607fi
12608
12609    ;;
12610  esac
12611
12612  if test "x$lt_cv_dlopen" != xno; then
12613    enable_dlopen=yes
12614  else
12615    enable_dlopen=no
12616  fi
12617
12618  case $lt_cv_dlopen in
12619  dlopen)
12620    save_CPPFLAGS="$CPPFLAGS"
12621    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12622
12623    save_LDFLAGS="$LDFLAGS"
12624    wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12625
12626    save_LIBS="$LIBS"
12627    LIBS="$lt_cv_dlopen_libs $LIBS"
12628
12629    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
12630$as_echo_n "checking whether a program can dlopen itself... " >&6; }
12631if ${lt_cv_dlopen_self+:} false; then :
12632  $as_echo_n "(cached) " >&6
12633else
12634  	  if test "$cross_compiling" = yes; then :
12635  lt_cv_dlopen_self=cross
12636else
12637  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12638  lt_status=$lt_dlunknown
12639  cat > conftest.$ac_ext <<_LT_EOF
12640#line $LINENO "configure"
12641#include "confdefs.h"
12642
12643#if HAVE_DLFCN_H
12644#include <dlfcn.h>
12645#endif
12646
12647#include <stdio.h>
12648
12649#ifdef RTLD_GLOBAL
12650#  define LT_DLGLOBAL		RTLD_GLOBAL
12651#else
12652#  ifdef DL_GLOBAL
12653#    define LT_DLGLOBAL		DL_GLOBAL
12654#  else
12655#    define LT_DLGLOBAL		0
12656#  endif
12657#endif
12658
12659/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12660   find out it does not work in some platform. */
12661#ifndef LT_DLLAZY_OR_NOW
12662#  ifdef RTLD_LAZY
12663#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
12664#  else
12665#    ifdef DL_LAZY
12666#      define LT_DLLAZY_OR_NOW		DL_LAZY
12667#    else
12668#      ifdef RTLD_NOW
12669#        define LT_DLLAZY_OR_NOW	RTLD_NOW
12670#      else
12671#        ifdef DL_NOW
12672#          define LT_DLLAZY_OR_NOW	DL_NOW
12673#        else
12674#          define LT_DLLAZY_OR_NOW	0
12675#        endif
12676#      endif
12677#    endif
12678#  endif
12679#endif
12680
12681/* When -fvisbility=hidden is used, assume the code has been annotated
12682   correspondingly for the symbols needed.  */
12683#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12684int fnord () __attribute__((visibility("default")));
12685#endif
12686
12687int fnord () { return 42; }
12688int main ()
12689{
12690  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12691  int status = $lt_dlunknown;
12692
12693  if (self)
12694    {
12695      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
12696      else
12697        {
12698	  if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
12699          else puts (dlerror ());
12700	}
12701      /* dlclose (self); */
12702    }
12703  else
12704    puts (dlerror ());
12705
12706  return status;
12707}
12708_LT_EOF
12709  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12710  (eval $ac_link) 2>&5
12711  ac_status=$?
12712  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12713  test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
12714    (./conftest; exit; ) >&5 2>/dev/null
12715    lt_status=$?
12716    case x$lt_status in
12717      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12718      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12719      x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
12720    esac
12721  else :
12722    # compilation failed
12723    lt_cv_dlopen_self=no
12724  fi
12725fi
12726rm -fr conftest*
12727
12728
12729fi
12730{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
12731$as_echo "$lt_cv_dlopen_self" >&6; }
12732
12733    if test "x$lt_cv_dlopen_self" = xyes; then
12734      wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
12735      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
12736$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
12737if ${lt_cv_dlopen_self_static+:} false; then :
12738  $as_echo_n "(cached) " >&6
12739else
12740  	  if test "$cross_compiling" = yes; then :
12741  lt_cv_dlopen_self_static=cross
12742else
12743  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12744  lt_status=$lt_dlunknown
12745  cat > conftest.$ac_ext <<_LT_EOF
12746#line $LINENO "configure"
12747#include "confdefs.h"
12748
12749#if HAVE_DLFCN_H
12750#include <dlfcn.h>
12751#endif
12752
12753#include <stdio.h>
12754
12755#ifdef RTLD_GLOBAL
12756#  define LT_DLGLOBAL		RTLD_GLOBAL
12757#else
12758#  ifdef DL_GLOBAL
12759#    define LT_DLGLOBAL		DL_GLOBAL
12760#  else
12761#    define LT_DLGLOBAL		0
12762#  endif
12763#endif
12764
12765/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12766   find out it does not work in some platform. */
12767#ifndef LT_DLLAZY_OR_NOW
12768#  ifdef RTLD_LAZY
12769#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
12770#  else
12771#    ifdef DL_LAZY
12772#      define LT_DLLAZY_OR_NOW		DL_LAZY
12773#    else
12774#      ifdef RTLD_NOW
12775#        define LT_DLLAZY_OR_NOW	RTLD_NOW
12776#      else
12777#        ifdef DL_NOW
12778#          define LT_DLLAZY_OR_NOW	DL_NOW
12779#        else
12780#          define LT_DLLAZY_OR_NOW	0
12781#        endif
12782#      endif
12783#    endif
12784#  endif
12785#endif
12786
12787/* When -fvisbility=hidden is used, assume the code has been annotated
12788   correspondingly for the symbols needed.  */
12789#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12790int fnord () __attribute__((visibility("default")));
12791#endif
12792
12793int fnord () { return 42; }
12794int main ()
12795{
12796  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12797  int status = $lt_dlunknown;
12798
12799  if (self)
12800    {
12801      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
12802      else
12803        {
12804	  if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
12805          else puts (dlerror ());
12806	}
12807      /* dlclose (self); */
12808    }
12809  else
12810    puts (dlerror ());
12811
12812  return status;
12813}
12814_LT_EOF
12815  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12816  (eval $ac_link) 2>&5
12817  ac_status=$?
12818  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12819  test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
12820    (./conftest; exit; ) >&5 2>/dev/null
12821    lt_status=$?
12822    case x$lt_status in
12823      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12824      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12825      x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
12826    esac
12827  else :
12828    # compilation failed
12829    lt_cv_dlopen_self_static=no
12830  fi
12831fi
12832rm -fr conftest*
12833
12834
12835fi
12836{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
12837$as_echo "$lt_cv_dlopen_self_static" >&6; }
12838    fi
12839
12840    CPPFLAGS="$save_CPPFLAGS"
12841    LDFLAGS="$save_LDFLAGS"
12842    LIBS="$save_LIBS"
12843    ;;
12844  esac
12845
12846  case $lt_cv_dlopen_self in
12847  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12848  *) enable_dlopen_self=unknown ;;
12849  esac
12850
12851  case $lt_cv_dlopen_self_static in
12852  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12853  *) enable_dlopen_self_static=unknown ;;
12854  esac
12855fi
12856
12857
12858
12859
12860
12861
12862
12863
12864
12865
12866
12867
12868
12869
12870
12871
12872
12873striplib=
12874old_striplib=
12875{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
12876$as_echo_n "checking whether stripping libraries is possible... " >&6; }
12877if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
12878  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
12879  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
12880  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12881$as_echo "yes" >&6; }
12882else
12883# FIXME - insert some real tests, host_os isn't really good enough
12884  case $host_os in
12885  darwin*)
12886    if test -n "$STRIP" ; then
12887      striplib="$STRIP -x"
12888      old_striplib="$STRIP -S"
12889      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12890$as_echo "yes" >&6; }
12891    else
12892      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12893$as_echo "no" >&6; }
12894    fi
12895    ;;
12896  *)
12897    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12898$as_echo "no" >&6; }
12899    ;;
12900  esac
12901fi
12902
12903
12904
12905
12906
12907
12908
12909
12910
12911
12912
12913
12914  # Report which library types will actually be built
12915  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
12916$as_echo_n "checking if libtool supports shared libraries... " >&6; }
12917  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
12918$as_echo "$can_build_shared" >&6; }
12919
12920  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
12921$as_echo_n "checking whether to build shared libraries... " >&6; }
12922  test "$can_build_shared" = "no" && enable_shared=no
12923
12924  # On AIX, shared libraries and static libraries use the same namespace, and
12925  # are all built from PIC.
12926  case $host_os in
12927  aix3*)
12928    test "$enable_shared" = yes && enable_static=no
12929    if test -n "$RANLIB"; then
12930      archive_cmds="$archive_cmds~\$RANLIB \$lib"
12931      postinstall_cmds='$RANLIB $lib'
12932    fi
12933    ;;
12934
12935  aix[4-9]*)
12936    if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
12937      test "$enable_shared" = yes && enable_static=no
12938    fi
12939    ;;
12940  esac
12941  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
12942$as_echo "$enable_shared" >&6; }
12943
12944  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
12945$as_echo_n "checking whether to build static libraries... " >&6; }
12946  # Make sure either enable_shared or enable_static is yes.
12947  test "$enable_shared" = yes || enable_static=yes
12948  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
12949$as_echo "$enable_static" >&6; }
12950
12951
12952
12953
12954fi
12955ac_ext=c
12956ac_cpp='$CPP $CPPFLAGS'
12957ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12958ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12959ac_compiler_gnu=$ac_cv_c_compiler_gnu
12960
12961CC="$lt_save_CC"
12962
12963      if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
12964    ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
12965    (test "X$CXX" != "Xg++"))) ; then
12966  ac_ext=cpp
12967ac_cpp='$CXXCPP $CPPFLAGS'
12968ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12969ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12970ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12971{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
12972$as_echo_n "checking how to run the C++ preprocessor... " >&6; }
12973if test -z "$CXXCPP"; then
12974  if ${ac_cv_prog_CXXCPP+:} false; then :
12975  $as_echo_n "(cached) " >&6
12976else
12977      # Double quotes because CXXCPP needs to be expanded
12978    for CXXCPP in "$CXX -E" "/lib/cpp"
12979    do
12980      ac_preproc_ok=false
12981for ac_cxx_preproc_warn_flag in '' yes
12982do
12983  # Use a header file that comes with gcc, so configuring glibc
12984  # with a fresh cross-compiler works.
12985  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12986  # <limits.h> exists even on freestanding compilers.
12987  # On the NeXT, cc -E runs the code through the compiler's parser,
12988  # not just through cpp. "Syntax error" is here to catch this case.
12989  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12990/* end confdefs.h.  */
12991#ifdef __STDC__
12992# include <limits.h>
12993#else
12994# include <assert.h>
12995#endif
12996		     Syntax error
12997_ACEOF
12998if ac_fn_cxx_try_cpp "$LINENO"; then :
12999
13000else
13001  # Broken: fails on valid input.
13002continue
13003fi
13004rm -f conftest.err conftest.i conftest.$ac_ext
13005
13006  # OK, works on sane cases.  Now check whether nonexistent headers
13007  # can be detected and how.
13008  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13009/* end confdefs.h.  */
13010#include <ac_nonexistent.h>
13011_ACEOF
13012if ac_fn_cxx_try_cpp "$LINENO"; then :
13013  # Broken: success on invalid input.
13014continue
13015else
13016  # Passes both tests.
13017ac_preproc_ok=:
13018break
13019fi
13020rm -f conftest.err conftest.i conftest.$ac_ext
13021
13022done
13023# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
13024rm -f conftest.i conftest.err conftest.$ac_ext
13025if $ac_preproc_ok; then :
13026  break
13027fi
13028
13029    done
13030    ac_cv_prog_CXXCPP=$CXXCPP
13031
13032fi
13033  CXXCPP=$ac_cv_prog_CXXCPP
13034else
13035  ac_cv_prog_CXXCPP=$CXXCPP
13036fi
13037{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
13038$as_echo "$CXXCPP" >&6; }
13039ac_preproc_ok=false
13040for ac_cxx_preproc_warn_flag in '' yes
13041do
13042  # Use a header file that comes with gcc, so configuring glibc
13043  # with a fresh cross-compiler works.
13044  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13045  # <limits.h> exists even on freestanding compilers.
13046  # On the NeXT, cc -E runs the code through the compiler's parser,
13047  # not just through cpp. "Syntax error" is here to catch this case.
13048  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13049/* end confdefs.h.  */
13050#ifdef __STDC__
13051# include <limits.h>
13052#else
13053# include <assert.h>
13054#endif
13055		     Syntax error
13056_ACEOF
13057if ac_fn_cxx_try_cpp "$LINENO"; then :
13058
13059else
13060  # Broken: fails on valid input.
13061continue
13062fi
13063rm -f conftest.err conftest.i conftest.$ac_ext
13064
13065  # OK, works on sane cases.  Now check whether nonexistent headers
13066  # can be detected and how.
13067  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13068/* end confdefs.h.  */
13069#include <ac_nonexistent.h>
13070_ACEOF
13071if ac_fn_cxx_try_cpp "$LINENO"; then :
13072  # Broken: success on invalid input.
13073continue
13074else
13075  # Passes both tests.
13076ac_preproc_ok=:
13077break
13078fi
13079rm -f conftest.err conftest.i conftest.$ac_ext
13080
13081done
13082# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
13083rm -f conftest.i conftest.err conftest.$ac_ext
13084if $ac_preproc_ok; then :
13085
13086else
13087  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13088$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13089as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
13090See \`config.log' for more details" "$LINENO" 5; }
13091fi
13092
13093ac_ext=c
13094ac_cpp='$CPP $CPPFLAGS'
13095ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13096ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13097ac_compiler_gnu=$ac_cv_c_compiler_gnu
13098
13099else
13100  _lt_caught_CXX_error=yes
13101fi
13102
13103ac_ext=cpp
13104ac_cpp='$CXXCPP $CPPFLAGS'
13105ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13106ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13107ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13108
13109archive_cmds_need_lc_CXX=no
13110allow_undefined_flag_CXX=
13111always_export_symbols_CXX=no
13112archive_expsym_cmds_CXX=
13113compiler_needs_object_CXX=no
13114export_dynamic_flag_spec_CXX=
13115hardcode_direct_CXX=no
13116hardcode_direct_absolute_CXX=no
13117hardcode_libdir_flag_spec_CXX=
13118hardcode_libdir_separator_CXX=
13119hardcode_minus_L_CXX=no
13120hardcode_shlibpath_var_CXX=unsupported
13121hardcode_automatic_CXX=no
13122inherit_rpath_CXX=no
13123module_cmds_CXX=
13124module_expsym_cmds_CXX=
13125link_all_deplibs_CXX=unknown
13126old_archive_cmds_CXX=$old_archive_cmds
13127reload_flag_CXX=$reload_flag
13128reload_cmds_CXX=$reload_cmds
13129no_undefined_flag_CXX=
13130whole_archive_flag_spec_CXX=
13131enable_shared_with_static_runtimes_CXX=no
13132
13133# Source file extension for C++ test sources.
13134ac_ext=cpp
13135
13136# Object file extension for compiled C++ test sources.
13137objext=o
13138objext_CXX=$objext
13139
13140# No sense in running all these tests if we already determined that
13141# the CXX compiler isn't working.  Some variables (like enable_shared)
13142# are currently assumed to apply to all compilers on this platform,
13143# and will be corrupted by setting them based on a non-working compiler.
13144if test "$_lt_caught_CXX_error" != yes; then
13145  # Code to be used in simple compile tests
13146  lt_simple_compile_test_code="int some_variable = 0;"
13147
13148  # Code to be used in simple link tests
13149  lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
13150
13151  # ltmain only uses $CC for tagged configurations so make sure $CC is set.
13152
13153
13154
13155
13156
13157
13158# If no C compiler was specified, use CC.
13159LTCC=${LTCC-"$CC"}
13160
13161# If no C compiler flags were specified, use CFLAGS.
13162LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
13163
13164# Allow CC to be a program name with arguments.
13165compiler=$CC
13166
13167
13168  # save warnings/boilerplate of simple test code
13169  ac_outfile=conftest.$ac_objext
13170echo "$lt_simple_compile_test_code" >conftest.$ac_ext
13171eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13172_lt_compiler_boilerplate=`cat conftest.err`
13173$RM conftest*
13174
13175  ac_outfile=conftest.$ac_objext
13176echo "$lt_simple_link_test_code" >conftest.$ac_ext
13177eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13178_lt_linker_boilerplate=`cat conftest.err`
13179$RM -r conftest*
13180
13181
13182  # Allow CC to be a program name with arguments.
13183  lt_save_CC=$CC
13184  lt_save_CFLAGS=$CFLAGS
13185  lt_save_LD=$LD
13186  lt_save_GCC=$GCC
13187  GCC=$GXX
13188  lt_save_with_gnu_ld=$with_gnu_ld
13189  lt_save_path_LD=$lt_cv_path_LD
13190  if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
13191    lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
13192  else
13193    $as_unset lt_cv_prog_gnu_ld
13194  fi
13195  if test -n "${lt_cv_path_LDCXX+set}"; then
13196    lt_cv_path_LD=$lt_cv_path_LDCXX
13197  else
13198    $as_unset lt_cv_path_LD
13199  fi
13200  test -z "${LDCXX+set}" || LD=$LDCXX
13201  CC=${CXX-"c++"}
13202  CFLAGS=$CXXFLAGS
13203  compiler=$CC
13204  compiler_CXX=$CC
13205  for cc_temp in $compiler""; do
13206  case $cc_temp in
13207    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
13208    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
13209    \-*) ;;
13210    *) break;;
13211  esac
13212done
13213cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
13214
13215
13216  if test -n "$compiler"; then
13217    # We don't want -fno-exception when compiling C++ code, so set the
13218    # no_builtin_flag separately
13219    if test "$GXX" = yes; then
13220      lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
13221    else
13222      lt_prog_compiler_no_builtin_flag_CXX=
13223    fi
13224
13225    if test "$GXX" = yes; then
13226      # Set up default GNU C++ configuration
13227
13228
13229
13230# Check whether --with-gnu-ld was given.
13231if test "${with_gnu_ld+set}" = set; then :
13232  withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
13233else
13234  with_gnu_ld=no
13235fi
13236
13237ac_prog=ld
13238if test "$GCC" = yes; then
13239  # Check if gcc -print-prog-name=ld gives a path.
13240  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
13241$as_echo_n "checking for ld used by $CC... " >&6; }
13242  case $host in
13243  *-*-mingw*)
13244    # gcc leaves a trailing carriage return which upsets mingw
13245    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
13246  *)
13247    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
13248  esac
13249  case $ac_prog in
13250    # Accept absolute paths.
13251    [\\/]* | ?:[\\/]*)
13252      re_direlt='/[^/][^/]*/\.\./'
13253      # Canonicalize the pathname of ld
13254      ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
13255      while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
13256	ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
13257      done
13258      test -z "$LD" && LD="$ac_prog"
13259      ;;
13260  "")
13261    # If it fails, then pretend we aren't using GCC.
13262    ac_prog=ld
13263    ;;
13264  *)
13265    # If it is relative, then search for the first ld in PATH.
13266    with_gnu_ld=unknown
13267    ;;
13268  esac
13269elif test "$with_gnu_ld" = yes; then
13270  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
13271$as_echo_n "checking for GNU ld... " >&6; }
13272else
13273  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
13274$as_echo_n "checking for non-GNU ld... " >&6; }
13275fi
13276if ${lt_cv_path_LD+:} false; then :
13277  $as_echo_n "(cached) " >&6
13278else
13279  if test -z "$LD"; then
13280  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
13281  for ac_dir in $PATH; do
13282    IFS="$lt_save_ifs"
13283    test -z "$ac_dir" && ac_dir=.
13284    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
13285      lt_cv_path_LD="$ac_dir/$ac_prog"
13286      # Check to see if the program is GNU ld.  I'd rather use --version,
13287      # but apparently some variants of GNU ld only accept -v.
13288      # Break only if it was the GNU/non-GNU ld that we prefer.
13289      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
13290      *GNU* | *'with BFD'*)
13291	test "$with_gnu_ld" != no && break
13292	;;
13293      *)
13294	test "$with_gnu_ld" != yes && break
13295	;;
13296      esac
13297    fi
13298  done
13299  IFS="$lt_save_ifs"
13300else
13301  lt_cv_path_LD="$LD" # Let the user override the test with a path.
13302fi
13303fi
13304
13305LD="$lt_cv_path_LD"
13306if test -n "$LD"; then
13307  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
13308$as_echo "$LD" >&6; }
13309else
13310  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13311$as_echo "no" >&6; }
13312fi
13313test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
13314{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
13315$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
13316if ${lt_cv_prog_gnu_ld+:} false; then :
13317  $as_echo_n "(cached) " >&6
13318else
13319  # I'd rather use --version here, but apparently some GNU lds only accept -v.
13320case `$LD -v 2>&1 </dev/null` in
13321*GNU* | *'with BFD'*)
13322  lt_cv_prog_gnu_ld=yes
13323  ;;
13324*)
13325  lt_cv_prog_gnu_ld=no
13326  ;;
13327esac
13328fi
13329{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
13330$as_echo "$lt_cv_prog_gnu_ld" >&6; }
13331with_gnu_ld=$lt_cv_prog_gnu_ld
13332
13333
13334
13335
13336
13337
13338
13339      # Check if GNU C++ uses GNU ld as the underlying linker, since the
13340      # archiving commands below assume that GNU ld is being used.
13341      if test "$with_gnu_ld" = yes; then
13342        archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13343        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'
13344
13345        hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13346        export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13347
13348        # If archive_cmds runs LD, not CC, wlarc should be empty
13349        # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
13350        #     investigate it a little bit more. (MM)
13351        wlarc='${wl}'
13352
13353        # ancient GNU ld didn't support --whole-archive et. al.
13354        if eval "`$CC -print-prog-name=ld` --help 2>&1" |
13355	  $GREP 'no-whole-archive' > /dev/null; then
13356          whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13357        else
13358          whole_archive_flag_spec_CXX=
13359        fi
13360      else
13361        with_gnu_ld=no
13362        wlarc=
13363
13364        # A generic and very simple default shared library creation
13365        # command for GNU C++ for the case where it uses the native
13366        # linker, instead of GNU ld.  If possible, this setting should
13367        # overridden to take advantage of the native linker features on
13368        # the platform it is being used on.
13369        archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
13370      fi
13371
13372      # Commands to make compiler produce verbose output that lists
13373      # what "hidden" libraries, object files and flags are used when
13374      # linking a shared library.
13375      output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13376
13377    else
13378      GXX=no
13379      with_gnu_ld=no
13380      wlarc=
13381    fi
13382
13383    # PORTME: fill in a description of your system's C++ link characteristics
13384    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13385$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
13386    ld_shlibs_CXX=yes
13387    case $host_os in
13388      aix3*)
13389        # FIXME: insert proper C++ library support
13390        ld_shlibs_CXX=no
13391        ;;
13392      aix[4-9]*)
13393        if test "$host_cpu" = ia64; then
13394          # On IA64, the linker does run time linking by default, so we don't
13395          # have to do anything special.
13396          aix_use_runtimelinking=no
13397          exp_sym_flag='-Bexport'
13398          no_entry_flag=""
13399        else
13400          aix_use_runtimelinking=no
13401
13402          # Test if we are trying to use run time linking or normal
13403          # AIX style linking. If -brtl is somewhere in LDFLAGS, we
13404          # need to do runtime linking.
13405          case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
13406	    for ld_flag in $LDFLAGS; do
13407	      case $ld_flag in
13408	      *-brtl*)
13409	        aix_use_runtimelinking=yes
13410	        break
13411	        ;;
13412	      esac
13413	    done
13414	    ;;
13415          esac
13416
13417          exp_sym_flag='-bexport'
13418          no_entry_flag='-bnoentry'
13419        fi
13420
13421        # When large executables or shared objects are built, AIX ld can
13422        # have problems creating the table of contents.  If linking a library
13423        # or program results in "error TOC overflow" add -mminimal-toc to
13424        # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
13425        # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
13426
13427        archive_cmds_CXX=''
13428        hardcode_direct_CXX=yes
13429        hardcode_direct_absolute_CXX=yes
13430        hardcode_libdir_separator_CXX=':'
13431        link_all_deplibs_CXX=yes
13432        file_list_spec_CXX='${wl}-f,'
13433
13434        if test "$GXX" = yes; then
13435          case $host_os in aix4.[012]|aix4.[012].*)
13436          # We only want to do this on AIX 4.2 and lower, the check
13437          # below for broken collect2 doesn't work under 4.3+
13438	  collect2name=`${CC} -print-prog-name=collect2`
13439	  if test -f "$collect2name" &&
13440	     strings "$collect2name" | $GREP resolve_lib_name >/dev/null
13441	  then
13442	    # We have reworked collect2
13443	    :
13444	  else
13445	    # We have old collect2
13446	    hardcode_direct_CXX=unsupported
13447	    # It fails to find uninstalled libraries when the uninstalled
13448	    # path is not listed in the libpath.  Setting hardcode_minus_L
13449	    # to unsupported forces relinking
13450	    hardcode_minus_L_CXX=yes
13451	    hardcode_libdir_flag_spec_CXX='-L$libdir'
13452	    hardcode_libdir_separator_CXX=
13453	  fi
13454          esac
13455          shared_flag='-shared'
13456	  if test "$aix_use_runtimelinking" = yes; then
13457	    shared_flag="$shared_flag "'${wl}-G'
13458	  fi
13459        else
13460          # not using gcc
13461          if test "$host_cpu" = ia64; then
13462	  # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
13463	  # chokes on -Wl,-G. The following line is correct:
13464	  shared_flag='-G'
13465          else
13466	    if test "$aix_use_runtimelinking" = yes; then
13467	      shared_flag='${wl}-G'
13468	    else
13469	      shared_flag='${wl}-bM:SRE'
13470	    fi
13471          fi
13472        fi
13473
13474        export_dynamic_flag_spec_CXX='${wl}-bexpall'
13475        # It seems that -bexpall does not export symbols beginning with
13476        # underscore (_), so it is better to generate a list of symbols to
13477	# export.
13478        always_export_symbols_CXX=yes
13479        if test "$aix_use_runtimelinking" = yes; then
13480          # Warning - without using the other runtime loading flags (-brtl),
13481          # -berok will link without error, but may produce a broken library.
13482          allow_undefined_flag_CXX='-berok'
13483          # Determine the default libpath from the value encoded in an empty
13484          # executable.
13485          if test "${lt_cv_aix_libpath+set}" = set; then
13486  aix_libpath=$lt_cv_aix_libpath
13487else
13488  if ${lt_cv_aix_libpath__CXX+:} false; then :
13489  $as_echo_n "(cached) " >&6
13490else
13491  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13492/* end confdefs.h.  */
13493
13494int
13495main ()
13496{
13497
13498  ;
13499  return 0;
13500}
13501_ACEOF
13502if ac_fn_cxx_try_link "$LINENO"; then :
13503
13504  lt_aix_libpath_sed='
13505      /Import File Strings/,/^$/ {
13506	  /^0/ {
13507	      s/^0  *\([^ ]*\) *$/\1/
13508	      p
13509	  }
13510      }'
13511  lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13512  # Check for a 64-bit object if we didn't find anything.
13513  if test -z "$lt_cv_aix_libpath__CXX"; then
13514    lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13515  fi
13516fi
13517rm -f core conftest.err conftest.$ac_objext \
13518    conftest$ac_exeext conftest.$ac_ext
13519  if test -z "$lt_cv_aix_libpath__CXX"; then
13520    lt_cv_aix_libpath__CXX="/usr/lib:/lib"
13521  fi
13522
13523fi
13524
13525  aix_libpath=$lt_cv_aix_libpath__CXX
13526fi
13527
13528          hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
13529
13530          archive_expsym_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
13531        else
13532          if test "$host_cpu" = ia64; then
13533	    hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
13534	    allow_undefined_flag_CXX="-z nodefs"
13535	    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"
13536          else
13537	    # Determine the default libpath from the value encoded in an
13538	    # empty executable.
13539	    if test "${lt_cv_aix_libpath+set}" = set; then
13540  aix_libpath=$lt_cv_aix_libpath
13541else
13542  if ${lt_cv_aix_libpath__CXX+:} false; then :
13543  $as_echo_n "(cached) " >&6
13544else
13545  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13546/* end confdefs.h.  */
13547
13548int
13549main ()
13550{
13551
13552  ;
13553  return 0;
13554}
13555_ACEOF
13556if ac_fn_cxx_try_link "$LINENO"; then :
13557
13558  lt_aix_libpath_sed='
13559      /Import File Strings/,/^$/ {
13560	  /^0/ {
13561	      s/^0  *\([^ ]*\) *$/\1/
13562	      p
13563	  }
13564      }'
13565  lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13566  # Check for a 64-bit object if we didn't find anything.
13567  if test -z "$lt_cv_aix_libpath__CXX"; then
13568    lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13569  fi
13570fi
13571rm -f core conftest.err conftest.$ac_objext \
13572    conftest$ac_exeext conftest.$ac_ext
13573  if test -z "$lt_cv_aix_libpath__CXX"; then
13574    lt_cv_aix_libpath__CXX="/usr/lib:/lib"
13575  fi
13576
13577fi
13578
13579  aix_libpath=$lt_cv_aix_libpath__CXX
13580fi
13581
13582	    hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
13583	    # Warning - without using the other run time loading flags,
13584	    # -berok will link without error, but may produce a broken library.
13585	    no_undefined_flag_CXX=' ${wl}-bernotok'
13586	    allow_undefined_flag_CXX=' ${wl}-berok'
13587	    if test "$with_gnu_ld" = yes; then
13588	      # We only use this code for GNU lds that support --whole-archive.
13589	      whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
13590	    else
13591	      # Exported symbols can be pulled into shared objects from archives
13592	      whole_archive_flag_spec_CXX='$convenience'
13593	    fi
13594	    archive_cmds_need_lc_CXX=yes
13595	    # This is similar to how AIX traditionally builds its shared
13596	    # libraries.
13597	    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'
13598          fi
13599        fi
13600        ;;
13601
13602      beos*)
13603	if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
13604	  allow_undefined_flag_CXX=unsupported
13605	  # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
13606	  # support --undefined.  This deserves some investigation.  FIXME
13607	  archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13608	else
13609	  ld_shlibs_CXX=no
13610	fi
13611	;;
13612
13613      chorus*)
13614        case $cc_basename in
13615          *)
13616	  # FIXME: insert proper C++ library support
13617	  ld_shlibs_CXX=no
13618	  ;;
13619        esac
13620        ;;
13621
13622      cygwin* | mingw* | pw32* | cegcc*)
13623	case $GXX,$cc_basename in
13624	,cl* | no,cl*)
13625	  # Native MSVC
13626	  # hardcode_libdir_flag_spec is actually meaningless, as there is
13627	  # no search path for DLLs.
13628	  hardcode_libdir_flag_spec_CXX=' '
13629	  allow_undefined_flag_CXX=unsupported
13630	  always_export_symbols_CXX=yes
13631	  file_list_spec_CXX='@'
13632	  # Tell ltmain to make .lib files, not .a files.
13633	  libext=lib
13634	  # Tell ltmain to make .dll files, not .so files.
13635	  shrext_cmds=".dll"
13636	  # FIXME: Setting linknames here is a bad hack.
13637	  archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
13638	  archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13639	      $SED -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
13640	    else
13641	      $SED -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
13642	    fi~
13643	    $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
13644	    linknames='
13645	  # The linker will not automatically build a static lib if we build a DLL.
13646	  # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true'
13647	  enable_shared_with_static_runtimes_CXX=yes
13648	  # Don't use ranlib
13649	  old_postinstall_cmds_CXX='chmod 644 $oldlib'
13650	  postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~
13651	    lt_tool_outputfile="@TOOL_OUTPUT@"~
13652	    case $lt_outputfile in
13653	      *.exe|*.EXE) ;;
13654	      *)
13655		lt_outputfile="$lt_outputfile.exe"
13656		lt_tool_outputfile="$lt_tool_outputfile.exe"
13657		;;
13658	    esac~
13659	    func_to_tool_file "$lt_outputfile"~
13660	    if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
13661	      $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
13662	      $RM "$lt_outputfile.manifest";
13663	    fi'
13664	  ;;
13665	*)
13666	  # g++
13667	  # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
13668	  # as there is no search path for DLLs.
13669	  hardcode_libdir_flag_spec_CXX='-L$libdir'
13670	  export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
13671	  allow_undefined_flag_CXX=unsupported
13672	  always_export_symbols_CXX=no
13673	  enable_shared_with_static_runtimes_CXX=yes
13674
13675	  if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
13676	    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'
13677	    # If the export-symbols file already is a .def file (1st line
13678	    # is EXPORTS), use it as is; otherwise, prepend...
13679	    archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13680	      cp $export_symbols $output_objdir/$soname.def;
13681	    else
13682	      echo EXPORTS > $output_objdir/$soname.def;
13683	      cat $export_symbols >> $output_objdir/$soname.def;
13684	    fi~
13685	    $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'
13686	  else
13687	    ld_shlibs_CXX=no
13688	  fi
13689	  ;;
13690	esac
13691	;;
13692      darwin* | rhapsody*)
13693
13694
13695  archive_cmds_need_lc_CXX=no
13696  hardcode_direct_CXX=no
13697  hardcode_automatic_CXX=yes
13698  hardcode_shlibpath_var_CXX=unsupported
13699  if test "$lt_cv_ld_force_load" = "yes"; then
13700    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\"`'
13701
13702  else
13703    whole_archive_flag_spec_CXX=''
13704  fi
13705  link_all_deplibs_CXX=yes
13706  allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
13707  case $cc_basename in
13708     ifort*) _lt_dar_can_shared=yes ;;
13709     *) _lt_dar_can_shared=$GCC ;;
13710  esac
13711  if test "$_lt_dar_can_shared" = "yes"; then
13712    output_verbose_link_cmd=func_echo_all
13713    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}"
13714    module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
13715    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}"
13716    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}"
13717       if test "$lt_cv_apple_cc_single_mod" != "yes"; then
13718      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}"
13719      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}"
13720    fi
13721
13722  else
13723  ld_shlibs_CXX=no
13724  fi
13725
13726	;;
13727
13728      dgux*)
13729        case $cc_basename in
13730          ec++*)
13731	    # FIXME: insert proper C++ library support
13732	    ld_shlibs_CXX=no
13733	    ;;
13734          ghcx*)
13735	    # Green Hills C++ Compiler
13736	    # FIXME: insert proper C++ library support
13737	    ld_shlibs_CXX=no
13738	    ;;
13739          *)
13740	    # FIXME: insert proper C++ library support
13741	    ld_shlibs_CXX=no
13742	    ;;
13743        esac
13744        ;;
13745
13746      freebsd2.*)
13747        # C++ shared libraries reported to be fairly broken before
13748	# switch to ELF
13749        ld_shlibs_CXX=no
13750        ;;
13751
13752      freebsd-elf*)
13753        archive_cmds_need_lc_CXX=no
13754        ;;
13755
13756      freebsd* | dragonfly*)
13757        # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
13758        # conventions
13759        ld_shlibs_CXX=yes
13760        ;;
13761
13762      haiku*)
13763        archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13764        link_all_deplibs_CXX=yes
13765        ;;
13766
13767      hpux9*)
13768        hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
13769        hardcode_libdir_separator_CXX=:
13770        export_dynamic_flag_spec_CXX='${wl}-E'
13771        hardcode_direct_CXX=yes
13772        hardcode_minus_L_CXX=yes # Not in the search PATH,
13773				             # but as the default
13774				             # location of the library.
13775
13776        case $cc_basename in
13777          CC*)
13778            # FIXME: insert proper C++ library support
13779            ld_shlibs_CXX=no
13780            ;;
13781          aCC*)
13782            archive_cmds_CXX='$RM $output_objdir/$soname~$CC -b ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
13783            # Commands to make compiler produce verbose output that lists
13784            # what "hidden" libraries, object files and flags are used when
13785            # linking a shared library.
13786            #
13787            # There doesn't appear to be a way to prevent this compiler from
13788            # explicitly linking system object files so we need to strip them
13789            # from the output so that they don't get included in the library
13790            # dependencies.
13791            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"'
13792            ;;
13793          *)
13794            if test "$GXX" = yes; then
13795              archive_cmds_CXX='$RM $output_objdir/$soname~$CC -shared -nostdlib $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
13796            else
13797              # FIXME: insert proper C++ library support
13798              ld_shlibs_CXX=no
13799            fi
13800            ;;
13801        esac
13802        ;;
13803
13804      hpux10*|hpux11*)
13805        if test $with_gnu_ld = no; then
13806	  hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
13807	  hardcode_libdir_separator_CXX=:
13808
13809          case $host_cpu in
13810            hppa*64*|ia64*)
13811              ;;
13812            *)
13813	      export_dynamic_flag_spec_CXX='${wl}-E'
13814              ;;
13815          esac
13816        fi
13817        case $host_cpu in
13818          hppa*64*|ia64*)
13819            hardcode_direct_CXX=no
13820            hardcode_shlibpath_var_CXX=no
13821            ;;
13822          *)
13823            hardcode_direct_CXX=yes
13824            hardcode_direct_absolute_CXX=yes
13825            hardcode_minus_L_CXX=yes # Not in the search PATH,
13826					         # but as the default
13827					         # location of the library.
13828            ;;
13829        esac
13830
13831        case $cc_basename in
13832          CC*)
13833	    # FIXME: insert proper C++ library support
13834	    ld_shlibs_CXX=no
13835	    ;;
13836          aCC*)
13837	    case $host_cpu in
13838	      hppa*64*)
13839	        archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13840	        ;;
13841	      ia64*)
13842	        archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13843	        ;;
13844	      *)
13845	        archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13846	        ;;
13847	    esac
13848	    # Commands to make compiler produce verbose output that lists
13849	    # what "hidden" libraries, object files and flags are used when
13850	    # linking a shared library.
13851	    #
13852	    # There doesn't appear to be a way to prevent this compiler from
13853	    # explicitly linking system object files so we need to strip them
13854	    # from the output so that they don't get included in the library
13855	    # dependencies.
13856	    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"'
13857	    ;;
13858          *)
13859	    if test "$GXX" = yes; then
13860	      if test $with_gnu_ld = no; then
13861	        case $host_cpu in
13862	          hppa*64*)
13863	            archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13864	            ;;
13865	          ia64*)
13866	            archive_cmds_CXX='$CC -shared -nostdlib $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13867	            ;;
13868	          *)
13869	            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'
13870	            ;;
13871	        esac
13872	      fi
13873	    else
13874	      # FIXME: insert proper C++ library support
13875	      ld_shlibs_CXX=no
13876	    fi
13877	    ;;
13878        esac
13879        ;;
13880
13881      interix[3-9]*)
13882	hardcode_direct_CXX=no
13883	hardcode_shlibpath_var_CXX=no
13884	hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13885	export_dynamic_flag_spec_CXX='${wl}-E'
13886	# Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
13887	# Instead, shared libraries are loaded at an image base (0x10000000 by
13888	# default) and relocated if they conflict, which is a slow very memory
13889	# consuming and fragmenting process.  To avoid this, we pick a random,
13890	# 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
13891	# time.  Moving up from 0x10000000 also allows more sbrk(2) space.
13892	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'
13893	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'
13894	;;
13895      irix5* | irix6*)
13896        case $cc_basename in
13897          CC*)
13898	    # SGI C++
13899	    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'
13900
13901	    # Archives containing C++ object files must be created using
13902	    # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
13903	    # necessary to make sure instantiated templates are included
13904	    # in the archive.
13905	    old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
13906	    ;;
13907          *)
13908	    if test "$GXX" = yes; then
13909	      if test "$with_gnu_ld" = no; then
13910	        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'
13911	      else
13912	        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'
13913	      fi
13914	    fi
13915	    link_all_deplibs_CXX=yes
13916	    ;;
13917        esac
13918        hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13919        hardcode_libdir_separator_CXX=:
13920        inherit_rpath_CXX=yes
13921        ;;
13922
13923      linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
13924        case $cc_basename in
13925          KCC*)
13926	    # Kuck and Associates, Inc. (KAI) C++ Compiler
13927
13928	    # KCC will only create a shared library if the output file
13929	    # ends with ".so" (or ".sl" for HP-UX), so rename the library
13930	    # to its proper name (with version) after linking.
13931	    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'
13932	    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'
13933	    # Commands to make compiler produce verbose output that lists
13934	    # what "hidden" libraries, object files and flags are used when
13935	    # linking a shared library.
13936	    #
13937	    # There doesn't appear to be a way to prevent this compiler from
13938	    # explicitly linking system object files so we need to strip them
13939	    # from the output so that they don't get included in the library
13940	    # dependencies.
13941	    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"'
13942
13943	    hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13944	    export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13945
13946	    # Archives containing C++ object files must be created using
13947	    # "CC -Bstatic", where "CC" is the KAI C++ compiler.
13948	    old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
13949	    ;;
13950	  icpc* | ecpc* )
13951	    # Intel C++
13952	    with_gnu_ld=yes
13953	    # version 8.0 and above of icpc choke on multiply defined symbols
13954	    # if we add $predep_objects and $postdep_objects, however 7.1 and
13955	    # earlier do not add the objects themselves.
13956	    case `$CC -V 2>&1` in
13957	      *"Version 7."*)
13958	        archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13959		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'
13960		;;
13961	      *)  # Version 8.0 or newer
13962	        tmp_idyn=
13963	        case $host_cpu in
13964		  ia64*) tmp_idyn=' -i_dynamic';;
13965		esac
13966	        archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13967		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'
13968		;;
13969	    esac
13970	    archive_cmds_need_lc_CXX=no
13971	    hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13972	    export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13973	    whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
13974	    ;;
13975          pgCC* | pgcpp*)
13976            # Portland Group C++ compiler
13977	    case `$CC -V` in
13978	    *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
13979	      prelink_cmds_CXX='tpldir=Template.dir~
13980		rm -rf $tpldir~
13981		$CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
13982		compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
13983	      old_archive_cmds_CXX='tpldir=Template.dir~
13984		rm -rf $tpldir~
13985		$CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
13986		$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
13987		$RANLIB $oldlib'
13988	      archive_cmds_CXX='tpldir=Template.dir~
13989		rm -rf $tpldir~
13990		$CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
13991		$CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
13992	      archive_expsym_cmds_CXX='tpldir=Template.dir~
13993		rm -rf $tpldir~
13994		$CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
13995		$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'
13996	      ;;
13997	    *) # Version 6 and above use weak symbols
13998	      archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
13999	      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'
14000	      ;;
14001	    esac
14002
14003	    hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
14004	    export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
14005	    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'
14006            ;;
14007	  cxx*)
14008	    # Compaq C++
14009	    archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
14010	    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'
14011
14012	    runpath_var=LD_RUN_PATH
14013	    hardcode_libdir_flag_spec_CXX='-rpath $libdir'
14014	    hardcode_libdir_separator_CXX=:
14015
14016	    # Commands to make compiler produce verbose output that lists
14017	    # what "hidden" libraries, object files and flags are used when
14018	    # linking a shared library.
14019	    #
14020	    # There doesn't appear to be a way to prevent this compiler from
14021	    # explicitly linking system object files so we need to strip them
14022	    # from the output so that they don't get included in the library
14023	    # dependencies.
14024	    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'
14025	    ;;
14026	  xl* | mpixl* | bgxl*)
14027	    # IBM XL 8.0 on PPC, with GNU ld
14028	    hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
14029	    export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
14030	    archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14031	    if test "x$supports_anon_versioning" = xyes; then
14032	      archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
14033		cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14034		echo "local: *; };" >> $output_objdir/$libname.ver~
14035		$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
14036	    fi
14037	    ;;
14038	  *)
14039	    case `$CC -V 2>&1 | sed 5q` in
14040	    *Sun\ C*)
14041	      # Sun C++ 5.9
14042	      no_undefined_flag_CXX=' -zdefs'
14043	      archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14044	      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'
14045	      hardcode_libdir_flag_spec_CXX='-R$libdir'
14046	      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'
14047	      compiler_needs_object_CXX=yes
14048
14049	      # Not sure whether something based on
14050	      # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
14051	      # would be better.
14052	      output_verbose_link_cmd='func_echo_all'
14053
14054	      # Archives containing C++ object files must be created using
14055	      # "CC -xar", where "CC" is the Sun C++ compiler.  This is
14056	      # necessary to make sure instantiated templates are included
14057	      # in the archive.
14058	      old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
14059	      ;;
14060	    esac
14061	    ;;
14062	esac
14063	;;
14064
14065      lynxos*)
14066        # FIXME: insert proper C++ library support
14067	ld_shlibs_CXX=no
14068	;;
14069
14070      m88k*)
14071        # FIXME: insert proper C++ library support
14072        ld_shlibs_CXX=no
14073	;;
14074
14075      mvs*)
14076        case $cc_basename in
14077          cxx*)
14078	    # FIXME: insert proper C++ library support
14079	    ld_shlibs_CXX=no
14080	    ;;
14081	  *)
14082	    # FIXME: insert proper C++ library support
14083	    ld_shlibs_CXX=no
14084	    ;;
14085	esac
14086	;;
14087
14088      netbsd*)
14089        if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
14090	  archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
14091	  wlarc=
14092	  hardcode_libdir_flag_spec_CXX='-R$libdir'
14093	  hardcode_direct_CXX=yes
14094	  hardcode_shlibpath_var_CXX=no
14095	fi
14096	# Workaround some broken pre-1.5 toolchains
14097	output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
14098	;;
14099
14100      *nto* | *qnx*)
14101        ld_shlibs_CXX=yes
14102	;;
14103
14104      openbsd2*)
14105        # C++ shared libraries are fairly broken
14106	ld_shlibs_CXX=no
14107	;;
14108
14109      openbsd*)
14110	if test -f /usr/libexec/ld.so; then
14111	  hardcode_direct_CXX=yes
14112	  hardcode_shlibpath_var_CXX=no
14113	  hardcode_direct_absolute_CXX=yes
14114	  archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
14115	  hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
14116	  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14117	    archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
14118	    export_dynamic_flag_spec_CXX='${wl}-E'
14119	    whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14120	  fi
14121	  output_verbose_link_cmd=func_echo_all
14122	else
14123	  ld_shlibs_CXX=no
14124	fi
14125	;;
14126
14127      osf3* | osf4* | osf5*)
14128        case $cc_basename in
14129          KCC*)
14130	    # Kuck and Associates, Inc. (KAI) C++ Compiler
14131
14132	    # KCC will only create a shared library if the output file
14133	    # ends with ".so" (or ".sl" for HP-UX), so rename the library
14134	    # to its proper name (with version) after linking.
14135	    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'
14136
14137	    hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
14138	    hardcode_libdir_separator_CXX=:
14139
14140	    # Archives containing C++ object files must be created using
14141	    # the KAI C++ compiler.
14142	    case $host in
14143	      osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
14144	      *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
14145	    esac
14146	    ;;
14147          RCC*)
14148	    # Rational C++ 2.4.1
14149	    # FIXME: insert proper C++ library support
14150	    ld_shlibs_CXX=no
14151	    ;;
14152          cxx*)
14153	    case $host in
14154	      osf3*)
14155	        allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
14156	        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'
14157	        hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
14158		;;
14159	      *)
14160	        allow_undefined_flag_CXX=' -expect_unresolved \*'
14161	        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'
14162	        archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
14163	          echo "-hidden">> $lib.exp~
14164	          $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~
14165	          $RM $lib.exp'
14166	        hardcode_libdir_flag_spec_CXX='-rpath $libdir'
14167		;;
14168	    esac
14169
14170	    hardcode_libdir_separator_CXX=:
14171
14172	    # Commands to make compiler produce verbose output that lists
14173	    # what "hidden" libraries, object files and flags are used when
14174	    # linking a shared library.
14175	    #
14176	    # There doesn't appear to be a way to prevent this compiler from
14177	    # explicitly linking system object files so we need to strip them
14178	    # from the output so that they don't get included in the library
14179	    # dependencies.
14180	    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"'
14181	    ;;
14182	  *)
14183	    if test "$GXX" = yes && test "$with_gnu_ld" = no; then
14184	      allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
14185	      case $host in
14186	        osf3*)
14187	          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'
14188		  ;;
14189	        *)
14190	          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'
14191		  ;;
14192	      esac
14193
14194	      hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
14195	      hardcode_libdir_separator_CXX=:
14196
14197	      # Commands to make compiler produce verbose output that lists
14198	      # what "hidden" libraries, object files and flags are used when
14199	      # linking a shared library.
14200	      output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
14201
14202	    else
14203	      # FIXME: insert proper C++ library support
14204	      ld_shlibs_CXX=no
14205	    fi
14206	    ;;
14207        esac
14208        ;;
14209
14210      psos*)
14211        # FIXME: insert proper C++ library support
14212        ld_shlibs_CXX=no
14213        ;;
14214
14215      sunos4*)
14216        case $cc_basename in
14217          CC*)
14218	    # Sun C++ 4.x
14219	    # FIXME: insert proper C++ library support
14220	    ld_shlibs_CXX=no
14221	    ;;
14222          lcc*)
14223	    # Lucid
14224	    # FIXME: insert proper C++ library support
14225	    ld_shlibs_CXX=no
14226	    ;;
14227          *)
14228	    # FIXME: insert proper C++ library support
14229	    ld_shlibs_CXX=no
14230	    ;;
14231        esac
14232        ;;
14233
14234      solaris*)
14235        case $cc_basename in
14236          CC* | sunCC*)
14237	    # Sun C++ 4.2, 5.x and Centerline C++
14238            archive_cmds_need_lc_CXX=yes
14239	    no_undefined_flag_CXX=' -zdefs'
14240	    archive_cmds_CXX='$CC -G${allow_undefined_flag}  -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14241	    archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14242	      $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'
14243
14244	    hardcode_libdir_flag_spec_CXX='-R$libdir'
14245	    hardcode_shlibpath_var_CXX=no
14246	    case $host_os in
14247	      solaris2.[0-5] | solaris2.[0-5].*) ;;
14248	      *)
14249		# The compiler driver will combine and reorder linker options,
14250		# but understands `-z linker_flag'.
14251	        # Supported since Solaris 2.6 (maybe 2.5.1?)
14252		whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
14253	        ;;
14254	    esac
14255	    link_all_deplibs_CXX=yes
14256
14257	    output_verbose_link_cmd='func_echo_all'
14258
14259	    # Archives containing C++ object files must be created using
14260	    # "CC -xar", where "CC" is the Sun C++ compiler.  This is
14261	    # necessary to make sure instantiated templates are included
14262	    # in the archive.
14263	    old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
14264	    ;;
14265          gcx*)
14266	    # Green Hills C++ Compiler
14267	    archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
14268
14269	    # The C++ compiler must be used to create the archive.
14270	    old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
14271	    ;;
14272          *)
14273	    # GNU C++ compiler with Solaris linker
14274	    if test "$GXX" = yes && test "$with_gnu_ld" = no; then
14275	      no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
14276	      if $CC --version | $GREP -v '^2\.7' > /dev/null; then
14277	        archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
14278	        archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14279		  $CC -shared $pic_flag -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
14280
14281	        # Commands to make compiler produce verbose output that lists
14282	        # what "hidden" libraries, object files and flags are used when
14283	        # linking a shared library.
14284	        output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
14285	      else
14286	        # g++ 2.7 appears to require `-G' NOT `-shared' on this
14287	        # platform.
14288	        archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
14289	        archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14290		  $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
14291
14292	        # Commands to make compiler produce verbose output that lists
14293	        # what "hidden" libraries, object files and flags are used when
14294	        # linking a shared library.
14295	        output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
14296	      fi
14297
14298	      hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
14299	      case $host_os in
14300		solaris2.[0-5] | solaris2.[0-5].*) ;;
14301		*)
14302		  whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
14303		  ;;
14304	      esac
14305	    fi
14306	    ;;
14307        esac
14308        ;;
14309
14310    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
14311      no_undefined_flag_CXX='${wl}-z,text'
14312      archive_cmds_need_lc_CXX=no
14313      hardcode_shlibpath_var_CXX=no
14314      runpath_var='LD_RUN_PATH'
14315
14316      case $cc_basename in
14317        CC*)
14318	  archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14319	  archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14320	  ;;
14321	*)
14322	  archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14323	  archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14324	  ;;
14325      esac
14326      ;;
14327
14328      sysv5* | sco3.2v5* | sco5v6*)
14329	# Note: We can NOT use -z defs as we might desire, because we do not
14330	# link with -lc, and that would cause any symbols used from libc to
14331	# always be unresolved, which means just about no library would
14332	# ever link correctly.  If we're not using GNU ld we use -z text
14333	# though, which does catch some bad symbols but isn't as heavy-handed
14334	# as -z defs.
14335	no_undefined_flag_CXX='${wl}-z,text'
14336	allow_undefined_flag_CXX='${wl}-z,nodefs'
14337	archive_cmds_need_lc_CXX=no
14338	hardcode_shlibpath_var_CXX=no
14339	hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
14340	hardcode_libdir_separator_CXX=':'
14341	link_all_deplibs_CXX=yes
14342	export_dynamic_flag_spec_CXX='${wl}-Bexport'
14343	runpath_var='LD_RUN_PATH'
14344
14345	case $cc_basename in
14346          CC*)
14347	    archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14348	    archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14349	    old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
14350	      '"$old_archive_cmds_CXX"
14351	    reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
14352	      '"$reload_cmds_CXX"
14353	    ;;
14354	  *)
14355	    archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14356	    archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14357	    ;;
14358	esac
14359      ;;
14360
14361      tandem*)
14362        case $cc_basename in
14363          NCC*)
14364	    # NonStop-UX NCC 3.20
14365	    # FIXME: insert proper C++ library support
14366	    ld_shlibs_CXX=no
14367	    ;;
14368          *)
14369	    # FIXME: insert proper C++ library support
14370	    ld_shlibs_CXX=no
14371	    ;;
14372        esac
14373        ;;
14374
14375      vxworks*)
14376        # FIXME: insert proper C++ library support
14377        ld_shlibs_CXX=no
14378        ;;
14379
14380      *)
14381        # FIXME: insert proper C++ library support
14382        ld_shlibs_CXX=no
14383        ;;
14384    esac
14385
14386    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
14387$as_echo "$ld_shlibs_CXX" >&6; }
14388    test "$ld_shlibs_CXX" = no && can_build_shared=no
14389
14390    GCC_CXX="$GXX"
14391    LD_CXX="$LD"
14392
14393    ## CAVEAT EMPTOR:
14394    ## There is no encapsulation within the following macros, do not change
14395    ## the running order or otherwise move them around unless you know exactly
14396    ## what you are doing...
14397    # Dependencies to place before and after the object being linked:
14398predep_objects_CXX=
14399postdep_objects_CXX=
14400predeps_CXX=
14401postdeps_CXX=
14402compiler_lib_search_path_CXX=
14403
14404cat > conftest.$ac_ext <<_LT_EOF
14405class Foo
14406{
14407public:
14408  Foo (void) { a = 0; }
14409private:
14410  int a;
14411};
14412_LT_EOF
14413
14414
14415_lt_libdeps_save_CFLAGS=$CFLAGS
14416case "$CC $CFLAGS " in #(
14417*\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;;
14418*\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;;
14419*\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;;
14420esac
14421
14422if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14423  (eval $ac_compile) 2>&5
14424  ac_status=$?
14425  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14426  test $ac_status = 0; }; then
14427  # Parse the compiler output and extract the necessary
14428  # objects, libraries and library flags.
14429
14430  # Sentinel used to keep track of whether or not we are before
14431  # the conftest object file.
14432  pre_test_object_deps_done=no
14433
14434  for p in `eval "$output_verbose_link_cmd"`; do
14435    case ${prev}${p} in
14436
14437    -L* | -R* | -l*)
14438       # Some compilers place space between "-{L,R}" and the path.
14439       # Remove the space.
14440       if test $p = "-L" ||
14441          test $p = "-R"; then
14442	 prev=$p
14443	 continue
14444       fi
14445
14446       # Expand the sysroot to ease extracting the directories later.
14447       if test -z "$prev"; then
14448         case $p in
14449         -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;;
14450         -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;;
14451         -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;;
14452         esac
14453       fi
14454       case $p in
14455       =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;;
14456       esac
14457       if test "$pre_test_object_deps_done" = no; then
14458	 case ${prev} in
14459	 -L | -R)
14460	   # Internal compiler library paths should come after those
14461	   # provided the user.  The postdeps already come after the
14462	   # user supplied libs so there is no need to process them.
14463	   if test -z "$compiler_lib_search_path_CXX"; then
14464	     compiler_lib_search_path_CXX="${prev}${p}"
14465	   else
14466	     compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
14467	   fi
14468	   ;;
14469	 # The "-l" case would never come before the object being
14470	 # linked, so don't bother handling this case.
14471	 esac
14472       else
14473	 if test -z "$postdeps_CXX"; then
14474	   postdeps_CXX="${prev}${p}"
14475	 else
14476	   postdeps_CXX="${postdeps_CXX} ${prev}${p}"
14477	 fi
14478       fi
14479       prev=
14480       ;;
14481
14482    *.lto.$objext) ;; # Ignore GCC LTO objects
14483    *.$objext)
14484       # This assumes that the test object file only shows up
14485       # once in the compiler output.
14486       if test "$p" = "conftest.$objext"; then
14487	 pre_test_object_deps_done=yes
14488	 continue
14489       fi
14490
14491       if test "$pre_test_object_deps_done" = no; then
14492	 if test -z "$predep_objects_CXX"; then
14493	   predep_objects_CXX="$p"
14494	 else
14495	   predep_objects_CXX="$predep_objects_CXX $p"
14496	 fi
14497       else
14498	 if test -z "$postdep_objects_CXX"; then
14499	   postdep_objects_CXX="$p"
14500	 else
14501	   postdep_objects_CXX="$postdep_objects_CXX $p"
14502	 fi
14503       fi
14504       ;;
14505
14506    *) ;; # Ignore the rest.
14507
14508    esac
14509  done
14510
14511  # Clean up.
14512  rm -f a.out a.exe
14513else
14514  echo "libtool.m4: error: problem compiling CXX test program"
14515fi
14516
14517$RM -f confest.$objext
14518CFLAGS=$_lt_libdeps_save_CFLAGS
14519
14520# PORTME: override above test on systems where it is broken
14521case $host_os in
14522interix[3-9]*)
14523  # Interix 3.5 installs completely hosed .la files for C++, so rather than
14524  # hack all around it, let's just trust "g++" to DTRT.
14525  predep_objects_CXX=
14526  postdep_objects_CXX=
14527  postdeps_CXX=
14528  ;;
14529
14530linux*)
14531  case `$CC -V 2>&1 | sed 5q` in
14532  *Sun\ C*)
14533    # Sun C++ 5.9
14534
14535    # The more standards-conforming stlport4 library is
14536    # incompatible with the Cstd library. Avoid specifying
14537    # it if it's in CXXFLAGS. Ignore libCrun as
14538    # -library=stlport4 depends on it.
14539    case " $CXX $CXXFLAGS " in
14540    *" -library=stlport4 "*)
14541      solaris_use_stlport4=yes
14542      ;;
14543    esac
14544
14545    if test "$solaris_use_stlport4" != yes; then
14546      postdeps_CXX='-library=Cstd -library=Crun'
14547    fi
14548    ;;
14549  esac
14550  ;;
14551
14552solaris*)
14553  case $cc_basename in
14554  CC* | sunCC*)
14555    # The more standards-conforming stlport4 library is
14556    # incompatible with the Cstd library. Avoid specifying
14557    # it if it's in CXXFLAGS. Ignore libCrun as
14558    # -library=stlport4 depends on it.
14559    case " $CXX $CXXFLAGS " in
14560    *" -library=stlport4 "*)
14561      solaris_use_stlport4=yes
14562      ;;
14563    esac
14564
14565    # Adding this requires a known-good setup of shared libraries for
14566    # Sun compiler versions before 5.6, else PIC objects from an old
14567    # archive will be linked into the output, leading to subtle bugs.
14568    if test "$solaris_use_stlport4" != yes; then
14569      postdeps_CXX='-library=Cstd -library=Crun'
14570    fi
14571    ;;
14572  esac
14573  ;;
14574esac
14575
14576
14577case " $postdeps_CXX " in
14578*" -lc "*) archive_cmds_need_lc_CXX=no ;;
14579esac
14580 compiler_lib_search_dirs_CXX=
14581if test -n "${compiler_lib_search_path_CXX}"; then
14582 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
14583fi
14584
14585
14586
14587
14588
14589
14590
14591
14592
14593
14594
14595
14596
14597
14598
14599
14600
14601
14602
14603
14604
14605
14606
14607
14608
14609
14610
14611
14612
14613
14614
14615    lt_prog_compiler_wl_CXX=
14616lt_prog_compiler_pic_CXX=
14617lt_prog_compiler_static_CXX=
14618
14619
14620  # C++ specific cases for pic, static, wl, etc.
14621  if test "$GXX" = yes; then
14622    lt_prog_compiler_wl_CXX='-Wl,'
14623    lt_prog_compiler_static_CXX='-static'
14624
14625    case $host_os in
14626    aix*)
14627      # All AIX code is PIC.
14628      if test "$host_cpu" = ia64; then
14629	# AIX 5 now supports IA64 processor
14630	lt_prog_compiler_static_CXX='-Bstatic'
14631      fi
14632      ;;
14633
14634    amigaos*)
14635      case $host_cpu in
14636      powerpc)
14637            # see comment about AmigaOS4 .so support
14638            lt_prog_compiler_pic_CXX='-fPIC'
14639        ;;
14640      m68k)
14641            # FIXME: we need at least 68020 code to build shared libraries, but
14642            # adding the `-m68020' flag to GCC prevents building anything better,
14643            # like `-m68040'.
14644            lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
14645        ;;
14646      esac
14647      ;;
14648
14649    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14650      # PIC is the default for these OSes.
14651      ;;
14652    mingw* | cygwin* | os2* | pw32* | cegcc*)
14653      # This hack is so that the source file can tell whether it is being
14654      # built for inclusion in a dll (and should export symbols for example).
14655      # Although the cygwin gcc ignores -fPIC, still need this for old-style
14656      # (--disable-auto-import) libraries
14657      lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
14658      ;;
14659    darwin* | rhapsody*)
14660      # PIC is the default on this platform
14661      # Common symbols not allowed in MH_DYLIB files
14662      lt_prog_compiler_pic_CXX='-fno-common'
14663      ;;
14664    *djgpp*)
14665      # DJGPP does not support shared libraries at all
14666      lt_prog_compiler_pic_CXX=
14667      ;;
14668    haiku*)
14669      # PIC is the default for Haiku.
14670      # The "-static" flag exists, but is broken.
14671      lt_prog_compiler_static_CXX=
14672      ;;
14673    interix[3-9]*)
14674      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14675      # Instead, we relocate shared libraries at runtime.
14676      ;;
14677    sysv4*MP*)
14678      if test -d /usr/nec; then
14679	lt_prog_compiler_pic_CXX=-Kconform_pic
14680      fi
14681      ;;
14682    hpux*)
14683      # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
14684      # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
14685      # sets the default TLS model and affects inlining.
14686      case $host_cpu in
14687      hppa*64*)
14688	;;
14689      *)
14690	lt_prog_compiler_pic_CXX='-fPIC'
14691	;;
14692      esac
14693      ;;
14694    *qnx* | *nto*)
14695      # QNX uses GNU C++, but need to define -shared option too, otherwise
14696      # it will coredump.
14697      lt_prog_compiler_pic_CXX='-fPIC -shared'
14698      ;;
14699    *)
14700      lt_prog_compiler_pic_CXX='-fPIC'
14701      ;;
14702    esac
14703  else
14704    case $host_os in
14705      aix[4-9]*)
14706	# All AIX code is PIC.
14707	if test "$host_cpu" = ia64; then
14708	  # AIX 5 now supports IA64 processor
14709	  lt_prog_compiler_static_CXX='-Bstatic'
14710	else
14711	  lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
14712	fi
14713	;;
14714      chorus*)
14715	case $cc_basename in
14716	cxch68*)
14717	  # Green Hills C++ Compiler
14718	  # _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"
14719	  ;;
14720	esac
14721	;;
14722      mingw* | cygwin* | os2* | pw32* | cegcc*)
14723	# This hack is so that the source file can tell whether it is being
14724	# built for inclusion in a dll (and should export symbols for example).
14725	lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
14726	;;
14727      dgux*)
14728	case $cc_basename in
14729	  ec++*)
14730	    lt_prog_compiler_pic_CXX='-KPIC'
14731	    ;;
14732	  ghcx*)
14733	    # Green Hills C++ Compiler
14734	    lt_prog_compiler_pic_CXX='-pic'
14735	    ;;
14736	  *)
14737	    ;;
14738	esac
14739	;;
14740      freebsd* | dragonfly*)
14741	# FreeBSD uses GNU C++
14742	;;
14743      hpux9* | hpux10* | hpux11*)
14744	case $cc_basename in
14745	  CC*)
14746	    lt_prog_compiler_wl_CXX='-Wl,'
14747	    lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
14748	    if test "$host_cpu" != ia64; then
14749	      lt_prog_compiler_pic_CXX='+Z'
14750	    fi
14751	    ;;
14752	  aCC*)
14753	    lt_prog_compiler_wl_CXX='-Wl,'
14754	    lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
14755	    case $host_cpu in
14756	    hppa*64*|ia64*)
14757	      # +Z the default
14758	      ;;
14759	    *)
14760	      lt_prog_compiler_pic_CXX='+Z'
14761	      ;;
14762	    esac
14763	    ;;
14764	  *)
14765	    ;;
14766	esac
14767	;;
14768      interix*)
14769	# This is c89, which is MS Visual C++ (no shared libs)
14770	# Anyone wants to do a port?
14771	;;
14772      irix5* | irix6* | nonstopux*)
14773	case $cc_basename in
14774	  CC*)
14775	    lt_prog_compiler_wl_CXX='-Wl,'
14776	    lt_prog_compiler_static_CXX='-non_shared'
14777	    # CC pic flag -KPIC is the default.
14778	    ;;
14779	  *)
14780	    ;;
14781	esac
14782	;;
14783      linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
14784	case $cc_basename in
14785	  KCC*)
14786	    # KAI C++ Compiler
14787	    lt_prog_compiler_wl_CXX='--backend -Wl,'
14788	    lt_prog_compiler_pic_CXX='-fPIC'
14789	    ;;
14790	  ecpc* )
14791	    # old Intel C++ for x86_64 which still supported -KPIC.
14792	    lt_prog_compiler_wl_CXX='-Wl,'
14793	    lt_prog_compiler_pic_CXX='-KPIC'
14794	    lt_prog_compiler_static_CXX='-static'
14795	    ;;
14796	  icpc* )
14797	    # Intel C++, used to be incompatible with GCC.
14798	    # ICC 10 doesn't accept -KPIC any more.
14799	    lt_prog_compiler_wl_CXX='-Wl,'
14800	    lt_prog_compiler_pic_CXX='-fPIC'
14801	    lt_prog_compiler_static_CXX='-static'
14802	    ;;
14803	  pgCC* | pgcpp*)
14804	    # Portland Group C++ compiler
14805	    lt_prog_compiler_wl_CXX='-Wl,'
14806	    lt_prog_compiler_pic_CXX='-fpic'
14807	    lt_prog_compiler_static_CXX='-Bstatic'
14808	    ;;
14809	  cxx*)
14810	    # Compaq C++
14811	    # Make sure the PIC flag is empty.  It appears that all Alpha
14812	    # Linux and Compaq Tru64 Unix objects are PIC.
14813	    lt_prog_compiler_pic_CXX=
14814	    lt_prog_compiler_static_CXX='-non_shared'
14815	    ;;
14816	  xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
14817	    # IBM XL 8.0, 9.0 on PPC and BlueGene
14818	    lt_prog_compiler_wl_CXX='-Wl,'
14819	    lt_prog_compiler_pic_CXX='-qpic'
14820	    lt_prog_compiler_static_CXX='-qstaticlink'
14821	    ;;
14822	  *)
14823	    case `$CC -V 2>&1 | sed 5q` in
14824	    *Sun\ C*)
14825	      # Sun C++ 5.9
14826	      lt_prog_compiler_pic_CXX='-KPIC'
14827	      lt_prog_compiler_static_CXX='-Bstatic'
14828	      lt_prog_compiler_wl_CXX='-Qoption ld '
14829	      ;;
14830	    esac
14831	    ;;
14832	esac
14833	;;
14834      lynxos*)
14835	;;
14836      m88k*)
14837	;;
14838      mvs*)
14839	case $cc_basename in
14840	  cxx*)
14841	    lt_prog_compiler_pic_CXX='-W c,exportall'
14842	    ;;
14843	  *)
14844	    ;;
14845	esac
14846	;;
14847      netbsd* | netbsdelf*-gnu)
14848	;;
14849      *qnx* | *nto*)
14850        # QNX uses GNU C++, but need to define -shared option too, otherwise
14851        # it will coredump.
14852        lt_prog_compiler_pic_CXX='-fPIC -shared'
14853        ;;
14854      osf3* | osf4* | osf5*)
14855	case $cc_basename in
14856	  KCC*)
14857	    lt_prog_compiler_wl_CXX='--backend -Wl,'
14858	    ;;
14859	  RCC*)
14860	    # Rational C++ 2.4.1
14861	    lt_prog_compiler_pic_CXX='-pic'
14862	    ;;
14863	  cxx*)
14864	    # Digital/Compaq C++
14865	    lt_prog_compiler_wl_CXX='-Wl,'
14866	    # Make sure the PIC flag is empty.  It appears that all Alpha
14867	    # Linux and Compaq Tru64 Unix objects are PIC.
14868	    lt_prog_compiler_pic_CXX=
14869	    lt_prog_compiler_static_CXX='-non_shared'
14870	    ;;
14871	  *)
14872	    ;;
14873	esac
14874	;;
14875      psos*)
14876	;;
14877      solaris*)
14878	case $cc_basename in
14879	  CC* | sunCC*)
14880	    # Sun C++ 4.2, 5.x and Centerline C++
14881	    lt_prog_compiler_pic_CXX='-KPIC'
14882	    lt_prog_compiler_static_CXX='-Bstatic'
14883	    lt_prog_compiler_wl_CXX='-Qoption ld '
14884	    ;;
14885	  gcx*)
14886	    # Green Hills C++ Compiler
14887	    lt_prog_compiler_pic_CXX='-PIC'
14888	    ;;
14889	  *)
14890	    ;;
14891	esac
14892	;;
14893      sunos4*)
14894	case $cc_basename in
14895	  CC*)
14896	    # Sun C++ 4.x
14897	    lt_prog_compiler_pic_CXX='-pic'
14898	    lt_prog_compiler_static_CXX='-Bstatic'
14899	    ;;
14900	  lcc*)
14901	    # Lucid
14902	    lt_prog_compiler_pic_CXX='-pic'
14903	    ;;
14904	  *)
14905	    ;;
14906	esac
14907	;;
14908      sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14909	case $cc_basename in
14910	  CC*)
14911	    lt_prog_compiler_wl_CXX='-Wl,'
14912	    lt_prog_compiler_pic_CXX='-KPIC'
14913	    lt_prog_compiler_static_CXX='-Bstatic'
14914	    ;;
14915	esac
14916	;;
14917      tandem*)
14918	case $cc_basename in
14919	  NCC*)
14920	    # NonStop-UX NCC 3.20
14921	    lt_prog_compiler_pic_CXX='-KPIC'
14922	    ;;
14923	  *)
14924	    ;;
14925	esac
14926	;;
14927      vxworks*)
14928	;;
14929      *)
14930	lt_prog_compiler_can_build_shared_CXX=no
14931	;;
14932    esac
14933  fi
14934
14935case $host_os in
14936  # For platforms which do not support PIC, -DPIC is meaningless:
14937  *djgpp*)
14938    lt_prog_compiler_pic_CXX=
14939    ;;
14940  *)
14941    lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
14942    ;;
14943esac
14944
14945{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
14946$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
14947if ${lt_cv_prog_compiler_pic_CXX+:} false; then :
14948  $as_echo_n "(cached) " >&6
14949else
14950  lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX
14951fi
14952{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5
14953$as_echo "$lt_cv_prog_compiler_pic_CXX" >&6; }
14954lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX
14955
14956#
14957# Check to make sure the PIC flag actually works.
14958#
14959if test -n "$lt_prog_compiler_pic_CXX"; then
14960  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
14961$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
14962if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then :
14963  $as_echo_n "(cached) " >&6
14964else
14965  lt_cv_prog_compiler_pic_works_CXX=no
14966   ac_outfile=conftest.$ac_objext
14967   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14968   lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
14969   # Insert the option either (1) after the last *FLAGS variable, or
14970   # (2) before a word containing "conftest.", or (3) at the end.
14971   # Note that $ac_compile itself does not contain backslashes and begins
14972   # with a dollar sign (not a hyphen), so the echo should work correctly.
14973   # The option is referenced via a variable to avoid confusing sed.
14974   lt_compile=`echo "$ac_compile" | $SED \
14975   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14976   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14977   -e 's:$: $lt_compiler_flag:'`
14978   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14979   (eval "$lt_compile" 2>conftest.err)
14980   ac_status=$?
14981   cat conftest.err >&5
14982   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14983   if (exit $ac_status) && test -s "$ac_outfile"; then
14984     # The compiler can only warn and ignore the option if not recognized
14985     # So say no if there are warnings other than the usual output.
14986     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
14987     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14988     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14989       lt_cv_prog_compiler_pic_works_CXX=yes
14990     fi
14991   fi
14992   $RM conftest*
14993
14994fi
14995{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
14996$as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
14997
14998if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
14999    case $lt_prog_compiler_pic_CXX in
15000     "" | " "*) ;;
15001     *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
15002     esac
15003else
15004    lt_prog_compiler_pic_CXX=
15005     lt_prog_compiler_can_build_shared_CXX=no
15006fi
15007
15008fi
15009
15010
15011
15012
15013
15014#
15015# Check to make sure the static flag actually works.
15016#
15017wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
15018{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
15019$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
15020if ${lt_cv_prog_compiler_static_works_CXX+:} false; then :
15021  $as_echo_n "(cached) " >&6
15022else
15023  lt_cv_prog_compiler_static_works_CXX=no
15024   save_LDFLAGS="$LDFLAGS"
15025   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
15026   echo "$lt_simple_link_test_code" > conftest.$ac_ext
15027   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
15028     # The linker can only warn and ignore the option if not recognized
15029     # So say no if there are warnings
15030     if test -s conftest.err; then
15031       # Append any errors to the config.log.
15032       cat conftest.err 1>&5
15033       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
15034       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15035       if diff conftest.exp conftest.er2 >/dev/null; then
15036         lt_cv_prog_compiler_static_works_CXX=yes
15037       fi
15038     else
15039       lt_cv_prog_compiler_static_works_CXX=yes
15040     fi
15041   fi
15042   $RM -r conftest*
15043   LDFLAGS="$save_LDFLAGS"
15044
15045fi
15046{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
15047$as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
15048
15049if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
15050    :
15051else
15052    lt_prog_compiler_static_CXX=
15053fi
15054
15055
15056
15057
15058    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
15059$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
15060if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
15061  $as_echo_n "(cached) " >&6
15062else
15063  lt_cv_prog_compiler_c_o_CXX=no
15064   $RM -r conftest 2>/dev/null
15065   mkdir conftest
15066   cd conftest
15067   mkdir out
15068   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15069
15070   lt_compiler_flag="-o out/conftest2.$ac_objext"
15071   # Insert the option either (1) after the last *FLAGS variable, or
15072   # (2) before a word containing "conftest.", or (3) at the end.
15073   # Note that $ac_compile itself does not contain backslashes and begins
15074   # with a dollar sign (not a hyphen), so the echo should work correctly.
15075   lt_compile=`echo "$ac_compile" | $SED \
15076   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15077   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15078   -e 's:$: $lt_compiler_flag:'`
15079   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15080   (eval "$lt_compile" 2>out/conftest.err)
15081   ac_status=$?
15082   cat out/conftest.err >&5
15083   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15084   if (exit $ac_status) && test -s out/conftest2.$ac_objext
15085   then
15086     # The compiler can only warn and ignore the option if not recognized
15087     # So say no if there are warnings
15088     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
15089     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15090     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15091       lt_cv_prog_compiler_c_o_CXX=yes
15092     fi
15093   fi
15094   chmod u+w . 2>&5
15095   $RM conftest*
15096   # SGI C++ compiler will create directory out/ii_files/ for
15097   # template instantiation
15098   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
15099   $RM out/* && rmdir out
15100   cd ..
15101   $RM -r conftest
15102   $RM conftest*
15103
15104fi
15105{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
15106$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
15107
15108
15109
15110    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
15111$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
15112if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
15113  $as_echo_n "(cached) " >&6
15114else
15115  lt_cv_prog_compiler_c_o_CXX=no
15116   $RM -r conftest 2>/dev/null
15117   mkdir conftest
15118   cd conftest
15119   mkdir out
15120   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15121
15122   lt_compiler_flag="-o out/conftest2.$ac_objext"
15123   # Insert the option either (1) after the last *FLAGS variable, or
15124   # (2) before a word containing "conftest.", or (3) at the end.
15125   # Note that $ac_compile itself does not contain backslashes and begins
15126   # with a dollar sign (not a hyphen), so the echo should work correctly.
15127   lt_compile=`echo "$ac_compile" | $SED \
15128   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15129   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15130   -e 's:$: $lt_compiler_flag:'`
15131   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15132   (eval "$lt_compile" 2>out/conftest.err)
15133   ac_status=$?
15134   cat out/conftest.err >&5
15135   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15136   if (exit $ac_status) && test -s out/conftest2.$ac_objext
15137   then
15138     # The compiler can only warn and ignore the option if not recognized
15139     # So say no if there are warnings
15140     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
15141     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15142     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15143       lt_cv_prog_compiler_c_o_CXX=yes
15144     fi
15145   fi
15146   chmod u+w . 2>&5
15147   $RM conftest*
15148   # SGI C++ compiler will create directory out/ii_files/ for
15149   # template instantiation
15150   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
15151   $RM out/* && rmdir out
15152   cd ..
15153   $RM -r conftest
15154   $RM conftest*
15155
15156fi
15157{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
15158$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
15159
15160
15161
15162
15163hard_links="nottested"
15164if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
15165  # do not overwrite the value of need_locks provided by the user
15166  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
15167$as_echo_n "checking if we can lock with hard links... " >&6; }
15168  hard_links=yes
15169  $RM conftest*
15170  ln conftest.a conftest.b 2>/dev/null && hard_links=no
15171  touch conftest.a
15172  ln conftest.a conftest.b 2>&5 || hard_links=no
15173  ln conftest.a conftest.b 2>/dev/null && hard_links=no
15174  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
15175$as_echo "$hard_links" >&6; }
15176  if test "$hard_links" = no; then
15177    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
15178$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
15179    need_locks=warn
15180  fi
15181else
15182  need_locks=no
15183fi
15184
15185
15186
15187    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15188$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
15189
15190  export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15191  exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
15192  case $host_os in
15193  aix[4-9]*)
15194    # If we're using GNU nm, then we don't want the "-C" option.
15195    # -C means demangle to AIX nm, but means don't demangle with GNU nm
15196    # Also, AIX nm treats weak defined symbols like other global defined
15197    # symbols, whereas GNU nm marks them as "W".
15198    if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
15199      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'
15200    else
15201      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'
15202    fi
15203    ;;
15204  pw32*)
15205    export_symbols_cmds_CXX="$ltdll_cmds"
15206    ;;
15207  cygwin* | mingw* | cegcc*)
15208    case $cc_basename in
15209    cl*)
15210      exclude_expsyms_CXX='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
15211      ;;
15212    *)
15213      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'
15214      exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
15215      ;;
15216    esac
15217    ;;
15218  linux* | k*bsd*-gnu | gnu*)
15219    link_all_deplibs_CXX=no
15220    ;;
15221  *)
15222    export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15223    ;;
15224  esac
15225
15226{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
15227$as_echo "$ld_shlibs_CXX" >&6; }
15228test "$ld_shlibs_CXX" = no && can_build_shared=no
15229
15230with_gnu_ld_CXX=$with_gnu_ld
15231
15232
15233
15234
15235
15236
15237#
15238# Do we need to explicitly link libc?
15239#
15240case "x$archive_cmds_need_lc_CXX" in
15241x|xyes)
15242  # Assume -lc should be added
15243  archive_cmds_need_lc_CXX=yes
15244
15245  if test "$enable_shared" = yes && test "$GCC" = yes; then
15246    case $archive_cmds_CXX in
15247    *'~'*)
15248      # FIXME: we may have to deal with multi-command sequences.
15249      ;;
15250    '$CC '*)
15251      # Test whether the compiler implicitly links with -lc since on some
15252      # systems, -lgcc has to come before -lc. If gcc already passes -lc
15253      # to ld, don't add -lc before -lgcc.
15254      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
15255$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
15256if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then :
15257  $as_echo_n "(cached) " >&6
15258else
15259  $RM conftest*
15260	echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15261
15262	if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
15263  (eval $ac_compile) 2>&5
15264  ac_status=$?
15265  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15266  test $ac_status = 0; } 2>conftest.err; then
15267	  soname=conftest
15268	  lib=conftest
15269	  libobjs=conftest.$ac_objext
15270	  deplibs=
15271	  wl=$lt_prog_compiler_wl_CXX
15272	  pic_flag=$lt_prog_compiler_pic_CXX
15273	  compiler_flags=-v
15274	  linker_flags=-v
15275	  verstring=
15276	  output_objdir=.
15277	  libname=conftest
15278	  lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
15279	  allow_undefined_flag_CXX=
15280	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
15281  (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
15282  ac_status=$?
15283  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15284  test $ac_status = 0; }
15285	  then
15286	    lt_cv_archive_cmds_need_lc_CXX=no
15287	  else
15288	    lt_cv_archive_cmds_need_lc_CXX=yes
15289	  fi
15290	  allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
15291	else
15292	  cat conftest.err 1>&5
15293	fi
15294	$RM conftest*
15295
15296fi
15297{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
15298$as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
15299      archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
15300      ;;
15301    esac
15302  fi
15303  ;;
15304esac
15305
15306
15307
15308
15309
15310
15311
15312
15313
15314
15315
15316
15317
15318
15319
15320
15321
15322
15323
15324
15325
15326
15327
15328
15329
15330
15331
15332
15333
15334
15335
15336
15337
15338
15339
15340
15341
15342
15343
15344
15345
15346
15347
15348
15349
15350
15351
15352
15353
15354
15355
15356
15357
15358
15359
15360
15361
15362
15363
15364
15365
15366
15367    { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
15368$as_echo_n "checking dynamic linker characteristics... " >&6; }
15369
15370library_names_spec=
15371libname_spec='lib$name'
15372soname_spec=
15373shrext_cmds=".so"
15374postinstall_cmds=
15375postuninstall_cmds=
15376finish_cmds=
15377finish_eval=
15378shlibpath_var=
15379shlibpath_overrides_runpath=unknown
15380version_type=none
15381dynamic_linker="$host_os ld.so"
15382sys_lib_dlsearch_path_spec="/lib /usr/lib"
15383need_lib_prefix=unknown
15384hardcode_into_libs=no
15385
15386# when you set need_version to no, make sure it does not cause -set_version
15387# flags to be left without arguments
15388need_version=unknown
15389
15390case $host_os in
15391aix3*)
15392  version_type=linux # correct to gnu/linux during the next big refactor
15393  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
15394  shlibpath_var=LIBPATH
15395
15396  # AIX 3 has no versioning support, so we append a major version to the name.
15397  soname_spec='${libname}${release}${shared_ext}$major'
15398  ;;
15399
15400aix[4-9]*)
15401  version_type=linux # correct to gnu/linux during the next big refactor
15402  need_lib_prefix=no
15403  need_version=no
15404  hardcode_into_libs=yes
15405  if test "$host_cpu" = ia64; then
15406    # AIX 5 supports IA64
15407    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
15408    shlibpath_var=LD_LIBRARY_PATH
15409  else
15410    # With GCC up to 2.95.x, collect2 would create an import file
15411    # for dependence libraries.  The import file would start with
15412    # the line `#! .'.  This would cause the generated library to
15413    # depend on `.', always an invalid library.  This was fixed in
15414    # development snapshots of GCC prior to 3.0.
15415    case $host_os in
15416      aix4 | aix4.[01] | aix4.[01].*)
15417      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15418	   echo ' yes '
15419	   echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
15420	:
15421      else
15422	can_build_shared=no
15423      fi
15424      ;;
15425    esac
15426    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
15427    # soname into executable. Probably we can add versioning support to
15428    # collect2, so additional links can be useful in future.
15429    if test "$aix_use_runtimelinking" = yes; then
15430      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
15431      # instead of lib<name>.a to let people know that these are not
15432      # typical AIX shared libraries.
15433      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15434    else
15435      # We preserve .a as extension for shared libraries through AIX4.2
15436      # and later when we are not doing run time linking.
15437      library_names_spec='${libname}${release}.a $libname.a'
15438      soname_spec='${libname}${release}${shared_ext}$major'
15439    fi
15440    shlibpath_var=LIBPATH
15441  fi
15442  ;;
15443
15444amigaos*)
15445  case $host_cpu in
15446  powerpc)
15447    # Since July 2007 AmigaOS4 officially supports .so libraries.
15448    # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
15449    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15450    ;;
15451  m68k)
15452    library_names_spec='$libname.ixlibrary $libname.a'
15453    # Create ${libname}_ixlibrary.a entries in /sys/libs.
15454    finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
15455    ;;
15456  esac
15457  ;;
15458
15459beos*)
15460  library_names_spec='${libname}${shared_ext}'
15461  dynamic_linker="$host_os ld.so"
15462  shlibpath_var=LIBRARY_PATH
15463  ;;
15464
15465bsdi[45]*)
15466  version_type=linux # correct to gnu/linux during the next big refactor
15467  need_version=no
15468  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15469  soname_spec='${libname}${release}${shared_ext}$major'
15470  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15471  shlibpath_var=LD_LIBRARY_PATH
15472  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15473  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
15474  # the default ld.so.conf also contains /usr/contrib/lib and
15475  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15476  # libtool to hard-code these into programs
15477  ;;
15478
15479cygwin* | mingw* | pw32* | cegcc*)
15480  version_type=windows
15481  shrext_cmds=".dll"
15482  need_version=no
15483  need_lib_prefix=no
15484
15485  case $GCC,$cc_basename in
15486  yes,*)
15487    # gcc
15488    library_names_spec='$libname.dll.a'
15489    # DLL is installed to $(libdir)/../bin by postinstall_cmds
15490    postinstall_cmds='base_file=`basename \${file}`~
15491      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
15492      dldir=$destdir/`dirname \$dlpath`~
15493      test -d \$dldir || mkdir -p \$dldir~
15494      $install_prog $dir/$dlname \$dldir/$dlname~
15495      chmod a+x \$dldir/$dlname~
15496      if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
15497        eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
15498      fi'
15499    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15500      dlpath=$dir/\$dldll~
15501       $RM \$dlpath'
15502    shlibpath_overrides_runpath=yes
15503
15504    case $host_os in
15505    cygwin*)
15506      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
15507      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15508
15509      ;;
15510    mingw* | cegcc*)
15511      # MinGW DLLs use traditional 'lib' prefix
15512      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15513      ;;
15514    pw32*)
15515      # pw32 DLLs use 'pw' prefix rather than 'lib'
15516      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15517      ;;
15518    esac
15519    dynamic_linker='Win32 ld.exe'
15520    ;;
15521
15522  *,cl*)
15523    # Native MSVC
15524    libname_spec='$name'
15525    soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15526    library_names_spec='${libname}.dll.lib'
15527
15528    case $build_os in
15529    mingw*)
15530      sys_lib_search_path_spec=
15531      lt_save_ifs=$IFS
15532      IFS=';'
15533      for lt_path in $LIB
15534      do
15535        IFS=$lt_save_ifs
15536        # Let DOS variable expansion print the short 8.3 style file name.
15537        lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
15538        sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
15539      done
15540      IFS=$lt_save_ifs
15541      # Convert to MSYS style.
15542      sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
15543      ;;
15544    cygwin*)
15545      # Convert to unix form, then to dos form, then back to unix form
15546      # but this time dos style (no spaces!) so that the unix form looks
15547      # like /cygdrive/c/PROGRA~1:/cygdr...
15548      sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
15549      sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
15550      sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15551      ;;
15552    *)
15553      sys_lib_search_path_spec="$LIB"
15554      if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
15555        # It is most probably a Windows format PATH.
15556        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15557      else
15558        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15559      fi
15560      # FIXME: find the short name or the path components, as spaces are
15561      # common. (e.g. "Program Files" -> "PROGRA~1")
15562      ;;
15563    esac
15564
15565    # DLL is installed to $(libdir)/../bin by postinstall_cmds
15566    postinstall_cmds='base_file=`basename \${file}`~
15567      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
15568      dldir=$destdir/`dirname \$dlpath`~
15569      test -d \$dldir || mkdir -p \$dldir~
15570      $install_prog $dir/$dlname \$dldir/$dlname'
15571    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15572      dlpath=$dir/\$dldll~
15573       $RM \$dlpath'
15574    shlibpath_overrides_runpath=yes
15575    dynamic_linker='Win32 link.exe'
15576    ;;
15577
15578  *)
15579    # Assume MSVC wrapper
15580    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
15581    dynamic_linker='Win32 ld.exe'
15582    ;;
15583  esac
15584  # FIXME: first we should search . and the directory the executable is in
15585  shlibpath_var=PATH
15586  ;;
15587
15588darwin* | rhapsody*)
15589  dynamic_linker="$host_os dyld"
15590  version_type=darwin
15591  need_lib_prefix=no
15592  need_version=no
15593  library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
15594  soname_spec='${libname}${release}${major}$shared_ext'
15595  shlibpath_overrides_runpath=yes
15596  shlibpath_var=DYLD_LIBRARY_PATH
15597  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
15598
15599  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15600  ;;
15601
15602dgux*)
15603  version_type=linux # correct to gnu/linux during the next big refactor
15604  need_lib_prefix=no
15605  need_version=no
15606  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
15607  soname_spec='${libname}${release}${shared_ext}$major'
15608  shlibpath_var=LD_LIBRARY_PATH
15609  ;;
15610
15611freebsd* | dragonfly*)
15612  # DragonFly does not have aout.  When/if they implement a new
15613  # versioning mechanism, adjust this.
15614  if test -x /usr/bin/objformat; then
15615    objformat=`/usr/bin/objformat`
15616  else
15617    case $host_os in
15618    freebsd[23].*) objformat=aout ;;
15619    *) objformat=elf ;;
15620    esac
15621  fi
15622  version_type=freebsd-$objformat
15623  case $version_type in
15624    freebsd-elf*)
15625      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15626      need_version=no
15627      need_lib_prefix=no
15628      ;;
15629    freebsd-*)
15630      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
15631      need_version=yes
15632      ;;
15633  esac
15634  shlibpath_var=LD_LIBRARY_PATH
15635  case $host_os in
15636  freebsd2.*)
15637    shlibpath_overrides_runpath=yes
15638    ;;
15639  freebsd3.[01]* | freebsdelf3.[01]*)
15640    shlibpath_overrides_runpath=yes
15641    hardcode_into_libs=yes
15642    ;;
15643  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
15644  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
15645    shlibpath_overrides_runpath=no
15646    hardcode_into_libs=yes
15647    ;;
15648  *) # from 4.6 on, and DragonFly
15649    shlibpath_overrides_runpath=yes
15650    hardcode_into_libs=yes
15651    ;;
15652  esac
15653  ;;
15654
15655haiku*)
15656  version_type=linux # correct to gnu/linux during the next big refactor
15657  need_lib_prefix=no
15658  need_version=no
15659  dynamic_linker="$host_os runtime_loader"
15660  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15661  soname_spec='${libname}${release}${shared_ext}$major'
15662  shlibpath_var=LIBRARY_PATH
15663  shlibpath_overrides_runpath=yes
15664  sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
15665  hardcode_into_libs=yes
15666  ;;
15667
15668hpux9* | hpux10* | hpux11*)
15669  # Give a soname corresponding to the major version so that dld.sl refuses to
15670  # link against other versions.
15671  version_type=sunos
15672  need_lib_prefix=no
15673  need_version=no
15674  case $host_cpu in
15675  ia64*)
15676    shrext_cmds='.so'
15677    hardcode_into_libs=yes
15678    dynamic_linker="$host_os dld.so"
15679    shlibpath_var=LD_LIBRARY_PATH
15680    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15681    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15682    soname_spec='${libname}${release}${shared_ext}$major'
15683    if test "X$HPUX_IA64_MODE" = X32; then
15684      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15685    else
15686      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
15687    fi
15688    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15689    ;;
15690  hppa*64*)
15691    shrext_cmds='.sl'
15692    hardcode_into_libs=yes
15693    dynamic_linker="$host_os dld.sl"
15694    shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
15695    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15696    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15697    soname_spec='${libname}${release}${shared_ext}$major'
15698    sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15699    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15700    ;;
15701  *)
15702    shrext_cmds='.sl'
15703    dynamic_linker="$host_os dld.sl"
15704    shlibpath_var=SHLIB_PATH
15705    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
15706    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15707    soname_spec='${libname}${release}${shared_ext}$major'
15708    ;;
15709  esac
15710  # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
15711  postinstall_cmds='chmod 555 $lib'
15712  # or fails outright, so override atomically:
15713  install_override_mode=555
15714  ;;
15715
15716interix[3-9]*)
15717  version_type=linux # correct to gnu/linux during the next big refactor
15718  need_lib_prefix=no
15719  need_version=no
15720  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15721  soname_spec='${libname}${release}${shared_ext}$major'
15722  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
15723  shlibpath_var=LD_LIBRARY_PATH
15724  shlibpath_overrides_runpath=no
15725  hardcode_into_libs=yes
15726  ;;
15727
15728irix5* | irix6* | nonstopux*)
15729  case $host_os in
15730    nonstopux*) version_type=nonstopux ;;
15731    *)
15732	if test "$lt_cv_prog_gnu_ld" = yes; then
15733		version_type=linux # correct to gnu/linux during the next big refactor
15734	else
15735		version_type=irix
15736	fi ;;
15737  esac
15738  need_lib_prefix=no
15739  need_version=no
15740  soname_spec='${libname}${release}${shared_ext}$major'
15741  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
15742  case $host_os in
15743  irix5* | nonstopux*)
15744    libsuff= shlibsuff=
15745    ;;
15746  *)
15747    case $LD in # libtool.m4 will add one of these switches to LD
15748    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15749      libsuff= shlibsuff= libmagic=32-bit;;
15750    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15751      libsuff=32 shlibsuff=N32 libmagic=N32;;
15752    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15753      libsuff=64 shlibsuff=64 libmagic=64-bit;;
15754    *) libsuff= shlibsuff= libmagic=never-match;;
15755    esac
15756    ;;
15757  esac
15758  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15759  shlibpath_overrides_runpath=no
15760  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15761  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
15762  hardcode_into_libs=yes
15763  ;;
15764
15765# No shared lib support for Linux oldld, aout, or coff.
15766linux*oldld* | linux*aout* | linux*coff*)
15767  dynamic_linker=no
15768  ;;
15769
15770# This must be glibc/ELF.
15771linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
15772  version_type=linux # correct to gnu/linux during the next big refactor
15773  need_lib_prefix=no
15774  need_version=no
15775  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15776  soname_spec='${libname}${release}${shared_ext}$major'
15777  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15778  shlibpath_var=LD_LIBRARY_PATH
15779  shlibpath_overrides_runpath=no
15780
15781  # Some binutils ld are patched to set DT_RUNPATH
15782  if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
15783  $as_echo_n "(cached) " >&6
15784else
15785  lt_cv_shlibpath_overrides_runpath=no
15786    save_LDFLAGS=$LDFLAGS
15787    save_libdir=$libdir
15788    eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
15789	 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
15790    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15791/* end confdefs.h.  */
15792
15793int
15794main ()
15795{
15796
15797  ;
15798  return 0;
15799}
15800_ACEOF
15801if ac_fn_cxx_try_link "$LINENO"; then :
15802  if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
15803  lt_cv_shlibpath_overrides_runpath=yes
15804fi
15805fi
15806rm -f core conftest.err conftest.$ac_objext \
15807    conftest$ac_exeext conftest.$ac_ext
15808    LDFLAGS=$save_LDFLAGS
15809    libdir=$save_libdir
15810
15811fi
15812
15813  shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
15814
15815  # This implies no fast_install, which is unacceptable.
15816  # Some rework will be needed to allow for fast_install
15817  # before this can be enabled.
15818  hardcode_into_libs=yes
15819
15820  # Append ld.so.conf contents to the search path
15821  if test -f /etc/ld.so.conf; then
15822    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' ' '`
15823    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
15824  fi
15825
15826  # We used to test for /lib/ld.so.1 and disable shared libraries on
15827  # powerpc, because MkLinux only supported shared libraries with the
15828  # GNU dynamic linker.  Since this was broken with cross compilers,
15829  # most powerpc-linux boxes support dynamic linking these days and
15830  # people can always --disable-shared, the test was removed, and we
15831  # assume the GNU/Linux dynamic linker is in use.
15832  dynamic_linker='GNU/Linux ld.so'
15833  ;;
15834
15835netbsdelf*-gnu)
15836  version_type=linux
15837  need_lib_prefix=no
15838  need_version=no
15839  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15840  soname_spec='${libname}${release}${shared_ext}$major'
15841  shlibpath_var=LD_LIBRARY_PATH
15842  shlibpath_overrides_runpath=no
15843  hardcode_into_libs=yes
15844  dynamic_linker='NetBSD ld.elf_so'
15845  ;;
15846
15847netbsd*)
15848  version_type=sunos
15849  need_lib_prefix=no
15850  need_version=no
15851  if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
15852    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15853    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15854    dynamic_linker='NetBSD (a.out) ld.so'
15855  else
15856    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15857    soname_spec='${libname}${release}${shared_ext}$major'
15858    dynamic_linker='NetBSD ld.elf_so'
15859  fi
15860  shlibpath_var=LD_LIBRARY_PATH
15861  shlibpath_overrides_runpath=yes
15862  hardcode_into_libs=yes
15863  ;;
15864
15865newsos6)
15866  version_type=linux # correct to gnu/linux during the next big refactor
15867  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15868  shlibpath_var=LD_LIBRARY_PATH
15869  shlibpath_overrides_runpath=yes
15870  ;;
15871
15872*nto* | *qnx*)
15873  version_type=qnx
15874  need_lib_prefix=no
15875  need_version=no
15876  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15877  soname_spec='${libname}${release}${shared_ext}$major'
15878  shlibpath_var=LD_LIBRARY_PATH
15879  shlibpath_overrides_runpath=no
15880  hardcode_into_libs=yes
15881  dynamic_linker='ldqnx.so'
15882  ;;
15883
15884openbsd*)
15885  version_type=sunos
15886  sys_lib_dlsearch_path_spec="/usr/lib"
15887  need_lib_prefix=no
15888  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
15889  case $host_os in
15890    openbsd3.3 | openbsd3.3.*)	need_version=yes ;;
15891    *)				need_version=no  ;;
15892  esac
15893  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15894  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15895  shlibpath_var=LD_LIBRARY_PATH
15896  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15897    case $host_os in
15898      openbsd2.[89] | openbsd2.[89].*)
15899	shlibpath_overrides_runpath=no
15900	;;
15901      *)
15902	shlibpath_overrides_runpath=yes
15903	;;
15904      esac
15905  else
15906    shlibpath_overrides_runpath=yes
15907  fi
15908  ;;
15909
15910os2*)
15911  libname_spec='$name'
15912  shrext_cmds=".dll"
15913  need_lib_prefix=no
15914  library_names_spec='$libname${shared_ext} $libname.a'
15915  dynamic_linker='OS/2 ld.exe'
15916  shlibpath_var=LIBPATH
15917  ;;
15918
15919osf3* | osf4* | osf5*)
15920  version_type=osf
15921  need_lib_prefix=no
15922  need_version=no
15923  soname_spec='${libname}${release}${shared_ext}$major'
15924  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15925  shlibpath_var=LD_LIBRARY_PATH
15926  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
15927  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
15928  ;;
15929
15930rdos*)
15931  dynamic_linker=no
15932  ;;
15933
15934solaris*)
15935  version_type=linux # correct to gnu/linux during the next big refactor
15936  need_lib_prefix=no
15937  need_version=no
15938  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15939  soname_spec='${libname}${release}${shared_ext}$major'
15940  shlibpath_var=LD_LIBRARY_PATH
15941  shlibpath_overrides_runpath=yes
15942  hardcode_into_libs=yes
15943  # ldd complains unless libraries are executable
15944  postinstall_cmds='chmod +x $lib'
15945  ;;
15946
15947sunos4*)
15948  version_type=sunos
15949  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15950  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
15951  shlibpath_var=LD_LIBRARY_PATH
15952  shlibpath_overrides_runpath=yes
15953  if test "$with_gnu_ld" = yes; then
15954    need_lib_prefix=no
15955  fi
15956  need_version=yes
15957  ;;
15958
15959sysv4 | sysv4.3*)
15960  version_type=linux # correct to gnu/linux during the next big refactor
15961  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15962  soname_spec='${libname}${release}${shared_ext}$major'
15963  shlibpath_var=LD_LIBRARY_PATH
15964  case $host_vendor in
15965    sni)
15966      shlibpath_overrides_runpath=no
15967      need_lib_prefix=no
15968      runpath_var=LD_RUN_PATH
15969      ;;
15970    siemens)
15971      need_lib_prefix=no
15972      ;;
15973    motorola)
15974      need_lib_prefix=no
15975      need_version=no
15976      shlibpath_overrides_runpath=no
15977      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
15978      ;;
15979  esac
15980  ;;
15981
15982sysv4*MP*)
15983  if test -d /usr/nec ;then
15984    version_type=linux # correct to gnu/linux during the next big refactor
15985    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
15986    soname_spec='$libname${shared_ext}.$major'
15987    shlibpath_var=LD_LIBRARY_PATH
15988  fi
15989  ;;
15990
15991sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
15992  version_type=freebsd-elf
15993  need_lib_prefix=no
15994  need_version=no
15995  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15996  soname_spec='${libname}${release}${shared_ext}$major'
15997  shlibpath_var=LD_LIBRARY_PATH
15998  shlibpath_overrides_runpath=yes
15999  hardcode_into_libs=yes
16000  if test "$with_gnu_ld" = yes; then
16001    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
16002  else
16003    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
16004    case $host_os in
16005      sco3.2v5*)
16006        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
16007	;;
16008    esac
16009  fi
16010  sys_lib_dlsearch_path_spec='/usr/lib'
16011  ;;
16012
16013tpf*)
16014  # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
16015  version_type=linux # correct to gnu/linux during the next big refactor
16016  need_lib_prefix=no
16017  need_version=no
16018  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16019  shlibpath_var=LD_LIBRARY_PATH
16020  shlibpath_overrides_runpath=no
16021  hardcode_into_libs=yes
16022  ;;
16023
16024uts4*)
16025  version_type=linux # correct to gnu/linux during the next big refactor
16026  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16027  soname_spec='${libname}${release}${shared_ext}$major'
16028  shlibpath_var=LD_LIBRARY_PATH
16029  ;;
16030
16031*)
16032  dynamic_linker=no
16033  ;;
16034esac
16035{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
16036$as_echo "$dynamic_linker" >&6; }
16037test "$dynamic_linker" = no && can_build_shared=no
16038
16039variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16040if test "$GCC" = yes; then
16041  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16042fi
16043
16044if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
16045  sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
16046fi
16047if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
16048  sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
16049fi
16050
16051
16052
16053
16054
16055
16056
16057
16058
16059
16060
16061
16062
16063
16064
16065
16066
16067
16068
16069
16070
16071
16072
16073
16074
16075
16076
16077
16078
16079
16080
16081
16082
16083
16084
16085
16086
16087
16088    { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
16089$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
16090hardcode_action_CXX=
16091if test -n "$hardcode_libdir_flag_spec_CXX" ||
16092   test -n "$runpath_var_CXX" ||
16093   test "X$hardcode_automatic_CXX" = "Xyes" ; then
16094
16095  # We can hardcode non-existent directories.
16096  if test "$hardcode_direct_CXX" != no &&
16097     # If the only mechanism to avoid hardcoding is shlibpath_var, we
16098     # have to relink, otherwise we might link with an installed library
16099     # when we should be linking with a yet-to-be-installed one
16100     ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
16101     test "$hardcode_minus_L_CXX" != no; then
16102    # Linking always hardcodes the temporary library directory.
16103    hardcode_action_CXX=relink
16104  else
16105    # We can link without hardcoding, and we can hardcode nonexisting dirs.
16106    hardcode_action_CXX=immediate
16107  fi
16108else
16109  # We cannot hardcode anything, or else we can only hardcode existing
16110  # directories.
16111  hardcode_action_CXX=unsupported
16112fi
16113{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
16114$as_echo "$hardcode_action_CXX" >&6; }
16115
16116if test "$hardcode_action_CXX" = relink ||
16117   test "$inherit_rpath_CXX" = yes; then
16118  # Fast installation is not supported
16119  enable_fast_install=no
16120elif test "$shlibpath_overrides_runpath" = yes ||
16121     test "$enable_shared" = no; then
16122  # Fast installation is not necessary
16123  enable_fast_install=needless
16124fi
16125
16126
16127
16128
16129
16130
16131
16132  fi # test -n "$compiler"
16133
16134  CC=$lt_save_CC
16135  CFLAGS=$lt_save_CFLAGS
16136  LDCXX=$LD
16137  LD=$lt_save_LD
16138  GCC=$lt_save_GCC
16139  with_gnu_ld=$lt_save_with_gnu_ld
16140  lt_cv_path_LDCXX=$lt_cv_path_LD
16141  lt_cv_path_LD=$lt_save_path_LD
16142  lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
16143  lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
16144fi # test "$_lt_caught_CXX_error" != yes
16145
16146ac_ext=c
16147ac_cpp='$CPP $CPPFLAGS'
16148ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16149ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16150ac_compiler_gnu=$ac_cv_c_compiler_gnu
16151
16152
16153
16154
16155
16156
16157
16158
16159
16160
16161
16162
16163
16164
16165
16166        ac_config_commands="$ac_config_commands libtool"
16167
16168
16169
16170
16171# Only expand once:
16172
16173
16174# Use dolt (http://dolt.freedesktop.org/) instead of libtool for building.
16175
16176
16177# dolt, a replacement for libtool
16178# Josh Triplett <josh@freedesktop.org>
16179# Extract the first word of "bash", so it can be a program name with args.
16180set dummy bash; ac_word=$2
16181{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16182$as_echo_n "checking for $ac_word... " >&6; }
16183if ${ac_cv_path_DOLT_BASH+:} false; then :
16184  $as_echo_n "(cached) " >&6
16185else
16186  case $DOLT_BASH in
16187  [\\/]* | ?:[\\/]*)
16188  ac_cv_path_DOLT_BASH="$DOLT_BASH" # Let the user override the test with a path.
16189  ;;
16190  *)
16191  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16192for as_dir in $PATH
16193do
16194  IFS=$as_save_IFS
16195  test -z "$as_dir" && as_dir=.
16196    for ac_exec_ext in '' $ac_executable_extensions; do
16197  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16198    ac_cv_path_DOLT_BASH="$as_dir/$ac_word$ac_exec_ext"
16199    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16200    break 2
16201  fi
16202done
16203  done
16204IFS=$as_save_IFS
16205
16206  ;;
16207esac
16208fi
16209DOLT_BASH=$ac_cv_path_DOLT_BASH
16210if test -n "$DOLT_BASH"; then
16211  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DOLT_BASH" >&5
16212$as_echo "$DOLT_BASH" >&6; }
16213else
16214  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16215$as_echo "no" >&6; }
16216fi
16217
16218
16219{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if dolt supports this host" >&5
16220$as_echo_n "checking if dolt supports this host... " >&6; }
16221dolt_supported=yes
16222if test x$DOLT_BASH = x; then
16223    dolt_supported=no
16224fi
16225if test x$GCC != xyes; then
16226    dolt_supported=no
16227fi
16228case $host in
16229i?86-*-linux*|i?86-apple-darwin*|x86_64-*-linux*|powerpc-*-linux*|powerpc64-*-linux* \
16230|amd64-*-freebsd*|i?86-*-freebsd*|ia64-*-freebsd*|arm*-*-linux*|sparc*-*-linux*|mips*-*-linux*|x86_64-apple-darwin*|aarch64*)
16231    pic_options='-fPIC'
16232    ;;
16233?86-pc-cygwin*|i?86-pc-cygwin*|i?86-pc-mingw32*)
16234    pic_options='-DDLL_EXPORT'
16235    ;;
16236i?86-apple-darwin*|arm-apple-darwin*)
16237    pic_options='-fno-common'
16238    ;;
16239*)
16240    dolt_supported=no
16241    ;;
16242esac
16243if test x$dolt_supported = xno ; then
16244    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, falling back to libtool" >&5
16245$as_echo "no, falling back to libtool" >&6; }
16246    LTCOMPILE='$(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(COMPILE)'
16247    LTCXXCOMPILE='$(LIBTOOL) --tag=CXX $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CXXCOMPILE)'
16248else
16249    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, replacing libtool" >&5
16250$as_echo "yes, replacing libtool" >&6; }
16251
16252    cat <<__DOLTCOMPILE__EOF__ >doltcompile
16253#!$DOLT_BASH
16254__DOLTCOMPILE__EOF__
16255    cat <<'__DOLTCOMPILE__EOF__' >>doltcompile
16256args=("$@")
16257for ((arg=0; arg<${#args[@]}; arg++)) ; do
16258    if test x"${args[$arg]}" = x-o ; then
16259        objarg=$((arg+1))
16260        break
16261    fi
16262done
16263if test x$objarg = x ; then
16264    echo 'Error: no -o on compiler command line' 1>&2
16265    exit 1
16266fi
16267lo="${args[$objarg]}"
16268obj="${lo%.lo}"
16269if test x"$lo" = x"$obj" ; then
16270    echo "Error: libtool object file name \"$lo\" does not end in .lo" 1>&2
16271    exit 1
16272fi
16273objbase="${obj##*/}"
16274__DOLTCOMPILE__EOF__
16275
16276    if test x$enable_shared = xyes; then
16277        cat <<'__DOLTCOMPILE__EOF__' >>doltcompile
16278libobjdir="${obj%$objbase}.libs"
16279if test ! -d "$libobjdir" ; then
16280    mkdir_out="$(mkdir "$libobjdir" 2>&1)"
16281    mkdir_ret=$?
16282    if test "$mkdir_ret" -ne 0 && test ! -d "$libobjdir" ; then
16283	echo "$mkdir_out" 1>&2
16284        exit $mkdir_ret
16285    fi
16286fi
16287pic_object="$libobjdir/$objbase.o"
16288args[$objarg]="$pic_object"
16289__DOLTCOMPILE__EOF__
16290    cat <<__DOLTCOMPILE__EOF__ >>doltcompile
16291"\${args[@]}" $pic_options -DPIC || exit \$?
16292__DOLTCOMPILE__EOF__
16293    fi
16294
16295    if test x$enable_static = xyes; then
16296        cat <<'__DOLTCOMPILE__EOF__' >>doltcompile
16297non_pic_object="$obj.o"
16298args[$objarg]="$non_pic_object"
16299__DOLTCOMPILE__EOF__
16300        if test x$enable_shared = xyes; then
16301            cat <<'__DOLTCOMPILE__EOF__' >>doltcompile
16302"${args[@]}" >/dev/null 2>&1 || exit $?
16303__DOLTCOMPILE__EOF__
16304        else
16305            cat <<'__DOLTCOMPILE__EOF__' >>doltcompile
16306"${args[@]}" || exit $?
16307__DOLTCOMPILE__EOF__
16308        fi
16309    fi
16310
16311    cat <<'__DOLTCOMPILE__EOF__' >>doltcompile
16312{
16313echo "# $lo - a libtool object file"
16314echo "# Generated by doltcompile, not libtool"
16315__DOLTCOMPILE__EOF__
16316
16317    if test x$enable_shared = xyes; then
16318        cat <<'__DOLTCOMPILE__EOF__' >>doltcompile
16319echo "pic_object='.libs/${objbase}.o'"
16320__DOLTCOMPILE__EOF__
16321    else
16322        cat <<'__DOLTCOMPILE__EOF__' >>doltcompile
16323echo pic_object=none
16324__DOLTCOMPILE__EOF__
16325    fi
16326
16327    if test x$enable_static = xyes; then
16328        cat <<'__DOLTCOMPILE__EOF__' >>doltcompile
16329echo "non_pic_object='${objbase}.o'"
16330__DOLTCOMPILE__EOF__
16331    else
16332        cat <<'__DOLTCOMPILE__EOF__' >>doltcompile
16333echo non_pic_object=none
16334__DOLTCOMPILE__EOF__
16335    fi
16336
16337    cat <<'__DOLTCOMPILE__EOF__' >>doltcompile
16338} > "$lo"
16339__DOLTCOMPILE__EOF__
16340
16341    chmod +x doltcompile
16342    LTCOMPILE='$(top_builddir)/doltcompile $(COMPILE)'
16343    LTCXXCOMPILE='$(top_builddir)/doltcompile $(CXXCOMPILE)'
16344
16345    cat <<__DOLTLIBTOOL__EOF__ > doltlibtool
16346#!$DOLT_BASH
16347__DOLTLIBTOOL__EOF__
16348    cat <<'__DOLTLIBTOOL__EOF__' >>doltlibtool
16349top_builddir_slash="${0%%doltlibtool}"
16350: ${top_builddir_slash:=./}
16351args=()
16352modeok=false
16353tagok=false
16354for arg in "$@"; do
16355    case "$arg" in
16356        --silent) ;;
16357        --mode=compile) modeok=true ;;
16358        --tag=CC|--tag=CXX) tagok=true ;;
16359        --quiet) ;;
16360        *) args[${#args[@]}]="$arg" ;;
16361    esac
16362done
16363if $modeok && $tagok ; then
16364    . ${top_builddir_slash}doltcompile "${args[@]}"
16365else
16366    exec ${top_builddir_slash}libtool "$@"
16367fi
16368__DOLTLIBTOOL__EOF__
16369
16370    chmod +x doltlibtool
16371    LIBTOOL='$(top_builddir)/doltlibtool'
16372fi
16373
16374
16375# end dolt
16376
16377
16378#
16379# Check for AViiON Machines running DGUX
16380#
16381ac_is_dgux=no
16382ac_fn_c_check_header_mongrel "$LINENO" "sys/dg_sys_info.h" "ac_cv_header_sys_dg_sys_info_h" "$ac_includes_default"
16383if test "x$ac_cv_header_sys_dg_sys_info_h" = xyes; then :
16384  ac_is_dgux=yes;
16385fi
16386
16387
16388
16389    ## :GOTCHA: we do not check anything but sys/dg_sys_info.h
16390if test $ac_is_dgux = yes; then
16391    if test "$enable_full_debug" = "yes"; then
16392      CFLAGS="-g -mstandard -DDGUX -D_DGUX_SOURCE -Di386 -mno-legend -O2"
16393      CXXFLAGS="-g -mstandard -DDGUX -D_DGUX_SOURCE -Di386 -mno-legend -O2"
16394    else
16395      CFLAGS="-DDGUX -D_DGUX_SOURCE -Di386 -mno-legend -O2"
16396      CXXFLAGS="-DDGUX -D_DGUX_SOURCE -Di386 -mno-legend -O2"
16397    fi
16398
16399
16400fi
16401
16402
16403# Check whether --with-target-subdir was given.
16404if test "${with_target_subdir+set}" = set; then :
16405  withval=$with_target_subdir;
16406fi
16407
16408
16409# Check whether --with-cross-host was given.
16410if test "${with_cross_host+set}" = set; then :
16411  withval=$with_cross_host;
16412fi
16413
16414
16415# automake wants to see AC_EXEEXT.  But we don't need it.  And having
16416# it is actually a problem, because the compiler we're passed can't
16417# necessarily do a full link.  So we fool automake here.
16418if false; then
16419  # autoconf 2.50 runs AC_EXEEXT by default, and the macro expands
16420  # to nothing, so nothing would remain between `then' and `fi' if it
16421  # were not for the `:' below.
16422  :
16423
16424fi
16425
16426{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for threads package to use" >&5
16427$as_echo_n "checking for threads package to use... " >&6; }
16428{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $THREADS" >&5
16429$as_echo "$THREADS" >&6; }
16430
16431{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether Solaris gcc optimization fix is necessary" >&5
16432$as_echo_n "checking whether Solaris gcc optimization fix is necessary... " >&6; }
16433case "$host" in
16434 *aix*)
16435    if test "$GCC" = yes; then
16436       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16437$as_echo "yes" >&6; }
16438       new_CFLAGS=
16439       for i in $CFLAGS; do
16440	  case "$i" in
16441	   -O*)
16442	      ;;
16443	   *)
16444	      new_CFLAGS="$new_CFLAGS $i"
16445	      ;;
16446	  esac
16447       done
16448       CFLAGS="$new_CFLAGS"
16449    else
16450       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16451$as_echo "no" >&6; }
16452    fi
16453    ;;
16454 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16455$as_echo "no" >&6; } ;;
16456esac
16457
16458MY_CFLAGS="$CFLAGS"
16459
16460
16461$as_echo "#define SILENT 1" >>confdefs.h
16462
16463$as_echo "#define NO_SIGNALS 1" >>confdefs.h
16464
16465$as_echo "#define NO_EXECUTE_PERMISSION 1" >>confdefs.h
16466
16467
16468$as_echo "#define JAVA_FINALIZATION 1" >>confdefs.h
16469
16470$as_echo "#define GC_GCJ_SUPPORT 1" >>confdefs.h
16471
16472$as_echo "#define ATOMIC_UNCOLLECTABLE 1" >>confdefs.h
16473
16474
16475if test -n "${with_cross_host}"; then
16476   $as_echo "#define NO_SIGSET 1" >>confdefs.h
16477
16478   $as_echo "#define NO_CLOCK 1" >>confdefs.h
16479
16480   $as_echo "#define SMALL_CONFIG 1" >>confdefs.h
16481
16482   $as_echo "#define NO_DEBUGGING 1" >>confdefs.h
16483
16484fi
16485
16486UNWINDLIBS=
16487# Check whether --enable-full-debug was given.
16488if test "${enable_full_debug+set}" = set; then :
16489  enableval=$enable_full_debug;  if test "$enable_full_debug" = "yes"; then
16490    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Should define GC_DEBUG and use debug alloc. in clients.\"" >&5
16491$as_echo "$as_me: WARNING: \"Should define GC_DEBUG and use debug alloc. in clients.\"" >&2;}
16492    $as_echo "#define KEEP_BACK_PTRS 1" >>confdefs.h
16493
16494    $as_echo "#define DBG_HDRS_ALL 1" >>confdefs.h
16495
16496    case $host in
16497      ia64-*-linux* )
16498	$as_echo "#define MAKE_BACK_GRAPH 1" >>confdefs.h
16499
16500	$as_echo "#define SAVE_CALL_COUNT 8" >>confdefs.h
16501
16502        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for backtrace in -lunwind" >&5
16503$as_echo_n "checking for backtrace in -lunwind... " >&6; }
16504if ${ac_cv_lib_unwind_backtrace+:} false; then :
16505  $as_echo_n "(cached) " >&6
16506else
16507  ac_check_lib_save_LIBS=$LIBS
16508LIBS="-lunwind  $LIBS"
16509cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16510/* end confdefs.h.  */
16511
16512/* Override any GCC internal prototype to avoid an error.
16513   Use char because int might match the return type of a GCC
16514   builtin and then its argument prototype would still apply.  */
16515#ifdef __cplusplus
16516extern "C"
16517#endif
16518char backtrace ();
16519int
16520main ()
16521{
16522return backtrace ();
16523  ;
16524  return 0;
16525}
16526_ACEOF
16527if ac_fn_c_try_link "$LINENO"; then :
16528  ac_cv_lib_unwind_backtrace=yes
16529else
16530  ac_cv_lib_unwind_backtrace=no
16531fi
16532rm -f core conftest.err conftest.$ac_objext \
16533    conftest$ac_exeext conftest.$ac_ext
16534LIBS=$ac_check_lib_save_LIBS
16535fi
16536{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_unwind_backtrace" >&5
16537$as_echo "$ac_cv_lib_unwind_backtrace" >&6; }
16538if test "x$ac_cv_lib_unwind_backtrace" = xyes; then :
16539
16540	  $as_echo "#define GC_HAVE_BUILTIN_BACKTRACE 1" >>confdefs.h
16541
16542	  UNWINDLIBS=-lunwind
16543	  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Client code may need to link against libunwind.\"" >&5
16544$as_echo "$as_me: WARNING: \"Client code may need to link against libunwind.\"" >&2;}
16545
16546fi
16547
16548      ;;
16549      x86-*-linux* | i586-*-linux* | i686-*-linux* | x86_64-*-linux* )
16550	$as_echo "#define MAKE_BACK_GRAPH 1" >>confdefs.h
16551
16552	{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Client must not use -fomit-frame-pointer.\"" >&5
16553$as_echo "$as_me: WARNING: \"Client must not use -fomit-frame-pointer.\"" >&2;}
16554	$as_echo "#define SAVE_CALL_COUNT 8" >>confdefs.h
16555
16556      ;;
16557      i345686-*-dgux*)
16558	$as_echo "#define MAKE_BACK_GRAPH 1" >>confdefs.h
16559
16560      ;;
16561    esac
16562  fi
16563fi
16564
16565
16566
16567
16568# Check whether --enable-redirect-malloc was given.
16569if test "${enable_redirect_malloc+set}" = set; then :
16570  enableval=$enable_redirect_malloc;
16571fi
16572
16573
16574if test "${enable_redirect_malloc}" = yes; then
16575    if test "${enable_full_debug}" = yes; then
16576	$as_echo "#define REDIRECT_MALLOC GC_debug_malloc_replacement" >>confdefs.h
16577
16578	$as_echo "#define REDIRECT_REALLOC GC_debug_realloc_replacement" >>confdefs.h
16579
16580	$as_echo "#define REDIRECT_FREE GC_debug_free" >>confdefs.h
16581
16582    else
16583	$as_echo "#define REDIRECT_MALLOC GC_malloc" >>confdefs.h
16584
16585    fi
16586fi
16587
16588$as_echo "#define _IN_LIBGC 1" >>confdefs.h
16589
16590
16591# Check whether --enable-gc-assertions was given.
16592if test "${enable_gc_assertions+set}" = set; then :
16593  enableval=$enable_gc_assertions;
16594fi
16595
16596if test "${enable_gc_assertions}" = yes; then
16597    $as_echo "#define GC_ASSERTIONS 1" >>confdefs.h
16598
16599fi
16600
16601# Check whether --enable-quiet-build was given.
16602if test "${enable_quiet_build+set}" = set; then :
16603  enableval=$enable_quiet_build; enable_quiet_build=$enableval
16604else
16605  enable_quiet_build=yes
16606fi
16607
16608 if test -z "$with_cross_host"; then
16609  USE_LIBDIR_TRUE=
16610  USE_LIBDIR_FALSE='#'
16611else
16612  USE_LIBDIR_TRUE='#'
16613  USE_LIBDIR_FALSE=
16614fi
16615
16616
16617# Check whether --enable-werror was given.
16618if test "${enable_werror+set}" = set; then :
16619  enableval=$enable_werror; werror_flag=$enableval
16620else
16621  werror_flag=no
16622fi
16623
16624if test x$werror_flag = xyes; then
16625	WERROR_CFLAGS="-Werror"
16626fi
16627
16628
16629if test "${multilib}" = "yes"; then
16630  multilib_arg="--enable-multilib"
16631else
16632  multilib_arg=
16633fi
16634
16635ac_config_files="$ac_config_files Makefile m4/Makefile include/Makefile include/private/Makefile doc/Makefile"
16636
16637ac_config_commands="$ac_config_commands default"
16638
16639cat >confcache <<\_ACEOF
16640# This file is a shell script that caches the results of configure
16641# tests run on this system so they can be shared between configure
16642# scripts and configure runs, see configure's option --config-cache.
16643# It is not useful on other systems.  If it contains results you don't
16644# want to keep, you may remove or edit it.
16645#
16646# config.status only pays attention to the cache file if you give it
16647# the --recheck option to rerun configure.
16648#
16649# `ac_cv_env_foo' variables (set or unset) will be overridden when
16650# loading this file, other *unset* `ac_cv_foo' will be assigned the
16651# following values.
16652
16653_ACEOF
16654
16655# The following way of writing the cache mishandles newlines in values,
16656# but we know of no workaround that is simple, portable, and efficient.
16657# So, we kill variables containing newlines.
16658# Ultrix sh set writes to stderr and can't be redirected directly,
16659# and sets the high bit in the cache file unless we assign to the vars.
16660(
16661  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
16662    eval ac_val=\$$ac_var
16663    case $ac_val in #(
16664    *${as_nl}*)
16665      case $ac_var in #(
16666      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
16667$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
16668      esac
16669      case $ac_var in #(
16670      _ | IFS | as_nl) ;; #(
16671      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
16672      *) { eval $ac_var=; unset $ac_var;} ;;
16673      esac ;;
16674    esac
16675  done
16676
16677  (set) 2>&1 |
16678    case $as_nl`(ac_space=' '; set) 2>&1` in #(
16679    *${as_nl}ac_space=\ *)
16680      # `set' does not quote correctly, so add quotes: double-quote
16681      # substitution turns \\\\ into \\, and sed turns \\ into \.
16682      sed -n \
16683	"s/'/'\\\\''/g;
16684	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
16685      ;; #(
16686    *)
16687      # `set' quotes correctly as required by POSIX, so do not add quotes.
16688      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
16689      ;;
16690    esac |
16691    sort
16692) |
16693  sed '
16694     /^ac_cv_env_/b end
16695     t clear
16696     :clear
16697     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
16698     t end
16699     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
16700     :end' >>confcache
16701if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
16702  if test -w "$cache_file"; then
16703    if test "x$cache_file" != "x/dev/null"; then
16704      { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
16705$as_echo "$as_me: updating cache $cache_file" >&6;}
16706      if test ! -f "$cache_file" || test -h "$cache_file"; then
16707	cat confcache >"$cache_file"
16708      else
16709        case $cache_file in #(
16710        */* | ?:*)
16711	  mv -f confcache "$cache_file"$$ &&
16712	  mv -f "$cache_file"$$ "$cache_file" ;; #(
16713        *)
16714	  mv -f confcache "$cache_file" ;;
16715	esac
16716      fi
16717    fi
16718  else
16719    { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
16720$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
16721  fi
16722fi
16723rm -f confcache
16724
16725test "x$prefix" = xNONE && prefix=$ac_default_prefix
16726# Let make expand exec_prefix.
16727test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
16728
16729# Transform confdefs.h into DEFS.
16730# Protect against shell expansion while executing Makefile rules.
16731# Protect against Makefile macro expansion.
16732#
16733# If the first sed substitution is executed (which looks for macros that
16734# take arguments), then branch to the quote section.  Otherwise,
16735# look for a macro that doesn't take arguments.
16736ac_script='
16737:mline
16738/\\$/{
16739 N
16740 s,\\\n,,
16741 b mline
16742}
16743t clear
16744:clear
16745s/^[	 ]*#[	 ]*define[	 ][	 ]*\([^	 (][^	 (]*([^)]*)\)[	 ]*\(.*\)/-D\1=\2/g
16746t quote
16747s/^[	 ]*#[	 ]*define[	 ][	 ]*\([^	 ][^	 ]*\)[	 ]*\(.*\)/-D\1=\2/g
16748t quote
16749b any
16750:quote
16751s/[	 `~#$^&*(){}\\|;'\''"<>?]/\\&/g
16752s/\[/\\&/g
16753s/\]/\\&/g
16754s/\$/$$/g
16755H
16756:any
16757${
16758	g
16759	s/^\n//
16760	s/\n/ /g
16761	p
16762}
16763'
16764DEFS=`sed -n "$ac_script" confdefs.h`
16765
16766
16767ac_libobjs=
16768ac_ltlibobjs=
16769U=
16770for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
16771  # 1. Remove the extension, and $U if already installed.
16772  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
16773  ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
16774  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
16775  #    will be set to the directory where LIBOBJS objects are built.
16776  as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
16777  as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
16778done
16779LIBOBJS=$ac_libobjs
16780
16781LTLIBOBJS=$ac_ltlibobjs
16782
16783
16784{ $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
16785$as_echo_n "checking that generated files are newer than configure... " >&6; }
16786   if test -n "$am_sleep_pid"; then
16787     # Hide warnings about reused PIDs.
16788     wait $am_sleep_pid 2>/dev/null
16789   fi
16790   { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
16791$as_echo "done" >&6; }
16792 if test -n "$EXEEXT"; then
16793  am__EXEEXT_TRUE=
16794  am__EXEEXT_FALSE='#'
16795else
16796  am__EXEEXT_TRUE='#'
16797  am__EXEEXT_FALSE=
16798fi
16799
16800if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
16801  as_fn_error $? "conditional \"AMDEP\" was never defined.
16802Usually this means the macro was only invoked conditionally." "$LINENO" 5
16803fi
16804if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
16805  as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
16806Usually this means the macro was only invoked conditionally." "$LINENO" 5
16807fi
16808if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
16809  as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
16810Usually this means the macro was only invoked conditionally." "$LINENO" 5
16811fi
16812if test -z "${am__fastdepCCAS_TRUE}" && test -z "${am__fastdepCCAS_FALSE}"; then
16813  as_fn_error $? "conditional \"am__fastdepCCAS\" was never defined.
16814Usually this means the macro was only invoked conditionally." "$LINENO" 5
16815fi
16816if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
16817  as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
16818Usually this means the macro was only invoked conditionally." "$LINENO" 5
16819fi
16820if test -z "${POWERPC_DARWIN_TRUE}" && test -z "${POWERPC_DARWIN_FALSE}"; then
16821  as_fn_error $? "conditional \"POWERPC_DARWIN\" was never defined.
16822Usually this means the macro was only invoked conditionally." "$LINENO" 5
16823fi
16824if test -z "${COMPILER_XLC_TRUE}" && test -z "${COMPILER_XLC_FALSE}"; then
16825  as_fn_error $? "conditional \"COMPILER_XLC\" was never defined.
16826Usually this means the macro was only invoked conditionally." "$LINENO" 5
16827fi
16828if test -z "${CPLUSPLUS_TRUE}" && test -z "${CPLUSPLUS_FALSE}"; then
16829  as_fn_error $? "conditional \"CPLUSPLUS\" was never defined.
16830Usually this means the macro was only invoked conditionally." "$LINENO" 5
16831fi
16832if test -z "${TARGET_IA64_TRUE}" && test -z "${TARGET_IA64_FALSE}"; then
16833  as_fn_error $? "conditional \"TARGET_IA64\" was never defined.
16834Usually this means the macro was only invoked conditionally." "$LINENO" 5
16835fi
16836if test -z "${USE_LIBDIR_TRUE}" && test -z "${USE_LIBDIR_FALSE}"; then
16837  as_fn_error $? "conditional \"USE_LIBDIR\" was never defined.
16838Usually this means the macro was only invoked conditionally." "$LINENO" 5
16839fi
16840
16841: "${CONFIG_STATUS=./config.status}"
16842ac_write_fail=0
16843ac_clean_files_save=$ac_clean_files
16844ac_clean_files="$ac_clean_files $CONFIG_STATUS"
16845{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
16846$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
16847as_write_fail=0
16848cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
16849#! $SHELL
16850# Generated by $as_me.
16851# Run this file to recreate the current configuration.
16852# Compiler output produced by configure, useful for debugging
16853# configure, is in config.log if it exists.
16854
16855debug=false
16856ac_cs_recheck=false
16857ac_cs_silent=false
16858
16859SHELL=\${CONFIG_SHELL-$SHELL}
16860export SHELL
16861_ASEOF
16862cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
16863## -------------------- ##
16864## M4sh Initialization. ##
16865## -------------------- ##
16866
16867# Be more Bourne compatible
16868DUALCASE=1; export DUALCASE # for MKS sh
16869if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
16870  emulate sh
16871  NULLCMD=:
16872  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
16873  # is contrary to our usage.  Disable this feature.
16874  alias -g '${1+"$@"}'='"$@"'
16875  setopt NO_GLOB_SUBST
16876else
16877  case `(set -o) 2>/dev/null` in #(
16878  *posix*) :
16879    set -o posix ;; #(
16880  *) :
16881     ;;
16882esac
16883fi
16884
16885
16886as_nl='
16887'
16888export as_nl
16889# Printing a long string crashes Solaris 7 /usr/bin/printf.
16890as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
16891as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
16892as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
16893# Prefer a ksh shell builtin over an external printf program on Solaris,
16894# but without wasting forks for bash or zsh.
16895if test -z "$BASH_VERSION$ZSH_VERSION" \
16896    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
16897  as_echo='print -r --'
16898  as_echo_n='print -rn --'
16899elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
16900  as_echo='printf %s\n'
16901  as_echo_n='printf %s'
16902else
16903  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
16904    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
16905    as_echo_n='/usr/ucb/echo -n'
16906  else
16907    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
16908    as_echo_n_body='eval
16909      arg=$1;
16910      case $arg in #(
16911      *"$as_nl"*)
16912	expr "X$arg" : "X\\(.*\\)$as_nl";
16913	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
16914      esac;
16915      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
16916    '
16917    export as_echo_n_body
16918    as_echo_n='sh -c $as_echo_n_body as_echo'
16919  fi
16920  export as_echo_body
16921  as_echo='sh -c $as_echo_body as_echo'
16922fi
16923
16924# The user is always right.
16925if test "${PATH_SEPARATOR+set}" != set; then
16926  PATH_SEPARATOR=:
16927  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
16928    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
16929      PATH_SEPARATOR=';'
16930  }
16931fi
16932
16933
16934# IFS
16935# We need space, tab and new line, in precisely that order.  Quoting is
16936# there to prevent editors from complaining about space-tab.
16937# (If _AS_PATH_WALK were called with IFS unset, it would disable word
16938# splitting by setting IFS to empty value.)
16939IFS=" ""	$as_nl"
16940
16941# Find who we are.  Look in the path if we contain no directory separator.
16942as_myself=
16943case $0 in #((
16944  *[\\/]* ) as_myself=$0 ;;
16945  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16946for as_dir in $PATH
16947do
16948  IFS=$as_save_IFS
16949  test -z "$as_dir" && as_dir=.
16950    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
16951  done
16952IFS=$as_save_IFS
16953
16954     ;;
16955esac
16956# We did not find ourselves, most probably we were run as `sh COMMAND'
16957# in which case we are not to be found in the path.
16958if test "x$as_myself" = x; then
16959  as_myself=$0
16960fi
16961if test ! -f "$as_myself"; then
16962  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
16963  exit 1
16964fi
16965
16966# Unset variables that we do not need and which cause bugs (e.g. in
16967# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
16968# suppresses any "Segmentation fault" message there.  '((' could
16969# trigger a bug in pdksh 5.2.14.
16970for as_var in BASH_ENV ENV MAIL MAILPATH
16971do eval test x\${$as_var+set} = xset \
16972  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
16973done
16974PS1='$ '
16975PS2='> '
16976PS4='+ '
16977
16978# NLS nuisances.
16979LC_ALL=C
16980export LC_ALL
16981LANGUAGE=C
16982export LANGUAGE
16983
16984# CDPATH.
16985(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
16986
16987
16988# as_fn_error STATUS ERROR [LINENO LOG_FD]
16989# ----------------------------------------
16990# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
16991# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
16992# script with STATUS, using 1 if that was 0.
16993as_fn_error ()
16994{
16995  as_status=$1; test $as_status -eq 0 && as_status=1
16996  if test "$4"; then
16997    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
16998    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
16999  fi
17000  $as_echo "$as_me: error: $2" >&2
17001  as_fn_exit $as_status
17002} # as_fn_error
17003
17004
17005# as_fn_set_status STATUS
17006# -----------------------
17007# Set $? to STATUS, without forking.
17008as_fn_set_status ()
17009{
17010  return $1
17011} # as_fn_set_status
17012
17013# as_fn_exit STATUS
17014# -----------------
17015# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
17016as_fn_exit ()
17017{
17018  set +e
17019  as_fn_set_status $1
17020  exit $1
17021} # as_fn_exit
17022
17023# as_fn_unset VAR
17024# ---------------
17025# Portably unset VAR.
17026as_fn_unset ()
17027{
17028  { eval $1=; unset $1;}
17029}
17030as_unset=as_fn_unset
17031# as_fn_append VAR VALUE
17032# ----------------------
17033# Append the text in VALUE to the end of the definition contained in VAR. Take
17034# advantage of any shell optimizations that allow amortized linear growth over
17035# repeated appends, instead of the typical quadratic growth present in naive
17036# implementations.
17037if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
17038  eval 'as_fn_append ()
17039  {
17040    eval $1+=\$2
17041  }'
17042else
17043  as_fn_append ()
17044  {
17045    eval $1=\$$1\$2
17046  }
17047fi # as_fn_append
17048
17049# as_fn_arith ARG...
17050# ------------------
17051# Perform arithmetic evaluation on the ARGs, and store the result in the
17052# global $as_val. Take advantage of shells that can avoid forks. The arguments
17053# must be portable across $(()) and expr.
17054if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
17055  eval 'as_fn_arith ()
17056  {
17057    as_val=$(( $* ))
17058  }'
17059else
17060  as_fn_arith ()
17061  {
17062    as_val=`expr "$@" || test $? -eq 1`
17063  }
17064fi # as_fn_arith
17065
17066
17067if expr a : '\(a\)' >/dev/null 2>&1 &&
17068   test "X`expr 00001 : '.*\(...\)'`" = X001; then
17069  as_expr=expr
17070else
17071  as_expr=false
17072fi
17073
17074if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
17075  as_basename=basename
17076else
17077  as_basename=false
17078fi
17079
17080if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
17081  as_dirname=dirname
17082else
17083  as_dirname=false
17084fi
17085
17086as_me=`$as_basename -- "$0" ||
17087$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
17088	 X"$0" : 'X\(//\)$' \| \
17089	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
17090$as_echo X/"$0" |
17091    sed '/^.*\/\([^/][^/]*\)\/*$/{
17092	    s//\1/
17093	    q
17094	  }
17095	  /^X\/\(\/\/\)$/{
17096	    s//\1/
17097	    q
17098	  }
17099	  /^X\/\(\/\).*/{
17100	    s//\1/
17101	    q
17102	  }
17103	  s/.*/./; q'`
17104
17105# Avoid depending upon Character Ranges.
17106as_cr_letters='abcdefghijklmnopqrstuvwxyz'
17107as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
17108as_cr_Letters=$as_cr_letters$as_cr_LETTERS
17109as_cr_digits='0123456789'
17110as_cr_alnum=$as_cr_Letters$as_cr_digits
17111
17112ECHO_C= ECHO_N= ECHO_T=
17113case `echo -n x` in #(((((
17114-n*)
17115  case `echo 'xy\c'` in
17116  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
17117  xy)  ECHO_C='\c';;
17118  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
17119       ECHO_T='	';;
17120  esac;;
17121*)
17122  ECHO_N='-n';;
17123esac
17124
17125rm -f conf$$ conf$$.exe conf$$.file
17126if test -d conf$$.dir; then
17127  rm -f conf$$.dir/conf$$.file
17128else
17129  rm -f conf$$.dir
17130  mkdir conf$$.dir 2>/dev/null
17131fi
17132if (echo >conf$$.file) 2>/dev/null; then
17133  if ln -s conf$$.file conf$$ 2>/dev/null; then
17134    as_ln_s='ln -s'
17135    # ... but there are two gotchas:
17136    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
17137    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
17138    # In both cases, we have to default to `cp -pR'.
17139    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
17140      as_ln_s='cp -pR'
17141  elif ln conf$$.file conf$$ 2>/dev/null; then
17142    as_ln_s=ln
17143  else
17144    as_ln_s='cp -pR'
17145  fi
17146else
17147  as_ln_s='cp -pR'
17148fi
17149rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
17150rmdir conf$$.dir 2>/dev/null
17151
17152
17153# as_fn_mkdir_p
17154# -------------
17155# Create "$as_dir" as a directory, including parents if necessary.
17156as_fn_mkdir_p ()
17157{
17158
17159  case $as_dir in #(
17160  -*) as_dir=./$as_dir;;
17161  esac
17162  test -d "$as_dir" || eval $as_mkdir_p || {
17163    as_dirs=
17164    while :; do
17165      case $as_dir in #(
17166      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
17167      *) as_qdir=$as_dir;;
17168      esac
17169      as_dirs="'$as_qdir' $as_dirs"
17170      as_dir=`$as_dirname -- "$as_dir" ||
17171$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17172	 X"$as_dir" : 'X\(//\)[^/]' \| \
17173	 X"$as_dir" : 'X\(//\)$' \| \
17174	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
17175$as_echo X"$as_dir" |
17176    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17177	    s//\1/
17178	    q
17179	  }
17180	  /^X\(\/\/\)[^/].*/{
17181	    s//\1/
17182	    q
17183	  }
17184	  /^X\(\/\/\)$/{
17185	    s//\1/
17186	    q
17187	  }
17188	  /^X\(\/\).*/{
17189	    s//\1/
17190	    q
17191	  }
17192	  s/.*/./; q'`
17193      test -d "$as_dir" && break
17194    done
17195    test -z "$as_dirs" || eval "mkdir $as_dirs"
17196  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
17197
17198
17199} # as_fn_mkdir_p
17200if mkdir -p . 2>/dev/null; then
17201  as_mkdir_p='mkdir -p "$as_dir"'
17202else
17203  test -d ./-p && rmdir ./-p
17204  as_mkdir_p=false
17205fi
17206
17207
17208# as_fn_executable_p FILE
17209# -----------------------
17210# Test if FILE is an executable regular file.
17211as_fn_executable_p ()
17212{
17213  test -f "$1" && test -x "$1"
17214} # as_fn_executable_p
17215as_test_x='test -x'
17216as_executable_p=as_fn_executable_p
17217
17218# Sed expression to map a string onto a valid CPP name.
17219as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
17220
17221# Sed expression to map a string onto a valid variable name.
17222as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
17223
17224
17225exec 6>&1
17226## ----------------------------------- ##
17227## Main body of $CONFIG_STATUS script. ##
17228## ----------------------------------- ##
17229_ASEOF
17230test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
17231
17232cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17233# Save the log message, to keep $0 and so on meaningful, and to
17234# report actual input values of CONFIG_FILES etc. instead of their
17235# values after options handling.
17236ac_log="
17237This file was extended by libgc-mono $as_me 6.6, which was
17238generated by GNU Autoconf 2.69.  Invocation command line was
17239
17240  CONFIG_FILES    = $CONFIG_FILES
17241  CONFIG_HEADERS  = $CONFIG_HEADERS
17242  CONFIG_LINKS    = $CONFIG_LINKS
17243  CONFIG_COMMANDS = $CONFIG_COMMANDS
17244  $ $0 $@
17245
17246on `(hostname || uname -n) 2>/dev/null | sed 1q`
17247"
17248
17249_ACEOF
17250
17251case $ac_config_files in *"
17252"*) set x $ac_config_files; shift; ac_config_files=$*;;
17253esac
17254
17255
17256
17257cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17258# Files that config.status was made for.
17259config_files="$ac_config_files"
17260config_commands="$ac_config_commands"
17261
17262_ACEOF
17263
17264cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17265ac_cs_usage="\
17266\`$as_me' instantiates files and other configuration actions
17267from templates according to the current configuration.  Unless the files
17268and actions are specified as TAGs, all are instantiated by default.
17269
17270Usage: $0 [OPTION]... [TAG]...
17271
17272  -h, --help       print this help, then exit
17273  -V, --version    print version number and configuration settings, then exit
17274      --config     print configuration, then exit
17275  -q, --quiet, --silent
17276                   do not print progress messages
17277  -d, --debug      don't remove temporary files
17278      --recheck    update $as_me by reconfiguring in the same conditions
17279      --file=FILE[:TEMPLATE]
17280                   instantiate the configuration file FILE
17281
17282Configuration files:
17283$config_files
17284
17285Configuration commands:
17286$config_commands
17287
17288Report bugs to <Hans_Boehm@hp.com>."
17289
17290_ACEOF
17291cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17292ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
17293ac_cs_version="\\
17294libgc-mono config.status 6.6
17295configured by $0, generated by GNU Autoconf 2.69,
17296  with options \\"\$ac_cs_config\\"
17297
17298Copyright (C) 2012 Free Software Foundation, Inc.
17299This config.status script is free software; the Free Software Foundation
17300gives unlimited permission to copy, distribute and modify it."
17301
17302ac_pwd='$ac_pwd'
17303srcdir='$srcdir'
17304INSTALL='$INSTALL'
17305MKDIR_P='$MKDIR_P'
17306AWK='$AWK'
17307test -n "\$AWK" || AWK=awk
17308_ACEOF
17309
17310cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17311# The default lists apply if the user does not specify any file.
17312ac_need_defaults=:
17313while test $# != 0
17314do
17315  case $1 in
17316  --*=?*)
17317    ac_option=`expr "X$1" : 'X\([^=]*\)='`
17318    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
17319    ac_shift=:
17320    ;;
17321  --*=)
17322    ac_option=`expr "X$1" : 'X\([^=]*\)='`
17323    ac_optarg=
17324    ac_shift=:
17325    ;;
17326  *)
17327    ac_option=$1
17328    ac_optarg=$2
17329    ac_shift=shift
17330    ;;
17331  esac
17332
17333  case $ac_option in
17334  # Handling of the options.
17335  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
17336    ac_cs_recheck=: ;;
17337  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
17338    $as_echo "$ac_cs_version"; exit ;;
17339  --config | --confi | --conf | --con | --co | --c )
17340    $as_echo "$ac_cs_config"; exit ;;
17341  --debug | --debu | --deb | --de | --d | -d )
17342    debug=: ;;
17343  --file | --fil | --fi | --f )
17344    $ac_shift
17345    case $ac_optarg in
17346    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
17347    '') as_fn_error $? "missing file argument" ;;
17348    esac
17349    as_fn_append CONFIG_FILES " '$ac_optarg'"
17350    ac_need_defaults=false;;
17351  --he | --h |  --help | --hel | -h )
17352    $as_echo "$ac_cs_usage"; exit ;;
17353  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
17354  | -silent | --silent | --silen | --sile | --sil | --si | --s)
17355    ac_cs_silent=: ;;
17356
17357  # This is an error.
17358  -*) as_fn_error $? "unrecognized option: \`$1'
17359Try \`$0 --help' for more information." ;;
17360
17361  *) as_fn_append ac_config_targets " $1"
17362     ac_need_defaults=false ;;
17363
17364  esac
17365  shift
17366done
17367
17368ac_configure_extra_args=
17369
17370if $ac_cs_silent; then
17371  exec 6>/dev/null
17372  ac_configure_extra_args="$ac_configure_extra_args --silent"
17373fi
17374
17375_ACEOF
17376cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17377if \$ac_cs_recheck; then
17378  set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
17379  shift
17380  \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
17381  CONFIG_SHELL='$SHELL'
17382  export CONFIG_SHELL
17383  exec "\$@"
17384fi
17385
17386_ACEOF
17387cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17388exec 5>>config.log
17389{
17390  echo
17391  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
17392## Running $as_me. ##
17393_ASBOX
17394  $as_echo "$ac_log"
17395} >&5
17396
17397_ACEOF
17398cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17399#
17400# INIT-COMMANDS
17401#
17402AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
17403
17404
17405# The HP-UX ksh and POSIX shell print the target directory to stdout
17406# if CDPATH is set.
17407(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
17408
17409sed_quote_subst='$sed_quote_subst'
17410double_quote_subst='$double_quote_subst'
17411delay_variable_subst='$delay_variable_subst'
17412enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
17413macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
17414macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
17415enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
17416pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
17417enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
17418SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
17419ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
17420PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
17421host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
17422host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
17423host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
17424build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
17425build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
17426build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
17427SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
17428Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
17429GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
17430EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
17431FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
17432LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
17433NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
17434LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
17435max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
17436ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
17437exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
17438lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
17439lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
17440lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
17441lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
17442lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
17443reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
17444reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
17445OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
17446deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
17447file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
17448file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
17449want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
17450DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
17451sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
17452AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
17453AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
17454archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
17455STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
17456RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
17457old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
17458old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
17459old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
17460lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
17461CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
17462CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
17463compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
17464GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
17465lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
17466lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
17467lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
17468lt_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"`'
17469nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
17470lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
17471objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
17472MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
17473lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
17474lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
17475lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
17476lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
17477lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
17478need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
17479MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
17480DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
17481NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
17482LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
17483OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
17484OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
17485libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
17486shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
17487extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
17488archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
17489enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
17490export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
17491whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
17492compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
17493old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
17494old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
17495archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
17496archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
17497module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
17498module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
17499with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
17500allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
17501no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
17502hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
17503hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
17504hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
17505hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
17506hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
17507hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
17508hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
17509inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
17510link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
17511always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
17512export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
17513exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
17514include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
17515prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
17516postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
17517file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
17518variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
17519need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
17520need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
17521version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
17522runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
17523shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
17524shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
17525libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
17526library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
17527soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
17528install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
17529postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
17530postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
17531finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
17532finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
17533hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
17534sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
17535sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
17536hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
17537enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
17538enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
17539enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
17540old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
17541striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
17542compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
17543predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
17544postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
17545predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
17546postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
17547compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
17548LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
17549reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
17550reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17551old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17552compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
17553GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
17554lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
17555lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
17556lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
17557lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
17558lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
17559archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
17560enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
17561export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
17562whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
17563compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
17564old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17565old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17566archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17567archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17568module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17569module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17570with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
17571allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
17572no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
17573hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
17574hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
17575hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
17576hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
17577hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
17578hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
17579hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
17580inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
17581link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
17582always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
17583export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17584exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
17585include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
17586prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17587postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17588file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
17589hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
17590compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
17591predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
17592postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
17593predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
17594postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
17595compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
17596
17597LTCC='$LTCC'
17598LTCFLAGS='$LTCFLAGS'
17599compiler='$compiler_DEFAULT'
17600
17601# A function that is used when there is no print builtin or printf.
17602func_fallback_echo ()
17603{
17604  eval 'cat <<_LTECHO_EOF
17605\$1
17606_LTECHO_EOF'
17607}
17608
17609# Quote evaled strings.
17610for var in SHELL \
17611ECHO \
17612PATH_SEPARATOR \
17613SED \
17614GREP \
17615EGREP \
17616FGREP \
17617LD \
17618NM \
17619LN_S \
17620lt_SP2NL \
17621lt_NL2SP \
17622reload_flag \
17623OBJDUMP \
17624deplibs_check_method \
17625file_magic_cmd \
17626file_magic_glob \
17627want_nocaseglob \
17628DLLTOOL \
17629sharedlib_from_linklib_cmd \
17630AR \
17631AR_FLAGS \
17632archiver_list_spec \
17633STRIP \
17634RANLIB \
17635CC \
17636CFLAGS \
17637compiler \
17638lt_cv_sys_global_symbol_pipe \
17639lt_cv_sys_global_symbol_to_cdecl \
17640lt_cv_sys_global_symbol_to_c_name_address \
17641lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
17642nm_file_list_spec \
17643lt_prog_compiler_no_builtin_flag \
17644lt_prog_compiler_pic \
17645lt_prog_compiler_wl \
17646lt_prog_compiler_static \
17647lt_cv_prog_compiler_c_o \
17648need_locks \
17649MANIFEST_TOOL \
17650DSYMUTIL \
17651NMEDIT \
17652LIPO \
17653OTOOL \
17654OTOOL64 \
17655shrext_cmds \
17656export_dynamic_flag_spec \
17657whole_archive_flag_spec \
17658compiler_needs_object \
17659with_gnu_ld \
17660allow_undefined_flag \
17661no_undefined_flag \
17662hardcode_libdir_flag_spec \
17663hardcode_libdir_separator \
17664exclude_expsyms \
17665include_expsyms \
17666file_list_spec \
17667variables_saved_for_relink \
17668libname_spec \
17669library_names_spec \
17670soname_spec \
17671install_override_mode \
17672finish_eval \
17673old_striplib \
17674striplib \
17675compiler_lib_search_dirs \
17676predep_objects \
17677postdep_objects \
17678predeps \
17679postdeps \
17680compiler_lib_search_path \
17681LD_CXX \
17682reload_flag_CXX \
17683compiler_CXX \
17684lt_prog_compiler_no_builtin_flag_CXX \
17685lt_prog_compiler_pic_CXX \
17686lt_prog_compiler_wl_CXX \
17687lt_prog_compiler_static_CXX \
17688lt_cv_prog_compiler_c_o_CXX \
17689export_dynamic_flag_spec_CXX \
17690whole_archive_flag_spec_CXX \
17691compiler_needs_object_CXX \
17692with_gnu_ld_CXX \
17693allow_undefined_flag_CXX \
17694no_undefined_flag_CXX \
17695hardcode_libdir_flag_spec_CXX \
17696hardcode_libdir_separator_CXX \
17697exclude_expsyms_CXX \
17698include_expsyms_CXX \
17699file_list_spec_CXX \
17700compiler_lib_search_dirs_CXX \
17701predep_objects_CXX \
17702postdep_objects_CXX \
17703predeps_CXX \
17704postdeps_CXX \
17705compiler_lib_search_path_CXX; do
17706    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
17707    *[\\\\\\\`\\"\\\$]*)
17708      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
17709      ;;
17710    *)
17711      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
17712      ;;
17713    esac
17714done
17715
17716# Double-quote double-evaled strings.
17717for var in reload_cmds \
17718old_postinstall_cmds \
17719old_postuninstall_cmds \
17720old_archive_cmds \
17721extract_expsyms_cmds \
17722old_archive_from_new_cmds \
17723old_archive_from_expsyms_cmds \
17724archive_cmds \
17725archive_expsym_cmds \
17726module_cmds \
17727module_expsym_cmds \
17728export_symbols_cmds \
17729prelink_cmds \
17730postlink_cmds \
17731postinstall_cmds \
17732postuninstall_cmds \
17733finish_cmds \
17734sys_lib_search_path_spec \
17735sys_lib_dlsearch_path_spec \
17736reload_cmds_CXX \
17737old_archive_cmds_CXX \
17738old_archive_from_new_cmds_CXX \
17739old_archive_from_expsyms_cmds_CXX \
17740archive_cmds_CXX \
17741archive_expsym_cmds_CXX \
17742module_cmds_CXX \
17743module_expsym_cmds_CXX \
17744export_symbols_cmds_CXX \
17745prelink_cmds_CXX \
17746postlink_cmds_CXX; do
17747    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
17748    *[\\\\\\\`\\"\\\$]*)
17749      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
17750      ;;
17751    *)
17752      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
17753      ;;
17754    esac
17755done
17756
17757ac_aux_dir='$ac_aux_dir'
17758xsi_shell='$xsi_shell'
17759lt_shell_append='$lt_shell_append'
17760
17761# See if we are running on zsh, and set the options which allow our
17762# commands through without removal of \ escapes INIT.
17763if test -n "\${ZSH_VERSION+set}" ; then
17764   setopt NO_GLOB_SUBST
17765fi
17766
17767
17768    PACKAGE='$PACKAGE'
17769    VERSION='$VERSION'
17770    TIMESTAMP='$TIMESTAMP'
17771    RM='$RM'
17772    ofile='$ofile'
17773
17774
17775
17776
17777
17778srcdir=${srcdir}
17779host=${host}
17780CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
17781CC="${CC}"
17782DEFS="$DEFS"
17783
17784
17785_ACEOF
17786
17787cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17788
17789# Handling of arguments.
17790for ac_config_target in $ac_config_targets
17791do
17792  case $ac_config_target in
17793    "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
17794    "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
17795    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
17796    "m4/Makefile") CONFIG_FILES="$CONFIG_FILES m4/Makefile" ;;
17797    "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
17798    "include/private/Makefile") CONFIG_FILES="$CONFIG_FILES include/private/Makefile" ;;
17799    "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
17800    "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
17801
17802  *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
17803  esac
17804done
17805
17806
17807# If the user did not use the arguments to specify the items to instantiate,
17808# then the envvar interface is used.  Set only those that are not.
17809# We use the long form for the default assignment because of an extremely
17810# bizarre bug on SunOS 4.1.3.
17811if $ac_need_defaults; then
17812  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
17813  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
17814fi
17815
17816# Have a temporary directory for convenience.  Make it in the build tree
17817# simply because there is no reason against having it here, and in addition,
17818# creating and moving files from /tmp can sometimes cause problems.
17819# Hook for its removal unless debugging.
17820# Note that there is a small window in which the directory will not be cleaned:
17821# after its creation but before its name has been assigned to `$tmp'.
17822$debug ||
17823{
17824  tmp= ac_tmp=
17825  trap 'exit_status=$?
17826  : "${ac_tmp:=$tmp}"
17827  { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
17828' 0
17829  trap 'as_fn_exit 1' 1 2 13 15
17830}
17831# Create a (secure) tmp directory for tmp files.
17832
17833{
17834  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
17835  test -d "$tmp"
17836}  ||
17837{
17838  tmp=./conf$$-$RANDOM
17839  (umask 077 && mkdir "$tmp")
17840} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
17841ac_tmp=$tmp
17842
17843# Set up the scripts for CONFIG_FILES section.
17844# No need to generate them if there are no CONFIG_FILES.
17845# This happens for instance with `./config.status config.h'.
17846if test -n "$CONFIG_FILES"; then
17847
17848
17849ac_cr=`echo X | tr X '\015'`
17850# On cygwin, bash can eat \r inside `` if the user requested igncr.
17851# But we know of no other shell where ac_cr would be empty at this
17852# point, so we can use a bashism as a fallback.
17853if test "x$ac_cr" = x; then
17854  eval ac_cr=\$\'\\r\'
17855fi
17856ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
17857if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
17858  ac_cs_awk_cr='\\r'
17859else
17860  ac_cs_awk_cr=$ac_cr
17861fi
17862
17863echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
17864_ACEOF
17865
17866
17867{
17868  echo "cat >conf$$subs.awk <<_ACEOF" &&
17869  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
17870  echo "_ACEOF"
17871} >conf$$subs.sh ||
17872  as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
17873ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
17874ac_delim='%!_!# '
17875for ac_last_try in false false false false false :; do
17876  . ./conf$$subs.sh ||
17877    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
17878
17879  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
17880  if test $ac_delim_n = $ac_delim_num; then
17881    break
17882  elif $ac_last_try; then
17883    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
17884  else
17885    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
17886  fi
17887done
17888rm -f conf$$subs.sh
17889
17890cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17891cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
17892_ACEOF
17893sed -n '
17894h
17895s/^/S["/; s/!.*/"]=/
17896p
17897g
17898s/^[^!]*!//
17899:repl
17900t repl
17901s/'"$ac_delim"'$//
17902t delim
17903:nl
17904h
17905s/\(.\{148\}\)..*/\1/
17906t more1
17907s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
17908p
17909n
17910b repl
17911:more1
17912s/["\\]/\\&/g; s/^/"/; s/$/"\\/
17913p
17914g
17915s/.\{148\}//
17916t nl
17917:delim
17918h
17919s/\(.\{148\}\)..*/\1/
17920t more2
17921s/["\\]/\\&/g; s/^/"/; s/$/"/
17922p
17923b
17924:more2
17925s/["\\]/\\&/g; s/^/"/; s/$/"\\/
17926p
17927g
17928s/.\{148\}//
17929t delim
17930' <conf$$subs.awk | sed '
17931/^[^""]/{
17932  N
17933  s/\n//
17934}
17935' >>$CONFIG_STATUS || ac_write_fail=1
17936rm -f conf$$subs.awk
17937cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17938_ACAWK
17939cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
17940  for (key in S) S_is_set[key] = 1
17941  FS = ""
17942
17943}
17944{
17945  line = $ 0
17946  nfields = split(line, field, "@")
17947  substed = 0
17948  len = length(field[1])
17949  for (i = 2; i < nfields; i++) {
17950    key = field[i]
17951    keylen = length(key)
17952    if (S_is_set[key]) {
17953      value = S[key]
17954      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
17955      len += length(value) + length(field[++i])
17956      substed = 1
17957    } else
17958      len += 1 + keylen
17959  }
17960
17961  print line
17962}
17963
17964_ACAWK
17965_ACEOF
17966cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17967if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
17968  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
17969else
17970  cat
17971fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
17972  || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
17973_ACEOF
17974
17975# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
17976# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
17977# trailing colons and then remove the whole line if VPATH becomes empty
17978# (actually we leave an empty line to preserve line numbers).
17979if test "x$srcdir" = x.; then
17980  ac_vpsub='/^[	 ]*VPATH[	 ]*=[	 ]*/{
17981h
17982s///
17983s/^/:/
17984s/[	 ]*$/:/
17985s/:\$(srcdir):/:/g
17986s/:\${srcdir}:/:/g
17987s/:@srcdir@:/:/g
17988s/^:*//
17989s/:*$//
17990x
17991s/\(=[	 ]*\).*/\1/
17992G
17993s/\n//
17994s/^[^=]*=[	 ]*$//
17995}'
17996fi
17997
17998cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17999fi # test -n "$CONFIG_FILES"
18000
18001
18002eval set X "  :F $CONFIG_FILES      :C $CONFIG_COMMANDS"
18003shift
18004for ac_tag
18005do
18006  case $ac_tag in
18007  :[FHLC]) ac_mode=$ac_tag; continue;;
18008  esac
18009  case $ac_mode$ac_tag in
18010  :[FHL]*:*);;
18011  :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
18012  :[FH]-) ac_tag=-:-;;
18013  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
18014  esac
18015  ac_save_IFS=$IFS
18016  IFS=:
18017  set x $ac_tag
18018  IFS=$ac_save_IFS
18019  shift
18020  ac_file=$1
18021  shift
18022
18023  case $ac_mode in
18024  :L) ac_source=$1;;
18025  :[FH])
18026    ac_file_inputs=
18027    for ac_f
18028    do
18029      case $ac_f in
18030      -) ac_f="$ac_tmp/stdin";;
18031      *) # Look for the file first in the build tree, then in the source tree
18032	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
18033	 # because $ac_f cannot contain `:'.
18034	 test -f "$ac_f" ||
18035	   case $ac_f in
18036	   [\\/$]*) false;;
18037	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
18038	   esac ||
18039	   as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
18040      esac
18041      case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
18042      as_fn_append ac_file_inputs " '$ac_f'"
18043    done
18044
18045    # Let's still pretend it is `configure' which instantiates (i.e., don't
18046    # use $as_me), people would be surprised to read:
18047    #    /* config.h.  Generated by config.status.  */
18048    configure_input='Generated from '`
18049	  $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
18050	`' by configure.'
18051    if test x"$ac_file" != x-; then
18052      configure_input="$ac_file.  $configure_input"
18053      { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
18054$as_echo "$as_me: creating $ac_file" >&6;}
18055    fi
18056    # Neutralize special characters interpreted by sed in replacement strings.
18057    case $configure_input in #(
18058    *\&* | *\|* | *\\* )
18059       ac_sed_conf_input=`$as_echo "$configure_input" |
18060       sed 's/[\\\\&|]/\\\\&/g'`;; #(
18061    *) ac_sed_conf_input=$configure_input;;
18062    esac
18063
18064    case $ac_tag in
18065    *:-:* | *:-) cat >"$ac_tmp/stdin" \
18066      || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
18067    esac
18068    ;;
18069  esac
18070
18071  ac_dir=`$as_dirname -- "$ac_file" ||
18072$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18073	 X"$ac_file" : 'X\(//\)[^/]' \| \
18074	 X"$ac_file" : 'X\(//\)$' \| \
18075	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
18076$as_echo X"$ac_file" |
18077    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18078	    s//\1/
18079	    q
18080	  }
18081	  /^X\(\/\/\)[^/].*/{
18082	    s//\1/
18083	    q
18084	  }
18085	  /^X\(\/\/\)$/{
18086	    s//\1/
18087	    q
18088	  }
18089	  /^X\(\/\).*/{
18090	    s//\1/
18091	    q
18092	  }
18093	  s/.*/./; q'`
18094  as_dir="$ac_dir"; as_fn_mkdir_p
18095  ac_builddir=.
18096
18097case "$ac_dir" in
18098.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
18099*)
18100  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
18101  # A ".." for each directory in $ac_dir_suffix.
18102  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
18103  case $ac_top_builddir_sub in
18104  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
18105  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
18106  esac ;;
18107esac
18108ac_abs_top_builddir=$ac_pwd
18109ac_abs_builddir=$ac_pwd$ac_dir_suffix
18110# for backward compatibility:
18111ac_top_builddir=$ac_top_build_prefix
18112
18113case $srcdir in
18114  .)  # We are building in place.
18115    ac_srcdir=.
18116    ac_top_srcdir=$ac_top_builddir_sub
18117    ac_abs_top_srcdir=$ac_pwd ;;
18118  [\\/]* | ?:[\\/]* )  # Absolute name.
18119    ac_srcdir=$srcdir$ac_dir_suffix;
18120    ac_top_srcdir=$srcdir
18121    ac_abs_top_srcdir=$srcdir ;;
18122  *) # Relative name.
18123    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
18124    ac_top_srcdir=$ac_top_build_prefix$srcdir
18125    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
18126esac
18127ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
18128
18129
18130  case $ac_mode in
18131  :F)
18132  #
18133  # CONFIG_FILE
18134  #
18135
18136  case $INSTALL in
18137  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
18138  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
18139  esac
18140  ac_MKDIR_P=$MKDIR_P
18141  case $MKDIR_P in
18142  [\\/$]* | ?:[\\/]* ) ;;
18143  */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
18144  esac
18145_ACEOF
18146
18147cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18148# If the template does not know about datarootdir, expand it.
18149# FIXME: This hack should be removed a few years after 2.60.
18150ac_datarootdir_hack=; ac_datarootdir_seen=
18151ac_sed_dataroot='
18152/datarootdir/ {
18153  p
18154  q
18155}
18156/@datadir@/p
18157/@docdir@/p
18158/@infodir@/p
18159/@localedir@/p
18160/@mandir@/p'
18161case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
18162*datarootdir*) ac_datarootdir_seen=yes;;
18163*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
18164  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
18165$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
18166_ACEOF
18167cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18168  ac_datarootdir_hack='
18169  s&@datadir@&$datadir&g
18170  s&@docdir@&$docdir&g
18171  s&@infodir@&$infodir&g
18172  s&@localedir@&$localedir&g
18173  s&@mandir@&$mandir&g
18174  s&\\\${datarootdir}&$datarootdir&g' ;;
18175esac
18176_ACEOF
18177
18178# Neutralize VPATH when `$srcdir' = `.'.
18179# Shell code in configure.ac might set extrasub.
18180# FIXME: do we really want to maintain this feature?
18181cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18182ac_sed_extra="$ac_vpsub
18183$extrasub
18184_ACEOF
18185cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18186:t
18187/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
18188s|@configure_input@|$ac_sed_conf_input|;t t
18189s&@top_builddir@&$ac_top_builddir_sub&;t t
18190s&@top_build_prefix@&$ac_top_build_prefix&;t t
18191s&@srcdir@&$ac_srcdir&;t t
18192s&@abs_srcdir@&$ac_abs_srcdir&;t t
18193s&@top_srcdir@&$ac_top_srcdir&;t t
18194s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
18195s&@builddir@&$ac_builddir&;t t
18196s&@abs_builddir@&$ac_abs_builddir&;t t
18197s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
18198s&@INSTALL@&$ac_INSTALL&;t t
18199s&@MKDIR_P@&$ac_MKDIR_P&;t t
18200$ac_datarootdir_hack
18201"
18202eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
18203  >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
18204
18205test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
18206  { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
18207  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' \
18208      "$ac_tmp/out"`; test -z "$ac_out"; } &&
18209  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
18210which seems to be undefined.  Please make sure it is defined" >&5
18211$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
18212which seems to be undefined.  Please make sure it is defined" >&2;}
18213
18214  rm -f "$ac_tmp/stdin"
18215  case $ac_file in
18216  -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
18217  *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
18218  esac \
18219  || as_fn_error $? "could not create $ac_file" "$LINENO" 5
18220 ;;
18221
18222
18223  :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
18224$as_echo "$as_me: executing $ac_file commands" >&6;}
18225 ;;
18226  esac
18227
18228
18229  case $ac_file$ac_mode in
18230    "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
18231  # Older Autoconf quotes --file arguments for eval, but not when files
18232  # are listed without --file.  Let's play safe and only enable the eval
18233  # if we detect the quoting.
18234  case $CONFIG_FILES in
18235  *\'*) eval set x "$CONFIG_FILES" ;;
18236  *)   set x $CONFIG_FILES ;;
18237  esac
18238  shift
18239  for mf
18240  do
18241    # Strip MF so we end up with the name of the file.
18242    mf=`echo "$mf" | sed -e 's/:.*$//'`
18243    # Check whether this is an Automake generated Makefile or not.
18244    # We used to match only the files named 'Makefile.in', but
18245    # some people rename them; so instead we look at the file content.
18246    # Grep'ing the first line is not enough: some people post-process
18247    # each Makefile.in and add a new line on top of each file to say so.
18248    # Grep'ing the whole file is not good either: AIX grep has a line
18249    # limit of 2048, but all sed's we know have understand at least 4000.
18250    if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
18251      dirpart=`$as_dirname -- "$mf" ||
18252$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18253	 X"$mf" : 'X\(//\)[^/]' \| \
18254	 X"$mf" : 'X\(//\)$' \| \
18255	 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
18256$as_echo X"$mf" |
18257    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18258	    s//\1/
18259	    q
18260	  }
18261	  /^X\(\/\/\)[^/].*/{
18262	    s//\1/
18263	    q
18264	  }
18265	  /^X\(\/\/\)$/{
18266	    s//\1/
18267	    q
18268	  }
18269	  /^X\(\/\).*/{
18270	    s//\1/
18271	    q
18272	  }
18273	  s/.*/./; q'`
18274    else
18275      continue
18276    fi
18277    # Extract the definition of DEPDIR, am__include, and am__quote
18278    # from the Makefile without running 'make'.
18279    DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
18280    test -z "$DEPDIR" && continue
18281    am__include=`sed -n 's/^am__include = //p' < "$mf"`
18282    test -z "$am__include" && continue
18283    am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
18284    # Find all dependency output files, they are included files with
18285    # $(DEPDIR) in their names.  We invoke sed twice because it is the
18286    # simplest approach to changing $(DEPDIR) to its actual value in the
18287    # expansion.
18288    for file in `sed -n "
18289      s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
18290	 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
18291      # Make sure the directory exists.
18292      test -f "$dirpart/$file" && continue
18293      fdir=`$as_dirname -- "$file" ||
18294$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18295	 X"$file" : 'X\(//\)[^/]' \| \
18296	 X"$file" : 'X\(//\)$' \| \
18297	 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
18298$as_echo X"$file" |
18299    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18300	    s//\1/
18301	    q
18302	  }
18303	  /^X\(\/\/\)[^/].*/{
18304	    s//\1/
18305	    q
18306	  }
18307	  /^X\(\/\/\)$/{
18308	    s//\1/
18309	    q
18310	  }
18311	  /^X\(\/\).*/{
18312	    s//\1/
18313	    q
18314	  }
18315	  s/.*/./; q'`
18316      as_dir=$dirpart/$fdir; as_fn_mkdir_p
18317      # echo "creating $dirpart/$file"
18318      echo '# dummy' > "$dirpart/$file"
18319    done
18320  done
18321}
18322 ;;
18323    "libtool":C)
18324
18325    # See if we are running on zsh, and set the options which allow our
18326    # commands through without removal of \ escapes.
18327    if test -n "${ZSH_VERSION+set}" ; then
18328      setopt NO_GLOB_SUBST
18329    fi
18330
18331    cfgfile="${ofile}T"
18332    trap "$RM \"$cfgfile\"; exit 1" 1 2 15
18333    $RM "$cfgfile"
18334
18335    cat <<_LT_EOF >> "$cfgfile"
18336#! $SHELL
18337
18338# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
18339# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
18340# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18341# NOTE: Changes made to this file will be lost: look at ltmain.sh.
18342#
18343#   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
18344#                 2006, 2007, 2008, 2009, 2010, 2011 Free Software
18345#                 Foundation, Inc.
18346#   Written by Gordon Matzigkeit, 1996
18347#
18348#   This file is part of GNU Libtool.
18349#
18350# GNU Libtool is free software; you can redistribute it and/or
18351# modify it under the terms of the GNU General Public License as
18352# published by the Free Software Foundation; either version 2 of
18353# the License, or (at your option) any later version.
18354#
18355# As a special exception to the GNU General Public License,
18356# if you distribute this file as part of a program or library that
18357# is built using GNU Libtool, you may include this file under the
18358# same distribution terms that you use for the rest of that program.
18359#
18360# GNU Libtool is distributed in the hope that it will be useful,
18361# but WITHOUT ANY WARRANTY; without even the implied warranty of
18362# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
18363# GNU General Public License for more details.
18364#
18365# You should have received a copy of the GNU General Public License
18366# along with GNU Libtool; see the file COPYING.  If not, a copy
18367# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
18368# obtained by writing to the Free Software Foundation, Inc.,
18369# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
18370
18371
18372# The names of the tagged configurations supported by this script.
18373available_tags="CXX "
18374
18375# ### BEGIN LIBTOOL CONFIG
18376
18377# Whether or not to build shared libraries.
18378build_libtool_libs=$enable_shared
18379
18380# Which release of libtool.m4 was used?
18381macro_version=$macro_version
18382macro_revision=$macro_revision
18383
18384# Whether or not to build static libraries.
18385build_old_libs=$enable_static
18386
18387# What type of objects to build.
18388pic_mode=$pic_mode
18389
18390# Whether or not to optimize for fast installation.
18391fast_install=$enable_fast_install
18392
18393# Shell to use when invoking shell scripts.
18394SHELL=$lt_SHELL
18395
18396# An echo program that protects backslashes.
18397ECHO=$lt_ECHO
18398
18399# The PATH separator for the build system.
18400PATH_SEPARATOR=$lt_PATH_SEPARATOR
18401
18402# The host system.
18403host_alias=$host_alias
18404host=$host
18405host_os=$host_os
18406
18407# The build system.
18408build_alias=$build_alias
18409build=$build
18410build_os=$build_os
18411
18412# A sed program that does not truncate output.
18413SED=$lt_SED
18414
18415# Sed that helps us avoid accidentally triggering echo(1) options like -n.
18416Xsed="\$SED -e 1s/^X//"
18417
18418# A grep program that handles long lines.
18419GREP=$lt_GREP
18420
18421# An ERE matcher.
18422EGREP=$lt_EGREP
18423
18424# A literal string matcher.
18425FGREP=$lt_FGREP
18426
18427# A BSD- or MS-compatible name lister.
18428NM=$lt_NM
18429
18430# Whether we need soft or hard links.
18431LN_S=$lt_LN_S
18432
18433# What is the maximum length of a command?
18434max_cmd_len=$max_cmd_len
18435
18436# Object file suffix (normally "o").
18437objext=$ac_objext
18438
18439# Executable file suffix (normally "").
18440exeext=$exeext
18441
18442# whether the shell understands "unset".
18443lt_unset=$lt_unset
18444
18445# turn spaces into newlines.
18446SP2NL=$lt_lt_SP2NL
18447
18448# turn newlines into spaces.
18449NL2SP=$lt_lt_NL2SP
18450
18451# convert \$build file names to \$host format.
18452to_host_file_cmd=$lt_cv_to_host_file_cmd
18453
18454# convert \$build files to toolchain format.
18455to_tool_file_cmd=$lt_cv_to_tool_file_cmd
18456
18457# An object symbol dumper.
18458OBJDUMP=$lt_OBJDUMP
18459
18460# Method to check whether dependent libraries are shared objects.
18461deplibs_check_method=$lt_deplibs_check_method
18462
18463# Command to use when deplibs_check_method = "file_magic".
18464file_magic_cmd=$lt_file_magic_cmd
18465
18466# How to find potential files when deplibs_check_method = "file_magic".
18467file_magic_glob=$lt_file_magic_glob
18468
18469# Find potential files using nocaseglob when deplibs_check_method = "file_magic".
18470want_nocaseglob=$lt_want_nocaseglob
18471
18472# DLL creation program.
18473DLLTOOL=$lt_DLLTOOL
18474
18475# Command to associate shared and link libraries.
18476sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
18477
18478# The archiver.
18479AR=$lt_AR
18480
18481# Flags to create an archive.
18482AR_FLAGS=$lt_AR_FLAGS
18483
18484# How to feed a file listing to the archiver.
18485archiver_list_spec=$lt_archiver_list_spec
18486
18487# A symbol stripping program.
18488STRIP=$lt_STRIP
18489
18490# Commands used to install an old-style archive.
18491RANLIB=$lt_RANLIB
18492old_postinstall_cmds=$lt_old_postinstall_cmds
18493old_postuninstall_cmds=$lt_old_postuninstall_cmds
18494
18495# Whether to use a lock for old archive extraction.
18496lock_old_archive_extraction=$lock_old_archive_extraction
18497
18498# A C compiler.
18499LTCC=$lt_CC
18500
18501# LTCC compiler flags.
18502LTCFLAGS=$lt_CFLAGS
18503
18504# Take the output of nm and produce a listing of raw symbols and C names.
18505global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18506
18507# Transform the output of nm in a proper C declaration.
18508global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18509
18510# Transform the output of nm in a C name address pair.
18511global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18512
18513# Transform the output of nm in a C name address pair when lib prefix is needed.
18514global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
18515
18516# Specify filename containing input files for \$NM.
18517nm_file_list_spec=$lt_nm_file_list_spec
18518
18519# The root where to search for dependent libraries,and in which our libraries should be installed.
18520lt_sysroot=$lt_sysroot
18521
18522# The name of the directory that contains temporary libtool files.
18523objdir=$objdir
18524
18525# Used to examine libraries when file_magic_cmd begins with "file".
18526MAGIC_CMD=$MAGIC_CMD
18527
18528# Must we lock files when doing compilation?
18529need_locks=$lt_need_locks
18530
18531# Manifest tool.
18532MANIFEST_TOOL=$lt_MANIFEST_TOOL
18533
18534# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
18535DSYMUTIL=$lt_DSYMUTIL
18536
18537# Tool to change global to local symbols on Mac OS X.
18538NMEDIT=$lt_NMEDIT
18539
18540# Tool to manipulate fat objects and archives on Mac OS X.
18541LIPO=$lt_LIPO
18542
18543# ldd/readelf like tool for Mach-O binaries on Mac OS X.
18544OTOOL=$lt_OTOOL
18545
18546# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
18547OTOOL64=$lt_OTOOL64
18548
18549# Old archive suffix (normally "a").
18550libext=$libext
18551
18552# Shared library suffix (normally ".so").
18553shrext_cmds=$lt_shrext_cmds
18554
18555# The commands to extract the exported symbol list from a shared archive.
18556extract_expsyms_cmds=$lt_extract_expsyms_cmds
18557
18558# Variables whose values should be saved in libtool wrapper scripts and
18559# restored at link time.
18560variables_saved_for_relink=$lt_variables_saved_for_relink
18561
18562# Do we need the "lib" prefix for modules?
18563need_lib_prefix=$need_lib_prefix
18564
18565# Do we need a version for libraries?
18566need_version=$need_version
18567
18568# Library versioning type.
18569version_type=$version_type
18570
18571# Shared library runtime path variable.
18572runpath_var=$runpath_var
18573
18574# Shared library path variable.
18575shlibpath_var=$shlibpath_var
18576
18577# Is shlibpath searched before the hard-coded library search path?
18578shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18579
18580# Format of library name prefix.
18581libname_spec=$lt_libname_spec
18582
18583# List of archive names.  First name is the real one, the rest are links.
18584# The last name is the one that the linker finds with -lNAME
18585library_names_spec=$lt_library_names_spec
18586
18587# The coded name of the library, if different from the real name.
18588soname_spec=$lt_soname_spec
18589
18590# Permission mode override for installation of shared libraries.
18591install_override_mode=$lt_install_override_mode
18592
18593# Command to use after installation of a shared archive.
18594postinstall_cmds=$lt_postinstall_cmds
18595
18596# Command to use after uninstallation of a shared archive.
18597postuninstall_cmds=$lt_postuninstall_cmds
18598
18599# Commands used to finish a libtool library installation in a directory.
18600finish_cmds=$lt_finish_cmds
18601
18602# As "finish_cmds", except a single script fragment to be evaled but
18603# not shown.
18604finish_eval=$lt_finish_eval
18605
18606# Whether we should hardcode library paths into libraries.
18607hardcode_into_libs=$hardcode_into_libs
18608
18609# Compile-time system search path for libraries.
18610sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18611
18612# Run-time system search path for libraries.
18613sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18614
18615# Whether dlopen is supported.
18616dlopen_support=$enable_dlopen
18617
18618# Whether dlopen of programs is supported.
18619dlopen_self=$enable_dlopen_self
18620
18621# Whether dlopen of statically linked programs is supported.
18622dlopen_self_static=$enable_dlopen_self_static
18623
18624# Commands to strip libraries.
18625old_striplib=$lt_old_striplib
18626striplib=$lt_striplib
18627
18628
18629# The linker used to build libraries.
18630LD=$lt_LD
18631
18632# How to create reloadable object files.
18633reload_flag=$lt_reload_flag
18634reload_cmds=$lt_reload_cmds
18635
18636# Commands used to build an old-style archive.
18637old_archive_cmds=$lt_old_archive_cmds
18638
18639# A language specific compiler.
18640CC=$lt_compiler
18641
18642# Is the compiler the GNU compiler?
18643with_gcc=$GCC
18644
18645# Compiler flag to turn off builtin functions.
18646no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
18647
18648# Additional compiler flags for building library objects.
18649pic_flag=$lt_lt_prog_compiler_pic
18650
18651# How to pass a linker flag through the compiler.
18652wl=$lt_lt_prog_compiler_wl
18653
18654# Compiler flag to prevent dynamic linking.
18655link_static_flag=$lt_lt_prog_compiler_static
18656
18657# Does compiler simultaneously support -c and -o options?
18658compiler_c_o=$lt_lt_cv_prog_compiler_c_o
18659
18660# Whether or not to add -lc for building shared libraries.
18661build_libtool_need_lc=$archive_cmds_need_lc
18662
18663# Whether or not to disallow shared libs when runtime libs are static.
18664allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
18665
18666# Compiler flag to allow reflexive dlopens.
18667export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
18668
18669# Compiler flag to generate shared objects directly from archives.
18670whole_archive_flag_spec=$lt_whole_archive_flag_spec
18671
18672# Whether the compiler copes with passing no objects directly.
18673compiler_needs_object=$lt_compiler_needs_object
18674
18675# Create an old-style archive from a shared archive.
18676old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
18677
18678# Create a temporary old-style archive to link instead of a shared archive.
18679old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
18680
18681# Commands used to build a shared archive.
18682archive_cmds=$lt_archive_cmds
18683archive_expsym_cmds=$lt_archive_expsym_cmds
18684
18685# Commands used to build a loadable module if different from building
18686# a shared archive.
18687module_cmds=$lt_module_cmds
18688module_expsym_cmds=$lt_module_expsym_cmds
18689
18690# Whether we are building with GNU ld or not.
18691with_gnu_ld=$lt_with_gnu_ld
18692
18693# Flag that allows shared libraries with undefined symbols to be built.
18694allow_undefined_flag=$lt_allow_undefined_flag
18695
18696# Flag that enforces no undefined symbols.
18697no_undefined_flag=$lt_no_undefined_flag
18698
18699# Flag to hardcode \$libdir into a binary during linking.
18700# This must work even if \$libdir does not exist
18701hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
18702
18703# Whether we need a single "-rpath" flag with a separated argument.
18704hardcode_libdir_separator=$lt_hardcode_libdir_separator
18705
18706# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
18707# DIR into the resulting binary.
18708hardcode_direct=$hardcode_direct
18709
18710# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
18711# DIR into the resulting binary and the resulting library dependency is
18712# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
18713# library is relocated.
18714hardcode_direct_absolute=$hardcode_direct_absolute
18715
18716# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
18717# into the resulting binary.
18718hardcode_minus_L=$hardcode_minus_L
18719
18720# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
18721# into the resulting binary.
18722hardcode_shlibpath_var=$hardcode_shlibpath_var
18723
18724# Set to "yes" if building a shared library automatically hardcodes DIR
18725# into the library and all subsequent libraries and executables linked
18726# against it.
18727hardcode_automatic=$hardcode_automatic
18728
18729# Set to yes if linker adds runtime paths of dependent libraries
18730# to runtime path list.
18731inherit_rpath=$inherit_rpath
18732
18733# Whether libtool must link a program against all its dependency libraries.
18734link_all_deplibs=$link_all_deplibs
18735
18736# Set to "yes" if exported symbols are required.
18737always_export_symbols=$always_export_symbols
18738
18739# The commands to list exported symbols.
18740export_symbols_cmds=$lt_export_symbols_cmds
18741
18742# Symbols that should not be listed in the preloaded symbols.
18743exclude_expsyms=$lt_exclude_expsyms
18744
18745# Symbols that must always be exported.
18746include_expsyms=$lt_include_expsyms
18747
18748# Commands necessary for linking programs (against libraries) with templates.
18749prelink_cmds=$lt_prelink_cmds
18750
18751# Commands necessary for finishing linking programs.
18752postlink_cmds=$lt_postlink_cmds
18753
18754# Specify filename containing input files.
18755file_list_spec=$lt_file_list_spec
18756
18757# How to hardcode a shared library path into an executable.
18758hardcode_action=$hardcode_action
18759
18760# The directories searched by this compiler when creating a shared library.
18761compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
18762
18763# Dependencies to place before and after the objects being linked to
18764# create a shared library.
18765predep_objects=$lt_predep_objects
18766postdep_objects=$lt_postdep_objects
18767predeps=$lt_predeps
18768postdeps=$lt_postdeps
18769
18770# The library search path used internally by the compiler when linking
18771# a shared library.
18772compiler_lib_search_path=$lt_compiler_lib_search_path
18773
18774# ### END LIBTOOL CONFIG
18775
18776_LT_EOF
18777
18778  case $host_os in
18779  aix3*)
18780    cat <<\_LT_EOF >> "$cfgfile"
18781# AIX sometimes has problems with the GCC collect2 program.  For some
18782# reason, if we set the COLLECT_NAMES environment variable, the problems
18783# vanish in a puff of smoke.
18784if test "X${COLLECT_NAMES+set}" != Xset; then
18785  COLLECT_NAMES=
18786  export COLLECT_NAMES
18787fi
18788_LT_EOF
18789    ;;
18790  esac
18791
18792
18793ltmain="$ac_aux_dir/ltmain.sh"
18794
18795
18796  # We use sed instead of cat because bash on DJGPP gets confused if
18797  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
18798  # text mode, it properly converts lines to CR/LF.  This bash problem
18799  # is reportedly fixed, but why not run on old versions too?
18800  sed '$q' "$ltmain" >> "$cfgfile" \
18801     || (rm -f "$cfgfile"; exit 1)
18802
18803  if test x"$xsi_shell" = xyes; then
18804  sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
18805func_dirname ()\
18806{\
18807\    case ${1} in\
18808\      */*) func_dirname_result="${1%/*}${2}" ;;\
18809\      *  ) func_dirname_result="${3}" ;;\
18810\    esac\
18811} # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
18812  && mv -f "$cfgfile.tmp" "$cfgfile" \
18813    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18814test 0 -eq $? || _lt_function_replace_fail=:
18815
18816
18817  sed -e '/^func_basename ()$/,/^} # func_basename /c\
18818func_basename ()\
18819{\
18820\    func_basename_result="${1##*/}"\
18821} # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
18822  && mv -f "$cfgfile.tmp" "$cfgfile" \
18823    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18824test 0 -eq $? || _lt_function_replace_fail=:
18825
18826
18827  sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
18828func_dirname_and_basename ()\
18829{\
18830\    case ${1} in\
18831\      */*) func_dirname_result="${1%/*}${2}" ;;\
18832\      *  ) func_dirname_result="${3}" ;;\
18833\    esac\
18834\    func_basename_result="${1##*/}"\
18835} # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
18836  && mv -f "$cfgfile.tmp" "$cfgfile" \
18837    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18838test 0 -eq $? || _lt_function_replace_fail=:
18839
18840
18841  sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
18842func_stripname ()\
18843{\
18844\    # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
18845\    # positional parameters, so assign one to ordinary parameter first.\
18846\    func_stripname_result=${3}\
18847\    func_stripname_result=${func_stripname_result#"${1}"}\
18848\    func_stripname_result=${func_stripname_result%"${2}"}\
18849} # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
18850  && mv -f "$cfgfile.tmp" "$cfgfile" \
18851    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18852test 0 -eq $? || _lt_function_replace_fail=:
18853
18854
18855  sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
18856func_split_long_opt ()\
18857{\
18858\    func_split_long_opt_name=${1%%=*}\
18859\    func_split_long_opt_arg=${1#*=}\
18860} # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
18861  && mv -f "$cfgfile.tmp" "$cfgfile" \
18862    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18863test 0 -eq $? || _lt_function_replace_fail=:
18864
18865
18866  sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
18867func_split_short_opt ()\
18868{\
18869\    func_split_short_opt_arg=${1#??}\
18870\    func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
18871} # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
18872  && mv -f "$cfgfile.tmp" "$cfgfile" \
18873    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18874test 0 -eq $? || _lt_function_replace_fail=:
18875
18876
18877  sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
18878func_lo2o ()\
18879{\
18880\    case ${1} in\
18881\      *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
18882\      *)    func_lo2o_result=${1} ;;\
18883\    esac\
18884} # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
18885  && mv -f "$cfgfile.tmp" "$cfgfile" \
18886    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18887test 0 -eq $? || _lt_function_replace_fail=:
18888
18889
18890  sed -e '/^func_xform ()$/,/^} # func_xform /c\
18891func_xform ()\
18892{\
18893    func_xform_result=${1%.*}.lo\
18894} # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
18895  && mv -f "$cfgfile.tmp" "$cfgfile" \
18896    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18897test 0 -eq $? || _lt_function_replace_fail=:
18898
18899
18900  sed -e '/^func_arith ()$/,/^} # func_arith /c\
18901func_arith ()\
18902{\
18903    func_arith_result=$(( $* ))\
18904} # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
18905  && mv -f "$cfgfile.tmp" "$cfgfile" \
18906    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18907test 0 -eq $? || _lt_function_replace_fail=:
18908
18909
18910  sed -e '/^func_len ()$/,/^} # func_len /c\
18911func_len ()\
18912{\
18913    func_len_result=${#1}\
18914} # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
18915  && mv -f "$cfgfile.tmp" "$cfgfile" \
18916    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18917test 0 -eq $? || _lt_function_replace_fail=:
18918
18919fi
18920
18921if test x"$lt_shell_append" = xyes; then
18922  sed -e '/^func_append ()$/,/^} # func_append /c\
18923func_append ()\
18924{\
18925    eval "${1}+=\\${2}"\
18926} # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
18927  && mv -f "$cfgfile.tmp" "$cfgfile" \
18928    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18929test 0 -eq $? || _lt_function_replace_fail=:
18930
18931
18932  sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
18933func_append_quoted ()\
18934{\
18935\    func_quote_for_eval "${2}"\
18936\    eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
18937} # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
18938  && mv -f "$cfgfile.tmp" "$cfgfile" \
18939    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18940test 0 -eq $? || _lt_function_replace_fail=:
18941
18942
18943  # Save a `func_append' function call where possible by direct use of '+='
18944  sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
18945    && mv -f "$cfgfile.tmp" "$cfgfile" \
18946      || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18947  test 0 -eq $? || _lt_function_replace_fail=:
18948else
18949  # Save a `func_append' function call even when '+=' is not available
18950  sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
18951    && mv -f "$cfgfile.tmp" "$cfgfile" \
18952      || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18953  test 0 -eq $? || _lt_function_replace_fail=:
18954fi
18955
18956if test x"$_lt_function_replace_fail" = x":"; then
18957  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
18958$as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
18959fi
18960
18961
18962   mv -f "$cfgfile" "$ofile" ||
18963    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
18964  chmod +x "$ofile"
18965
18966
18967    cat <<_LT_EOF >> "$ofile"
18968
18969# ### BEGIN LIBTOOL TAG CONFIG: CXX
18970
18971# The linker used to build libraries.
18972LD=$lt_LD_CXX
18973
18974# How to create reloadable object files.
18975reload_flag=$lt_reload_flag_CXX
18976reload_cmds=$lt_reload_cmds_CXX
18977
18978# Commands used to build an old-style archive.
18979old_archive_cmds=$lt_old_archive_cmds_CXX
18980
18981# A language specific compiler.
18982CC=$lt_compiler_CXX
18983
18984# Is the compiler the GNU compiler?
18985with_gcc=$GCC_CXX
18986
18987# Compiler flag to turn off builtin functions.
18988no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
18989
18990# Additional compiler flags for building library objects.
18991pic_flag=$lt_lt_prog_compiler_pic_CXX
18992
18993# How to pass a linker flag through the compiler.
18994wl=$lt_lt_prog_compiler_wl_CXX
18995
18996# Compiler flag to prevent dynamic linking.
18997link_static_flag=$lt_lt_prog_compiler_static_CXX
18998
18999# Does compiler simultaneously support -c and -o options?
19000compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
19001
19002# Whether or not to add -lc for building shared libraries.
19003build_libtool_need_lc=$archive_cmds_need_lc_CXX
19004
19005# Whether or not to disallow shared libs when runtime libs are static.
19006allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
19007
19008# Compiler flag to allow reflexive dlopens.
19009export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
19010
19011# Compiler flag to generate shared objects directly from archives.
19012whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
19013
19014# Whether the compiler copes with passing no objects directly.
19015compiler_needs_object=$lt_compiler_needs_object_CXX
19016
19017# Create an old-style archive from a shared archive.
19018old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
19019
19020# Create a temporary old-style archive to link instead of a shared archive.
19021old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
19022
19023# Commands used to build a shared archive.
19024archive_cmds=$lt_archive_cmds_CXX
19025archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
19026
19027# Commands used to build a loadable module if different from building
19028# a shared archive.
19029module_cmds=$lt_module_cmds_CXX
19030module_expsym_cmds=$lt_module_expsym_cmds_CXX
19031
19032# Whether we are building with GNU ld or not.
19033with_gnu_ld=$lt_with_gnu_ld_CXX
19034
19035# Flag that allows shared libraries with undefined symbols to be built.
19036allow_undefined_flag=$lt_allow_undefined_flag_CXX
19037
19038# Flag that enforces no undefined symbols.
19039no_undefined_flag=$lt_no_undefined_flag_CXX
19040
19041# Flag to hardcode \$libdir into a binary during linking.
19042# This must work even if \$libdir does not exist
19043hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
19044
19045# Whether we need a single "-rpath" flag with a separated argument.
19046hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
19047
19048# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
19049# DIR into the resulting binary.
19050hardcode_direct=$hardcode_direct_CXX
19051
19052# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
19053# DIR into the resulting binary and the resulting library dependency is
19054# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
19055# library is relocated.
19056hardcode_direct_absolute=$hardcode_direct_absolute_CXX
19057
19058# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
19059# into the resulting binary.
19060hardcode_minus_L=$hardcode_minus_L_CXX
19061
19062# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
19063# into the resulting binary.
19064hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
19065
19066# Set to "yes" if building a shared library automatically hardcodes DIR
19067# into the library and all subsequent libraries and executables linked
19068# against it.
19069hardcode_automatic=$hardcode_automatic_CXX
19070
19071# Set to yes if linker adds runtime paths of dependent libraries
19072# to runtime path list.
19073inherit_rpath=$inherit_rpath_CXX
19074
19075# Whether libtool must link a program against all its dependency libraries.
19076link_all_deplibs=$link_all_deplibs_CXX
19077
19078# Set to "yes" if exported symbols are required.
19079always_export_symbols=$always_export_symbols_CXX
19080
19081# The commands to list exported symbols.
19082export_symbols_cmds=$lt_export_symbols_cmds_CXX
19083
19084# Symbols that should not be listed in the preloaded symbols.
19085exclude_expsyms=$lt_exclude_expsyms_CXX
19086
19087# Symbols that must always be exported.
19088include_expsyms=$lt_include_expsyms_CXX
19089
19090# Commands necessary for linking programs (against libraries) with templates.
19091prelink_cmds=$lt_prelink_cmds_CXX
19092
19093# Commands necessary for finishing linking programs.
19094postlink_cmds=$lt_postlink_cmds_CXX
19095
19096# Specify filename containing input files.
19097file_list_spec=$lt_file_list_spec_CXX
19098
19099# How to hardcode a shared library path into an executable.
19100hardcode_action=$hardcode_action_CXX
19101
19102# The directories searched by this compiler when creating a shared library.
19103compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
19104
19105# Dependencies to place before and after the objects being linked to
19106# create a shared library.
19107predep_objects=$lt_predep_objects_CXX
19108postdep_objects=$lt_postdep_objects_CXX
19109predeps=$lt_predeps_CXX
19110postdeps=$lt_postdeps_CXX
19111
19112# The library search path used internally by the compiler when linking
19113# a shared library.
19114compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
19115
19116# ### END LIBTOOL TAG CONFIG: CXX
19117_LT_EOF
19118
19119 ;;
19120
19121  esac
19122done # for ac_tag
19123
19124
19125as_fn_exit 0
19126_ACEOF
19127ac_clean_files=$ac_clean_files_save
19128
19129test $ac_write_fail = 0 ||
19130  as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
19131
19132
19133# configure is writing to config.log, and then calls config.status.
19134# config.status does its own redirection, appending to config.log.
19135# Unfortunately, on DOS this fails, as config.log is still kept open
19136# by configure, so config.status won't be able to write to it; its
19137# output is simply discarded.  So we exec the FD to /dev/null,
19138# effectively closing config.log, so it can be properly (re)opened and
19139# appended to by config.status.  When coming back to configure, we
19140# need to make the FD available again.
19141if test "$no_create" != yes; then
19142  ac_cs_success=:
19143  ac_config_status_args=
19144  test "$silent" = yes &&
19145    ac_config_status_args="$ac_config_status_args --quiet"
19146  exec 5>/dev/null
19147  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
19148  exec 5>>config.log
19149  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
19150  # would make configure fail if this is the last instruction.
19151  $ac_cs_success || as_fn_exit 1
19152fi
19153if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
19154  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
19155$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
19156fi
19157
19158