1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.64 for package-unused version-unused.
4#
5# Report bugs to <libsanitizer>.
6#
7# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
8# 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software
9# Foundation, Inc.
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.
92case $0 in #((
93  *[\\/]* ) as_myself=$0 ;;
94  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
95for as_dir in $PATH
96do
97  IFS=$as_save_IFS
98  test -z "$as_dir" && as_dir=.
99    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
100  done
101IFS=$as_save_IFS
102
103     ;;
104esac
105# We did not find ourselves, most probably we were run as `sh COMMAND'
106# in which case we are not to be found in the path.
107if test "x$as_myself" = x; then
108  as_myself=$0
109fi
110if test ! -f "$as_myself"; then
111  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
112  exit 1
113fi
114
115# Unset variables that we do not need and which cause bugs (e.g. in
116# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
117# suppresses any "Segmentation fault" message there.  '((' could
118# trigger a bug in pdksh 5.2.14.
119for as_var in BASH_ENV ENV MAIL MAILPATH
120do eval test x\${$as_var+set} = xset \
121  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
122done
123PS1='$ '
124PS2='> '
125PS4='+ '
126
127# NLS nuisances.
128LC_ALL=C
129export LC_ALL
130LANGUAGE=C
131export LANGUAGE
132
133# CDPATH.
134(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
135
136if test "x$CONFIG_SHELL" = x; then
137  as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
138  emulate sh
139  NULLCMD=:
140  # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
141  # is contrary to our usage.  Disable this feature.
142  alias -g '\${1+\"\$@\"}'='\"\$@\"'
143  setopt NO_GLOB_SUBST
144else
145  case \`(set -o) 2>/dev/null\` in #(
146  *posix*) :
147    set -o posix ;; #(
148  *) :
149     ;;
150esac
151fi
152"
153  as_required="as_fn_return () { (exit \$1); }
154as_fn_success () { as_fn_return 0; }
155as_fn_failure () { as_fn_return 1; }
156as_fn_ret_success () { return 0; }
157as_fn_ret_failure () { return 1; }
158
159exitcode=0
160as_fn_success || { exitcode=1; echo as_fn_success failed.; }
161as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
162as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
163as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
164if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
165
166else
167  exitcode=1; echo positional parameters were not saved.
168fi
169test x\$exitcode = x0 || exit 1"
170  as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
171  as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
172  eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
173  test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
174test \$(( 1 + 1 )) = 2 || exit 1
175
176  test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
177    ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
178    ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
179    ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
180    PATH=/empty FPATH=/empty; export PATH FPATH
181    test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
182      || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1"
183  if (eval "$as_required") 2>/dev/null; then :
184  as_have_required=yes
185else
186  as_have_required=no
187fi
188  if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
189
190else
191  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
192as_found=false
193for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
194do
195  IFS=$as_save_IFS
196  test -z "$as_dir" && as_dir=.
197  as_found=:
198  case $as_dir in #(
199	 /*)
200	   for as_base in sh bash ksh sh5; do
201	     # Try only shells that exist, to save several forks.
202	     as_shell=$as_dir/$as_base
203	     if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
204		    { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
205  CONFIG_SHELL=$as_shell as_have_required=yes
206		   if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
207  break 2
208fi
209fi
210	   done;;
211       esac
212  as_found=false
213done
214$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
215	      { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
216  CONFIG_SHELL=$SHELL as_have_required=yes
217fi; }
218IFS=$as_save_IFS
219
220
221      if test "x$CONFIG_SHELL" != x; then :
222  # We cannot yet assume a decent shell, so we have to provide a
223	# neutralization value for shells without unset; and this also
224	# works around shells that cannot unset nonexistent variables.
225	BASH_ENV=/dev/null
226	ENV=/dev/null
227	(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
228	export CONFIG_SHELL
229	exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
230fi
231
232    if test x$as_have_required = xno; then :
233  $as_echo "$0: This script requires a shell more modern than all"
234  $as_echo "$0: the shells that I found on your system."
235  if test x${ZSH_VERSION+set} = xset ; then
236    $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
237    $as_echo "$0: be upgraded to zsh 4.3.4 or later."
238  else
239    $as_echo "$0: Please tell bug-autoconf@gnu.org and libsanitizer about
240$0: your system, including any error possibly output before
241$0: this message. Then install a modern shell, or manually
242$0: run the script under such a shell if you do have one."
243  fi
244  exit 1
245fi
246fi
247fi
248SHELL=${CONFIG_SHELL-/bin/sh}
249export SHELL
250# Unset more variables known to interfere with behavior of common tools.
251CLICOLOR_FORCE= GREP_OPTIONS=
252unset CLICOLOR_FORCE GREP_OPTIONS
253
254## --------------------- ##
255## M4sh Shell Functions. ##
256## --------------------- ##
257# as_fn_unset VAR
258# ---------------
259# Portably unset VAR.
260as_fn_unset ()
261{
262  { eval $1=; unset $1;}
263}
264as_unset=as_fn_unset
265
266# as_fn_set_status STATUS
267# -----------------------
268# Set $? to STATUS, without forking.
269as_fn_set_status ()
270{
271  return $1
272} # as_fn_set_status
273
274# as_fn_exit STATUS
275# -----------------
276# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
277as_fn_exit ()
278{
279  set +e
280  as_fn_set_status $1
281  exit $1
282} # as_fn_exit
283
284# as_fn_mkdir_p
285# -------------
286# Create "$as_dir" as a directory, including parents if necessary.
287as_fn_mkdir_p ()
288{
289
290  case $as_dir in #(
291  -*) as_dir=./$as_dir;;
292  esac
293  test -d "$as_dir" || eval $as_mkdir_p || {
294    as_dirs=
295    while :; do
296      case $as_dir in #(
297      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
298      *) as_qdir=$as_dir;;
299      esac
300      as_dirs="'$as_qdir' $as_dirs"
301      as_dir=`$as_dirname -- "$as_dir" ||
302$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
303	 X"$as_dir" : 'X\(//\)[^/]' \| \
304	 X"$as_dir" : 'X\(//\)$' \| \
305	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
306$as_echo X"$as_dir" |
307    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
308	    s//\1/
309	    q
310	  }
311	  /^X\(\/\/\)[^/].*/{
312	    s//\1/
313	    q
314	  }
315	  /^X\(\/\/\)$/{
316	    s//\1/
317	    q
318	  }
319	  /^X\(\/\).*/{
320	    s//\1/
321	    q
322	  }
323	  s/.*/./; q'`
324      test -d "$as_dir" && break
325    done
326    test -z "$as_dirs" || eval "mkdir $as_dirs"
327  } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
328
329
330} # as_fn_mkdir_p
331# as_fn_append VAR VALUE
332# ----------------------
333# Append the text in VALUE to the end of the definition contained in VAR. Take
334# advantage of any shell optimizations that allow amortized linear growth over
335# repeated appends, instead of the typical quadratic growth present in naive
336# implementations.
337if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
338  eval 'as_fn_append ()
339  {
340    eval $1+=\$2
341  }'
342else
343  as_fn_append ()
344  {
345    eval $1=\$$1\$2
346  }
347fi # as_fn_append
348
349# as_fn_arith ARG...
350# ------------------
351# Perform arithmetic evaluation on the ARGs, and store the result in the
352# global $as_val. Take advantage of shells that can avoid forks. The arguments
353# must be portable across $(()) and expr.
354if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
355  eval 'as_fn_arith ()
356  {
357    as_val=$(( $* ))
358  }'
359else
360  as_fn_arith ()
361  {
362    as_val=`expr "$@" || test $? -eq 1`
363  }
364fi # as_fn_arith
365
366
367# as_fn_error ERROR [LINENO LOG_FD]
368# ---------------------------------
369# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
370# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
371# script with status $?, using 1 if that was 0.
372as_fn_error ()
373{
374  as_status=$?; test $as_status -eq 0 && as_status=1
375  if test "$3"; then
376    as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
377    $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
378  fi
379  $as_echo "$as_me: error: $1" >&2
380  as_fn_exit $as_status
381} # as_fn_error
382
383if expr a : '\(a\)' >/dev/null 2>&1 &&
384   test "X`expr 00001 : '.*\(...\)'`" = X001; then
385  as_expr=expr
386else
387  as_expr=false
388fi
389
390if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
391  as_basename=basename
392else
393  as_basename=false
394fi
395
396if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
397  as_dirname=dirname
398else
399  as_dirname=false
400fi
401
402as_me=`$as_basename -- "$0" ||
403$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
404	 X"$0" : 'X\(//\)$' \| \
405	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
406$as_echo X/"$0" |
407    sed '/^.*\/\([^/][^/]*\)\/*$/{
408	    s//\1/
409	    q
410	  }
411	  /^X\/\(\/\/\)$/{
412	    s//\1/
413	    q
414	  }
415	  /^X\/\(\/\).*/{
416	    s//\1/
417	    q
418	  }
419	  s/.*/./; q'`
420
421# Avoid depending upon Character Ranges.
422as_cr_letters='abcdefghijklmnopqrstuvwxyz'
423as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
424as_cr_Letters=$as_cr_letters$as_cr_LETTERS
425as_cr_digits='0123456789'
426as_cr_alnum=$as_cr_Letters$as_cr_digits
427
428
429  as_lineno_1=$LINENO as_lineno_1a=$LINENO
430  as_lineno_2=$LINENO as_lineno_2a=$LINENO
431  eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
432  test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
433  # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
434  sed -n '
435    p
436    /[$]LINENO/=
437  ' <$as_myself |
438    sed '
439      s/[$]LINENO.*/&-/
440      t lineno
441      b
442      :lineno
443      N
444      :loop
445      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
446      t loop
447      s/-\n.*//
448    ' >$as_me.lineno &&
449  chmod +x "$as_me.lineno" ||
450    { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
451
452  # Don't try to exec as it changes $[0], causing all sort of problems
453  # (the dirname of $[0] is not the place where we might find the
454  # original and so on.  Autoconf is especially sensitive to this).
455  . "./$as_me.lineno"
456  # Exit status is that of the last command.
457  exit
458}
459
460ECHO_C= ECHO_N= ECHO_T=
461case `echo -n x` in #(((((
462-n*)
463  case `echo 'xy\c'` in
464  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
465  xy)  ECHO_C='\c';;
466  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
467       ECHO_T='	';;
468  esac;;
469*)
470  ECHO_N='-n';;
471esac
472
473rm -f conf$$ conf$$.exe conf$$.file
474if test -d conf$$.dir; then
475  rm -f conf$$.dir/conf$$.file
476else
477  rm -f conf$$.dir
478  mkdir conf$$.dir 2>/dev/null
479fi
480if (echo >conf$$.file) 2>/dev/null; then
481  if ln -s conf$$.file conf$$ 2>/dev/null; then
482    as_ln_s='ln -s'
483    # ... but there are two gotchas:
484    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
485    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
486    # In both cases, we have to default to `cp -p'.
487    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
488      as_ln_s='cp -p'
489  elif ln conf$$.file conf$$ 2>/dev/null; then
490    as_ln_s=ln
491  else
492    as_ln_s='cp -p'
493  fi
494else
495  as_ln_s='cp -p'
496fi
497rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
498rmdir conf$$.dir 2>/dev/null
499
500if mkdir -p . 2>/dev/null; then
501  as_mkdir_p='mkdir -p "$as_dir"'
502else
503  test -d ./-p && rmdir ./-p
504  as_mkdir_p=false
505fi
506
507if test -x / >/dev/null 2>&1; then
508  as_test_x='test -x'
509else
510  if ls -dL / >/dev/null 2>&1; then
511    as_ls_L_option=L
512  else
513    as_ls_L_option=
514  fi
515  as_test_x='
516    eval sh -c '\''
517      if test -d "$1"; then
518	test -d "$1/.";
519      else
520	case $1 in #(
521	-*)set "./$1";;
522	esac;
523	case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
524	???[sx]*):;;*)false;;esac;fi
525    '\'' sh
526  '
527fi
528as_executable_p=$as_test_x
529
530# Sed expression to map a string onto a valid CPP name.
531as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
532
533# Sed expression to map a string onto a valid variable name.
534as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
535
536SHELL=${CONFIG_SHELL-/bin/sh}
537
538
539exec 7<&0 </dev/null 6>&1
540
541# Name of the host.
542# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
543# so uname gets run too.
544ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
545
546#
547# Initializations.
548#
549ac_default_prefix=/usr/local
550ac_clean_files=
551ac_config_libobj_dir=.
552LIBOBJS=
553cross_compiling=no
554subdirs=
555MFLAGS=
556MAKEFLAGS=
557
558# Identity of this package.
559PACKAGE_NAME='package-unused'
560PACKAGE_TARNAME='package-unused'
561PACKAGE_VERSION='version-unused'
562PACKAGE_STRING='package-unused version-unused'
563PACKAGE_BUGREPORT='libsanitizer'
564PACKAGE_URL=''
565
566ac_unique_file="include/sanitizer/common_interface_defs.h"
567# Factoring default headers for most tests.
568ac_includes_default="\
569#include <stdio.h>
570#ifdef HAVE_SYS_TYPES_H
571# include <sys/types.h>
572#endif
573#ifdef HAVE_SYS_STAT_H
574# include <sys/stat.h>
575#endif
576#ifdef STDC_HEADERS
577# include <stdlib.h>
578# include <stddef.h>
579#else
580# ifdef HAVE_STDLIB_H
581#  include <stdlib.h>
582# endif
583#endif
584#ifdef HAVE_STRING_H
585# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
586#  include <memory.h>
587# endif
588# include <string.h>
589#endif
590#ifdef HAVE_STRINGS_H
591# include <strings.h>
592#endif
593#ifdef HAVE_INTTYPES_H
594# include <inttypes.h>
595#endif
596#ifdef HAVE_STDINT_H
597# include <stdint.h>
598#endif
599#ifdef HAVE_UNISTD_H
600# include <unistd.h>
601#endif"
602
603ac_subst_vars='am__EXEEXT_FALSE
604am__EXEEXT_TRUE
605LTLIBOBJS
606LIBOBJS
607TSAN_TARGET_DEPENDENT_OBJECTS
608LIBBACKTRACE_SUPPORTED_FALSE
609LIBBACKTRACE_SUPPORTED_TRUE
610OBSTACK_DEFS
611RPC_DEFS
612BACKTRACE_SUPPORTS_THREADS
613BACKTRACE_USES_MALLOC
614ALLOC_FILE
615VIEW_FILE
616BACKTRACE_SUPPORTED
617FORMAT_FILE
618SANITIZER_SUPPORTED_FALSE
619SANITIZER_SUPPORTED_TRUE
620USING_MAC_INTERPOSE_FALSE
621USING_MAC_INTERPOSE_TRUE
622link_liblsan
623link_libubsan
624link_libtsan
625link_libasan
626LSAN_SUPPORTED_FALSE
627LSAN_SUPPORTED_TRUE
628TSAN_SUPPORTED_FALSE
629TSAN_SUPPORTED_TRUE
630enable_static
631enable_shared
632CXXCPP
633OTOOL64
634OTOOL
635LIPO
636NMEDIT
637DSYMUTIL
638AR
639OBJDUMP
640LN_S
641NM
642ac_ct_DUMPBIN
643DUMPBIN
644LD
645FGREP
646SED
647LIBTOOL
648RANLIB
649am__fastdepCCAS_FALSE
650am__fastdepCCAS_TRUE
651CCASDEPMODE
652CCASFLAGS
653CCAS
654am__fastdepCXX_FALSE
655am__fastdepCXX_TRUE
656CXXDEPMODE
657ac_ct_CXX
658CXXFLAGS
659CXX
660toolexeclibdir
661toolexecdir
662MAINT
663MAINTAINER_MODE_FALSE
664MAINTAINER_MODE_TRUE
665am__fastdepCC_FALSE
666am__fastdepCC_TRUE
667CCDEPMODE
668am__nodep
669AMDEPBACKSLASH
670AMDEP_FALSE
671AMDEP_TRUE
672am__quote
673am__include
674DEPDIR
675am__untar
676am__tar
677AMTAR
678am__leading_dot
679SET_MAKE
680AWK
681mkdir_p
682MKDIR_P
683INSTALL_STRIP_PROGRAM
684STRIP
685install_sh
686MAKEINFO
687AUTOHEADER
688AUTOMAKE
689AUTOCONF
690ACLOCAL
691VERSION
692PACKAGE
693CYGPATH_W
694am__isrc
695INSTALL_DATA
696INSTALL_SCRIPT
697INSTALL_PROGRAM
698LIBSTDCXX_RAW_CXX_LDFLAGS
699LIBSTDCXX_RAW_CXX_CXXFLAGS
700target_noncanonical
701target_os
702target_vendor
703target_cpu
704target
705host_os
706host_vendor
707host_cpu
708host
709build_os
710build_vendor
711build_cpu
712build
713EGREP
714GREP
715CPP
716OBJEXT
717EXEEXT
718ac_ct_CC
719CPPFLAGS
720LDFLAGS
721CFLAGS
722CC
723multi_basedir
724target_alias
725host_alias
726build_alias
727LIBS
728ECHO_T
729ECHO_N
730ECHO_C
731DEFS
732mandir
733localedir
734libdir
735psdir
736pdfdir
737dvidir
738htmldir
739infodir
740docdir
741oldincludedir
742includedir
743localstatedir
744sharedstatedir
745sysconfdir
746datadir
747datarootdir
748libexecdir
749sbindir
750bindir
751program_transform_name
752prefix
753exec_prefix
754PACKAGE_URL
755PACKAGE_BUGREPORT
756PACKAGE_STRING
757PACKAGE_VERSION
758PACKAGE_TARNAME
759PACKAGE_NAME
760PATH_SEPARATOR
761SHELL'
762ac_subst_files=''
763ac_user_opts='
764enable_option_checking
765enable_multilib
766enable_version_specific_runtime_libs
767enable_dependency_tracking
768enable_maintainer_mode
769enable_shared
770enable_static
771with_pic
772enable_fast_install
773with_gnu_ld
774enable_libtool_lock
775'
776      ac_precious_vars='build_alias
777host_alias
778target_alias
779CC
780CFLAGS
781LDFLAGS
782LIBS
783CPPFLAGS
784CPP
785CXX
786CXXFLAGS
787CCC
788CCAS
789CCASFLAGS
790CXXCPP'
791
792
793# Initialize some variables set by options.
794ac_init_help=
795ac_init_version=false
796ac_unrecognized_opts=
797ac_unrecognized_sep=
798# The variables have the same names as the options, with
799# dashes changed to underlines.
800cache_file=/dev/null
801exec_prefix=NONE
802no_create=
803no_recursion=
804prefix=NONE
805program_prefix=NONE
806program_suffix=NONE
807program_transform_name=s,x,x,
808silent=
809site=
810srcdir=
811verbose=
812x_includes=NONE
813x_libraries=NONE
814
815# Installation directory options.
816# These are left unexpanded so users can "make install exec_prefix=/foo"
817# and all the variables that are supposed to be based on exec_prefix
818# by default will actually change.
819# Use braces instead of parens because sh, perl, etc. also accept them.
820# (The list follows the same order as the GNU Coding Standards.)
821bindir='${exec_prefix}/bin'
822sbindir='${exec_prefix}/sbin'
823libexecdir='${exec_prefix}/libexec'
824datarootdir='${prefix}/share'
825datadir='${datarootdir}'
826sysconfdir='${prefix}/etc'
827sharedstatedir='${prefix}/com'
828localstatedir='${prefix}/var'
829includedir='${prefix}/include'
830oldincludedir='/usr/include'
831docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
832infodir='${datarootdir}/info'
833htmldir='${docdir}'
834dvidir='${docdir}'
835pdfdir='${docdir}'
836psdir='${docdir}'
837libdir='${exec_prefix}/lib'
838localedir='${datarootdir}/locale'
839mandir='${datarootdir}/man'
840
841ac_prev=
842ac_dashdash=
843for ac_option
844do
845  # If the previous option needs an argument, assign it.
846  if test -n "$ac_prev"; then
847    eval $ac_prev=\$ac_option
848    ac_prev=
849    continue
850  fi
851
852  case $ac_option in
853  *=*)	ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
854  *)	ac_optarg=yes ;;
855  esac
856
857  # Accept the important Cygnus configure options, so we can diagnose typos.
858
859  case $ac_dashdash$ac_option in
860  --)
861    ac_dashdash=yes ;;
862
863  -bindir | --bindir | --bindi | --bind | --bin | --bi)
864    ac_prev=bindir ;;
865  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
866    bindir=$ac_optarg ;;
867
868  -build | --build | --buil | --bui | --bu)
869    ac_prev=build_alias ;;
870  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
871    build_alias=$ac_optarg ;;
872
873  -cache-file | --cache-file | --cache-fil | --cache-fi \
874  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
875    ac_prev=cache_file ;;
876  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
877  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
878    cache_file=$ac_optarg ;;
879
880  --config-cache | -C)
881    cache_file=config.cache ;;
882
883  -datadir | --datadir | --datadi | --datad)
884    ac_prev=datadir ;;
885  -datadir=* | --datadir=* | --datadi=* | --datad=*)
886    datadir=$ac_optarg ;;
887
888  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
889  | --dataroo | --dataro | --datar)
890    ac_prev=datarootdir ;;
891  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
892  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
893    datarootdir=$ac_optarg ;;
894
895  -disable-* | --disable-*)
896    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
897    # Reject names that are not valid shell variable names.
898    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
899      as_fn_error "invalid feature name: $ac_useropt"
900    ac_useropt_orig=$ac_useropt
901    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
902    case $ac_user_opts in
903      *"
904"enable_$ac_useropt"
905"*) ;;
906      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
907	 ac_unrecognized_sep=', ';;
908    esac
909    eval enable_$ac_useropt=no ;;
910
911  -docdir | --docdir | --docdi | --doc | --do)
912    ac_prev=docdir ;;
913  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
914    docdir=$ac_optarg ;;
915
916  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
917    ac_prev=dvidir ;;
918  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
919    dvidir=$ac_optarg ;;
920
921  -enable-* | --enable-*)
922    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
923    # Reject names that are not valid shell variable names.
924    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
925      as_fn_error "invalid feature name: $ac_useropt"
926    ac_useropt_orig=$ac_useropt
927    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
928    case $ac_user_opts in
929      *"
930"enable_$ac_useropt"
931"*) ;;
932      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
933	 ac_unrecognized_sep=', ';;
934    esac
935    eval enable_$ac_useropt=\$ac_optarg ;;
936
937  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
938  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
939  | --exec | --exe | --ex)
940    ac_prev=exec_prefix ;;
941  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
942  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
943  | --exec=* | --exe=* | --ex=*)
944    exec_prefix=$ac_optarg ;;
945
946  -gas | --gas | --ga | --g)
947    # Obsolete; use --with-gas.
948    with_gas=yes ;;
949
950  -help | --help | --hel | --he | -h)
951    ac_init_help=long ;;
952  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
953    ac_init_help=recursive ;;
954  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
955    ac_init_help=short ;;
956
957  -host | --host | --hos | --ho)
958    ac_prev=host_alias ;;
959  -host=* | --host=* | --hos=* | --ho=*)
960    host_alias=$ac_optarg ;;
961
962  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
963    ac_prev=htmldir ;;
964  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
965  | --ht=*)
966    htmldir=$ac_optarg ;;
967
968  -includedir | --includedir | --includedi | --included | --include \
969  | --includ | --inclu | --incl | --inc)
970    ac_prev=includedir ;;
971  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
972  | --includ=* | --inclu=* | --incl=* | --inc=*)
973    includedir=$ac_optarg ;;
974
975  -infodir | --infodir | --infodi | --infod | --info | --inf)
976    ac_prev=infodir ;;
977  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
978    infodir=$ac_optarg ;;
979
980  -libdir | --libdir | --libdi | --libd)
981    ac_prev=libdir ;;
982  -libdir=* | --libdir=* | --libdi=* | --libd=*)
983    libdir=$ac_optarg ;;
984
985  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
986  | --libexe | --libex | --libe)
987    ac_prev=libexecdir ;;
988  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
989  | --libexe=* | --libex=* | --libe=*)
990    libexecdir=$ac_optarg ;;
991
992  -localedir | --localedir | --localedi | --localed | --locale)
993    ac_prev=localedir ;;
994  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
995    localedir=$ac_optarg ;;
996
997  -localstatedir | --localstatedir | --localstatedi | --localstated \
998  | --localstate | --localstat | --localsta | --localst | --locals)
999    ac_prev=localstatedir ;;
1000  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1001  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1002    localstatedir=$ac_optarg ;;
1003
1004  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1005    ac_prev=mandir ;;
1006  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1007    mandir=$ac_optarg ;;
1008
1009  -nfp | --nfp | --nf)
1010    # Obsolete; use --without-fp.
1011    with_fp=no ;;
1012
1013  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1014  | --no-cr | --no-c | -n)
1015    no_create=yes ;;
1016
1017  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1018  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1019    no_recursion=yes ;;
1020
1021  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1022  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1023  | --oldin | --oldi | --old | --ol | --o)
1024    ac_prev=oldincludedir ;;
1025  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1026  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1027  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1028    oldincludedir=$ac_optarg ;;
1029
1030  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1031    ac_prev=prefix ;;
1032  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1033    prefix=$ac_optarg ;;
1034
1035  -program-prefix | --program-prefix | --program-prefi | --program-pref \
1036  | --program-pre | --program-pr | --program-p)
1037    ac_prev=program_prefix ;;
1038  -program-prefix=* | --program-prefix=* | --program-prefi=* \
1039  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1040    program_prefix=$ac_optarg ;;
1041
1042  -program-suffix | --program-suffix | --program-suffi | --program-suff \
1043  | --program-suf | --program-su | --program-s)
1044    ac_prev=program_suffix ;;
1045  -program-suffix=* | --program-suffix=* | --program-suffi=* \
1046  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1047    program_suffix=$ac_optarg ;;
1048
1049  -program-transform-name | --program-transform-name \
1050  | --program-transform-nam | --program-transform-na \
1051  | --program-transform-n | --program-transform- \
1052  | --program-transform | --program-transfor \
1053  | --program-transfo | --program-transf \
1054  | --program-trans | --program-tran \
1055  | --progr-tra | --program-tr | --program-t)
1056    ac_prev=program_transform_name ;;
1057  -program-transform-name=* | --program-transform-name=* \
1058  | --program-transform-nam=* | --program-transform-na=* \
1059  | --program-transform-n=* | --program-transform-=* \
1060  | --program-transform=* | --program-transfor=* \
1061  | --program-transfo=* | --program-transf=* \
1062  | --program-trans=* | --program-tran=* \
1063  | --progr-tra=* | --program-tr=* | --program-t=*)
1064    program_transform_name=$ac_optarg ;;
1065
1066  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1067    ac_prev=pdfdir ;;
1068  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1069    pdfdir=$ac_optarg ;;
1070
1071  -psdir | --psdir | --psdi | --psd | --ps)
1072    ac_prev=psdir ;;
1073  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1074    psdir=$ac_optarg ;;
1075
1076  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1077  | -silent | --silent | --silen | --sile | --sil)
1078    silent=yes ;;
1079
1080  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1081    ac_prev=sbindir ;;
1082  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1083  | --sbi=* | --sb=*)
1084    sbindir=$ac_optarg ;;
1085
1086  -sharedstatedir | --sharedstatedir | --sharedstatedi \
1087  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1088  | --sharedst | --shareds | --shared | --share | --shar \
1089  | --sha | --sh)
1090    ac_prev=sharedstatedir ;;
1091  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1092  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1093  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1094  | --sha=* | --sh=*)
1095    sharedstatedir=$ac_optarg ;;
1096
1097  -site | --site | --sit)
1098    ac_prev=site ;;
1099  -site=* | --site=* | --sit=*)
1100    site=$ac_optarg ;;
1101
1102  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1103    ac_prev=srcdir ;;
1104  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1105    srcdir=$ac_optarg ;;
1106
1107  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1108  | --syscon | --sysco | --sysc | --sys | --sy)
1109    ac_prev=sysconfdir ;;
1110  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1111  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1112    sysconfdir=$ac_optarg ;;
1113
1114  -target | --target | --targe | --targ | --tar | --ta | --t)
1115    ac_prev=target_alias ;;
1116  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1117    target_alias=$ac_optarg ;;
1118
1119  -v | -verbose | --verbose | --verbos | --verbo | --verb)
1120    verbose=yes ;;
1121
1122  -version | --version | --versio | --versi | --vers | -V)
1123    ac_init_version=: ;;
1124
1125  -with-* | --with-*)
1126    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1127    # Reject names that are not valid shell variable names.
1128    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1129      as_fn_error "invalid package name: $ac_useropt"
1130    ac_useropt_orig=$ac_useropt
1131    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1132    case $ac_user_opts in
1133      *"
1134"with_$ac_useropt"
1135"*) ;;
1136      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1137	 ac_unrecognized_sep=', ';;
1138    esac
1139    eval with_$ac_useropt=\$ac_optarg ;;
1140
1141  -without-* | --without-*)
1142    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1143    # Reject names that are not valid shell variable names.
1144    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1145      as_fn_error "invalid package name: $ac_useropt"
1146    ac_useropt_orig=$ac_useropt
1147    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1148    case $ac_user_opts in
1149      *"
1150"with_$ac_useropt"
1151"*) ;;
1152      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1153	 ac_unrecognized_sep=', ';;
1154    esac
1155    eval with_$ac_useropt=no ;;
1156
1157  --x)
1158    # Obsolete; use --with-x.
1159    with_x=yes ;;
1160
1161  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1162  | --x-incl | --x-inc | --x-in | --x-i)
1163    ac_prev=x_includes ;;
1164  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1165  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1166    x_includes=$ac_optarg ;;
1167
1168  -x-libraries | --x-libraries | --x-librarie | --x-librari \
1169  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1170    ac_prev=x_libraries ;;
1171  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1172  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1173    x_libraries=$ac_optarg ;;
1174
1175  -*) as_fn_error "unrecognized option: \`$ac_option'
1176Try \`$0 --help' for more information."
1177    ;;
1178
1179  *=*)
1180    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1181    # Reject names that are not valid shell variable names.
1182    case $ac_envvar in #(
1183      '' | [0-9]* | *[!_$as_cr_alnum]* )
1184      as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1185    esac
1186    eval $ac_envvar=\$ac_optarg
1187    export $ac_envvar ;;
1188
1189  *)
1190    # FIXME: should be removed in autoconf 3.0.
1191    $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1192    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1193      $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1194    : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1195    ;;
1196
1197  esac
1198done
1199
1200if test -n "$ac_prev"; then
1201  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1202  as_fn_error "missing argument to $ac_option"
1203fi
1204
1205if test -n "$ac_unrecognized_opts"; then
1206  case $enable_option_checking in
1207    no) ;;
1208    fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1209    *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1210  esac
1211fi
1212
1213# Check all directory arguments for consistency.
1214for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
1215		datadir sysconfdir sharedstatedir localstatedir includedir \
1216		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1217		libdir localedir mandir
1218do
1219  eval ac_val=\$$ac_var
1220  # Remove trailing slashes.
1221  case $ac_val in
1222    */ )
1223      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1224      eval $ac_var=\$ac_val;;
1225  esac
1226  # Be sure to have absolute directory names.
1227  case $ac_val in
1228    [\\/$]* | ?:[\\/]* )  continue;;
1229    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1230  esac
1231  as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1232done
1233
1234# There might be people who depend on the old broken behavior: `$host'
1235# used to hold the argument of --host etc.
1236# FIXME: To remove some day.
1237build=$build_alias
1238host=$host_alias
1239target=$target_alias
1240
1241# FIXME: To remove some day.
1242if test "x$host_alias" != x; then
1243  if test "x$build_alias" = x; then
1244    cross_compiling=maybe
1245    $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1246    If a cross compiler is detected then cross compile mode will be used." >&2
1247  elif test "x$build_alias" != "x$host_alias"; then
1248    cross_compiling=yes
1249  fi
1250fi
1251
1252ac_tool_prefix=
1253test -n "$host_alias" && ac_tool_prefix=$host_alias-
1254
1255test "$silent" = yes && exec 6>/dev/null
1256
1257
1258ac_pwd=`pwd` && test -n "$ac_pwd" &&
1259ac_ls_di=`ls -di .` &&
1260ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1261  as_fn_error "working directory cannot be determined"
1262test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1263  as_fn_error "pwd does not report name of working directory"
1264
1265
1266# Find the source files, if location was not specified.
1267if test -z "$srcdir"; then
1268  ac_srcdir_defaulted=yes
1269  # Try the directory containing this script, then the parent directory.
1270  ac_confdir=`$as_dirname -- "$as_myself" ||
1271$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1272	 X"$as_myself" : 'X\(//\)[^/]' \| \
1273	 X"$as_myself" : 'X\(//\)$' \| \
1274	 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1275$as_echo X"$as_myself" |
1276    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1277	    s//\1/
1278	    q
1279	  }
1280	  /^X\(\/\/\)[^/].*/{
1281	    s//\1/
1282	    q
1283	  }
1284	  /^X\(\/\/\)$/{
1285	    s//\1/
1286	    q
1287	  }
1288	  /^X\(\/\).*/{
1289	    s//\1/
1290	    q
1291	  }
1292	  s/.*/./; q'`
1293  srcdir=$ac_confdir
1294  if test ! -r "$srcdir/$ac_unique_file"; then
1295    srcdir=..
1296  fi
1297else
1298  ac_srcdir_defaulted=no
1299fi
1300if test ! -r "$srcdir/$ac_unique_file"; then
1301  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1302  as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1303fi
1304ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1305ac_abs_confdir=`(
1306	cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1307	pwd)`
1308# When building in place, set srcdir=.
1309if test "$ac_abs_confdir" = "$ac_pwd"; then
1310  srcdir=.
1311fi
1312# Remove unnecessary trailing slashes from srcdir.
1313# Double slashes in file names in object file debugging info
1314# mess up M-x gdb in Emacs.
1315case $srcdir in
1316*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1317esac
1318for ac_var in $ac_precious_vars; do
1319  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1320  eval ac_env_${ac_var}_value=\$${ac_var}
1321  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1322  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1323done
1324
1325#
1326# Report the --help message.
1327#
1328if test "$ac_init_help" = "long"; then
1329  # Omit some internal or obsolete options to make the list less imposing.
1330  # This message is too long to be a string in the A/UX 3.1 sh.
1331  cat <<_ACEOF
1332\`configure' configures package-unused version-unused to adapt to many kinds of systems.
1333
1334Usage: $0 [OPTION]... [VAR=VALUE]...
1335
1336To assign environment variables (e.g., CC, CFLAGS...), specify them as
1337VAR=VALUE.  See below for descriptions of some of the useful variables.
1338
1339Defaults for the options are specified in brackets.
1340
1341Configuration:
1342  -h, --help              display this help and exit
1343      --help=short        display options specific to this package
1344      --help=recursive    display the short help of all the included packages
1345  -V, --version           display version information and exit
1346  -q, --quiet, --silent   do not print \`checking...' messages
1347      --cache-file=FILE   cache test results in FILE [disabled]
1348  -C, --config-cache      alias for \`--cache-file=config.cache'
1349  -n, --no-create         do not create output files
1350      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1351
1352Installation directories:
1353  --prefix=PREFIX         install architecture-independent files in PREFIX
1354                          [$ac_default_prefix]
1355  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1356                          [PREFIX]
1357
1358By default, \`make install' will install all the files in
1359\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1360an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1361for instance \`--prefix=\$HOME'.
1362
1363For better control, use the options below.
1364
1365Fine tuning of the installation directories:
1366  --bindir=DIR            user executables [EPREFIX/bin]
1367  --sbindir=DIR           system admin executables [EPREFIX/sbin]
1368  --libexecdir=DIR        program executables [EPREFIX/libexec]
1369  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1370  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1371  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1372  --libdir=DIR            object code libraries [EPREFIX/lib]
1373  --includedir=DIR        C header files [PREFIX/include]
1374  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1375  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1376  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1377  --infodir=DIR           info documentation [DATAROOTDIR/info]
1378  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1379  --mandir=DIR            man documentation [DATAROOTDIR/man]
1380  --docdir=DIR            documentation root [DATAROOTDIR/doc/package-unused]
1381  --htmldir=DIR           html documentation [DOCDIR]
1382  --dvidir=DIR            dvi documentation [DOCDIR]
1383  --pdfdir=DIR            pdf documentation [DOCDIR]
1384  --psdir=DIR             ps documentation [DOCDIR]
1385_ACEOF
1386
1387  cat <<\_ACEOF
1388
1389Program names:
1390  --program-prefix=PREFIX            prepend PREFIX to installed program names
1391  --program-suffix=SUFFIX            append SUFFIX to installed program names
1392  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1393
1394System types:
1395  --build=BUILD     configure for building on BUILD [guessed]
1396  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1397  --target=TARGET   configure for building compilers for TARGET [HOST]
1398_ACEOF
1399fi
1400
1401if test -n "$ac_init_help"; then
1402  case $ac_init_help in
1403     short | recursive ) echo "Configuration of package-unused version-unused:";;
1404   esac
1405  cat <<\_ACEOF
1406
1407Optional Features:
1408  --disable-option-checking  ignore unrecognized --enable/--with options
1409  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1410  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1411  --enable-multilib       build many library versions (default)
1412  --enable-version-specific-runtime-libs    Specify that runtime libraries should be installed in a compiler-specific directory
1413  --disable-dependency-tracking  speeds up one-time build
1414  --enable-dependency-tracking   do not reject slow dependency extractors
1415  --enable-maintainer-mode  enable make rules and dependencies not useful
1416			  (and sometimes confusing) to the casual installer
1417  --enable-shared[=PKGS]  build shared libraries [default=yes]
1418  --enable-static[=PKGS]  build static libraries [default=yes]
1419  --enable-fast-install[=PKGS]
1420                          optimize for fast installation [default=yes]
1421  --disable-libtool-lock  avoid locking (might break parallel builds)
1422
1423Optional Packages:
1424  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1425  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1426  --with-pic              try to use only PIC/non-PIC objects [default=use
1427                          both]
1428  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1429
1430Some influential environment variables:
1431  CC          C compiler command
1432  CFLAGS      C compiler flags
1433  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1434              nonstandard directory <lib dir>
1435  LIBS        libraries to pass to the linker, e.g. -l<library>
1436  CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1437              you have headers in a nonstandard directory <include dir>
1438  CPP         C preprocessor
1439  CXX         C++ compiler command
1440  CXXFLAGS    C++ compiler flags
1441  CCAS        assembler compiler command (defaults to CC)
1442  CCASFLAGS   assembler compiler flags (defaults to CFLAGS)
1443  CXXCPP      C++ preprocessor
1444
1445Use these variables to override the choices made by `configure' or to help
1446it to find libraries and programs with nonstandard names/locations.
1447
1448Report bugs to <libsanitizer>.
1449_ACEOF
1450ac_status=$?
1451fi
1452
1453if test "$ac_init_help" = "recursive"; then
1454  # If there are subdirs, report their specific --help.
1455  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1456    test -d "$ac_dir" ||
1457      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1458      continue
1459    ac_builddir=.
1460
1461case "$ac_dir" in
1462.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1463*)
1464  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1465  # A ".." for each directory in $ac_dir_suffix.
1466  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1467  case $ac_top_builddir_sub in
1468  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1469  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1470  esac ;;
1471esac
1472ac_abs_top_builddir=$ac_pwd
1473ac_abs_builddir=$ac_pwd$ac_dir_suffix
1474# for backward compatibility:
1475ac_top_builddir=$ac_top_build_prefix
1476
1477case $srcdir in
1478  .)  # We are building in place.
1479    ac_srcdir=.
1480    ac_top_srcdir=$ac_top_builddir_sub
1481    ac_abs_top_srcdir=$ac_pwd ;;
1482  [\\/]* | ?:[\\/]* )  # Absolute name.
1483    ac_srcdir=$srcdir$ac_dir_suffix;
1484    ac_top_srcdir=$srcdir
1485    ac_abs_top_srcdir=$srcdir ;;
1486  *) # Relative name.
1487    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1488    ac_top_srcdir=$ac_top_build_prefix$srcdir
1489    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1490esac
1491ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1492
1493    cd "$ac_dir" || { ac_status=$?; continue; }
1494    # Check for guested configure.
1495    if test -f "$ac_srcdir/configure.gnu"; then
1496      echo &&
1497      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1498    elif test -f "$ac_srcdir/configure"; then
1499      echo &&
1500      $SHELL "$ac_srcdir/configure" --help=recursive
1501    else
1502      $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1503    fi || ac_status=$?
1504    cd "$ac_pwd" || { ac_status=$?; break; }
1505  done
1506fi
1507
1508test -n "$ac_init_help" && exit $ac_status
1509if $ac_init_version; then
1510  cat <<\_ACEOF
1511package-unused configure version-unused
1512generated by GNU Autoconf 2.64
1513
1514Copyright (C) 2009 Free Software Foundation, Inc.
1515This configure script is free software; the Free Software Foundation
1516gives unlimited permission to copy, distribute and modify it.
1517_ACEOF
1518  exit
1519fi
1520
1521## ------------------------ ##
1522## Autoconf initialization. ##
1523## ------------------------ ##
1524
1525# ac_fn_c_try_compile LINENO
1526# --------------------------
1527# Try to compile conftest.$ac_ext, and return whether this succeeded.
1528ac_fn_c_try_compile ()
1529{
1530  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1531  rm -f conftest.$ac_objext
1532  if { { ac_try="$ac_compile"
1533case "(($ac_try" in
1534  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1535  *) ac_try_echo=$ac_try;;
1536esac
1537eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1538$as_echo "$ac_try_echo"; } >&5
1539  (eval "$ac_compile") 2>conftest.err
1540  ac_status=$?
1541  if test -s conftest.err; then
1542    grep -v '^ *+' conftest.err >conftest.er1
1543    cat conftest.er1 >&5
1544    mv -f conftest.er1 conftest.err
1545  fi
1546  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1547  test $ac_status = 0; } && {
1548	 test -z "$ac_c_werror_flag" ||
1549	 test ! -s conftest.err
1550       } && test -s conftest.$ac_objext; then :
1551  ac_retval=0
1552else
1553  $as_echo "$as_me: failed program was:" >&5
1554sed 's/^/| /' conftest.$ac_ext >&5
1555
1556	ac_retval=1
1557fi
1558  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1559  return $ac_retval
1560
1561} # ac_fn_c_try_compile
1562
1563# ac_fn_c_try_cpp LINENO
1564# ----------------------
1565# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1566ac_fn_c_try_cpp ()
1567{
1568  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1569  if { { ac_try="$ac_cpp conftest.$ac_ext"
1570case "(($ac_try" in
1571  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1572  *) ac_try_echo=$ac_try;;
1573esac
1574eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1575$as_echo "$ac_try_echo"; } >&5
1576  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1577  ac_status=$?
1578  if test -s conftest.err; then
1579    grep -v '^ *+' conftest.err >conftest.er1
1580    cat conftest.er1 >&5
1581    mv -f conftest.er1 conftest.err
1582  fi
1583  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1584  test $ac_status = 0; } >/dev/null && {
1585	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1586	 test ! -s conftest.err
1587       }; then :
1588  ac_retval=0
1589else
1590  $as_echo "$as_me: failed program was:" >&5
1591sed 's/^/| /' conftest.$ac_ext >&5
1592
1593    ac_retval=1
1594fi
1595  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1596  return $ac_retval
1597
1598} # ac_fn_c_try_cpp
1599
1600# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1601# -------------------------------------------------------
1602# Tests whether HEADER exists, giving a warning if it cannot be compiled using
1603# the include files in INCLUDES and setting the cache variable VAR
1604# accordingly.
1605ac_fn_c_check_header_mongrel ()
1606{
1607  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1608  if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1609  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1610$as_echo_n "checking for $2... " >&6; }
1611if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1612  $as_echo_n "(cached) " >&6
1613fi
1614eval ac_res=\$$3
1615	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1616$as_echo "$ac_res" >&6; }
1617else
1618  # Is the header compilable?
1619{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1620$as_echo_n "checking $2 usability... " >&6; }
1621cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1622/* end confdefs.h.  */
1623$4
1624#include <$2>
1625_ACEOF
1626if ac_fn_c_try_compile "$LINENO"; then :
1627  ac_header_compiler=yes
1628else
1629  ac_header_compiler=no
1630fi
1631rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1632{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1633$as_echo "$ac_header_compiler" >&6; }
1634
1635# Is the header present?
1636{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1637$as_echo_n "checking $2 presence... " >&6; }
1638cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1639/* end confdefs.h.  */
1640#include <$2>
1641_ACEOF
1642if ac_fn_c_try_cpp "$LINENO"; then :
1643  ac_header_preproc=yes
1644else
1645  ac_header_preproc=no
1646fi
1647rm -f conftest.err conftest.$ac_ext
1648{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1649$as_echo "$ac_header_preproc" >&6; }
1650
1651# So?  What about this header?
1652case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1653  yes:no: )
1654    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1655$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1656    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1657$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1658    ;;
1659  no:yes:* )
1660    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1661$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1662    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
1663$as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
1664    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1665$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1666    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
1667$as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
1668    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1669$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1670( cat <<\_ASBOX
1671## --------------------------- ##
1672## Report this to libsanitizer ##
1673## --------------------------- ##
1674_ASBOX
1675     ) | sed "s/^/$as_me: WARNING:     /" >&2
1676    ;;
1677esac
1678  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1679$as_echo_n "checking for $2... " >&6; }
1680if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1681  $as_echo_n "(cached) " >&6
1682else
1683  eval "$3=\$ac_header_compiler"
1684fi
1685eval ac_res=\$$3
1686	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1687$as_echo "$ac_res" >&6; }
1688fi
1689  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1690
1691} # ac_fn_c_check_header_mongrel
1692
1693# ac_fn_c_try_run LINENO
1694# ----------------------
1695# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1696# that executables *can* be run.
1697ac_fn_c_try_run ()
1698{
1699  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1700  if { { ac_try="$ac_link"
1701case "(($ac_try" in
1702  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1703  *) ac_try_echo=$ac_try;;
1704esac
1705eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1706$as_echo "$ac_try_echo"; } >&5
1707  (eval "$ac_link") 2>&5
1708  ac_status=$?
1709  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1710  test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1711  { { case "(($ac_try" in
1712  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1713  *) ac_try_echo=$ac_try;;
1714esac
1715eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1716$as_echo "$ac_try_echo"; } >&5
1717  (eval "$ac_try") 2>&5
1718  ac_status=$?
1719  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1720  test $ac_status = 0; }; }; then :
1721  ac_retval=0
1722else
1723  $as_echo "$as_me: program exited with status $ac_status" >&5
1724       $as_echo "$as_me: failed program was:" >&5
1725sed 's/^/| /' conftest.$ac_ext >&5
1726
1727       ac_retval=$ac_status
1728fi
1729  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1730  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1731  return $ac_retval
1732
1733} # ac_fn_c_try_run
1734
1735# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1736# -------------------------------------------------------
1737# Tests whether HEADER exists and can be compiled using the include files in
1738# INCLUDES, setting the cache variable VAR accordingly.
1739ac_fn_c_check_header_compile ()
1740{
1741  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1742  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1743$as_echo_n "checking for $2... " >&6; }
1744if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1745  $as_echo_n "(cached) " >&6
1746else
1747  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1748/* end confdefs.h.  */
1749$4
1750#include <$2>
1751_ACEOF
1752if ac_fn_c_try_compile "$LINENO"; then :
1753  eval "$3=yes"
1754else
1755  eval "$3=no"
1756fi
1757rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1758fi
1759eval ac_res=\$$3
1760	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1761$as_echo "$ac_res" >&6; }
1762  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1763
1764} # ac_fn_c_check_header_compile
1765
1766# ac_fn_cxx_try_compile LINENO
1767# ----------------------------
1768# Try to compile conftest.$ac_ext, and return whether this succeeded.
1769ac_fn_cxx_try_compile ()
1770{
1771  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1772  rm -f conftest.$ac_objext
1773  if { { ac_try="$ac_compile"
1774case "(($ac_try" in
1775  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1776  *) ac_try_echo=$ac_try;;
1777esac
1778eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1779$as_echo "$ac_try_echo"; } >&5
1780  (eval "$ac_compile") 2>conftest.err
1781  ac_status=$?
1782  if test -s conftest.err; then
1783    grep -v '^ *+' conftest.err >conftest.er1
1784    cat conftest.er1 >&5
1785    mv -f conftest.er1 conftest.err
1786  fi
1787  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1788  test $ac_status = 0; } && {
1789	 test -z "$ac_cxx_werror_flag" ||
1790	 test ! -s conftest.err
1791       } && test -s conftest.$ac_objext; then :
1792  ac_retval=0
1793else
1794  $as_echo "$as_me: failed program was:" >&5
1795sed 's/^/| /' conftest.$ac_ext >&5
1796
1797	ac_retval=1
1798fi
1799  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1800  return $ac_retval
1801
1802} # ac_fn_cxx_try_compile
1803
1804# ac_fn_c_try_link LINENO
1805# -----------------------
1806# Try to link conftest.$ac_ext, and return whether this succeeded.
1807ac_fn_c_try_link ()
1808{
1809  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1810  rm -f conftest.$ac_objext conftest$ac_exeext
1811  if { { ac_try="$ac_link"
1812case "(($ac_try" in
1813  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1814  *) ac_try_echo=$ac_try;;
1815esac
1816eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1817$as_echo "$ac_try_echo"; } >&5
1818  (eval "$ac_link") 2>conftest.err
1819  ac_status=$?
1820  if test -s conftest.err; then
1821    grep -v '^ *+' conftest.err >conftest.er1
1822    cat conftest.er1 >&5
1823    mv -f conftest.er1 conftest.err
1824  fi
1825  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1826  test $ac_status = 0; } && {
1827	 test -z "$ac_c_werror_flag" ||
1828	 test ! -s conftest.err
1829       } && test -s conftest$ac_exeext && {
1830	 test "$cross_compiling" = yes ||
1831	 $as_test_x conftest$ac_exeext
1832       }; then :
1833  ac_retval=0
1834else
1835  $as_echo "$as_me: failed program was:" >&5
1836sed 's/^/| /' conftest.$ac_ext >&5
1837
1838	ac_retval=1
1839fi
1840  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1841  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1842  # interfere with the next link command; also delete a directory that is
1843  # left behind by Apple's compiler.  We do this before executing the actions.
1844  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1845  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1846  return $ac_retval
1847
1848} # ac_fn_c_try_link
1849
1850# ac_fn_c_check_func LINENO FUNC VAR
1851# ----------------------------------
1852# Tests whether FUNC exists, setting the cache variable VAR accordingly
1853ac_fn_c_check_func ()
1854{
1855  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1856  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1857$as_echo_n "checking for $2... " >&6; }
1858if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1859  $as_echo_n "(cached) " >&6
1860else
1861  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1862/* end confdefs.h.  */
1863/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1864   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
1865#define $2 innocuous_$2
1866
1867/* System header to define __stub macros and hopefully few prototypes,
1868    which can conflict with char $2 (); below.
1869    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1870    <limits.h> exists even on freestanding compilers.  */
1871
1872#ifdef __STDC__
1873# include <limits.h>
1874#else
1875# include <assert.h>
1876#endif
1877
1878#undef $2
1879
1880/* Override any GCC internal prototype to avoid an error.
1881   Use char because int might match the return type of a GCC
1882   builtin and then its argument prototype would still apply.  */
1883#ifdef __cplusplus
1884extern "C"
1885#endif
1886char $2 ();
1887/* The GNU C library defines this for functions which it implements
1888    to always fail with ENOSYS.  Some functions are actually named
1889    something starting with __ and the normal name is an alias.  */
1890#if defined __stub_$2 || defined __stub___$2
1891choke me
1892#endif
1893
1894int
1895main ()
1896{
1897return $2 ();
1898  ;
1899  return 0;
1900}
1901_ACEOF
1902if ac_fn_c_try_link "$LINENO"; then :
1903  eval "$3=yes"
1904else
1905  eval "$3=no"
1906fi
1907rm -f core conftest.err conftest.$ac_objext \
1908    conftest$ac_exeext conftest.$ac_ext
1909fi
1910eval ac_res=\$$3
1911	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1912$as_echo "$ac_res" >&6; }
1913  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1914
1915} # ac_fn_c_check_func
1916
1917# ac_fn_cxx_try_cpp LINENO
1918# ------------------------
1919# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1920ac_fn_cxx_try_cpp ()
1921{
1922  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1923  if { { ac_try="$ac_cpp conftest.$ac_ext"
1924case "(($ac_try" in
1925  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1926  *) ac_try_echo=$ac_try;;
1927esac
1928eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1929$as_echo "$ac_try_echo"; } >&5
1930  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1931  ac_status=$?
1932  if test -s conftest.err; then
1933    grep -v '^ *+' conftest.err >conftest.er1
1934    cat conftest.er1 >&5
1935    mv -f conftest.er1 conftest.err
1936  fi
1937  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1938  test $ac_status = 0; } >/dev/null && {
1939	 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
1940	 test ! -s conftest.err
1941       }; then :
1942  ac_retval=0
1943else
1944  $as_echo "$as_me: failed program was:" >&5
1945sed 's/^/| /' conftest.$ac_ext >&5
1946
1947    ac_retval=1
1948fi
1949  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1950  return $ac_retval
1951
1952} # ac_fn_cxx_try_cpp
1953
1954# ac_fn_cxx_try_link LINENO
1955# -------------------------
1956# Try to link conftest.$ac_ext, and return whether this succeeded.
1957ac_fn_cxx_try_link ()
1958{
1959  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1960  rm -f conftest.$ac_objext conftest$ac_exeext
1961  if { { ac_try="$ac_link"
1962case "(($ac_try" in
1963  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1964  *) ac_try_echo=$ac_try;;
1965esac
1966eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1967$as_echo "$ac_try_echo"; } >&5
1968  (eval "$ac_link") 2>conftest.err
1969  ac_status=$?
1970  if test -s conftest.err; then
1971    grep -v '^ *+' conftest.err >conftest.er1
1972    cat conftest.er1 >&5
1973    mv -f conftest.er1 conftest.err
1974  fi
1975  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1976  test $ac_status = 0; } && {
1977	 test -z "$ac_cxx_werror_flag" ||
1978	 test ! -s conftest.err
1979       } && test -s conftest$ac_exeext && {
1980	 test "$cross_compiling" = yes ||
1981	 $as_test_x conftest$ac_exeext
1982       }; then :
1983  ac_retval=0
1984else
1985  $as_echo "$as_me: failed program was:" >&5
1986sed 's/^/| /' conftest.$ac_ext >&5
1987
1988	ac_retval=1
1989fi
1990  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1991  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1992  # interfere with the next link command; also delete a directory that is
1993  # left behind by Apple's compiler.  We do this before executing the actions.
1994  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1995  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1996  return $ac_retval
1997
1998} # ac_fn_cxx_try_link
1999
2000# ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2001# --------------------------------------------
2002# Tries to find the compile-time value of EXPR in a program that includes
2003# INCLUDES, setting VAR accordingly. Returns whether the value could be
2004# computed
2005ac_fn_c_compute_int ()
2006{
2007  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2008  if test "$cross_compiling" = yes; then
2009    # Depending upon the size, compute the lo and hi bounds.
2010cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2011/* end confdefs.h.  */
2012$4
2013int
2014main ()
2015{
2016static int test_array [1 - 2 * !(($2) >= 0)];
2017test_array [0] = 0
2018
2019  ;
2020  return 0;
2021}
2022_ACEOF
2023if ac_fn_c_try_compile "$LINENO"; then :
2024  ac_lo=0 ac_mid=0
2025  while :; do
2026    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2027/* end confdefs.h.  */
2028$4
2029int
2030main ()
2031{
2032static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2033test_array [0] = 0
2034
2035  ;
2036  return 0;
2037}
2038_ACEOF
2039if ac_fn_c_try_compile "$LINENO"; then :
2040  ac_hi=$ac_mid; break
2041else
2042  as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2043			if test $ac_lo -le $ac_mid; then
2044			  ac_lo= ac_hi=
2045			  break
2046			fi
2047			as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2048fi
2049rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2050  done
2051else
2052  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2053/* end confdefs.h.  */
2054$4
2055int
2056main ()
2057{
2058static int test_array [1 - 2 * !(($2) < 0)];
2059test_array [0] = 0
2060
2061  ;
2062  return 0;
2063}
2064_ACEOF
2065if ac_fn_c_try_compile "$LINENO"; then :
2066  ac_hi=-1 ac_mid=-1
2067  while :; do
2068    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2069/* end confdefs.h.  */
2070$4
2071int
2072main ()
2073{
2074static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2075test_array [0] = 0
2076
2077  ;
2078  return 0;
2079}
2080_ACEOF
2081if ac_fn_c_try_compile "$LINENO"; then :
2082  ac_lo=$ac_mid; break
2083else
2084  as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2085			if test $ac_mid -le $ac_hi; then
2086			  ac_lo= ac_hi=
2087			  break
2088			fi
2089			as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2090fi
2091rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2092  done
2093else
2094  ac_lo= ac_hi=
2095fi
2096rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2097fi
2098rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2099# Binary search between lo and hi bounds.
2100while test "x$ac_lo" != "x$ac_hi"; do
2101  as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2102  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2103/* end confdefs.h.  */
2104$4
2105int
2106main ()
2107{
2108static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2109test_array [0] = 0
2110
2111  ;
2112  return 0;
2113}
2114_ACEOF
2115if ac_fn_c_try_compile "$LINENO"; then :
2116  ac_hi=$ac_mid
2117else
2118  as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2119fi
2120rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2121done
2122case $ac_lo in #((
2123?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2124'') ac_retval=1 ;;
2125esac
2126  else
2127    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2128/* end confdefs.h.  */
2129$4
2130static long int longval () { return $2; }
2131static unsigned long int ulongval () { return $2; }
2132#include <stdio.h>
2133#include <stdlib.h>
2134int
2135main ()
2136{
2137
2138  FILE *f = fopen ("conftest.val", "w");
2139  if (! f)
2140    return 1;
2141  if (($2) < 0)
2142    {
2143      long int i = longval ();
2144      if (i != ($2))
2145	return 1;
2146      fprintf (f, "%ld", i);
2147    }
2148  else
2149    {
2150      unsigned long int i = ulongval ();
2151      if (i != ($2))
2152	return 1;
2153      fprintf (f, "%lu", i);
2154    }
2155  /* Do not output a trailing newline, as this causes \r\n confusion
2156     on some platforms.  */
2157  return ferror (f) || fclose (f) != 0;
2158
2159  ;
2160  return 0;
2161}
2162_ACEOF
2163if ac_fn_c_try_run "$LINENO"; then :
2164  echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2165else
2166  ac_retval=1
2167fi
2168rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2169  conftest.$ac_objext conftest.beam conftest.$ac_ext
2170rm -f conftest.val
2171
2172  fi
2173  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2174  return $ac_retval
2175
2176} # ac_fn_c_compute_int
2177
2178# ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2179# -------------------------------------------
2180# Tests whether TYPE exists after having included INCLUDES, setting cache
2181# variable VAR accordingly.
2182ac_fn_c_check_type ()
2183{
2184  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2185  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2186$as_echo_n "checking for $2... " >&6; }
2187if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2188  $as_echo_n "(cached) " >&6
2189else
2190  eval "$3=no"
2191  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2192/* end confdefs.h.  */
2193$4
2194int
2195main ()
2196{
2197if (sizeof ($2))
2198	 return 0;
2199  ;
2200  return 0;
2201}
2202_ACEOF
2203if ac_fn_c_try_compile "$LINENO"; then :
2204  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2205/* end confdefs.h.  */
2206$4
2207int
2208main ()
2209{
2210if (sizeof (($2)))
2211	    return 0;
2212  ;
2213  return 0;
2214}
2215_ACEOF
2216if ac_fn_c_try_compile "$LINENO"; then :
2217
2218else
2219  eval "$3=yes"
2220fi
2221rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2222fi
2223rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2224fi
2225eval ac_res=\$$3
2226	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2227$as_echo "$ac_res" >&6; }
2228  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2229
2230} # ac_fn_c_check_type
2231
2232# ac_fn_c_check_decl LINENO SYMBOL VAR
2233# ------------------------------------
2234# Tests whether SYMBOL is declared, setting cache variable VAR accordingly.
2235ac_fn_c_check_decl ()
2236{
2237  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2238  as_decl_name=`echo $2|sed 's/ *(.*//'`
2239  as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2240  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2241$as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2242if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2243  $as_echo_n "(cached) " >&6
2244else
2245  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2246/* end confdefs.h.  */
2247$4
2248int
2249main ()
2250{
2251#ifndef $as_decl_name
2252#ifdef __cplusplus
2253  (void) $as_decl_use;
2254#else
2255  (void) $as_decl_name;
2256#endif
2257#endif
2258
2259  ;
2260  return 0;
2261}
2262_ACEOF
2263if ac_fn_c_try_compile "$LINENO"; then :
2264  eval "$3=yes"
2265else
2266  eval "$3=no"
2267fi
2268rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2269fi
2270eval ac_res=\$$3
2271	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2272$as_echo "$ac_res" >&6; }
2273  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2274
2275} # ac_fn_c_check_decl
2276cat >config.log <<_ACEOF
2277This file contains any messages produced by compilers while
2278running configure, to aid debugging if configure makes a mistake.
2279
2280It was created by package-unused $as_me version-unused, which was
2281generated by GNU Autoconf 2.64.  Invocation command line was
2282
2283  $ $0 $@
2284
2285_ACEOF
2286exec 5>>config.log
2287{
2288cat <<_ASUNAME
2289## --------- ##
2290## Platform. ##
2291## --------- ##
2292
2293hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2294uname -m = `(uname -m) 2>/dev/null || echo unknown`
2295uname -r = `(uname -r) 2>/dev/null || echo unknown`
2296uname -s = `(uname -s) 2>/dev/null || echo unknown`
2297uname -v = `(uname -v) 2>/dev/null || echo unknown`
2298
2299/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2300/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2301
2302/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2303/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2304/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2305/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2306/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2307/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2308/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2309
2310_ASUNAME
2311
2312as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2313for as_dir in $PATH
2314do
2315  IFS=$as_save_IFS
2316  test -z "$as_dir" && as_dir=.
2317    $as_echo "PATH: $as_dir"
2318  done
2319IFS=$as_save_IFS
2320
2321} >&5
2322
2323cat >&5 <<_ACEOF
2324
2325
2326## ----------- ##
2327## Core tests. ##
2328## ----------- ##
2329
2330_ACEOF
2331
2332
2333# Keep a trace of the command line.
2334# Strip out --no-create and --no-recursion so they do not pile up.
2335# Strip out --silent because we don't want to record it for future runs.
2336# Also quote any args containing shell meta-characters.
2337# Make two passes to allow for proper duplicate-argument suppression.
2338ac_configure_args=
2339ac_configure_args0=
2340ac_configure_args1=
2341ac_must_keep_next=false
2342for ac_pass in 1 2
2343do
2344  for ac_arg
2345  do
2346    case $ac_arg in
2347    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2348    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2349    | -silent | --silent | --silen | --sile | --sil)
2350      continue ;;
2351    *\'*)
2352      ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2353    esac
2354    case $ac_pass in
2355    1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2356    2)
2357      as_fn_append ac_configure_args1 " '$ac_arg'"
2358      if test $ac_must_keep_next = true; then
2359	ac_must_keep_next=false # Got value, back to normal.
2360      else
2361	case $ac_arg in
2362	  *=* | --config-cache | -C | -disable-* | --disable-* \
2363	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2364	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2365	  | -with-* | --with-* | -without-* | --without-* | --x)
2366	    case "$ac_configure_args0 " in
2367	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2368	    esac
2369	    ;;
2370	  -* ) ac_must_keep_next=true ;;
2371	esac
2372      fi
2373      as_fn_append ac_configure_args " '$ac_arg'"
2374      ;;
2375    esac
2376  done
2377done
2378{ ac_configure_args0=; unset ac_configure_args0;}
2379{ ac_configure_args1=; unset ac_configure_args1;}
2380
2381# When interrupted or exit'd, cleanup temporary files, and complete
2382# config.log.  We remove comments because anyway the quotes in there
2383# would cause problems or look ugly.
2384# WARNING: Use '\'' to represent an apostrophe within the trap.
2385# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2386trap 'exit_status=$?
2387  # Save into config.log some information that might help in debugging.
2388  {
2389    echo
2390
2391    cat <<\_ASBOX
2392## ---------------- ##
2393## Cache variables. ##
2394## ---------------- ##
2395_ASBOX
2396    echo
2397    # The following way of writing the cache mishandles newlines in values,
2398(
2399  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2400    eval ac_val=\$$ac_var
2401    case $ac_val in #(
2402    *${as_nl}*)
2403      case $ac_var in #(
2404      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2405$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2406      esac
2407      case $ac_var in #(
2408      _ | IFS | as_nl) ;; #(
2409      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2410      *) { eval $ac_var=; unset $ac_var;} ;;
2411      esac ;;
2412    esac
2413  done
2414  (set) 2>&1 |
2415    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2416    *${as_nl}ac_space=\ *)
2417      sed -n \
2418	"s/'\''/'\''\\\\'\'''\''/g;
2419	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2420      ;; #(
2421    *)
2422      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2423      ;;
2424    esac |
2425    sort
2426)
2427    echo
2428
2429    cat <<\_ASBOX
2430## ----------------- ##
2431## Output variables. ##
2432## ----------------- ##
2433_ASBOX
2434    echo
2435    for ac_var in $ac_subst_vars
2436    do
2437      eval ac_val=\$$ac_var
2438      case $ac_val in
2439      *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2440      esac
2441      $as_echo "$ac_var='\''$ac_val'\''"
2442    done | sort
2443    echo
2444
2445    if test -n "$ac_subst_files"; then
2446      cat <<\_ASBOX
2447## ------------------- ##
2448## File substitutions. ##
2449## ------------------- ##
2450_ASBOX
2451      echo
2452      for ac_var in $ac_subst_files
2453      do
2454	eval ac_val=\$$ac_var
2455	case $ac_val in
2456	*\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2457	esac
2458	$as_echo "$ac_var='\''$ac_val'\''"
2459      done | sort
2460      echo
2461    fi
2462
2463    if test -s confdefs.h; then
2464      cat <<\_ASBOX
2465## ----------- ##
2466## confdefs.h. ##
2467## ----------- ##
2468_ASBOX
2469      echo
2470      cat confdefs.h
2471      echo
2472    fi
2473    test "$ac_signal" != 0 &&
2474      $as_echo "$as_me: caught signal $ac_signal"
2475    $as_echo "$as_me: exit $exit_status"
2476  } >&5
2477  rm -f core *.core core.conftest.* &&
2478    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2479    exit $exit_status
2480' 0
2481for ac_signal in 1 2 13 15; do
2482  trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2483done
2484ac_signal=0
2485
2486# confdefs.h avoids OS command line length limits that DEFS can exceed.
2487rm -f -r conftest* confdefs.h
2488
2489$as_echo "/* confdefs.h */" > confdefs.h
2490
2491# Predefined preprocessor variables.
2492
2493cat >>confdefs.h <<_ACEOF
2494#define PACKAGE_NAME "$PACKAGE_NAME"
2495_ACEOF
2496
2497cat >>confdefs.h <<_ACEOF
2498#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2499_ACEOF
2500
2501cat >>confdefs.h <<_ACEOF
2502#define PACKAGE_VERSION "$PACKAGE_VERSION"
2503_ACEOF
2504
2505cat >>confdefs.h <<_ACEOF
2506#define PACKAGE_STRING "$PACKAGE_STRING"
2507_ACEOF
2508
2509cat >>confdefs.h <<_ACEOF
2510#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2511_ACEOF
2512
2513cat >>confdefs.h <<_ACEOF
2514#define PACKAGE_URL "$PACKAGE_URL"
2515_ACEOF
2516
2517
2518# Let the site file select an alternate cache file if it wants to.
2519# Prefer an explicitly selected file to automatically selected ones.
2520ac_site_file1=NONE
2521ac_site_file2=NONE
2522if test -n "$CONFIG_SITE"; then
2523  ac_site_file1=$CONFIG_SITE
2524elif test "x$prefix" != xNONE; then
2525  ac_site_file1=$prefix/share/config.site
2526  ac_site_file2=$prefix/etc/config.site
2527else
2528  ac_site_file1=$ac_default_prefix/share/config.site
2529  ac_site_file2=$ac_default_prefix/etc/config.site
2530fi
2531for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2532do
2533  test "x$ac_site_file" = xNONE && continue
2534  if test -r "$ac_site_file"; then
2535    { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2536$as_echo "$as_me: loading site script $ac_site_file" >&6;}
2537    sed 's/^/| /' "$ac_site_file" >&5
2538    . "$ac_site_file"
2539  fi
2540done
2541
2542if test -r "$cache_file"; then
2543  # Some versions of bash will fail to source /dev/null (special
2544  # files actually), so we avoid doing that.
2545  if test -f "$cache_file"; then
2546    { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2547$as_echo "$as_me: loading cache $cache_file" >&6;}
2548    case $cache_file in
2549      [\\/]* | ?:[\\/]* ) . "$cache_file";;
2550      *)                      . "./$cache_file";;
2551    esac
2552  fi
2553else
2554  { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2555$as_echo "$as_me: creating cache $cache_file" >&6;}
2556  >$cache_file
2557fi
2558
2559# Check that the precious variables saved in the cache have kept the same
2560# value.
2561ac_cache_corrupted=false
2562for ac_var in $ac_precious_vars; do
2563  eval ac_old_set=\$ac_cv_env_${ac_var}_set
2564  eval ac_new_set=\$ac_env_${ac_var}_set
2565  eval ac_old_val=\$ac_cv_env_${ac_var}_value
2566  eval ac_new_val=\$ac_env_${ac_var}_value
2567  case $ac_old_set,$ac_new_set in
2568    set,)
2569      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2570$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2571      ac_cache_corrupted=: ;;
2572    ,set)
2573      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2574$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2575      ac_cache_corrupted=: ;;
2576    ,);;
2577    *)
2578      if test "x$ac_old_val" != "x$ac_new_val"; then
2579	# differences in whitespace do not lead to failure.
2580	ac_old_val_w=`echo x $ac_old_val`
2581	ac_new_val_w=`echo x $ac_new_val`
2582	if test "$ac_old_val_w" != "$ac_new_val_w"; then
2583	  { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2584$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2585	  ac_cache_corrupted=:
2586	else
2587	  { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2588$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2589	  eval $ac_var=\$ac_old_val
2590	fi
2591	{ $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2592$as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2593	{ $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2594$as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2595      fi;;
2596  esac
2597  # Pass precious variables to config.status.
2598  if test "$ac_new_set" = set; then
2599    case $ac_new_val in
2600    *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2601    *) ac_arg=$ac_var=$ac_new_val ;;
2602    esac
2603    case " $ac_configure_args " in
2604      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2605      *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2606    esac
2607  fi
2608done
2609if $ac_cache_corrupted; then
2610  { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2611$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2612  { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2613$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2614  as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2615fi
2616## -------------------- ##
2617## Main body of script. ##
2618## -------------------- ##
2619
2620ac_ext=c
2621ac_cpp='$CPP $CPPFLAGS'
2622ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2623ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2624ac_compiler_gnu=$ac_cv_c_compiler_gnu
2625
2626
2627
2628
2629
2630
2631
2632# Default to --enable-multilib
2633# Check whether --enable-multilib was given.
2634if test "${enable_multilib+set}" = set; then :
2635  enableval=$enable_multilib; case "$enableval" in
2636  yes) multilib=yes ;;
2637  no)  multilib=no ;;
2638  *)   as_fn_error "bad value $enableval for multilib option" "$LINENO" 5 ;;
2639 esac
2640else
2641  multilib=yes
2642fi
2643
2644
2645# We may get other options which we leave undocumented:
2646# --with-target-subdir, --with-multisrctop, --with-multisubdir
2647# See config-ml.in if you want the gory details.
2648
2649if test "$srcdir" = "."; then
2650  if test "$with_target_subdir" != "."; then
2651    multi_basedir="$srcdir/$with_multisrctop../.."
2652  else
2653    multi_basedir="$srcdir/$with_multisrctop.."
2654  fi
2655else
2656  multi_basedir="$srcdir/.."
2657fi
2658
2659
2660# Even if the default multilib is not a cross compilation,
2661# it may be that some of the other multilibs are.
2662if test $cross_compiling = no && test $multilib = yes \
2663   && test "x${with_multisubdir}" != x ; then
2664   cross_compiling=maybe
2665fi
2666
2667ac_config_commands="$ac_config_commands default-1"
2668
2669
2670{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-version-specific-runtime-libs" >&5
2671$as_echo_n "checking for --enable-version-specific-runtime-libs... " >&6; }
2672# Check whether --enable-version-specific-runtime-libs was given.
2673if test "${enable_version_specific_runtime_libs+set}" = set; then :
2674  enableval=$enable_version_specific_runtime_libs; case "$enableval" in
2675 yes) version_specific_libs=yes ;;
2676 no)  version_specific_libs=no ;;
2677 *)   as_fn_error "Unknown argument to enable/disable version-specific libs" "$LINENO" 5;;
2678 esac
2679else
2680  version_specific_libs=no
2681fi
2682
2683{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $version_specific_libs" >&5
2684$as_echo "$version_specific_libs" >&6; }
2685
2686ac_ext=c
2687ac_cpp='$CPP $CPPFLAGS'
2688ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2689ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2690ac_compiler_gnu=$ac_cv_c_compiler_gnu
2691if test -n "$ac_tool_prefix"; then
2692  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2693set dummy ${ac_tool_prefix}gcc; ac_word=$2
2694{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2695$as_echo_n "checking for $ac_word... " >&6; }
2696if test "${ac_cv_prog_CC+set}" = set; then :
2697  $as_echo_n "(cached) " >&6
2698else
2699  if test -n "$CC"; then
2700  ac_cv_prog_CC="$CC" # Let the user override the test.
2701else
2702as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2703for as_dir in $PATH
2704do
2705  IFS=$as_save_IFS
2706  test -z "$as_dir" && as_dir=.
2707    for ac_exec_ext in '' $ac_executable_extensions; do
2708  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2709    ac_cv_prog_CC="${ac_tool_prefix}gcc"
2710    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2711    break 2
2712  fi
2713done
2714  done
2715IFS=$as_save_IFS
2716
2717fi
2718fi
2719CC=$ac_cv_prog_CC
2720if test -n "$CC"; then
2721  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2722$as_echo "$CC" >&6; }
2723else
2724  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2725$as_echo "no" >&6; }
2726fi
2727
2728
2729fi
2730if test -z "$ac_cv_prog_CC"; then
2731  ac_ct_CC=$CC
2732  # Extract the first word of "gcc", so it can be a program name with args.
2733set dummy gcc; ac_word=$2
2734{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2735$as_echo_n "checking for $ac_word... " >&6; }
2736if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
2737  $as_echo_n "(cached) " >&6
2738else
2739  if test -n "$ac_ct_CC"; then
2740  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2741else
2742as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2743for as_dir in $PATH
2744do
2745  IFS=$as_save_IFS
2746  test -z "$as_dir" && as_dir=.
2747    for ac_exec_ext in '' $ac_executable_extensions; do
2748  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2749    ac_cv_prog_ac_ct_CC="gcc"
2750    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2751    break 2
2752  fi
2753done
2754  done
2755IFS=$as_save_IFS
2756
2757fi
2758fi
2759ac_ct_CC=$ac_cv_prog_ac_ct_CC
2760if test -n "$ac_ct_CC"; then
2761  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2762$as_echo "$ac_ct_CC" >&6; }
2763else
2764  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2765$as_echo "no" >&6; }
2766fi
2767
2768  if test "x$ac_ct_CC" = x; then
2769    CC=""
2770  else
2771    case $cross_compiling:$ac_tool_warned in
2772yes:)
2773{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2774$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2775ac_tool_warned=yes ;;
2776esac
2777    CC=$ac_ct_CC
2778  fi
2779else
2780  CC="$ac_cv_prog_CC"
2781fi
2782
2783if test -z "$CC"; then
2784          if test -n "$ac_tool_prefix"; then
2785    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2786set dummy ${ac_tool_prefix}cc; ac_word=$2
2787{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2788$as_echo_n "checking for $ac_word... " >&6; }
2789if test "${ac_cv_prog_CC+set}" = set; then :
2790  $as_echo_n "(cached) " >&6
2791else
2792  if test -n "$CC"; then
2793  ac_cv_prog_CC="$CC" # Let the user override the test.
2794else
2795as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2796for as_dir in $PATH
2797do
2798  IFS=$as_save_IFS
2799  test -z "$as_dir" && as_dir=.
2800    for ac_exec_ext in '' $ac_executable_extensions; do
2801  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2802    ac_cv_prog_CC="${ac_tool_prefix}cc"
2803    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2804    break 2
2805  fi
2806done
2807  done
2808IFS=$as_save_IFS
2809
2810fi
2811fi
2812CC=$ac_cv_prog_CC
2813if test -n "$CC"; then
2814  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2815$as_echo "$CC" >&6; }
2816else
2817  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2818$as_echo "no" >&6; }
2819fi
2820
2821
2822  fi
2823fi
2824if test -z "$CC"; then
2825  # Extract the first word of "cc", so it can be a program name with args.
2826set dummy cc; ac_word=$2
2827{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2828$as_echo_n "checking for $ac_word... " >&6; }
2829if test "${ac_cv_prog_CC+set}" = set; then :
2830  $as_echo_n "(cached) " >&6
2831else
2832  if test -n "$CC"; then
2833  ac_cv_prog_CC="$CC" # Let the user override the test.
2834else
2835  ac_prog_rejected=no
2836as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2837for as_dir in $PATH
2838do
2839  IFS=$as_save_IFS
2840  test -z "$as_dir" && as_dir=.
2841    for ac_exec_ext in '' $ac_executable_extensions; do
2842  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2843    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2844       ac_prog_rejected=yes
2845       continue
2846     fi
2847    ac_cv_prog_CC="cc"
2848    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2849    break 2
2850  fi
2851done
2852  done
2853IFS=$as_save_IFS
2854
2855if test $ac_prog_rejected = yes; then
2856  # We found a bogon in the path, so make sure we never use it.
2857  set dummy $ac_cv_prog_CC
2858  shift
2859  if test $# != 0; then
2860    # We chose a different compiler from the bogus one.
2861    # However, it has the same basename, so the bogon will be chosen
2862    # first if we set CC to just the basename; use the full file name.
2863    shift
2864    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2865  fi
2866fi
2867fi
2868fi
2869CC=$ac_cv_prog_CC
2870if test -n "$CC"; then
2871  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2872$as_echo "$CC" >&6; }
2873else
2874  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2875$as_echo "no" >&6; }
2876fi
2877
2878
2879fi
2880if test -z "$CC"; then
2881  if test -n "$ac_tool_prefix"; then
2882  for ac_prog in cl.exe
2883  do
2884    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2885set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2886{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2887$as_echo_n "checking for $ac_word... " >&6; }
2888if test "${ac_cv_prog_CC+set}" = set; then :
2889  $as_echo_n "(cached) " >&6
2890else
2891  if test -n "$CC"; then
2892  ac_cv_prog_CC="$CC" # Let the user override the test.
2893else
2894as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2895for as_dir in $PATH
2896do
2897  IFS=$as_save_IFS
2898  test -z "$as_dir" && as_dir=.
2899    for ac_exec_ext in '' $ac_executable_extensions; do
2900  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2901    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2902    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2903    break 2
2904  fi
2905done
2906  done
2907IFS=$as_save_IFS
2908
2909fi
2910fi
2911CC=$ac_cv_prog_CC
2912if test -n "$CC"; then
2913  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2914$as_echo "$CC" >&6; }
2915else
2916  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2917$as_echo "no" >&6; }
2918fi
2919
2920
2921    test -n "$CC" && break
2922  done
2923fi
2924if test -z "$CC"; then
2925  ac_ct_CC=$CC
2926  for ac_prog in cl.exe
2927do
2928  # Extract the first word of "$ac_prog", so it can be a program name with args.
2929set dummy $ac_prog; ac_word=$2
2930{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2931$as_echo_n "checking for $ac_word... " >&6; }
2932if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
2933  $as_echo_n "(cached) " >&6
2934else
2935  if test -n "$ac_ct_CC"; then
2936  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2937else
2938as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2939for as_dir in $PATH
2940do
2941  IFS=$as_save_IFS
2942  test -z "$as_dir" && as_dir=.
2943    for ac_exec_ext in '' $ac_executable_extensions; do
2944  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2945    ac_cv_prog_ac_ct_CC="$ac_prog"
2946    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2947    break 2
2948  fi
2949done
2950  done
2951IFS=$as_save_IFS
2952
2953fi
2954fi
2955ac_ct_CC=$ac_cv_prog_ac_ct_CC
2956if test -n "$ac_ct_CC"; then
2957  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2958$as_echo "$ac_ct_CC" >&6; }
2959else
2960  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2961$as_echo "no" >&6; }
2962fi
2963
2964
2965  test -n "$ac_ct_CC" && break
2966done
2967
2968  if test "x$ac_ct_CC" = x; then
2969    CC=""
2970  else
2971    case $cross_compiling:$ac_tool_warned in
2972yes:)
2973{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2974$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2975ac_tool_warned=yes ;;
2976esac
2977    CC=$ac_ct_CC
2978  fi
2979fi
2980
2981fi
2982
2983
2984test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2985$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2986as_fn_error "no acceptable C compiler found in \$PATH
2987See \`config.log' for more details." "$LINENO" 5; }
2988
2989# Provide some information about the compiler.
2990$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
2991set X $ac_compile
2992ac_compiler=$2
2993for ac_option in --version -v -V -qversion; do
2994  { { ac_try="$ac_compiler $ac_option >&5"
2995case "(($ac_try" in
2996  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2997  *) ac_try_echo=$ac_try;;
2998esac
2999eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3000$as_echo "$ac_try_echo"; } >&5
3001  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3002  ac_status=$?
3003  if test -s conftest.err; then
3004    sed '10a\
3005... rest of stderr output deleted ...
3006         10q' conftest.err >conftest.er1
3007    cat conftest.er1 >&5
3008    rm -f conftest.er1 conftest.err
3009  fi
3010  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3011  test $ac_status = 0; }
3012done
3013
3014cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3015/* end confdefs.h.  */
3016
3017int
3018main ()
3019{
3020
3021  ;
3022  return 0;
3023}
3024_ACEOF
3025ac_clean_files_save=$ac_clean_files
3026ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
3027# Try to create an executable without -o first, disregard a.out.
3028# It will help us diagnose broken compilers, and finding out an intuition
3029# of exeext.
3030{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3031$as_echo_n "checking for C compiler default output file name... " >&6; }
3032ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3033
3034# The possible output files:
3035ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3036
3037ac_rmfiles=
3038for ac_file in $ac_files
3039do
3040  case $ac_file in
3041    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3042    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3043  esac
3044done
3045rm -f $ac_rmfiles
3046
3047if { { ac_try="$ac_link_default"
3048case "(($ac_try" in
3049  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3050  *) ac_try_echo=$ac_try;;
3051esac
3052eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3053$as_echo "$ac_try_echo"; } >&5
3054  (eval "$ac_link_default") 2>&5
3055  ac_status=$?
3056  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3057  test $ac_status = 0; }; then :
3058  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3059# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3060# in a Makefile.  We should not override ac_cv_exeext if it was cached,
3061# so that the user can short-circuit this test for compilers unknown to
3062# Autoconf.
3063for ac_file in $ac_files ''
3064do
3065  test -f "$ac_file" || continue
3066  case $ac_file in
3067    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3068	;;
3069    [ab].out )
3070	# We found the default executable, but exeext='' is most
3071	# certainly right.
3072	break;;
3073    *.* )
3074	if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3075	then :; else
3076	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3077	fi
3078	# We set ac_cv_exeext here because the later test for it is not
3079	# safe: cross compilers may not add the suffix if given an `-o'
3080	# argument, so we may need to know it at that point already.
3081	# Even if this section looks crufty: it has the advantage of
3082	# actually working.
3083	break;;
3084    * )
3085	break;;
3086  esac
3087done
3088test "$ac_cv_exeext" = no && ac_cv_exeext=
3089
3090else
3091  ac_file=''
3092fi
3093{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3094$as_echo "$ac_file" >&6; }
3095if test -z "$ac_file"; then :
3096  $as_echo "$as_me: failed program was:" >&5
3097sed 's/^/| /' conftest.$ac_ext >&5
3098
3099{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3100$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3101{ as_fn_set_status 77
3102as_fn_error "C compiler cannot create executables
3103See \`config.log' for more details." "$LINENO" 5; }; }
3104fi
3105ac_exeext=$ac_cv_exeext
3106
3107# Check that the compiler produces executables we can run.  If not, either
3108# the compiler is broken, or we cross compile.
3109{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3110$as_echo_n "checking whether the C compiler works... " >&6; }
3111# If not cross compiling, check that we can run a simple program.
3112if test "$cross_compiling" != yes; then
3113  if { ac_try='./$ac_file'
3114  { { case "(($ac_try" in
3115  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3116  *) ac_try_echo=$ac_try;;
3117esac
3118eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3119$as_echo "$ac_try_echo"; } >&5
3120  (eval "$ac_try") 2>&5
3121  ac_status=$?
3122  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3123  test $ac_status = 0; }; }; then
3124    cross_compiling=no
3125  else
3126    if test "$cross_compiling" = maybe; then
3127	cross_compiling=yes
3128    else
3129	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3130$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3131as_fn_error "cannot run C compiled programs.
3132If you meant to cross compile, use \`--host'.
3133See \`config.log' for more details." "$LINENO" 5; }
3134    fi
3135  fi
3136fi
3137{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3138$as_echo "yes" >&6; }
3139
3140rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
3141ac_clean_files=$ac_clean_files_save
3142# Check that the compiler produces executables we can run.  If not, either
3143# the compiler is broken, or we cross compile.
3144{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3145$as_echo_n "checking whether we are cross compiling... " >&6; }
3146{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3147$as_echo "$cross_compiling" >&6; }
3148
3149{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3150$as_echo_n "checking for suffix of executables... " >&6; }
3151if { { ac_try="$ac_link"
3152case "(($ac_try" in
3153  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3154  *) ac_try_echo=$ac_try;;
3155esac
3156eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3157$as_echo "$ac_try_echo"; } >&5
3158  (eval "$ac_link") 2>&5
3159  ac_status=$?
3160  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3161  test $ac_status = 0; }; then :
3162  # If both `conftest.exe' and `conftest' are `present' (well, observable)
3163# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3164# work properly (i.e., refer to `conftest.exe'), while it won't with
3165# `rm'.
3166for ac_file in conftest.exe conftest conftest.*; do
3167  test -f "$ac_file" || continue
3168  case $ac_file in
3169    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3170    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3171	  break;;
3172    * ) break;;
3173  esac
3174done
3175else
3176  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3177$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3178as_fn_error "cannot compute suffix of executables: cannot compile and link
3179See \`config.log' for more details." "$LINENO" 5; }
3180fi
3181rm -f conftest$ac_cv_exeext
3182{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3183$as_echo "$ac_cv_exeext" >&6; }
3184
3185rm -f conftest.$ac_ext
3186EXEEXT=$ac_cv_exeext
3187ac_exeext=$EXEEXT
3188{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3189$as_echo_n "checking for suffix of object files... " >&6; }
3190if test "${ac_cv_objext+set}" = set; then :
3191  $as_echo_n "(cached) " >&6
3192else
3193  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3194/* end confdefs.h.  */
3195
3196int
3197main ()
3198{
3199
3200  ;
3201  return 0;
3202}
3203_ACEOF
3204rm -f conftest.o conftest.obj
3205if { { ac_try="$ac_compile"
3206case "(($ac_try" in
3207  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3208  *) ac_try_echo=$ac_try;;
3209esac
3210eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3211$as_echo "$ac_try_echo"; } >&5
3212  (eval "$ac_compile") 2>&5
3213  ac_status=$?
3214  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3215  test $ac_status = 0; }; then :
3216  for ac_file in conftest.o conftest.obj conftest.*; do
3217  test -f "$ac_file" || continue;
3218  case $ac_file in
3219    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3220    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3221       break;;
3222  esac
3223done
3224else
3225  $as_echo "$as_me: failed program was:" >&5
3226sed 's/^/| /' conftest.$ac_ext >&5
3227
3228{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3229$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3230as_fn_error "cannot compute suffix of object files: cannot compile
3231See \`config.log' for more details." "$LINENO" 5; }
3232fi
3233rm -f conftest.$ac_cv_objext conftest.$ac_ext
3234fi
3235{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3236$as_echo "$ac_cv_objext" >&6; }
3237OBJEXT=$ac_cv_objext
3238ac_objext=$OBJEXT
3239{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3240$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3241if test "${ac_cv_c_compiler_gnu+set}" = set; then :
3242  $as_echo_n "(cached) " >&6
3243else
3244  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3245/* end confdefs.h.  */
3246
3247int
3248main ()
3249{
3250#ifndef __GNUC__
3251       choke me
3252#endif
3253
3254  ;
3255  return 0;
3256}
3257_ACEOF
3258if ac_fn_c_try_compile "$LINENO"; then :
3259  ac_compiler_gnu=yes
3260else
3261  ac_compiler_gnu=no
3262fi
3263rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3264ac_cv_c_compiler_gnu=$ac_compiler_gnu
3265
3266fi
3267{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3268$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3269if test $ac_compiler_gnu = yes; then
3270  GCC=yes
3271else
3272  GCC=
3273fi
3274ac_test_CFLAGS=${CFLAGS+set}
3275ac_save_CFLAGS=$CFLAGS
3276{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3277$as_echo_n "checking whether $CC accepts -g... " >&6; }
3278if test "${ac_cv_prog_cc_g+set}" = set; then :
3279  $as_echo_n "(cached) " >&6
3280else
3281  ac_save_c_werror_flag=$ac_c_werror_flag
3282   ac_c_werror_flag=yes
3283   ac_cv_prog_cc_g=no
3284   CFLAGS="-g"
3285   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3286/* end confdefs.h.  */
3287
3288int
3289main ()
3290{
3291
3292  ;
3293  return 0;
3294}
3295_ACEOF
3296if ac_fn_c_try_compile "$LINENO"; then :
3297  ac_cv_prog_cc_g=yes
3298else
3299  CFLAGS=""
3300      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3301/* end confdefs.h.  */
3302
3303int
3304main ()
3305{
3306
3307  ;
3308  return 0;
3309}
3310_ACEOF
3311if ac_fn_c_try_compile "$LINENO"; then :
3312
3313else
3314  ac_c_werror_flag=$ac_save_c_werror_flag
3315	 CFLAGS="-g"
3316	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3317/* end confdefs.h.  */
3318
3319int
3320main ()
3321{
3322
3323  ;
3324  return 0;
3325}
3326_ACEOF
3327if ac_fn_c_try_compile "$LINENO"; then :
3328  ac_cv_prog_cc_g=yes
3329fi
3330rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3331fi
3332rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3333fi
3334rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3335   ac_c_werror_flag=$ac_save_c_werror_flag
3336fi
3337{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3338$as_echo "$ac_cv_prog_cc_g" >&6; }
3339if test "$ac_test_CFLAGS" = set; then
3340  CFLAGS=$ac_save_CFLAGS
3341elif test $ac_cv_prog_cc_g = yes; then
3342  if test "$GCC" = yes; then
3343    CFLAGS="-g -O2"
3344  else
3345    CFLAGS="-g"
3346  fi
3347else
3348  if test "$GCC" = yes; then
3349    CFLAGS="-O2"
3350  else
3351    CFLAGS=
3352  fi
3353fi
3354{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3355$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3356if test "${ac_cv_prog_cc_c89+set}" = set; then :
3357  $as_echo_n "(cached) " >&6
3358else
3359  ac_cv_prog_cc_c89=no
3360ac_save_CC=$CC
3361cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3362/* end confdefs.h.  */
3363#include <stdarg.h>
3364#include <stdio.h>
3365#include <sys/types.h>
3366#include <sys/stat.h>
3367/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3368struct buf { int x; };
3369FILE * (*rcsopen) (struct buf *, struct stat *, int);
3370static char *e (p, i)
3371     char **p;
3372     int i;
3373{
3374  return p[i];
3375}
3376static char *f (char * (*g) (char **, int), char **p, ...)
3377{
3378  char *s;
3379  va_list v;
3380  va_start (v,p);
3381  s = g (p, va_arg (v,int));
3382  va_end (v);
3383  return s;
3384}
3385
3386/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3387   function prototypes and stuff, but not '\xHH' hex character constants.
3388   These don't provoke an error unfortunately, instead are silently treated
3389   as 'x'.  The following induces an error, until -std is added to get
3390   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3391   array size at least.  It's necessary to write '\x00'==0 to get something
3392   that's true only with -std.  */
3393int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3394
3395/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3396   inside strings and character constants.  */
3397#define FOO(x) 'x'
3398int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3399
3400int test (int i, double x);
3401struct s1 {int (*f) (int a);};
3402struct s2 {int (*f) (double a);};
3403int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3404int argc;
3405char **argv;
3406int
3407main ()
3408{
3409return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3410  ;
3411  return 0;
3412}
3413_ACEOF
3414for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3415	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3416do
3417  CC="$ac_save_CC $ac_arg"
3418  if ac_fn_c_try_compile "$LINENO"; then :
3419  ac_cv_prog_cc_c89=$ac_arg
3420fi
3421rm -f core conftest.err conftest.$ac_objext
3422  test "x$ac_cv_prog_cc_c89" != "xno" && break
3423done
3424rm -f conftest.$ac_ext
3425CC=$ac_save_CC
3426
3427fi
3428# AC_CACHE_VAL
3429case "x$ac_cv_prog_cc_c89" in
3430  x)
3431    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3432$as_echo "none needed" >&6; } ;;
3433  xno)
3434    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3435$as_echo "unsupported" >&6; } ;;
3436  *)
3437    CC="$CC $ac_cv_prog_cc_c89"
3438    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3439$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3440esac
3441if test "x$ac_cv_prog_cc_c89" != xno; then :
3442
3443fi
3444
3445ac_ext=c
3446ac_cpp='$CPP $CPPFLAGS'
3447ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3448ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3449ac_compiler_gnu=$ac_cv_c_compiler_gnu
3450
3451
3452ac_ext=c
3453ac_cpp='$CPP $CPPFLAGS'
3454ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3455ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3456ac_compiler_gnu=$ac_cv_c_compiler_gnu
3457{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3458$as_echo_n "checking how to run the C preprocessor... " >&6; }
3459# On Suns, sometimes $CPP names a directory.
3460if test -n "$CPP" && test -d "$CPP"; then
3461  CPP=
3462fi
3463if test -z "$CPP"; then
3464  if test "${ac_cv_prog_CPP+set}" = set; then :
3465  $as_echo_n "(cached) " >&6
3466else
3467      # Double quotes because CPP needs to be expanded
3468    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3469    do
3470      ac_preproc_ok=false
3471for ac_c_preproc_warn_flag in '' yes
3472do
3473  # Use a header file that comes with gcc, so configuring glibc
3474  # with a fresh cross-compiler works.
3475  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3476  # <limits.h> exists even on freestanding compilers.
3477  # On the NeXT, cc -E runs the code through the compiler's parser,
3478  # not just through cpp. "Syntax error" is here to catch this case.
3479  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3480/* end confdefs.h.  */
3481#ifdef __STDC__
3482# include <limits.h>
3483#else
3484# include <assert.h>
3485#endif
3486		     Syntax error
3487_ACEOF
3488if ac_fn_c_try_cpp "$LINENO"; then :
3489
3490else
3491  # Broken: fails on valid input.
3492continue
3493fi
3494rm -f conftest.err conftest.$ac_ext
3495
3496  # OK, works on sane cases.  Now check whether nonexistent headers
3497  # can be detected and how.
3498  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3499/* end confdefs.h.  */
3500#include <ac_nonexistent.h>
3501_ACEOF
3502if ac_fn_c_try_cpp "$LINENO"; then :
3503  # Broken: success on invalid input.
3504continue
3505else
3506  # Passes both tests.
3507ac_preproc_ok=:
3508break
3509fi
3510rm -f conftest.err conftest.$ac_ext
3511
3512done
3513# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3514rm -f conftest.err conftest.$ac_ext
3515if $ac_preproc_ok; then :
3516  break
3517fi
3518
3519    done
3520    ac_cv_prog_CPP=$CPP
3521
3522fi
3523  CPP=$ac_cv_prog_CPP
3524else
3525  ac_cv_prog_CPP=$CPP
3526fi
3527{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3528$as_echo "$CPP" >&6; }
3529ac_preproc_ok=false
3530for ac_c_preproc_warn_flag in '' yes
3531do
3532  # Use a header file that comes with gcc, so configuring glibc
3533  # with a fresh cross-compiler works.
3534  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3535  # <limits.h> exists even on freestanding compilers.
3536  # On the NeXT, cc -E runs the code through the compiler's parser,
3537  # not just through cpp. "Syntax error" is here to catch this case.
3538  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3539/* end confdefs.h.  */
3540#ifdef __STDC__
3541# include <limits.h>
3542#else
3543# include <assert.h>
3544#endif
3545		     Syntax error
3546_ACEOF
3547if ac_fn_c_try_cpp "$LINENO"; then :
3548
3549else
3550  # Broken: fails on valid input.
3551continue
3552fi
3553rm -f conftest.err conftest.$ac_ext
3554
3555  # OK, works on sane cases.  Now check whether nonexistent headers
3556  # can be detected and how.
3557  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3558/* end confdefs.h.  */
3559#include <ac_nonexistent.h>
3560_ACEOF
3561if ac_fn_c_try_cpp "$LINENO"; then :
3562  # Broken: success on invalid input.
3563continue
3564else
3565  # Passes both tests.
3566ac_preproc_ok=:
3567break
3568fi
3569rm -f conftest.err conftest.$ac_ext
3570
3571done
3572# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3573rm -f conftest.err conftest.$ac_ext
3574if $ac_preproc_ok; then :
3575
3576else
3577  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3578$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3579as_fn_error "C preprocessor \"$CPP\" fails sanity check
3580See \`config.log' for more details." "$LINENO" 5; }
3581fi
3582
3583ac_ext=c
3584ac_cpp='$CPP $CPPFLAGS'
3585ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3586ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3587ac_compiler_gnu=$ac_cv_c_compiler_gnu
3588
3589
3590{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
3591$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3592if test "${ac_cv_path_GREP+set}" = set; then :
3593  $as_echo_n "(cached) " >&6
3594else
3595  if test -z "$GREP"; then
3596  ac_path_GREP_found=false
3597  # Loop through the user's path and test for each of PROGNAME-LIST
3598  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3599for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3600do
3601  IFS=$as_save_IFS
3602  test -z "$as_dir" && as_dir=.
3603    for ac_prog in grep ggrep; do
3604    for ac_exec_ext in '' $ac_executable_extensions; do
3605      ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3606      { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3607# Check for GNU ac_path_GREP and select it if it is found.
3608  # Check for GNU $ac_path_GREP
3609case `"$ac_path_GREP" --version 2>&1` in
3610*GNU*)
3611  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3612*)
3613  ac_count=0
3614  $as_echo_n 0123456789 >"conftest.in"
3615  while :
3616  do
3617    cat "conftest.in" "conftest.in" >"conftest.tmp"
3618    mv "conftest.tmp" "conftest.in"
3619    cp "conftest.in" "conftest.nl"
3620    $as_echo 'GREP' >> "conftest.nl"
3621    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3622    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3623    as_fn_arith $ac_count + 1 && ac_count=$as_val
3624    if test $ac_count -gt ${ac_path_GREP_max-0}; then
3625      # Best one so far, save it but keep looking for a better one
3626      ac_cv_path_GREP="$ac_path_GREP"
3627      ac_path_GREP_max=$ac_count
3628    fi
3629    # 10*(2^10) chars as input seems more than enough
3630    test $ac_count -gt 10 && break
3631  done
3632  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3633esac
3634
3635      $ac_path_GREP_found && break 3
3636    done
3637  done
3638  done
3639IFS=$as_save_IFS
3640  if test -z "$ac_cv_path_GREP"; then
3641    as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3642  fi
3643else
3644  ac_cv_path_GREP=$GREP
3645fi
3646
3647fi
3648{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
3649$as_echo "$ac_cv_path_GREP" >&6; }
3650 GREP="$ac_cv_path_GREP"
3651
3652
3653{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
3654$as_echo_n "checking for egrep... " >&6; }
3655if test "${ac_cv_path_EGREP+set}" = set; then :
3656  $as_echo_n "(cached) " >&6
3657else
3658  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3659   then ac_cv_path_EGREP="$GREP -E"
3660   else
3661     if test -z "$EGREP"; then
3662  ac_path_EGREP_found=false
3663  # Loop through the user's path and test for each of PROGNAME-LIST
3664  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3665for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3666do
3667  IFS=$as_save_IFS
3668  test -z "$as_dir" && as_dir=.
3669    for ac_prog in egrep; do
3670    for ac_exec_ext in '' $ac_executable_extensions; do
3671      ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3672      { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3673# Check for GNU ac_path_EGREP and select it if it is found.
3674  # Check for GNU $ac_path_EGREP
3675case `"$ac_path_EGREP" --version 2>&1` in
3676*GNU*)
3677  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3678*)
3679  ac_count=0
3680  $as_echo_n 0123456789 >"conftest.in"
3681  while :
3682  do
3683    cat "conftest.in" "conftest.in" >"conftest.tmp"
3684    mv "conftest.tmp" "conftest.in"
3685    cp "conftest.in" "conftest.nl"
3686    $as_echo 'EGREP' >> "conftest.nl"
3687    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3688    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3689    as_fn_arith $ac_count + 1 && ac_count=$as_val
3690    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3691      # Best one so far, save it but keep looking for a better one
3692      ac_cv_path_EGREP="$ac_path_EGREP"
3693      ac_path_EGREP_max=$ac_count
3694    fi
3695    # 10*(2^10) chars as input seems more than enough
3696    test $ac_count -gt 10 && break
3697  done
3698  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3699esac
3700
3701      $ac_path_EGREP_found && break 3
3702    done
3703  done
3704  done
3705IFS=$as_save_IFS
3706  if test -z "$ac_cv_path_EGREP"; then
3707    as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3708  fi
3709else
3710  ac_cv_path_EGREP=$EGREP
3711fi
3712
3713   fi
3714fi
3715{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
3716$as_echo "$ac_cv_path_EGREP" >&6; }
3717 EGREP="$ac_cv_path_EGREP"
3718
3719
3720{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
3721$as_echo_n "checking for ANSI C header files... " >&6; }
3722if test "${ac_cv_header_stdc+set}" = set; then :
3723  $as_echo_n "(cached) " >&6
3724else
3725  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3726/* end confdefs.h.  */
3727#include <stdlib.h>
3728#include <stdarg.h>
3729#include <string.h>
3730#include <float.h>
3731
3732int
3733main ()
3734{
3735
3736  ;
3737  return 0;
3738}
3739_ACEOF
3740if ac_fn_c_try_compile "$LINENO"; then :
3741  ac_cv_header_stdc=yes
3742else
3743  ac_cv_header_stdc=no
3744fi
3745rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3746
3747if test $ac_cv_header_stdc = yes; then
3748  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3749  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3750/* end confdefs.h.  */
3751#include <string.h>
3752
3753_ACEOF
3754if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3755  $EGREP "memchr" >/dev/null 2>&1; then :
3756
3757else
3758  ac_cv_header_stdc=no
3759fi
3760rm -f conftest*
3761
3762fi
3763
3764if test $ac_cv_header_stdc = yes; then
3765  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3766  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3767/* end confdefs.h.  */
3768#include <stdlib.h>
3769
3770_ACEOF
3771if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3772  $EGREP "free" >/dev/null 2>&1; then :
3773
3774else
3775  ac_cv_header_stdc=no
3776fi
3777rm -f conftest*
3778
3779fi
3780
3781if test $ac_cv_header_stdc = yes; then
3782  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3783  if test "$cross_compiling" = yes; then :
3784  :
3785else
3786  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3787/* end confdefs.h.  */
3788#include <ctype.h>
3789#include <stdlib.h>
3790#if ((' ' & 0x0FF) == 0x020)
3791# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3792# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3793#else
3794# define ISLOWER(c) \
3795		   (('a' <= (c) && (c) <= 'i') \
3796		     || ('j' <= (c) && (c) <= 'r') \
3797		     || ('s' <= (c) && (c) <= 'z'))
3798# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3799#endif
3800
3801#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3802int
3803main ()
3804{
3805  int i;
3806  for (i = 0; i < 256; i++)
3807    if (XOR (islower (i), ISLOWER (i))
3808	|| toupper (i) != TOUPPER (i))
3809      return 2;
3810  return 0;
3811}
3812_ACEOF
3813if ac_fn_c_try_run "$LINENO"; then :
3814
3815else
3816  ac_cv_header_stdc=no
3817fi
3818rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
3819  conftest.$ac_objext conftest.beam conftest.$ac_ext
3820fi
3821
3822fi
3823fi
3824{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
3825$as_echo "$ac_cv_header_stdc" >&6; }
3826if test $ac_cv_header_stdc = yes; then
3827
3828$as_echo "#define STDC_HEADERS 1" >>confdefs.h
3829
3830fi
3831
3832# On IRIX 5.3, sys/types and inttypes.h are conflicting.
3833for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3834		  inttypes.h stdint.h unistd.h
3835do :
3836  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
3837ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
3838"
3839eval as_val=\$$as_ac_Header
3840   if test "x$as_val" = x""yes; then :
3841  cat >>confdefs.h <<_ACEOF
3842#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
3843_ACEOF
3844
3845fi
3846
3847done
3848
3849
3850
3851  ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
3852if test "x$ac_cv_header_minix_config_h" = x""yes; then :
3853  MINIX=yes
3854else
3855  MINIX=
3856fi
3857
3858
3859  if test "$MINIX" = yes; then
3860
3861$as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
3862
3863
3864$as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
3865
3866
3867$as_echo "#define _MINIX 1" >>confdefs.h
3868
3869  fi
3870
3871
3872  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
3873$as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
3874if test "${ac_cv_safe_to_define___extensions__+set}" = set; then :
3875  $as_echo_n "(cached) " >&6
3876else
3877  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3878/* end confdefs.h.  */
3879
3880#	  define __EXTENSIONS__ 1
3881	  $ac_includes_default
3882int
3883main ()
3884{
3885
3886  ;
3887  return 0;
3888}
3889_ACEOF
3890if ac_fn_c_try_compile "$LINENO"; then :
3891  ac_cv_safe_to_define___extensions__=yes
3892else
3893  ac_cv_safe_to_define___extensions__=no
3894fi
3895rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3896fi
3897{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
3898$as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
3899  test $ac_cv_safe_to_define___extensions__ = yes &&
3900    $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
3901
3902  $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
3903
3904  $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
3905
3906  $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
3907
3908  $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
3909
3910
3911
3912# Do not delete or change the following two lines.  For why, see
3913# http://gcc.gnu.org/ml/libstdc++/2003-07/msg00451.html
3914ac_aux_dir=
3915for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
3916  for ac_t in install-sh install.sh shtool; do
3917    if test -f "$ac_dir/$ac_t"; then
3918      ac_aux_dir=$ac_dir
3919      ac_install_sh="$ac_aux_dir/$ac_t -c"
3920      break 2
3921    fi
3922  done
3923done
3924if test -z "$ac_aux_dir"; then
3925  as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
3926fi
3927
3928# These three variables are undocumented and unsupported,
3929# and are intended to be withdrawn in a future Autoconf release.
3930# They can cause serious problems if a builder's source tree is in a directory
3931# whose full name contains unusual characters.
3932ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
3933ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
3934ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
3935
3936
3937# Make sure we can run config.sub.
3938$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3939  as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
3940
3941{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3942$as_echo_n "checking build system type... " >&6; }
3943if test "${ac_cv_build+set}" = set; then :
3944  $as_echo_n "(cached) " >&6
3945else
3946  ac_build_alias=$build_alias
3947test "x$ac_build_alias" = x &&
3948  ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3949test "x$ac_build_alias" = x &&
3950  as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
3951ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3952  as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
3953
3954fi
3955{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3956$as_echo "$ac_cv_build" >&6; }
3957case $ac_cv_build in
3958*-*-*) ;;
3959*) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
3960esac
3961build=$ac_cv_build
3962ac_save_IFS=$IFS; IFS='-'
3963set x $ac_cv_build
3964shift
3965build_cpu=$1
3966build_vendor=$2
3967shift; shift
3968# Remember, the first character of IFS is used to create $*,
3969# except with old shells:
3970build_os=$*
3971IFS=$ac_save_IFS
3972case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3973
3974
3975{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3976$as_echo_n "checking host system type... " >&6; }
3977if test "${ac_cv_host+set}" = set; then :
3978  $as_echo_n "(cached) " >&6
3979else
3980  if test "x$host_alias" = x; then
3981  ac_cv_host=$ac_cv_build
3982else
3983  ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3984    as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3985fi
3986
3987fi
3988{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3989$as_echo "$ac_cv_host" >&6; }
3990case $ac_cv_host in
3991*-*-*) ;;
3992*) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
3993esac
3994host=$ac_cv_host
3995ac_save_IFS=$IFS; IFS='-'
3996set x $ac_cv_host
3997shift
3998host_cpu=$1
3999host_vendor=$2
4000shift; shift
4001# Remember, the first character of IFS is used to create $*,
4002# except with old shells:
4003host_os=$*
4004IFS=$ac_save_IFS
4005case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4006
4007
4008{ $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
4009$as_echo_n "checking target system type... " >&6; }
4010if test "${ac_cv_target+set}" = set; then :
4011  $as_echo_n "(cached) " >&6
4012else
4013  if test "x$target_alias" = x; then
4014  ac_cv_target=$ac_cv_host
4015else
4016  ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
4017    as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
4018fi
4019
4020fi
4021{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
4022$as_echo "$ac_cv_target" >&6; }
4023case $ac_cv_target in
4024*-*-*) ;;
4025*) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
4026esac
4027target=$ac_cv_target
4028ac_save_IFS=$IFS; IFS='-'
4029set x $ac_cv_target
4030shift
4031target_cpu=$1
4032target_vendor=$2
4033shift; shift
4034# Remember, the first character of IFS is used to create $*,
4035# except with old shells:
4036target_os=$*
4037IFS=$ac_save_IFS
4038case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
4039
4040
4041# The aliases save the names the user supplied, while $host etc.
4042# will get canonicalized.
4043test -n "$target_alias" &&
4044  test "$program_prefix$program_suffix$program_transform_name" = \
4045    NONENONEs,x,x, &&
4046  program_prefix=${target_alias}-
4047
4048target_alias=${target_alias-$host_alias}
4049
4050 case ${build_alias} in
4051  "") build_noncanonical=${build} ;;
4052  *) build_noncanonical=${build_alias} ;;
4053esac
4054
4055 case ${host_alias} in
4056  "") host_noncanonical=${build_noncanonical} ;;
4057  *) host_noncanonical=${host_alias} ;;
4058esac
4059
4060 case ${target_alias} in
4061  "") target_noncanonical=${host_noncanonical} ;;
4062  *) target_noncanonical=${target_alias} ;;
4063esac
4064
4065
4066
4067
4068
4069  LIBSTDCXX_RAW_CXX_CXXFLAGS="\
4070    -I\$(top_builddir)/../libstdc++-v3/include \
4071    -I\$(top_builddir)/../libstdc++-v3/include/\$(target_noncanonical) \
4072    -I\$(top_srcdir)/../libstdc++-v3/libsupc++"
4073  LIBSTDCXX_RAW_CXX_LDFLAGS="\
4074    \$(top_builddir)/../libstdc++-v3/src/libstdc++.la"
4075
4076
4077
4078
4079am__api_version='1.11'
4080
4081# Find a good install program.  We prefer a C program (faster),
4082# so one script is as good as another.  But avoid the broken or
4083# incompatible versions:
4084# SysV /etc/install, /usr/sbin/install
4085# SunOS /usr/etc/install
4086# IRIX /sbin/install
4087# AIX /bin/install
4088# AmigaOS /C/install, which installs bootblocks on floppy discs
4089# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4090# AFS /usr/afsws/bin/install, which mishandles nonexistent args
4091# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4092# OS/2's system install, which has a completely different semantic
4093# ./install, which can be erroneously created by make from ./install.sh.
4094# Reject install programs that cannot install multiple files.
4095{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
4096$as_echo_n "checking for a BSD-compatible install... " >&6; }
4097if test -z "$INSTALL"; then
4098if test "${ac_cv_path_install+set}" = set; then :
4099  $as_echo_n "(cached) " >&6
4100else
4101  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4102for as_dir in $PATH
4103do
4104  IFS=$as_save_IFS
4105  test -z "$as_dir" && as_dir=.
4106    # Account for people who put trailing slashes in PATH elements.
4107case $as_dir/ in #((
4108  ./ | .// | /[cC]/* | \
4109  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4110  ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
4111  /usr/ucb/* ) ;;
4112  *)
4113    # OSF1 and SCO ODT 3.0 have their own names for install.
4114    # Don't use installbsd from OSF since it installs stuff as root
4115    # by default.
4116    for ac_prog in ginstall scoinst install; do
4117      for ac_exec_ext in '' $ac_executable_extensions; do
4118	if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
4119	  if test $ac_prog = install &&
4120	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4121	    # AIX install.  It has an incompatible calling convention.
4122	    :
4123	  elif test $ac_prog = install &&
4124	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4125	    # program-specific install script used by HP pwplus--don't use.
4126	    :
4127	  else
4128	    rm -rf conftest.one conftest.two conftest.dir
4129	    echo one > conftest.one
4130	    echo two > conftest.two
4131	    mkdir conftest.dir
4132	    if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
4133	      test -s conftest.one && test -s conftest.two &&
4134	      test -s conftest.dir/conftest.one &&
4135	      test -s conftest.dir/conftest.two
4136	    then
4137	      ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4138	      break 3
4139	    fi
4140	  fi
4141	fi
4142      done
4143    done
4144    ;;
4145esac
4146
4147  done
4148IFS=$as_save_IFS
4149
4150rm -rf conftest.one conftest.two conftest.dir
4151
4152fi
4153  if test "${ac_cv_path_install+set}" = set; then
4154    INSTALL=$ac_cv_path_install
4155  else
4156    # As a last resort, use the slow shell script.  Don't cache a
4157    # value for INSTALL within a source directory, because that will
4158    # break other packages using the cache if that directory is
4159    # removed, or if the value is a relative name.
4160    INSTALL=$ac_install_sh
4161  fi
4162fi
4163{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
4164$as_echo "$INSTALL" >&6; }
4165
4166# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4167# It thinks the first close brace ends the variable substitution.
4168test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4169
4170test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4171
4172test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4173
4174{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
4175$as_echo_n "checking whether build environment is sane... " >&6; }
4176# Just in case
4177sleep 1
4178echo timestamp > conftest.file
4179# Reject unsafe characters in $srcdir or the absolute working directory
4180# name.  Accept space and tab only in the latter.
4181am_lf='
4182'
4183case `pwd` in
4184  *[\\\"\#\$\&\'\`$am_lf]*)
4185    as_fn_error "unsafe absolute working directory name" "$LINENO" 5;;
4186esac
4187case $srcdir in
4188  *[\\\"\#\$\&\'\`$am_lf\ \	]*)
4189    as_fn_error "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
4190esac
4191
4192# Do `set' in a subshell so we don't clobber the current shell's
4193# arguments.  Must try -L first in case configure is actually a
4194# symlink; some systems play weird games with the mod time of symlinks
4195# (eg FreeBSD returns the mod time of the symlink's containing
4196# directory).
4197if (
4198   set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
4199   if test "$*" = "X"; then
4200      # -L didn't work.
4201      set X `ls -t "$srcdir/configure" conftest.file`
4202   fi
4203   rm -f conftest.file
4204   if test "$*" != "X $srcdir/configure conftest.file" \
4205      && test "$*" != "X conftest.file $srcdir/configure"; then
4206
4207      # If neither matched, then we have a broken ls.  This can happen
4208      # if, for instance, CONFIG_SHELL is bash and it inherits a
4209      # broken ls alias from the environment.  This has actually
4210      # happened.  Such a system could not be considered "sane".
4211      as_fn_error "ls -t appears to fail.  Make sure there is not a broken
4212alias in your environment" "$LINENO" 5
4213   fi
4214
4215   test "$2" = conftest.file
4216   )
4217then
4218   # Ok.
4219   :
4220else
4221   as_fn_error "newly created file is older than distributed files!
4222Check your system clock" "$LINENO" 5
4223fi
4224{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4225$as_echo "yes" >&6; }
4226test "$program_prefix" != NONE &&
4227  program_transform_name="s&^&$program_prefix&;$program_transform_name"
4228# Use a double $ so make ignores it.
4229test "$program_suffix" != NONE &&
4230  program_transform_name="s&\$&$program_suffix&;$program_transform_name"
4231# Double any \ or $.
4232# By default was `s,x,x', remove it if useless.
4233ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
4234program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
4235
4236# expand $ac_aux_dir to an absolute path
4237am_aux_dir=`cd $ac_aux_dir && pwd`
4238
4239if test x"${MISSING+set}" != xset; then
4240  case $am_aux_dir in
4241  *\ * | *\	*)
4242    MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
4243  *)
4244    MISSING="\${SHELL} $am_aux_dir/missing" ;;
4245  esac
4246fi
4247# Use eval to expand $SHELL
4248if eval "$MISSING --run true"; then
4249  am_missing_run="$MISSING --run "
4250else
4251  am_missing_run=
4252  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
4253$as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
4254fi
4255
4256if test x"${install_sh}" != xset; then
4257  case $am_aux_dir in
4258  *\ * | *\	*)
4259    install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
4260  *)
4261    install_sh="\${SHELL} $am_aux_dir/install-sh"
4262  esac
4263fi
4264
4265# Installed binaries are usually stripped using `strip' when the user
4266# run `make install-strip'.  However `strip' might not be the right
4267# tool to use in cross-compilation environments, therefore Automake
4268# will honor the `STRIP' environment variable to overrule this program.
4269if test "$cross_compiling" != no; then
4270  if test -n "$ac_tool_prefix"; then
4271  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
4272set dummy ${ac_tool_prefix}strip; ac_word=$2
4273{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4274$as_echo_n "checking for $ac_word... " >&6; }
4275if test "${ac_cv_prog_STRIP+set}" = set; then :
4276  $as_echo_n "(cached) " >&6
4277else
4278  if test -n "$STRIP"; then
4279  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4280else
4281as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4282for as_dir in $PATH
4283do
4284  IFS=$as_save_IFS
4285  test -z "$as_dir" && as_dir=.
4286    for ac_exec_ext in '' $ac_executable_extensions; do
4287  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4288    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
4289    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4290    break 2
4291  fi
4292done
4293  done
4294IFS=$as_save_IFS
4295
4296fi
4297fi
4298STRIP=$ac_cv_prog_STRIP
4299if test -n "$STRIP"; then
4300  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
4301$as_echo "$STRIP" >&6; }
4302else
4303  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4304$as_echo "no" >&6; }
4305fi
4306
4307
4308fi
4309if test -z "$ac_cv_prog_STRIP"; then
4310  ac_ct_STRIP=$STRIP
4311  # Extract the first word of "strip", so it can be a program name with args.
4312set dummy strip; ac_word=$2
4313{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4314$as_echo_n "checking for $ac_word... " >&6; }
4315if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
4316  $as_echo_n "(cached) " >&6
4317else
4318  if test -n "$ac_ct_STRIP"; then
4319  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
4320else
4321as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4322for as_dir in $PATH
4323do
4324  IFS=$as_save_IFS
4325  test -z "$as_dir" && as_dir=.
4326    for ac_exec_ext in '' $ac_executable_extensions; do
4327  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4328    ac_cv_prog_ac_ct_STRIP="strip"
4329    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4330    break 2
4331  fi
4332done
4333  done
4334IFS=$as_save_IFS
4335
4336fi
4337fi
4338ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
4339if test -n "$ac_ct_STRIP"; then
4340  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
4341$as_echo "$ac_ct_STRIP" >&6; }
4342else
4343  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4344$as_echo "no" >&6; }
4345fi
4346
4347  if test "x$ac_ct_STRIP" = x; then
4348    STRIP=":"
4349  else
4350    case $cross_compiling:$ac_tool_warned in
4351yes:)
4352{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4353$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4354ac_tool_warned=yes ;;
4355esac
4356    STRIP=$ac_ct_STRIP
4357  fi
4358else
4359  STRIP="$ac_cv_prog_STRIP"
4360fi
4361
4362fi
4363INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
4364
4365{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
4366$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
4367if test -z "$MKDIR_P"; then
4368  if test "${ac_cv_path_mkdir+set}" = set; then :
4369  $as_echo_n "(cached) " >&6
4370else
4371  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4372for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
4373do
4374  IFS=$as_save_IFS
4375  test -z "$as_dir" && as_dir=.
4376    for ac_prog in mkdir gmkdir; do
4377	 for ac_exec_ext in '' $ac_executable_extensions; do
4378	   { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
4379	   case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
4380	     'mkdir (GNU coreutils) '* | \
4381	     'mkdir (coreutils) '* | \
4382	     'mkdir (fileutils) '4.1*)
4383	       ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
4384	       break 3;;
4385	   esac
4386	 done
4387       done
4388  done
4389IFS=$as_save_IFS
4390
4391fi
4392
4393  if test "${ac_cv_path_mkdir+set}" = set; then
4394    MKDIR_P="$ac_cv_path_mkdir -p"
4395  else
4396    # As a last resort, use the slow shell script.  Don't cache a
4397    # value for MKDIR_P within a source directory, because that will
4398    # break other packages using the cache if that directory is
4399    # removed, or if the value is a relative name.
4400    test -d ./--version && rmdir ./--version
4401    MKDIR_P="$ac_install_sh -d"
4402  fi
4403fi
4404{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
4405$as_echo "$MKDIR_P" >&6; }
4406
4407mkdir_p="$MKDIR_P"
4408case $mkdir_p in
4409  [\\/$]* | ?:[\\/]*) ;;
4410  */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
4411esac
4412
4413for ac_prog in gawk mawk nawk awk
4414do
4415  # Extract the first word of "$ac_prog", so it can be a program name with args.
4416set dummy $ac_prog; ac_word=$2
4417{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4418$as_echo_n "checking for $ac_word... " >&6; }
4419if test "${ac_cv_prog_AWK+set}" = set; then :
4420  $as_echo_n "(cached) " >&6
4421else
4422  if test -n "$AWK"; then
4423  ac_cv_prog_AWK="$AWK" # Let the user override the test.
4424else
4425as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4426for as_dir in $PATH
4427do
4428  IFS=$as_save_IFS
4429  test -z "$as_dir" && as_dir=.
4430    for ac_exec_ext in '' $ac_executable_extensions; do
4431  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4432    ac_cv_prog_AWK="$ac_prog"
4433    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4434    break 2
4435  fi
4436done
4437  done
4438IFS=$as_save_IFS
4439
4440fi
4441fi
4442AWK=$ac_cv_prog_AWK
4443if test -n "$AWK"; then
4444  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
4445$as_echo "$AWK" >&6; }
4446else
4447  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4448$as_echo "no" >&6; }
4449fi
4450
4451
4452  test -n "$AWK" && break
4453done
4454
4455{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4456$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
4457set x ${MAKE-make}
4458ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
4459if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
4460  $as_echo_n "(cached) " >&6
4461else
4462  cat >conftest.make <<\_ACEOF
4463SHELL = /bin/sh
4464all:
4465	@echo '@@@%%%=$(MAKE)=@@@%%%'
4466_ACEOF
4467# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
4468case `${MAKE-make} -f conftest.make 2>/dev/null` in
4469  *@@@%%%=?*=@@@%%%*)
4470    eval ac_cv_prog_make_${ac_make}_set=yes;;
4471  *)
4472    eval ac_cv_prog_make_${ac_make}_set=no;;
4473esac
4474rm -f conftest.make
4475fi
4476if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
4477  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4478$as_echo "yes" >&6; }
4479  SET_MAKE=
4480else
4481  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4482$as_echo "no" >&6; }
4483  SET_MAKE="MAKE=${MAKE-make}"
4484fi
4485
4486rm -rf .tst 2>/dev/null
4487mkdir .tst 2>/dev/null
4488if test -d .tst; then
4489  am__leading_dot=.
4490else
4491  am__leading_dot=_
4492fi
4493rmdir .tst 2>/dev/null
4494
4495DEPDIR="${am__leading_dot}deps"
4496
4497ac_config_commands="$ac_config_commands depfiles"
4498
4499
4500am_make=${MAKE-make}
4501cat > confinc << 'END'
4502am__doit:
4503	@echo this is the am__doit target
4504.PHONY: am__doit
4505END
4506# If we don't find an include directive, just comment out the code.
4507{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
4508$as_echo_n "checking for style of include used by $am_make... " >&6; }
4509am__include="#"
4510am__quote=
4511_am_result=none
4512# First try GNU make style include.
4513echo "include confinc" > confmf
4514# Ignore all kinds of additional output from `make'.
4515case `$am_make -s -f confmf 2> /dev/null` in #(
4516*the\ am__doit\ target*)
4517  am__include=include
4518  am__quote=
4519  _am_result=GNU
4520  ;;
4521esac
4522# Now try BSD make style include.
4523if test "$am__include" = "#"; then
4524   echo '.include "confinc"' > confmf
4525   case `$am_make -s -f confmf 2> /dev/null` in #(
4526   *the\ am__doit\ target*)
4527     am__include=.include
4528     am__quote="\""
4529     _am_result=BSD
4530     ;;
4531   esac
4532fi
4533
4534
4535{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
4536$as_echo "$_am_result" >&6; }
4537rm -f confinc confmf
4538
4539# Check whether --enable-dependency-tracking was given.
4540if test "${enable_dependency_tracking+set}" = set; then :
4541  enableval=$enable_dependency_tracking;
4542fi
4543
4544if test "x$enable_dependency_tracking" != xno; then
4545  am_depcomp="$ac_aux_dir/depcomp"
4546  AMDEPBACKSLASH='\'
4547  am__nodep='_no'
4548fi
4549 if test "x$enable_dependency_tracking" != xno; then
4550  AMDEP_TRUE=
4551  AMDEP_FALSE='#'
4552else
4553  AMDEP_TRUE='#'
4554  AMDEP_FALSE=
4555fi
4556
4557
4558if test "`cd $srcdir && pwd`" != "`pwd`"; then
4559  # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
4560  # is not polluted with repeated "-I."
4561  am__isrc=' -I$(srcdir)'
4562  # test to see if srcdir already configured
4563  if test -f $srcdir/config.status; then
4564    as_fn_error "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
4565  fi
4566fi
4567
4568# test whether we have cygpath
4569if test -z "$CYGPATH_W"; then
4570  if (cygpath --version) >/dev/null 2>/dev/null; then
4571    CYGPATH_W='cygpath -w'
4572  else
4573    CYGPATH_W=echo
4574  fi
4575fi
4576
4577
4578# Define the identity of the package.
4579 PACKAGE='package-unused'
4580 VERSION='version-unused'
4581
4582
4583cat >>confdefs.h <<_ACEOF
4584#define PACKAGE "$PACKAGE"
4585_ACEOF
4586
4587
4588cat >>confdefs.h <<_ACEOF
4589#define VERSION "$VERSION"
4590_ACEOF
4591
4592# Some tools Automake needs.
4593
4594ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
4595
4596
4597AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
4598
4599
4600AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
4601
4602
4603AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
4604
4605
4606MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
4607
4608# We need awk for the "check" target.  The system "awk" is bad on
4609# some platforms.
4610# Always define AMTAR for backward compatibility.  Yes, it's still used
4611# in the wild :-(  We should find a proper way to deprecate it ...
4612AMTAR='$${TAR-tar}'
4613
4614am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
4615
4616
4617
4618
4619depcc="$CC"   am_compiler_list=
4620
4621{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4622$as_echo_n "checking dependency style of $depcc... " >&6; }
4623if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
4624  $as_echo_n "(cached) " >&6
4625else
4626  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4627  # We make a subdir and do the tests there.  Otherwise we can end up
4628  # making bogus files that we don't know about and never remove.  For
4629  # instance it was reported that on HP-UX the gcc test will end up
4630  # making a dummy file named `D' -- because `-MD' means `put the output
4631  # in D'.
4632  rm -rf conftest.dir
4633  mkdir conftest.dir
4634  # Copy depcomp to subdir because otherwise we won't find it if we're
4635  # using a relative directory.
4636  cp "$am_depcomp" conftest.dir
4637  cd conftest.dir
4638  # We will build objects and dependencies in a subdirectory because
4639  # it helps to detect inapplicable dependency modes.  For instance
4640  # both Tru64's cc and ICC support -MD to output dependencies as a
4641  # side effect of compilation, but ICC will put the dependencies in
4642  # the current directory while Tru64 will put them in the object
4643  # directory.
4644  mkdir sub
4645
4646  am_cv_CC_dependencies_compiler_type=none
4647  if test "$am_compiler_list" = ""; then
4648     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4649  fi
4650  am__universal=false
4651  case " $depcc " in #(
4652     *\ -arch\ *\ -arch\ *) am__universal=true ;;
4653     esac
4654
4655  for depmode in $am_compiler_list; do
4656    # Setup a source with many dependencies, because some compilers
4657    # like to wrap large dependency lists on column 80 (with \), and
4658    # we should not choose a depcomp mode which is confused by this.
4659    #
4660    # We need to recreate these files for each test, as the compiler may
4661    # overwrite some of them when testing with obscure command lines.
4662    # This happens at least with the AIX C compiler.
4663    : > sub/conftest.c
4664    for i in 1 2 3 4 5 6; do
4665      echo '#include "conftst'$i'.h"' >> sub/conftest.c
4666      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4667      # Solaris 8's {/usr,}/bin/sh.
4668      touch sub/conftst$i.h
4669    done
4670    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4671
4672    # We check with `-c' and `-o' for the sake of the "dashmstdout"
4673    # mode.  It turns out that the SunPro C++ compiler does not properly
4674    # handle `-M -o', and we need to detect this.  Also, some Intel
4675    # versions had trouble with output in subdirs
4676    am__obj=sub/conftest.${OBJEXT-o}
4677    am__minus_obj="-o $am__obj"
4678    case $depmode in
4679    gcc)
4680      # This depmode causes a compiler race in universal mode.
4681      test "$am__universal" = false || continue
4682      ;;
4683    nosideeffect)
4684      # after this tag, mechanisms are not by side-effect, so they'll
4685      # only be used when explicitly requested
4686      if test "x$enable_dependency_tracking" = xyes; then
4687	continue
4688      else
4689	break
4690      fi
4691      ;;
4692    msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4693      # This compiler won't grok `-c -o', but also, the minuso test has
4694      # not run yet.  These depmodes are late enough in the game, and
4695      # so weak that their functioning should not be impacted.
4696      am__obj=conftest.${OBJEXT-o}
4697      am__minus_obj=
4698      ;;
4699    none) break ;;
4700    esac
4701    if depmode=$depmode \
4702       source=sub/conftest.c object=$am__obj \
4703       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4704       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4705         >/dev/null 2>conftest.err &&
4706       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4707       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4708       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4709       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4710      # icc doesn't choke on unknown options, it will just issue warnings
4711      # or remarks (even with -Werror).  So we grep stderr for any message
4712      # that says an option was ignored or not supported.
4713      # When given -MP, icc 7.0 and 7.1 complain thusly:
4714      #   icc: Command line warning: ignoring option '-M'; no argument required
4715      # The diagnosis changed in icc 8.0:
4716      #   icc: Command line remark: option '-MP' not supported
4717      if (grep 'ignoring option' conftest.err ||
4718          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4719        am_cv_CC_dependencies_compiler_type=$depmode
4720        break
4721      fi
4722    fi
4723  done
4724
4725  cd ..
4726  rm -rf conftest.dir
4727else
4728  am_cv_CC_dependencies_compiler_type=none
4729fi
4730
4731fi
4732{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4733$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4734CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4735
4736 if
4737  test "x$enable_dependency_tracking" != xno \
4738  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4739  am__fastdepCC_TRUE=
4740  am__fastdepCC_FALSE='#'
4741else
4742  am__fastdepCC_TRUE='#'
4743  am__fastdepCC_FALSE=
4744fi
4745
4746
4747
4748
4749{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
4750$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
4751    # Check whether --enable-maintainer-mode was given.
4752if test "${enable_maintainer_mode+set}" = set; then :
4753  enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
4754else
4755  USE_MAINTAINER_MODE=no
4756fi
4757
4758  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
4759$as_echo "$USE_MAINTAINER_MODE" >&6; }
4760   if test $USE_MAINTAINER_MODE = yes; then
4761  MAINTAINER_MODE_TRUE=
4762  MAINTAINER_MODE_FALSE='#'
4763else
4764  MAINTAINER_MODE_TRUE='#'
4765  MAINTAINER_MODE_FALSE=
4766fi
4767
4768  MAINT=$MAINTAINER_MODE_TRUE
4769
4770
4771
4772# Calculate toolexeclibdir
4773# Also toolexecdir, though it's only used in toolexeclibdir
4774case ${version_specific_libs} in
4775  yes)
4776    # Need the gcc compiler version to know where to install libraries
4777    # and header files if --enable-version-specific-runtime-libs option
4778    # is selected.
4779    toolexecdir='$(libdir)/gcc/$(target_alias)'
4780    toolexeclibdir='$(toolexecdir)/$(gcc_version)$(MULTISUBDIR)'
4781    ;;
4782  no)
4783    if test -n "$with_cross_host" &&
4784       test x"$with_cross_host" != x"no"; then
4785      # Install a library built with a cross compiler in tooldir, not libdir.
4786      toolexecdir='$(exec_prefix)/$(target_alias)'
4787      toolexeclibdir='$(toolexecdir)/lib'
4788    else
4789      toolexecdir='$(libdir)/gcc-lib/$(target_alias)'
4790      toolexeclibdir='$(libdir)'
4791    fi
4792    multi_os_directory=`$CC -print-multi-os-directory`
4793    case $multi_os_directory in
4794      .) ;; # Avoid trailing /.
4795      *) toolexeclibdir=$toolexeclibdir/$multi_os_directory ;;
4796    esac
4797    ;;
4798esac
4799
4800
4801
4802# Checks for programs.
4803ac_ext=c
4804ac_cpp='$CPP $CPPFLAGS'
4805ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4806ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4807ac_compiler_gnu=$ac_cv_c_compiler_gnu
4808if test -n "$ac_tool_prefix"; then
4809  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4810set dummy ${ac_tool_prefix}gcc; ac_word=$2
4811{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4812$as_echo_n "checking for $ac_word... " >&6; }
4813if test "${ac_cv_prog_CC+set}" = set; then :
4814  $as_echo_n "(cached) " >&6
4815else
4816  if test -n "$CC"; then
4817  ac_cv_prog_CC="$CC" # Let the user override the test.
4818else
4819as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4820for as_dir in $PATH
4821do
4822  IFS=$as_save_IFS
4823  test -z "$as_dir" && as_dir=.
4824    for ac_exec_ext in '' $ac_executable_extensions; do
4825  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4826    ac_cv_prog_CC="${ac_tool_prefix}gcc"
4827    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4828    break 2
4829  fi
4830done
4831  done
4832IFS=$as_save_IFS
4833
4834fi
4835fi
4836CC=$ac_cv_prog_CC
4837if test -n "$CC"; then
4838  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4839$as_echo "$CC" >&6; }
4840else
4841  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4842$as_echo "no" >&6; }
4843fi
4844
4845
4846fi
4847if test -z "$ac_cv_prog_CC"; then
4848  ac_ct_CC=$CC
4849  # Extract the first word of "gcc", so it can be a program name with args.
4850set dummy gcc; ac_word=$2
4851{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4852$as_echo_n "checking for $ac_word... " >&6; }
4853if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
4854  $as_echo_n "(cached) " >&6
4855else
4856  if test -n "$ac_ct_CC"; then
4857  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4858else
4859as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4860for as_dir in $PATH
4861do
4862  IFS=$as_save_IFS
4863  test -z "$as_dir" && as_dir=.
4864    for ac_exec_ext in '' $ac_executable_extensions; do
4865  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4866    ac_cv_prog_ac_ct_CC="gcc"
4867    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4868    break 2
4869  fi
4870done
4871  done
4872IFS=$as_save_IFS
4873
4874fi
4875fi
4876ac_ct_CC=$ac_cv_prog_ac_ct_CC
4877if test -n "$ac_ct_CC"; then
4878  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4879$as_echo "$ac_ct_CC" >&6; }
4880else
4881  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4882$as_echo "no" >&6; }
4883fi
4884
4885  if test "x$ac_ct_CC" = x; then
4886    CC=""
4887  else
4888    case $cross_compiling:$ac_tool_warned in
4889yes:)
4890{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4891$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4892ac_tool_warned=yes ;;
4893esac
4894    CC=$ac_ct_CC
4895  fi
4896else
4897  CC="$ac_cv_prog_CC"
4898fi
4899
4900if test -z "$CC"; then
4901          if test -n "$ac_tool_prefix"; then
4902    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4903set dummy ${ac_tool_prefix}cc; ac_word=$2
4904{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4905$as_echo_n "checking for $ac_word... " >&6; }
4906if test "${ac_cv_prog_CC+set}" = set; then :
4907  $as_echo_n "(cached) " >&6
4908else
4909  if test -n "$CC"; then
4910  ac_cv_prog_CC="$CC" # Let the user override the test.
4911else
4912as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4913for as_dir in $PATH
4914do
4915  IFS=$as_save_IFS
4916  test -z "$as_dir" && as_dir=.
4917    for ac_exec_ext in '' $ac_executable_extensions; do
4918  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4919    ac_cv_prog_CC="${ac_tool_prefix}cc"
4920    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4921    break 2
4922  fi
4923done
4924  done
4925IFS=$as_save_IFS
4926
4927fi
4928fi
4929CC=$ac_cv_prog_CC
4930if test -n "$CC"; then
4931  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4932$as_echo "$CC" >&6; }
4933else
4934  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4935$as_echo "no" >&6; }
4936fi
4937
4938
4939  fi
4940fi
4941if test -z "$CC"; then
4942  # Extract the first word of "cc", so it can be a program name with args.
4943set dummy cc; ac_word=$2
4944{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4945$as_echo_n "checking for $ac_word... " >&6; }
4946if test "${ac_cv_prog_CC+set}" = set; then :
4947  $as_echo_n "(cached) " >&6
4948else
4949  if test -n "$CC"; then
4950  ac_cv_prog_CC="$CC" # Let the user override the test.
4951else
4952  ac_prog_rejected=no
4953as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4954for as_dir in $PATH
4955do
4956  IFS=$as_save_IFS
4957  test -z "$as_dir" && as_dir=.
4958    for ac_exec_ext in '' $ac_executable_extensions; do
4959  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4960    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4961       ac_prog_rejected=yes
4962       continue
4963     fi
4964    ac_cv_prog_CC="cc"
4965    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4966    break 2
4967  fi
4968done
4969  done
4970IFS=$as_save_IFS
4971
4972if test $ac_prog_rejected = yes; then
4973  # We found a bogon in the path, so make sure we never use it.
4974  set dummy $ac_cv_prog_CC
4975  shift
4976  if test $# != 0; then
4977    # We chose a different compiler from the bogus one.
4978    # However, it has the same basename, so the bogon will be chosen
4979    # first if we set CC to just the basename; use the full file name.
4980    shift
4981    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4982  fi
4983fi
4984fi
4985fi
4986CC=$ac_cv_prog_CC
4987if test -n "$CC"; then
4988  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4989$as_echo "$CC" >&6; }
4990else
4991  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4992$as_echo "no" >&6; }
4993fi
4994
4995
4996fi
4997if test -z "$CC"; then
4998  if test -n "$ac_tool_prefix"; then
4999  for ac_prog in cl.exe
5000  do
5001    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5002set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5003{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5004$as_echo_n "checking for $ac_word... " >&6; }
5005if test "${ac_cv_prog_CC+set}" = set; then :
5006  $as_echo_n "(cached) " >&6
5007else
5008  if test -n "$CC"; then
5009  ac_cv_prog_CC="$CC" # Let the user override the test.
5010else
5011as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5012for as_dir in $PATH
5013do
5014  IFS=$as_save_IFS
5015  test -z "$as_dir" && as_dir=.
5016    for ac_exec_ext in '' $ac_executable_extensions; do
5017  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5018    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
5019    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5020    break 2
5021  fi
5022done
5023  done
5024IFS=$as_save_IFS
5025
5026fi
5027fi
5028CC=$ac_cv_prog_CC
5029if test -n "$CC"; then
5030  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5031$as_echo "$CC" >&6; }
5032else
5033  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5034$as_echo "no" >&6; }
5035fi
5036
5037
5038    test -n "$CC" && break
5039  done
5040fi
5041if test -z "$CC"; then
5042  ac_ct_CC=$CC
5043  for ac_prog in cl.exe
5044do
5045  # Extract the first word of "$ac_prog", so it can be a program name with args.
5046set dummy $ac_prog; ac_word=$2
5047{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5048$as_echo_n "checking for $ac_word... " >&6; }
5049if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
5050  $as_echo_n "(cached) " >&6
5051else
5052  if test -n "$ac_ct_CC"; then
5053  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5054else
5055as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5056for as_dir in $PATH
5057do
5058  IFS=$as_save_IFS
5059  test -z "$as_dir" && as_dir=.
5060    for ac_exec_ext in '' $ac_executable_extensions; do
5061  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5062    ac_cv_prog_ac_ct_CC="$ac_prog"
5063    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5064    break 2
5065  fi
5066done
5067  done
5068IFS=$as_save_IFS
5069
5070fi
5071fi
5072ac_ct_CC=$ac_cv_prog_ac_ct_CC
5073if test -n "$ac_ct_CC"; then
5074  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
5075$as_echo "$ac_ct_CC" >&6; }
5076else
5077  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5078$as_echo "no" >&6; }
5079fi
5080
5081
5082  test -n "$ac_ct_CC" && break
5083done
5084
5085  if test "x$ac_ct_CC" = x; then
5086    CC=""
5087  else
5088    case $cross_compiling:$ac_tool_warned in
5089yes:)
5090{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5091$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5092ac_tool_warned=yes ;;
5093esac
5094    CC=$ac_ct_CC
5095  fi
5096fi
5097
5098fi
5099
5100
5101test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5102$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5103as_fn_error "no acceptable C compiler found in \$PATH
5104See \`config.log' for more details." "$LINENO" 5; }
5105
5106# Provide some information about the compiler.
5107$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
5108set X $ac_compile
5109ac_compiler=$2
5110for ac_option in --version -v -V -qversion; do
5111  { { ac_try="$ac_compiler $ac_option >&5"
5112case "(($ac_try" in
5113  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5114  *) ac_try_echo=$ac_try;;
5115esac
5116eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5117$as_echo "$ac_try_echo"; } >&5
5118  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
5119  ac_status=$?
5120  if test -s conftest.err; then
5121    sed '10a\
5122... rest of stderr output deleted ...
5123         10q' conftest.err >conftest.er1
5124    cat conftest.er1 >&5
5125    rm -f conftest.er1 conftest.err
5126  fi
5127  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5128  test $ac_status = 0; }
5129done
5130
5131{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
5132$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
5133if test "${ac_cv_c_compiler_gnu+set}" = set; then :
5134  $as_echo_n "(cached) " >&6
5135else
5136  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5137/* end confdefs.h.  */
5138
5139int
5140main ()
5141{
5142#ifndef __GNUC__
5143       choke me
5144#endif
5145
5146  ;
5147  return 0;
5148}
5149_ACEOF
5150if ac_fn_c_try_compile "$LINENO"; then :
5151  ac_compiler_gnu=yes
5152else
5153  ac_compiler_gnu=no
5154fi
5155rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5156ac_cv_c_compiler_gnu=$ac_compiler_gnu
5157
5158fi
5159{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
5160$as_echo "$ac_cv_c_compiler_gnu" >&6; }
5161if test $ac_compiler_gnu = yes; then
5162  GCC=yes
5163else
5164  GCC=
5165fi
5166ac_test_CFLAGS=${CFLAGS+set}
5167ac_save_CFLAGS=$CFLAGS
5168{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
5169$as_echo_n "checking whether $CC accepts -g... " >&6; }
5170if test "${ac_cv_prog_cc_g+set}" = set; then :
5171  $as_echo_n "(cached) " >&6
5172else
5173  ac_save_c_werror_flag=$ac_c_werror_flag
5174   ac_c_werror_flag=yes
5175   ac_cv_prog_cc_g=no
5176   CFLAGS="-g"
5177   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5178/* end confdefs.h.  */
5179
5180int
5181main ()
5182{
5183
5184  ;
5185  return 0;
5186}
5187_ACEOF
5188if ac_fn_c_try_compile "$LINENO"; then :
5189  ac_cv_prog_cc_g=yes
5190else
5191  CFLAGS=""
5192      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5193/* end confdefs.h.  */
5194
5195int
5196main ()
5197{
5198
5199  ;
5200  return 0;
5201}
5202_ACEOF
5203if ac_fn_c_try_compile "$LINENO"; then :
5204
5205else
5206  ac_c_werror_flag=$ac_save_c_werror_flag
5207	 CFLAGS="-g"
5208	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5209/* end confdefs.h.  */
5210
5211int
5212main ()
5213{
5214
5215  ;
5216  return 0;
5217}
5218_ACEOF
5219if ac_fn_c_try_compile "$LINENO"; then :
5220  ac_cv_prog_cc_g=yes
5221fi
5222rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5223fi
5224rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5225fi
5226rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5227   ac_c_werror_flag=$ac_save_c_werror_flag
5228fi
5229{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
5230$as_echo "$ac_cv_prog_cc_g" >&6; }
5231if test "$ac_test_CFLAGS" = set; then
5232  CFLAGS=$ac_save_CFLAGS
5233elif test $ac_cv_prog_cc_g = yes; then
5234  if test "$GCC" = yes; then
5235    CFLAGS="-g -O2"
5236  else
5237    CFLAGS="-g"
5238  fi
5239else
5240  if test "$GCC" = yes; then
5241    CFLAGS="-O2"
5242  else
5243    CFLAGS=
5244  fi
5245fi
5246{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
5247$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
5248if test "${ac_cv_prog_cc_c89+set}" = set; then :
5249  $as_echo_n "(cached) " >&6
5250else
5251  ac_cv_prog_cc_c89=no
5252ac_save_CC=$CC
5253cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5254/* end confdefs.h.  */
5255#include <stdarg.h>
5256#include <stdio.h>
5257#include <sys/types.h>
5258#include <sys/stat.h>
5259/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
5260struct buf { int x; };
5261FILE * (*rcsopen) (struct buf *, struct stat *, int);
5262static char *e (p, i)
5263     char **p;
5264     int i;
5265{
5266  return p[i];
5267}
5268static char *f (char * (*g) (char **, int), char **p, ...)
5269{
5270  char *s;
5271  va_list v;
5272  va_start (v,p);
5273  s = g (p, va_arg (v,int));
5274  va_end (v);
5275  return s;
5276}
5277
5278/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
5279   function prototypes and stuff, but not '\xHH' hex character constants.
5280   These don't provoke an error unfortunately, instead are silently treated
5281   as 'x'.  The following induces an error, until -std is added to get
5282   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
5283   array size at least.  It's necessary to write '\x00'==0 to get something
5284   that's true only with -std.  */
5285int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5286
5287/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5288   inside strings and character constants.  */
5289#define FOO(x) 'x'
5290int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5291
5292int test (int i, double x);
5293struct s1 {int (*f) (int a);};
5294struct s2 {int (*f) (double a);};
5295int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5296int argc;
5297char **argv;
5298int
5299main ()
5300{
5301return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
5302  ;
5303  return 0;
5304}
5305_ACEOF
5306for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5307	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5308do
5309  CC="$ac_save_CC $ac_arg"
5310  if ac_fn_c_try_compile "$LINENO"; then :
5311  ac_cv_prog_cc_c89=$ac_arg
5312fi
5313rm -f core conftest.err conftest.$ac_objext
5314  test "x$ac_cv_prog_cc_c89" != "xno" && break
5315done
5316rm -f conftest.$ac_ext
5317CC=$ac_save_CC
5318
5319fi
5320# AC_CACHE_VAL
5321case "x$ac_cv_prog_cc_c89" in
5322  x)
5323    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5324$as_echo "none needed" >&6; } ;;
5325  xno)
5326    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5327$as_echo "unsupported" >&6; } ;;
5328  *)
5329    CC="$CC $ac_cv_prog_cc_c89"
5330    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
5331$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
5332esac
5333if test "x$ac_cv_prog_cc_c89" != xno; then :
5334
5335fi
5336
5337ac_ext=c
5338ac_cpp='$CPP $CPPFLAGS'
5339ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5340ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5341ac_compiler_gnu=$ac_cv_c_compiler_gnu
5342
5343ac_ext=cpp
5344ac_cpp='$CXXCPP $CPPFLAGS'
5345ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5346ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5347ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5348if test -z "$CXX"; then
5349  if test -n "$CCC"; then
5350    CXX=$CCC
5351  else
5352    if test -n "$ac_tool_prefix"; then
5353  for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5354  do
5355    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5356set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5357{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5358$as_echo_n "checking for $ac_word... " >&6; }
5359if test "${ac_cv_prog_CXX+set}" = set; then :
5360  $as_echo_n "(cached) " >&6
5361else
5362  if test -n "$CXX"; then
5363  ac_cv_prog_CXX="$CXX" # Let the user override the test.
5364else
5365as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5366for as_dir in $PATH
5367do
5368  IFS=$as_save_IFS
5369  test -z "$as_dir" && as_dir=.
5370    for ac_exec_ext in '' $ac_executable_extensions; do
5371  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5372    ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
5373    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5374    break 2
5375  fi
5376done
5377  done
5378IFS=$as_save_IFS
5379
5380fi
5381fi
5382CXX=$ac_cv_prog_CXX
5383if test -n "$CXX"; then
5384  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
5385$as_echo "$CXX" >&6; }
5386else
5387  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5388$as_echo "no" >&6; }
5389fi
5390
5391
5392    test -n "$CXX" && break
5393  done
5394fi
5395if test -z "$CXX"; then
5396  ac_ct_CXX=$CXX
5397  for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5398do
5399  # Extract the first word of "$ac_prog", so it can be a program name with args.
5400set dummy $ac_prog; ac_word=$2
5401{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5402$as_echo_n "checking for $ac_word... " >&6; }
5403if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
5404  $as_echo_n "(cached) " >&6
5405else
5406  if test -n "$ac_ct_CXX"; then
5407  ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
5408else
5409as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5410for as_dir in $PATH
5411do
5412  IFS=$as_save_IFS
5413  test -z "$as_dir" && as_dir=.
5414    for ac_exec_ext in '' $ac_executable_extensions; do
5415  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5416    ac_cv_prog_ac_ct_CXX="$ac_prog"
5417    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5418    break 2
5419  fi
5420done
5421  done
5422IFS=$as_save_IFS
5423
5424fi
5425fi
5426ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
5427if test -n "$ac_ct_CXX"; then
5428  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
5429$as_echo "$ac_ct_CXX" >&6; }
5430else
5431  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5432$as_echo "no" >&6; }
5433fi
5434
5435
5436  test -n "$ac_ct_CXX" && break
5437done
5438
5439  if test "x$ac_ct_CXX" = x; then
5440    CXX="g++"
5441  else
5442    case $cross_compiling:$ac_tool_warned in
5443yes:)
5444{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5445$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5446ac_tool_warned=yes ;;
5447esac
5448    CXX=$ac_ct_CXX
5449  fi
5450fi
5451
5452  fi
5453fi
5454# Provide some information about the compiler.
5455$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
5456set X $ac_compile
5457ac_compiler=$2
5458for ac_option in --version -v -V -qversion; do
5459  { { ac_try="$ac_compiler $ac_option >&5"
5460case "(($ac_try" in
5461  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5462  *) ac_try_echo=$ac_try;;
5463esac
5464eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5465$as_echo "$ac_try_echo"; } >&5
5466  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
5467  ac_status=$?
5468  if test -s conftest.err; then
5469    sed '10a\
5470... rest of stderr output deleted ...
5471         10q' conftest.err >conftest.er1
5472    cat conftest.er1 >&5
5473    rm -f conftest.er1 conftest.err
5474  fi
5475  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5476  test $ac_status = 0; }
5477done
5478
5479{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
5480$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
5481if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
5482  $as_echo_n "(cached) " >&6
5483else
5484  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5485/* end confdefs.h.  */
5486
5487int
5488main ()
5489{
5490#ifndef __GNUC__
5491       choke me
5492#endif
5493
5494  ;
5495  return 0;
5496}
5497_ACEOF
5498if ac_fn_cxx_try_compile "$LINENO"; then :
5499  ac_compiler_gnu=yes
5500else
5501  ac_compiler_gnu=no
5502fi
5503rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5504ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
5505
5506fi
5507{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
5508$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
5509if test $ac_compiler_gnu = yes; then
5510  GXX=yes
5511else
5512  GXX=
5513fi
5514ac_test_CXXFLAGS=${CXXFLAGS+set}
5515ac_save_CXXFLAGS=$CXXFLAGS
5516{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
5517$as_echo_n "checking whether $CXX accepts -g... " >&6; }
5518if test "${ac_cv_prog_cxx_g+set}" = set; then :
5519  $as_echo_n "(cached) " >&6
5520else
5521  ac_save_cxx_werror_flag=$ac_cxx_werror_flag
5522   ac_cxx_werror_flag=yes
5523   ac_cv_prog_cxx_g=no
5524   CXXFLAGS="-g"
5525   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5526/* end confdefs.h.  */
5527
5528int
5529main ()
5530{
5531
5532  ;
5533  return 0;
5534}
5535_ACEOF
5536if ac_fn_cxx_try_compile "$LINENO"; then :
5537  ac_cv_prog_cxx_g=yes
5538else
5539  CXXFLAGS=""
5540      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5541/* end confdefs.h.  */
5542
5543int
5544main ()
5545{
5546
5547  ;
5548  return 0;
5549}
5550_ACEOF
5551if ac_fn_cxx_try_compile "$LINENO"; then :
5552
5553else
5554  ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5555	 CXXFLAGS="-g"
5556	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5557/* end confdefs.h.  */
5558
5559int
5560main ()
5561{
5562
5563  ;
5564  return 0;
5565}
5566_ACEOF
5567if ac_fn_cxx_try_compile "$LINENO"; then :
5568  ac_cv_prog_cxx_g=yes
5569fi
5570rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5571fi
5572rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5573fi
5574rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5575   ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5576fi
5577{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
5578$as_echo "$ac_cv_prog_cxx_g" >&6; }
5579if test "$ac_test_CXXFLAGS" = set; then
5580  CXXFLAGS=$ac_save_CXXFLAGS
5581elif test $ac_cv_prog_cxx_g = yes; then
5582  if test "$GXX" = yes; then
5583    CXXFLAGS="-g -O2"
5584  else
5585    CXXFLAGS="-g"
5586  fi
5587else
5588  if test "$GXX" = yes; then
5589    CXXFLAGS="-O2"
5590  else
5591    CXXFLAGS=
5592  fi
5593fi
5594ac_ext=c
5595ac_cpp='$CPP $CPPFLAGS'
5596ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5597ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5598ac_compiler_gnu=$ac_cv_c_compiler_gnu
5599
5600depcc="$CXX"  am_compiler_list=
5601
5602{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
5603$as_echo_n "checking dependency style of $depcc... " >&6; }
5604if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then :
5605  $as_echo_n "(cached) " >&6
5606else
5607  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5608  # We make a subdir and do the tests there.  Otherwise we can end up
5609  # making bogus files that we don't know about and never remove.  For
5610  # instance it was reported that on HP-UX the gcc test will end up
5611  # making a dummy file named `D' -- because `-MD' means `put the output
5612  # in D'.
5613  rm -rf conftest.dir
5614  mkdir conftest.dir
5615  # Copy depcomp to subdir because otherwise we won't find it if we're
5616  # using a relative directory.
5617  cp "$am_depcomp" conftest.dir
5618  cd conftest.dir
5619  # We will build objects and dependencies in a subdirectory because
5620  # it helps to detect inapplicable dependency modes.  For instance
5621  # both Tru64's cc and ICC support -MD to output dependencies as a
5622  # side effect of compilation, but ICC will put the dependencies in
5623  # the current directory while Tru64 will put them in the object
5624  # directory.
5625  mkdir sub
5626
5627  am_cv_CXX_dependencies_compiler_type=none
5628  if test "$am_compiler_list" = ""; then
5629     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5630  fi
5631  am__universal=false
5632  case " $depcc " in #(
5633     *\ -arch\ *\ -arch\ *) am__universal=true ;;
5634     esac
5635
5636  for depmode in $am_compiler_list; do
5637    # Setup a source with many dependencies, because some compilers
5638    # like to wrap large dependency lists on column 80 (with \), and
5639    # we should not choose a depcomp mode which is confused by this.
5640    #
5641    # We need to recreate these files for each test, as the compiler may
5642    # overwrite some of them when testing with obscure command lines.
5643    # This happens at least with the AIX C compiler.
5644    : > sub/conftest.c
5645    for i in 1 2 3 4 5 6; do
5646      echo '#include "conftst'$i'.h"' >> sub/conftest.c
5647      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5648      # Solaris 8's {/usr,}/bin/sh.
5649      touch sub/conftst$i.h
5650    done
5651    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5652
5653    # We check with `-c' and `-o' for the sake of the "dashmstdout"
5654    # mode.  It turns out that the SunPro C++ compiler does not properly
5655    # handle `-M -o', and we need to detect this.  Also, some Intel
5656    # versions had trouble with output in subdirs
5657    am__obj=sub/conftest.${OBJEXT-o}
5658    am__minus_obj="-o $am__obj"
5659    case $depmode in
5660    gcc)
5661      # This depmode causes a compiler race in universal mode.
5662      test "$am__universal" = false || continue
5663      ;;
5664    nosideeffect)
5665      # after this tag, mechanisms are not by side-effect, so they'll
5666      # only be used when explicitly requested
5667      if test "x$enable_dependency_tracking" = xyes; then
5668	continue
5669      else
5670	break
5671      fi
5672      ;;
5673    msvc7 | msvc7msys | msvisualcpp | msvcmsys)
5674      # This compiler won't grok `-c -o', but also, the minuso test has
5675      # not run yet.  These depmodes are late enough in the game, and
5676      # so weak that their functioning should not be impacted.
5677      am__obj=conftest.${OBJEXT-o}
5678      am__minus_obj=
5679      ;;
5680    none) break ;;
5681    esac
5682    if depmode=$depmode \
5683       source=sub/conftest.c object=$am__obj \
5684       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5685       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
5686         >/dev/null 2>conftest.err &&
5687       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5688       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5689       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
5690       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5691      # icc doesn't choke on unknown options, it will just issue warnings
5692      # or remarks (even with -Werror).  So we grep stderr for any message
5693      # that says an option was ignored or not supported.
5694      # When given -MP, icc 7.0 and 7.1 complain thusly:
5695      #   icc: Command line warning: ignoring option '-M'; no argument required
5696      # The diagnosis changed in icc 8.0:
5697      #   icc: Command line remark: option '-MP' not supported
5698      if (grep 'ignoring option' conftest.err ||
5699          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5700        am_cv_CXX_dependencies_compiler_type=$depmode
5701        break
5702      fi
5703    fi
5704  done
5705
5706  cd ..
5707  rm -rf conftest.dir
5708else
5709  am_cv_CXX_dependencies_compiler_type=none
5710fi
5711
5712fi
5713{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
5714$as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
5715CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
5716
5717 if
5718  test "x$enable_dependency_tracking" != xno \
5719  && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
5720  am__fastdepCXX_TRUE=
5721  am__fastdepCXX_FALSE='#'
5722else
5723  am__fastdepCXX_TRUE='#'
5724  am__fastdepCXX_FALSE=
5725fi
5726
5727
5728# By default we simply use the C compiler to build assembly code.
5729
5730test "${CCAS+set}" = set || CCAS=$CC
5731test "${CCASFLAGS+set}" = set || CCASFLAGS=$CFLAGS
5732
5733
5734
5735depcc="$CCAS"   am_compiler_list=
5736
5737{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
5738$as_echo_n "checking dependency style of $depcc... " >&6; }
5739if test "${am_cv_CCAS_dependencies_compiler_type+set}" = set; then :
5740  $as_echo_n "(cached) " >&6
5741else
5742  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5743  # We make a subdir and do the tests there.  Otherwise we can end up
5744  # making bogus files that we don't know about and never remove.  For
5745  # instance it was reported that on HP-UX the gcc test will end up
5746  # making a dummy file named `D' -- because `-MD' means `put the output
5747  # in D'.
5748  rm -rf conftest.dir
5749  mkdir conftest.dir
5750  # Copy depcomp to subdir because otherwise we won't find it if we're
5751  # using a relative directory.
5752  cp "$am_depcomp" conftest.dir
5753  cd conftest.dir
5754  # We will build objects and dependencies in a subdirectory because
5755  # it helps to detect inapplicable dependency modes.  For instance
5756  # both Tru64's cc and ICC support -MD to output dependencies as a
5757  # side effect of compilation, but ICC will put the dependencies in
5758  # the current directory while Tru64 will put them in the object
5759  # directory.
5760  mkdir sub
5761
5762  am_cv_CCAS_dependencies_compiler_type=none
5763  if test "$am_compiler_list" = ""; then
5764     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5765  fi
5766  am__universal=false
5767
5768
5769  for depmode in $am_compiler_list; do
5770    # Setup a source with many dependencies, because some compilers
5771    # like to wrap large dependency lists on column 80 (with \), and
5772    # we should not choose a depcomp mode which is confused by this.
5773    #
5774    # We need to recreate these files for each test, as the compiler may
5775    # overwrite some of them when testing with obscure command lines.
5776    # This happens at least with the AIX C compiler.
5777    : > sub/conftest.c
5778    for i in 1 2 3 4 5 6; do
5779      echo '#include "conftst'$i'.h"' >> sub/conftest.c
5780      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5781      # Solaris 8's {/usr,}/bin/sh.
5782      touch sub/conftst$i.h
5783    done
5784    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5785
5786    # We check with `-c' and `-o' for the sake of the "dashmstdout"
5787    # mode.  It turns out that the SunPro C++ compiler does not properly
5788    # handle `-M -o', and we need to detect this.  Also, some Intel
5789    # versions had trouble with output in subdirs
5790    am__obj=sub/conftest.${OBJEXT-o}
5791    am__minus_obj="-o $am__obj"
5792    case $depmode in
5793    gcc)
5794      # This depmode causes a compiler race in universal mode.
5795      test "$am__universal" = false || continue
5796      ;;
5797    nosideeffect)
5798      # after this tag, mechanisms are not by side-effect, so they'll
5799      # only be used when explicitly requested
5800      if test "x$enable_dependency_tracking" = xyes; then
5801	continue
5802      else
5803	break
5804      fi
5805      ;;
5806    msvc7 | msvc7msys | msvisualcpp | msvcmsys)
5807      # This compiler won't grok `-c -o', but also, the minuso test has
5808      # not run yet.  These depmodes are late enough in the game, and
5809      # so weak that their functioning should not be impacted.
5810      am__obj=conftest.${OBJEXT-o}
5811      am__minus_obj=
5812      ;;
5813    none) break ;;
5814    esac
5815    if depmode=$depmode \
5816       source=sub/conftest.c object=$am__obj \
5817       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5818       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
5819         >/dev/null 2>conftest.err &&
5820       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5821       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5822       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
5823       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5824      # icc doesn't choke on unknown options, it will just issue warnings
5825      # or remarks (even with -Werror).  So we grep stderr for any message
5826      # that says an option was ignored or not supported.
5827      # When given -MP, icc 7.0 and 7.1 complain thusly:
5828      #   icc: Command line warning: ignoring option '-M'; no argument required
5829      # The diagnosis changed in icc 8.0:
5830      #   icc: Command line remark: option '-MP' not supported
5831      if (grep 'ignoring option' conftest.err ||
5832          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5833        am_cv_CCAS_dependencies_compiler_type=$depmode
5834        break
5835      fi
5836    fi
5837  done
5838
5839  cd ..
5840  rm -rf conftest.dir
5841else
5842  am_cv_CCAS_dependencies_compiler_type=none
5843fi
5844
5845fi
5846{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CCAS_dependencies_compiler_type" >&5
5847$as_echo "$am_cv_CCAS_dependencies_compiler_type" >&6; }
5848CCASDEPMODE=depmode=$am_cv_CCAS_dependencies_compiler_type
5849
5850 if
5851  test "x$enable_dependency_tracking" != xno \
5852  && test "$am_cv_CCAS_dependencies_compiler_type" = gcc3; then
5853  am__fastdepCCAS_TRUE=
5854  am__fastdepCCAS_FALSE='#'
5855else
5856  am__fastdepCCAS_TRUE='#'
5857  am__fastdepCCAS_FALSE=
5858fi
5859
5860
5861if test -n "$ac_tool_prefix"; then
5862  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5863set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5864{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5865$as_echo_n "checking for $ac_word... " >&6; }
5866if test "${ac_cv_prog_RANLIB+set}" = set; then :
5867  $as_echo_n "(cached) " >&6
5868else
5869  if test -n "$RANLIB"; then
5870  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5871else
5872as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5873for as_dir in $PATH
5874do
5875  IFS=$as_save_IFS
5876  test -z "$as_dir" && as_dir=.
5877    for ac_exec_ext in '' $ac_executable_extensions; do
5878  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5879    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5880    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5881    break 2
5882  fi
5883done
5884  done
5885IFS=$as_save_IFS
5886
5887fi
5888fi
5889RANLIB=$ac_cv_prog_RANLIB
5890if test -n "$RANLIB"; then
5891  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5892$as_echo "$RANLIB" >&6; }
5893else
5894  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5895$as_echo "no" >&6; }
5896fi
5897
5898
5899fi
5900if test -z "$ac_cv_prog_RANLIB"; then
5901  ac_ct_RANLIB=$RANLIB
5902  # Extract the first word of "ranlib", so it can be a program name with args.
5903set dummy ranlib; ac_word=$2
5904{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5905$as_echo_n "checking for $ac_word... " >&6; }
5906if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
5907  $as_echo_n "(cached) " >&6
5908else
5909  if test -n "$ac_ct_RANLIB"; then
5910  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5911else
5912as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5913for as_dir in $PATH
5914do
5915  IFS=$as_save_IFS
5916  test -z "$as_dir" && as_dir=.
5917    for ac_exec_ext in '' $ac_executable_extensions; do
5918  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5919    ac_cv_prog_ac_ct_RANLIB="ranlib"
5920    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5921    break 2
5922  fi
5923done
5924  done
5925IFS=$as_save_IFS
5926
5927fi
5928fi
5929ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5930if test -n "$ac_ct_RANLIB"; then
5931  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5932$as_echo "$ac_ct_RANLIB" >&6; }
5933else
5934  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5935$as_echo "no" >&6; }
5936fi
5937
5938  if test "x$ac_ct_RANLIB" = x; then
5939    RANLIB=":"
5940  else
5941    case $cross_compiling:$ac_tool_warned in
5942yes:)
5943{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5944$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5945ac_tool_warned=yes ;;
5946esac
5947    RANLIB=$ac_ct_RANLIB
5948  fi
5949else
5950  RANLIB="$ac_cv_prog_RANLIB"
5951fi
5952
5953
5954enable_dlopen=yes
5955
5956
5957
5958case `pwd` in
5959  *\ * | *\	*)
5960    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
5961$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
5962esac
5963
5964
5965
5966macro_version='2.2.7a'
5967macro_revision='1.3134'
5968
5969
5970
5971
5972
5973
5974
5975
5976
5977
5978
5979
5980
5981ltmain="$ac_aux_dir/ltmain.sh"
5982
5983# Backslashify metacharacters that are still active within
5984# double-quoted strings.
5985sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
5986
5987# Same as above, but do not quote variable references.
5988double_quote_subst='s/\(["`\\]\)/\\\1/g'
5989
5990# Sed substitution to delay expansion of an escaped shell variable in a
5991# double_quote_subst'ed string.
5992delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5993
5994# Sed substitution to delay expansion of an escaped single quote.
5995delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
5996
5997# Sed substitution to avoid accidental globbing in evaled expressions
5998no_glob_subst='s/\*/\\\*/g'
5999
6000ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
6001ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
6002ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
6003
6004{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
6005$as_echo_n "checking how to print strings... " >&6; }
6006# Test print first, because it will be a builtin if present.
6007if test "X`print -r -- -n 2>/dev/null`" = X-n && \
6008   test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
6009  ECHO='print -r --'
6010elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
6011  ECHO='printf %s\n'
6012else
6013  # Use this function as a fallback that always works.
6014  func_fallback_echo ()
6015  {
6016    eval 'cat <<_LTECHO_EOF
6017$1
6018_LTECHO_EOF'
6019  }
6020  ECHO='func_fallback_echo'
6021fi
6022
6023# func_echo_all arg...
6024# Invoke $ECHO with all args, space-separated.
6025func_echo_all ()
6026{
6027    $ECHO ""
6028}
6029
6030case "$ECHO" in
6031  printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
6032$as_echo "printf" >&6; } ;;
6033  print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
6034$as_echo "print -r" >&6; } ;;
6035  *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
6036$as_echo "cat" >&6; } ;;
6037esac
6038
6039
6040
6041
6042
6043
6044
6045
6046
6047
6048
6049
6050
6051
6052{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
6053$as_echo_n "checking for a sed that does not truncate output... " >&6; }
6054if test "${ac_cv_path_SED+set}" = set; then :
6055  $as_echo_n "(cached) " >&6
6056else
6057            ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
6058     for ac_i in 1 2 3 4 5 6 7; do
6059       ac_script="$ac_script$as_nl$ac_script"
6060     done
6061     echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
6062     { ac_script=; unset ac_script;}
6063     if test -z "$SED"; then
6064  ac_path_SED_found=false
6065  # Loop through the user's path and test for each of PROGNAME-LIST
6066  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6067for as_dir in $PATH
6068do
6069  IFS=$as_save_IFS
6070  test -z "$as_dir" && as_dir=.
6071    for ac_prog in sed gsed; do
6072    for ac_exec_ext in '' $ac_executable_extensions; do
6073      ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
6074      { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
6075# Check for GNU ac_path_SED and select it if it is found.
6076  # Check for GNU $ac_path_SED
6077case `"$ac_path_SED" --version 2>&1` in
6078*GNU*)
6079  ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
6080*)
6081  ac_count=0
6082  $as_echo_n 0123456789 >"conftest.in"
6083  while :
6084  do
6085    cat "conftest.in" "conftest.in" >"conftest.tmp"
6086    mv "conftest.tmp" "conftest.in"
6087    cp "conftest.in" "conftest.nl"
6088    $as_echo '' >> "conftest.nl"
6089    "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
6090    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6091    as_fn_arith $ac_count + 1 && ac_count=$as_val
6092    if test $ac_count -gt ${ac_path_SED_max-0}; then
6093      # Best one so far, save it but keep looking for a better one
6094      ac_cv_path_SED="$ac_path_SED"
6095      ac_path_SED_max=$ac_count
6096    fi
6097    # 10*(2^10) chars as input seems more than enough
6098    test $ac_count -gt 10 && break
6099  done
6100  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6101esac
6102
6103      $ac_path_SED_found && break 3
6104    done
6105  done
6106  done
6107IFS=$as_save_IFS
6108  if test -z "$ac_cv_path_SED"; then
6109    as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
6110  fi
6111else
6112  ac_cv_path_SED=$SED
6113fi
6114
6115fi
6116{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
6117$as_echo "$ac_cv_path_SED" >&6; }
6118 SED="$ac_cv_path_SED"
6119  rm -f conftest.sed
6120
6121test -z "$SED" && SED=sed
6122Xsed="$SED -e 1s/^X//"
6123
6124
6125
6126
6127
6128
6129
6130
6131
6132
6133
6134{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
6135$as_echo_n "checking for fgrep... " >&6; }
6136if test "${ac_cv_path_FGREP+set}" = set; then :
6137  $as_echo_n "(cached) " >&6
6138else
6139  if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
6140   then ac_cv_path_FGREP="$GREP -F"
6141   else
6142     if test -z "$FGREP"; then
6143  ac_path_FGREP_found=false
6144  # Loop through the user's path and test for each of PROGNAME-LIST
6145  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6146for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6147do
6148  IFS=$as_save_IFS
6149  test -z "$as_dir" && as_dir=.
6150    for ac_prog in fgrep; do
6151    for ac_exec_ext in '' $ac_executable_extensions; do
6152      ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
6153      { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
6154# Check for GNU ac_path_FGREP and select it if it is found.
6155  # Check for GNU $ac_path_FGREP
6156case `"$ac_path_FGREP" --version 2>&1` in
6157*GNU*)
6158  ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
6159*)
6160  ac_count=0
6161  $as_echo_n 0123456789 >"conftest.in"
6162  while :
6163  do
6164    cat "conftest.in" "conftest.in" >"conftest.tmp"
6165    mv "conftest.tmp" "conftest.in"
6166    cp "conftest.in" "conftest.nl"
6167    $as_echo 'FGREP' >> "conftest.nl"
6168    "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
6169    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6170    as_fn_arith $ac_count + 1 && ac_count=$as_val
6171    if test $ac_count -gt ${ac_path_FGREP_max-0}; then
6172      # Best one so far, save it but keep looking for a better one
6173      ac_cv_path_FGREP="$ac_path_FGREP"
6174      ac_path_FGREP_max=$ac_count
6175    fi
6176    # 10*(2^10) chars as input seems more than enough
6177    test $ac_count -gt 10 && break
6178  done
6179  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6180esac
6181
6182      $ac_path_FGREP_found && break 3
6183    done
6184  done
6185  done
6186IFS=$as_save_IFS
6187  if test -z "$ac_cv_path_FGREP"; then
6188    as_fn_error "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6189  fi
6190else
6191  ac_cv_path_FGREP=$FGREP
6192fi
6193
6194   fi
6195fi
6196{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
6197$as_echo "$ac_cv_path_FGREP" >&6; }
6198 FGREP="$ac_cv_path_FGREP"
6199
6200
6201test -z "$GREP" && GREP=grep
6202
6203
6204
6205
6206
6207
6208
6209
6210
6211
6212
6213
6214
6215
6216
6217
6218
6219
6220
6221# Check whether --with-gnu-ld was given.
6222if test "${with_gnu_ld+set}" = set; then :
6223  withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
6224else
6225  with_gnu_ld=no
6226fi
6227
6228ac_prog=ld
6229if test "$GCC" = yes; then
6230  # Check if gcc -print-prog-name=ld gives a path.
6231  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
6232$as_echo_n "checking for ld used by $CC... " >&6; }
6233  case $host in
6234  *-*-mingw*)
6235    # gcc leaves a trailing carriage return which upsets mingw
6236    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
6237  *)
6238    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
6239  esac
6240  case $ac_prog in
6241    # Accept absolute paths.
6242    [\\/]* | ?:[\\/]*)
6243      re_direlt='/[^/][^/]*/\.\./'
6244      # Canonicalize the pathname of ld
6245      ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
6246      while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
6247	ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
6248      done
6249      test -z "$LD" && LD="$ac_prog"
6250      ;;
6251  "")
6252    # If it fails, then pretend we aren't using GCC.
6253    ac_prog=ld
6254    ;;
6255  *)
6256    # If it is relative, then search for the first ld in PATH.
6257    with_gnu_ld=unknown
6258    ;;
6259  esac
6260elif test "$with_gnu_ld" = yes; then
6261  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
6262$as_echo_n "checking for GNU ld... " >&6; }
6263else
6264  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
6265$as_echo_n "checking for non-GNU ld... " >&6; }
6266fi
6267if test "${lt_cv_path_LD+set}" = set; then :
6268  $as_echo_n "(cached) " >&6
6269else
6270  if test -z "$LD"; then
6271  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6272  for ac_dir in $PATH; do
6273    IFS="$lt_save_ifs"
6274    test -z "$ac_dir" && ac_dir=.
6275    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
6276      lt_cv_path_LD="$ac_dir/$ac_prog"
6277      # Check to see if the program is GNU ld.  I'd rather use --version,
6278      # but apparently some variants of GNU ld only accept -v.
6279      # Break only if it was the GNU/non-GNU ld that we prefer.
6280      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
6281      *GNU* | *'with BFD'*)
6282	test "$with_gnu_ld" != no && break
6283	;;
6284      *)
6285	test "$with_gnu_ld" != yes && break
6286	;;
6287      esac
6288    fi
6289  done
6290  IFS="$lt_save_ifs"
6291else
6292  lt_cv_path_LD="$LD" # Let the user override the test with a path.
6293fi
6294fi
6295
6296LD="$lt_cv_path_LD"
6297if test -n "$LD"; then
6298  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
6299$as_echo "$LD" >&6; }
6300else
6301  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6302$as_echo "no" >&6; }
6303fi
6304test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
6305{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
6306$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
6307if test "${lt_cv_prog_gnu_ld+set}" = set; then :
6308  $as_echo_n "(cached) " >&6
6309else
6310  # I'd rather use --version here, but apparently some GNU lds only accept -v.
6311case `$LD -v 2>&1 </dev/null` in
6312*GNU* | *'with BFD'*)
6313  lt_cv_prog_gnu_ld=yes
6314  ;;
6315*)
6316  lt_cv_prog_gnu_ld=no
6317  ;;
6318esac
6319fi
6320{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
6321$as_echo "$lt_cv_prog_gnu_ld" >&6; }
6322with_gnu_ld=$lt_cv_prog_gnu_ld
6323
6324
6325
6326
6327
6328
6329
6330
6331
6332{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
6333$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
6334if test "${lt_cv_path_NM+set}" = set; then :
6335  $as_echo_n "(cached) " >&6
6336else
6337  if test -n "$NM"; then
6338  # Let the user override the test.
6339  lt_cv_path_NM="$NM"
6340else
6341  lt_nm_to_check="${ac_tool_prefix}nm"
6342  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
6343    lt_nm_to_check="$lt_nm_to_check nm"
6344  fi
6345  for lt_tmp_nm in $lt_nm_to_check; do
6346    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6347    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
6348      IFS="$lt_save_ifs"
6349      test -z "$ac_dir" && ac_dir=.
6350      tmp_nm="$ac_dir/$lt_tmp_nm"
6351      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
6352	# Check to see if the nm accepts a BSD-compat flag.
6353	# Adding the `sed 1q' prevents false positives on HP-UX, which says:
6354	#   nm: unknown option "B" ignored
6355	# Tru64's nm complains that /dev/null is an invalid object file
6356	case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
6357	*/dev/null* | *'Invalid file or object type'*)
6358	  lt_cv_path_NM="$tmp_nm -B"
6359	  break
6360	  ;;
6361	*)
6362	  case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
6363	  */dev/null*)
6364	    lt_cv_path_NM="$tmp_nm -p"
6365	    break
6366	    ;;
6367	  *)
6368	    lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6369	    continue # so that we can try to find one that supports BSD flags
6370	    ;;
6371	  esac
6372	  ;;
6373	esac
6374      fi
6375    done
6376    IFS="$lt_save_ifs"
6377  done
6378  : ${lt_cv_path_NM=no}
6379fi
6380fi
6381{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
6382$as_echo "$lt_cv_path_NM" >&6; }
6383if test "$lt_cv_path_NM" != "no"; then
6384  NM="$lt_cv_path_NM"
6385else
6386  # Didn't find any BSD compatible name lister, look for dumpbin.
6387  if test -n "$DUMPBIN"; then :
6388    # Let the user override the test.
6389  else
6390    if test -n "$ac_tool_prefix"; then
6391  for ac_prog in dumpbin "link -dump"
6392  do
6393    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6394set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6395{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6396$as_echo_n "checking for $ac_word... " >&6; }
6397if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
6398  $as_echo_n "(cached) " >&6
6399else
6400  if test -n "$DUMPBIN"; then
6401  ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
6402else
6403as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6404for as_dir in $PATH
6405do
6406  IFS=$as_save_IFS
6407  test -z "$as_dir" && as_dir=.
6408    for ac_exec_ext in '' $ac_executable_extensions; do
6409  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6410    ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
6411    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6412    break 2
6413  fi
6414done
6415  done
6416IFS=$as_save_IFS
6417
6418fi
6419fi
6420DUMPBIN=$ac_cv_prog_DUMPBIN
6421if test -n "$DUMPBIN"; then
6422  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
6423$as_echo "$DUMPBIN" >&6; }
6424else
6425  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6426$as_echo "no" >&6; }
6427fi
6428
6429
6430    test -n "$DUMPBIN" && break
6431  done
6432fi
6433if test -z "$DUMPBIN"; then
6434  ac_ct_DUMPBIN=$DUMPBIN
6435  for ac_prog in dumpbin "link -dump"
6436do
6437  # Extract the first word of "$ac_prog", so it can be a program name with args.
6438set dummy $ac_prog; ac_word=$2
6439{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6440$as_echo_n "checking for $ac_word... " >&6; }
6441if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
6442  $as_echo_n "(cached) " >&6
6443else
6444  if test -n "$ac_ct_DUMPBIN"; then
6445  ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
6446else
6447as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6448for as_dir in $PATH
6449do
6450  IFS=$as_save_IFS
6451  test -z "$as_dir" && as_dir=.
6452    for ac_exec_ext in '' $ac_executable_extensions; do
6453  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6454    ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
6455    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6456    break 2
6457  fi
6458done
6459  done
6460IFS=$as_save_IFS
6461
6462fi
6463fi
6464ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
6465if test -n "$ac_ct_DUMPBIN"; then
6466  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
6467$as_echo "$ac_ct_DUMPBIN" >&6; }
6468else
6469  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6470$as_echo "no" >&6; }
6471fi
6472
6473
6474  test -n "$ac_ct_DUMPBIN" && break
6475done
6476
6477  if test "x$ac_ct_DUMPBIN" = x; then
6478    DUMPBIN=":"
6479  else
6480    case $cross_compiling:$ac_tool_warned in
6481yes:)
6482{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6483$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6484ac_tool_warned=yes ;;
6485esac
6486    DUMPBIN=$ac_ct_DUMPBIN
6487  fi
6488fi
6489
6490    case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
6491    *COFF*)
6492      DUMPBIN="$DUMPBIN -symbols"
6493      ;;
6494    *)
6495      DUMPBIN=:
6496      ;;
6497    esac
6498  fi
6499
6500  if test "$DUMPBIN" != ":"; then
6501    NM="$DUMPBIN"
6502  fi
6503fi
6504test -z "$NM" && NM=nm
6505
6506
6507
6508
6509
6510
6511{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
6512$as_echo_n "checking the name lister ($NM) interface... " >&6; }
6513if test "${lt_cv_nm_interface+set}" = set; then :
6514  $as_echo_n "(cached) " >&6
6515else
6516  lt_cv_nm_interface="BSD nm"
6517  echo "int some_variable = 0;" > conftest.$ac_ext
6518  (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
6519  (eval "$ac_compile" 2>conftest.err)
6520  cat conftest.err >&5
6521  (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
6522  (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
6523  cat conftest.err >&5
6524  (eval echo "\"\$as_me:$LINENO: output\"" >&5)
6525  cat conftest.out >&5
6526  if $GREP 'External.*some_variable' conftest.out > /dev/null; then
6527    lt_cv_nm_interface="MS dumpbin"
6528  fi
6529  rm -f conftest*
6530fi
6531{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
6532$as_echo "$lt_cv_nm_interface" >&6; }
6533
6534{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
6535$as_echo_n "checking whether ln -s works... " >&6; }
6536LN_S=$as_ln_s
6537if test "$LN_S" = "ln -s"; then
6538  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6539$as_echo "yes" >&6; }
6540else
6541  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
6542$as_echo "no, using $LN_S" >&6; }
6543fi
6544
6545# find the maximum length of command line arguments
6546{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
6547$as_echo_n "checking the maximum length of command line arguments... " >&6; }
6548if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
6549  $as_echo_n "(cached) " >&6
6550else
6551    i=0
6552  teststring="ABCD"
6553
6554  case $build_os in
6555  msdosdjgpp*)
6556    # On DJGPP, this test can blow up pretty badly due to problems in libc
6557    # (any single argument exceeding 2000 bytes causes a buffer overrun
6558    # during glob expansion).  Even if it were fixed, the result of this
6559    # check would be larger than it should be.
6560    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
6561    ;;
6562
6563  gnu*)
6564    # Under GNU Hurd, this test is not required because there is
6565    # no limit to the length of command line arguments.
6566    # Libtool will interpret -1 as no limit whatsoever
6567    lt_cv_sys_max_cmd_len=-1;
6568    ;;
6569
6570  cygwin* | mingw* | cegcc*)
6571    # On Win9x/ME, this test blows up -- it succeeds, but takes
6572    # about 5 minutes as the teststring grows exponentially.
6573    # Worse, since 9x/ME are not pre-emptively multitasking,
6574    # you end up with a "frozen" computer, even though with patience
6575    # the test eventually succeeds (with a max line length of 256k).
6576    # Instead, let's just punt: use the minimum linelength reported by
6577    # all of the supported platforms: 8192 (on NT/2K/XP).
6578    lt_cv_sys_max_cmd_len=8192;
6579    ;;
6580
6581  mint*)
6582    # On MiNT this can take a long time and run out of memory.
6583    lt_cv_sys_max_cmd_len=8192;
6584    ;;
6585
6586  amigaos*)
6587    # On AmigaOS with pdksh, this test takes hours, literally.
6588    # So we just punt and use a minimum line length of 8192.
6589    lt_cv_sys_max_cmd_len=8192;
6590    ;;
6591
6592  netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6593    # This has been around since 386BSD, at least.  Likely further.
6594    if test -x /sbin/sysctl; then
6595      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6596    elif test -x /usr/sbin/sysctl; then
6597      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6598    else
6599      lt_cv_sys_max_cmd_len=65536	# usable default for all BSDs
6600    fi
6601    # And add a safety zone
6602    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6603    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6604    ;;
6605
6606  interix*)
6607    # We know the value 262144 and hardcode it with a safety zone (like BSD)
6608    lt_cv_sys_max_cmd_len=196608
6609    ;;
6610
6611  osf*)
6612    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6613    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6614    # nice to cause kernel panics so lets avoid the loop below.
6615    # First set a reasonable default.
6616    lt_cv_sys_max_cmd_len=16384
6617    #
6618    if test -x /sbin/sysconfig; then
6619      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6620        *1*) lt_cv_sys_max_cmd_len=-1 ;;
6621      esac
6622    fi
6623    ;;
6624  sco3.2v5*)
6625    lt_cv_sys_max_cmd_len=102400
6626    ;;
6627  sysv5* | sco5v6* | sysv4.2uw2*)
6628    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6629    if test -n "$kargmax"; then
6630      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[	 ]//'`
6631    else
6632      lt_cv_sys_max_cmd_len=32768
6633    fi
6634    ;;
6635  *)
6636    lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
6637    if test -n "$lt_cv_sys_max_cmd_len"; then
6638      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6639      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6640    else
6641      # Make teststring a little bigger before we do anything with it.
6642      # a 1K string should be a reasonable start.
6643      for i in 1 2 3 4 5 6 7 8 ; do
6644        teststring=$teststring$teststring
6645      done
6646      SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6647      # If test is not a shell built-in, we'll probably end up computing a
6648      # maximum length that is only half of the actual maximum length, but
6649      # we can't tell.
6650      while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
6651	         = "X$teststring$teststring"; } >/dev/null 2>&1 &&
6652	      test $i != 17 # 1/2 MB should be enough
6653      do
6654        i=`expr $i + 1`
6655        teststring=$teststring$teststring
6656      done
6657      # Only check the string length outside the loop.
6658      lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
6659      teststring=
6660      # Add a significant safety factor because C++ compilers can tack on
6661      # massive amounts of additional arguments before passing them to the
6662      # linker.  It appears as though 1/2 is a usable value.
6663      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6664    fi
6665    ;;
6666  esac
6667
6668fi
6669
6670if test -n $lt_cv_sys_max_cmd_len ; then
6671  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
6672$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
6673else
6674  { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
6675$as_echo "none" >&6; }
6676fi
6677max_cmd_len=$lt_cv_sys_max_cmd_len
6678
6679
6680
6681
6682
6683
6684: ${CP="cp -f"}
6685: ${MV="mv -f"}
6686: ${RM="rm -f"}
6687
6688{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
6689$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
6690# Try some XSI features
6691xsi_shell=no
6692( _lt_dummy="a/b/c"
6693  test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
6694      = c,a/b,, \
6695    && eval 'test $(( 1 + 1 )) -eq 2 \
6696    && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
6697  && xsi_shell=yes
6698{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
6699$as_echo "$xsi_shell" >&6; }
6700
6701
6702{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
6703$as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
6704lt_shell_append=no
6705( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
6706    >/dev/null 2>&1 \
6707  && lt_shell_append=yes
6708{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
6709$as_echo "$lt_shell_append" >&6; }
6710
6711
6712if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
6713  lt_unset=unset
6714else
6715  lt_unset=false
6716fi
6717
6718
6719
6720
6721
6722# test EBCDIC or ASCII
6723case `echo X|tr X '\101'` in
6724 A) # ASCII based system
6725    # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
6726  lt_SP2NL='tr \040 \012'
6727  lt_NL2SP='tr \015\012 \040\040'
6728  ;;
6729 *) # EBCDIC based system
6730  lt_SP2NL='tr \100 \n'
6731  lt_NL2SP='tr \r\n \100\100'
6732  ;;
6733esac
6734
6735
6736
6737
6738
6739
6740
6741
6742
6743{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
6744$as_echo_n "checking for $LD option to reload object files... " >&6; }
6745if test "${lt_cv_ld_reload_flag+set}" = set; then :
6746  $as_echo_n "(cached) " >&6
6747else
6748  lt_cv_ld_reload_flag='-r'
6749fi
6750{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
6751$as_echo "$lt_cv_ld_reload_flag" >&6; }
6752reload_flag=$lt_cv_ld_reload_flag
6753case $reload_flag in
6754"" | " "*) ;;
6755*) reload_flag=" $reload_flag" ;;
6756esac
6757reload_cmds='$LD$reload_flag -o $output$reload_objs'
6758case $host_os in
6759  darwin*)
6760    if test "$GCC" = yes; then
6761      reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
6762    else
6763      reload_cmds='$LD$reload_flag -o $output$reload_objs'
6764    fi
6765    ;;
6766esac
6767
6768
6769
6770
6771
6772
6773
6774
6775
6776if test -n "$ac_tool_prefix"; then
6777  # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
6778set dummy ${ac_tool_prefix}objdump; ac_word=$2
6779{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6780$as_echo_n "checking for $ac_word... " >&6; }
6781if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
6782  $as_echo_n "(cached) " >&6
6783else
6784  if test -n "$OBJDUMP"; then
6785  ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6786else
6787as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6788for as_dir in $PATH
6789do
6790  IFS=$as_save_IFS
6791  test -z "$as_dir" && as_dir=.
6792    for ac_exec_ext in '' $ac_executable_extensions; do
6793  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6794    ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
6795    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6796    break 2
6797  fi
6798done
6799  done
6800IFS=$as_save_IFS
6801
6802fi
6803fi
6804OBJDUMP=$ac_cv_prog_OBJDUMP
6805if test -n "$OBJDUMP"; then
6806  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
6807$as_echo "$OBJDUMP" >&6; }
6808else
6809  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6810$as_echo "no" >&6; }
6811fi
6812
6813
6814fi
6815if test -z "$ac_cv_prog_OBJDUMP"; then
6816  ac_ct_OBJDUMP=$OBJDUMP
6817  # Extract the first word of "objdump", so it can be a program name with args.
6818set dummy objdump; ac_word=$2
6819{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6820$as_echo_n "checking for $ac_word... " >&6; }
6821if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
6822  $as_echo_n "(cached) " >&6
6823else
6824  if test -n "$ac_ct_OBJDUMP"; then
6825  ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6826else
6827as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6828for as_dir in $PATH
6829do
6830  IFS=$as_save_IFS
6831  test -z "$as_dir" && as_dir=.
6832    for ac_exec_ext in '' $ac_executable_extensions; do
6833  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6834    ac_cv_prog_ac_ct_OBJDUMP="objdump"
6835    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6836    break 2
6837  fi
6838done
6839  done
6840IFS=$as_save_IFS
6841
6842fi
6843fi
6844ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6845if test -n "$ac_ct_OBJDUMP"; then
6846  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
6847$as_echo "$ac_ct_OBJDUMP" >&6; }
6848else
6849  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6850$as_echo "no" >&6; }
6851fi
6852
6853  if test "x$ac_ct_OBJDUMP" = x; then
6854    OBJDUMP="false"
6855  else
6856    case $cross_compiling:$ac_tool_warned in
6857yes:)
6858{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6859$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6860ac_tool_warned=yes ;;
6861esac
6862    OBJDUMP=$ac_ct_OBJDUMP
6863  fi
6864else
6865  OBJDUMP="$ac_cv_prog_OBJDUMP"
6866fi
6867
6868test -z "$OBJDUMP" && OBJDUMP=objdump
6869
6870
6871
6872
6873
6874
6875
6876
6877
6878{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
6879$as_echo_n "checking how to recognize dependent libraries... " >&6; }
6880if test "${lt_cv_deplibs_check_method+set}" = set; then :
6881  $as_echo_n "(cached) " >&6
6882else
6883  lt_cv_file_magic_cmd='$MAGIC_CMD'
6884lt_cv_file_magic_test_file=
6885lt_cv_deplibs_check_method='unknown'
6886# Need to set the preceding variable on all platforms that support
6887# interlibrary dependencies.
6888# 'none' -- dependencies not supported.
6889# `unknown' -- same as none, but documents that we really don't know.
6890# 'pass_all' -- all dependencies passed with no checks.
6891# 'test_compile' -- check by making test program.
6892# 'file_magic [[regex]]' -- check by looking for files in library path
6893# which responds to the $file_magic_cmd with a given extended regex.
6894# If you have `file' or equivalent on your system and you're not sure
6895# whether `pass_all' will *always* work, you probably want this one.
6896
6897case $host_os in
6898aix[4-9]*)
6899  lt_cv_deplibs_check_method=pass_all
6900  ;;
6901
6902beos*)
6903  lt_cv_deplibs_check_method=pass_all
6904  ;;
6905
6906bsdi[45]*)
6907  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6908  lt_cv_file_magic_cmd='/usr/bin/file -L'
6909  lt_cv_file_magic_test_file=/shlib/libc.so
6910  ;;
6911
6912cygwin*)
6913  # func_win32_libid is a shell function defined in ltmain.sh
6914  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6915  lt_cv_file_magic_cmd='func_win32_libid'
6916  ;;
6917
6918mingw* | pw32*)
6919  # Base MSYS/MinGW do not provide the 'file' command needed by
6920  # func_win32_libid shell function, so use a weaker test based on 'objdump',
6921  # unless we find 'file', for example because we are cross-compiling.
6922  # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
6923  if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
6924    lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6925    lt_cv_file_magic_cmd='func_win32_libid'
6926  else
6927    lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
6928    lt_cv_file_magic_cmd='$OBJDUMP -f'
6929  fi
6930  ;;
6931
6932cegcc*)
6933  # use the weaker test based on 'objdump'. See mingw*.
6934  lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6935  lt_cv_file_magic_cmd='$OBJDUMP -f'
6936  ;;
6937
6938darwin* | rhapsody*)
6939  lt_cv_deplibs_check_method=pass_all
6940  ;;
6941
6942freebsd* | dragonfly*)
6943  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6944    case $host_cpu in
6945    i*86 )
6946      # Not sure whether the presence of OpenBSD here was a mistake.
6947      # Let's accept both of them until this is cleared up.
6948      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6949      lt_cv_file_magic_cmd=/usr/bin/file
6950      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6951      ;;
6952    esac
6953  else
6954    lt_cv_deplibs_check_method=pass_all
6955  fi
6956  ;;
6957
6958gnu*)
6959  lt_cv_deplibs_check_method=pass_all
6960  ;;
6961
6962haiku*)
6963  lt_cv_deplibs_check_method=pass_all
6964  ;;
6965
6966hpux10.20* | hpux11*)
6967  lt_cv_file_magic_cmd=/usr/bin/file
6968  case $host_cpu in
6969  ia64*)
6970    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6971    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6972    ;;
6973  hppa*64*)
6974    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]'
6975    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6976    ;;
6977  *)
6978    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
6979    lt_cv_file_magic_test_file=/usr/lib/libc.sl
6980    ;;
6981  esac
6982  ;;
6983
6984interix[3-9]*)
6985  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6986  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6987  ;;
6988
6989irix5* | irix6* | nonstopux*)
6990  case $LD in
6991  *-32|*"-32 ") libmagic=32-bit;;
6992  *-n32|*"-n32 ") libmagic=N32;;
6993  *-64|*"-64 ") libmagic=64-bit;;
6994  *) libmagic=never-match;;
6995  esac
6996  lt_cv_deplibs_check_method=pass_all
6997  ;;
6998
6999# This must be Linux ELF.
7000linux* | k*bsd*-gnu | kopensolaris*-gnu)
7001  lt_cv_deplibs_check_method=pass_all
7002  ;;
7003
7004netbsd*)
7005  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
7006    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
7007  else
7008    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
7009  fi
7010  ;;
7011
7012newos6*)
7013  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
7014  lt_cv_file_magic_cmd=/usr/bin/file
7015  lt_cv_file_magic_test_file=/usr/lib/libnls.so
7016  ;;
7017
7018*nto* | *qnx*)
7019  lt_cv_deplibs_check_method=pass_all
7020  ;;
7021
7022openbsd*)
7023  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7024    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
7025  else
7026    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
7027  fi
7028  ;;
7029
7030osf3* | osf4* | osf5*)
7031  lt_cv_deplibs_check_method=pass_all
7032  ;;
7033
7034rdos*)
7035  lt_cv_deplibs_check_method=pass_all
7036  ;;
7037
7038solaris*)
7039  lt_cv_deplibs_check_method=pass_all
7040  ;;
7041
7042sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
7043  lt_cv_deplibs_check_method=pass_all
7044  ;;
7045
7046sysv4 | sysv4.3*)
7047  case $host_vendor in
7048  motorola)
7049    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]'
7050    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
7051    ;;
7052  ncr)
7053    lt_cv_deplibs_check_method=pass_all
7054    ;;
7055  sequent)
7056    lt_cv_file_magic_cmd='/bin/file'
7057    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
7058    ;;
7059  sni)
7060    lt_cv_file_magic_cmd='/bin/file'
7061    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
7062    lt_cv_file_magic_test_file=/lib/libc.so
7063    ;;
7064  siemens)
7065    lt_cv_deplibs_check_method=pass_all
7066    ;;
7067  pc)
7068    lt_cv_deplibs_check_method=pass_all
7069    ;;
7070  esac
7071  ;;
7072
7073tpf*)
7074  lt_cv_deplibs_check_method=pass_all
7075  ;;
7076esac
7077
7078fi
7079{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
7080$as_echo "$lt_cv_deplibs_check_method" >&6; }
7081file_magic_cmd=$lt_cv_file_magic_cmd
7082deplibs_check_method=$lt_cv_deplibs_check_method
7083test -z "$deplibs_check_method" && deplibs_check_method=unknown
7084
7085
7086
7087
7088
7089
7090
7091
7092
7093
7094
7095
7096if test -n "$ac_tool_prefix"; then
7097  # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
7098set dummy ${ac_tool_prefix}ar; ac_word=$2
7099{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7100$as_echo_n "checking for $ac_word... " >&6; }
7101if test "${ac_cv_prog_AR+set}" = set; then :
7102  $as_echo_n "(cached) " >&6
7103else
7104  if test -n "$AR"; then
7105  ac_cv_prog_AR="$AR" # Let the user override the test.
7106else
7107as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7108for as_dir in $PATH
7109do
7110  IFS=$as_save_IFS
7111  test -z "$as_dir" && as_dir=.
7112    for ac_exec_ext in '' $ac_executable_extensions; do
7113  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7114    ac_cv_prog_AR="${ac_tool_prefix}ar"
7115    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7116    break 2
7117  fi
7118done
7119  done
7120IFS=$as_save_IFS
7121
7122fi
7123fi
7124AR=$ac_cv_prog_AR
7125if test -n "$AR"; then
7126  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
7127$as_echo "$AR" >&6; }
7128else
7129  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7130$as_echo "no" >&6; }
7131fi
7132
7133
7134fi
7135if test -z "$ac_cv_prog_AR"; then
7136  ac_ct_AR=$AR
7137  # Extract the first word of "ar", so it can be a program name with args.
7138set dummy ar; ac_word=$2
7139{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7140$as_echo_n "checking for $ac_word... " >&6; }
7141if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
7142  $as_echo_n "(cached) " >&6
7143else
7144  if test -n "$ac_ct_AR"; then
7145  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
7146else
7147as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7148for as_dir in $PATH
7149do
7150  IFS=$as_save_IFS
7151  test -z "$as_dir" && as_dir=.
7152    for ac_exec_ext in '' $ac_executable_extensions; do
7153  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7154    ac_cv_prog_ac_ct_AR="ar"
7155    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7156    break 2
7157  fi
7158done
7159  done
7160IFS=$as_save_IFS
7161
7162fi
7163fi
7164ac_ct_AR=$ac_cv_prog_ac_ct_AR
7165if test -n "$ac_ct_AR"; then
7166  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
7167$as_echo "$ac_ct_AR" >&6; }
7168else
7169  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7170$as_echo "no" >&6; }
7171fi
7172
7173  if test "x$ac_ct_AR" = x; then
7174    AR="false"
7175  else
7176    case $cross_compiling:$ac_tool_warned in
7177yes:)
7178{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7179$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7180ac_tool_warned=yes ;;
7181esac
7182    AR=$ac_ct_AR
7183  fi
7184else
7185  AR="$ac_cv_prog_AR"
7186fi
7187
7188test -z "$AR" && AR=ar
7189test -z "$AR_FLAGS" && AR_FLAGS=cru
7190
7191
7192
7193
7194
7195
7196
7197
7198
7199
7200
7201if test -n "$ac_tool_prefix"; then
7202  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
7203set dummy ${ac_tool_prefix}strip; ac_word=$2
7204{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7205$as_echo_n "checking for $ac_word... " >&6; }
7206if test "${ac_cv_prog_STRIP+set}" = set; then :
7207  $as_echo_n "(cached) " >&6
7208else
7209  if test -n "$STRIP"; then
7210  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7211else
7212as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7213for as_dir in $PATH
7214do
7215  IFS=$as_save_IFS
7216  test -z "$as_dir" && as_dir=.
7217    for ac_exec_ext in '' $ac_executable_extensions; do
7218  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7219    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
7220    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7221    break 2
7222  fi
7223done
7224  done
7225IFS=$as_save_IFS
7226
7227fi
7228fi
7229STRIP=$ac_cv_prog_STRIP
7230if test -n "$STRIP"; then
7231  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
7232$as_echo "$STRIP" >&6; }
7233else
7234  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7235$as_echo "no" >&6; }
7236fi
7237
7238
7239fi
7240if test -z "$ac_cv_prog_STRIP"; then
7241  ac_ct_STRIP=$STRIP
7242  # Extract the first word of "strip", so it can be a program name with args.
7243set dummy strip; ac_word=$2
7244{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7245$as_echo_n "checking for $ac_word... " >&6; }
7246if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
7247  $as_echo_n "(cached) " >&6
7248else
7249  if test -n "$ac_ct_STRIP"; then
7250  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
7251else
7252as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7253for as_dir in $PATH
7254do
7255  IFS=$as_save_IFS
7256  test -z "$as_dir" && as_dir=.
7257    for ac_exec_ext in '' $ac_executable_extensions; do
7258  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7259    ac_cv_prog_ac_ct_STRIP="strip"
7260    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7261    break 2
7262  fi
7263done
7264  done
7265IFS=$as_save_IFS
7266
7267fi
7268fi
7269ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
7270if test -n "$ac_ct_STRIP"; then
7271  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
7272$as_echo "$ac_ct_STRIP" >&6; }
7273else
7274  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7275$as_echo "no" >&6; }
7276fi
7277
7278  if test "x$ac_ct_STRIP" = x; then
7279    STRIP=":"
7280  else
7281    case $cross_compiling:$ac_tool_warned in
7282yes:)
7283{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7284$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7285ac_tool_warned=yes ;;
7286esac
7287    STRIP=$ac_ct_STRIP
7288  fi
7289else
7290  STRIP="$ac_cv_prog_STRIP"
7291fi
7292
7293test -z "$STRIP" && STRIP=:
7294
7295
7296
7297
7298
7299
7300if test -n "$ac_tool_prefix"; then
7301  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7302set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7303{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7304$as_echo_n "checking for $ac_word... " >&6; }
7305if test "${ac_cv_prog_RANLIB+set}" = set; then :
7306  $as_echo_n "(cached) " >&6
7307else
7308  if test -n "$RANLIB"; then
7309  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7310else
7311as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7312for as_dir in $PATH
7313do
7314  IFS=$as_save_IFS
7315  test -z "$as_dir" && as_dir=.
7316    for ac_exec_ext in '' $ac_executable_extensions; do
7317  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7318    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7319    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7320    break 2
7321  fi
7322done
7323  done
7324IFS=$as_save_IFS
7325
7326fi
7327fi
7328RANLIB=$ac_cv_prog_RANLIB
7329if test -n "$RANLIB"; then
7330  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
7331$as_echo "$RANLIB" >&6; }
7332else
7333  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7334$as_echo "no" >&6; }
7335fi
7336
7337
7338fi
7339if test -z "$ac_cv_prog_RANLIB"; then
7340  ac_ct_RANLIB=$RANLIB
7341  # Extract the first word of "ranlib", so it can be a program name with args.
7342set dummy ranlib; ac_word=$2
7343{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7344$as_echo_n "checking for $ac_word... " >&6; }
7345if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
7346  $as_echo_n "(cached) " >&6
7347else
7348  if test -n "$ac_ct_RANLIB"; then
7349  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7350else
7351as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7352for as_dir in $PATH
7353do
7354  IFS=$as_save_IFS
7355  test -z "$as_dir" && as_dir=.
7356    for ac_exec_ext in '' $ac_executable_extensions; do
7357  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7358    ac_cv_prog_ac_ct_RANLIB="ranlib"
7359    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7360    break 2
7361  fi
7362done
7363  done
7364IFS=$as_save_IFS
7365
7366fi
7367fi
7368ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7369if test -n "$ac_ct_RANLIB"; then
7370  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
7371$as_echo "$ac_ct_RANLIB" >&6; }
7372else
7373  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7374$as_echo "no" >&6; }
7375fi
7376
7377  if test "x$ac_ct_RANLIB" = x; then
7378    RANLIB=":"
7379  else
7380    case $cross_compiling:$ac_tool_warned in
7381yes:)
7382{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7383$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7384ac_tool_warned=yes ;;
7385esac
7386    RANLIB=$ac_ct_RANLIB
7387  fi
7388else
7389  RANLIB="$ac_cv_prog_RANLIB"
7390fi
7391
7392test -z "$RANLIB" && RANLIB=:
7393
7394
7395
7396
7397
7398
7399# Determine commands to create old-style static archives.
7400old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
7401old_postinstall_cmds='chmod 644 $oldlib'
7402old_postuninstall_cmds=
7403
7404if test -n "$RANLIB"; then
7405  case $host_os in
7406  openbsd*)
7407    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
7408    ;;
7409  *)
7410    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
7411    ;;
7412  esac
7413  old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
7414fi
7415
7416case $host_os in
7417  darwin*)
7418    lock_old_archive_extraction=yes ;;
7419  *)
7420    lock_old_archive_extraction=no ;;
7421esac
7422
7423
7424
7425
7426
7427
7428
7429
7430
7431
7432
7433
7434
7435
7436
7437
7438
7439
7440
7441
7442
7443
7444
7445
7446
7447
7448
7449
7450
7451
7452
7453
7454
7455
7456
7457
7458
7459
7460
7461# If no C compiler was specified, use CC.
7462LTCC=${LTCC-"$CC"}
7463
7464# If no C compiler flags were specified, use CFLAGS.
7465LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7466
7467# Allow CC to be a program name with arguments.
7468compiler=$CC
7469
7470
7471# Check for command to grab the raw symbol name followed by C symbol from nm.
7472{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
7473$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
7474if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
7475  $as_echo_n "(cached) " >&6
7476else
7477
7478# These are sane defaults that work on at least a few old systems.
7479# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
7480
7481# Character class describing NM global symbol codes.
7482symcode='[BCDEGRST]'
7483
7484# Regexp to match symbols that can be accessed directly from C.
7485sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7486
7487# Define system-specific variables.
7488case $host_os in
7489aix*)
7490  symcode='[BCDT]'
7491  ;;
7492cygwin* | mingw* | pw32* | cegcc*)
7493  symcode='[ABCDGISTW]'
7494  ;;
7495hpux*)
7496  if test "$host_cpu" = ia64; then
7497    symcode='[ABCDEGRST]'
7498  fi
7499  ;;
7500irix* | nonstopux*)
7501  symcode='[BCDEGRST]'
7502  ;;
7503osf*)
7504  symcode='[BCDEGQRST]'
7505  ;;
7506solaris*)
7507  symcode='[BDRT]'
7508  ;;
7509sco3.2v5*)
7510  symcode='[DT]'
7511  ;;
7512sysv4.2uw2*)
7513  symcode='[DT]'
7514  ;;
7515sysv5* | sco5v6* | unixware* | OpenUNIX*)
7516  symcode='[ABDT]'
7517  ;;
7518sysv4)
7519  symcode='[DFNSTU]'
7520  ;;
7521esac
7522
7523# If we're using GNU nm, then use its standard symbol codes.
7524case `$NM -V 2>&1` in
7525*GNU* | *'with BFD'*)
7526  symcode='[ABCDGIRSTW]' ;;
7527esac
7528
7529# Transform an extracted symbol line into a proper C declaration.
7530# Some systems (esp. on ia64) link data and code symbols differently,
7531# so use this general approach.
7532lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7533
7534# Transform an extracted symbol line into symbol name and symbol address
7535lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'"
7536lt_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'"
7537
7538# Handle CRLF in mingw tool chain
7539opt_cr=
7540case $build_os in
7541mingw*)
7542  opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7543  ;;
7544esac
7545
7546# Try without a prefix underscore, then with it.
7547for ac_symprfx in "" "_"; do
7548
7549  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7550  symxfrm="\\1 $ac_symprfx\\2 \\2"
7551
7552  # Write the raw and C identifiers.
7553  if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7554    # Fake it for dumpbin and say T for any non-static function
7555    # and D for any global variable.
7556    # Also find C++ and __fastcall symbols from MSVC++,
7557    # which start with @ or ?.
7558    lt_cv_sys_global_symbol_pipe="$AWK '"\
7559"     {last_section=section; section=\$ 3};"\
7560"     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
7561"     \$ 0!~/External *\|/{next};"\
7562"     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
7563"     {if(hide[section]) next};"\
7564"     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
7565"     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
7566"     s[1]~/^[@?]/{print s[1], s[1]; next};"\
7567"     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
7568"     ' prfx=^$ac_symprfx"
7569  else
7570    lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[	 ]\($symcode$symcode*\)[	 ][	 ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7571  fi
7572
7573  # Check to see that the pipe works correctly.
7574  pipe_works=no
7575
7576  rm -f conftest*
7577  cat > conftest.$ac_ext <<_LT_EOF
7578#ifdef __cplusplus
7579extern "C" {
7580#endif
7581char nm_test_var;
7582void nm_test_func(void);
7583void nm_test_func(void){}
7584#ifdef __cplusplus
7585}
7586#endif
7587int main(){nm_test_var='a';nm_test_func();return(0);}
7588_LT_EOF
7589
7590  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7591  (eval $ac_compile) 2>&5
7592  ac_status=$?
7593  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7594  test $ac_status = 0; }; then
7595    # Now try to grab the symbols.
7596    nlist=conftest.nm
7597    if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
7598  (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
7599  ac_status=$?
7600  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7601  test $ac_status = 0; } && test -s "$nlist"; then
7602      # Try sorting and uniquifying the output.
7603      if sort "$nlist" | uniq > "$nlist"T; then
7604	mv -f "$nlist"T "$nlist"
7605      else
7606	rm -f "$nlist"T
7607      fi
7608
7609      # Make sure that we snagged all the symbols we need.
7610      if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
7611	if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
7612	  cat <<_LT_EOF > conftest.$ac_ext
7613#ifdef __cplusplus
7614extern "C" {
7615#endif
7616
7617_LT_EOF
7618	  # Now generate the symbol file.
7619	  eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
7620
7621	  cat <<_LT_EOF >> conftest.$ac_ext
7622
7623/* The mapping between symbol names and symbols.  */
7624const struct {
7625  const char *name;
7626  void       *address;
7627}
7628lt__PROGRAM__LTX_preloaded_symbols[] =
7629{
7630  { "@PROGRAM@", (void *) 0 },
7631_LT_EOF
7632	  $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
7633	  cat <<\_LT_EOF >> conftest.$ac_ext
7634  {0, (void *) 0}
7635};
7636
7637/* This works around a problem in FreeBSD linker */
7638#ifdef FREEBSD_WORKAROUND
7639static const void *lt_preloaded_setup() {
7640  return lt__PROGRAM__LTX_preloaded_symbols;
7641}
7642#endif
7643
7644#ifdef __cplusplus
7645}
7646#endif
7647_LT_EOF
7648	  # Now try linking the two files.
7649	  mv conftest.$ac_objext conftstm.$ac_objext
7650	  lt_save_LIBS="$LIBS"
7651	  lt_save_CFLAGS="$CFLAGS"
7652	  LIBS="conftstm.$ac_objext"
7653	  CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7654	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
7655  (eval $ac_link) 2>&5
7656  ac_status=$?
7657  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7658  test $ac_status = 0; } && test -s conftest${ac_exeext}; then
7659	    pipe_works=yes
7660	  fi
7661	  LIBS="$lt_save_LIBS"
7662	  CFLAGS="$lt_save_CFLAGS"
7663	else
7664	  echo "cannot find nm_test_func in $nlist" >&5
7665	fi
7666      else
7667	echo "cannot find nm_test_var in $nlist" >&5
7668      fi
7669    else
7670      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7671    fi
7672  else
7673    echo "$progname: failed program was:" >&5
7674    cat conftest.$ac_ext >&5
7675  fi
7676  rm -rf conftest* conftst*
7677
7678  # Do not use the global_symbol_pipe unless it works.
7679  if test "$pipe_works" = yes; then
7680    break
7681  else
7682    lt_cv_sys_global_symbol_pipe=
7683  fi
7684done
7685
7686fi
7687
7688if test -z "$lt_cv_sys_global_symbol_pipe"; then
7689  lt_cv_sys_global_symbol_to_cdecl=
7690fi
7691if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7692  { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
7693$as_echo "failed" >&6; }
7694else
7695  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
7696$as_echo "ok" >&6; }
7697fi
7698
7699
7700
7701
7702
7703
7704
7705
7706
7707
7708
7709
7710
7711
7712
7713
7714
7715
7716
7717
7718
7719
7720# Check whether --enable-libtool-lock was given.
7721if test "${enable_libtool_lock+set}" = set; then :
7722  enableval=$enable_libtool_lock;
7723fi
7724
7725test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7726
7727# Some flags need to be propagated to the compiler or linker for good
7728# libtool support.
7729case $host in
7730ia64-*-hpux*)
7731  # Find out which ABI we are using.
7732  echo 'int i;' > conftest.$ac_ext
7733  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7734  (eval $ac_compile) 2>&5
7735  ac_status=$?
7736  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7737  test $ac_status = 0; }; then
7738    case `/usr/bin/file conftest.$ac_objext` in
7739      *ELF-32*)
7740	HPUX_IA64_MODE="32"
7741	;;
7742      *ELF-64*)
7743	HPUX_IA64_MODE="64"
7744	;;
7745    esac
7746  fi
7747  rm -rf conftest*
7748  ;;
7749*-*-irix6*)
7750  # Find out which ABI we are using.
7751  echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7752  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7753  (eval $ac_compile) 2>&5
7754  ac_status=$?
7755  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7756  test $ac_status = 0; }; then
7757    if test "$lt_cv_prog_gnu_ld" = yes; then
7758      case `/usr/bin/file conftest.$ac_objext` in
7759	*32-bit*)
7760	  LD="${LD-ld} -melf32bsmip"
7761	  ;;
7762	*N32*)
7763	  LD="${LD-ld} -melf32bmipn32"
7764	  ;;
7765	*64-bit*)
7766	  LD="${LD-ld} -melf64bmip"
7767	;;
7768      esac
7769    else
7770      case `/usr/bin/file conftest.$ac_objext` in
7771	*32-bit*)
7772	  LD="${LD-ld} -32"
7773	  ;;
7774	*N32*)
7775	  LD="${LD-ld} -n32"
7776	  ;;
7777	*64-bit*)
7778	  LD="${LD-ld} -64"
7779	  ;;
7780      esac
7781    fi
7782  fi
7783  rm -rf conftest*
7784  ;;
7785
7786x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
7787s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
7788  # Find out which ABI we are using.
7789  echo 'int i;' > conftest.$ac_ext
7790  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7791  (eval $ac_compile) 2>&5
7792  ac_status=$?
7793  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7794  test $ac_status = 0; }; then
7795    case `/usr/bin/file conftest.o` in
7796      *32-bit*)
7797	case $host in
7798	  x86_64-*kfreebsd*-gnu)
7799	    LD="${LD-ld} -m elf_i386_fbsd"
7800	    ;;
7801	  x86_64-*linux*)
7802	    case `/usr/bin/file conftest.o` in
7803	      *x86-64*)
7804		LD="${LD-ld} -m elf32_x86_64"
7805		;;
7806	      *)
7807		LD="${LD-ld} -m elf_i386"
7808		;;
7809	    esac
7810	    ;;
7811	  powerpc64le-*linux*)
7812	    LD="${LD-ld} -m elf32lppclinux"
7813	    ;;
7814	  powerpc64-*linux*)
7815	    LD="${LD-ld} -m elf32ppclinux"
7816	    ;;
7817	  s390x-*linux*)
7818	    LD="${LD-ld} -m elf_s390"
7819	    ;;
7820	  sparc64-*linux*)
7821	    LD="${LD-ld} -m elf32_sparc"
7822	    ;;
7823	esac
7824	;;
7825      *64-bit*)
7826	case $host in
7827	  x86_64-*kfreebsd*-gnu)
7828	    LD="${LD-ld} -m elf_x86_64_fbsd"
7829	    ;;
7830	  x86_64-*linux*)
7831	    LD="${LD-ld} -m elf_x86_64"
7832	    ;;
7833	  powerpcle-*linux*)
7834	    LD="${LD-ld} -m elf64lppc"
7835	    ;;
7836	  powerpc-*linux*)
7837	    LD="${LD-ld} -m elf64ppc"
7838	    ;;
7839	  s390*-*linux*|s390*-*tpf*)
7840	    LD="${LD-ld} -m elf64_s390"
7841	    ;;
7842	  sparc*-*linux*)
7843	    LD="${LD-ld} -m elf64_sparc"
7844	    ;;
7845	esac
7846	;;
7847    esac
7848  fi
7849  rm -rf conftest*
7850  ;;
7851
7852*-*-sco3.2v5*)
7853  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7854  SAVE_CFLAGS="$CFLAGS"
7855  CFLAGS="$CFLAGS -belf"
7856  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
7857$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
7858if test "${lt_cv_cc_needs_belf+set}" = set; then :
7859  $as_echo_n "(cached) " >&6
7860else
7861  ac_ext=c
7862ac_cpp='$CPP $CPPFLAGS'
7863ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7864ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7865ac_compiler_gnu=$ac_cv_c_compiler_gnu
7866
7867     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7868/* end confdefs.h.  */
7869
7870int
7871main ()
7872{
7873
7874  ;
7875  return 0;
7876}
7877_ACEOF
7878if ac_fn_c_try_link "$LINENO"; then :
7879  lt_cv_cc_needs_belf=yes
7880else
7881  lt_cv_cc_needs_belf=no
7882fi
7883rm -f core conftest.err conftest.$ac_objext \
7884    conftest$ac_exeext conftest.$ac_ext
7885     ac_ext=c
7886ac_cpp='$CPP $CPPFLAGS'
7887ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7888ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7889ac_compiler_gnu=$ac_cv_c_compiler_gnu
7890
7891fi
7892{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
7893$as_echo "$lt_cv_cc_needs_belf" >&6; }
7894  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
7895    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7896    CFLAGS="$SAVE_CFLAGS"
7897  fi
7898  ;;
7899sparc*-*solaris*)
7900  # Find out which ABI we are using.
7901  echo 'int i;' > conftest.$ac_ext
7902  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7903  (eval $ac_compile) 2>&5
7904  ac_status=$?
7905  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7906  test $ac_status = 0; }; then
7907    case `/usr/bin/file conftest.o` in
7908    *64-bit*)
7909      case $lt_cv_prog_gnu_ld in
7910      yes*) LD="${LD-ld} -m elf64_sparc" ;;
7911      *)
7912	if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7913	  LD="${LD-ld} -64"
7914	fi
7915	;;
7916      esac
7917      ;;
7918    esac
7919  fi
7920  rm -rf conftest*
7921  ;;
7922esac
7923
7924need_locks="$enable_libtool_lock"
7925
7926
7927  case $host_os in
7928    rhapsody* | darwin*)
7929    if test -n "$ac_tool_prefix"; then
7930  # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7931set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7932{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7933$as_echo_n "checking for $ac_word... " >&6; }
7934if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
7935  $as_echo_n "(cached) " >&6
7936else
7937  if test -n "$DSYMUTIL"; then
7938  ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7939else
7940as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7941for as_dir in $PATH
7942do
7943  IFS=$as_save_IFS
7944  test -z "$as_dir" && as_dir=.
7945    for ac_exec_ext in '' $ac_executable_extensions; do
7946  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7947    ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7948    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7949    break 2
7950  fi
7951done
7952  done
7953IFS=$as_save_IFS
7954
7955fi
7956fi
7957DSYMUTIL=$ac_cv_prog_DSYMUTIL
7958if test -n "$DSYMUTIL"; then
7959  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7960$as_echo "$DSYMUTIL" >&6; }
7961else
7962  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7963$as_echo "no" >&6; }
7964fi
7965
7966
7967fi
7968if test -z "$ac_cv_prog_DSYMUTIL"; then
7969  ac_ct_DSYMUTIL=$DSYMUTIL
7970  # Extract the first word of "dsymutil", so it can be a program name with args.
7971set dummy dsymutil; ac_word=$2
7972{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7973$as_echo_n "checking for $ac_word... " >&6; }
7974if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
7975  $as_echo_n "(cached) " >&6
7976else
7977  if test -n "$ac_ct_DSYMUTIL"; then
7978  ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7979else
7980as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7981for as_dir in $PATH
7982do
7983  IFS=$as_save_IFS
7984  test -z "$as_dir" && as_dir=.
7985    for ac_exec_ext in '' $ac_executable_extensions; do
7986  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7987    ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7988    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7989    break 2
7990  fi
7991done
7992  done
7993IFS=$as_save_IFS
7994
7995fi
7996fi
7997ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7998if test -n "$ac_ct_DSYMUTIL"; then
7999  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
8000$as_echo "$ac_ct_DSYMUTIL" >&6; }
8001else
8002  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8003$as_echo "no" >&6; }
8004fi
8005
8006  if test "x$ac_ct_DSYMUTIL" = x; then
8007    DSYMUTIL=":"
8008  else
8009    case $cross_compiling:$ac_tool_warned in
8010yes:)
8011{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8012$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8013ac_tool_warned=yes ;;
8014esac
8015    DSYMUTIL=$ac_ct_DSYMUTIL
8016  fi
8017else
8018  DSYMUTIL="$ac_cv_prog_DSYMUTIL"
8019fi
8020
8021    if test -n "$ac_tool_prefix"; then
8022  # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
8023set dummy ${ac_tool_prefix}nmedit; ac_word=$2
8024{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8025$as_echo_n "checking for $ac_word... " >&6; }
8026if test "${ac_cv_prog_NMEDIT+set}" = set; then :
8027  $as_echo_n "(cached) " >&6
8028else
8029  if test -n "$NMEDIT"; then
8030  ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
8031else
8032as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8033for as_dir in $PATH
8034do
8035  IFS=$as_save_IFS
8036  test -z "$as_dir" && as_dir=.
8037    for ac_exec_ext in '' $ac_executable_extensions; do
8038  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8039    ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
8040    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8041    break 2
8042  fi
8043done
8044  done
8045IFS=$as_save_IFS
8046
8047fi
8048fi
8049NMEDIT=$ac_cv_prog_NMEDIT
8050if test -n "$NMEDIT"; then
8051  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
8052$as_echo "$NMEDIT" >&6; }
8053else
8054  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8055$as_echo "no" >&6; }
8056fi
8057
8058
8059fi
8060if test -z "$ac_cv_prog_NMEDIT"; then
8061  ac_ct_NMEDIT=$NMEDIT
8062  # Extract the first word of "nmedit", so it can be a program name with args.
8063set dummy nmedit; ac_word=$2
8064{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8065$as_echo_n "checking for $ac_word... " >&6; }
8066if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
8067  $as_echo_n "(cached) " >&6
8068else
8069  if test -n "$ac_ct_NMEDIT"; then
8070  ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
8071else
8072as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8073for as_dir in $PATH
8074do
8075  IFS=$as_save_IFS
8076  test -z "$as_dir" && as_dir=.
8077    for ac_exec_ext in '' $ac_executable_extensions; do
8078  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8079    ac_cv_prog_ac_ct_NMEDIT="nmedit"
8080    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8081    break 2
8082  fi
8083done
8084  done
8085IFS=$as_save_IFS
8086
8087fi
8088fi
8089ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
8090if test -n "$ac_ct_NMEDIT"; then
8091  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
8092$as_echo "$ac_ct_NMEDIT" >&6; }
8093else
8094  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8095$as_echo "no" >&6; }
8096fi
8097
8098  if test "x$ac_ct_NMEDIT" = x; then
8099    NMEDIT=":"
8100  else
8101    case $cross_compiling:$ac_tool_warned in
8102yes:)
8103{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8104$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8105ac_tool_warned=yes ;;
8106esac
8107    NMEDIT=$ac_ct_NMEDIT
8108  fi
8109else
8110  NMEDIT="$ac_cv_prog_NMEDIT"
8111fi
8112
8113    if test -n "$ac_tool_prefix"; then
8114  # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
8115set dummy ${ac_tool_prefix}lipo; ac_word=$2
8116{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8117$as_echo_n "checking for $ac_word... " >&6; }
8118if test "${ac_cv_prog_LIPO+set}" = set; then :
8119  $as_echo_n "(cached) " >&6
8120else
8121  if test -n "$LIPO"; then
8122  ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8123else
8124as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8125for as_dir in $PATH
8126do
8127  IFS=$as_save_IFS
8128  test -z "$as_dir" && as_dir=.
8129    for ac_exec_ext in '' $ac_executable_extensions; do
8130  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8131    ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
8132    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8133    break 2
8134  fi
8135done
8136  done
8137IFS=$as_save_IFS
8138
8139fi
8140fi
8141LIPO=$ac_cv_prog_LIPO
8142if test -n "$LIPO"; then
8143  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8144$as_echo "$LIPO" >&6; }
8145else
8146  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8147$as_echo "no" >&6; }
8148fi
8149
8150
8151fi
8152if test -z "$ac_cv_prog_LIPO"; then
8153  ac_ct_LIPO=$LIPO
8154  # Extract the first word of "lipo", so it can be a program name with args.
8155set dummy lipo; ac_word=$2
8156{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8157$as_echo_n "checking for $ac_word... " >&6; }
8158if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
8159  $as_echo_n "(cached) " >&6
8160else
8161  if test -n "$ac_ct_LIPO"; then
8162  ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
8163else
8164as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8165for as_dir in $PATH
8166do
8167  IFS=$as_save_IFS
8168  test -z "$as_dir" && as_dir=.
8169    for ac_exec_ext in '' $ac_executable_extensions; do
8170  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8171    ac_cv_prog_ac_ct_LIPO="lipo"
8172    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8173    break 2
8174  fi
8175done
8176  done
8177IFS=$as_save_IFS
8178
8179fi
8180fi
8181ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
8182if test -n "$ac_ct_LIPO"; then
8183  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
8184$as_echo "$ac_ct_LIPO" >&6; }
8185else
8186  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8187$as_echo "no" >&6; }
8188fi
8189
8190  if test "x$ac_ct_LIPO" = x; then
8191    LIPO=":"
8192  else
8193    case $cross_compiling:$ac_tool_warned in
8194yes:)
8195{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8196$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8197ac_tool_warned=yes ;;
8198esac
8199    LIPO=$ac_ct_LIPO
8200  fi
8201else
8202  LIPO="$ac_cv_prog_LIPO"
8203fi
8204
8205    if test -n "$ac_tool_prefix"; then
8206  # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
8207set dummy ${ac_tool_prefix}otool; ac_word=$2
8208{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8209$as_echo_n "checking for $ac_word... " >&6; }
8210if test "${ac_cv_prog_OTOOL+set}" = set; then :
8211  $as_echo_n "(cached) " >&6
8212else
8213  if test -n "$OTOOL"; then
8214  ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
8215else
8216as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8217for as_dir in $PATH
8218do
8219  IFS=$as_save_IFS
8220  test -z "$as_dir" && as_dir=.
8221    for ac_exec_ext in '' $ac_executable_extensions; do
8222  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8223    ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
8224    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8225    break 2
8226  fi
8227done
8228  done
8229IFS=$as_save_IFS
8230
8231fi
8232fi
8233OTOOL=$ac_cv_prog_OTOOL
8234if test -n "$OTOOL"; then
8235  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
8236$as_echo "$OTOOL" >&6; }
8237else
8238  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8239$as_echo "no" >&6; }
8240fi
8241
8242
8243fi
8244if test -z "$ac_cv_prog_OTOOL"; then
8245  ac_ct_OTOOL=$OTOOL
8246  # Extract the first word of "otool", so it can be a program name with args.
8247set dummy otool; ac_word=$2
8248{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8249$as_echo_n "checking for $ac_word... " >&6; }
8250if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
8251  $as_echo_n "(cached) " >&6
8252else
8253  if test -n "$ac_ct_OTOOL"; then
8254  ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
8255else
8256as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8257for as_dir in $PATH
8258do
8259  IFS=$as_save_IFS
8260  test -z "$as_dir" && as_dir=.
8261    for ac_exec_ext in '' $ac_executable_extensions; do
8262  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8263    ac_cv_prog_ac_ct_OTOOL="otool"
8264    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8265    break 2
8266  fi
8267done
8268  done
8269IFS=$as_save_IFS
8270
8271fi
8272fi
8273ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
8274if test -n "$ac_ct_OTOOL"; then
8275  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
8276$as_echo "$ac_ct_OTOOL" >&6; }
8277else
8278  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8279$as_echo "no" >&6; }
8280fi
8281
8282  if test "x$ac_ct_OTOOL" = x; then
8283    OTOOL=":"
8284  else
8285    case $cross_compiling:$ac_tool_warned in
8286yes:)
8287{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8288$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8289ac_tool_warned=yes ;;
8290esac
8291    OTOOL=$ac_ct_OTOOL
8292  fi
8293else
8294  OTOOL="$ac_cv_prog_OTOOL"
8295fi
8296
8297    if test -n "$ac_tool_prefix"; then
8298  # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
8299set dummy ${ac_tool_prefix}otool64; ac_word=$2
8300{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8301$as_echo_n "checking for $ac_word... " >&6; }
8302if test "${ac_cv_prog_OTOOL64+set}" = set; then :
8303  $as_echo_n "(cached) " >&6
8304else
8305  if test -n "$OTOOL64"; then
8306  ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
8307else
8308as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8309for as_dir in $PATH
8310do
8311  IFS=$as_save_IFS
8312  test -z "$as_dir" && as_dir=.
8313    for ac_exec_ext in '' $ac_executable_extensions; do
8314  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8315    ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
8316    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8317    break 2
8318  fi
8319done
8320  done
8321IFS=$as_save_IFS
8322
8323fi
8324fi
8325OTOOL64=$ac_cv_prog_OTOOL64
8326if test -n "$OTOOL64"; then
8327  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
8328$as_echo "$OTOOL64" >&6; }
8329else
8330  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8331$as_echo "no" >&6; }
8332fi
8333
8334
8335fi
8336if test -z "$ac_cv_prog_OTOOL64"; then
8337  ac_ct_OTOOL64=$OTOOL64
8338  # Extract the first word of "otool64", so it can be a program name with args.
8339set dummy otool64; ac_word=$2
8340{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8341$as_echo_n "checking for $ac_word... " >&6; }
8342if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
8343  $as_echo_n "(cached) " >&6
8344else
8345  if test -n "$ac_ct_OTOOL64"; then
8346  ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
8347else
8348as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8349for as_dir in $PATH
8350do
8351  IFS=$as_save_IFS
8352  test -z "$as_dir" && as_dir=.
8353    for ac_exec_ext in '' $ac_executable_extensions; do
8354  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8355    ac_cv_prog_ac_ct_OTOOL64="otool64"
8356    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8357    break 2
8358  fi
8359done
8360  done
8361IFS=$as_save_IFS
8362
8363fi
8364fi
8365ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
8366if test -n "$ac_ct_OTOOL64"; then
8367  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
8368$as_echo "$ac_ct_OTOOL64" >&6; }
8369else
8370  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8371$as_echo "no" >&6; }
8372fi
8373
8374  if test "x$ac_ct_OTOOL64" = x; then
8375    OTOOL64=":"
8376  else
8377    case $cross_compiling:$ac_tool_warned in
8378yes:)
8379{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8380$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8381ac_tool_warned=yes ;;
8382esac
8383    OTOOL64=$ac_ct_OTOOL64
8384  fi
8385else
8386  OTOOL64="$ac_cv_prog_OTOOL64"
8387fi
8388
8389
8390
8391
8392
8393
8394
8395
8396
8397
8398
8399
8400
8401
8402
8403
8404
8405
8406
8407
8408
8409
8410
8411
8412
8413
8414
8415    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
8416$as_echo_n "checking for -single_module linker flag... " >&6; }
8417if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
8418  $as_echo_n "(cached) " >&6
8419else
8420  lt_cv_apple_cc_single_mod=no
8421      if test -z "${LT_MULTI_MODULE}"; then
8422	# By default we will add the -single_module flag. You can override
8423	# by either setting the environment variable LT_MULTI_MODULE
8424	# non-empty at configure time, or by adding -multi_module to the
8425	# link flags.
8426	rm -rf libconftest.dylib*
8427	echo "int foo(void){return 1;}" > conftest.c
8428	echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8429-dynamiclib -Wl,-single_module conftest.c" >&5
8430	$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8431	  -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
8432        _lt_result=$?
8433	if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
8434	  lt_cv_apple_cc_single_mod=yes
8435	else
8436	  cat conftest.err >&5
8437	fi
8438	rm -rf libconftest.dylib*
8439	rm -f conftest.*
8440      fi
8441fi
8442{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
8443$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
8444    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
8445$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
8446if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
8447  $as_echo_n "(cached) " >&6
8448else
8449  lt_cv_ld_exported_symbols_list=no
8450      save_LDFLAGS=$LDFLAGS
8451      echo "_main" > conftest.sym
8452      LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
8453      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8454/* end confdefs.h.  */
8455
8456int
8457main ()
8458{
8459
8460  ;
8461  return 0;
8462}
8463_ACEOF
8464if ac_fn_c_try_link "$LINENO"; then :
8465  lt_cv_ld_exported_symbols_list=yes
8466else
8467  lt_cv_ld_exported_symbols_list=no
8468fi
8469rm -f core conftest.err conftest.$ac_objext \
8470    conftest$ac_exeext conftest.$ac_ext
8471	LDFLAGS="$save_LDFLAGS"
8472
8473fi
8474{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
8475$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
8476    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
8477$as_echo_n "checking for -force_load linker flag... " >&6; }
8478if test "${lt_cv_ld_force_load+set}" = set; then :
8479  $as_echo_n "(cached) " >&6
8480else
8481  lt_cv_ld_force_load=no
8482      cat > conftest.c << _LT_EOF
8483int forced_loaded() { return 2;}
8484_LT_EOF
8485      echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
8486      $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
8487      echo "$AR cru libconftest.a conftest.o" >&5
8488      $AR cru libconftest.a conftest.o 2>&5
8489      cat > conftest.c << _LT_EOF
8490int main() { return 0;}
8491_LT_EOF
8492      echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
8493      $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
8494      _lt_result=$?
8495      if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
8496	lt_cv_ld_force_load=yes
8497      else
8498	cat conftest.err >&5
8499      fi
8500        rm -f conftest.err libconftest.a conftest conftest.c
8501        rm -rf conftest.dSYM
8502
8503fi
8504{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
8505$as_echo "$lt_cv_ld_force_load" >&6; }
8506    case $host_os in
8507    rhapsody* | darwin1.[012])
8508      _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
8509    darwin1.*)
8510      _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8511    darwin*) # darwin 5.x on
8512      # if running on 10.5 or later, the deployment target defaults
8513      # to the OS version, if on x86, and 10.4, the deployment
8514      # target defaults to 10.4. Don't you love it?
8515      case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
8516	10.0,*86*-darwin8*|10.0,*-darwin[91]*)
8517	  _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8518	10.[012][,.]*)
8519	  _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8520	10.*)
8521	  _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8522      esac
8523    ;;
8524  esac
8525    if test "$lt_cv_apple_cc_single_mod" = "yes"; then
8526      _lt_dar_single_mod='$single_module'
8527    fi
8528    if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
8529      _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
8530    else
8531      _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
8532    fi
8533    if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
8534      _lt_dsymutil='~$DSYMUTIL $lib || :'
8535    else
8536      _lt_dsymutil=
8537    fi
8538    ;;
8539  esac
8540
8541for ac_header in dlfcn.h
8542do :
8543  ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
8544"
8545if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
8546  cat >>confdefs.h <<_ACEOF
8547#define HAVE_DLFCN_H 1
8548_ACEOF
8549
8550fi
8551
8552done
8553
8554
8555
8556
8557
8558
8559# Set options
8560
8561
8562
8563
8564  enable_win32_dll=no
8565
8566
8567            # Check whether --enable-shared was given.
8568if test "${enable_shared+set}" = set; then :
8569  enableval=$enable_shared; p=${PACKAGE-default}
8570    case $enableval in
8571    yes) enable_shared=yes ;;
8572    no) enable_shared=no ;;
8573    *)
8574      enable_shared=no
8575      # Look at the argument we got.  We use all the common list separators.
8576      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8577      for pkg in $enableval; do
8578	IFS="$lt_save_ifs"
8579	if test "X$pkg" = "X$p"; then
8580	  enable_shared=yes
8581	fi
8582      done
8583      IFS="$lt_save_ifs"
8584      ;;
8585    esac
8586else
8587  enable_shared=yes
8588fi
8589
8590
8591
8592
8593
8594
8595
8596
8597
8598  # Check whether --enable-static was given.
8599if test "${enable_static+set}" = set; then :
8600  enableval=$enable_static; p=${PACKAGE-default}
8601    case $enableval in
8602    yes) enable_static=yes ;;
8603    no) enable_static=no ;;
8604    *)
8605     enable_static=no
8606      # Look at the argument we got.  We use all the common list separators.
8607      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8608      for pkg in $enableval; do
8609	IFS="$lt_save_ifs"
8610	if test "X$pkg" = "X$p"; then
8611	  enable_static=yes
8612	fi
8613      done
8614      IFS="$lt_save_ifs"
8615      ;;
8616    esac
8617else
8618  enable_static=yes
8619fi
8620
8621
8622
8623
8624
8625
8626
8627
8628
8629
8630# Check whether --with-pic was given.
8631if test "${with_pic+set}" = set; then :
8632  withval=$with_pic; pic_mode="$withval"
8633else
8634  pic_mode=default
8635fi
8636
8637
8638test -z "$pic_mode" && pic_mode=default
8639
8640
8641
8642
8643
8644
8645
8646  # Check whether --enable-fast-install was given.
8647if test "${enable_fast_install+set}" = set; then :
8648  enableval=$enable_fast_install; p=${PACKAGE-default}
8649    case $enableval in
8650    yes) enable_fast_install=yes ;;
8651    no) enable_fast_install=no ;;
8652    *)
8653      enable_fast_install=no
8654      # Look at the argument we got.  We use all the common list separators.
8655      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8656      for pkg in $enableval; do
8657	IFS="$lt_save_ifs"
8658	if test "X$pkg" = "X$p"; then
8659	  enable_fast_install=yes
8660	fi
8661      done
8662      IFS="$lt_save_ifs"
8663      ;;
8664    esac
8665else
8666  enable_fast_install=yes
8667fi
8668
8669
8670
8671
8672
8673
8674
8675
8676
8677
8678
8679# This can be used to rebuild libtool when needed
8680LIBTOOL_DEPS="$ltmain"
8681
8682# Always use our own libtool.
8683LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8684
8685
8686
8687
8688
8689
8690
8691
8692
8693
8694
8695
8696
8697
8698
8699
8700
8701
8702
8703
8704
8705
8706
8707
8708
8709
8710test -z "$LN_S" && LN_S="ln -s"
8711
8712
8713
8714
8715
8716
8717
8718
8719
8720
8721
8722
8723
8724
8725if test -n "${ZSH_VERSION+set}" ; then
8726   setopt NO_GLOB_SUBST
8727fi
8728
8729{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8730$as_echo_n "checking for objdir... " >&6; }
8731if test "${lt_cv_objdir+set}" = set; then :
8732  $as_echo_n "(cached) " >&6
8733else
8734  rm -f .libs 2>/dev/null
8735mkdir .libs 2>/dev/null
8736if test -d .libs; then
8737  lt_cv_objdir=.libs
8738else
8739  # MS-DOS does not allow filenames that begin with a dot.
8740  lt_cv_objdir=_libs
8741fi
8742rmdir .libs 2>/dev/null
8743fi
8744{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8745$as_echo "$lt_cv_objdir" >&6; }
8746objdir=$lt_cv_objdir
8747
8748
8749
8750
8751
8752cat >>confdefs.h <<_ACEOF
8753#define LT_OBJDIR "$lt_cv_objdir/"
8754_ACEOF
8755
8756
8757
8758
8759case $host_os in
8760aix3*)
8761  # AIX sometimes has problems with the GCC collect2 program.  For some
8762  # reason, if we set the COLLECT_NAMES environment variable, the problems
8763  # vanish in a puff of smoke.
8764  if test "X${COLLECT_NAMES+set}" != Xset; then
8765    COLLECT_NAMES=
8766    export COLLECT_NAMES
8767  fi
8768  ;;
8769esac
8770
8771# Global variables:
8772ofile=libtool
8773can_build_shared=yes
8774
8775# All known linkers require a `.a' archive for static linking (except MSVC,
8776# which needs '.lib').
8777libext=a
8778
8779with_gnu_ld="$lt_cv_prog_gnu_ld"
8780
8781old_CC="$CC"
8782old_CFLAGS="$CFLAGS"
8783
8784# Set sane defaults for various variables
8785test -z "$CC" && CC=cc
8786test -z "$LTCC" && LTCC=$CC
8787test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8788test -z "$LD" && LD=ld
8789test -z "$ac_objext" && ac_objext=o
8790
8791for cc_temp in $compiler""; do
8792  case $cc_temp in
8793    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8794    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8795    \-*) ;;
8796    *) break;;
8797  esac
8798done
8799cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
8800
8801
8802# Only perform the check for file, if the check method requires it
8803test -z "$MAGIC_CMD" && MAGIC_CMD=file
8804case $deplibs_check_method in
8805file_magic*)
8806  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8807    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8808$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8809if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
8810  $as_echo_n "(cached) " >&6
8811else
8812  case $MAGIC_CMD in
8813[\\/*] |  ?:[\\/]*)
8814  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8815  ;;
8816*)
8817  lt_save_MAGIC_CMD="$MAGIC_CMD"
8818  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8819  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8820  for ac_dir in $ac_dummy; do
8821    IFS="$lt_save_ifs"
8822    test -z "$ac_dir" && ac_dir=.
8823    if test -f $ac_dir/${ac_tool_prefix}file; then
8824      lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8825      if test -n "$file_magic_test_file"; then
8826	case $deplibs_check_method in
8827	"file_magic "*)
8828	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8829	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8830	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8831	    $EGREP "$file_magic_regex" > /dev/null; then
8832	    :
8833	  else
8834	    cat <<_LT_EOF 1>&2
8835
8836*** Warning: the command libtool uses to detect shared libraries,
8837*** $file_magic_cmd, produces output that libtool cannot recognize.
8838*** The result is that libtool may fail to recognize shared libraries
8839*** as such.  This will affect the creation of libtool libraries that
8840*** depend on shared libraries, but programs linked with such libtool
8841*** libraries will work regardless of this problem.  Nevertheless, you
8842*** may want to report the problem to your system manager and/or to
8843*** bug-libtool@gnu.org
8844
8845_LT_EOF
8846	  fi ;;
8847	esac
8848      fi
8849      break
8850    fi
8851  done
8852  IFS="$lt_save_ifs"
8853  MAGIC_CMD="$lt_save_MAGIC_CMD"
8854  ;;
8855esac
8856fi
8857
8858MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8859if test -n "$MAGIC_CMD"; then
8860  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8861$as_echo "$MAGIC_CMD" >&6; }
8862else
8863  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8864$as_echo "no" >&6; }
8865fi
8866
8867
8868
8869
8870
8871if test -z "$lt_cv_path_MAGIC_CMD"; then
8872  if test -n "$ac_tool_prefix"; then
8873    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8874$as_echo_n "checking for file... " >&6; }
8875if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
8876  $as_echo_n "(cached) " >&6
8877else
8878  case $MAGIC_CMD in
8879[\\/*] |  ?:[\\/]*)
8880  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8881  ;;
8882*)
8883  lt_save_MAGIC_CMD="$MAGIC_CMD"
8884  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8885  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8886  for ac_dir in $ac_dummy; do
8887    IFS="$lt_save_ifs"
8888    test -z "$ac_dir" && ac_dir=.
8889    if test -f $ac_dir/file; then
8890      lt_cv_path_MAGIC_CMD="$ac_dir/file"
8891      if test -n "$file_magic_test_file"; then
8892	case $deplibs_check_method in
8893	"file_magic "*)
8894	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8895	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8896	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8897	    $EGREP "$file_magic_regex" > /dev/null; then
8898	    :
8899	  else
8900	    cat <<_LT_EOF 1>&2
8901
8902*** Warning: the command libtool uses to detect shared libraries,
8903*** $file_magic_cmd, produces output that libtool cannot recognize.
8904*** The result is that libtool may fail to recognize shared libraries
8905*** as such.  This will affect the creation of libtool libraries that
8906*** depend on shared libraries, but programs linked with such libtool
8907*** libraries will work regardless of this problem.  Nevertheless, you
8908*** may want to report the problem to your system manager and/or to
8909*** bug-libtool@gnu.org
8910
8911_LT_EOF
8912	  fi ;;
8913	esac
8914      fi
8915      break
8916    fi
8917  done
8918  IFS="$lt_save_ifs"
8919  MAGIC_CMD="$lt_save_MAGIC_CMD"
8920  ;;
8921esac
8922fi
8923
8924MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8925if test -n "$MAGIC_CMD"; then
8926  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8927$as_echo "$MAGIC_CMD" >&6; }
8928else
8929  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8930$as_echo "no" >&6; }
8931fi
8932
8933
8934  else
8935    MAGIC_CMD=:
8936  fi
8937fi
8938
8939  fi
8940  ;;
8941esac
8942
8943# Use C for the default configuration in the libtool script
8944
8945lt_save_CC="$CC"
8946ac_ext=c
8947ac_cpp='$CPP $CPPFLAGS'
8948ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8949ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8950ac_compiler_gnu=$ac_cv_c_compiler_gnu
8951
8952
8953# Source file extension for C test sources.
8954ac_ext=c
8955
8956# Object file extension for compiled C test sources.
8957objext=o
8958objext=$objext
8959
8960# Code to be used in simple compile tests
8961lt_simple_compile_test_code="int some_variable = 0;"
8962
8963# Code to be used in simple link tests
8964lt_simple_link_test_code='int main(){return(0);}'
8965
8966
8967
8968
8969
8970
8971
8972# If no C compiler was specified, use CC.
8973LTCC=${LTCC-"$CC"}
8974
8975# If no C compiler flags were specified, use CFLAGS.
8976LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8977
8978# Allow CC to be a program name with arguments.
8979compiler=$CC
8980
8981# Save the default compiler, since it gets overwritten when the other
8982# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8983compiler_DEFAULT=$CC
8984
8985# save warnings/boilerplate of simple test code
8986ac_outfile=conftest.$ac_objext
8987echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8988eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8989_lt_compiler_boilerplate=`cat conftest.err`
8990$RM conftest*
8991
8992ac_outfile=conftest.$ac_objext
8993echo "$lt_simple_link_test_code" >conftest.$ac_ext
8994eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8995_lt_linker_boilerplate=`cat conftest.err`
8996$RM -r conftest*
8997
8998
8999## CAVEAT EMPTOR:
9000## There is no encapsulation within the following macros, do not change
9001## the running order or otherwise move them around unless you know exactly
9002## what you are doing...
9003if test -n "$compiler"; then
9004
9005lt_prog_compiler_no_builtin_flag=
9006
9007if test "$GCC" = yes; then
9008  case $cc_basename in
9009  nvcc*)
9010    lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
9011  *)
9012    lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
9013  esac
9014
9015  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
9016$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
9017if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
9018  $as_echo_n "(cached) " >&6
9019else
9020  lt_cv_prog_compiler_rtti_exceptions=no
9021   ac_outfile=conftest.$ac_objext
9022   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9023   lt_compiler_flag="-fno-rtti -fno-exceptions"
9024   # Insert the option either (1) after the last *FLAGS variable, or
9025   # (2) before a word containing "conftest.", or (3) at the end.
9026   # Note that $ac_compile itself does not contain backslashes and begins
9027   # with a dollar sign (not a hyphen), so the echo should work correctly.
9028   # The option is referenced via a variable to avoid confusing sed.
9029   lt_compile=`echo "$ac_compile" | $SED \
9030   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9031   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9032   -e 's:$: $lt_compiler_flag:'`
9033   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9034   (eval "$lt_compile" 2>conftest.err)
9035   ac_status=$?
9036   cat conftest.err >&5
9037   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9038   if (exit $ac_status) && test -s "$ac_outfile"; then
9039     # The compiler can only warn and ignore the option if not recognized
9040     # So say no if there are warnings other than the usual output.
9041     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9042     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9043     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9044       lt_cv_prog_compiler_rtti_exceptions=yes
9045     fi
9046   fi
9047   $RM conftest*
9048
9049fi
9050{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
9051$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
9052
9053if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
9054    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
9055else
9056    :
9057fi
9058
9059fi
9060
9061
9062
9063
9064
9065
9066  lt_prog_compiler_wl=
9067lt_prog_compiler_pic=
9068lt_prog_compiler_static=
9069
9070{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
9071$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
9072
9073  if test "$GCC" = yes; then
9074    lt_prog_compiler_wl='-Wl,'
9075    lt_prog_compiler_static='-static'
9076
9077    case $host_os in
9078      aix*)
9079      # All AIX code is PIC.
9080      if test "$host_cpu" = ia64; then
9081	# AIX 5 now supports IA64 processor
9082	lt_prog_compiler_static='-Bstatic'
9083      fi
9084      lt_prog_compiler_pic='-fPIC'
9085      ;;
9086
9087    amigaos*)
9088      case $host_cpu in
9089      powerpc)
9090            # see comment about AmigaOS4 .so support
9091            lt_prog_compiler_pic='-fPIC'
9092        ;;
9093      m68k)
9094            # FIXME: we need at least 68020 code to build shared libraries, but
9095            # adding the `-m68020' flag to GCC prevents building anything better,
9096            # like `-m68040'.
9097            lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
9098        ;;
9099      esac
9100      ;;
9101
9102    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
9103      # PIC is the default for these OSes.
9104      ;;
9105
9106    mingw* | cygwin* | pw32* | os2* | cegcc*)
9107      # This hack is so that the source file can tell whether it is being
9108      # built for inclusion in a dll (and should export symbols for example).
9109      # Although the cygwin gcc ignores -fPIC, still need this for old-style
9110      # (--disable-auto-import) libraries
9111      lt_prog_compiler_pic='-DDLL_EXPORT'
9112      ;;
9113
9114    darwin* | rhapsody*)
9115      # PIC is the default on this platform
9116      # Common symbols not allowed in MH_DYLIB files
9117      lt_prog_compiler_pic='-fno-common'
9118      ;;
9119
9120    haiku*)
9121      # PIC is the default for Haiku.
9122      # The "-static" flag exists, but is broken.
9123      lt_prog_compiler_static=
9124      ;;
9125
9126    hpux*)
9127      # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
9128      # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
9129      # sets the default TLS model and affects inlining.
9130      case $host_cpu in
9131      hppa*64*)
9132	# +Z the default
9133	;;
9134      *)
9135	lt_prog_compiler_pic='-fPIC'
9136	;;
9137      esac
9138      ;;
9139
9140    interix[3-9]*)
9141      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
9142      # Instead, we relocate shared libraries at runtime.
9143      ;;
9144
9145    msdosdjgpp*)
9146      # Just because we use GCC doesn't mean we suddenly get shared libraries
9147      # on systems that don't support them.
9148      lt_prog_compiler_can_build_shared=no
9149      enable_shared=no
9150      ;;
9151
9152    *nto* | *qnx*)
9153      # QNX uses GNU C++, but need to define -shared option too, otherwise
9154      # it will coredump.
9155      lt_prog_compiler_pic='-fPIC -shared'
9156      ;;
9157
9158    sysv4*MP*)
9159      if test -d /usr/nec; then
9160	lt_prog_compiler_pic=-Kconform_pic
9161      fi
9162      ;;
9163
9164    *)
9165      lt_prog_compiler_pic='-fPIC'
9166      ;;
9167    esac
9168
9169    case $cc_basename in
9170    nvcc*) # Cuda Compiler Driver 2.2
9171      lt_prog_compiler_wl='-Xlinker '
9172      lt_prog_compiler_pic='-Xcompiler -fPIC'
9173      ;;
9174    esac
9175  else
9176    # PORTME Check for flag to pass linker flags through the system compiler.
9177    case $host_os in
9178    aix*)
9179      lt_prog_compiler_wl='-Wl,'
9180      if test "$host_cpu" = ia64; then
9181	# AIX 5 now supports IA64 processor
9182	lt_prog_compiler_static='-Bstatic'
9183      else
9184	lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
9185      fi
9186      ;;
9187
9188    mingw* | cygwin* | pw32* | os2* | cegcc*)
9189      # This hack is so that the source file can tell whether it is being
9190      # built for inclusion in a dll (and should export symbols for example).
9191      lt_prog_compiler_pic='-DDLL_EXPORT'
9192      ;;
9193
9194    hpux9* | hpux10* | hpux11*)
9195      lt_prog_compiler_wl='-Wl,'
9196      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
9197      # not for PA HP-UX.
9198      case $host_cpu in
9199      hppa*64*|ia64*)
9200	# +Z the default
9201	;;
9202      *)
9203	lt_prog_compiler_pic='+Z'
9204	;;
9205      esac
9206      # Is there a better lt_prog_compiler_static that works with the bundled CC?
9207      lt_prog_compiler_static='${wl}-a ${wl}archive'
9208      ;;
9209
9210    irix5* | irix6* | nonstopux*)
9211      lt_prog_compiler_wl='-Wl,'
9212      # PIC (with -KPIC) is the default.
9213      lt_prog_compiler_static='-non_shared'
9214      ;;
9215
9216    linux* | k*bsd*-gnu | kopensolaris*-gnu)
9217      case $cc_basename in
9218      # old Intel for x86_64 which still supported -KPIC.
9219      ecc*)
9220	lt_prog_compiler_wl='-Wl,'
9221	lt_prog_compiler_pic='-KPIC'
9222	lt_prog_compiler_static='-static'
9223        ;;
9224      # icc used to be incompatible with GCC.
9225      # ICC 10 doesn't accept -KPIC any more.
9226      icc* | ifort*)
9227	lt_prog_compiler_wl='-Wl,'
9228	lt_prog_compiler_pic='-fPIC'
9229	lt_prog_compiler_static='-static'
9230        ;;
9231      # Lahey Fortran 8.1.
9232      lf95*)
9233	lt_prog_compiler_wl='-Wl,'
9234	lt_prog_compiler_pic='--shared'
9235	lt_prog_compiler_static='--static'
9236	;;
9237      pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
9238        # Portland Group compilers (*not* the Pentium gcc compiler,
9239	# which looks to be a dead project)
9240	lt_prog_compiler_wl='-Wl,'
9241	lt_prog_compiler_pic='-fpic'
9242	lt_prog_compiler_static='-Bstatic'
9243        ;;
9244      ccc*)
9245        lt_prog_compiler_wl='-Wl,'
9246        # All Alpha code is PIC.
9247        lt_prog_compiler_static='-non_shared'
9248        ;;
9249      xl* | bgxl* | bgf* | mpixl*)
9250	# IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
9251	lt_prog_compiler_wl='-Wl,'
9252	lt_prog_compiler_pic='-qpic'
9253	lt_prog_compiler_static='-qstaticlink'
9254	;;
9255      *)
9256	case `$CC -V 2>&1 | sed 5q` in
9257	*Sun\ F* | *Sun*Fortran*)
9258	  # Sun Fortran 8.3 passes all unrecognized flags to the linker
9259	  lt_prog_compiler_pic='-KPIC'
9260	  lt_prog_compiler_static='-Bstatic'
9261	  lt_prog_compiler_wl=''
9262	  ;;
9263	*Sun\ C*)
9264	  # Sun C 5.9
9265	  lt_prog_compiler_pic='-KPIC'
9266	  lt_prog_compiler_static='-Bstatic'
9267	  lt_prog_compiler_wl='-Wl,'
9268	  ;;
9269	esac
9270	;;
9271      esac
9272      ;;
9273
9274    newsos6)
9275      lt_prog_compiler_pic='-KPIC'
9276      lt_prog_compiler_static='-Bstatic'
9277      ;;
9278
9279    *nto* | *qnx*)
9280      # QNX uses GNU C++, but need to define -shared option too, otherwise
9281      # it will coredump.
9282      lt_prog_compiler_pic='-fPIC -shared'
9283      ;;
9284
9285    osf3* | osf4* | osf5*)
9286      lt_prog_compiler_wl='-Wl,'
9287      # All OSF/1 code is PIC.
9288      lt_prog_compiler_static='-non_shared'
9289      ;;
9290
9291    rdos*)
9292      lt_prog_compiler_static='-non_shared'
9293      ;;
9294
9295    solaris*)
9296      lt_prog_compiler_pic='-KPIC'
9297      lt_prog_compiler_static='-Bstatic'
9298      case $cc_basename in
9299      f77* | f90* | f95*)
9300	lt_prog_compiler_wl='-Qoption ld ';;
9301      *)
9302	lt_prog_compiler_wl='-Wl,';;
9303      esac
9304      ;;
9305
9306    sunos4*)
9307      lt_prog_compiler_wl='-Qoption ld '
9308      lt_prog_compiler_pic='-PIC'
9309      lt_prog_compiler_static='-Bstatic'
9310      ;;
9311
9312    sysv4 | sysv4.2uw2* | sysv4.3*)
9313      lt_prog_compiler_wl='-Wl,'
9314      lt_prog_compiler_pic='-KPIC'
9315      lt_prog_compiler_static='-Bstatic'
9316      ;;
9317
9318    sysv4*MP*)
9319      if test -d /usr/nec ;then
9320	lt_prog_compiler_pic='-Kconform_pic'
9321	lt_prog_compiler_static='-Bstatic'
9322      fi
9323      ;;
9324
9325    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
9326      lt_prog_compiler_wl='-Wl,'
9327      lt_prog_compiler_pic='-KPIC'
9328      lt_prog_compiler_static='-Bstatic'
9329      ;;
9330
9331    unicos*)
9332      lt_prog_compiler_wl='-Wl,'
9333      lt_prog_compiler_can_build_shared=no
9334      ;;
9335
9336    uts4*)
9337      lt_prog_compiler_pic='-pic'
9338      lt_prog_compiler_static='-Bstatic'
9339      ;;
9340
9341    *)
9342      lt_prog_compiler_can_build_shared=no
9343      ;;
9344    esac
9345  fi
9346
9347case $host_os in
9348  # For platforms which do not support PIC, -DPIC is meaningless:
9349  *djgpp*)
9350    lt_prog_compiler_pic=
9351    ;;
9352  *)
9353    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
9354    ;;
9355esac
9356{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
9357$as_echo "$lt_prog_compiler_pic" >&6; }
9358
9359
9360
9361
9362
9363
9364#
9365# Check to make sure the PIC flag actually works.
9366#
9367if test -n "$lt_prog_compiler_pic"; then
9368  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
9369$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
9370if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
9371  $as_echo_n "(cached) " >&6
9372else
9373  lt_cv_prog_compiler_pic_works=no
9374   ac_outfile=conftest.$ac_objext
9375   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9376   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
9377   # Insert the option either (1) after the last *FLAGS variable, or
9378   # (2) before a word containing "conftest.", or (3) at the end.
9379   # Note that $ac_compile itself does not contain backslashes and begins
9380   # with a dollar sign (not a hyphen), so the echo should work correctly.
9381   # The option is referenced via a variable to avoid confusing sed.
9382   lt_compile=`echo "$ac_compile" | $SED \
9383   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9384   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9385   -e 's:$: $lt_compiler_flag:'`
9386   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9387   (eval "$lt_compile" 2>conftest.err)
9388   ac_status=$?
9389   cat conftest.err >&5
9390   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9391   if (exit $ac_status) && test -s "$ac_outfile"; then
9392     # The compiler can only warn and ignore the option if not recognized
9393     # So say no if there are warnings other than the usual output.
9394     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9395     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9396     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9397       lt_cv_prog_compiler_pic_works=yes
9398     fi
9399   fi
9400   $RM conftest*
9401
9402fi
9403{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
9404$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
9405
9406if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
9407    case $lt_prog_compiler_pic in
9408     "" | " "*) ;;
9409     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9410     esac
9411else
9412    lt_prog_compiler_pic=
9413     lt_prog_compiler_can_build_shared=no
9414fi
9415
9416fi
9417
9418
9419
9420
9421
9422
9423#
9424# Check to make sure the static flag actually works.
9425#
9426wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9427{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9428$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
9429if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
9430  $as_echo_n "(cached) " >&6
9431else
9432  lt_cv_prog_compiler_static_works=no
9433   save_LDFLAGS="$LDFLAGS"
9434   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9435   echo "$lt_simple_link_test_code" > conftest.$ac_ext
9436   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9437     # The linker can only warn and ignore the option if not recognized
9438     # So say no if there are warnings
9439     if test -s conftest.err; then
9440       # Append any errors to the config.log.
9441       cat conftest.err 1>&5
9442       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9443       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9444       if diff conftest.exp conftest.er2 >/dev/null; then
9445         lt_cv_prog_compiler_static_works=yes
9446       fi
9447     else
9448       lt_cv_prog_compiler_static_works=yes
9449     fi
9450   fi
9451   $RM -r conftest*
9452   LDFLAGS="$save_LDFLAGS"
9453
9454fi
9455{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
9456$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
9457
9458if test x"$lt_cv_prog_compiler_static_works" = xyes; then
9459    :
9460else
9461    lt_prog_compiler_static=
9462fi
9463
9464
9465
9466
9467
9468
9469
9470  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9471$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9472if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
9473  $as_echo_n "(cached) " >&6
9474else
9475  lt_cv_prog_compiler_c_o=no
9476   $RM -r conftest 2>/dev/null
9477   mkdir conftest
9478   cd conftest
9479   mkdir out
9480   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9481
9482   lt_compiler_flag="-o out/conftest2.$ac_objext"
9483   # Insert the option either (1) after the last *FLAGS variable, or
9484   # (2) before a word containing "conftest.", or (3) at the end.
9485   # Note that $ac_compile itself does not contain backslashes and begins
9486   # with a dollar sign (not a hyphen), so the echo should work correctly.
9487   lt_compile=`echo "$ac_compile" | $SED \
9488   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9489   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9490   -e 's:$: $lt_compiler_flag:'`
9491   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9492   (eval "$lt_compile" 2>out/conftest.err)
9493   ac_status=$?
9494   cat out/conftest.err >&5
9495   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9496   if (exit $ac_status) && test -s out/conftest2.$ac_objext
9497   then
9498     # The compiler can only warn and ignore the option if not recognized
9499     # So say no if there are warnings
9500     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9501     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9502     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9503       lt_cv_prog_compiler_c_o=yes
9504     fi
9505   fi
9506   chmod u+w . 2>&5
9507   $RM conftest*
9508   # SGI C++ compiler will create directory out/ii_files/ for
9509   # template instantiation
9510   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9511   $RM out/* && rmdir out
9512   cd ..
9513   $RM -r conftest
9514   $RM conftest*
9515
9516fi
9517{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9518$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9519
9520
9521
9522
9523
9524
9525  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9526$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9527if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
9528  $as_echo_n "(cached) " >&6
9529else
9530  lt_cv_prog_compiler_c_o=no
9531   $RM -r conftest 2>/dev/null
9532   mkdir conftest
9533   cd conftest
9534   mkdir out
9535   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9536
9537   lt_compiler_flag="-o out/conftest2.$ac_objext"
9538   # Insert the option either (1) after the last *FLAGS variable, or
9539   # (2) before a word containing "conftest.", or (3) at the end.
9540   # Note that $ac_compile itself does not contain backslashes and begins
9541   # with a dollar sign (not a hyphen), so the echo should work correctly.
9542   lt_compile=`echo "$ac_compile" | $SED \
9543   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9544   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9545   -e 's:$: $lt_compiler_flag:'`
9546   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9547   (eval "$lt_compile" 2>out/conftest.err)
9548   ac_status=$?
9549   cat out/conftest.err >&5
9550   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9551   if (exit $ac_status) && test -s out/conftest2.$ac_objext
9552   then
9553     # The compiler can only warn and ignore the option if not recognized
9554     # So say no if there are warnings
9555     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9556     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9557     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9558       lt_cv_prog_compiler_c_o=yes
9559     fi
9560   fi
9561   chmod u+w . 2>&5
9562   $RM conftest*
9563   # SGI C++ compiler will create directory out/ii_files/ for
9564   # template instantiation
9565   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9566   $RM out/* && rmdir out
9567   cd ..
9568   $RM -r conftest
9569   $RM conftest*
9570
9571fi
9572{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9573$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9574
9575
9576
9577
9578hard_links="nottested"
9579if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
9580  # do not overwrite the value of need_locks provided by the user
9581  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
9582$as_echo_n "checking if we can lock with hard links... " >&6; }
9583  hard_links=yes
9584  $RM conftest*
9585  ln conftest.a conftest.b 2>/dev/null && hard_links=no
9586  touch conftest.a
9587  ln conftest.a conftest.b 2>&5 || hard_links=no
9588  ln conftest.a conftest.b 2>/dev/null && hard_links=no
9589  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
9590$as_echo "$hard_links" >&6; }
9591  if test "$hard_links" = no; then
9592    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
9593$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
9594    need_locks=warn
9595  fi
9596else
9597  need_locks=no
9598fi
9599
9600
9601
9602
9603
9604
9605  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9606$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9607
9608  runpath_var=
9609  allow_undefined_flag=
9610  always_export_symbols=no
9611  archive_cmds=
9612  archive_expsym_cmds=
9613  compiler_needs_object=no
9614  enable_shared_with_static_runtimes=no
9615  export_dynamic_flag_spec=
9616  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9617  hardcode_automatic=no
9618  hardcode_direct=no
9619  hardcode_direct_absolute=no
9620  hardcode_libdir_flag_spec=
9621  hardcode_libdir_flag_spec_ld=
9622  hardcode_libdir_separator=
9623  hardcode_minus_L=no
9624  hardcode_shlibpath_var=unsupported
9625  inherit_rpath=no
9626  link_all_deplibs=unknown
9627  module_cmds=
9628  module_expsym_cmds=
9629  old_archive_from_new_cmds=
9630  old_archive_from_expsyms_cmds=
9631  thread_safe_flag_spec=
9632  whole_archive_flag_spec=
9633  # include_expsyms should be a list of space-separated symbols to be *always*
9634  # included in the symbol list
9635  include_expsyms=
9636  # exclude_expsyms can be an extended regexp of symbols to exclude
9637  # it will be wrapped by ` (' and `)$', so one must not match beginning or
9638  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
9639  # as well as any symbol that contains `d'.
9640  exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9641  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9642  # platforms (ab)use it in PIC code, but their linkers get confused if
9643  # the symbol is explicitly referenced.  Since portable code cannot
9644  # rely on this symbol name, it's probably fine to never include it in
9645  # preloaded symbol tables.
9646  # Exclude shared library initialization/finalization symbols.
9647  extract_expsyms_cmds=
9648
9649  case $host_os in
9650  cygwin* | mingw* | pw32* | cegcc*)
9651    # FIXME: the MSVC++ port hasn't been tested in a loooong time
9652    # When not using gcc, we currently assume that we are using
9653    # Microsoft Visual C++.
9654    if test "$GCC" != yes; then
9655      with_gnu_ld=no
9656    fi
9657    ;;
9658  interix*)
9659    # we just hope/assume this is gcc and not c89 (= MSVC++)
9660    with_gnu_ld=yes
9661    ;;
9662  openbsd*)
9663    with_gnu_ld=no
9664    ;;
9665  esac
9666
9667  ld_shlibs=yes
9668
9669  # On some targets, GNU ld is compatible enough with the native linker
9670  # that we're better off using the native interface for both.
9671  lt_use_gnu_ld_interface=no
9672  if test "$with_gnu_ld" = yes; then
9673    case $host_os in
9674      aix*)
9675	# The AIX port of GNU ld has always aspired to compatibility
9676	# with the native linker.  However, as the warning in the GNU ld
9677	# block says, versions before 2.19.5* couldn't really create working
9678	# shared libraries, regardless of the interface used.
9679	case `$LD -v 2>&1` in
9680	  *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
9681	  *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
9682	  *\ \(GNU\ Binutils\)\ [3-9]*) ;;
9683	  *)
9684	    lt_use_gnu_ld_interface=yes
9685	    ;;
9686	esac
9687	;;
9688      *)
9689	lt_use_gnu_ld_interface=yes
9690	;;
9691    esac
9692  fi
9693
9694  if test "$lt_use_gnu_ld_interface" = yes; then
9695    # If archive_cmds runs LD, not CC, wlarc should be empty
9696    wlarc='${wl}'
9697
9698    # Set some defaults for GNU ld with shared library support. These
9699    # are reset later if shared libraries are not supported. Putting them
9700    # here allows them to be overridden if necessary.
9701    runpath_var=LD_RUN_PATH
9702    hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9703    export_dynamic_flag_spec='${wl}--export-dynamic'
9704    # ancient GNU ld didn't support --whole-archive et. al.
9705    if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9706      whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9707    else
9708      whole_archive_flag_spec=
9709    fi
9710    supports_anon_versioning=no
9711    case `$LD -v 2>&1` in
9712      *GNU\ gold*) supports_anon_versioning=yes ;;
9713      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9714      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9715      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9716      *\ 2.11.*) ;; # other 2.11 versions
9717      *) supports_anon_versioning=yes ;;
9718    esac
9719
9720    # See if GNU ld supports shared libraries.
9721    case $host_os in
9722    aix[3-9]*)
9723      # On AIX/PPC, the GNU linker is very broken
9724      if test "$host_cpu" != ia64; then
9725	ld_shlibs=no
9726	cat <<_LT_EOF 1>&2
9727
9728*** Warning: the GNU linker, at least up to release 2.19, is reported
9729*** to be unable to reliably create shared libraries on AIX.
9730*** Therefore, libtool is disabling shared libraries support.  If you
9731*** really care for shared libraries, you may want to install binutils
9732*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9733*** You will then need to restart the configuration process.
9734
9735_LT_EOF
9736      fi
9737      ;;
9738
9739    amigaos*)
9740      case $host_cpu in
9741      powerpc)
9742            # see comment about AmigaOS4 .so support
9743            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9744            archive_expsym_cmds=''
9745        ;;
9746      m68k)
9747            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)'
9748            hardcode_libdir_flag_spec='-L$libdir'
9749            hardcode_minus_L=yes
9750        ;;
9751      esac
9752      ;;
9753
9754    beos*)
9755      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9756	allow_undefined_flag=unsupported
9757	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9758	# support --undefined.  This deserves some investigation.  FIXME
9759	archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9760      else
9761	ld_shlibs=no
9762      fi
9763      ;;
9764
9765    cygwin* | mingw* | pw32* | cegcc*)
9766      # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9767      # as there is no search path for DLLs.
9768      hardcode_libdir_flag_spec='-L$libdir'
9769      export_dynamic_flag_spec='${wl}--export-all-symbols'
9770      allow_undefined_flag=unsupported
9771      always_export_symbols=no
9772      enable_shared_with_static_runtimes=yes
9773      export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9774
9775      if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9776        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9777	# If the export-symbols file already is a .def file (1st line
9778	# is EXPORTS), use it as is; otherwise, prepend...
9779	archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9780	  cp $export_symbols $output_objdir/$soname.def;
9781	else
9782	  echo EXPORTS > $output_objdir/$soname.def;
9783	  cat $export_symbols >> $output_objdir/$soname.def;
9784	fi~
9785	$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9786      else
9787	ld_shlibs=no
9788      fi
9789      ;;
9790
9791    haiku*)
9792      archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9793      link_all_deplibs=yes
9794      ;;
9795
9796    interix[3-9]*)
9797      hardcode_direct=no
9798      hardcode_shlibpath_var=no
9799      hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9800      export_dynamic_flag_spec='${wl}-E'
9801      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9802      # Instead, shared libraries are loaded at an image base (0x10000000 by
9803      # default) and relocated if they conflict, which is a slow very memory
9804      # consuming and fragmenting process.  To avoid this, we pick a random,
9805      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9806      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
9807      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9808      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'
9809      ;;
9810
9811    gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
9812      tmp_diet=no
9813      if test "$host_os" = linux-dietlibc; then
9814	case $cc_basename in
9815	  diet\ *) tmp_diet=yes;;	# linux-dietlibc with static linking (!diet-dyn)
9816	esac
9817      fi
9818      if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9819	 && test "$tmp_diet" = no
9820      then
9821	tmp_addflag=' $pic_flag'
9822	tmp_sharedflag='-shared'
9823	case $cc_basename,$host_cpu in
9824        pgcc*)				# Portland Group C compiler
9825	  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'
9826	  tmp_addflag=' $pic_flag'
9827	  ;;
9828	pgf77* | pgf90* | pgf95* | pgfortran*)
9829					# Portland Group f77 and f90 compilers
9830	  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'
9831	  tmp_addflag=' $pic_flag -Mnomain' ;;
9832	ecc*,ia64* | icc*,ia64*)	# Intel C compiler on ia64
9833	  tmp_addflag=' -i_dynamic' ;;
9834	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
9835	  tmp_addflag=' -i_dynamic -nofor_main' ;;
9836	ifc* | ifort*)			# Intel Fortran compiler
9837	  tmp_addflag=' -nofor_main' ;;
9838	lf95*)				# Lahey Fortran 8.1
9839	  whole_archive_flag_spec=
9840	  tmp_sharedflag='--shared' ;;
9841	xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9842	  tmp_sharedflag='-qmkshrobj'
9843	  tmp_addflag= ;;
9844	nvcc*)	# Cuda Compiler Driver 2.2
9845	  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'
9846	  compiler_needs_object=yes
9847	  ;;
9848	esac
9849	case `$CC -V 2>&1 | sed 5q` in
9850	*Sun\ C*)			# Sun C 5.9
9851	  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'
9852	  compiler_needs_object=yes
9853	  tmp_sharedflag='-G' ;;
9854	*Sun\ F*)			# Sun Fortran 8.3
9855	  tmp_sharedflag='-G' ;;
9856	esac
9857	archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9858
9859        if test "x$supports_anon_versioning" = xyes; then
9860          archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9861	    cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9862	    echo "local: *; };" >> $output_objdir/$libname.ver~
9863	    $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9864        fi
9865
9866	case $cc_basename in
9867	xlf* | bgf* | bgxlf* | mpixlf*)
9868	  # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9869	  whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9870	  hardcode_libdir_flag_spec=
9871	  hardcode_libdir_flag_spec_ld='-rpath $libdir'
9872	  archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
9873	  if test "x$supports_anon_versioning" = xyes; then
9874	    archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9875	      cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9876	      echo "local: *; };" >> $output_objdir/$libname.ver~
9877	      $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9878	  fi
9879	  ;;
9880	esac
9881      else
9882        ld_shlibs=no
9883      fi
9884      ;;
9885
9886    netbsd*)
9887      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9888	archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9889	wlarc=
9890      else
9891	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9892	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9893      fi
9894      ;;
9895
9896    solaris*)
9897      if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9898	ld_shlibs=no
9899	cat <<_LT_EOF 1>&2
9900
9901*** Warning: The releases 2.8.* of the GNU linker cannot reliably
9902*** create shared libraries on Solaris systems.  Therefore, libtool
9903*** is disabling shared libraries support.  We urge you to upgrade GNU
9904*** binutils to release 2.9.1 or newer.  Another option is to modify
9905*** your PATH or compiler configuration so that the native linker is
9906*** used, and then restart.
9907
9908_LT_EOF
9909      elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9910	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9911	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9912      else
9913	ld_shlibs=no
9914      fi
9915      ;;
9916
9917    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9918      case `$LD -v 2>&1` in
9919        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9920	ld_shlibs=no
9921	cat <<_LT_EOF 1>&2
9922
9923*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9924*** reliably create shared libraries on SCO systems.  Therefore, libtool
9925*** is disabling shared libraries support.  We urge you to upgrade GNU
9926*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
9927*** your PATH or compiler configuration so that the native linker is
9928*** used, and then restart.
9929
9930_LT_EOF
9931	;;
9932	*)
9933	  # For security reasons, it is highly recommended that you always
9934	  # use absolute paths for naming shared libraries, and exclude the
9935	  # DT_RUNPATH tag from executables and libraries.  But doing so
9936	  # requires that you compile everything twice, which is a pain.
9937	  if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9938	    hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9939	    archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9940	    archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9941	  else
9942	    ld_shlibs=no
9943	  fi
9944	;;
9945      esac
9946      ;;
9947
9948    sunos4*)
9949      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9950      wlarc=
9951      hardcode_direct=yes
9952      hardcode_shlibpath_var=no
9953      ;;
9954
9955    *)
9956      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9957	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9958	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9959      else
9960	ld_shlibs=no
9961      fi
9962      ;;
9963    esac
9964
9965    if test "$ld_shlibs" = no; then
9966      runpath_var=
9967      hardcode_libdir_flag_spec=
9968      export_dynamic_flag_spec=
9969      whole_archive_flag_spec=
9970    fi
9971  else
9972    # PORTME fill in a description of your system's linker (not GNU ld)
9973    case $host_os in
9974    aix3*)
9975      allow_undefined_flag=unsupported
9976      always_export_symbols=yes
9977      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'
9978      # Note: this linker hardcodes the directories in LIBPATH if there
9979      # are no directories specified by -L.
9980      hardcode_minus_L=yes
9981      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9982	# Neither direct hardcoding nor static linking is supported with a
9983	# broken collect2.
9984	hardcode_direct=unsupported
9985      fi
9986      ;;
9987
9988    aix[4-9]*)
9989      if test "$host_cpu" = ia64; then
9990	# On IA64, the linker does run time linking by default, so we don't
9991	# have to do anything special.
9992	aix_use_runtimelinking=no
9993	exp_sym_flag='-Bexport'
9994	no_entry_flag=""
9995      else
9996	# If we're using GNU nm, then we don't want the "-C" option.
9997	# -C means demangle to AIX nm, but means don't demangle with GNU nm
9998	# Also, AIX nm treats weak defined symbols like other global
9999	# defined symbols, whereas GNU nm marks them as "W".
10000	if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
10001	  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'
10002	else
10003	  export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "L")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
10004	fi
10005	aix_use_runtimelinking=no
10006
10007	# Test if we are trying to use run time linking or normal
10008	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
10009	# need to do runtime linking.
10010	case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
10011	  for ld_flag in $LDFLAGS; do
10012	  if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
10013	    aix_use_runtimelinking=yes
10014	    break
10015	  fi
10016	  done
10017	  ;;
10018	esac
10019
10020	exp_sym_flag='-bexport'
10021	no_entry_flag='-bnoentry'
10022      fi
10023
10024      # When large executables or shared objects are built, AIX ld can
10025      # have problems creating the table of contents.  If linking a library
10026      # or program results in "error TOC overflow" add -mminimal-toc to
10027      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
10028      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10029
10030      archive_cmds=''
10031      hardcode_direct=yes
10032      hardcode_direct_absolute=yes
10033      hardcode_libdir_separator=':'
10034      link_all_deplibs=yes
10035      file_list_spec='${wl}-f,'
10036
10037      if test "$GCC" = yes; then
10038	case $host_os in aix4.[012]|aix4.[012].*)
10039	# We only want to do this on AIX 4.2 and lower, the check
10040	# below for broken collect2 doesn't work under 4.3+
10041	  collect2name=`${CC} -print-prog-name=collect2`
10042	  if test -f "$collect2name" &&
10043	   strings "$collect2name" | $GREP resolve_lib_name >/dev/null
10044	  then
10045	  # We have reworked collect2
10046	  :
10047	  else
10048	  # We have old collect2
10049	  hardcode_direct=unsupported
10050	  # It fails to find uninstalled libraries when the uninstalled
10051	  # path is not listed in the libpath.  Setting hardcode_minus_L
10052	  # to unsupported forces relinking
10053	  hardcode_minus_L=yes
10054	  hardcode_libdir_flag_spec='-L$libdir'
10055	  hardcode_libdir_separator=
10056	  fi
10057	  ;;
10058	esac
10059	shared_flag='-shared'
10060	if test "$aix_use_runtimelinking" = yes; then
10061	  shared_flag="$shared_flag "'${wl}-G'
10062	fi
10063      else
10064	# not using gcc
10065	if test "$host_cpu" = ia64; then
10066	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10067	# chokes on -Wl,-G. The following line is correct:
10068	  shared_flag='-G'
10069	else
10070	  if test "$aix_use_runtimelinking" = yes; then
10071	    shared_flag='${wl}-G'
10072	  else
10073	    shared_flag='${wl}-bM:SRE'
10074	  fi
10075	fi
10076      fi
10077
10078      export_dynamic_flag_spec='${wl}-bexpall'
10079      # It seems that -bexpall does not export symbols beginning with
10080      # underscore (_), so it is better to generate a list of symbols to export.
10081      always_export_symbols=yes
10082      if test "$aix_use_runtimelinking" = yes; then
10083	# Warning - without using the other runtime loading flags (-brtl),
10084	# -berok will link without error, but may produce a broken library.
10085	allow_undefined_flag='-berok'
10086        # Determine the default libpath from the value encoded in an
10087        # empty executable.
10088        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10089/* end confdefs.h.  */
10090
10091int
10092main ()
10093{
10094
10095  ;
10096  return 0;
10097}
10098_ACEOF
10099if ac_fn_c_try_link "$LINENO"; then :
10100
10101lt_aix_libpath_sed='
10102    /Import File Strings/,/^$/ {
10103	/^0/ {
10104	    s/^0  *\(.*\)$/\1/
10105	    p
10106	}
10107    }'
10108aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10109# Check for a 64-bit object if we didn't find anything.
10110if test -z "$aix_libpath"; then
10111  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10112fi
10113fi
10114rm -f core conftest.err conftest.$ac_objext \
10115    conftest$ac_exeext conftest.$ac_ext
10116if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10117
10118        hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10119        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"
10120      else
10121	if test "$host_cpu" = ia64; then
10122	  hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
10123	  allow_undefined_flag="-z nodefs"
10124	  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"
10125	else
10126	 # Determine the default libpath from the value encoded in an
10127	 # empty executable.
10128	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10129/* end confdefs.h.  */
10130
10131int
10132main ()
10133{
10134
10135  ;
10136  return 0;
10137}
10138_ACEOF
10139if ac_fn_c_try_link "$LINENO"; then :
10140
10141lt_aix_libpath_sed='
10142    /Import File Strings/,/^$/ {
10143	/^0/ {
10144	    s/^0  *\(.*\)$/\1/
10145	    p
10146	}
10147    }'
10148aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10149# Check for a 64-bit object if we didn't find anything.
10150if test -z "$aix_libpath"; then
10151  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10152fi
10153fi
10154rm -f core conftest.err conftest.$ac_objext \
10155    conftest$ac_exeext conftest.$ac_ext
10156if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10157
10158	 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10159	  # Warning - without using the other run time loading flags,
10160	  # -berok will link without error, but may produce a broken library.
10161	  no_undefined_flag=' ${wl}-bernotok'
10162	  allow_undefined_flag=' ${wl}-berok'
10163	  if test "$with_gnu_ld" = yes; then
10164	    # We only use this code for GNU lds that support --whole-archive.
10165	    whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
10166	  else
10167	    # Exported symbols can be pulled into shared objects from archives
10168	    whole_archive_flag_spec='$convenience'
10169	  fi
10170	  archive_cmds_need_lc=yes
10171	  # This is similar to how AIX traditionally builds its shared libraries.
10172	  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'
10173	fi
10174      fi
10175      ;;
10176
10177    amigaos*)
10178      case $host_cpu in
10179      powerpc)
10180            # see comment about AmigaOS4 .so support
10181            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10182            archive_expsym_cmds=''
10183        ;;
10184      m68k)
10185            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)'
10186            hardcode_libdir_flag_spec='-L$libdir'
10187            hardcode_minus_L=yes
10188        ;;
10189      esac
10190      ;;
10191
10192    bsdi[45]*)
10193      export_dynamic_flag_spec=-rdynamic
10194      ;;
10195
10196    cygwin* | mingw* | pw32* | cegcc*)
10197      # When not using gcc, we currently assume that we are using
10198      # Microsoft Visual C++.
10199      # hardcode_libdir_flag_spec is actually meaningless, as there is
10200      # no search path for DLLs.
10201      hardcode_libdir_flag_spec=' '
10202      allow_undefined_flag=unsupported
10203      # Tell ltmain to make .lib files, not .a files.
10204      libext=lib
10205      # Tell ltmain to make .dll files, not .so files.
10206      shrext_cmds=".dll"
10207      # FIXME: Setting linknames here is a bad hack.
10208      archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
10209      # The linker will automatically build a .lib file if we build a DLL.
10210      old_archive_from_new_cmds='true'
10211      # FIXME: Should let the user specify the lib program.
10212      old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
10213      fix_srcfile_path='`cygpath -w "$srcfile"`'
10214      enable_shared_with_static_runtimes=yes
10215      ;;
10216
10217    darwin* | rhapsody*)
10218
10219
10220  archive_cmds_need_lc=no
10221  hardcode_direct=no
10222  hardcode_automatic=yes
10223  hardcode_shlibpath_var=unsupported
10224  if test "$lt_cv_ld_force_load" = "yes"; then
10225    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\"`'
10226  else
10227    whole_archive_flag_spec=''
10228  fi
10229  link_all_deplibs=yes
10230  allow_undefined_flag="$_lt_dar_allow_undefined"
10231  case $cc_basename in
10232     ifort*) _lt_dar_can_shared=yes ;;
10233     *) _lt_dar_can_shared=$GCC ;;
10234  esac
10235  if test "$_lt_dar_can_shared" = "yes"; then
10236    output_verbose_link_cmd=func_echo_all
10237    archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
10238    module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
10239    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}"
10240    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}"
10241
10242  else
10243  ld_shlibs=no
10244  fi
10245
10246      ;;
10247
10248    dgux*)
10249      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10250      hardcode_libdir_flag_spec='-L$libdir'
10251      hardcode_shlibpath_var=no
10252      ;;
10253
10254    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
10255    # support.  Future versions do this automatically, but an explicit c++rt0.o
10256    # does not break anything, and helps significantly (at the cost of a little
10257    # extra space).
10258    freebsd2.2*)
10259      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
10260      hardcode_libdir_flag_spec='-R$libdir'
10261      hardcode_direct=yes
10262      hardcode_shlibpath_var=no
10263      ;;
10264
10265    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
10266    freebsd2.*)
10267      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10268      hardcode_direct=yes
10269      hardcode_minus_L=yes
10270      hardcode_shlibpath_var=no
10271      ;;
10272
10273    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
10274    freebsd* | dragonfly*)
10275      archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
10276      hardcode_libdir_flag_spec='-R$libdir'
10277      hardcode_direct=yes
10278      hardcode_shlibpath_var=no
10279      ;;
10280
10281    hpux9*)
10282      if test "$GCC" = yes; then
10283	archive_cmds='$RM $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
10284      else
10285	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'
10286      fi
10287      hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10288      hardcode_libdir_separator=:
10289      hardcode_direct=yes
10290
10291      # hardcode_minus_L: Not really in the search PATH,
10292      # but as the default location of the library.
10293      hardcode_minus_L=yes
10294      export_dynamic_flag_spec='${wl}-E'
10295      ;;
10296
10297    hpux10*)
10298      if test "$GCC" = yes && test "$with_gnu_ld" = no; then
10299	archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10300      else
10301	archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10302      fi
10303      if test "$with_gnu_ld" = no; then
10304	hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10305	hardcode_libdir_flag_spec_ld='+b $libdir'
10306	hardcode_libdir_separator=:
10307	hardcode_direct=yes
10308	hardcode_direct_absolute=yes
10309	export_dynamic_flag_spec='${wl}-E'
10310	# hardcode_minus_L: Not really in the search PATH,
10311	# but as the default location of the library.
10312	hardcode_minus_L=yes
10313      fi
10314      ;;
10315
10316    hpux11*)
10317      if test "$GCC" = yes && test "$with_gnu_ld" = no; then
10318	case $host_cpu in
10319	hppa*64*)
10320	  archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10321	  ;;
10322	ia64*)
10323	  archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10324	  ;;
10325	*)
10326	  archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10327	  ;;
10328	esac
10329      else
10330	case $host_cpu in
10331	hppa*64*)
10332	  archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10333	  ;;
10334	ia64*)
10335	  archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10336	  ;;
10337	*)
10338
10339	  # Older versions of the 11.00 compiler do not understand -b yet
10340	  # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
10341	  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
10342$as_echo_n "checking if $CC understands -b... " >&6; }
10343if test "${lt_cv_prog_compiler__b+set}" = set; then :
10344  $as_echo_n "(cached) " >&6
10345else
10346  lt_cv_prog_compiler__b=no
10347   save_LDFLAGS="$LDFLAGS"
10348   LDFLAGS="$LDFLAGS -b"
10349   echo "$lt_simple_link_test_code" > conftest.$ac_ext
10350   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10351     # The linker can only warn and ignore the option if not recognized
10352     # So say no if there are warnings
10353     if test -s conftest.err; then
10354       # Append any errors to the config.log.
10355       cat conftest.err 1>&5
10356       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10357       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10358       if diff conftest.exp conftest.er2 >/dev/null; then
10359         lt_cv_prog_compiler__b=yes
10360       fi
10361     else
10362       lt_cv_prog_compiler__b=yes
10363     fi
10364   fi
10365   $RM -r conftest*
10366   LDFLAGS="$save_LDFLAGS"
10367
10368fi
10369{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
10370$as_echo "$lt_cv_prog_compiler__b" >&6; }
10371
10372if test x"$lt_cv_prog_compiler__b" = xyes; then
10373    archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10374else
10375    archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10376fi
10377
10378	  ;;
10379	esac
10380      fi
10381      if test "$with_gnu_ld" = no; then
10382	hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10383	hardcode_libdir_separator=:
10384
10385	case $host_cpu in
10386	hppa*64*|ia64*)
10387	  hardcode_direct=no
10388	  hardcode_shlibpath_var=no
10389	  ;;
10390	*)
10391	  hardcode_direct=yes
10392	  hardcode_direct_absolute=yes
10393	  export_dynamic_flag_spec='${wl}-E'
10394
10395	  # hardcode_minus_L: Not really in the search PATH,
10396	  # but as the default location of the library.
10397	  hardcode_minus_L=yes
10398	  ;;
10399	esac
10400      fi
10401      ;;
10402
10403    irix5* | irix6* | nonstopux*)
10404      if test "$GCC" = yes; then
10405	archive_cmds='$CC -shared $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'
10406	# Try to use the -exported_symbol ld option, if it does not
10407	# work, assume that -exports_file does not work either and
10408	# implicitly export all symbols.
10409        save_LDFLAGS="$LDFLAGS"
10410        LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
10411        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10412/* end confdefs.h.  */
10413int foo(void) {}
10414_ACEOF
10415if ac_fn_c_try_link "$LINENO"; then :
10416  archive_expsym_cmds='$CC -shared $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'
10417
10418fi
10419rm -f core conftest.err conftest.$ac_objext \
10420    conftest$ac_exeext conftest.$ac_ext
10421        LDFLAGS="$save_LDFLAGS"
10422      else
10423	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'
10424	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'
10425      fi
10426      archive_cmds_need_lc='no'
10427      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10428      hardcode_libdir_separator=:
10429      inherit_rpath=yes
10430      link_all_deplibs=yes
10431      ;;
10432
10433    netbsd*)
10434      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10435	archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
10436      else
10437	archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
10438      fi
10439      hardcode_libdir_flag_spec='-R$libdir'
10440      hardcode_direct=yes
10441      hardcode_shlibpath_var=no
10442      ;;
10443
10444    newsos6)
10445      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10446      hardcode_direct=yes
10447      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10448      hardcode_libdir_separator=:
10449      hardcode_shlibpath_var=no
10450      ;;
10451
10452    *nto* | *qnx*)
10453      ;;
10454
10455    openbsd*)
10456      if test -f /usr/libexec/ld.so; then
10457	hardcode_direct=yes
10458	hardcode_shlibpath_var=no
10459	hardcode_direct_absolute=yes
10460	if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10461	  archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10462	  archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
10463	  hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10464	  export_dynamic_flag_spec='${wl}-E'
10465	else
10466	  case $host_os in
10467	   openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
10468	     archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10469	     hardcode_libdir_flag_spec='-R$libdir'
10470	     ;;
10471	   *)
10472	     archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10473	     hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10474	     ;;
10475	  esac
10476	fi
10477      else
10478	ld_shlibs=no
10479      fi
10480      ;;
10481
10482    os2*)
10483      hardcode_libdir_flag_spec='-L$libdir'
10484      hardcode_minus_L=yes
10485      allow_undefined_flag=unsupported
10486      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'
10487      old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
10488      ;;
10489
10490    osf3*)
10491      if test "$GCC" = yes; then
10492	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10493	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'
10494      else
10495	allow_undefined_flag=' -expect_unresolved \*'
10496	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'
10497      fi
10498      archive_cmds_need_lc='no'
10499      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10500      hardcode_libdir_separator=:
10501      ;;
10502
10503    osf4* | osf5*)	# as osf3* with the addition of -msym flag
10504      if test "$GCC" = yes; then
10505	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10506	archive_cmds='$CC -shared${allow_undefined_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'
10507	hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10508      else
10509	allow_undefined_flag=' -expect_unresolved \*'
10510	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'
10511	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~
10512	$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'
10513
10514	# Both c and cxx compiler support -rpath directly
10515	hardcode_libdir_flag_spec='-rpath $libdir'
10516      fi
10517      archive_cmds_need_lc='no'
10518      hardcode_libdir_separator=:
10519      ;;
10520
10521    solaris*)
10522      no_undefined_flag=' -z defs'
10523      if test "$GCC" = yes; then
10524	wlarc='${wl}'
10525	archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10526	archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10527	  $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10528      else
10529	case `$CC -V 2>&1` in
10530	*"Compilers 5.0"*)
10531	  wlarc=''
10532	  archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
10533	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10534	  $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10535	  ;;
10536	*)
10537	  wlarc='${wl}'
10538	  archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10539	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10540	  $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10541	  ;;
10542	esac
10543      fi
10544      hardcode_libdir_flag_spec='-R$libdir'
10545      hardcode_shlibpath_var=no
10546      case $host_os in
10547      solaris2.[0-5] | solaris2.[0-5].*) ;;
10548      *)
10549	# The compiler driver will combine and reorder linker options,
10550	# but understands `-z linker_flag'.  GCC discards it without `$wl',
10551	# but is careful enough not to reorder.
10552	# Supported since Solaris 2.6 (maybe 2.5.1?)
10553	if test "$GCC" = yes; then
10554	  whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10555	else
10556	  whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10557	fi
10558	;;
10559      esac
10560      link_all_deplibs=yes
10561      ;;
10562
10563    sunos4*)
10564      if test "x$host_vendor" = xsequent; then
10565	# Use $CC to link under sequent, because it throws in some extra .o
10566	# files that make .init and .fini sections work.
10567	archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10568      else
10569	archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10570      fi
10571      hardcode_libdir_flag_spec='-L$libdir'
10572      hardcode_direct=yes
10573      hardcode_minus_L=yes
10574      hardcode_shlibpath_var=no
10575      ;;
10576
10577    sysv4)
10578      case $host_vendor in
10579	sni)
10580	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10581	  hardcode_direct=yes # is this really true???
10582	;;
10583	siemens)
10584	  ## LD is ld it makes a PLAMLIB
10585	  ## CC just makes a GrossModule.
10586	  archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10587	  reload_cmds='$CC -r -o $output$reload_objs'
10588	  hardcode_direct=no
10589        ;;
10590	motorola)
10591	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10592	  hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10593	;;
10594      esac
10595      runpath_var='LD_RUN_PATH'
10596      hardcode_shlibpath_var=no
10597      ;;
10598
10599    sysv4.3*)
10600      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10601      hardcode_shlibpath_var=no
10602      export_dynamic_flag_spec='-Bexport'
10603      ;;
10604
10605    sysv4*MP*)
10606      if test -d /usr/nec; then
10607	archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10608	hardcode_shlibpath_var=no
10609	runpath_var=LD_RUN_PATH
10610	hardcode_runpath_var=yes
10611	ld_shlibs=yes
10612      fi
10613      ;;
10614
10615    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10616      no_undefined_flag='${wl}-z,text'
10617      archive_cmds_need_lc=no
10618      hardcode_shlibpath_var=no
10619      runpath_var='LD_RUN_PATH'
10620
10621      if test "$GCC" = yes; then
10622	archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10623	archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10624      else
10625	archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10626	archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10627      fi
10628      ;;
10629
10630    sysv5* | sco3.2v5* | sco5v6*)
10631      # Note: We can NOT use -z defs as we might desire, because we do not
10632      # link with -lc, and that would cause any symbols used from libc to
10633      # always be unresolved, which means just about no library would
10634      # ever link correctly.  If we're not using GNU ld we use -z text
10635      # though, which does catch some bad symbols but isn't as heavy-handed
10636      # as -z defs.
10637      no_undefined_flag='${wl}-z,text'
10638      allow_undefined_flag='${wl}-z,nodefs'
10639      archive_cmds_need_lc=no
10640      hardcode_shlibpath_var=no
10641      hardcode_libdir_flag_spec='${wl}-R,$libdir'
10642      hardcode_libdir_separator=':'
10643      link_all_deplibs=yes
10644      export_dynamic_flag_spec='${wl}-Bexport'
10645      runpath_var='LD_RUN_PATH'
10646
10647      if test "$GCC" = yes; then
10648	archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10649	archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10650      else
10651	archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10652	archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10653      fi
10654      ;;
10655
10656    uts4*)
10657      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10658      hardcode_libdir_flag_spec='-L$libdir'
10659      hardcode_shlibpath_var=no
10660      ;;
10661
10662    *)
10663      ld_shlibs=no
10664      ;;
10665    esac
10666
10667    if test x$host_vendor = xsni; then
10668      case $host in
10669      sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10670	export_dynamic_flag_spec='${wl}-Blargedynsym'
10671	;;
10672      esac
10673    fi
10674  fi
10675
10676{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10677$as_echo "$ld_shlibs" >&6; }
10678test "$ld_shlibs" = no && can_build_shared=no
10679
10680with_gnu_ld=$with_gnu_ld
10681
10682
10683
10684
10685
10686
10687
10688
10689
10690
10691
10692
10693
10694
10695
10696#
10697# Do we need to explicitly link libc?
10698#
10699case "x$archive_cmds_need_lc" in
10700x|xyes)
10701  # Assume -lc should be added
10702  archive_cmds_need_lc=yes
10703
10704  if test "$enable_shared" = yes && test "$GCC" = yes; then
10705    case $archive_cmds in
10706    *'~'*)
10707      # FIXME: we may have to deal with multi-command sequences.
10708      ;;
10709    '$CC '*)
10710      # Test whether the compiler implicitly links with -lc since on some
10711      # systems, -lgcc has to come before -lc. If gcc already passes -lc
10712      # to ld, don't add -lc before -lgcc.
10713      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10714$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10715if test "${lt_cv_archive_cmds_need_lc+set}" = set; then :
10716  $as_echo_n "(cached) " >&6
10717else
10718  $RM conftest*
10719	echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10720
10721	if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10722  (eval $ac_compile) 2>&5
10723  ac_status=$?
10724  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10725  test $ac_status = 0; } 2>conftest.err; then
10726	  soname=conftest
10727	  lib=conftest
10728	  libobjs=conftest.$ac_objext
10729	  deplibs=
10730	  wl=$lt_prog_compiler_wl
10731	  pic_flag=$lt_prog_compiler_pic
10732	  compiler_flags=-v
10733	  linker_flags=-v
10734	  verstring=
10735	  output_objdir=.
10736	  libname=conftest
10737	  lt_save_allow_undefined_flag=$allow_undefined_flag
10738	  allow_undefined_flag=
10739	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10740  (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10741  ac_status=$?
10742  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10743  test $ac_status = 0; }
10744	  then
10745	    lt_cv_archive_cmds_need_lc=no
10746	  else
10747	    lt_cv_archive_cmds_need_lc=yes
10748	  fi
10749	  allow_undefined_flag=$lt_save_allow_undefined_flag
10750	else
10751	  cat conftest.err 1>&5
10752	fi
10753	$RM conftest*
10754
10755fi
10756{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10757$as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
10758      archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
10759      ;;
10760    esac
10761  fi
10762  ;;
10763esac
10764
10765
10766
10767
10768
10769
10770
10771
10772
10773
10774
10775
10776
10777
10778
10779
10780
10781
10782
10783
10784
10785
10786
10787
10788
10789
10790
10791
10792
10793
10794
10795
10796
10797
10798
10799
10800
10801
10802
10803
10804
10805
10806
10807
10808
10809
10810
10811
10812
10813
10814
10815
10816
10817
10818
10819
10820
10821
10822
10823
10824
10825
10826
10827
10828
10829
10830
10831
10832
10833
10834
10835
10836
10837
10838
10839
10840
10841
10842
10843
10844
10845
10846
10847
10848
10849
10850
10851
10852
10853
10854
10855
10856
10857
10858
10859
10860
10861
10862
10863
10864
10865
10866
10867
10868
10869
10870
10871
10872
10873
10874
10875
10876
10877
10878
10879
10880
10881
10882
10883
10884
10885
10886
10887
10888
10889
10890
10891
10892
10893
10894
10895
10896
10897
10898
10899
10900
10901
10902
10903
10904
10905
10906
10907
10908
10909
10910
10911
10912
10913
10914
10915
10916
10917
10918
10919
10920
10921  { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10922$as_echo_n "checking dynamic linker characteristics... " >&6; }
10923
10924if test "$GCC" = yes; then
10925  case $host_os in
10926    darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
10927    *) lt_awk_arg="/^libraries:/" ;;
10928  esac
10929  case $host_os in
10930    mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
10931    *) lt_sed_strip_eq="s,=/,/,g" ;;
10932  esac
10933  lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10934  case $lt_search_path_spec in
10935  *\;*)
10936    # if the path contains ";" then we assume it to be the separator
10937    # otherwise default to the standard path separator (i.e. ":") - it is
10938    # assumed that no part of a normal pathname contains ";" but that should
10939    # okay in the real world where ";" in dirpaths is itself problematic.
10940    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10941    ;;
10942  *)
10943    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10944    ;;
10945  esac
10946  # Ok, now we have the path, separated by spaces, we can step through it
10947  # and add multilib dir if necessary.
10948  lt_tmp_lt_search_path_spec=
10949  lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10950  for lt_sys_path in $lt_search_path_spec; do
10951    if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10952      lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10953    else
10954      test -d "$lt_sys_path" && \
10955	lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10956    fi
10957  done
10958  lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10959BEGIN {RS=" "; FS="/|\n";} {
10960  lt_foo="";
10961  lt_count=0;
10962  for (lt_i = NF; lt_i > 0; lt_i--) {
10963    if ($lt_i != "" && $lt_i != ".") {
10964      if ($lt_i == "..") {
10965        lt_count++;
10966      } else {
10967        if (lt_count == 0) {
10968          lt_foo="/" $lt_i lt_foo;
10969        } else {
10970          lt_count--;
10971        }
10972      }
10973    }
10974  }
10975  if (lt_foo != "") { lt_freq[lt_foo]++; }
10976  if (lt_freq[lt_foo] == 1) { print lt_foo; }
10977}'`
10978  # AWK program above erroneously prepends '/' to C:/dos/paths
10979  # for these hosts.
10980  case $host_os in
10981    mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
10982      $SED 's,/\([A-Za-z]:\),\1,g'` ;;
10983  esac
10984  sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
10985else
10986  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10987fi
10988library_names_spec=
10989libname_spec='lib$name'
10990soname_spec=
10991shrext_cmds=".so"
10992postinstall_cmds=
10993postuninstall_cmds=
10994finish_cmds=
10995finish_eval=
10996shlibpath_var=
10997shlibpath_overrides_runpath=unknown
10998version_type=none
10999dynamic_linker="$host_os ld.so"
11000sys_lib_dlsearch_path_spec="/lib /usr/lib"
11001need_lib_prefix=unknown
11002hardcode_into_libs=no
11003
11004# when you set need_version to no, make sure it does not cause -set_version
11005# flags to be left without arguments
11006need_version=unknown
11007
11008case $host_os in
11009aix3*)
11010  version_type=linux
11011  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
11012  shlibpath_var=LIBPATH
11013
11014  # AIX 3 has no versioning support, so we append a major version to the name.
11015  soname_spec='${libname}${release}${shared_ext}$major'
11016  ;;
11017
11018aix[4-9]*)
11019  version_type=linux
11020  need_lib_prefix=no
11021  need_version=no
11022  hardcode_into_libs=yes
11023  if test "$host_cpu" = ia64; then
11024    # AIX 5 supports IA64
11025    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
11026    shlibpath_var=LD_LIBRARY_PATH
11027  else
11028    # With GCC up to 2.95.x, collect2 would create an import file
11029    # for dependence libraries.  The import file would start with
11030    # the line `#! .'.  This would cause the generated library to
11031    # depend on `.', always an invalid library.  This was fixed in
11032    # development snapshots of GCC prior to 3.0.
11033    case $host_os in
11034      aix4 | aix4.[01] | aix4.[01].*)
11035      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11036	   echo ' yes '
11037	   echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
11038	:
11039      else
11040	can_build_shared=no
11041      fi
11042      ;;
11043    esac
11044    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
11045    # soname into executable. Probably we can add versioning support to
11046    # collect2, so additional links can be useful in future.
11047    if test "$aix_use_runtimelinking" = yes; then
11048      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11049      # instead of lib<name>.a to let people know that these are not
11050      # typical AIX shared libraries.
11051      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11052    else
11053      # We preserve .a as extension for shared libraries through AIX4.2
11054      # and later when we are not doing run time linking.
11055      library_names_spec='${libname}${release}.a $libname.a'
11056      soname_spec='${libname}${release}${shared_ext}$major'
11057    fi
11058    shlibpath_var=LIBPATH
11059  fi
11060  ;;
11061
11062amigaos*)
11063  case $host_cpu in
11064  powerpc)
11065    # Since July 2007 AmigaOS4 officially supports .so libraries.
11066    # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
11067    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11068    ;;
11069  m68k)
11070    library_names_spec='$libname.ixlibrary $libname.a'
11071    # Create ${libname}_ixlibrary.a entries in /sys/libs.
11072    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'
11073    ;;
11074  esac
11075  ;;
11076
11077beos*)
11078  library_names_spec='${libname}${shared_ext}'
11079  dynamic_linker="$host_os ld.so"
11080  shlibpath_var=LIBRARY_PATH
11081  ;;
11082
11083bsdi[45]*)
11084  version_type=linux
11085  need_version=no
11086  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11087  soname_spec='${libname}${release}${shared_ext}$major'
11088  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11089  shlibpath_var=LD_LIBRARY_PATH
11090  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11091  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11092  # the default ld.so.conf also contains /usr/contrib/lib and
11093  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11094  # libtool to hard-code these into programs
11095  ;;
11096
11097cygwin* | mingw* | pw32* | cegcc*)
11098  version_type=windows
11099  shrext_cmds=".dll"
11100  need_version=no
11101  need_lib_prefix=no
11102
11103  case $GCC,$host_os in
11104  yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
11105    library_names_spec='$libname.dll.a'
11106    # DLL is installed to $(libdir)/../bin by postinstall_cmds
11107    postinstall_cmds='base_file=`basename \${file}`~
11108      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
11109      dldir=$destdir/`dirname \$dlpath`~
11110      test -d \$dldir || mkdir -p \$dldir~
11111      $install_prog $dir/$dlname \$dldir/$dlname~
11112      chmod a+x \$dldir/$dlname~
11113      if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11114        eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11115      fi'
11116    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11117      dlpath=$dir/\$dldll~
11118       $RM \$dlpath'
11119    shlibpath_overrides_runpath=yes
11120
11121    case $host_os in
11122    cygwin*)
11123      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11124      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11125
11126      sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
11127      ;;
11128    mingw* | cegcc*)
11129      # MinGW DLLs use traditional 'lib' prefix
11130      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11131      ;;
11132    pw32*)
11133      # pw32 DLLs use 'pw' prefix rather than 'lib'
11134      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11135      ;;
11136    esac
11137    ;;
11138
11139  *)
11140    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
11141    ;;
11142  esac
11143  dynamic_linker='Win32 ld.exe'
11144  # FIXME: first we should search . and the directory the executable is in
11145  shlibpath_var=PATH
11146  ;;
11147
11148darwin* | rhapsody*)
11149  dynamic_linker="$host_os dyld"
11150  version_type=darwin
11151  need_lib_prefix=no
11152  need_version=no
11153  library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
11154  soname_spec='${libname}${release}${major}$shared_ext'
11155  shlibpath_overrides_runpath=yes
11156  shlibpath_var=DYLD_LIBRARY_PATH
11157  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
11158
11159  sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
11160  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11161  ;;
11162
11163dgux*)
11164  version_type=linux
11165  need_lib_prefix=no
11166  need_version=no
11167  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
11168  soname_spec='${libname}${release}${shared_ext}$major'
11169  shlibpath_var=LD_LIBRARY_PATH
11170  ;;
11171
11172freebsd* | dragonfly*)
11173  # DragonFly does not have aout.  When/if they implement a new
11174  # versioning mechanism, adjust this.
11175  if test -x /usr/bin/objformat; then
11176    objformat=`/usr/bin/objformat`
11177  else
11178    case $host_os in
11179    freebsd[23].*) objformat=aout ;;
11180    *) objformat=elf ;;
11181    esac
11182  fi
11183  version_type=freebsd-$objformat
11184  case $version_type in
11185    freebsd-elf*)
11186      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11187      need_version=no
11188      need_lib_prefix=no
11189      ;;
11190    freebsd-*)
11191      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
11192      need_version=yes
11193      ;;
11194  esac
11195  shlibpath_var=LD_LIBRARY_PATH
11196  case $host_os in
11197  freebsd2.*)
11198    shlibpath_overrides_runpath=yes
11199    ;;
11200  freebsd3.[01]* | freebsdelf3.[01]*)
11201    shlibpath_overrides_runpath=yes
11202    hardcode_into_libs=yes
11203    ;;
11204  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
11205  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
11206    shlibpath_overrides_runpath=no
11207    hardcode_into_libs=yes
11208    ;;
11209  *) # from 4.6 on, and DragonFly
11210    shlibpath_overrides_runpath=yes
11211    hardcode_into_libs=yes
11212    ;;
11213  esac
11214  ;;
11215
11216gnu*)
11217  version_type=linux
11218  need_lib_prefix=no
11219  need_version=no
11220  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11221  soname_spec='${libname}${release}${shared_ext}$major'
11222  shlibpath_var=LD_LIBRARY_PATH
11223  hardcode_into_libs=yes
11224  ;;
11225
11226haiku*)
11227  version_type=linux
11228  need_lib_prefix=no
11229  need_version=no
11230  dynamic_linker="$host_os runtime_loader"
11231  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11232  soname_spec='${libname}${release}${shared_ext}$major'
11233  shlibpath_var=LIBRARY_PATH
11234  shlibpath_overrides_runpath=yes
11235  sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
11236  hardcode_into_libs=yes
11237  ;;
11238
11239hpux9* | hpux10* | hpux11*)
11240  # Give a soname corresponding to the major version so that dld.sl refuses to
11241  # link against other versions.
11242  version_type=sunos
11243  need_lib_prefix=no
11244  need_version=no
11245  case $host_cpu in
11246  ia64*)
11247    shrext_cmds='.so'
11248    hardcode_into_libs=yes
11249    dynamic_linker="$host_os dld.so"
11250    shlibpath_var=LD_LIBRARY_PATH
11251    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11252    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11253    soname_spec='${libname}${release}${shared_ext}$major'
11254    if test "X$HPUX_IA64_MODE" = X32; then
11255      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11256    else
11257      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11258    fi
11259    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11260    ;;
11261  hppa*64*)
11262    shrext_cmds='.sl'
11263    hardcode_into_libs=yes
11264    dynamic_linker="$host_os dld.sl"
11265    shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11266    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11267    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11268    soname_spec='${libname}${release}${shared_ext}$major'
11269    sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11270    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11271    ;;
11272  *)
11273    shrext_cmds='.sl'
11274    dynamic_linker="$host_os dld.sl"
11275    shlibpath_var=SHLIB_PATH
11276    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11277    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11278    soname_spec='${libname}${release}${shared_ext}$major'
11279    ;;
11280  esac
11281  # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
11282  postinstall_cmds='chmod 555 $lib'
11283  # or fails outright, so override atomically:
11284  install_override_mode=555
11285  ;;
11286
11287interix[3-9]*)
11288  version_type=linux
11289  need_lib_prefix=no
11290  need_version=no
11291  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11292  soname_spec='${libname}${release}${shared_ext}$major'
11293  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
11294  shlibpath_var=LD_LIBRARY_PATH
11295  shlibpath_overrides_runpath=no
11296  hardcode_into_libs=yes
11297  ;;
11298
11299irix5* | irix6* | nonstopux*)
11300  case $host_os in
11301    nonstopux*) version_type=nonstopux ;;
11302    *)
11303	if test "$lt_cv_prog_gnu_ld" = yes; then
11304		version_type=linux
11305	else
11306		version_type=irix
11307	fi ;;
11308  esac
11309  need_lib_prefix=no
11310  need_version=no
11311  soname_spec='${libname}${release}${shared_ext}$major'
11312  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
11313  case $host_os in
11314  irix5* | nonstopux*)
11315    libsuff= shlibsuff=
11316    ;;
11317  *)
11318    case $LD in # libtool.m4 will add one of these switches to LD
11319    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11320      libsuff= shlibsuff= libmagic=32-bit;;
11321    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11322      libsuff=32 shlibsuff=N32 libmagic=N32;;
11323    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11324      libsuff=64 shlibsuff=64 libmagic=64-bit;;
11325    *) libsuff= shlibsuff= libmagic=never-match;;
11326    esac
11327    ;;
11328  esac
11329  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11330  shlibpath_overrides_runpath=no
11331  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11332  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
11333  hardcode_into_libs=yes
11334  ;;
11335
11336# No shared lib support for Linux oldld, aout, or coff.
11337linux*oldld* | linux*aout* | linux*coff*)
11338  dynamic_linker=no
11339  ;;
11340
11341# This must be Linux ELF.
11342linux* | k*bsd*-gnu | kopensolaris*-gnu)
11343  version_type=linux
11344  need_lib_prefix=no
11345  need_version=no
11346  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11347  soname_spec='${libname}${release}${shared_ext}$major'
11348  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11349  shlibpath_var=LD_LIBRARY_PATH
11350  shlibpath_overrides_runpath=no
11351
11352  # Some binutils ld are patched to set DT_RUNPATH
11353  if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
11354  $as_echo_n "(cached) " >&6
11355else
11356  lt_cv_shlibpath_overrides_runpath=no
11357    save_LDFLAGS=$LDFLAGS
11358    save_libdir=$libdir
11359    eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
11360	 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
11361    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11362/* end confdefs.h.  */
11363
11364int
11365main ()
11366{
11367
11368  ;
11369  return 0;
11370}
11371_ACEOF
11372if ac_fn_c_try_link "$LINENO"; then :
11373  if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
11374  lt_cv_shlibpath_overrides_runpath=yes
11375fi
11376fi
11377rm -f core conftest.err conftest.$ac_objext \
11378    conftest$ac_exeext conftest.$ac_ext
11379    LDFLAGS=$save_LDFLAGS
11380    libdir=$save_libdir
11381
11382fi
11383
11384  shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
11385
11386  # This implies no fast_install, which is unacceptable.
11387  # Some rework will be needed to allow for fast_install
11388  # before this can be enabled.
11389  hardcode_into_libs=yes
11390
11391  # Append ld.so.conf contents to the search path
11392  if test -f /etc/ld.so.conf; then
11393    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' ' '`
11394    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11395  fi
11396
11397  # We used to test for /lib/ld.so.1 and disable shared libraries on
11398  # powerpc, because MkLinux only supported shared libraries with the
11399  # GNU dynamic linker.  Since this was broken with cross compilers,
11400  # most powerpc-linux boxes support dynamic linking these days and
11401  # people can always --disable-shared, the test was removed, and we
11402  # assume the GNU/Linux dynamic linker is in use.
11403  dynamic_linker='GNU/Linux ld.so'
11404  ;;
11405
11406netbsd*)
11407  version_type=sunos
11408  need_lib_prefix=no
11409  need_version=no
11410  if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11411    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11412    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11413    dynamic_linker='NetBSD (a.out) ld.so'
11414  else
11415    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11416    soname_spec='${libname}${release}${shared_ext}$major'
11417    dynamic_linker='NetBSD ld.elf_so'
11418  fi
11419  shlibpath_var=LD_LIBRARY_PATH
11420  shlibpath_overrides_runpath=yes
11421  hardcode_into_libs=yes
11422  ;;
11423
11424newsos6)
11425  version_type=linux
11426  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11427  shlibpath_var=LD_LIBRARY_PATH
11428  shlibpath_overrides_runpath=yes
11429  ;;
11430
11431*nto* | *qnx*)
11432  version_type=qnx
11433  need_lib_prefix=no
11434  need_version=no
11435  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11436  soname_spec='${libname}${release}${shared_ext}$major'
11437  shlibpath_var=LD_LIBRARY_PATH
11438  shlibpath_overrides_runpath=no
11439  hardcode_into_libs=yes
11440  dynamic_linker='ldqnx.so'
11441  ;;
11442
11443openbsd*)
11444  version_type=sunos
11445  sys_lib_dlsearch_path_spec="/usr/lib"
11446  need_lib_prefix=no
11447  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
11448  case $host_os in
11449    openbsd3.3 | openbsd3.3.*)	need_version=yes ;;
11450    *)				need_version=no  ;;
11451  esac
11452  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11453  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11454  shlibpath_var=LD_LIBRARY_PATH
11455  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11456    case $host_os in
11457      openbsd2.[89] | openbsd2.[89].*)
11458	shlibpath_overrides_runpath=no
11459	;;
11460      *)
11461	shlibpath_overrides_runpath=yes
11462	;;
11463      esac
11464  else
11465    shlibpath_overrides_runpath=yes
11466  fi
11467  ;;
11468
11469os2*)
11470  libname_spec='$name'
11471  shrext_cmds=".dll"
11472  need_lib_prefix=no
11473  library_names_spec='$libname${shared_ext} $libname.a'
11474  dynamic_linker='OS/2 ld.exe'
11475  shlibpath_var=LIBPATH
11476  ;;
11477
11478osf3* | osf4* | osf5*)
11479  version_type=osf
11480  need_lib_prefix=no
11481  need_version=no
11482  soname_spec='${libname}${release}${shared_ext}$major'
11483  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11484  shlibpath_var=LD_LIBRARY_PATH
11485  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11486  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11487  ;;
11488
11489rdos*)
11490  dynamic_linker=no
11491  ;;
11492
11493solaris*)
11494  version_type=linux
11495  need_lib_prefix=no
11496  need_version=no
11497  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11498  soname_spec='${libname}${release}${shared_ext}$major'
11499  shlibpath_var=LD_LIBRARY_PATH
11500  shlibpath_overrides_runpath=yes
11501  hardcode_into_libs=yes
11502  # ldd complains unless libraries are executable
11503  postinstall_cmds='chmod +x $lib'
11504  ;;
11505
11506sunos4*)
11507  version_type=sunos
11508  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11509  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11510  shlibpath_var=LD_LIBRARY_PATH
11511  shlibpath_overrides_runpath=yes
11512  if test "$with_gnu_ld" = yes; then
11513    need_lib_prefix=no
11514  fi
11515  need_version=yes
11516  ;;
11517
11518sysv4 | sysv4.3*)
11519  version_type=linux
11520  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11521  soname_spec='${libname}${release}${shared_ext}$major'
11522  shlibpath_var=LD_LIBRARY_PATH
11523  case $host_vendor in
11524    sni)
11525      shlibpath_overrides_runpath=no
11526      need_lib_prefix=no
11527      runpath_var=LD_RUN_PATH
11528      ;;
11529    siemens)
11530      need_lib_prefix=no
11531      ;;
11532    motorola)
11533      need_lib_prefix=no
11534      need_version=no
11535      shlibpath_overrides_runpath=no
11536      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11537      ;;
11538  esac
11539  ;;
11540
11541sysv4*MP*)
11542  if test -d /usr/nec ;then
11543    version_type=linux
11544    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11545    soname_spec='$libname${shared_ext}.$major'
11546    shlibpath_var=LD_LIBRARY_PATH
11547  fi
11548  ;;
11549
11550sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11551  version_type=freebsd-elf
11552  need_lib_prefix=no
11553  need_version=no
11554  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11555  soname_spec='${libname}${release}${shared_ext}$major'
11556  shlibpath_var=LD_LIBRARY_PATH
11557  shlibpath_overrides_runpath=yes
11558  hardcode_into_libs=yes
11559  if test "$with_gnu_ld" = yes; then
11560    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11561  else
11562    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11563    case $host_os in
11564      sco3.2v5*)
11565        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11566	;;
11567    esac
11568  fi
11569  sys_lib_dlsearch_path_spec='/usr/lib'
11570  ;;
11571
11572tpf*)
11573  # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
11574  version_type=linux
11575  need_lib_prefix=no
11576  need_version=no
11577  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11578  shlibpath_var=LD_LIBRARY_PATH
11579  shlibpath_overrides_runpath=no
11580  hardcode_into_libs=yes
11581  ;;
11582
11583uts4*)
11584  version_type=linux
11585  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11586  soname_spec='${libname}${release}${shared_ext}$major'
11587  shlibpath_var=LD_LIBRARY_PATH
11588  ;;
11589
11590*)
11591  dynamic_linker=no
11592  ;;
11593esac
11594{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11595$as_echo "$dynamic_linker" >&6; }
11596test "$dynamic_linker" = no && can_build_shared=no
11597
11598variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11599if test "$GCC" = yes; then
11600  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11601fi
11602
11603if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
11604  sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
11605fi
11606if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
11607  sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
11608fi
11609
11610
11611
11612
11613
11614
11615
11616
11617
11618
11619
11620
11621
11622
11623
11624
11625
11626
11627
11628
11629
11630
11631
11632
11633
11634
11635
11636
11637
11638
11639
11640
11641
11642
11643
11644
11645
11646
11647
11648
11649
11650
11651
11652
11653
11654
11655
11656
11657
11658
11659
11660
11661
11662
11663
11664
11665
11666
11667
11668
11669
11670
11671
11672
11673
11674
11675
11676
11677
11678
11679
11680
11681
11682
11683
11684
11685
11686
11687
11688
11689
11690
11691
11692
11693
11694
11695
11696
11697
11698
11699
11700
11701  { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11702$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11703hardcode_action=
11704if test -n "$hardcode_libdir_flag_spec" ||
11705   test -n "$runpath_var" ||
11706   test "X$hardcode_automatic" = "Xyes" ; then
11707
11708  # We can hardcode non-existent directories.
11709  if test "$hardcode_direct" != no &&
11710     # If the only mechanism to avoid hardcoding is shlibpath_var, we
11711     # have to relink, otherwise we might link with an installed library
11712     # when we should be linking with a yet-to-be-installed one
11713     ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
11714     test "$hardcode_minus_L" != no; then
11715    # Linking always hardcodes the temporary library directory.
11716    hardcode_action=relink
11717  else
11718    # We can link without hardcoding, and we can hardcode nonexisting dirs.
11719    hardcode_action=immediate
11720  fi
11721else
11722  # We cannot hardcode anything, or else we can only hardcode existing
11723  # directories.
11724  hardcode_action=unsupported
11725fi
11726{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11727$as_echo "$hardcode_action" >&6; }
11728
11729if test "$hardcode_action" = relink ||
11730   test "$inherit_rpath" = yes; then
11731  # Fast installation is not supported
11732  enable_fast_install=no
11733elif test "$shlibpath_overrides_runpath" = yes ||
11734     test "$enable_shared" = no; then
11735  # Fast installation is not necessary
11736  enable_fast_install=needless
11737fi
11738
11739
11740
11741
11742
11743
11744  if test "x$enable_dlopen" != xyes; then
11745  enable_dlopen=unknown
11746  enable_dlopen_self=unknown
11747  enable_dlopen_self_static=unknown
11748else
11749  lt_cv_dlopen=no
11750  lt_cv_dlopen_libs=
11751
11752  case $host_os in
11753  beos*)
11754    lt_cv_dlopen="load_add_on"
11755    lt_cv_dlopen_libs=
11756    lt_cv_dlopen_self=yes
11757    ;;
11758
11759  mingw* | pw32* | cegcc*)
11760    lt_cv_dlopen="LoadLibrary"
11761    lt_cv_dlopen_libs=
11762    ;;
11763
11764  cygwin*)
11765    lt_cv_dlopen="dlopen"
11766    lt_cv_dlopen_libs=
11767    ;;
11768
11769  darwin*)
11770  # if libdl is installed we need to link against it
11771    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11772$as_echo_n "checking for dlopen in -ldl... " >&6; }
11773if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
11774  $as_echo_n "(cached) " >&6
11775else
11776  ac_check_lib_save_LIBS=$LIBS
11777LIBS="-ldl  $LIBS"
11778cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11779/* end confdefs.h.  */
11780
11781/* Override any GCC internal prototype to avoid an error.
11782   Use char because int might match the return type of a GCC
11783   builtin and then its argument prototype would still apply.  */
11784#ifdef __cplusplus
11785extern "C"
11786#endif
11787char dlopen ();
11788int
11789main ()
11790{
11791return dlopen ();
11792  ;
11793  return 0;
11794}
11795_ACEOF
11796if ac_fn_c_try_link "$LINENO"; then :
11797  ac_cv_lib_dl_dlopen=yes
11798else
11799  ac_cv_lib_dl_dlopen=no
11800fi
11801rm -f core conftest.err conftest.$ac_objext \
11802    conftest$ac_exeext conftest.$ac_ext
11803LIBS=$ac_check_lib_save_LIBS
11804fi
11805{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11806$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11807if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
11808  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11809else
11810
11811    lt_cv_dlopen="dyld"
11812    lt_cv_dlopen_libs=
11813    lt_cv_dlopen_self=yes
11814
11815fi
11816
11817    ;;
11818
11819  *)
11820    ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
11821if test "x$ac_cv_func_shl_load" = x""yes; then :
11822  lt_cv_dlopen="shl_load"
11823else
11824  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11825$as_echo_n "checking for shl_load in -ldld... " >&6; }
11826if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
11827  $as_echo_n "(cached) " >&6
11828else
11829  ac_check_lib_save_LIBS=$LIBS
11830LIBS="-ldld  $LIBS"
11831cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11832/* end confdefs.h.  */
11833
11834/* Override any GCC internal prototype to avoid an error.
11835   Use char because int might match the return type of a GCC
11836   builtin and then its argument prototype would still apply.  */
11837#ifdef __cplusplus
11838extern "C"
11839#endif
11840char shl_load ();
11841int
11842main ()
11843{
11844return shl_load ();
11845  ;
11846  return 0;
11847}
11848_ACEOF
11849if ac_fn_c_try_link "$LINENO"; then :
11850  ac_cv_lib_dld_shl_load=yes
11851else
11852  ac_cv_lib_dld_shl_load=no
11853fi
11854rm -f core conftest.err conftest.$ac_objext \
11855    conftest$ac_exeext conftest.$ac_ext
11856LIBS=$ac_check_lib_save_LIBS
11857fi
11858{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11859$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11860if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
11861  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
11862else
11863  ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
11864if test "x$ac_cv_func_dlopen" = x""yes; then :
11865  lt_cv_dlopen="dlopen"
11866else
11867  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11868$as_echo_n "checking for dlopen in -ldl... " >&6; }
11869if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
11870  $as_echo_n "(cached) " >&6
11871else
11872  ac_check_lib_save_LIBS=$LIBS
11873LIBS="-ldl  $LIBS"
11874cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11875/* end confdefs.h.  */
11876
11877/* Override any GCC internal prototype to avoid an error.
11878   Use char because int might match the return type of a GCC
11879   builtin and then its argument prototype would still apply.  */
11880#ifdef __cplusplus
11881extern "C"
11882#endif
11883char dlopen ();
11884int
11885main ()
11886{
11887return dlopen ();
11888  ;
11889  return 0;
11890}
11891_ACEOF
11892if ac_fn_c_try_link "$LINENO"; then :
11893  ac_cv_lib_dl_dlopen=yes
11894else
11895  ac_cv_lib_dl_dlopen=no
11896fi
11897rm -f core conftest.err conftest.$ac_objext \
11898    conftest$ac_exeext conftest.$ac_ext
11899LIBS=$ac_check_lib_save_LIBS
11900fi
11901{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11902$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11903if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
11904  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11905else
11906  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11907$as_echo_n "checking for dlopen in -lsvld... " >&6; }
11908if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
11909  $as_echo_n "(cached) " >&6
11910else
11911  ac_check_lib_save_LIBS=$LIBS
11912LIBS="-lsvld  $LIBS"
11913cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11914/* end confdefs.h.  */
11915
11916/* Override any GCC internal prototype to avoid an error.
11917   Use char because int might match the return type of a GCC
11918   builtin and then its argument prototype would still apply.  */
11919#ifdef __cplusplus
11920extern "C"
11921#endif
11922char dlopen ();
11923int
11924main ()
11925{
11926return dlopen ();
11927  ;
11928  return 0;
11929}
11930_ACEOF
11931if ac_fn_c_try_link "$LINENO"; then :
11932  ac_cv_lib_svld_dlopen=yes
11933else
11934  ac_cv_lib_svld_dlopen=no
11935fi
11936rm -f core conftest.err conftest.$ac_objext \
11937    conftest$ac_exeext conftest.$ac_ext
11938LIBS=$ac_check_lib_save_LIBS
11939fi
11940{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11941$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11942if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
11943  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11944else
11945  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11946$as_echo_n "checking for dld_link in -ldld... " >&6; }
11947if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
11948  $as_echo_n "(cached) " >&6
11949else
11950  ac_check_lib_save_LIBS=$LIBS
11951LIBS="-ldld  $LIBS"
11952cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11953/* end confdefs.h.  */
11954
11955/* Override any GCC internal prototype to avoid an error.
11956   Use char because int might match the return type of a GCC
11957   builtin and then its argument prototype would still apply.  */
11958#ifdef __cplusplus
11959extern "C"
11960#endif
11961char dld_link ();
11962int
11963main ()
11964{
11965return dld_link ();
11966  ;
11967  return 0;
11968}
11969_ACEOF
11970if ac_fn_c_try_link "$LINENO"; then :
11971  ac_cv_lib_dld_dld_link=yes
11972else
11973  ac_cv_lib_dld_dld_link=no
11974fi
11975rm -f core conftest.err conftest.$ac_objext \
11976    conftest$ac_exeext conftest.$ac_ext
11977LIBS=$ac_check_lib_save_LIBS
11978fi
11979{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11980$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11981if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
11982  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
11983fi
11984
11985
11986fi
11987
11988
11989fi
11990
11991
11992fi
11993
11994
11995fi
11996
11997
11998fi
11999
12000    ;;
12001  esac
12002
12003  if test "x$lt_cv_dlopen" != xno; then
12004    enable_dlopen=yes
12005  else
12006    enable_dlopen=no
12007  fi
12008
12009  case $lt_cv_dlopen in
12010  dlopen)
12011    save_CPPFLAGS="$CPPFLAGS"
12012    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12013
12014    save_LDFLAGS="$LDFLAGS"
12015    wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12016
12017    save_LIBS="$LIBS"
12018    LIBS="$lt_cv_dlopen_libs $LIBS"
12019
12020    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
12021$as_echo_n "checking whether a program can dlopen itself... " >&6; }
12022if test "${lt_cv_dlopen_self+set}" = set; then :
12023  $as_echo_n "(cached) " >&6
12024else
12025  	  if test "$cross_compiling" = yes; then :
12026  lt_cv_dlopen_self=cross
12027else
12028  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12029  lt_status=$lt_dlunknown
12030  cat > conftest.$ac_ext <<_LT_EOF
12031#line 12031 "configure"
12032#include "confdefs.h"
12033
12034#if HAVE_DLFCN_H
12035#include <dlfcn.h>
12036#endif
12037
12038#include <stdio.h>
12039
12040#ifdef RTLD_GLOBAL
12041#  define LT_DLGLOBAL		RTLD_GLOBAL
12042#else
12043#  ifdef DL_GLOBAL
12044#    define LT_DLGLOBAL		DL_GLOBAL
12045#  else
12046#    define LT_DLGLOBAL		0
12047#  endif
12048#endif
12049
12050/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12051   find out it does not work in some platform. */
12052#ifndef LT_DLLAZY_OR_NOW
12053#  ifdef RTLD_LAZY
12054#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
12055#  else
12056#    ifdef DL_LAZY
12057#      define LT_DLLAZY_OR_NOW		DL_LAZY
12058#    else
12059#      ifdef RTLD_NOW
12060#        define LT_DLLAZY_OR_NOW	RTLD_NOW
12061#      else
12062#        ifdef DL_NOW
12063#          define LT_DLLAZY_OR_NOW	DL_NOW
12064#        else
12065#          define LT_DLLAZY_OR_NOW	0
12066#        endif
12067#      endif
12068#    endif
12069#  endif
12070#endif
12071
12072/* When -fvisbility=hidden is used, assume the code has been annotated
12073   correspondingly for the symbols needed.  */
12074#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12075void fnord () __attribute__((visibility("default")));
12076#endif
12077
12078void fnord () { int i=42; }
12079int main ()
12080{
12081  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12082  int status = $lt_dlunknown;
12083
12084  if (self)
12085    {
12086      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
12087      else
12088        {
12089	  if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
12090          else puts (dlerror ());
12091	}
12092      /* dlclose (self); */
12093    }
12094  else
12095    puts (dlerror ());
12096
12097  return status;
12098}
12099_LT_EOF
12100  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12101  (eval $ac_link) 2>&5
12102  ac_status=$?
12103  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12104  test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
12105    (./conftest; exit; ) >&5 2>/dev/null
12106    lt_status=$?
12107    case x$lt_status in
12108      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12109      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12110      x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
12111    esac
12112  else :
12113    # compilation failed
12114    lt_cv_dlopen_self=no
12115  fi
12116fi
12117rm -fr conftest*
12118
12119
12120fi
12121{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
12122$as_echo "$lt_cv_dlopen_self" >&6; }
12123
12124    if test "x$lt_cv_dlopen_self" = xyes; then
12125      wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
12126      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
12127$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
12128if test "${lt_cv_dlopen_self_static+set}" = set; then :
12129  $as_echo_n "(cached) " >&6
12130else
12131  	  if test "$cross_compiling" = yes; then :
12132  lt_cv_dlopen_self_static=cross
12133else
12134  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12135  lt_status=$lt_dlunknown
12136  cat > conftest.$ac_ext <<_LT_EOF
12137#line 12137 "configure"
12138#include "confdefs.h"
12139
12140#if HAVE_DLFCN_H
12141#include <dlfcn.h>
12142#endif
12143
12144#include <stdio.h>
12145
12146#ifdef RTLD_GLOBAL
12147#  define LT_DLGLOBAL		RTLD_GLOBAL
12148#else
12149#  ifdef DL_GLOBAL
12150#    define LT_DLGLOBAL		DL_GLOBAL
12151#  else
12152#    define LT_DLGLOBAL		0
12153#  endif
12154#endif
12155
12156/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12157   find out it does not work in some platform. */
12158#ifndef LT_DLLAZY_OR_NOW
12159#  ifdef RTLD_LAZY
12160#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
12161#  else
12162#    ifdef DL_LAZY
12163#      define LT_DLLAZY_OR_NOW		DL_LAZY
12164#    else
12165#      ifdef RTLD_NOW
12166#        define LT_DLLAZY_OR_NOW	RTLD_NOW
12167#      else
12168#        ifdef DL_NOW
12169#          define LT_DLLAZY_OR_NOW	DL_NOW
12170#        else
12171#          define LT_DLLAZY_OR_NOW	0
12172#        endif
12173#      endif
12174#    endif
12175#  endif
12176#endif
12177
12178/* When -fvisbility=hidden is used, assume the code has been annotated
12179   correspondingly for the symbols needed.  */
12180#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12181void fnord () __attribute__((visibility("default")));
12182#endif
12183
12184void fnord () { int i=42; }
12185int main ()
12186{
12187  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12188  int status = $lt_dlunknown;
12189
12190  if (self)
12191    {
12192      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
12193      else
12194        {
12195	  if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
12196          else puts (dlerror ());
12197	}
12198      /* dlclose (self); */
12199    }
12200  else
12201    puts (dlerror ());
12202
12203  return status;
12204}
12205_LT_EOF
12206  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12207  (eval $ac_link) 2>&5
12208  ac_status=$?
12209  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12210  test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
12211    (./conftest; exit; ) >&5 2>/dev/null
12212    lt_status=$?
12213    case x$lt_status in
12214      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12215      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12216      x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
12217    esac
12218  else :
12219    # compilation failed
12220    lt_cv_dlopen_self_static=no
12221  fi
12222fi
12223rm -fr conftest*
12224
12225
12226fi
12227{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
12228$as_echo "$lt_cv_dlopen_self_static" >&6; }
12229    fi
12230
12231    CPPFLAGS="$save_CPPFLAGS"
12232    LDFLAGS="$save_LDFLAGS"
12233    LIBS="$save_LIBS"
12234    ;;
12235  esac
12236
12237  case $lt_cv_dlopen_self in
12238  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12239  *) enable_dlopen_self=unknown ;;
12240  esac
12241
12242  case $lt_cv_dlopen_self_static in
12243  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12244  *) enable_dlopen_self_static=unknown ;;
12245  esac
12246fi
12247
12248
12249
12250
12251
12252
12253
12254
12255
12256
12257
12258
12259
12260
12261
12262
12263
12264striplib=
12265old_striplib=
12266{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
12267$as_echo_n "checking whether stripping libraries is possible... " >&6; }
12268if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
12269  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
12270  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
12271  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12272$as_echo "yes" >&6; }
12273else
12274# FIXME - insert some real tests, host_os isn't really good enough
12275  case $host_os in
12276  darwin*)
12277    if test -n "$STRIP" ; then
12278      striplib="$STRIP -x"
12279      old_striplib="$STRIP -S"
12280      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12281$as_echo "yes" >&6; }
12282    else
12283      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12284$as_echo "no" >&6; }
12285    fi
12286    ;;
12287  *)
12288    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12289$as_echo "no" >&6; }
12290    ;;
12291  esac
12292fi
12293
12294
12295
12296
12297
12298
12299
12300
12301
12302
12303
12304
12305  # Report which library types will actually be built
12306  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
12307$as_echo_n "checking if libtool supports shared libraries... " >&6; }
12308  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
12309$as_echo "$can_build_shared" >&6; }
12310
12311  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
12312$as_echo_n "checking whether to build shared libraries... " >&6; }
12313  test "$can_build_shared" = "no" && enable_shared=no
12314
12315  # On AIX, shared libraries and static libraries use the same namespace, and
12316  # are all built from PIC.
12317  case $host_os in
12318  aix3*)
12319    test "$enable_shared" = yes && enable_static=no
12320    if test -n "$RANLIB"; then
12321      archive_cmds="$archive_cmds~\$RANLIB \$lib"
12322      postinstall_cmds='$RANLIB $lib'
12323    fi
12324    ;;
12325
12326  aix[4-9]*)
12327    if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
12328      test "$enable_shared" = yes && enable_static=no
12329    fi
12330    ;;
12331  esac
12332  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
12333$as_echo "$enable_shared" >&6; }
12334
12335  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
12336$as_echo_n "checking whether to build static libraries... " >&6; }
12337  # Make sure either enable_shared or enable_static is yes.
12338  test "$enable_shared" = yes || enable_static=yes
12339  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
12340$as_echo "$enable_static" >&6; }
12341
12342
12343
12344
12345fi
12346ac_ext=c
12347ac_cpp='$CPP $CPPFLAGS'
12348ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12349ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12350ac_compiler_gnu=$ac_cv_c_compiler_gnu
12351
12352CC="$lt_save_CC"
12353
12354      if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
12355    ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
12356    (test "X$CXX" != "Xg++"))) ; then
12357  ac_ext=cpp
12358ac_cpp='$CXXCPP $CPPFLAGS'
12359ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12360ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12361ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12362{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
12363$as_echo_n "checking how to run the C++ preprocessor... " >&6; }
12364if test -z "$CXXCPP"; then
12365  if test "${ac_cv_prog_CXXCPP+set}" = set; then :
12366  $as_echo_n "(cached) " >&6
12367else
12368      # Double quotes because CXXCPP needs to be expanded
12369    for CXXCPP in "$CXX -E" "/lib/cpp"
12370    do
12371      ac_preproc_ok=false
12372for ac_cxx_preproc_warn_flag in '' yes
12373do
12374  # Use a header file that comes with gcc, so configuring glibc
12375  # with a fresh cross-compiler works.
12376  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12377  # <limits.h> exists even on freestanding compilers.
12378  # On the NeXT, cc -E runs the code through the compiler's parser,
12379  # not just through cpp. "Syntax error" is here to catch this case.
12380  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12381/* end confdefs.h.  */
12382#ifdef __STDC__
12383# include <limits.h>
12384#else
12385# include <assert.h>
12386#endif
12387		     Syntax error
12388_ACEOF
12389if ac_fn_cxx_try_cpp "$LINENO"; then :
12390
12391else
12392  # Broken: fails on valid input.
12393continue
12394fi
12395rm -f conftest.err conftest.$ac_ext
12396
12397  # OK, works on sane cases.  Now check whether nonexistent headers
12398  # can be detected and how.
12399  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12400/* end confdefs.h.  */
12401#include <ac_nonexistent.h>
12402_ACEOF
12403if ac_fn_cxx_try_cpp "$LINENO"; then :
12404  # Broken: success on invalid input.
12405continue
12406else
12407  # Passes both tests.
12408ac_preproc_ok=:
12409break
12410fi
12411rm -f conftest.err conftest.$ac_ext
12412
12413done
12414# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12415rm -f conftest.err conftest.$ac_ext
12416if $ac_preproc_ok; then :
12417  break
12418fi
12419
12420    done
12421    ac_cv_prog_CXXCPP=$CXXCPP
12422
12423fi
12424  CXXCPP=$ac_cv_prog_CXXCPP
12425else
12426  ac_cv_prog_CXXCPP=$CXXCPP
12427fi
12428{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
12429$as_echo "$CXXCPP" >&6; }
12430ac_preproc_ok=false
12431for ac_cxx_preproc_warn_flag in '' yes
12432do
12433  # Use a header file that comes with gcc, so configuring glibc
12434  # with a fresh cross-compiler works.
12435  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12436  # <limits.h> exists even on freestanding compilers.
12437  # On the NeXT, cc -E runs the code through the compiler's parser,
12438  # not just through cpp. "Syntax error" is here to catch this case.
12439  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12440/* end confdefs.h.  */
12441#ifdef __STDC__
12442# include <limits.h>
12443#else
12444# include <assert.h>
12445#endif
12446		     Syntax error
12447_ACEOF
12448if ac_fn_cxx_try_cpp "$LINENO"; then :
12449
12450else
12451  # Broken: fails on valid input.
12452continue
12453fi
12454rm -f conftest.err conftest.$ac_ext
12455
12456  # OK, works on sane cases.  Now check whether nonexistent headers
12457  # can be detected and how.
12458  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12459/* end confdefs.h.  */
12460#include <ac_nonexistent.h>
12461_ACEOF
12462if ac_fn_cxx_try_cpp "$LINENO"; then :
12463  # Broken: success on invalid input.
12464continue
12465else
12466  # Passes both tests.
12467ac_preproc_ok=:
12468break
12469fi
12470rm -f conftest.err conftest.$ac_ext
12471
12472done
12473# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12474rm -f conftest.err conftest.$ac_ext
12475if $ac_preproc_ok; then :
12476
12477else
12478  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12479$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12480as_fn_error "C++ preprocessor \"$CXXCPP\" fails sanity check
12481See \`config.log' for more details." "$LINENO" 5; }
12482fi
12483
12484ac_ext=c
12485ac_cpp='$CPP $CPPFLAGS'
12486ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12487ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12488ac_compiler_gnu=$ac_cv_c_compiler_gnu
12489
12490else
12491  _lt_caught_CXX_error=yes
12492fi
12493
12494ac_ext=cpp
12495ac_cpp='$CXXCPP $CPPFLAGS'
12496ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12497ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12498ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12499
12500archive_cmds_need_lc_CXX=no
12501allow_undefined_flag_CXX=
12502always_export_symbols_CXX=no
12503archive_expsym_cmds_CXX=
12504compiler_needs_object_CXX=no
12505export_dynamic_flag_spec_CXX=
12506hardcode_direct_CXX=no
12507hardcode_direct_absolute_CXX=no
12508hardcode_libdir_flag_spec_CXX=
12509hardcode_libdir_flag_spec_ld_CXX=
12510hardcode_libdir_separator_CXX=
12511hardcode_minus_L_CXX=no
12512hardcode_shlibpath_var_CXX=unsupported
12513hardcode_automatic_CXX=no
12514inherit_rpath_CXX=no
12515module_cmds_CXX=
12516module_expsym_cmds_CXX=
12517link_all_deplibs_CXX=unknown
12518old_archive_cmds_CXX=$old_archive_cmds
12519reload_flag_CXX=$reload_flag
12520reload_cmds_CXX=$reload_cmds
12521no_undefined_flag_CXX=
12522whole_archive_flag_spec_CXX=
12523enable_shared_with_static_runtimes_CXX=no
12524
12525# Source file extension for C++ test sources.
12526ac_ext=cpp
12527
12528# Object file extension for compiled C++ test sources.
12529objext=o
12530objext_CXX=$objext
12531
12532# No sense in running all these tests if we already determined that
12533# the CXX compiler isn't working.  Some variables (like enable_shared)
12534# are currently assumed to apply to all compilers on this platform,
12535# and will be corrupted by setting them based on a non-working compiler.
12536if test "$_lt_caught_CXX_error" != yes; then
12537  # Code to be used in simple compile tests
12538  lt_simple_compile_test_code="int some_variable = 0;"
12539
12540  # Code to be used in simple link tests
12541  lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
12542
12543  # ltmain only uses $CC for tagged configurations so make sure $CC is set.
12544
12545
12546
12547
12548
12549
12550# If no C compiler was specified, use CC.
12551LTCC=${LTCC-"$CC"}
12552
12553# If no C compiler flags were specified, use CFLAGS.
12554LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12555
12556# Allow CC to be a program name with arguments.
12557compiler=$CC
12558
12559
12560  # save warnings/boilerplate of simple test code
12561  ac_outfile=conftest.$ac_objext
12562echo "$lt_simple_compile_test_code" >conftest.$ac_ext
12563eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12564_lt_compiler_boilerplate=`cat conftest.err`
12565$RM conftest*
12566
12567  ac_outfile=conftest.$ac_objext
12568echo "$lt_simple_link_test_code" >conftest.$ac_ext
12569eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12570_lt_linker_boilerplate=`cat conftest.err`
12571$RM -r conftest*
12572
12573
12574  # Allow CC to be a program name with arguments.
12575  lt_save_CC=$CC
12576  lt_save_LD=$LD
12577  lt_save_GCC=$GCC
12578  GCC=$GXX
12579  lt_save_with_gnu_ld=$with_gnu_ld
12580  lt_save_path_LD=$lt_cv_path_LD
12581  if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
12582    lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
12583  else
12584    $as_unset lt_cv_prog_gnu_ld
12585  fi
12586  if test -n "${lt_cv_path_LDCXX+set}"; then
12587    lt_cv_path_LD=$lt_cv_path_LDCXX
12588  else
12589    $as_unset lt_cv_path_LD
12590  fi
12591  test -z "${LDCXX+set}" || LD=$LDCXX
12592  CC=${CXX-"c++"}
12593  compiler=$CC
12594  compiler_CXX=$CC
12595  for cc_temp in $compiler""; do
12596  case $cc_temp in
12597    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
12598    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
12599    \-*) ;;
12600    *) break;;
12601  esac
12602done
12603cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
12604
12605
12606  if test -n "$compiler"; then
12607    # We don't want -fno-exception when compiling C++ code, so set the
12608    # no_builtin_flag separately
12609    if test "$GXX" = yes; then
12610      lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
12611    else
12612      lt_prog_compiler_no_builtin_flag_CXX=
12613    fi
12614
12615    if test "$GXX" = yes; then
12616      # Set up default GNU C++ configuration
12617
12618
12619
12620# Check whether --with-gnu-ld was given.
12621if test "${with_gnu_ld+set}" = set; then :
12622  withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
12623else
12624  with_gnu_ld=no
12625fi
12626
12627ac_prog=ld
12628if test "$GCC" = yes; then
12629  # Check if gcc -print-prog-name=ld gives a path.
12630  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
12631$as_echo_n "checking for ld used by $CC... " >&6; }
12632  case $host in
12633  *-*-mingw*)
12634    # gcc leaves a trailing carriage return which upsets mingw
12635    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
12636  *)
12637    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
12638  esac
12639  case $ac_prog in
12640    # Accept absolute paths.
12641    [\\/]* | ?:[\\/]*)
12642      re_direlt='/[^/][^/]*/\.\./'
12643      # Canonicalize the pathname of ld
12644      ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
12645      while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
12646	ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
12647      done
12648      test -z "$LD" && LD="$ac_prog"
12649      ;;
12650  "")
12651    # If it fails, then pretend we aren't using GCC.
12652    ac_prog=ld
12653    ;;
12654  *)
12655    # If it is relative, then search for the first ld in PATH.
12656    with_gnu_ld=unknown
12657    ;;
12658  esac
12659elif test "$with_gnu_ld" = yes; then
12660  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
12661$as_echo_n "checking for GNU ld... " >&6; }
12662else
12663  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
12664$as_echo_n "checking for non-GNU ld... " >&6; }
12665fi
12666if test "${lt_cv_path_LD+set}" = set; then :
12667  $as_echo_n "(cached) " >&6
12668else
12669  if test -z "$LD"; then
12670  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12671  for ac_dir in $PATH; do
12672    IFS="$lt_save_ifs"
12673    test -z "$ac_dir" && ac_dir=.
12674    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
12675      lt_cv_path_LD="$ac_dir/$ac_prog"
12676      # Check to see if the program is GNU ld.  I'd rather use --version,
12677      # but apparently some variants of GNU ld only accept -v.
12678      # Break only if it was the GNU/non-GNU ld that we prefer.
12679      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
12680      *GNU* | *'with BFD'*)
12681	test "$with_gnu_ld" != no && break
12682	;;
12683      *)
12684	test "$with_gnu_ld" != yes && break
12685	;;
12686      esac
12687    fi
12688  done
12689  IFS="$lt_save_ifs"
12690else
12691  lt_cv_path_LD="$LD" # Let the user override the test with a path.
12692fi
12693fi
12694
12695LD="$lt_cv_path_LD"
12696if test -n "$LD"; then
12697  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
12698$as_echo "$LD" >&6; }
12699else
12700  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12701$as_echo "no" >&6; }
12702fi
12703test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
12704{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
12705$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
12706if test "${lt_cv_prog_gnu_ld+set}" = set; then :
12707  $as_echo_n "(cached) " >&6
12708else
12709  # I'd rather use --version here, but apparently some GNU lds only accept -v.
12710case `$LD -v 2>&1 </dev/null` in
12711*GNU* | *'with BFD'*)
12712  lt_cv_prog_gnu_ld=yes
12713  ;;
12714*)
12715  lt_cv_prog_gnu_ld=no
12716  ;;
12717esac
12718fi
12719{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
12720$as_echo "$lt_cv_prog_gnu_ld" >&6; }
12721with_gnu_ld=$lt_cv_prog_gnu_ld
12722
12723
12724
12725
12726
12727
12728
12729      # Check if GNU C++ uses GNU ld as the underlying linker, since the
12730      # archiving commands below assume that GNU ld is being used.
12731      if test "$with_gnu_ld" = yes; then
12732        archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12733        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'
12734
12735        hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12736        export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12737
12738        # If archive_cmds runs LD, not CC, wlarc should be empty
12739        # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
12740        #     investigate it a little bit more. (MM)
12741        wlarc='${wl}'
12742
12743        # ancient GNU ld didn't support --whole-archive et. al.
12744        if eval "`$CC -print-prog-name=ld` --help 2>&1" |
12745	  $GREP 'no-whole-archive' > /dev/null; then
12746          whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12747        else
12748          whole_archive_flag_spec_CXX=
12749        fi
12750      else
12751        with_gnu_ld=no
12752        wlarc=
12753
12754        # A generic and very simple default shared library creation
12755        # command for GNU C++ for the case where it uses the native
12756        # linker, instead of GNU ld.  If possible, this setting should
12757        # overridden to take advantage of the native linker features on
12758        # the platform it is being used on.
12759        archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
12760      fi
12761
12762      # Commands to make compiler produce verbose output that lists
12763      # what "hidden" libraries, object files and flags are used when
12764      # linking a shared library.
12765      output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
12766
12767    else
12768      GXX=no
12769      with_gnu_ld=no
12770      wlarc=
12771    fi
12772
12773    # PORTME: fill in a description of your system's C++ link characteristics
12774    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12775$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
12776    ld_shlibs_CXX=yes
12777    case $host_os in
12778      aix3*)
12779        # FIXME: insert proper C++ library support
12780        ld_shlibs_CXX=no
12781        ;;
12782      aix[4-9]*)
12783        if test "$host_cpu" = ia64; then
12784          # On IA64, the linker does run time linking by default, so we don't
12785          # have to do anything special.
12786          aix_use_runtimelinking=no
12787          exp_sym_flag='-Bexport'
12788          no_entry_flag=""
12789        else
12790          aix_use_runtimelinking=no
12791
12792          # Test if we are trying to use run time linking or normal
12793          # AIX style linking. If -brtl is somewhere in LDFLAGS, we
12794          # need to do runtime linking.
12795          case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
12796	    for ld_flag in $LDFLAGS; do
12797	      case $ld_flag in
12798	      *-brtl*)
12799	        aix_use_runtimelinking=yes
12800	        break
12801	        ;;
12802	      esac
12803	    done
12804	    ;;
12805          esac
12806
12807          exp_sym_flag='-bexport'
12808          no_entry_flag='-bnoentry'
12809        fi
12810
12811        # When large executables or shared objects are built, AIX ld can
12812        # have problems creating the table of contents.  If linking a library
12813        # or program results in "error TOC overflow" add -mminimal-toc to
12814        # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
12815        # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
12816
12817        archive_cmds_CXX=''
12818        hardcode_direct_CXX=yes
12819        hardcode_direct_absolute_CXX=yes
12820        hardcode_libdir_separator_CXX=':'
12821        link_all_deplibs_CXX=yes
12822        file_list_spec_CXX='${wl}-f,'
12823
12824        if test "$GXX" = yes; then
12825          case $host_os in aix4.[012]|aix4.[012].*)
12826          # We only want to do this on AIX 4.2 and lower, the check
12827          # below for broken collect2 doesn't work under 4.3+
12828	  collect2name=`${CC} -print-prog-name=collect2`
12829	  if test -f "$collect2name" &&
12830	     strings "$collect2name" | $GREP resolve_lib_name >/dev/null
12831	  then
12832	    # We have reworked collect2
12833	    :
12834	  else
12835	    # We have old collect2
12836	    hardcode_direct_CXX=unsupported
12837	    # It fails to find uninstalled libraries when the uninstalled
12838	    # path is not listed in the libpath.  Setting hardcode_minus_L
12839	    # to unsupported forces relinking
12840	    hardcode_minus_L_CXX=yes
12841	    hardcode_libdir_flag_spec_CXX='-L$libdir'
12842	    hardcode_libdir_separator_CXX=
12843	  fi
12844          esac
12845          shared_flag='-shared'
12846	  if test "$aix_use_runtimelinking" = yes; then
12847	    shared_flag="$shared_flag "'${wl}-G'
12848	  fi
12849        else
12850          # not using gcc
12851          if test "$host_cpu" = ia64; then
12852	  # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
12853	  # chokes on -Wl,-G. The following line is correct:
12854	  shared_flag='-G'
12855          else
12856	    if test "$aix_use_runtimelinking" = yes; then
12857	      shared_flag='${wl}-G'
12858	    else
12859	      shared_flag='${wl}-bM:SRE'
12860	    fi
12861          fi
12862        fi
12863
12864        export_dynamic_flag_spec_CXX='${wl}-bexpall'
12865        # It seems that -bexpall does not export symbols beginning with
12866        # underscore (_), so it is better to generate a list of symbols to
12867	# export.
12868        always_export_symbols_CXX=yes
12869        if test "$aix_use_runtimelinking" = yes; then
12870          # Warning - without using the other runtime loading flags (-brtl),
12871          # -berok will link without error, but may produce a broken library.
12872          allow_undefined_flag_CXX='-berok'
12873          # Determine the default libpath from the value encoded in an empty
12874          # executable.
12875          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12876/* end confdefs.h.  */
12877
12878int
12879main ()
12880{
12881
12882  ;
12883  return 0;
12884}
12885_ACEOF
12886if ac_fn_cxx_try_link "$LINENO"; then :
12887
12888lt_aix_libpath_sed='
12889    /Import File Strings/,/^$/ {
12890	/^0/ {
12891	    s/^0  *\(.*\)$/\1/
12892	    p
12893	}
12894    }'
12895aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12896# Check for a 64-bit object if we didn't find anything.
12897if test -z "$aix_libpath"; then
12898  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12899fi
12900fi
12901rm -f core conftest.err conftest.$ac_objext \
12902    conftest$ac_exeext conftest.$ac_ext
12903if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12904
12905          hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
12906
12907          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"
12908        else
12909          if test "$host_cpu" = ia64; then
12910	    hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
12911	    allow_undefined_flag_CXX="-z nodefs"
12912	    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"
12913          else
12914	    # Determine the default libpath from the value encoded in an
12915	    # empty executable.
12916	    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12917/* end confdefs.h.  */
12918
12919int
12920main ()
12921{
12922
12923  ;
12924  return 0;
12925}
12926_ACEOF
12927if ac_fn_cxx_try_link "$LINENO"; then :
12928
12929lt_aix_libpath_sed='
12930    /Import File Strings/,/^$/ {
12931	/^0/ {
12932	    s/^0  *\(.*\)$/\1/
12933	    p
12934	}
12935    }'
12936aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12937# Check for a 64-bit object if we didn't find anything.
12938if test -z "$aix_libpath"; then
12939  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12940fi
12941fi
12942rm -f core conftest.err conftest.$ac_objext \
12943    conftest$ac_exeext conftest.$ac_ext
12944if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12945
12946	    hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
12947	    # Warning - without using the other run time loading flags,
12948	    # -berok will link without error, but may produce a broken library.
12949	    no_undefined_flag_CXX=' ${wl}-bernotok'
12950	    allow_undefined_flag_CXX=' ${wl}-berok'
12951	    if test "$with_gnu_ld" = yes; then
12952	      # We only use this code for GNU lds that support --whole-archive.
12953	      whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
12954	    else
12955	      # Exported symbols can be pulled into shared objects from archives
12956	      whole_archive_flag_spec_CXX='$convenience'
12957	    fi
12958	    archive_cmds_need_lc_CXX=yes
12959	    # This is similar to how AIX traditionally builds its shared
12960	    # libraries.
12961	    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'
12962          fi
12963        fi
12964        ;;
12965
12966      beos*)
12967	if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12968	  allow_undefined_flag_CXX=unsupported
12969	  # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
12970	  # support --undefined.  This deserves some investigation.  FIXME
12971	  archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12972	else
12973	  ld_shlibs_CXX=no
12974	fi
12975	;;
12976
12977      chorus*)
12978        case $cc_basename in
12979          *)
12980	  # FIXME: insert proper C++ library support
12981	  ld_shlibs_CXX=no
12982	  ;;
12983        esac
12984        ;;
12985
12986      cygwin* | mingw* | pw32* | cegcc*)
12987        # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
12988        # as there is no search path for DLLs.
12989        hardcode_libdir_flag_spec_CXX='-L$libdir'
12990        export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
12991        allow_undefined_flag_CXX=unsupported
12992        always_export_symbols_CXX=no
12993        enable_shared_with_static_runtimes_CXX=yes
12994
12995        if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
12996          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'
12997          # If the export-symbols file already is a .def file (1st line
12998          # is EXPORTS), use it as is; otherwise, prepend...
12999          archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13000	    cp $export_symbols $output_objdir/$soname.def;
13001          else
13002	    echo EXPORTS > $output_objdir/$soname.def;
13003	    cat $export_symbols >> $output_objdir/$soname.def;
13004          fi~
13005          $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'
13006        else
13007          ld_shlibs_CXX=no
13008        fi
13009        ;;
13010      darwin* | rhapsody*)
13011
13012
13013  archive_cmds_need_lc_CXX=no
13014  hardcode_direct_CXX=no
13015  hardcode_automatic_CXX=yes
13016  hardcode_shlibpath_var_CXX=unsupported
13017  if test "$lt_cv_ld_force_load" = "yes"; then
13018    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\"`'
13019  else
13020    whole_archive_flag_spec_CXX=''
13021  fi
13022  link_all_deplibs_CXX=yes
13023  allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
13024  case $cc_basename in
13025     ifort*) _lt_dar_can_shared=yes ;;
13026     *) _lt_dar_can_shared=$GCC ;;
13027  esac
13028  if test "$_lt_dar_can_shared" = "yes"; then
13029    output_verbose_link_cmd=func_echo_all
13030    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}"
13031    module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
13032    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}"
13033    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}"
13034       if test "$lt_cv_apple_cc_single_mod" != "yes"; then
13035      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}"
13036      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}"
13037    fi
13038
13039  else
13040  ld_shlibs_CXX=no
13041  fi
13042
13043	;;
13044
13045      dgux*)
13046        case $cc_basename in
13047          ec++*)
13048	    # FIXME: insert proper C++ library support
13049	    ld_shlibs_CXX=no
13050	    ;;
13051          ghcx*)
13052	    # Green Hills C++ Compiler
13053	    # FIXME: insert proper C++ library support
13054	    ld_shlibs_CXX=no
13055	    ;;
13056          *)
13057	    # FIXME: insert proper C++ library support
13058	    ld_shlibs_CXX=no
13059	    ;;
13060        esac
13061        ;;
13062
13063      freebsd2.*)
13064        # C++ shared libraries reported to be fairly broken before
13065	# switch to ELF
13066        ld_shlibs_CXX=no
13067        ;;
13068
13069      freebsd-elf*)
13070        archive_cmds_need_lc_CXX=no
13071        ;;
13072
13073      freebsd* | dragonfly*)
13074        # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
13075        # conventions
13076        ld_shlibs_CXX=yes
13077        ;;
13078
13079      gnu*)
13080        ;;
13081
13082      haiku*)
13083        archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13084        link_all_deplibs_CXX=yes
13085        ;;
13086
13087      hpux9*)
13088        hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
13089        hardcode_libdir_separator_CXX=:
13090        export_dynamic_flag_spec_CXX='${wl}-E'
13091        hardcode_direct_CXX=yes
13092        hardcode_minus_L_CXX=yes # Not in the search PATH,
13093				             # but as the default
13094				             # location of the library.
13095
13096        case $cc_basename in
13097          CC*)
13098            # FIXME: insert proper C++ library support
13099            ld_shlibs_CXX=no
13100            ;;
13101          aCC*)
13102            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'
13103            # Commands to make compiler produce verbose output that lists
13104            # what "hidden" libraries, object files and flags are used when
13105            # linking a shared library.
13106            #
13107            # There doesn't appear to be a way to prevent this compiler from
13108            # explicitly linking system object files so we need to strip them
13109            # from the output so that they don't get included in the library
13110            # dependencies.
13111            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"'
13112            ;;
13113          *)
13114            if test "$GXX" = yes; then
13115              archive_cmds_CXX='$RM $output_objdir/$soname~$CC -shared -nostdlib -fPIC ${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'
13116            else
13117              # FIXME: insert proper C++ library support
13118              ld_shlibs_CXX=no
13119            fi
13120            ;;
13121        esac
13122        ;;
13123
13124      hpux10*|hpux11*)
13125        if test $with_gnu_ld = no; then
13126	  hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
13127	  hardcode_libdir_separator_CXX=:
13128
13129          case $host_cpu in
13130            hppa*64*|ia64*)
13131              ;;
13132            *)
13133	      export_dynamic_flag_spec_CXX='${wl}-E'
13134              ;;
13135          esac
13136        fi
13137        case $host_cpu in
13138          hppa*64*|ia64*)
13139            hardcode_direct_CXX=no
13140            hardcode_shlibpath_var_CXX=no
13141            ;;
13142          *)
13143            hardcode_direct_CXX=yes
13144            hardcode_direct_absolute_CXX=yes
13145            hardcode_minus_L_CXX=yes # Not in the search PATH,
13146					         # but as the default
13147					         # location of the library.
13148            ;;
13149        esac
13150
13151        case $cc_basename in
13152          CC*)
13153	    # FIXME: insert proper C++ library support
13154	    ld_shlibs_CXX=no
13155	    ;;
13156          aCC*)
13157	    case $host_cpu in
13158	      hppa*64*)
13159	        archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13160	        ;;
13161	      ia64*)
13162	        archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13163	        ;;
13164	      *)
13165	        archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13166	        ;;
13167	    esac
13168	    # Commands to make compiler produce verbose output that lists
13169	    # what "hidden" libraries, object files and flags are used when
13170	    # linking a shared library.
13171	    #
13172	    # There doesn't appear to be a way to prevent this compiler from
13173	    # explicitly linking system object files so we need to strip them
13174	    # from the output so that they don't get included in the library
13175	    # dependencies.
13176	    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"'
13177	    ;;
13178          *)
13179	    if test "$GXX" = yes; then
13180	      if test $with_gnu_ld = no; then
13181	        case $host_cpu in
13182	          hppa*64*)
13183	            archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13184	            ;;
13185	          ia64*)
13186	            archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13187	            ;;
13188	          *)
13189	            archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13190	            ;;
13191	        esac
13192	      fi
13193	    else
13194	      # FIXME: insert proper C++ library support
13195	      ld_shlibs_CXX=no
13196	    fi
13197	    ;;
13198        esac
13199        ;;
13200
13201      interix[3-9]*)
13202	hardcode_direct_CXX=no
13203	hardcode_shlibpath_var_CXX=no
13204	hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13205	export_dynamic_flag_spec_CXX='${wl}-E'
13206	# Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
13207	# Instead, shared libraries are loaded at an image base (0x10000000 by
13208	# default) and relocated if they conflict, which is a slow very memory
13209	# consuming and fragmenting process.  To avoid this, we pick a random,
13210	# 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
13211	# time.  Moving up from 0x10000000 also allows more sbrk(2) space.
13212	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'
13213	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'
13214	;;
13215      irix5* | irix6*)
13216        case $cc_basename in
13217          CC*)
13218	    # SGI C++
13219	    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'
13220
13221	    # Archives containing C++ object files must be created using
13222	    # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
13223	    # necessary to make sure instantiated templates are included
13224	    # in the archive.
13225	    old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
13226	    ;;
13227          *)
13228	    if test "$GXX" = yes; then
13229	      if test "$with_gnu_ld" = no; then
13230	        archive_cmds_CXX='$CC -shared -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'
13231	      else
13232	        archive_cmds_CXX='$CC -shared -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'
13233	      fi
13234	    fi
13235	    link_all_deplibs_CXX=yes
13236	    ;;
13237        esac
13238        hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13239        hardcode_libdir_separator_CXX=:
13240        inherit_rpath_CXX=yes
13241        ;;
13242
13243      linux* | k*bsd*-gnu | kopensolaris*-gnu)
13244        case $cc_basename in
13245          KCC*)
13246	    # Kuck and Associates, Inc. (KAI) C++ Compiler
13247
13248	    # KCC will only create a shared library if the output file
13249	    # ends with ".so" (or ".sl" for HP-UX), so rename the library
13250	    # to its proper name (with version) after linking.
13251	    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'
13252	    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'
13253	    # Commands to make compiler produce verbose output that lists
13254	    # what "hidden" libraries, object files and flags are used when
13255	    # linking a shared library.
13256	    #
13257	    # There doesn't appear to be a way to prevent this compiler from
13258	    # explicitly linking system object files so we need to strip them
13259	    # from the output so that they don't get included in the library
13260	    # dependencies.
13261	    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"'
13262
13263	    hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13264	    export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13265
13266	    # Archives containing C++ object files must be created using
13267	    # "CC -Bstatic", where "CC" is the KAI C++ compiler.
13268	    old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
13269	    ;;
13270	  icpc* | ecpc* )
13271	    # Intel C++
13272	    with_gnu_ld=yes
13273	    # version 8.0 and above of icpc choke on multiply defined symbols
13274	    # if we add $predep_objects and $postdep_objects, however 7.1 and
13275	    # earlier do not add the objects themselves.
13276	    case `$CC -V 2>&1` in
13277	      *"Version 7."*)
13278	        archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13279		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'
13280		;;
13281	      *)  # Version 8.0 or newer
13282	        tmp_idyn=
13283	        case $host_cpu in
13284		  ia64*) tmp_idyn=' -i_dynamic';;
13285		esac
13286	        archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13287		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'
13288		;;
13289	    esac
13290	    archive_cmds_need_lc_CXX=no
13291	    hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13292	    export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13293	    whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
13294	    ;;
13295          pgCC* | pgcpp*)
13296            # Portland Group C++ compiler
13297	    case `$CC -V` in
13298	    *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
13299	      prelink_cmds_CXX='tpldir=Template.dir~
13300		rm -rf $tpldir~
13301		$CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
13302		compile_command="$compile_command `find $tpldir -name \*.o | $NL2SP`"'
13303	      old_archive_cmds_CXX='tpldir=Template.dir~
13304		rm -rf $tpldir~
13305		$CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
13306		$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | $NL2SP`~
13307		$RANLIB $oldlib'
13308	      archive_cmds_CXX='tpldir=Template.dir~
13309		rm -rf $tpldir~
13310		$CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
13311		$CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
13312	      archive_expsym_cmds_CXX='tpldir=Template.dir~
13313		rm -rf $tpldir~
13314		$CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
13315		$CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
13316	      ;;
13317	    *) # Version 6 and above use weak symbols
13318	      archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
13319	      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'
13320	      ;;
13321	    esac
13322
13323	    hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
13324	    export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13325	    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'
13326            ;;
13327	  cxx*)
13328	    # Compaq C++
13329	    archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13330	    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'
13331
13332	    runpath_var=LD_RUN_PATH
13333	    hardcode_libdir_flag_spec_CXX='-rpath $libdir'
13334	    hardcode_libdir_separator_CXX=:
13335
13336	    # Commands to make compiler produce verbose output that lists
13337	    # what "hidden" libraries, object files and flags are used when
13338	    # linking a shared library.
13339	    #
13340	    # There doesn't appear to be a way to prevent this compiler from
13341	    # explicitly linking system object files so we need to strip them
13342	    # from the output so that they don't get included in the library
13343	    # dependencies.
13344	    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'
13345	    ;;
13346	  xl* | mpixl* | bgxl*)
13347	    # IBM XL 8.0 on PPC, with GNU ld
13348	    hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13349	    export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13350	    archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13351	    if test "x$supports_anon_versioning" = xyes; then
13352	      archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
13353		cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13354		echo "local: *; };" >> $output_objdir/$libname.ver~
13355		$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
13356	    fi
13357	    ;;
13358	  *)
13359	    case `$CC -V 2>&1 | sed 5q` in
13360	    *Sun\ C*)
13361	      # Sun C++ 5.9
13362	      no_undefined_flag_CXX=' -zdefs'
13363	      archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13364	      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'
13365	      hardcode_libdir_flag_spec_CXX='-R$libdir'
13366	      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'
13367	      compiler_needs_object_CXX=yes
13368
13369	      # Not sure whether something based on
13370	      # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
13371	      # would be better.
13372	      output_verbose_link_cmd='func_echo_all'
13373
13374	      # Archives containing C++ object files must be created using
13375	      # "CC -xar", where "CC" is the Sun C++ compiler.  This is
13376	      # necessary to make sure instantiated templates are included
13377	      # in the archive.
13378	      old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
13379	      ;;
13380	    esac
13381	    ;;
13382	esac
13383	;;
13384
13385      lynxos*)
13386        # FIXME: insert proper C++ library support
13387	ld_shlibs_CXX=no
13388	;;
13389
13390      m88k*)
13391        # FIXME: insert proper C++ library support
13392        ld_shlibs_CXX=no
13393	;;
13394
13395      mvs*)
13396        case $cc_basename in
13397          cxx*)
13398	    # FIXME: insert proper C++ library support
13399	    ld_shlibs_CXX=no
13400	    ;;
13401	  *)
13402	    # FIXME: insert proper C++ library support
13403	    ld_shlibs_CXX=no
13404	    ;;
13405	esac
13406	;;
13407
13408      netbsd*)
13409        if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
13410	  archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
13411	  wlarc=
13412	  hardcode_libdir_flag_spec_CXX='-R$libdir'
13413	  hardcode_direct_CXX=yes
13414	  hardcode_shlibpath_var_CXX=no
13415	fi
13416	# Workaround some broken pre-1.5 toolchains
13417	output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
13418	;;
13419
13420      *nto* | *qnx*)
13421        ld_shlibs_CXX=yes
13422	;;
13423
13424      openbsd2*)
13425        # C++ shared libraries are fairly broken
13426	ld_shlibs_CXX=no
13427	;;
13428
13429      openbsd*)
13430	if test -f /usr/libexec/ld.so; then
13431	  hardcode_direct_CXX=yes
13432	  hardcode_shlibpath_var_CXX=no
13433	  hardcode_direct_absolute_CXX=yes
13434	  archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
13435	  hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13436	  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13437	    archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
13438	    export_dynamic_flag_spec_CXX='${wl}-E'
13439	    whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13440	  fi
13441	  output_verbose_link_cmd=func_echo_all
13442	else
13443	  ld_shlibs_CXX=no
13444	fi
13445	;;
13446
13447      osf3* | osf4* | osf5*)
13448        case $cc_basename in
13449          KCC*)
13450	    # Kuck and Associates, Inc. (KAI) C++ Compiler
13451
13452	    # KCC will only create a shared library if the output file
13453	    # ends with ".so" (or ".sl" for HP-UX), so rename the library
13454	    # to its proper name (with version) after linking.
13455	    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'
13456
13457	    hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13458	    hardcode_libdir_separator_CXX=:
13459
13460	    # Archives containing C++ object files must be created using
13461	    # the KAI C++ compiler.
13462	    case $host in
13463	      osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
13464	      *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
13465	    esac
13466	    ;;
13467          RCC*)
13468	    # Rational C++ 2.4.1
13469	    # FIXME: insert proper C++ library support
13470	    ld_shlibs_CXX=no
13471	    ;;
13472          cxx*)
13473	    case $host in
13474	      osf3*)
13475	        allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
13476	        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'
13477	        hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13478		;;
13479	      *)
13480	        allow_undefined_flag_CXX=' -expect_unresolved \*'
13481	        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'
13482	        archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
13483	          echo "-hidden">> $lib.exp~
13484	          $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~
13485	          $RM $lib.exp'
13486	        hardcode_libdir_flag_spec_CXX='-rpath $libdir'
13487		;;
13488	    esac
13489
13490	    hardcode_libdir_separator_CXX=:
13491
13492	    # Commands to make compiler produce verbose output that lists
13493	    # what "hidden" libraries, object files and flags are used when
13494	    # linking a shared library.
13495	    #
13496	    # There doesn't appear to be a way to prevent this compiler from
13497	    # explicitly linking system object files so we need to strip them
13498	    # from the output so that they don't get included in the library
13499	    # dependencies.
13500	    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"'
13501	    ;;
13502	  *)
13503	    if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13504	      allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
13505	      case $host in
13506	        osf3*)
13507	          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'
13508		  ;;
13509	        *)
13510	          archive_cmds_CXX='$CC -shared -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'
13511		  ;;
13512	      esac
13513
13514	      hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13515	      hardcode_libdir_separator_CXX=:
13516
13517	      # Commands to make compiler produce verbose output that lists
13518	      # what "hidden" libraries, object files and flags are used when
13519	      # linking a shared library.
13520	      output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13521
13522	    else
13523	      # FIXME: insert proper C++ library support
13524	      ld_shlibs_CXX=no
13525	    fi
13526	    ;;
13527        esac
13528        ;;
13529
13530      psos*)
13531        # FIXME: insert proper C++ library support
13532        ld_shlibs_CXX=no
13533        ;;
13534
13535      sunos4*)
13536        case $cc_basename in
13537          CC*)
13538	    # Sun C++ 4.x
13539	    # FIXME: insert proper C++ library support
13540	    ld_shlibs_CXX=no
13541	    ;;
13542          lcc*)
13543	    # Lucid
13544	    # FIXME: insert proper C++ library support
13545	    ld_shlibs_CXX=no
13546	    ;;
13547          *)
13548	    # FIXME: insert proper C++ library support
13549	    ld_shlibs_CXX=no
13550	    ;;
13551        esac
13552        ;;
13553
13554      solaris*)
13555        case $cc_basename in
13556          CC*)
13557	    # Sun C++ 4.2, 5.x and Centerline C++
13558            archive_cmds_need_lc_CXX=yes
13559	    no_undefined_flag_CXX=' -zdefs'
13560	    archive_cmds_CXX='$CC -G${allow_undefined_flag}  -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13561	    archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13562	      $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'
13563
13564	    hardcode_libdir_flag_spec_CXX='-R$libdir'
13565	    hardcode_shlibpath_var_CXX=no
13566	    case $host_os in
13567	      solaris2.[0-5] | solaris2.[0-5].*) ;;
13568	      *)
13569		# The compiler driver will combine and reorder linker options,
13570		# but understands `-z linker_flag'.
13571	        # Supported since Solaris 2.6 (maybe 2.5.1?)
13572		whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
13573	        ;;
13574	    esac
13575	    link_all_deplibs_CXX=yes
13576
13577	    output_verbose_link_cmd='func_echo_all'
13578
13579	    # Archives containing C++ object files must be created using
13580	    # "CC -xar", where "CC" is the Sun C++ compiler.  This is
13581	    # necessary to make sure instantiated templates are included
13582	    # in the archive.
13583	    old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
13584	    ;;
13585          gcx*)
13586	    # Green Hills C++ Compiler
13587	    archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13588
13589	    # The C++ compiler must be used to create the archive.
13590	    old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
13591	    ;;
13592          *)
13593	    # GNU C++ compiler with Solaris linker
13594	    if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13595	      no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
13596	      if $CC --version | $GREP -v '^2\.7' > /dev/null; then
13597	        archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13598	        archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13599		  $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
13600
13601	        # Commands to make compiler produce verbose output that lists
13602	        # what "hidden" libraries, object files and flags are used when
13603	        # linking a shared library.
13604	        output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13605	      else
13606	        # g++ 2.7 appears to require `-G' NOT `-shared' on this
13607	        # platform.
13608	        archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13609	        archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13610		  $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
13611
13612	        # Commands to make compiler produce verbose output that lists
13613	        # what "hidden" libraries, object files and flags are used when
13614	        # linking a shared library.
13615	        output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13616	      fi
13617
13618	      hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
13619	      case $host_os in
13620		solaris2.[0-5] | solaris2.[0-5].*) ;;
13621		*)
13622		  whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
13623		  ;;
13624	      esac
13625	    fi
13626	    ;;
13627        esac
13628        ;;
13629
13630    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
13631      no_undefined_flag_CXX='${wl}-z,text'
13632      archive_cmds_need_lc_CXX=no
13633      hardcode_shlibpath_var_CXX=no
13634      runpath_var='LD_RUN_PATH'
13635
13636      case $cc_basename in
13637        CC*)
13638	  archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13639	  archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13640	  ;;
13641	*)
13642	  archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13643	  archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13644	  ;;
13645      esac
13646      ;;
13647
13648      sysv5* | sco3.2v5* | sco5v6*)
13649	# Note: We can NOT use -z defs as we might desire, because we do not
13650	# link with -lc, and that would cause any symbols used from libc to
13651	# always be unresolved, which means just about no library would
13652	# ever link correctly.  If we're not using GNU ld we use -z text
13653	# though, which does catch some bad symbols but isn't as heavy-handed
13654	# as -z defs.
13655	no_undefined_flag_CXX='${wl}-z,text'
13656	allow_undefined_flag_CXX='${wl}-z,nodefs'
13657	archive_cmds_need_lc_CXX=no
13658	hardcode_shlibpath_var_CXX=no
13659	hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
13660	hardcode_libdir_separator_CXX=':'
13661	link_all_deplibs_CXX=yes
13662	export_dynamic_flag_spec_CXX='${wl}-Bexport'
13663	runpath_var='LD_RUN_PATH'
13664
13665	case $cc_basename in
13666          CC*)
13667	    archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13668	    archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13669	    old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
13670	      '"$old_archive_cmds_CXX"
13671	    reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
13672	      '"$reload_cmds_CXX"
13673	    ;;
13674	  *)
13675	    archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13676	    archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13677	    ;;
13678	esac
13679      ;;
13680
13681      tandem*)
13682        case $cc_basename in
13683          NCC*)
13684	    # NonStop-UX NCC 3.20
13685	    # FIXME: insert proper C++ library support
13686	    ld_shlibs_CXX=no
13687	    ;;
13688          *)
13689	    # FIXME: insert proper C++ library support
13690	    ld_shlibs_CXX=no
13691	    ;;
13692        esac
13693        ;;
13694
13695      vxworks*)
13696        # FIXME: insert proper C++ library support
13697        ld_shlibs_CXX=no
13698        ;;
13699
13700      *)
13701        # FIXME: insert proper C++ library support
13702        ld_shlibs_CXX=no
13703        ;;
13704    esac
13705
13706    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
13707$as_echo "$ld_shlibs_CXX" >&6; }
13708    test "$ld_shlibs_CXX" = no && can_build_shared=no
13709
13710    GCC_CXX="$GXX"
13711    LD_CXX="$LD"
13712
13713    ## CAVEAT EMPTOR:
13714    ## There is no encapsulation within the following macros, do not change
13715    ## the running order or otherwise move them around unless you know exactly
13716    ## what you are doing...
13717    # Dependencies to place before and after the object being linked:
13718predep_objects_CXX=
13719postdep_objects_CXX=
13720predeps_CXX=
13721postdeps_CXX=
13722compiler_lib_search_path_CXX=
13723
13724cat > conftest.$ac_ext <<_LT_EOF
13725class Foo
13726{
13727public:
13728  Foo (void) { a = 0; }
13729private:
13730  int a;
13731};
13732_LT_EOF
13733
13734if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13735  (eval $ac_compile) 2>&5
13736  ac_status=$?
13737  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13738  test $ac_status = 0; }; then
13739  # Parse the compiler output and extract the necessary
13740  # objects, libraries and library flags.
13741
13742  # Sentinel used to keep track of whether or not we are before
13743  # the conftest object file.
13744  pre_test_object_deps_done=no
13745
13746  for p in `eval "$output_verbose_link_cmd"`; do
13747    case $p in
13748
13749    -L* | -R* | -l*)
13750       # Some compilers place space between "-{L,R}" and the path.
13751       # Remove the space.
13752       if test $p = "-L" ||
13753          test $p = "-R"; then
13754	 prev=$p
13755	 continue
13756       else
13757	 prev=
13758       fi
13759
13760       if test "$pre_test_object_deps_done" = no; then
13761	 case $p in
13762	 -L* | -R*)
13763	   # Internal compiler library paths should come after those
13764	   # provided the user.  The postdeps already come after the
13765	   # user supplied libs so there is no need to process them.
13766	   if test -z "$compiler_lib_search_path_CXX"; then
13767	     compiler_lib_search_path_CXX="${prev}${p}"
13768	   else
13769	     compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
13770	   fi
13771	   ;;
13772	 # The "-l" case would never come before the object being
13773	 # linked, so don't bother handling this case.
13774	 esac
13775       else
13776	 if test -z "$postdeps_CXX"; then
13777	   postdeps_CXX="${prev}${p}"
13778	 else
13779	   postdeps_CXX="${postdeps_CXX} ${prev}${p}"
13780	 fi
13781       fi
13782       ;;
13783
13784    *.$objext)
13785       # This assumes that the test object file only shows up
13786       # once in the compiler output.
13787       if test "$p" = "conftest.$objext"; then
13788	 pre_test_object_deps_done=yes
13789	 continue
13790       fi
13791
13792       if test "$pre_test_object_deps_done" = no; then
13793	 if test -z "$predep_objects_CXX"; then
13794	   predep_objects_CXX="$p"
13795	 else
13796	   predep_objects_CXX="$predep_objects_CXX $p"
13797	 fi
13798       else
13799	 if test -z "$postdep_objects_CXX"; then
13800	   postdep_objects_CXX="$p"
13801	 else
13802	   postdep_objects_CXX="$postdep_objects_CXX $p"
13803	 fi
13804       fi
13805       ;;
13806
13807    *) ;; # Ignore the rest.
13808
13809    esac
13810  done
13811
13812  # Clean up.
13813  rm -f a.out a.exe
13814else
13815  echo "libtool.m4: error: problem compiling CXX test program"
13816fi
13817
13818$RM -f confest.$objext
13819
13820# PORTME: override above test on systems where it is broken
13821case $host_os in
13822interix[3-9]*)
13823  # Interix 3.5 installs completely hosed .la files for C++, so rather than
13824  # hack all around it, let's just trust "g++" to DTRT.
13825  predep_objects_CXX=
13826  postdep_objects_CXX=
13827  postdeps_CXX=
13828  ;;
13829
13830linux*)
13831  case `$CC -V 2>&1 | sed 5q` in
13832  *Sun\ C*)
13833    # Sun C++ 5.9
13834
13835    # The more standards-conforming stlport4 library is
13836    # incompatible with the Cstd library. Avoid specifying
13837    # it if it's in CXXFLAGS. Ignore libCrun as
13838    # -library=stlport4 depends on it.
13839    case " $CXX $CXXFLAGS " in
13840    *" -library=stlport4 "*)
13841      solaris_use_stlport4=yes
13842      ;;
13843    esac
13844
13845    if test "$solaris_use_stlport4" != yes; then
13846      postdeps_CXX='-library=Cstd -library=Crun'
13847    fi
13848    ;;
13849  esac
13850  ;;
13851
13852solaris*)
13853  case $cc_basename in
13854  CC*)
13855    # The more standards-conforming stlport4 library is
13856    # incompatible with the Cstd library. Avoid specifying
13857    # it if it's in CXXFLAGS. Ignore libCrun as
13858    # -library=stlport4 depends on it.
13859    case " $CXX $CXXFLAGS " in
13860    *" -library=stlport4 "*)
13861      solaris_use_stlport4=yes
13862      ;;
13863    esac
13864
13865    # Adding this requires a known-good setup of shared libraries for
13866    # Sun compiler versions before 5.6, else PIC objects from an old
13867    # archive will be linked into the output, leading to subtle bugs.
13868    if test "$solaris_use_stlport4" != yes; then
13869      postdeps_CXX='-library=Cstd -library=Crun'
13870    fi
13871    ;;
13872  esac
13873  ;;
13874esac
13875
13876
13877case " $postdeps_CXX " in
13878*" -lc "*) archive_cmds_need_lc_CXX=no ;;
13879esac
13880 compiler_lib_search_dirs_CXX=
13881if test -n "${compiler_lib_search_path_CXX}"; then
13882 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
13883fi
13884
13885
13886
13887
13888
13889
13890
13891
13892
13893
13894
13895
13896
13897
13898
13899
13900
13901
13902
13903
13904
13905
13906
13907
13908
13909
13910
13911
13912
13913
13914
13915    lt_prog_compiler_wl_CXX=
13916lt_prog_compiler_pic_CXX=
13917lt_prog_compiler_static_CXX=
13918
13919{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
13920$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
13921
13922  # C++ specific cases for pic, static, wl, etc.
13923  if test "$GXX" = yes; then
13924    lt_prog_compiler_wl_CXX='-Wl,'
13925    lt_prog_compiler_static_CXX='-static'
13926
13927    case $host_os in
13928    aix*)
13929      # All AIX code is PIC.
13930      if test "$host_cpu" = ia64; then
13931	# AIX 5 now supports IA64 processor
13932	lt_prog_compiler_static_CXX='-Bstatic'
13933      fi
13934      lt_prog_compiler_pic_CXX='-fPIC'
13935      ;;
13936
13937    amigaos*)
13938      case $host_cpu in
13939      powerpc)
13940            # see comment about AmigaOS4 .so support
13941            lt_prog_compiler_pic_CXX='-fPIC'
13942        ;;
13943      m68k)
13944            # FIXME: we need at least 68020 code to build shared libraries, but
13945            # adding the `-m68020' flag to GCC prevents building anything better,
13946            # like `-m68040'.
13947            lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
13948        ;;
13949      esac
13950      ;;
13951
13952    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13953      # PIC is the default for these OSes.
13954      ;;
13955    mingw* | cygwin* | os2* | pw32* | cegcc*)
13956      # This hack is so that the source file can tell whether it is being
13957      # built for inclusion in a dll (and should export symbols for example).
13958      # Although the cygwin gcc ignores -fPIC, still need this for old-style
13959      # (--disable-auto-import) libraries
13960      lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
13961      ;;
13962    darwin* | rhapsody*)
13963      # PIC is the default on this platform
13964      # Common symbols not allowed in MH_DYLIB files
13965      lt_prog_compiler_pic_CXX='-fno-common'
13966      ;;
13967    *djgpp*)
13968      # DJGPP does not support shared libraries at all
13969      lt_prog_compiler_pic_CXX=
13970      ;;
13971    haiku*)
13972      # PIC is the default for Haiku.
13973      # The "-static" flag exists, but is broken.
13974      lt_prog_compiler_static_CXX=
13975      ;;
13976    interix[3-9]*)
13977      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
13978      # Instead, we relocate shared libraries at runtime.
13979      ;;
13980    sysv4*MP*)
13981      if test -d /usr/nec; then
13982	lt_prog_compiler_pic_CXX=-Kconform_pic
13983      fi
13984      ;;
13985    hpux*)
13986      # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
13987      # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
13988      # sets the default TLS model and affects inlining.
13989      case $host_cpu in
13990      hppa*64*)
13991	;;
13992      *)
13993	lt_prog_compiler_pic_CXX='-fPIC'
13994	;;
13995      esac
13996      ;;
13997    *qnx* | *nto*)
13998      # QNX uses GNU C++, but need to define -shared option too, otherwise
13999      # it will coredump.
14000      lt_prog_compiler_pic_CXX='-fPIC -shared'
14001      ;;
14002    *)
14003      lt_prog_compiler_pic_CXX='-fPIC'
14004      ;;
14005    esac
14006  else
14007    case $host_os in
14008      aix[4-9]*)
14009	# All AIX code is PIC.
14010	if test "$host_cpu" = ia64; then
14011	  # AIX 5 now supports IA64 processor
14012	  lt_prog_compiler_static_CXX='-Bstatic'
14013	else
14014	  lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
14015	fi
14016	;;
14017      chorus*)
14018	case $cc_basename in
14019	cxch68*)
14020	  # Green Hills C++ Compiler
14021	  # _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"
14022	  ;;
14023	esac
14024	;;
14025      dgux*)
14026	case $cc_basename in
14027	  ec++*)
14028	    lt_prog_compiler_pic_CXX='-KPIC'
14029	    ;;
14030	  ghcx*)
14031	    # Green Hills C++ Compiler
14032	    lt_prog_compiler_pic_CXX='-pic'
14033	    ;;
14034	  *)
14035	    ;;
14036	esac
14037	;;
14038      freebsd* | dragonfly*)
14039	# FreeBSD uses GNU C++
14040	;;
14041      hpux9* | hpux10* | hpux11*)
14042	case $cc_basename in
14043	  CC*)
14044	    lt_prog_compiler_wl_CXX='-Wl,'
14045	    lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
14046	    if test "$host_cpu" != ia64; then
14047	      lt_prog_compiler_pic_CXX='+Z'
14048	    fi
14049	    ;;
14050	  aCC*)
14051	    lt_prog_compiler_wl_CXX='-Wl,'
14052	    lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
14053	    case $host_cpu in
14054	    hppa*64*|ia64*)
14055	      # +Z the default
14056	      ;;
14057	    *)
14058	      lt_prog_compiler_pic_CXX='+Z'
14059	      ;;
14060	    esac
14061	    ;;
14062	  *)
14063	    ;;
14064	esac
14065	;;
14066      interix*)
14067	# This is c89, which is MS Visual C++ (no shared libs)
14068	# Anyone wants to do a port?
14069	;;
14070      irix5* | irix6* | nonstopux*)
14071	case $cc_basename in
14072	  CC*)
14073	    lt_prog_compiler_wl_CXX='-Wl,'
14074	    lt_prog_compiler_static_CXX='-non_shared'
14075	    # CC pic flag -KPIC is the default.
14076	    ;;
14077	  *)
14078	    ;;
14079	esac
14080	;;
14081      linux* | k*bsd*-gnu | kopensolaris*-gnu)
14082	case $cc_basename in
14083	  KCC*)
14084	    # KAI C++ Compiler
14085	    lt_prog_compiler_wl_CXX='--backend -Wl,'
14086	    lt_prog_compiler_pic_CXX='-fPIC'
14087	    ;;
14088	  ecpc* )
14089	    # old Intel C++ for x86_64 which still supported -KPIC.
14090	    lt_prog_compiler_wl_CXX='-Wl,'
14091	    lt_prog_compiler_pic_CXX='-KPIC'
14092	    lt_prog_compiler_static_CXX='-static'
14093	    ;;
14094	  icpc* )
14095	    # Intel C++, used to be incompatible with GCC.
14096	    # ICC 10 doesn't accept -KPIC any more.
14097	    lt_prog_compiler_wl_CXX='-Wl,'
14098	    lt_prog_compiler_pic_CXX='-fPIC'
14099	    lt_prog_compiler_static_CXX='-static'
14100	    ;;
14101	  pgCC* | pgcpp*)
14102	    # Portland Group C++ compiler
14103	    lt_prog_compiler_wl_CXX='-Wl,'
14104	    lt_prog_compiler_pic_CXX='-fpic'
14105	    lt_prog_compiler_static_CXX='-Bstatic'
14106	    ;;
14107	  cxx*)
14108	    # Compaq C++
14109	    # Make sure the PIC flag is empty.  It appears that all Alpha
14110	    # Linux and Compaq Tru64 Unix objects are PIC.
14111	    lt_prog_compiler_pic_CXX=
14112	    lt_prog_compiler_static_CXX='-non_shared'
14113	    ;;
14114	  xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
14115	    # IBM XL 8.0, 9.0 on PPC and BlueGene
14116	    lt_prog_compiler_wl_CXX='-Wl,'
14117	    lt_prog_compiler_pic_CXX='-qpic'
14118	    lt_prog_compiler_static_CXX='-qstaticlink'
14119	    ;;
14120	  *)
14121	    case `$CC -V 2>&1 | sed 5q` in
14122	    *Sun\ C*)
14123	      # Sun C++ 5.9
14124	      lt_prog_compiler_pic_CXX='-KPIC'
14125	      lt_prog_compiler_static_CXX='-Bstatic'
14126	      lt_prog_compiler_wl_CXX='-Qoption ld '
14127	      ;;
14128	    esac
14129	    ;;
14130	esac
14131	;;
14132      lynxos*)
14133	;;
14134      m88k*)
14135	;;
14136      mvs*)
14137	case $cc_basename in
14138	  cxx*)
14139	    lt_prog_compiler_pic_CXX='-W c,exportall'
14140	    ;;
14141	  *)
14142	    ;;
14143	esac
14144	;;
14145      netbsd*)
14146	;;
14147      *qnx* | *nto*)
14148        # QNX uses GNU C++, but need to define -shared option too, otherwise
14149        # it will coredump.
14150        lt_prog_compiler_pic_CXX='-fPIC -shared'
14151        ;;
14152      osf3* | osf4* | osf5*)
14153	case $cc_basename in
14154	  KCC*)
14155	    lt_prog_compiler_wl_CXX='--backend -Wl,'
14156	    ;;
14157	  RCC*)
14158	    # Rational C++ 2.4.1
14159	    lt_prog_compiler_pic_CXX='-pic'
14160	    ;;
14161	  cxx*)
14162	    # Digital/Compaq C++
14163	    lt_prog_compiler_wl_CXX='-Wl,'
14164	    # Make sure the PIC flag is empty.  It appears that all Alpha
14165	    # Linux and Compaq Tru64 Unix objects are PIC.
14166	    lt_prog_compiler_pic_CXX=
14167	    lt_prog_compiler_static_CXX='-non_shared'
14168	    ;;
14169	  *)
14170	    ;;
14171	esac
14172	;;
14173      psos*)
14174	;;
14175      solaris*)
14176	case $cc_basename in
14177	  CC*)
14178	    # Sun C++ 4.2, 5.x and Centerline C++
14179	    lt_prog_compiler_pic_CXX='-KPIC'
14180	    lt_prog_compiler_static_CXX='-Bstatic'
14181	    lt_prog_compiler_wl_CXX='-Qoption ld '
14182	    ;;
14183	  gcx*)
14184	    # Green Hills C++ Compiler
14185	    lt_prog_compiler_pic_CXX='-PIC'
14186	    ;;
14187	  *)
14188	    ;;
14189	esac
14190	;;
14191      sunos4*)
14192	case $cc_basename in
14193	  CC*)
14194	    # Sun C++ 4.x
14195	    lt_prog_compiler_pic_CXX='-pic'
14196	    lt_prog_compiler_static_CXX='-Bstatic'
14197	    ;;
14198	  lcc*)
14199	    # Lucid
14200	    lt_prog_compiler_pic_CXX='-pic'
14201	    ;;
14202	  *)
14203	    ;;
14204	esac
14205	;;
14206      sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14207	case $cc_basename in
14208	  CC*)
14209	    lt_prog_compiler_wl_CXX='-Wl,'
14210	    lt_prog_compiler_pic_CXX='-KPIC'
14211	    lt_prog_compiler_static_CXX='-Bstatic'
14212	    ;;
14213	esac
14214	;;
14215      tandem*)
14216	case $cc_basename in
14217	  NCC*)
14218	    # NonStop-UX NCC 3.20
14219	    lt_prog_compiler_pic_CXX='-KPIC'
14220	    ;;
14221	  *)
14222	    ;;
14223	esac
14224	;;
14225      vxworks*)
14226	;;
14227      *)
14228	lt_prog_compiler_can_build_shared_CXX=no
14229	;;
14230    esac
14231  fi
14232
14233case $host_os in
14234  # For platforms which do not support PIC, -DPIC is meaningless:
14235  *djgpp*)
14236    lt_prog_compiler_pic_CXX=
14237    ;;
14238  *)
14239    lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
14240    ;;
14241esac
14242{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_CXX" >&5
14243$as_echo "$lt_prog_compiler_pic_CXX" >&6; }
14244
14245
14246
14247#
14248# Check to make sure the PIC flag actually works.
14249#
14250if test -n "$lt_prog_compiler_pic_CXX"; then
14251  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
14252$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
14253if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then :
14254  $as_echo_n "(cached) " >&6
14255else
14256  lt_cv_prog_compiler_pic_works_CXX=no
14257   ac_outfile=conftest.$ac_objext
14258   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14259   lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
14260   # Insert the option either (1) after the last *FLAGS variable, or
14261   # (2) before a word containing "conftest.", or (3) at the end.
14262   # Note that $ac_compile itself does not contain backslashes and begins
14263   # with a dollar sign (not a hyphen), so the echo should work correctly.
14264   # The option is referenced via a variable to avoid confusing sed.
14265   lt_compile=`echo "$ac_compile" | $SED \
14266   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14267   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14268   -e 's:$: $lt_compiler_flag:'`
14269   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14270   (eval "$lt_compile" 2>conftest.err)
14271   ac_status=$?
14272   cat conftest.err >&5
14273   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14274   if (exit $ac_status) && test -s "$ac_outfile"; then
14275     # The compiler can only warn and ignore the option if not recognized
14276     # So say no if there are warnings other than the usual output.
14277     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
14278     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14279     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14280       lt_cv_prog_compiler_pic_works_CXX=yes
14281     fi
14282   fi
14283   $RM conftest*
14284
14285fi
14286{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
14287$as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
14288
14289if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
14290    case $lt_prog_compiler_pic_CXX in
14291     "" | " "*) ;;
14292     *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
14293     esac
14294else
14295    lt_prog_compiler_pic_CXX=
14296     lt_prog_compiler_can_build_shared_CXX=no
14297fi
14298
14299fi
14300
14301
14302
14303#
14304# Check to make sure the static flag actually works.
14305#
14306wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
14307{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14308$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
14309if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then :
14310  $as_echo_n "(cached) " >&6
14311else
14312  lt_cv_prog_compiler_static_works_CXX=no
14313   save_LDFLAGS="$LDFLAGS"
14314   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14315   echo "$lt_simple_link_test_code" > conftest.$ac_ext
14316   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14317     # The linker can only warn and ignore the option if not recognized
14318     # So say no if there are warnings
14319     if test -s conftest.err; then
14320       # Append any errors to the config.log.
14321       cat conftest.err 1>&5
14322       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
14323       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14324       if diff conftest.exp conftest.er2 >/dev/null; then
14325         lt_cv_prog_compiler_static_works_CXX=yes
14326       fi
14327     else
14328       lt_cv_prog_compiler_static_works_CXX=yes
14329     fi
14330   fi
14331   $RM -r conftest*
14332   LDFLAGS="$save_LDFLAGS"
14333
14334fi
14335{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
14336$as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
14337
14338if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
14339    :
14340else
14341    lt_prog_compiler_static_CXX=
14342fi
14343
14344
14345
14346
14347    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
14348$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
14349if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
14350  $as_echo_n "(cached) " >&6
14351else
14352  lt_cv_prog_compiler_c_o_CXX=no
14353   $RM -r conftest 2>/dev/null
14354   mkdir conftest
14355   cd conftest
14356   mkdir out
14357   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14358
14359   lt_compiler_flag="-o out/conftest2.$ac_objext"
14360   # Insert the option either (1) after the last *FLAGS variable, or
14361   # (2) before a word containing "conftest.", or (3) at the end.
14362   # Note that $ac_compile itself does not contain backslashes and begins
14363   # with a dollar sign (not a hyphen), so the echo should work correctly.
14364   lt_compile=`echo "$ac_compile" | $SED \
14365   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14366   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14367   -e 's:$: $lt_compiler_flag:'`
14368   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14369   (eval "$lt_compile" 2>out/conftest.err)
14370   ac_status=$?
14371   cat out/conftest.err >&5
14372   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14373   if (exit $ac_status) && test -s out/conftest2.$ac_objext
14374   then
14375     # The compiler can only warn and ignore the option if not recognized
14376     # So say no if there are warnings
14377     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
14378     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14379     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14380       lt_cv_prog_compiler_c_o_CXX=yes
14381     fi
14382   fi
14383   chmod u+w . 2>&5
14384   $RM conftest*
14385   # SGI C++ compiler will create directory out/ii_files/ for
14386   # template instantiation
14387   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14388   $RM out/* && rmdir out
14389   cd ..
14390   $RM -r conftest
14391   $RM conftest*
14392
14393fi
14394{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
14395$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
14396
14397
14398
14399    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
14400$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
14401if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
14402  $as_echo_n "(cached) " >&6
14403else
14404  lt_cv_prog_compiler_c_o_CXX=no
14405   $RM -r conftest 2>/dev/null
14406   mkdir conftest
14407   cd conftest
14408   mkdir out
14409   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14410
14411   lt_compiler_flag="-o out/conftest2.$ac_objext"
14412   # Insert the option either (1) after the last *FLAGS variable, or
14413   # (2) before a word containing "conftest.", or (3) at the end.
14414   # Note that $ac_compile itself does not contain backslashes and begins
14415   # with a dollar sign (not a hyphen), so the echo should work correctly.
14416   lt_compile=`echo "$ac_compile" | $SED \
14417   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14418   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14419   -e 's:$: $lt_compiler_flag:'`
14420   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14421   (eval "$lt_compile" 2>out/conftest.err)
14422   ac_status=$?
14423   cat out/conftest.err >&5
14424   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14425   if (exit $ac_status) && test -s out/conftest2.$ac_objext
14426   then
14427     # The compiler can only warn and ignore the option if not recognized
14428     # So say no if there are warnings
14429     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
14430     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14431     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14432       lt_cv_prog_compiler_c_o_CXX=yes
14433     fi
14434   fi
14435   chmod u+w . 2>&5
14436   $RM conftest*
14437   # SGI C++ compiler will create directory out/ii_files/ for
14438   # template instantiation
14439   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14440   $RM out/* && rmdir out
14441   cd ..
14442   $RM -r conftest
14443   $RM conftest*
14444
14445fi
14446{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
14447$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
14448
14449
14450
14451
14452hard_links="nottested"
14453if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
14454  # do not overwrite the value of need_locks provided by the user
14455  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
14456$as_echo_n "checking if we can lock with hard links... " >&6; }
14457  hard_links=yes
14458  $RM conftest*
14459  ln conftest.a conftest.b 2>/dev/null && hard_links=no
14460  touch conftest.a
14461  ln conftest.a conftest.b 2>&5 || hard_links=no
14462  ln conftest.a conftest.b 2>/dev/null && hard_links=no
14463  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
14464$as_echo "$hard_links" >&6; }
14465  if test "$hard_links" = no; then
14466    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14467$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14468    need_locks=warn
14469  fi
14470else
14471  need_locks=no
14472fi
14473
14474
14475
14476    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14477$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
14478
14479  export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14480  case $host_os in
14481  aix[4-9]*)
14482    # If we're using GNU nm, then we don't want the "-C" option.
14483    # -C means demangle to AIX nm, but means don't demangle with GNU nm
14484    # Also, AIX nm treats weak defined symbols like other global defined
14485    # symbols, whereas GNU nm marks them as "W".
14486    if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
14487      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'
14488    else
14489      export_symbols_cmds_CXX='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "L")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
14490    fi
14491    ;;
14492  pw32*)
14493    export_symbols_cmds_CXX="$ltdll_cmds"
14494  ;;
14495  cygwin* | mingw* | cegcc*)
14496    export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;/^.*[ ]__nm__/s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols'
14497  ;;
14498  *)
14499    export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14500  ;;
14501  esac
14502  exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
14503
14504{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
14505$as_echo "$ld_shlibs_CXX" >&6; }
14506test "$ld_shlibs_CXX" = no && can_build_shared=no
14507
14508with_gnu_ld_CXX=$with_gnu_ld
14509
14510
14511
14512
14513
14514
14515#
14516# Do we need to explicitly link libc?
14517#
14518case "x$archive_cmds_need_lc_CXX" in
14519x|xyes)
14520  # Assume -lc should be added
14521  archive_cmds_need_lc_CXX=yes
14522
14523  if test "$enable_shared" = yes && test "$GCC" = yes; then
14524    case $archive_cmds_CXX in
14525    *'~'*)
14526      # FIXME: we may have to deal with multi-command sequences.
14527      ;;
14528    '$CC '*)
14529      # Test whether the compiler implicitly links with -lc since on some
14530      # systems, -lgcc has to come before -lc. If gcc already passes -lc
14531      # to ld, don't add -lc before -lgcc.
14532      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
14533$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
14534if test "${lt_cv_archive_cmds_need_lc_CXX+set}" = set; then :
14535  $as_echo_n "(cached) " >&6
14536else
14537  $RM conftest*
14538	echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14539
14540	if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14541  (eval $ac_compile) 2>&5
14542  ac_status=$?
14543  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14544  test $ac_status = 0; } 2>conftest.err; then
14545	  soname=conftest
14546	  lib=conftest
14547	  libobjs=conftest.$ac_objext
14548	  deplibs=
14549	  wl=$lt_prog_compiler_wl_CXX
14550	  pic_flag=$lt_prog_compiler_pic_CXX
14551	  compiler_flags=-v
14552	  linker_flags=-v
14553	  verstring=
14554	  output_objdir=.
14555	  libname=conftest
14556	  lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
14557	  allow_undefined_flag_CXX=
14558	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
14559  (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
14560  ac_status=$?
14561  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14562  test $ac_status = 0; }
14563	  then
14564	    lt_cv_archive_cmds_need_lc_CXX=no
14565	  else
14566	    lt_cv_archive_cmds_need_lc_CXX=yes
14567	  fi
14568	  allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
14569	else
14570	  cat conftest.err 1>&5
14571	fi
14572	$RM conftest*
14573
14574fi
14575{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
14576$as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
14577      archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
14578      ;;
14579    esac
14580  fi
14581  ;;
14582esac
14583
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
14616
14617
14618
14619
14620
14621
14622
14623
14624
14625
14626
14627
14628
14629
14630
14631
14632
14633
14634
14635
14636
14637
14638
14639
14640
14641
14642
14643
14644
14645
14646
14647    { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
14648$as_echo_n "checking dynamic linker characteristics... " >&6; }
14649
14650library_names_spec=
14651libname_spec='lib$name'
14652soname_spec=
14653shrext_cmds=".so"
14654postinstall_cmds=
14655postuninstall_cmds=
14656finish_cmds=
14657finish_eval=
14658shlibpath_var=
14659shlibpath_overrides_runpath=unknown
14660version_type=none
14661dynamic_linker="$host_os ld.so"
14662sys_lib_dlsearch_path_spec="/lib /usr/lib"
14663need_lib_prefix=unknown
14664hardcode_into_libs=no
14665
14666# when you set need_version to no, make sure it does not cause -set_version
14667# flags to be left without arguments
14668need_version=unknown
14669
14670case $host_os in
14671aix3*)
14672  version_type=linux
14673  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
14674  shlibpath_var=LIBPATH
14675
14676  # AIX 3 has no versioning support, so we append a major version to the name.
14677  soname_spec='${libname}${release}${shared_ext}$major'
14678  ;;
14679
14680aix[4-9]*)
14681  version_type=linux
14682  need_lib_prefix=no
14683  need_version=no
14684  hardcode_into_libs=yes
14685  if test "$host_cpu" = ia64; then
14686    # AIX 5 supports IA64
14687    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
14688    shlibpath_var=LD_LIBRARY_PATH
14689  else
14690    # With GCC up to 2.95.x, collect2 would create an import file
14691    # for dependence libraries.  The import file would start with
14692    # the line `#! .'.  This would cause the generated library to
14693    # depend on `.', always an invalid library.  This was fixed in
14694    # development snapshots of GCC prior to 3.0.
14695    case $host_os in
14696      aix4 | aix4.[01] | aix4.[01].*)
14697      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14698	   echo ' yes '
14699	   echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
14700	:
14701      else
14702	can_build_shared=no
14703      fi
14704      ;;
14705    esac
14706    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
14707    # soname into executable. Probably we can add versioning support to
14708    # collect2, so additional links can be useful in future.
14709    if test "$aix_use_runtimelinking" = yes; then
14710      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
14711      # instead of lib<name>.a to let people know that these are not
14712      # typical AIX shared libraries.
14713      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14714    else
14715      # We preserve .a as extension for shared libraries through AIX4.2
14716      # and later when we are not doing run time linking.
14717      library_names_spec='${libname}${release}.a $libname.a'
14718      soname_spec='${libname}${release}${shared_ext}$major'
14719    fi
14720    shlibpath_var=LIBPATH
14721  fi
14722  ;;
14723
14724amigaos*)
14725  case $host_cpu in
14726  powerpc)
14727    # Since July 2007 AmigaOS4 officially supports .so libraries.
14728    # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
14729    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14730    ;;
14731  m68k)
14732    library_names_spec='$libname.ixlibrary $libname.a'
14733    # Create ${libname}_ixlibrary.a entries in /sys/libs.
14734    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'
14735    ;;
14736  esac
14737  ;;
14738
14739beos*)
14740  library_names_spec='${libname}${shared_ext}'
14741  dynamic_linker="$host_os ld.so"
14742  shlibpath_var=LIBRARY_PATH
14743  ;;
14744
14745bsdi[45]*)
14746  version_type=linux
14747  need_version=no
14748  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14749  soname_spec='${libname}${release}${shared_ext}$major'
14750  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
14751  shlibpath_var=LD_LIBRARY_PATH
14752  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14753  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
14754  # the default ld.so.conf also contains /usr/contrib/lib and
14755  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14756  # libtool to hard-code these into programs
14757  ;;
14758
14759cygwin* | mingw* | pw32* | cegcc*)
14760  version_type=windows
14761  shrext_cmds=".dll"
14762  need_version=no
14763  need_lib_prefix=no
14764
14765  case $GCC,$host_os in
14766  yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
14767    library_names_spec='$libname.dll.a'
14768    # DLL is installed to $(libdir)/../bin by postinstall_cmds
14769    postinstall_cmds='base_file=`basename \${file}`~
14770      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
14771      dldir=$destdir/`dirname \$dlpath`~
14772      test -d \$dldir || mkdir -p \$dldir~
14773      $install_prog $dir/$dlname \$dldir/$dlname~
14774      chmod a+x \$dldir/$dlname~
14775      if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
14776        eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
14777      fi'
14778    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14779      dlpath=$dir/\$dldll~
14780       $RM \$dlpath'
14781    shlibpath_overrides_runpath=yes
14782
14783    case $host_os in
14784    cygwin*)
14785      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
14786      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14787
14788      ;;
14789    mingw* | cegcc*)
14790      # MinGW DLLs use traditional 'lib' prefix
14791      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14792      ;;
14793    pw32*)
14794      # pw32 DLLs use 'pw' prefix rather than 'lib'
14795      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14796      ;;
14797    esac
14798    ;;
14799
14800  *)
14801    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
14802    ;;
14803  esac
14804  dynamic_linker='Win32 ld.exe'
14805  # FIXME: first we should search . and the directory the executable is in
14806  shlibpath_var=PATH
14807  ;;
14808
14809darwin* | rhapsody*)
14810  dynamic_linker="$host_os dyld"
14811  version_type=darwin
14812  need_lib_prefix=no
14813  need_version=no
14814  library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
14815  soname_spec='${libname}${release}${major}$shared_ext'
14816  shlibpath_overrides_runpath=yes
14817  shlibpath_var=DYLD_LIBRARY_PATH
14818  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
14819
14820  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
14821  ;;
14822
14823dgux*)
14824  version_type=linux
14825  need_lib_prefix=no
14826  need_version=no
14827  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
14828  soname_spec='${libname}${release}${shared_ext}$major'
14829  shlibpath_var=LD_LIBRARY_PATH
14830  ;;
14831
14832freebsd* | dragonfly*)
14833  # DragonFly does not have aout.  When/if they implement a new
14834  # versioning mechanism, adjust this.
14835  if test -x /usr/bin/objformat; then
14836    objformat=`/usr/bin/objformat`
14837  else
14838    case $host_os in
14839    freebsd[23].*) objformat=aout ;;
14840    *) objformat=elf ;;
14841    esac
14842  fi
14843  version_type=freebsd-$objformat
14844  case $version_type in
14845    freebsd-elf*)
14846      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14847      need_version=no
14848      need_lib_prefix=no
14849      ;;
14850    freebsd-*)
14851      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
14852      need_version=yes
14853      ;;
14854  esac
14855  shlibpath_var=LD_LIBRARY_PATH
14856  case $host_os in
14857  freebsd2.*)
14858    shlibpath_overrides_runpath=yes
14859    ;;
14860  freebsd3.[01]* | freebsdelf3.[01]*)
14861    shlibpath_overrides_runpath=yes
14862    hardcode_into_libs=yes
14863    ;;
14864  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
14865  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
14866    shlibpath_overrides_runpath=no
14867    hardcode_into_libs=yes
14868    ;;
14869  *) # from 4.6 on, and DragonFly
14870    shlibpath_overrides_runpath=yes
14871    hardcode_into_libs=yes
14872    ;;
14873  esac
14874  ;;
14875
14876gnu*)
14877  version_type=linux
14878  need_lib_prefix=no
14879  need_version=no
14880  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14881  soname_spec='${libname}${release}${shared_ext}$major'
14882  shlibpath_var=LD_LIBRARY_PATH
14883  hardcode_into_libs=yes
14884  ;;
14885
14886haiku*)
14887  version_type=linux
14888  need_lib_prefix=no
14889  need_version=no
14890  dynamic_linker="$host_os runtime_loader"
14891  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14892  soname_spec='${libname}${release}${shared_ext}$major'
14893  shlibpath_var=LIBRARY_PATH
14894  shlibpath_overrides_runpath=yes
14895  sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
14896  hardcode_into_libs=yes
14897  ;;
14898
14899hpux9* | hpux10* | hpux11*)
14900  # Give a soname corresponding to the major version so that dld.sl refuses to
14901  # link against other versions.
14902  version_type=sunos
14903  need_lib_prefix=no
14904  need_version=no
14905  case $host_cpu in
14906  ia64*)
14907    shrext_cmds='.so'
14908    hardcode_into_libs=yes
14909    dynamic_linker="$host_os dld.so"
14910    shlibpath_var=LD_LIBRARY_PATH
14911    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14912    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14913    soname_spec='${libname}${release}${shared_ext}$major'
14914    if test "X$HPUX_IA64_MODE" = X32; then
14915      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
14916    else
14917      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
14918    fi
14919    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14920    ;;
14921  hppa*64*)
14922    shrext_cmds='.sl'
14923    hardcode_into_libs=yes
14924    dynamic_linker="$host_os dld.sl"
14925    shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
14926    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14927    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14928    soname_spec='${libname}${release}${shared_ext}$major'
14929    sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
14930    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14931    ;;
14932  *)
14933    shrext_cmds='.sl'
14934    dynamic_linker="$host_os dld.sl"
14935    shlibpath_var=SHLIB_PATH
14936    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
14937    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14938    soname_spec='${libname}${release}${shared_ext}$major'
14939    ;;
14940  esac
14941  # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
14942  postinstall_cmds='chmod 555 $lib'
14943  # or fails outright, so override atomically:
14944  install_override_mode=555
14945  ;;
14946
14947interix[3-9]*)
14948  version_type=linux
14949  need_lib_prefix=no
14950  need_version=no
14951  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14952  soname_spec='${libname}${release}${shared_ext}$major'
14953  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
14954  shlibpath_var=LD_LIBRARY_PATH
14955  shlibpath_overrides_runpath=no
14956  hardcode_into_libs=yes
14957  ;;
14958
14959irix5* | irix6* | nonstopux*)
14960  case $host_os in
14961    nonstopux*) version_type=nonstopux ;;
14962    *)
14963	if test "$lt_cv_prog_gnu_ld" = yes; then
14964		version_type=linux
14965	else
14966		version_type=irix
14967	fi ;;
14968  esac
14969  need_lib_prefix=no
14970  need_version=no
14971  soname_spec='${libname}${release}${shared_ext}$major'
14972  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
14973  case $host_os in
14974  irix5* | nonstopux*)
14975    libsuff= shlibsuff=
14976    ;;
14977  *)
14978    case $LD in # libtool.m4 will add one of these switches to LD
14979    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
14980      libsuff= shlibsuff= libmagic=32-bit;;
14981    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
14982      libsuff=32 shlibsuff=N32 libmagic=N32;;
14983    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
14984      libsuff=64 shlibsuff=64 libmagic=64-bit;;
14985    *) libsuff= shlibsuff= libmagic=never-match;;
14986    esac
14987    ;;
14988  esac
14989  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
14990  shlibpath_overrides_runpath=no
14991  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
14992  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
14993  hardcode_into_libs=yes
14994  ;;
14995
14996# No shared lib support for Linux oldld, aout, or coff.
14997linux*oldld* | linux*aout* | linux*coff*)
14998  dynamic_linker=no
14999  ;;
15000
15001# This must be Linux ELF.
15002linux* | k*bsd*-gnu | kopensolaris*-gnu)
15003  version_type=linux
15004  need_lib_prefix=no
15005  need_version=no
15006  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15007  soname_spec='${libname}${release}${shared_ext}$major'
15008  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15009  shlibpath_var=LD_LIBRARY_PATH
15010  shlibpath_overrides_runpath=no
15011
15012  # Some binutils ld are patched to set DT_RUNPATH
15013  if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
15014  $as_echo_n "(cached) " >&6
15015else
15016  lt_cv_shlibpath_overrides_runpath=no
15017    save_LDFLAGS=$LDFLAGS
15018    save_libdir=$libdir
15019    eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
15020	 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
15021    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15022/* end confdefs.h.  */
15023
15024int
15025main ()
15026{
15027
15028  ;
15029  return 0;
15030}
15031_ACEOF
15032if ac_fn_cxx_try_link "$LINENO"; then :
15033  if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
15034  lt_cv_shlibpath_overrides_runpath=yes
15035fi
15036fi
15037rm -f core conftest.err conftest.$ac_objext \
15038    conftest$ac_exeext conftest.$ac_ext
15039    LDFLAGS=$save_LDFLAGS
15040    libdir=$save_libdir
15041
15042fi
15043
15044  shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
15045
15046  # This implies no fast_install, which is unacceptable.
15047  # Some rework will be needed to allow for fast_install
15048  # before this can be enabled.
15049  hardcode_into_libs=yes
15050
15051  # Append ld.so.conf contents to the search path
15052  if test -f /etc/ld.so.conf; then
15053    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' ' '`
15054    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
15055  fi
15056
15057  # We used to test for /lib/ld.so.1 and disable shared libraries on
15058  # powerpc, because MkLinux only supported shared libraries with the
15059  # GNU dynamic linker.  Since this was broken with cross compilers,
15060  # most powerpc-linux boxes support dynamic linking these days and
15061  # people can always --disable-shared, the test was removed, and we
15062  # assume the GNU/Linux dynamic linker is in use.
15063  dynamic_linker='GNU/Linux ld.so'
15064  ;;
15065
15066netbsd*)
15067  version_type=sunos
15068  need_lib_prefix=no
15069  need_version=no
15070  if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
15071    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15072    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15073    dynamic_linker='NetBSD (a.out) ld.so'
15074  else
15075    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15076    soname_spec='${libname}${release}${shared_ext}$major'
15077    dynamic_linker='NetBSD ld.elf_so'
15078  fi
15079  shlibpath_var=LD_LIBRARY_PATH
15080  shlibpath_overrides_runpath=yes
15081  hardcode_into_libs=yes
15082  ;;
15083
15084newsos6)
15085  version_type=linux
15086  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15087  shlibpath_var=LD_LIBRARY_PATH
15088  shlibpath_overrides_runpath=yes
15089  ;;
15090
15091*nto* | *qnx*)
15092  version_type=qnx
15093  need_lib_prefix=no
15094  need_version=no
15095  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15096  soname_spec='${libname}${release}${shared_ext}$major'
15097  shlibpath_var=LD_LIBRARY_PATH
15098  shlibpath_overrides_runpath=no
15099  hardcode_into_libs=yes
15100  dynamic_linker='ldqnx.so'
15101  ;;
15102
15103openbsd*)
15104  version_type=sunos
15105  sys_lib_dlsearch_path_spec="/usr/lib"
15106  need_lib_prefix=no
15107  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
15108  case $host_os in
15109    openbsd3.3 | openbsd3.3.*)	need_version=yes ;;
15110    *)				need_version=no  ;;
15111  esac
15112  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15113  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15114  shlibpath_var=LD_LIBRARY_PATH
15115  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15116    case $host_os in
15117      openbsd2.[89] | openbsd2.[89].*)
15118	shlibpath_overrides_runpath=no
15119	;;
15120      *)
15121	shlibpath_overrides_runpath=yes
15122	;;
15123      esac
15124  else
15125    shlibpath_overrides_runpath=yes
15126  fi
15127  ;;
15128
15129os2*)
15130  libname_spec='$name'
15131  shrext_cmds=".dll"
15132  need_lib_prefix=no
15133  library_names_spec='$libname${shared_ext} $libname.a'
15134  dynamic_linker='OS/2 ld.exe'
15135  shlibpath_var=LIBPATH
15136  ;;
15137
15138osf3* | osf4* | osf5*)
15139  version_type=osf
15140  need_lib_prefix=no
15141  need_version=no
15142  soname_spec='${libname}${release}${shared_ext}$major'
15143  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15144  shlibpath_var=LD_LIBRARY_PATH
15145  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
15146  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
15147  ;;
15148
15149rdos*)
15150  dynamic_linker=no
15151  ;;
15152
15153solaris*)
15154  version_type=linux
15155  need_lib_prefix=no
15156  need_version=no
15157  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15158  soname_spec='${libname}${release}${shared_ext}$major'
15159  shlibpath_var=LD_LIBRARY_PATH
15160  shlibpath_overrides_runpath=yes
15161  hardcode_into_libs=yes
15162  # ldd complains unless libraries are executable
15163  postinstall_cmds='chmod +x $lib'
15164  ;;
15165
15166sunos4*)
15167  version_type=sunos
15168  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15169  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
15170  shlibpath_var=LD_LIBRARY_PATH
15171  shlibpath_overrides_runpath=yes
15172  if test "$with_gnu_ld" = yes; then
15173    need_lib_prefix=no
15174  fi
15175  need_version=yes
15176  ;;
15177
15178sysv4 | sysv4.3*)
15179  version_type=linux
15180  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15181  soname_spec='${libname}${release}${shared_ext}$major'
15182  shlibpath_var=LD_LIBRARY_PATH
15183  case $host_vendor in
15184    sni)
15185      shlibpath_overrides_runpath=no
15186      need_lib_prefix=no
15187      runpath_var=LD_RUN_PATH
15188      ;;
15189    siemens)
15190      need_lib_prefix=no
15191      ;;
15192    motorola)
15193      need_lib_prefix=no
15194      need_version=no
15195      shlibpath_overrides_runpath=no
15196      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
15197      ;;
15198  esac
15199  ;;
15200
15201sysv4*MP*)
15202  if test -d /usr/nec ;then
15203    version_type=linux
15204    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
15205    soname_spec='$libname${shared_ext}.$major'
15206    shlibpath_var=LD_LIBRARY_PATH
15207  fi
15208  ;;
15209
15210sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
15211  version_type=freebsd-elf
15212  need_lib_prefix=no
15213  need_version=no
15214  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15215  soname_spec='${libname}${release}${shared_ext}$major'
15216  shlibpath_var=LD_LIBRARY_PATH
15217  shlibpath_overrides_runpath=yes
15218  hardcode_into_libs=yes
15219  if test "$with_gnu_ld" = yes; then
15220    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
15221  else
15222    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
15223    case $host_os in
15224      sco3.2v5*)
15225        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
15226	;;
15227    esac
15228  fi
15229  sys_lib_dlsearch_path_spec='/usr/lib'
15230  ;;
15231
15232tpf*)
15233  # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
15234  version_type=linux
15235  need_lib_prefix=no
15236  need_version=no
15237  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15238  shlibpath_var=LD_LIBRARY_PATH
15239  shlibpath_overrides_runpath=no
15240  hardcode_into_libs=yes
15241  ;;
15242
15243uts4*)
15244  version_type=linux
15245  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15246  soname_spec='${libname}${release}${shared_ext}$major'
15247  shlibpath_var=LD_LIBRARY_PATH
15248  ;;
15249
15250*)
15251  dynamic_linker=no
15252  ;;
15253esac
15254{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
15255$as_echo "$dynamic_linker" >&6; }
15256test "$dynamic_linker" = no && can_build_shared=no
15257
15258variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15259if test "$GCC" = yes; then
15260  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15261fi
15262
15263if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
15264  sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
15265fi
15266if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
15267  sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
15268fi
15269
15270
15271
15272
15273
15274
15275
15276
15277
15278
15279
15280
15281
15282
15283
15284
15285
15286
15287
15288
15289
15290
15291
15292
15293
15294
15295
15296
15297
15298
15299
15300
15301
15302
15303
15304
15305
15306
15307    { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
15308$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
15309hardcode_action_CXX=
15310if test -n "$hardcode_libdir_flag_spec_CXX" ||
15311   test -n "$runpath_var_CXX" ||
15312   test "X$hardcode_automatic_CXX" = "Xyes" ; then
15313
15314  # We can hardcode non-existent directories.
15315  if test "$hardcode_direct_CXX" != no &&
15316     # If the only mechanism to avoid hardcoding is shlibpath_var, we
15317     # have to relink, otherwise we might link with an installed library
15318     # when we should be linking with a yet-to-be-installed one
15319     ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
15320     test "$hardcode_minus_L_CXX" != no; then
15321    # Linking always hardcodes the temporary library directory.
15322    hardcode_action_CXX=relink
15323  else
15324    # We can link without hardcoding, and we can hardcode nonexisting dirs.
15325    hardcode_action_CXX=immediate
15326  fi
15327else
15328  # We cannot hardcode anything, or else we can only hardcode existing
15329  # directories.
15330  hardcode_action_CXX=unsupported
15331fi
15332{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
15333$as_echo "$hardcode_action_CXX" >&6; }
15334
15335if test "$hardcode_action_CXX" = relink ||
15336   test "$inherit_rpath_CXX" = yes; then
15337  # Fast installation is not supported
15338  enable_fast_install=no
15339elif test "$shlibpath_overrides_runpath" = yes ||
15340     test "$enable_shared" = no; then
15341  # Fast installation is not necessary
15342  enable_fast_install=needless
15343fi
15344
15345
15346
15347
15348
15349
15350
15351  fi # test -n "$compiler"
15352
15353  CC=$lt_save_CC
15354  LDCXX=$LD
15355  LD=$lt_save_LD
15356  GCC=$lt_save_GCC
15357  with_gnu_ld=$lt_save_with_gnu_ld
15358  lt_cv_path_LDCXX=$lt_cv_path_LD
15359  lt_cv_path_LD=$lt_save_path_LD
15360  lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
15361  lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
15362fi # test "$_lt_caught_CXX_error" != yes
15363
15364ac_ext=c
15365ac_cpp='$CPP $CPPFLAGS'
15366ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15367ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15368ac_compiler_gnu=$ac_cv_c_compiler_gnu
15369
15370
15371
15372
15373
15374
15375
15376
15377
15378
15379
15380
15381
15382        ac_config_commands="$ac_config_commands libtool"
15383
15384
15385
15386
15387# Only expand once:
15388
15389
15390
15391for ac_prog in gawk mawk nawk awk
15392do
15393  # Extract the first word of "$ac_prog", so it can be a program name with args.
15394set dummy $ac_prog; ac_word=$2
15395{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15396$as_echo_n "checking for $ac_word... " >&6; }
15397if test "${ac_cv_prog_AWK+set}" = set; then :
15398  $as_echo_n "(cached) " >&6
15399else
15400  if test -n "$AWK"; then
15401  ac_cv_prog_AWK="$AWK" # Let the user override the test.
15402else
15403as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15404for as_dir in $PATH
15405do
15406  IFS=$as_save_IFS
15407  test -z "$as_dir" && as_dir=.
15408    for ac_exec_ext in '' $ac_executable_extensions; do
15409  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
15410    ac_cv_prog_AWK="$ac_prog"
15411    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15412    break 2
15413  fi
15414done
15415  done
15416IFS=$as_save_IFS
15417
15418fi
15419fi
15420AWK=$ac_cv_prog_AWK
15421if test -n "$AWK"; then
15422  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
15423$as_echo "$AWK" >&6; }
15424else
15425  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15426$as_echo "no" >&6; }
15427fi
15428
15429
15430  test -n "$AWK" && break
15431done
15432
15433case "$AWK" in
15434"") as_fn_error "can't build without awk" "$LINENO" 5 ;;
15435esac
15436
15437
15438
15439
15440# The cast to long int works around a bug in the HP C Compiler
15441# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15442# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15443# This bug is HP SR number 8606223364.
15444{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5
15445$as_echo_n "checking size of void *... " >&6; }
15446if test "${ac_cv_sizeof_void_p+set}" = set; then :
15447  $as_echo_n "(cached) " >&6
15448else
15449  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p"        "$ac_includes_default"; then :
15450
15451else
15452  if test "$ac_cv_type_void_p" = yes; then
15453     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
15454$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
15455{ as_fn_set_status 77
15456as_fn_error "cannot compute sizeof (void *)
15457See \`config.log' for more details." "$LINENO" 5; }; }
15458   else
15459     ac_cv_sizeof_void_p=0
15460   fi
15461fi
15462
15463fi
15464{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5
15465$as_echo "$ac_cv_sizeof_void_p" >&6; }
15466
15467
15468
15469cat >>confdefs.h <<_ACEOF
15470#define SIZEOF_VOID_P $ac_cv_sizeof_void_p
15471_ACEOF
15472
15473
15474
15475if test "${multilib}" = "yes"; then
15476  multilib_arg="--enable-multilib"
15477else
15478  multilib_arg=
15479fi
15480
15481# Get target configury.
15482unset TSAN_SUPPORTED
15483unset LSAN_SUPPORTED
15484. ${srcdir}/configure.tgt
15485 if test "x$TSAN_SUPPORTED" = "xyes"; then
15486  TSAN_SUPPORTED_TRUE=
15487  TSAN_SUPPORTED_FALSE='#'
15488else
15489  TSAN_SUPPORTED_TRUE='#'
15490  TSAN_SUPPORTED_FALSE=
15491fi
15492
15493 if test "x$LSAN_SUPPORTED" = "xyes"; then
15494  LSAN_SUPPORTED_TRUE=
15495  LSAN_SUPPORTED_FALSE='#'
15496else
15497  LSAN_SUPPORTED_TRUE='#'
15498  LSAN_SUPPORTED_FALSE=
15499fi
15500
15501
15502# Check for functions needed.
15503for ac_func in clock_getres clock_gettime clock_settime
15504do :
15505  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
15506ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
15507eval as_val=\$$as_ac_var
15508   if test "x$as_val" = x""yes; then :
15509  cat >>confdefs.h <<_ACEOF
15510#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
15511_ACEOF
15512
15513fi
15514done
15515
15516
15517# Common libraries that we need to link against for all sanitizer libs.
15518link_sanitizer_common='-lpthread -lm'
15519
15520# At least for glibc, shm_open is in librt.  But don't pull that
15521# in if it still doesn't give us the function we want.  This
15522# test is copied from libgomp.
15523{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for shm_open in -lrt" >&5
15524$as_echo_n "checking for shm_open in -lrt... " >&6; }
15525if test "${ac_cv_lib_rt_shm_open+set}" = set; then :
15526  $as_echo_n "(cached) " >&6
15527else
15528  ac_check_lib_save_LIBS=$LIBS
15529LIBS="-lrt  $LIBS"
15530cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15531/* end confdefs.h.  */
15532
15533/* Override any GCC internal prototype to avoid an error.
15534   Use char because int might match the return type of a GCC
15535   builtin and then its argument prototype would still apply.  */
15536#ifdef __cplusplus
15537extern "C"
15538#endif
15539char shm_open ();
15540int
15541main ()
15542{
15543return shm_open ();
15544  ;
15545  return 0;
15546}
15547_ACEOF
15548if ac_fn_c_try_link "$LINENO"; then :
15549  ac_cv_lib_rt_shm_open=yes
15550else
15551  ac_cv_lib_rt_shm_open=no
15552fi
15553rm -f core conftest.err conftest.$ac_objext \
15554    conftest$ac_exeext conftest.$ac_ext
15555LIBS=$ac_check_lib_save_LIBS
15556fi
15557{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_shm_open" >&5
15558$as_echo "$ac_cv_lib_rt_shm_open" >&6; }
15559if test "x$ac_cv_lib_rt_shm_open" = x""yes; then :
15560  link_sanitizer_common="-lrt $link_sanitizer_common"
15561fi
15562
15563
15564# Do a configure time check for -ldl
15565{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlsym in -ldl" >&5
15566$as_echo_n "checking for dlsym in -ldl... " >&6; }
15567if test "${ac_cv_lib_dl_dlsym+set}" = set; then :
15568  $as_echo_n "(cached) " >&6
15569else
15570  ac_check_lib_save_LIBS=$LIBS
15571LIBS="-ldl  $LIBS"
15572cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15573/* end confdefs.h.  */
15574
15575/* Override any GCC internal prototype to avoid an error.
15576   Use char because int might match the return type of a GCC
15577   builtin and then its argument prototype would still apply.  */
15578#ifdef __cplusplus
15579extern "C"
15580#endif
15581char dlsym ();
15582int
15583main ()
15584{
15585return dlsym ();
15586  ;
15587  return 0;
15588}
15589_ACEOF
15590if ac_fn_c_try_link "$LINENO"; then :
15591  ac_cv_lib_dl_dlsym=yes
15592else
15593  ac_cv_lib_dl_dlsym=no
15594fi
15595rm -f core conftest.err conftest.$ac_objext \
15596    conftest$ac_exeext conftest.$ac_ext
15597LIBS=$ac_check_lib_save_LIBS
15598fi
15599{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlsym" >&5
15600$as_echo "$ac_cv_lib_dl_dlsym" >&6; }
15601if test "x$ac_cv_lib_dl_dlsym" = x""yes; then :
15602  link_sanitizer_common="-ldl $link_sanitizer_common"
15603fi
15604
15605
15606# Set up the set of additional libraries that we need to link against for libasan.
15607link_libasan=$link_sanitizer_common
15608
15609
15610# Set up the set of additional libraries that we need to link against for libtsan.
15611link_libtsan=$link_sanitizer_common
15612
15613
15614# Set up the set of additional libraries that we need to link against for libubsan.
15615link_libubsan=$link_sanitizer_common
15616
15617
15618# Set up the set of additional libraries that we need to link against for liblsan.
15619link_liblsan=$link_sanitizer_common
15620
15621
15622
15623# At least for glibc, clock_gettime is in librt.  But don't pull that
15624# in if it still doesn't give us the function we want.  This
15625# test is copied from libgomp.
15626{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_gettime in -lrt" >&5
15627$as_echo_n "checking for clock_gettime in -lrt... " >&6; }
15628if test "${ac_cv_lib_rt_clock_gettime+set}" = set; then :
15629  $as_echo_n "(cached) " >&6
15630else
15631  ac_check_lib_save_LIBS=$LIBS
15632LIBS="-lrt  $LIBS"
15633cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15634/* end confdefs.h.  */
15635
15636/* Override any GCC internal prototype to avoid an error.
15637   Use char because int might match the return type of a GCC
15638   builtin and then its argument prototype would still apply.  */
15639#ifdef __cplusplus
15640extern "C"
15641#endif
15642char clock_gettime ();
15643int
15644main ()
15645{
15646return clock_gettime ();
15647  ;
15648  return 0;
15649}
15650_ACEOF
15651if ac_fn_c_try_link "$LINENO"; then :
15652  ac_cv_lib_rt_clock_gettime=yes
15653else
15654  ac_cv_lib_rt_clock_gettime=no
15655fi
15656rm -f core conftest.err conftest.$ac_objext \
15657    conftest$ac_exeext conftest.$ac_ext
15658LIBS=$ac_check_lib_save_LIBS
15659fi
15660{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_clock_gettime" >&5
15661$as_echo "$ac_cv_lib_rt_clock_gettime" >&6; }
15662if test "x$ac_cv_lib_rt_clock_gettime" = x""yes; then :
15663  link_libasan="-lrt $link_libasan"
15664link_libtsan="-lrt $link_libtsan"
15665# Other sanitizers do not override clock_* API
15666
15667fi
15668
15669
15670case "$host" in
15671  *-*-darwin*) MAC_INTERPOSE=true ; enable_static=no ;;
15672  *) MAC_INTERPOSE=false ;;
15673esac
15674 if $MAC_INTERPOSE; then
15675  USING_MAC_INTERPOSE_TRUE=
15676  USING_MAC_INTERPOSE_FALSE='#'
15677else
15678  USING_MAC_INTERPOSE_TRUE='#'
15679  USING_MAC_INTERPOSE_FALSE=
15680fi
15681
15682
15683backtrace_supported=yes
15684
15685{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for necessary platform features" >&5
15686$as_echo_n "checking for necessary platform features... " >&6; }
15687case "$target" in
15688  *-*-linux*)
15689    # Some old Linux distributions miss required syscalls.
15690    sanitizer_supported=no
15691    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15692/* end confdefs.h.  */
15693#include <sys/syscall.h>
15694int
15695main ()
15696{
15697
15698      syscall (__NR_gettid);
15699      syscall (__NR_futex);
15700      syscall (__NR_exit_group);
15701
15702  ;
15703  return 0;
15704}
15705_ACEOF
15706if ac_fn_c_try_compile "$LINENO"; then :
15707  sanitizer_supported=yes
15708fi
15709rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15710    ;;
15711  *)
15712    sanitizer_supported=yes
15713    ;;
15714esac
15715{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $sanitizer_supported" >&5
15716$as_echo "$sanitizer_supported" >&6; }
15717 if test "$sanitizer_supported" = yes; then
15718  SANITIZER_SUPPORTED_TRUE=
15719  SANITIZER_SUPPORTED_FALSE='#'
15720else
15721  SANITIZER_SUPPORTED_TRUE='#'
15722  SANITIZER_SUPPORTED_FALSE=
15723fi
15724
15725
15726# Test for __sync support.
15727{ $as_echo "$as_me:${as_lineno-$LINENO}: checking __sync extensions" >&5
15728$as_echo_n "checking __sync extensions... " >&6; }
15729if test "${libsanitizer_cv_sys_sync+set}" = set; then :
15730  $as_echo_n "(cached) " >&6
15731else
15732  if test -n "${with_target_subdir}"; then
15733   libsanitizer_cv_sys_sync=yes
15734 else
15735   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15736/* end confdefs.h.  */
15737int i;
15738int
15739main ()
15740{
15741__sync_bool_compare_and_swap (&i, i, i);
15742                       __sync_lock_test_and_set (&i, 1);
15743                       __sync_lock_release (&i);
15744  ;
15745  return 0;
15746}
15747_ACEOF
15748if ac_fn_c_try_link "$LINENO"; then :
15749  libsanitizer_cv_sys_sync=yes
15750else
15751  libsanitizer_cv_sys_sync=no
15752fi
15753rm -f core conftest.err conftest.$ac_objext \
15754    conftest$ac_exeext conftest.$ac_ext
15755 fi
15756fi
15757{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libsanitizer_cv_sys_sync" >&5
15758$as_echo "$libsanitizer_cv_sys_sync" >&6; }
15759if test "$libsanitizer_cv_sys_sync" = "yes"; then
15760
15761$as_echo "#define HAVE_SYNC_FUNCTIONS 1" >>confdefs.h
15762
15763fi
15764
15765# Test for __atomic support.
15766{ $as_echo "$as_me:${as_lineno-$LINENO}: checking __atomic extensions" >&5
15767$as_echo_n "checking __atomic extensions... " >&6; }
15768if test "${libsanitizer_cv_sys_atomic+set}" = set; then :
15769  $as_echo_n "(cached) " >&6
15770else
15771  if test -n "${with_target_subdir}"; then
15772   libsanitizer_cv_sys_atomic=yes
15773 else
15774   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15775/* end confdefs.h.  */
15776int i;
15777int
15778main ()
15779{
15780__atomic_load_n (&i, __ATOMIC_ACQUIRE);
15781		       __atomic_store_n (&i, 1, __ATOMIC_RELEASE);
15782  ;
15783  return 0;
15784}
15785_ACEOF
15786if ac_fn_c_try_link "$LINENO"; then :
15787  libsanitizer_cv_sys_atomic=yes
15788else
15789  libsanitizer_cv_sys_atomic=no
15790fi
15791rm -f core conftest.err conftest.$ac_objext \
15792    conftest$ac_exeext conftest.$ac_ext
15793 fi
15794fi
15795{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libsanitizer_cv_sys_atomic" >&5
15796$as_echo "$libsanitizer_cv_sys_atomic" >&6; }
15797if test "$libsanitizer_cv_sys_atomic" = "yes"; then
15798
15799$as_echo "#define HAVE_ATOMIC_FUNCTIONS 1" >>confdefs.h
15800
15801fi
15802
15803# The library needs to be able to read the executable itself.  Compile
15804# a file to determine the executable format.  The awk script
15805# filetype.awk prints out the file type.
15806{ $as_echo "$as_me:${as_lineno-$LINENO}: checking output filetype" >&5
15807$as_echo_n "checking output filetype... " >&6; }
15808if test "${libsanitizer_cv_sys_filetype+set}" = set; then :
15809  $as_echo_n "(cached) " >&6
15810else
15811  filetype=
15812cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15813/* end confdefs.h.  */
15814int i;
15815int
15816main ()
15817{
15818int j;
15819  ;
15820  return 0;
15821}
15822_ACEOF
15823if ac_fn_c_try_compile "$LINENO"; then :
15824  filetype=`${AWK} -f $srcdir/../libbacktrace/filetype.awk conftest.$ac_objext`
15825else
15826  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
15827$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
15828as_fn_error "compiler failed
15829See \`config.log' for more details." "$LINENO" 5; }
15830fi
15831rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15832libsanitizer_cv_sys_filetype=$filetype
15833fi
15834{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libsanitizer_cv_sys_filetype" >&5
15835$as_echo "$libsanitizer_cv_sys_filetype" >&6; }
15836
15837# Match the file type to decide what files to compile.
15838FORMAT_FILE=
15839case "$libsanitizer_cv_sys_filetype" in
15840elf*) FORMAT_FILE="elf.lo" ;;
15841*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: could not determine output file type" >&5
15842$as_echo "$as_me: WARNING: could not determine output file type" >&2;}
15843   FORMAT_FILE="unknown.lo"
15844   backtrace_supported=no
15845   ;;
15846esac
15847
15848
15849# ELF defines.
15850elfsize=
15851case "$libsanitizer_cv_sys_filetype" in
15852elf32) elfsize=32 ;;
15853elf64) elfsize=64 ;;
15854esac
15855
15856cat >>confdefs.h <<_ACEOF
15857#define BACKTRACE_ELF_SIZE $elfsize
15858_ACEOF
15859
15860
15861BACKTRACE_SUPPORTED=0
15862if test "$backtrace_supported" = "yes"; then
15863  BACKTRACE_SUPPORTED=1
15864fi
15865
15866
15867
15868
15869inttype_headers=`echo inttypes.h sys/inttypes.h  | sed -e 's/,/ /g'`
15870
15871acx_cv_header_stdint=stddef.h
15872acx_cv_header_stdint_kind="(already complete)"
15873for i in stdint.h $inttype_headers; do
15874  unset ac_cv_type_uintptr_t
15875  unset ac_cv_type_uintmax_t
15876  unset ac_cv_type_int_least32_t
15877  unset ac_cv_type_int_fast32_t
15878  unset ac_cv_type_uint64_t
15879  $as_echo_n "looking for a compliant stdint.h in $i, " >&6
15880  ac_fn_c_check_type "$LINENO" "uintmax_t" "ac_cv_type_uintmax_t" "#include <sys/types.h>
15881#include <$i>
15882"
15883if test "x$ac_cv_type_uintmax_t" = x""yes; then :
15884  acx_cv_header_stdint=$i
15885else
15886  continue
15887fi
15888
15889  ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "#include <sys/types.h>
15890#include <$i>
15891"
15892if test "x$ac_cv_type_uintptr_t" = x""yes; then :
15893
15894else
15895  acx_cv_header_stdint_kind="(mostly complete)"
15896fi
15897
15898  ac_fn_c_check_type "$LINENO" "int_least32_t" "ac_cv_type_int_least32_t" "#include <sys/types.h>
15899#include <$i>
15900"
15901if test "x$ac_cv_type_int_least32_t" = x""yes; then :
15902
15903else
15904  acx_cv_header_stdint_kind="(mostly complete)"
15905fi
15906
15907  ac_fn_c_check_type "$LINENO" "int_fast32_t" "ac_cv_type_int_fast32_t" "#include <sys/types.h>
15908#include <$i>
15909"
15910if test "x$ac_cv_type_int_fast32_t" = x""yes; then :
15911
15912else
15913  acx_cv_header_stdint_kind="(mostly complete)"
15914fi
15915
15916  ac_fn_c_check_type "$LINENO" "uint64_t" "ac_cv_type_uint64_t" "#include <sys/types.h>
15917#include <$i>
15918"
15919if test "x$ac_cv_type_uint64_t" = x""yes; then :
15920
15921else
15922  acx_cv_header_stdint_kind="(lacks uint64_t)"
15923fi
15924
15925  break
15926done
15927if test "$acx_cv_header_stdint" = stddef.h; then
15928  acx_cv_header_stdint_kind="(lacks uintmax_t)"
15929  for i in stdint.h $inttype_headers; do
15930    unset ac_cv_type_uintptr_t
15931    unset ac_cv_type_uint32_t
15932    unset ac_cv_type_uint64_t
15933    $as_echo_n "looking for an incomplete stdint.h in $i, " >&6
15934    ac_fn_c_check_type "$LINENO" "uint32_t" "ac_cv_type_uint32_t" "#include <sys/types.h>
15935#include <$i>
15936"
15937if test "x$ac_cv_type_uint32_t" = x""yes; then :
15938  acx_cv_header_stdint=$i
15939else
15940  continue
15941fi
15942
15943    ac_fn_c_check_type "$LINENO" "uint64_t" "ac_cv_type_uint64_t" "#include <sys/types.h>
15944#include <$i>
15945"
15946if test "x$ac_cv_type_uint64_t" = x""yes; then :
15947
15948fi
15949
15950    ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "#include <sys/types.h>
15951#include <$i>
15952"
15953if test "x$ac_cv_type_uintptr_t" = x""yes; then :
15954
15955fi
15956
15957    break
15958  done
15959fi
15960if test "$acx_cv_header_stdint" = stddef.h; then
15961  acx_cv_header_stdint_kind="(u_intXX_t style)"
15962  for i in sys/types.h $inttype_headers; do
15963    unset ac_cv_type_u_int32_t
15964    unset ac_cv_type_u_int64_t
15965    $as_echo_n "looking for u_intXX_t types in $i, " >&6
15966    ac_fn_c_check_type "$LINENO" "u_int32_t" "ac_cv_type_u_int32_t" "#include <sys/types.h>
15967#include <$i>
15968"
15969if test "x$ac_cv_type_u_int32_t" = x""yes; then :
15970  acx_cv_header_stdint=$i
15971else
15972  continue
15973fi
15974
15975    ac_fn_c_check_type "$LINENO" "u_int64_t" "ac_cv_type_u_int64_t" "#include <sys/types.h>
15976#include <$i>
15977"
15978if test "x$ac_cv_type_u_int64_t" = x""yes; then :
15979
15980fi
15981
15982    break
15983  done
15984fi
15985if test "$acx_cv_header_stdint" = stddef.h; then
15986  acx_cv_header_stdint_kind="(using manual detection)"
15987fi
15988
15989test -z "$ac_cv_type_uintptr_t" && ac_cv_type_uintptr_t=no
15990test -z "$ac_cv_type_uint64_t" && ac_cv_type_uint64_t=no
15991test -z "$ac_cv_type_u_int64_t" && ac_cv_type_u_int64_t=no
15992test -z "$ac_cv_type_int_least32_t" && ac_cv_type_int_least32_t=no
15993test -z "$ac_cv_type_int_fast32_t" && ac_cv_type_int_fast32_t=no
15994
15995# ----------------- Summarize what we found so far
15996
15997{ $as_echo "$as_me:${as_lineno-$LINENO}: checking what to include in gstdint.h" >&5
15998$as_echo_n "checking what to include in gstdint.h... " >&6; }
15999
16000case `$as_basename -- gstdint.h ||
16001$as_expr X/gstdint.h : '.*/\([^/][^/]*\)/*$' \| \
16002	 Xgstdint.h : 'X\(//\)$' \| \
16003	 Xgstdint.h : 'X\(/\)' \| . 2>/dev/null ||
16004$as_echo X/gstdint.h |
16005    sed '/^.*\/\([^/][^/]*\)\/*$/{
16006	    s//\1/
16007	    q
16008	  }
16009	  /^X\/\(\/\/\)$/{
16010	    s//\1/
16011	    q
16012	  }
16013	  /^X\/\(\/\).*/{
16014	    s//\1/
16015	    q
16016	  }
16017	  s/.*/./; q'` in
16018  stdint.h) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: are you sure you want it there?" >&5
16019$as_echo "$as_me: WARNING: are you sure you want it there?" >&2;} ;;
16020  inttypes.h) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: are you sure you want it there?" >&5
16021$as_echo "$as_me: WARNING: are you sure you want it there?" >&2;} ;;
16022  *) ;;
16023esac
16024
16025{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_header_stdint $acx_cv_header_stdint_kind" >&5
16026$as_echo "$acx_cv_header_stdint $acx_cv_header_stdint_kind" >&6; }
16027
16028# ----------------- done included file, check C basic types --------
16029
16030# Lacking an uintptr_t?  Test size of void *
16031case "$acx_cv_header_stdint:$ac_cv_type_uintptr_t" in
16032  stddef.h:* | *:no) # The cast to long int works around a bug in the HP C Compiler
16033# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
16034# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
16035# This bug is HP SR number 8606223364.
16036{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5
16037$as_echo_n "checking size of void *... " >&6; }
16038if test "${ac_cv_sizeof_void_p+set}" = set; then :
16039  $as_echo_n "(cached) " >&6
16040else
16041  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p"        "$ac_includes_default"; then :
16042
16043else
16044  if test "$ac_cv_type_void_p" = yes; then
16045     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16046$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16047{ as_fn_set_status 77
16048as_fn_error "cannot compute sizeof (void *)
16049See \`config.log' for more details." "$LINENO" 5; }; }
16050   else
16051     ac_cv_sizeof_void_p=0
16052   fi
16053fi
16054
16055fi
16056{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5
16057$as_echo "$ac_cv_sizeof_void_p" >&6; }
16058
16059
16060
16061cat >>confdefs.h <<_ACEOF
16062#define SIZEOF_VOID_P $ac_cv_sizeof_void_p
16063_ACEOF
16064
16065 ;;
16066esac
16067
16068# Lacking an uint64_t?  Test size of long
16069case "$acx_cv_header_stdint:$ac_cv_type_uint64_t:$ac_cv_type_u_int64_t" in
16070  stddef.h:*:* | *:no:no) # The cast to long int works around a bug in the HP C Compiler
16071# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
16072# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
16073# This bug is HP SR number 8606223364.
16074{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
16075$as_echo_n "checking size of long... " >&6; }
16076if test "${ac_cv_sizeof_long+set}" = set; then :
16077  $as_echo_n "(cached) " >&6
16078else
16079  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long"        "$ac_includes_default"; then :
16080
16081else
16082  if test "$ac_cv_type_long" = yes; then
16083     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16084$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16085{ as_fn_set_status 77
16086as_fn_error "cannot compute sizeof (long)
16087See \`config.log' for more details." "$LINENO" 5; }; }
16088   else
16089     ac_cv_sizeof_long=0
16090   fi
16091fi
16092
16093fi
16094{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
16095$as_echo "$ac_cv_sizeof_long" >&6; }
16096
16097
16098
16099cat >>confdefs.h <<_ACEOF
16100#define SIZEOF_LONG $ac_cv_sizeof_long
16101_ACEOF
16102
16103 ;;
16104esac
16105
16106if test $acx_cv_header_stdint = stddef.h; then
16107  # Lacking a good header?  Test size of everything and deduce all types.
16108  # The cast to long int works around a bug in the HP C Compiler
16109# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
16110# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
16111# This bug is HP SR number 8606223364.
16112{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
16113$as_echo_n "checking size of int... " >&6; }
16114if test "${ac_cv_sizeof_int+set}" = set; then :
16115  $as_echo_n "(cached) " >&6
16116else
16117  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int"        "$ac_includes_default"; then :
16118
16119else
16120  if test "$ac_cv_type_int" = yes; then
16121     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16122$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16123{ as_fn_set_status 77
16124as_fn_error "cannot compute sizeof (int)
16125See \`config.log' for more details." "$LINENO" 5; }; }
16126   else
16127     ac_cv_sizeof_int=0
16128   fi
16129fi
16130
16131fi
16132{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
16133$as_echo "$ac_cv_sizeof_int" >&6; }
16134
16135
16136
16137cat >>confdefs.h <<_ACEOF
16138#define SIZEOF_INT $ac_cv_sizeof_int
16139_ACEOF
16140
16141
16142  # The cast to long int works around a bug in the HP C Compiler
16143# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
16144# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
16145# This bug is HP SR number 8606223364.
16146{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
16147$as_echo_n "checking size of short... " >&6; }
16148if test "${ac_cv_sizeof_short+set}" = set; then :
16149  $as_echo_n "(cached) " >&6
16150else
16151  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short"        "$ac_includes_default"; then :
16152
16153else
16154  if test "$ac_cv_type_short" = yes; then
16155     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16156$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16157{ as_fn_set_status 77
16158as_fn_error "cannot compute sizeof (short)
16159See \`config.log' for more details." "$LINENO" 5; }; }
16160   else
16161     ac_cv_sizeof_short=0
16162   fi
16163fi
16164
16165fi
16166{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
16167$as_echo "$ac_cv_sizeof_short" >&6; }
16168
16169
16170
16171cat >>confdefs.h <<_ACEOF
16172#define SIZEOF_SHORT $ac_cv_sizeof_short
16173_ACEOF
16174
16175
16176  # The cast to long int works around a bug in the HP C Compiler
16177# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
16178# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
16179# This bug is HP SR number 8606223364.
16180{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of char" >&5
16181$as_echo_n "checking size of char... " >&6; }
16182if test "${ac_cv_sizeof_char+set}" = set; then :
16183  $as_echo_n "(cached) " >&6
16184else
16185  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (char))" "ac_cv_sizeof_char"        "$ac_includes_default"; then :
16186
16187else
16188  if test "$ac_cv_type_char" = yes; then
16189     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16190$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16191{ as_fn_set_status 77
16192as_fn_error "cannot compute sizeof (char)
16193See \`config.log' for more details." "$LINENO" 5; }; }
16194   else
16195     ac_cv_sizeof_char=0
16196   fi
16197fi
16198
16199fi
16200{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_char" >&5
16201$as_echo "$ac_cv_sizeof_char" >&6; }
16202
16203
16204
16205cat >>confdefs.h <<_ACEOF
16206#define SIZEOF_CHAR $ac_cv_sizeof_char
16207_ACEOF
16208
16209
16210
16211  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type equivalent to int8_t" >&5
16212$as_echo_n "checking for type equivalent to int8_t... " >&6; }
16213  case "$ac_cv_sizeof_char" in
16214    1) acx_cv_type_int8_t=char ;;
16215    *) as_fn_error "no 8-bit type, please report a bug" "$LINENO" 5
16216  esac
16217  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_type_int8_t" >&5
16218$as_echo "$acx_cv_type_int8_t" >&6; }
16219
16220  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type equivalent to int16_t" >&5
16221$as_echo_n "checking for type equivalent to int16_t... " >&6; }
16222  case "$ac_cv_sizeof_int:$ac_cv_sizeof_short" in
16223    2:*) acx_cv_type_int16_t=int ;;
16224    *:2) acx_cv_type_int16_t=short ;;
16225    *) as_fn_error "no 16-bit type, please report a bug" "$LINENO" 5
16226  esac
16227  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_type_int16_t" >&5
16228$as_echo "$acx_cv_type_int16_t" >&6; }
16229
16230  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type equivalent to int32_t" >&5
16231$as_echo_n "checking for type equivalent to int32_t... " >&6; }
16232  case "$ac_cv_sizeof_int:$ac_cv_sizeof_long" in
16233    4:*) acx_cv_type_int32_t=int ;;
16234    *:4) acx_cv_type_int32_t=long ;;
16235    *) as_fn_error "no 32-bit type, please report a bug" "$LINENO" 5
16236  esac
16237  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_type_int32_t" >&5
16238$as_echo "$acx_cv_type_int32_t" >&6; }
16239fi
16240
16241# These tests are here to make the output prettier
16242
16243if test "$ac_cv_type_uint64_t" != yes && test "$ac_cv_type_u_int64_t" != yes; then
16244  case "$ac_cv_sizeof_long" in
16245    8) acx_cv_type_int64_t=long ;;
16246  esac
16247  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type equivalent to int64_t" >&5
16248$as_echo_n "checking for type equivalent to int64_t... " >&6; }
16249  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${acx_cv_type_int64_t-'using preprocessor symbols'}" >&5
16250$as_echo "${acx_cv_type_int64_t-'using preprocessor symbols'}" >&6; }
16251fi
16252
16253# Now we can use the above types
16254
16255if test "$ac_cv_type_uintptr_t" != yes; then
16256  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type equivalent to intptr_t" >&5
16257$as_echo_n "checking for type equivalent to intptr_t... " >&6; }
16258  case $ac_cv_sizeof_void_p in
16259    2) acx_cv_type_intptr_t=int16_t ;;
16260    4) acx_cv_type_intptr_t=int32_t ;;
16261    8) acx_cv_type_intptr_t=int64_t ;;
16262    *) as_fn_error "no equivalent for intptr_t, please report a bug" "$LINENO" 5
16263  esac
16264  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_type_intptr_t" >&5
16265$as_echo "$acx_cv_type_intptr_t" >&6; }
16266fi
16267
16268# ----------------- done all checks, emit header -------------
16269ac_config_commands="$ac_config_commands gstdint.h"
16270
16271
16272
16273
16274for ac_header in sys/mman.h alloca.h
16275do :
16276  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
16277ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
16278eval as_val=\$$as_ac_Header
16279   if test "x$as_val" = x""yes; then :
16280  cat >>confdefs.h <<_ACEOF
16281#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
16282_ACEOF
16283
16284fi
16285
16286done
16287
16288if test "$ac_cv_header_sys_mman_h" = "no"; then
16289  have_mmap=no
16290else
16291  if test -n "${with_target_subdir}"; then
16292    # When built as a GCC target library, we can't do a link test.  We
16293    # simply assume that if we have mman.h, we have mmap.
16294    have_mmap=yes
16295  else
16296    ac_fn_c_check_func "$LINENO" "mmap" "ac_cv_func_mmap"
16297if test "x$ac_cv_func_mmap" = x""yes; then :
16298  have_mmap=yes
16299else
16300  have_mmap=no
16301fi
16302
16303  fi
16304fi
16305if test "$have_mmap" = "no"; then
16306  VIEW_FILE=read.lo
16307  ALLOC_FILE=alloc.lo
16308else
16309  VIEW_FILE=mmapio.lo
16310  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16311/* end confdefs.h.  */
16312
16313#include <sys/mman.h>
16314#if !defined(MAP_ANONYMOUS) && !defined(MAP_ANON)
16315  #error no MAP_ANONYMOUS
16316#endif
16317
16318_ACEOF
16319if ac_fn_c_try_cpp "$LINENO"; then :
16320  ALLOC_FILE=mmap.lo
16321else
16322  ALLOC_FILE=alloc.lo
16323fi
16324rm -f conftest.err conftest.$ac_ext
16325fi
16326
16327
16328
16329BACKTRACE_USES_MALLOC=0
16330if test "$ALLOC_FILE" = "alloc.lo"; then
16331  BACKTRACE_USES_MALLOC=1
16332fi
16333
16334
16335# Don't care about thread support
16336BACKTRACE_SUPPORTS_THREADS=0
16337
16338
16339# Check for dl_iterate_phdr.
16340for ac_header in link.h
16341do :
16342  ac_fn_c_check_header_mongrel "$LINENO" "link.h" "ac_cv_header_link_h" "$ac_includes_default"
16343if test "x$ac_cv_header_link_h" = x""yes; then :
16344  cat >>confdefs.h <<_ACEOF
16345#define HAVE_LINK_H 1
16346_ACEOF
16347
16348fi
16349
16350done
16351
16352if test "$ac_cv_header_link_h" = "no"; then
16353  have_dl_iterate_phdr=no
16354else
16355  # When built as a GCC target library, we can't do a link test.
16356  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16357/* end confdefs.h.  */
16358#include <link.h>
16359
16360_ACEOF
16361if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16362  $EGREP "dl_iterate_phdr" >/dev/null 2>&1; then :
16363  have_dl_iterate_phdr=yes
16364else
16365  have_dl_iterate_phdr=no
16366fi
16367rm -f conftest*
16368
16369  case "${host}" in
16370  *-*-solaris2.10*)
16371    # Avoid dl_iterate_phdr on Solaris 10, where it is in the
16372    # header file but is only in -ldl.
16373    have_dl_iterate_phdr=no ;;
16374  esac
16375fi
16376if test "$have_dl_iterate_phdr" = "yes"; then
16377
16378$as_echo "#define HAVE_DL_ITERATE_PHDR 1" >>confdefs.h
16379
16380fi
16381
16382# Check for the fcntl function.
16383if test -n "${with_target_subdir}"; then
16384   case "${host}" in
16385   *-*-mingw*) have_fcntl=no ;;
16386   *) have_fcntl=yes ;;
16387   esac
16388else
16389  ac_fn_c_check_func "$LINENO" "fcntl" "ac_cv_func_fcntl"
16390if test "x$ac_cv_func_fcntl" = x""yes; then :
16391  have_fcntl=yes
16392else
16393  have_fcntl=no
16394fi
16395
16396fi
16397if test "$have_fcntl" = "yes"; then
16398
16399$as_echo "#define HAVE_FCNTL 1" >>confdefs.h
16400
16401fi
16402
16403ac_fn_c_check_decl "$LINENO" "strnlen" "ac_cv_have_decl_strnlen" "$ac_includes_default"
16404if test "x$ac_cv_have_decl_strnlen" = x""yes; then :
16405  ac_have_decl=1
16406else
16407  ac_have_decl=0
16408fi
16409
16410cat >>confdefs.h <<_ACEOF
16411#define HAVE_DECL_STRNLEN $ac_have_decl
16412_ACEOF
16413
16414
16415# Check for getexecname function.
16416if test -n "${with_target_subdir}"; then
16417   case "${host}" in
16418   *-*-solaris2*) have_getexecname=yes ;;
16419   *) have_getexecname=no ;;
16420   esac
16421else
16422  ac_fn_c_check_func "$LINENO" "getexecname" "ac_cv_func_getexecname"
16423if test "x$ac_cv_func_getexecname" = x""yes; then :
16424  have_getexecname=yes
16425else
16426  have_getexecname=no
16427fi
16428
16429fi
16430if test "$have_getexecname" = "yes"; then
16431
16432$as_echo "#define HAVE_GETEXECNAME 1" >>confdefs.h
16433
16434fi
16435
16436# Check for rpc/xdr.h
16437for ac_header in rpc/xdr.h
16438do :
16439  ac_fn_c_check_header_mongrel "$LINENO" "rpc/xdr.h" "ac_cv_header_rpc_xdr_h" "$ac_includes_default"
16440if test "x$ac_cv_header_rpc_xdr_h" = x""yes; then :
16441  cat >>confdefs.h <<_ACEOF
16442#define HAVE_RPC_XDR_H 1
16443_ACEOF
16444
16445fi
16446
16447done
16448
16449if test x"$ac_cv_header_rpc_xdr_h" = xyes; then
16450  rpc_defs="$rpc_defs -DHAVE_RPC_XDR_H=1"
16451else
16452  rpc_defs="$rpc_defs -DHAVE_RPC_XDR_H=0"
16453fi
16454
16455# Check for tirpc/rpc/xdr.h
16456for ac_header in tirpc/rpc/xdr.h
16457do :
16458  ac_fn_c_check_header_mongrel "$LINENO" "tirpc/rpc/xdr.h" "ac_cv_header_tirpc_rpc_xdr_h" "$ac_includes_default"
16459if test "x$ac_cv_header_tirpc_rpc_xdr_h" = x""yes; then :
16460  cat >>confdefs.h <<_ACEOF
16461#define HAVE_TIRPC_RPC_XDR_H 1
16462_ACEOF
16463
16464fi
16465
16466done
16467
16468if test x"$ac_cv_header_tirpc_rpc_xdr_h" = xyes; then
16469  rpc_defs="$rpc_defs -DHAVE_TIRPC_RPC_XDR_H=1"
16470else
16471  rpc_defs="$rpc_defs -DHAVE_TIRPC_RPC_XDR_H=0"
16472fi
16473
16474RPC_DEFS=$rpc_defs
16475
16476
16477{ $as_echo "$as_me:${as_lineno-$LINENO}: checking obstack params" >&5
16478$as_echo_n "checking obstack params... " >&6; }
16479if test "${libsanitizer_cv_sys_obstack+set}" = set; then :
16480  $as_echo_n "(cached) " >&6
16481else
16482  save_cppflags=$CPPFLAGS
16483CPPFLAGS="-I${srcdir}/../include -o conftest.iii $CPPFLAGS"
16484cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16485/* end confdefs.h.  */
16486
16487#include "obstack.h"
16488#ifdef _OBSTACK_SIZE_T
16489_OBSTACK_SIZE_T
16490#else
16491int
16492#endif
16493
16494_ACEOF
16495if ac_fn_c_try_cpp "$LINENO"; then :
16496  libsanitizer_cv_sys_obstack=`sed -e '/^#/d;/^[	 ]*$/d' conftest.iii | sed -e '$!d;s/size_t/SIZE_T/'`
16497else
16498  libsanitizer_cv_sys_obstack=int
16499fi
16500rm -f conftest.err conftest.$ac_ext
16501CPPFLAGS=$save_cppflags
16502rm -f conftest.iii
16503
16504fi
16505{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libsanitizer_cv_sys_obstack" >&5
16506$as_echo "$libsanitizer_cv_sys_obstack" >&6; }
16507OBSTACK_DEFS=-D_OBSTACK_SIZE_T=\"$libsanitizer_cv_sys_obstack\"
16508
16509
16510 if test "x${BACKTRACE_SUPPORTED}x${BACKTRACE_USES_MALLOC}" = "x1x0"; then
16511  LIBBACKTRACE_SUPPORTED_TRUE=
16512  LIBBACKTRACE_SUPPORTED_FALSE='#'
16513else
16514  LIBBACKTRACE_SUPPORTED_TRUE='#'
16515  LIBBACKTRACE_SUPPORTED_FALSE=
16516fi
16517
16518
16519
16520ac_config_files="$ac_config_files Makefile libsanitizer.spec libbacktrace/backtrace-supported.h"
16521
16522ac_config_headers="$ac_config_headers config.h"
16523
16524
16525ac_config_files="$ac_config_files interception/Makefile sanitizer_common/Makefile libbacktrace/Makefile lsan/Makefile asan/Makefile ubsan/Makefile"
16526
16527
16528if test "x$TSAN_SUPPORTED" = "xyes"; then
16529  ac_config_files="$ac_config_files tsan/Makefile"
16530
16531fi
16532
16533
16534
16535cat >confcache <<\_ACEOF
16536# This file is a shell script that caches the results of configure
16537# tests run on this system so they can be shared between configure
16538# scripts and configure runs, see configure's option --config-cache.
16539# It is not useful on other systems.  If it contains results you don't
16540# want to keep, you may remove or edit it.
16541#
16542# config.status only pays attention to the cache file if you give it
16543# the --recheck option to rerun configure.
16544#
16545# `ac_cv_env_foo' variables (set or unset) will be overridden when
16546# loading this file, other *unset* `ac_cv_foo' will be assigned the
16547# following values.
16548
16549_ACEOF
16550
16551# The following way of writing the cache mishandles newlines in values,
16552# but we know of no workaround that is simple, portable, and efficient.
16553# So, we kill variables containing newlines.
16554# Ultrix sh set writes to stderr and can't be redirected directly,
16555# and sets the high bit in the cache file unless we assign to the vars.
16556(
16557  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
16558    eval ac_val=\$$ac_var
16559    case $ac_val in #(
16560    *${as_nl}*)
16561      case $ac_var in #(
16562      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
16563$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
16564      esac
16565      case $ac_var in #(
16566      _ | IFS | as_nl) ;; #(
16567      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
16568      *) { eval $ac_var=; unset $ac_var;} ;;
16569      esac ;;
16570    esac
16571  done
16572
16573  (set) 2>&1 |
16574    case $as_nl`(ac_space=' '; set) 2>&1` in #(
16575    *${as_nl}ac_space=\ *)
16576      # `set' does not quote correctly, so add quotes: double-quote
16577      # substitution turns \\\\ into \\, and sed turns \\ into \.
16578      sed -n \
16579	"s/'/'\\\\''/g;
16580	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
16581      ;; #(
16582    *)
16583      # `set' quotes correctly as required by POSIX, so do not add quotes.
16584      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
16585      ;;
16586    esac |
16587    sort
16588) |
16589  sed '
16590     /^ac_cv_env_/b end
16591     t clear
16592     :clear
16593     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
16594     t end
16595     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
16596     :end' >>confcache
16597if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
16598  if test -w "$cache_file"; then
16599    test "x$cache_file" != "x/dev/null" &&
16600      { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
16601$as_echo "$as_me: updating cache $cache_file" >&6;}
16602    cat confcache >$cache_file
16603  else
16604    { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
16605$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
16606  fi
16607fi
16608rm -f confcache
16609
16610test "x$prefix" = xNONE && prefix=$ac_default_prefix
16611# Let make expand exec_prefix.
16612test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
16613
16614DEFS=-DHAVE_CONFIG_H
16615
16616ac_libobjs=
16617ac_ltlibobjs=
16618for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
16619  # 1. Remove the extension, and $U if already installed.
16620  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
16621  ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
16622  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
16623  #    will be set to the directory where LIBOBJS objects are built.
16624  as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
16625  as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
16626done
16627LIBOBJS=$ac_libobjs
16628
16629LTLIBOBJS=$ac_ltlibobjs
16630
16631
16632if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
16633  as_fn_error "conditional \"AMDEP\" was never defined.
16634Usually this means the macro was only invoked conditionally." "$LINENO" 5
16635fi
16636if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
16637  as_fn_error "conditional \"am__fastdepCC\" was never defined.
16638Usually this means the macro was only invoked conditionally." "$LINENO" 5
16639fi
16640 if test -n "$EXEEXT"; then
16641  am__EXEEXT_TRUE=
16642  am__EXEEXT_FALSE='#'
16643else
16644  am__EXEEXT_TRUE='#'
16645  am__EXEEXT_FALSE=
16646fi
16647
16648if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
16649  as_fn_error "conditional \"MAINTAINER_MODE\" was never defined.
16650Usually this means the macro was only invoked conditionally." "$LINENO" 5
16651fi
16652if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
16653  as_fn_error "conditional \"am__fastdepCXX\" was never defined.
16654Usually this means the macro was only invoked conditionally." "$LINENO" 5
16655fi
16656if test -z "${am__fastdepCCAS_TRUE}" && test -z "${am__fastdepCCAS_FALSE}"; then
16657  as_fn_error "conditional \"am__fastdepCCAS\" was never defined.
16658Usually this means the macro was only invoked conditionally." "$LINENO" 5
16659fi
16660if test -z "${TSAN_SUPPORTED_TRUE}" && test -z "${TSAN_SUPPORTED_FALSE}"; then
16661  as_fn_error "conditional \"TSAN_SUPPORTED\" was never defined.
16662Usually this means the macro was only invoked conditionally." "$LINENO" 5
16663fi
16664if test -z "${LSAN_SUPPORTED_TRUE}" && test -z "${LSAN_SUPPORTED_FALSE}"; then
16665  as_fn_error "conditional \"LSAN_SUPPORTED\" was never defined.
16666Usually this means the macro was only invoked conditionally." "$LINENO" 5
16667fi
16668if test -z "${USING_MAC_INTERPOSE_TRUE}" && test -z "${USING_MAC_INTERPOSE_FALSE}"; then
16669  as_fn_error "conditional \"USING_MAC_INTERPOSE\" was never defined.
16670Usually this means the macro was only invoked conditionally." "$LINENO" 5
16671fi
16672if test -z "${SANITIZER_SUPPORTED_TRUE}" && test -z "${SANITIZER_SUPPORTED_FALSE}"; then
16673  as_fn_error "conditional \"SANITIZER_SUPPORTED\" was never defined.
16674Usually this means the macro was only invoked conditionally." "$LINENO" 5
16675fi
16676if test -z "${LIBBACKTRACE_SUPPORTED_TRUE}" && test -z "${LIBBACKTRACE_SUPPORTED_FALSE}"; then
16677  as_fn_error "conditional \"LIBBACKTRACE_SUPPORTED\" was never defined.
16678Usually this means the macro was only invoked conditionally." "$LINENO" 5
16679fi
16680
16681: ${CONFIG_STATUS=./config.status}
16682ac_write_fail=0
16683ac_clean_files_save=$ac_clean_files
16684ac_clean_files="$ac_clean_files $CONFIG_STATUS"
16685{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
16686$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
16687as_write_fail=0
16688cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
16689#! $SHELL
16690# Generated by $as_me.
16691# Run this file to recreate the current configuration.
16692# Compiler output produced by configure, useful for debugging
16693# configure, is in config.log if it exists.
16694
16695debug=false
16696ac_cs_recheck=false
16697ac_cs_silent=false
16698
16699SHELL=\${CONFIG_SHELL-$SHELL}
16700export SHELL
16701_ASEOF
16702cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
16703## -------------------- ##
16704## M4sh Initialization. ##
16705## -------------------- ##
16706
16707# Be more Bourne compatible
16708DUALCASE=1; export DUALCASE # for MKS sh
16709if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
16710  emulate sh
16711  NULLCMD=:
16712  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
16713  # is contrary to our usage.  Disable this feature.
16714  alias -g '${1+"$@"}'='"$@"'
16715  setopt NO_GLOB_SUBST
16716else
16717  case `(set -o) 2>/dev/null` in #(
16718  *posix*) :
16719    set -o posix ;; #(
16720  *) :
16721     ;;
16722esac
16723fi
16724
16725
16726as_nl='
16727'
16728export as_nl
16729# Printing a long string crashes Solaris 7 /usr/bin/printf.
16730as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
16731as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
16732as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
16733# Prefer a ksh shell builtin over an external printf program on Solaris,
16734# but without wasting forks for bash or zsh.
16735if test -z "$BASH_VERSION$ZSH_VERSION" \
16736    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
16737  as_echo='print -r --'
16738  as_echo_n='print -rn --'
16739elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
16740  as_echo='printf %s\n'
16741  as_echo_n='printf %s'
16742else
16743  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
16744    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
16745    as_echo_n='/usr/ucb/echo -n'
16746  else
16747    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
16748    as_echo_n_body='eval
16749      arg=$1;
16750      case $arg in #(
16751      *"$as_nl"*)
16752	expr "X$arg" : "X\\(.*\\)$as_nl";
16753	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
16754      esac;
16755      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
16756    '
16757    export as_echo_n_body
16758    as_echo_n='sh -c $as_echo_n_body as_echo'
16759  fi
16760  export as_echo_body
16761  as_echo='sh -c $as_echo_body as_echo'
16762fi
16763
16764# The user is always right.
16765if test "${PATH_SEPARATOR+set}" != set; then
16766  PATH_SEPARATOR=:
16767  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
16768    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
16769      PATH_SEPARATOR=';'
16770  }
16771fi
16772
16773
16774# IFS
16775# We need space, tab and new line, in precisely that order.  Quoting is
16776# there to prevent editors from complaining about space-tab.
16777# (If _AS_PATH_WALK were called with IFS unset, it would disable word
16778# splitting by setting IFS to empty value.)
16779IFS=" ""	$as_nl"
16780
16781# Find who we are.  Look in the path if we contain no directory separator.
16782case $0 in #((
16783  *[\\/]* ) as_myself=$0 ;;
16784  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16785for as_dir in $PATH
16786do
16787  IFS=$as_save_IFS
16788  test -z "$as_dir" && as_dir=.
16789    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
16790  done
16791IFS=$as_save_IFS
16792
16793     ;;
16794esac
16795# We did not find ourselves, most probably we were run as `sh COMMAND'
16796# in which case we are not to be found in the path.
16797if test "x$as_myself" = x; then
16798  as_myself=$0
16799fi
16800if test ! -f "$as_myself"; then
16801  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
16802  exit 1
16803fi
16804
16805# Unset variables that we do not need and which cause bugs (e.g. in
16806# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
16807# suppresses any "Segmentation fault" message there.  '((' could
16808# trigger a bug in pdksh 5.2.14.
16809for as_var in BASH_ENV ENV MAIL MAILPATH
16810do eval test x\${$as_var+set} = xset \
16811  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
16812done
16813PS1='$ '
16814PS2='> '
16815PS4='+ '
16816
16817# NLS nuisances.
16818LC_ALL=C
16819export LC_ALL
16820LANGUAGE=C
16821export LANGUAGE
16822
16823# CDPATH.
16824(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
16825
16826
16827# as_fn_error ERROR [LINENO LOG_FD]
16828# ---------------------------------
16829# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
16830# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
16831# script with status $?, using 1 if that was 0.
16832as_fn_error ()
16833{
16834  as_status=$?; test $as_status -eq 0 && as_status=1
16835  if test "$3"; then
16836    as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
16837    $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
16838  fi
16839  $as_echo "$as_me: error: $1" >&2
16840  as_fn_exit $as_status
16841} # as_fn_error
16842
16843
16844# as_fn_set_status STATUS
16845# -----------------------
16846# Set $? to STATUS, without forking.
16847as_fn_set_status ()
16848{
16849  return $1
16850} # as_fn_set_status
16851
16852# as_fn_exit STATUS
16853# -----------------
16854# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
16855as_fn_exit ()
16856{
16857  set +e
16858  as_fn_set_status $1
16859  exit $1
16860} # as_fn_exit
16861
16862# as_fn_unset VAR
16863# ---------------
16864# Portably unset VAR.
16865as_fn_unset ()
16866{
16867  { eval $1=; unset $1;}
16868}
16869as_unset=as_fn_unset
16870# as_fn_append VAR VALUE
16871# ----------------------
16872# Append the text in VALUE to the end of the definition contained in VAR. Take
16873# advantage of any shell optimizations that allow amortized linear growth over
16874# repeated appends, instead of the typical quadratic growth present in naive
16875# implementations.
16876if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
16877  eval 'as_fn_append ()
16878  {
16879    eval $1+=\$2
16880  }'
16881else
16882  as_fn_append ()
16883  {
16884    eval $1=\$$1\$2
16885  }
16886fi # as_fn_append
16887
16888# as_fn_arith ARG...
16889# ------------------
16890# Perform arithmetic evaluation on the ARGs, and store the result in the
16891# global $as_val. Take advantage of shells that can avoid forks. The arguments
16892# must be portable across $(()) and expr.
16893if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
16894  eval 'as_fn_arith ()
16895  {
16896    as_val=$(( $* ))
16897  }'
16898else
16899  as_fn_arith ()
16900  {
16901    as_val=`expr "$@" || test $? -eq 1`
16902  }
16903fi # as_fn_arith
16904
16905
16906if expr a : '\(a\)' >/dev/null 2>&1 &&
16907   test "X`expr 00001 : '.*\(...\)'`" = X001; then
16908  as_expr=expr
16909else
16910  as_expr=false
16911fi
16912
16913if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
16914  as_basename=basename
16915else
16916  as_basename=false
16917fi
16918
16919if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
16920  as_dirname=dirname
16921else
16922  as_dirname=false
16923fi
16924
16925as_me=`$as_basename -- "$0" ||
16926$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
16927	 X"$0" : 'X\(//\)$' \| \
16928	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
16929$as_echo X/"$0" |
16930    sed '/^.*\/\([^/][^/]*\)\/*$/{
16931	    s//\1/
16932	    q
16933	  }
16934	  /^X\/\(\/\/\)$/{
16935	    s//\1/
16936	    q
16937	  }
16938	  /^X\/\(\/\).*/{
16939	    s//\1/
16940	    q
16941	  }
16942	  s/.*/./; q'`
16943
16944# Avoid depending upon Character Ranges.
16945as_cr_letters='abcdefghijklmnopqrstuvwxyz'
16946as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
16947as_cr_Letters=$as_cr_letters$as_cr_LETTERS
16948as_cr_digits='0123456789'
16949as_cr_alnum=$as_cr_Letters$as_cr_digits
16950
16951ECHO_C= ECHO_N= ECHO_T=
16952case `echo -n x` in #(((((
16953-n*)
16954  case `echo 'xy\c'` in
16955  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
16956  xy)  ECHO_C='\c';;
16957  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
16958       ECHO_T='	';;
16959  esac;;
16960*)
16961  ECHO_N='-n';;
16962esac
16963
16964rm -f conf$$ conf$$.exe conf$$.file
16965if test -d conf$$.dir; then
16966  rm -f conf$$.dir/conf$$.file
16967else
16968  rm -f conf$$.dir
16969  mkdir conf$$.dir 2>/dev/null
16970fi
16971if (echo >conf$$.file) 2>/dev/null; then
16972  if ln -s conf$$.file conf$$ 2>/dev/null; then
16973    as_ln_s='ln -s'
16974    # ... but there are two gotchas:
16975    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
16976    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
16977    # In both cases, we have to default to `cp -p'.
16978    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
16979      as_ln_s='cp -p'
16980  elif ln conf$$.file conf$$ 2>/dev/null; then
16981    as_ln_s=ln
16982  else
16983    as_ln_s='cp -p'
16984  fi
16985else
16986  as_ln_s='cp -p'
16987fi
16988rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
16989rmdir conf$$.dir 2>/dev/null
16990
16991
16992# as_fn_mkdir_p
16993# -------------
16994# Create "$as_dir" as a directory, including parents if necessary.
16995as_fn_mkdir_p ()
16996{
16997
16998  case $as_dir in #(
16999  -*) as_dir=./$as_dir;;
17000  esac
17001  test -d "$as_dir" || eval $as_mkdir_p || {
17002    as_dirs=
17003    while :; do
17004      case $as_dir in #(
17005      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
17006      *) as_qdir=$as_dir;;
17007      esac
17008      as_dirs="'$as_qdir' $as_dirs"
17009      as_dir=`$as_dirname -- "$as_dir" ||
17010$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17011	 X"$as_dir" : 'X\(//\)[^/]' \| \
17012	 X"$as_dir" : 'X\(//\)$' \| \
17013	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
17014$as_echo X"$as_dir" |
17015    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17016	    s//\1/
17017	    q
17018	  }
17019	  /^X\(\/\/\)[^/].*/{
17020	    s//\1/
17021	    q
17022	  }
17023	  /^X\(\/\/\)$/{
17024	    s//\1/
17025	    q
17026	  }
17027	  /^X\(\/\).*/{
17028	    s//\1/
17029	    q
17030	  }
17031	  s/.*/./; q'`
17032      test -d "$as_dir" && break
17033    done
17034    test -z "$as_dirs" || eval "mkdir $as_dirs"
17035  } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
17036
17037
17038} # as_fn_mkdir_p
17039if mkdir -p . 2>/dev/null; then
17040  as_mkdir_p='mkdir -p "$as_dir"'
17041else
17042  test -d ./-p && rmdir ./-p
17043  as_mkdir_p=false
17044fi
17045
17046if test -x / >/dev/null 2>&1; then
17047  as_test_x='test -x'
17048else
17049  if ls -dL / >/dev/null 2>&1; then
17050    as_ls_L_option=L
17051  else
17052    as_ls_L_option=
17053  fi
17054  as_test_x='
17055    eval sh -c '\''
17056      if test -d "$1"; then
17057	test -d "$1/.";
17058      else
17059	case $1 in #(
17060	-*)set "./$1";;
17061	esac;
17062	case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
17063	???[sx]*):;;*)false;;esac;fi
17064    '\'' sh
17065  '
17066fi
17067as_executable_p=$as_test_x
17068
17069# Sed expression to map a string onto a valid CPP name.
17070as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
17071
17072# Sed expression to map a string onto a valid variable name.
17073as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
17074
17075
17076exec 6>&1
17077## ----------------------------------- ##
17078## Main body of $CONFIG_STATUS script. ##
17079## ----------------------------------- ##
17080_ASEOF
17081test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
17082
17083cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17084# Save the log message, to keep $0 and so on meaningful, and to
17085# report actual input values of CONFIG_FILES etc. instead of their
17086# values after options handling.
17087ac_log="
17088This file was extended by package-unused $as_me version-unused, which was
17089generated by GNU Autoconf 2.64.  Invocation command line was
17090
17091  CONFIG_FILES    = $CONFIG_FILES
17092  CONFIG_HEADERS  = $CONFIG_HEADERS
17093  CONFIG_LINKS    = $CONFIG_LINKS
17094  CONFIG_COMMANDS = $CONFIG_COMMANDS
17095  $ $0 $@
17096
17097on `(hostname || uname -n) 2>/dev/null | sed 1q`
17098"
17099
17100_ACEOF
17101
17102case $ac_config_files in *"
17103"*) set x $ac_config_files; shift; ac_config_files=$*;;
17104esac
17105
17106case $ac_config_headers in *"
17107"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
17108esac
17109
17110
17111cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17112# Files that config.status was made for.
17113config_files="$ac_config_files"
17114config_headers="$ac_config_headers"
17115config_commands="$ac_config_commands"
17116
17117_ACEOF
17118
17119cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17120ac_cs_usage="\
17121\`$as_me' instantiates files and other configuration actions
17122from templates according to the current configuration.  Unless the files
17123and actions are specified as TAGs, all are instantiated by default.
17124
17125Usage: $0 [OPTION]... [TAG]...
17126
17127  -h, --help       print this help, then exit
17128  -V, --version    print version number and configuration settings, then exit
17129  -q, --quiet, --silent
17130                   do not print progress messages
17131  -d, --debug      don't remove temporary files
17132      --recheck    update $as_me by reconfiguring in the same conditions
17133      --file=FILE[:TEMPLATE]
17134                   instantiate the configuration file FILE
17135      --header=FILE[:TEMPLATE]
17136                   instantiate the configuration header FILE
17137
17138Configuration files:
17139$config_files
17140
17141Configuration headers:
17142$config_headers
17143
17144Configuration commands:
17145$config_commands
17146
17147Report bugs to <libsanitizer>."
17148
17149_ACEOF
17150cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17151ac_cs_version="\\
17152package-unused config.status version-unused
17153configured by $0, generated by GNU Autoconf 2.64,
17154  with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
17155
17156Copyright (C) 2009 Free Software Foundation, Inc.
17157This config.status script is free software; the Free Software Foundation
17158gives unlimited permission to copy, distribute and modify it."
17159
17160ac_pwd='$ac_pwd'
17161srcdir='$srcdir'
17162INSTALL='$INSTALL'
17163MKDIR_P='$MKDIR_P'
17164AWK='$AWK'
17165test -n "\$AWK" || AWK=awk
17166_ACEOF
17167
17168cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17169# The default lists apply if the user does not specify any file.
17170ac_need_defaults=:
17171while test $# != 0
17172do
17173  case $1 in
17174  --*=*)
17175    ac_option=`expr "X$1" : 'X\([^=]*\)='`
17176    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
17177    ac_shift=:
17178    ;;
17179  *)
17180    ac_option=$1
17181    ac_optarg=$2
17182    ac_shift=shift
17183    ;;
17184  esac
17185
17186  case $ac_option in
17187  # Handling of the options.
17188  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
17189    ac_cs_recheck=: ;;
17190  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
17191    $as_echo "$ac_cs_version"; exit ;;
17192  --debug | --debu | --deb | --de | --d | -d )
17193    debug=: ;;
17194  --file | --fil | --fi | --f )
17195    $ac_shift
17196    case $ac_optarg in
17197    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
17198    esac
17199    as_fn_append CONFIG_FILES " '$ac_optarg'"
17200    ac_need_defaults=false;;
17201  --header | --heade | --head | --hea )
17202    $ac_shift
17203    case $ac_optarg in
17204    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
17205    esac
17206    as_fn_append CONFIG_HEADERS " '$ac_optarg'"
17207    ac_need_defaults=false;;
17208  --he | --h)
17209    # Conflict between --help and --header
17210    as_fn_error "ambiguous option: \`$1'
17211Try \`$0 --help' for more information.";;
17212  --help | --hel | -h )
17213    $as_echo "$ac_cs_usage"; exit ;;
17214  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
17215  | -silent | --silent | --silen | --sile | --sil | --si | --s)
17216    ac_cs_silent=: ;;
17217
17218  # This is an error.
17219  -*) as_fn_error "unrecognized option: \`$1'
17220Try \`$0 --help' for more information." ;;
17221
17222  *) as_fn_append ac_config_targets " $1"
17223     ac_need_defaults=false ;;
17224
17225  esac
17226  shift
17227done
17228
17229ac_configure_extra_args=
17230
17231if $ac_cs_silent; then
17232  exec 6>/dev/null
17233  ac_configure_extra_args="$ac_configure_extra_args --silent"
17234fi
17235
17236_ACEOF
17237cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17238if \$ac_cs_recheck; then
17239  set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
17240  shift
17241  \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
17242  CONFIG_SHELL='$SHELL'
17243  export CONFIG_SHELL
17244  exec "\$@"
17245fi
17246
17247_ACEOF
17248cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17249exec 5>>config.log
17250{
17251  echo
17252  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
17253## Running $as_me. ##
17254_ASBOX
17255  $as_echo "$ac_log"
17256} >&5
17257
17258_ACEOF
17259cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17260#
17261# INIT-COMMANDS
17262#
17263
17264srcdir="$srcdir"
17265host="$host"
17266target="$target"
17267with_multisubdir="$with_multisubdir"
17268with_multisrctop="$with_multisrctop"
17269with_target_subdir="$with_target_subdir"
17270ac_configure_args="${multilib_arg} ${ac_configure_args}"
17271multi_basedir="$multi_basedir"
17272CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
17273CC="$CC"
17274CXX="$CXX"
17275GFORTRAN="$GFORTRAN"
17276GCJ="$GCJ"
17277AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
17278
17279
17280# The HP-UX ksh and POSIX shell print the target directory to stdout
17281# if CDPATH is set.
17282(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
17283
17284sed_quote_subst='$sed_quote_subst'
17285double_quote_subst='$double_quote_subst'
17286delay_variable_subst='$delay_variable_subst'
17287macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
17288macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
17289enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
17290enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
17291pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
17292enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
17293SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
17294ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
17295host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
17296host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
17297host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
17298build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
17299build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
17300build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
17301SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
17302Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
17303GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
17304EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
17305FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
17306LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
17307NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
17308LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
17309max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
17310ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
17311exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
17312lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
17313lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
17314lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
17315reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
17316reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
17317OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
17318deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
17319file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
17320AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
17321AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
17322STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
17323RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
17324old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
17325old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
17326old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
17327lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
17328CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
17329CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
17330compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
17331GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
17332lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
17333lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
17334lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
17335lt_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"`'
17336objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
17337MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
17338lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
17339lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
17340lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
17341lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
17342lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
17343need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
17344DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
17345NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
17346LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
17347OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
17348OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
17349libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
17350shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
17351extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
17352archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
17353enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
17354export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
17355whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
17356compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
17357old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
17358old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
17359archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
17360archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
17361module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
17362module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
17363with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
17364allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
17365no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
17366hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
17367hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
17368hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
17369hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
17370hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
17371hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
17372hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
17373hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
17374inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
17375link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
17376fix_srcfile_path='`$ECHO "$fix_srcfile_path" | $SED "$delay_single_quote_subst"`'
17377always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
17378export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
17379exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
17380include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
17381prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
17382file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
17383variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
17384need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
17385need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
17386version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
17387runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
17388shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
17389shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
17390libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
17391library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
17392soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
17393install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
17394postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
17395postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
17396finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
17397finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
17398hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
17399sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
17400sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
17401hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
17402enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
17403enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
17404enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
17405old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
17406striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
17407compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
17408predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
17409postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
17410predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
17411postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
17412compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
17413LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
17414reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
17415reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17416old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17417compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
17418GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
17419lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
17420lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
17421lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
17422lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
17423lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
17424archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
17425enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
17426export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
17427whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
17428compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
17429old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17430old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17431archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17432archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17433module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17434module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17435with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
17436allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
17437no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
17438hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
17439hardcode_libdir_flag_spec_ld_CXX='`$ECHO "$hardcode_libdir_flag_spec_ld_CXX" | $SED "$delay_single_quote_subst"`'
17440hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
17441hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
17442hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
17443hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
17444hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
17445hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
17446inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
17447link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
17448fix_srcfile_path_CXX='`$ECHO "$fix_srcfile_path_CXX" | $SED "$delay_single_quote_subst"`'
17449always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
17450export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17451exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
17452include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
17453prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17454file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
17455hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
17456compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
17457predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
17458postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
17459predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
17460postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
17461compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
17462
17463LTCC='$LTCC'
17464LTCFLAGS='$LTCFLAGS'
17465compiler='$compiler_DEFAULT'
17466
17467# A function that is used when there is no print builtin or printf.
17468func_fallback_echo ()
17469{
17470  eval 'cat <<_LTECHO_EOF
17471\$1
17472_LTECHO_EOF'
17473}
17474
17475# Quote evaled strings.
17476for var in SHELL \
17477ECHO \
17478SED \
17479GREP \
17480EGREP \
17481FGREP \
17482LD \
17483NM \
17484LN_S \
17485lt_SP2NL \
17486lt_NL2SP \
17487reload_flag \
17488OBJDUMP \
17489deplibs_check_method \
17490file_magic_cmd \
17491AR \
17492AR_FLAGS \
17493STRIP \
17494RANLIB \
17495CC \
17496CFLAGS \
17497compiler \
17498lt_cv_sys_global_symbol_pipe \
17499lt_cv_sys_global_symbol_to_cdecl \
17500lt_cv_sys_global_symbol_to_c_name_address \
17501lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
17502lt_prog_compiler_no_builtin_flag \
17503lt_prog_compiler_wl \
17504lt_prog_compiler_pic \
17505lt_prog_compiler_static \
17506lt_cv_prog_compiler_c_o \
17507need_locks \
17508DSYMUTIL \
17509NMEDIT \
17510LIPO \
17511OTOOL \
17512OTOOL64 \
17513shrext_cmds \
17514export_dynamic_flag_spec \
17515whole_archive_flag_spec \
17516compiler_needs_object \
17517with_gnu_ld \
17518allow_undefined_flag \
17519no_undefined_flag \
17520hardcode_libdir_flag_spec \
17521hardcode_libdir_flag_spec_ld \
17522hardcode_libdir_separator \
17523fix_srcfile_path \
17524exclude_expsyms \
17525include_expsyms \
17526file_list_spec \
17527variables_saved_for_relink \
17528libname_spec \
17529library_names_spec \
17530soname_spec \
17531install_override_mode \
17532finish_eval \
17533old_striplib \
17534striplib \
17535compiler_lib_search_dirs \
17536predep_objects \
17537postdep_objects \
17538predeps \
17539postdeps \
17540compiler_lib_search_path \
17541LD_CXX \
17542reload_flag_CXX \
17543compiler_CXX \
17544lt_prog_compiler_no_builtin_flag_CXX \
17545lt_prog_compiler_wl_CXX \
17546lt_prog_compiler_pic_CXX \
17547lt_prog_compiler_static_CXX \
17548lt_cv_prog_compiler_c_o_CXX \
17549export_dynamic_flag_spec_CXX \
17550whole_archive_flag_spec_CXX \
17551compiler_needs_object_CXX \
17552with_gnu_ld_CXX \
17553allow_undefined_flag_CXX \
17554no_undefined_flag_CXX \
17555hardcode_libdir_flag_spec_CXX \
17556hardcode_libdir_flag_spec_ld_CXX \
17557hardcode_libdir_separator_CXX \
17558fix_srcfile_path_CXX \
17559exclude_expsyms_CXX \
17560include_expsyms_CXX \
17561file_list_spec_CXX \
17562compiler_lib_search_dirs_CXX \
17563predep_objects_CXX \
17564postdep_objects_CXX \
17565predeps_CXX \
17566postdeps_CXX \
17567compiler_lib_search_path_CXX; do
17568    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
17569    *[\\\\\\\`\\"\\\$]*)
17570      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
17571      ;;
17572    *)
17573      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
17574      ;;
17575    esac
17576done
17577
17578# Double-quote double-evaled strings.
17579for var in reload_cmds \
17580old_postinstall_cmds \
17581old_postuninstall_cmds \
17582old_archive_cmds \
17583extract_expsyms_cmds \
17584old_archive_from_new_cmds \
17585old_archive_from_expsyms_cmds \
17586archive_cmds \
17587archive_expsym_cmds \
17588module_cmds \
17589module_expsym_cmds \
17590export_symbols_cmds \
17591prelink_cmds \
17592postinstall_cmds \
17593postuninstall_cmds \
17594finish_cmds \
17595sys_lib_search_path_spec \
17596sys_lib_dlsearch_path_spec \
17597reload_cmds_CXX \
17598old_archive_cmds_CXX \
17599old_archive_from_new_cmds_CXX \
17600old_archive_from_expsyms_cmds_CXX \
17601archive_cmds_CXX \
17602archive_expsym_cmds_CXX \
17603module_cmds_CXX \
17604module_expsym_cmds_CXX \
17605export_symbols_cmds_CXX \
17606prelink_cmds_CXX; do
17607    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
17608    *[\\\\\\\`\\"\\\$]*)
17609      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
17610      ;;
17611    *)
17612      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
17613      ;;
17614    esac
17615done
17616
17617ac_aux_dir='$ac_aux_dir'
17618xsi_shell='$xsi_shell'
17619lt_shell_append='$lt_shell_append'
17620
17621# See if we are running on zsh, and set the options which allow our
17622# commands through without removal of \ escapes INIT.
17623if test -n "\${ZSH_VERSION+set}" ; then
17624   setopt NO_GLOB_SUBST
17625fi
17626
17627
17628    PACKAGE='$PACKAGE'
17629    VERSION='$VERSION'
17630    TIMESTAMP='$TIMESTAMP'
17631    RM='$RM'
17632    ofile='$ofile'
17633
17634
17635
17636
17637
17638
17639GCC="$GCC"
17640CC="$CC"
17641acx_cv_header_stdint="$acx_cv_header_stdint"
17642acx_cv_type_int8_t="$acx_cv_type_int8_t"
17643acx_cv_type_int16_t="$acx_cv_type_int16_t"
17644acx_cv_type_int32_t="$acx_cv_type_int32_t"
17645acx_cv_type_int64_t="$acx_cv_type_int64_t"
17646acx_cv_type_intptr_t="$acx_cv_type_intptr_t"
17647ac_cv_type_uintmax_t="$ac_cv_type_uintmax_t"
17648ac_cv_type_uintptr_t="$ac_cv_type_uintptr_t"
17649ac_cv_type_uint64_t="$ac_cv_type_uint64_t"
17650ac_cv_type_u_int64_t="$ac_cv_type_u_int64_t"
17651ac_cv_type_u_int32_t="$ac_cv_type_u_int32_t"
17652ac_cv_type_int_least32_t="$ac_cv_type_int_least32_t"
17653ac_cv_type_int_fast32_t="$ac_cv_type_int_fast32_t"
17654ac_cv_sizeof_void_p="$ac_cv_sizeof_void_p"
17655
17656
17657_ACEOF
17658
17659cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17660
17661# Handling of arguments.
17662for ac_config_target in $ac_config_targets
17663do
17664  case $ac_config_target in
17665    "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
17666    "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
17667    "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
17668    "gstdint.h") CONFIG_COMMANDS="$CONFIG_COMMANDS gstdint.h" ;;
17669    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
17670    "libsanitizer.spec") CONFIG_FILES="$CONFIG_FILES libsanitizer.spec" ;;
17671    "libbacktrace/backtrace-supported.h") CONFIG_FILES="$CONFIG_FILES libbacktrace/backtrace-supported.h" ;;
17672    "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
17673    "interception/Makefile") CONFIG_FILES="$CONFIG_FILES interception/Makefile" ;;
17674    "sanitizer_common/Makefile") CONFIG_FILES="$CONFIG_FILES sanitizer_common/Makefile" ;;
17675    "libbacktrace/Makefile") CONFIG_FILES="$CONFIG_FILES libbacktrace/Makefile" ;;
17676    "lsan/Makefile") CONFIG_FILES="$CONFIG_FILES lsan/Makefile" ;;
17677    "asan/Makefile") CONFIG_FILES="$CONFIG_FILES asan/Makefile" ;;
17678    "ubsan/Makefile") CONFIG_FILES="$CONFIG_FILES ubsan/Makefile" ;;
17679    "tsan/Makefile") CONFIG_FILES="$CONFIG_FILES tsan/Makefile" ;;
17680
17681  *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
17682  esac
17683done
17684
17685
17686# If the user did not use the arguments to specify the items to instantiate,
17687# then the envvar interface is used.  Set only those that are not.
17688# We use the long form for the default assignment because of an extremely
17689# bizarre bug on SunOS 4.1.3.
17690if $ac_need_defaults; then
17691  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
17692  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
17693  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
17694fi
17695
17696# Have a temporary directory for convenience.  Make it in the build tree
17697# simply because there is no reason against having it here, and in addition,
17698# creating and moving files from /tmp can sometimes cause problems.
17699# Hook for its removal unless debugging.
17700# Note that there is a small window in which the directory will not be cleaned:
17701# after its creation but before its name has been assigned to `$tmp'.
17702$debug ||
17703{
17704  tmp=
17705  trap 'exit_status=$?
17706  { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
17707' 0
17708  trap 'as_fn_exit 1' 1 2 13 15
17709}
17710# Create a (secure) tmp directory for tmp files.
17711
17712{
17713  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
17714  test -n "$tmp" && test -d "$tmp"
17715}  ||
17716{
17717  tmp=./conf$$-$RANDOM
17718  (umask 077 && mkdir "$tmp")
17719} || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
17720
17721# Set up the scripts for CONFIG_FILES section.
17722# No need to generate them if there are no CONFIG_FILES.
17723# This happens for instance with `./config.status config.h'.
17724if test -n "$CONFIG_FILES"; then
17725
17726
17727ac_cr=`echo X | tr X '\015'`
17728# On cygwin, bash can eat \r inside `` if the user requested igncr.
17729# But we know of no other shell where ac_cr would be empty at this
17730# point, so we can use a bashism as a fallback.
17731if test "x$ac_cr" = x; then
17732  eval ac_cr=\$\'\\r\'
17733fi
17734ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
17735if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
17736  ac_cs_awk_cr='\r'
17737else
17738  ac_cs_awk_cr=$ac_cr
17739fi
17740
17741echo 'BEGIN {' >"$tmp/subs1.awk" &&
17742_ACEOF
17743
17744
17745{
17746  echo "cat >conf$$subs.awk <<_ACEOF" &&
17747  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
17748  echo "_ACEOF"
17749} >conf$$subs.sh ||
17750  as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
17751ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
17752ac_delim='%!_!# '
17753for ac_last_try in false false false false false :; do
17754  . ./conf$$subs.sh ||
17755    as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
17756
17757  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
17758  if test $ac_delim_n = $ac_delim_num; then
17759    break
17760  elif $ac_last_try; then
17761    as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
17762  else
17763    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
17764  fi
17765done
17766rm -f conf$$subs.sh
17767
17768cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17769cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
17770_ACEOF
17771sed -n '
17772h
17773s/^/S["/; s/!.*/"]=/
17774p
17775g
17776s/^[^!]*!//
17777:repl
17778t repl
17779s/'"$ac_delim"'$//
17780t delim
17781:nl
17782h
17783s/\(.\{148\}\).*/\1/
17784t more1
17785s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
17786p
17787n
17788b repl
17789:more1
17790s/["\\]/\\&/g; s/^/"/; s/$/"\\/
17791p
17792g
17793s/.\{148\}//
17794t nl
17795:delim
17796h
17797s/\(.\{148\}\).*/\1/
17798t more2
17799s/["\\]/\\&/g; s/^/"/; s/$/"/
17800p
17801b
17802:more2
17803s/["\\]/\\&/g; s/^/"/; s/$/"\\/
17804p
17805g
17806s/.\{148\}//
17807t delim
17808' <conf$$subs.awk | sed '
17809/^[^""]/{
17810  N
17811  s/\n//
17812}
17813' >>$CONFIG_STATUS || ac_write_fail=1
17814rm -f conf$$subs.awk
17815cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17816_ACAWK
17817cat >>"\$tmp/subs1.awk" <<_ACAWK &&
17818  for (key in S) S_is_set[key] = 1
17819  FS = ""
17820
17821}
17822{
17823  line = $ 0
17824  nfields = split(line, field, "@")
17825  substed = 0
17826  len = length(field[1])
17827  for (i = 2; i < nfields; i++) {
17828    key = field[i]
17829    keylen = length(key)
17830    if (S_is_set[key]) {
17831      value = S[key]
17832      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
17833      len += length(value) + length(field[++i])
17834      substed = 1
17835    } else
17836      len += 1 + keylen
17837  }
17838
17839  print line
17840}
17841
17842_ACAWK
17843_ACEOF
17844cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17845if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
17846  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
17847else
17848  cat
17849fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
17850  || as_fn_error "could not setup config files machinery" "$LINENO" 5
17851_ACEOF
17852
17853# VPATH may cause trouble with some makes, so we remove $(srcdir),
17854# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
17855# trailing colons and then remove the whole line if VPATH becomes empty
17856# (actually we leave an empty line to preserve line numbers).
17857if test "x$srcdir" = x.; then
17858  ac_vpsub='/^[	 ]*VPATH[	 ]*=/{
17859s/:*\$(srcdir):*/:/
17860s/:*\${srcdir}:*/:/
17861s/:*@srcdir@:*/:/
17862s/^\([^=]*=[	 ]*\):*/\1/
17863s/:*$//
17864s/^[^=]*=[	 ]*$//
17865}'
17866fi
17867
17868cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17869fi # test -n "$CONFIG_FILES"
17870
17871# Set up the scripts for CONFIG_HEADERS section.
17872# No need to generate them if there are no CONFIG_HEADERS.
17873# This happens for instance with `./config.status Makefile'.
17874if test -n "$CONFIG_HEADERS"; then
17875cat >"$tmp/defines.awk" <<\_ACAWK ||
17876BEGIN {
17877_ACEOF
17878
17879# Transform confdefs.h into an awk script `defines.awk', embedded as
17880# here-document in config.status, that substitutes the proper values into
17881# config.h.in to produce config.h.
17882
17883# Create a delimiter string that does not exist in confdefs.h, to ease
17884# handling of long lines.
17885ac_delim='%!_!# '
17886for ac_last_try in false false :; do
17887  ac_t=`sed -n "/$ac_delim/p" confdefs.h`
17888  if test -z "$ac_t"; then
17889    break
17890  elif $ac_last_try; then
17891    as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
17892  else
17893    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
17894  fi
17895done
17896
17897# For the awk script, D is an array of macro values keyed by name,
17898# likewise P contains macro parameters if any.  Preserve backslash
17899# newline sequences.
17900
17901ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
17902sed -n '
17903s/.\{148\}/&'"$ac_delim"'/g
17904t rset
17905:rset
17906s/^[	 ]*#[	 ]*define[	 ][	 ]*/ /
17907t def
17908d
17909:def
17910s/\\$//
17911t bsnl
17912s/["\\]/\\&/g
17913s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
17914D["\1"]=" \3"/p
17915s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2"/p
17916d
17917:bsnl
17918s/["\\]/\\&/g
17919s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
17920D["\1"]=" \3\\\\\\n"\\/p
17921t cont
17922s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
17923t cont
17924d
17925:cont
17926n
17927s/.\{148\}/&'"$ac_delim"'/g
17928t clear
17929:clear
17930s/\\$//
17931t bsnlc
17932s/["\\]/\\&/g; s/^/"/; s/$/"/p
17933d
17934:bsnlc
17935s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
17936b cont
17937' <confdefs.h | sed '
17938s/'"$ac_delim"'/"\\\
17939"/g' >>$CONFIG_STATUS || ac_write_fail=1
17940
17941cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17942  for (key in D) D_is_set[key] = 1
17943  FS = ""
17944}
17945/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
17946  line = \$ 0
17947  split(line, arg, " ")
17948  if (arg[1] == "#") {
17949    defundef = arg[2]
17950    mac1 = arg[3]
17951  } else {
17952    defundef = substr(arg[1], 2)
17953    mac1 = arg[2]
17954  }
17955  split(mac1, mac2, "(") #)
17956  macro = mac2[1]
17957  prefix = substr(line, 1, index(line, defundef) - 1)
17958  if (D_is_set[macro]) {
17959    # Preserve the white space surrounding the "#".
17960    print prefix "define", macro P[macro] D[macro]
17961    next
17962  } else {
17963    # Replace #undef with comments.  This is necessary, for example,
17964    # in the case of _POSIX_SOURCE, which is predefined and required
17965    # on some systems where configure will not decide to define it.
17966    if (defundef == "undef") {
17967      print "/*", prefix defundef, macro, "*/"
17968      next
17969    }
17970  }
17971}
17972{ print }
17973_ACAWK
17974_ACEOF
17975cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17976  as_fn_error "could not setup config headers machinery" "$LINENO" 5
17977fi # test -n "$CONFIG_HEADERS"
17978
17979
17980eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
17981shift
17982for ac_tag
17983do
17984  case $ac_tag in
17985  :[FHLC]) ac_mode=$ac_tag; continue;;
17986  esac
17987  case $ac_mode$ac_tag in
17988  :[FHL]*:*);;
17989  :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
17990  :[FH]-) ac_tag=-:-;;
17991  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
17992  esac
17993  ac_save_IFS=$IFS
17994  IFS=:
17995  set x $ac_tag
17996  IFS=$ac_save_IFS
17997  shift
17998  ac_file=$1
17999  shift
18000
18001  case $ac_mode in
18002  :L) ac_source=$1;;
18003  :[FH])
18004    ac_file_inputs=
18005    for ac_f
18006    do
18007      case $ac_f in
18008      -) ac_f="$tmp/stdin";;
18009      *) # Look for the file first in the build tree, then in the source tree
18010	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
18011	 # because $ac_f cannot contain `:'.
18012	 test -f "$ac_f" ||
18013	   case $ac_f in
18014	   [\\/$]*) false;;
18015	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
18016	   esac ||
18017	   as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
18018      esac
18019      case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
18020      as_fn_append ac_file_inputs " '$ac_f'"
18021    done
18022
18023    # Let's still pretend it is `configure' which instantiates (i.e., don't
18024    # use $as_me), people would be surprised to read:
18025    #    /* config.h.  Generated by config.status.  */
18026    configure_input='Generated from '`
18027	  $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
18028	`' by configure.'
18029    if test x"$ac_file" != x-; then
18030      configure_input="$ac_file.  $configure_input"
18031      { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
18032$as_echo "$as_me: creating $ac_file" >&6;}
18033    fi
18034    # Neutralize special characters interpreted by sed in replacement strings.
18035    case $configure_input in #(
18036    *\&* | *\|* | *\\* )
18037       ac_sed_conf_input=`$as_echo "$configure_input" |
18038       sed 's/[\\\\&|]/\\\\&/g'`;; #(
18039    *) ac_sed_conf_input=$configure_input;;
18040    esac
18041
18042    case $ac_tag in
18043    *:-:* | *:-) cat >"$tmp/stdin" \
18044      || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
18045    esac
18046    ;;
18047  esac
18048
18049  ac_dir=`$as_dirname -- "$ac_file" ||
18050$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18051	 X"$ac_file" : 'X\(//\)[^/]' \| \
18052	 X"$ac_file" : 'X\(//\)$' \| \
18053	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
18054$as_echo X"$ac_file" |
18055    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18056	    s//\1/
18057	    q
18058	  }
18059	  /^X\(\/\/\)[^/].*/{
18060	    s//\1/
18061	    q
18062	  }
18063	  /^X\(\/\/\)$/{
18064	    s//\1/
18065	    q
18066	  }
18067	  /^X\(\/\).*/{
18068	    s//\1/
18069	    q
18070	  }
18071	  s/.*/./; q'`
18072  as_dir="$ac_dir"; as_fn_mkdir_p
18073  ac_builddir=.
18074
18075case "$ac_dir" in
18076.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
18077*)
18078  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
18079  # A ".." for each directory in $ac_dir_suffix.
18080  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
18081  case $ac_top_builddir_sub in
18082  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
18083  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
18084  esac ;;
18085esac
18086ac_abs_top_builddir=$ac_pwd
18087ac_abs_builddir=$ac_pwd$ac_dir_suffix
18088# for backward compatibility:
18089ac_top_builddir=$ac_top_build_prefix
18090
18091case $srcdir in
18092  .)  # We are building in place.
18093    ac_srcdir=.
18094    ac_top_srcdir=$ac_top_builddir_sub
18095    ac_abs_top_srcdir=$ac_pwd ;;
18096  [\\/]* | ?:[\\/]* )  # Absolute name.
18097    ac_srcdir=$srcdir$ac_dir_suffix;
18098    ac_top_srcdir=$srcdir
18099    ac_abs_top_srcdir=$srcdir ;;
18100  *) # Relative name.
18101    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
18102    ac_top_srcdir=$ac_top_build_prefix$srcdir
18103    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
18104esac
18105ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
18106
18107
18108  case $ac_mode in
18109  :F)
18110  #
18111  # CONFIG_FILE
18112  #
18113
18114  case $INSTALL in
18115  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
18116  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
18117  esac
18118  ac_MKDIR_P=$MKDIR_P
18119  case $MKDIR_P in
18120  [\\/$]* | ?:[\\/]* ) ;;
18121  */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
18122  esac
18123_ACEOF
18124
18125cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18126# If the template does not know about datarootdir, expand it.
18127# FIXME: This hack should be removed a few years after 2.60.
18128ac_datarootdir_hack=; ac_datarootdir_seen=
18129ac_sed_dataroot='
18130/datarootdir/ {
18131  p
18132  q
18133}
18134/@datadir@/p
18135/@docdir@/p
18136/@infodir@/p
18137/@localedir@/p
18138/@mandir@/p'
18139case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
18140*datarootdir*) ac_datarootdir_seen=yes;;
18141*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
18142  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
18143$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
18144_ACEOF
18145cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18146  ac_datarootdir_hack='
18147  s&@datadir@&$datadir&g
18148  s&@docdir@&$docdir&g
18149  s&@infodir@&$infodir&g
18150  s&@localedir@&$localedir&g
18151  s&@mandir@&$mandir&g
18152  s&\\\${datarootdir}&$datarootdir&g' ;;
18153esac
18154_ACEOF
18155
18156# Neutralize VPATH when `$srcdir' = `.'.
18157# Shell code in configure.ac might set extrasub.
18158# FIXME: do we really want to maintain this feature?
18159cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18160ac_sed_extra="$ac_vpsub
18161$extrasub
18162_ACEOF
18163cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18164:t
18165/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
18166s|@configure_input@|$ac_sed_conf_input|;t t
18167s&@top_builddir@&$ac_top_builddir_sub&;t t
18168s&@top_build_prefix@&$ac_top_build_prefix&;t t
18169s&@srcdir@&$ac_srcdir&;t t
18170s&@abs_srcdir@&$ac_abs_srcdir&;t t
18171s&@top_srcdir@&$ac_top_srcdir&;t t
18172s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
18173s&@builddir@&$ac_builddir&;t t
18174s&@abs_builddir@&$ac_abs_builddir&;t t
18175s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
18176s&@INSTALL@&$ac_INSTALL&;t t
18177s&@MKDIR_P@&$ac_MKDIR_P&;t t
18178$ac_datarootdir_hack
18179"
18180eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
18181  || as_fn_error "could not create $ac_file" "$LINENO" 5
18182
18183test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
18184  { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
18185  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
18186  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
18187which seems to be undefined.  Please make sure it is defined." >&5
18188$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
18189which seems to be undefined.  Please make sure it is defined." >&2;}
18190
18191  rm -f "$tmp/stdin"
18192  case $ac_file in
18193  -) cat "$tmp/out" && rm -f "$tmp/out";;
18194  *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
18195  esac \
18196  || as_fn_error "could not create $ac_file" "$LINENO" 5
18197 ;;
18198  :H)
18199  #
18200  # CONFIG_HEADER
18201  #
18202  if test x"$ac_file" != x-; then
18203    {
18204      $as_echo "/* $configure_input  */" \
18205      && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
18206    } >"$tmp/config.h" \
18207      || as_fn_error "could not create $ac_file" "$LINENO" 5
18208    if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
18209      { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
18210$as_echo "$as_me: $ac_file is unchanged" >&6;}
18211    else
18212      rm -f "$ac_file"
18213      mv "$tmp/config.h" "$ac_file" \
18214	|| as_fn_error "could not create $ac_file" "$LINENO" 5
18215    fi
18216  else
18217    $as_echo "/* $configure_input  */" \
18218      && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
18219      || as_fn_error "could not create -" "$LINENO" 5
18220  fi
18221# Compute "$ac_file"'s index in $config_headers.
18222_am_arg="$ac_file"
18223_am_stamp_count=1
18224for _am_header in $config_headers :; do
18225  case $_am_header in
18226    $_am_arg | $_am_arg:* )
18227      break ;;
18228    * )
18229      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
18230  esac
18231done
18232echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
18233$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18234	 X"$_am_arg" : 'X\(//\)[^/]' \| \
18235	 X"$_am_arg" : 'X\(//\)$' \| \
18236	 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
18237$as_echo X"$_am_arg" |
18238    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18239	    s//\1/
18240	    q
18241	  }
18242	  /^X\(\/\/\)[^/].*/{
18243	    s//\1/
18244	    q
18245	  }
18246	  /^X\(\/\/\)$/{
18247	    s//\1/
18248	    q
18249	  }
18250	  /^X\(\/\).*/{
18251	    s//\1/
18252	    q
18253	  }
18254	  s/.*/./; q'`/stamp-h$_am_stamp_count
18255 ;;
18256
18257  :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
18258$as_echo "$as_me: executing $ac_file commands" >&6;}
18259 ;;
18260  esac
18261
18262
18263  case $ac_file$ac_mode in
18264    "default-1":C)
18265# Only add multilib support code if we just rebuilt the top-level
18266# Makefile.
18267case " $CONFIG_FILES " in
18268 *" Makefile "*)
18269   ac_file=Makefile . ${multi_basedir}/config-ml.in
18270   ;;
18271esac ;;
18272    "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
18273  # Autoconf 2.62 quotes --file arguments for eval, but not when files
18274  # are listed without --file.  Let's play safe and only enable the eval
18275  # if we detect the quoting.
18276  case $CONFIG_FILES in
18277  *\'*) eval set x "$CONFIG_FILES" ;;
18278  *)   set x $CONFIG_FILES ;;
18279  esac
18280  shift
18281  for mf
18282  do
18283    # Strip MF so we end up with the name of the file.
18284    mf=`echo "$mf" | sed -e 's/:.*$//'`
18285    # Check whether this is an Automake generated Makefile or not.
18286    # We used to match only the files named `Makefile.in', but
18287    # some people rename them; so instead we look at the file content.
18288    # Grep'ing the first line is not enough: some people post-process
18289    # each Makefile.in and add a new line on top of each file to say so.
18290    # Grep'ing the whole file is not good either: AIX grep has a line
18291    # limit of 2048, but all sed's we know have understand at least 4000.
18292    if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
18293      dirpart=`$as_dirname -- "$mf" ||
18294$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18295	 X"$mf" : 'X\(//\)[^/]' \| \
18296	 X"$mf" : 'X\(//\)$' \| \
18297	 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
18298$as_echo X"$mf" |
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    else
18317      continue
18318    fi
18319    # Extract the definition of DEPDIR, am__include, and am__quote
18320    # from the Makefile without running `make'.
18321    DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
18322    test -z "$DEPDIR" && continue
18323    am__include=`sed -n 's/^am__include = //p' < "$mf"`
18324    test -z "am__include" && continue
18325    am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
18326    # When using ansi2knr, U may be empty or an underscore; expand it
18327    U=`sed -n 's/^U = //p' < "$mf"`
18328    # Find all dependency output files, they are included files with
18329    # $(DEPDIR) in their names.  We invoke sed twice because it is the
18330    # simplest approach to changing $(DEPDIR) to its actual value in the
18331    # expansion.
18332    for file in `sed -n "
18333      s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
18334	 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
18335      # Make sure the directory exists.
18336      test -f "$dirpart/$file" && continue
18337      fdir=`$as_dirname -- "$file" ||
18338$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18339	 X"$file" : 'X\(//\)[^/]' \| \
18340	 X"$file" : 'X\(//\)$' \| \
18341	 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
18342$as_echo X"$file" |
18343    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18344	    s//\1/
18345	    q
18346	  }
18347	  /^X\(\/\/\)[^/].*/{
18348	    s//\1/
18349	    q
18350	  }
18351	  /^X\(\/\/\)$/{
18352	    s//\1/
18353	    q
18354	  }
18355	  /^X\(\/\).*/{
18356	    s//\1/
18357	    q
18358	  }
18359	  s/.*/./; q'`
18360      as_dir=$dirpart/$fdir; as_fn_mkdir_p
18361      # echo "creating $dirpart/$file"
18362      echo '# dummy' > "$dirpart/$file"
18363    done
18364  done
18365}
18366 ;;
18367    "libtool":C)
18368
18369    # See if we are running on zsh, and set the options which allow our
18370    # commands through without removal of \ escapes.
18371    if test -n "${ZSH_VERSION+set}" ; then
18372      setopt NO_GLOB_SUBST
18373    fi
18374
18375    cfgfile="${ofile}T"
18376    trap "$RM \"$cfgfile\"; exit 1" 1 2 15
18377    $RM "$cfgfile"
18378
18379    cat <<_LT_EOF >> "$cfgfile"
18380#! $SHELL
18381
18382# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
18383# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
18384# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18385# NOTE: Changes made to this file will be lost: look at ltmain.sh.
18386#
18387#   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
18388#                 2006, 2007, 2008, 2009 Free Software Foundation, Inc.
18389#   Written by Gordon Matzigkeit, 1996
18390#
18391#   This file is part of GNU Libtool.
18392#
18393# GNU Libtool is free software; you can redistribute it and/or
18394# modify it under the terms of the GNU General Public License as
18395# published by the Free Software Foundation; either version 2 of
18396# the License, or (at your option) any later version.
18397#
18398# As a special exception to the GNU General Public License,
18399# if you distribute this file as part of a program or library that
18400# is built using GNU Libtool, you may include this file under the
18401# same distribution terms that you use for the rest of that program.
18402#
18403# GNU Libtool is distributed in the hope that it will be useful,
18404# but WITHOUT ANY WARRANTY; without even the implied warranty of
18405# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
18406# GNU General Public License for more details.
18407#
18408# You should have received a copy of the GNU General Public License
18409# along with GNU Libtool; see the file COPYING.  If not, a copy
18410# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
18411# obtained by writing to the Free Software Foundation, Inc.,
18412# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
18413
18414
18415# The names of the tagged configurations supported by this script.
18416available_tags="CXX "
18417
18418# ### BEGIN LIBTOOL CONFIG
18419
18420# Which release of libtool.m4 was used?
18421macro_version=$macro_version
18422macro_revision=$macro_revision
18423
18424# Whether or not to build shared libraries.
18425build_libtool_libs=$enable_shared
18426
18427# Whether or not to build static libraries.
18428build_old_libs=$enable_static
18429
18430# What type of objects to build.
18431pic_mode=$pic_mode
18432
18433# Whether or not to optimize for fast installation.
18434fast_install=$enable_fast_install
18435
18436# Shell to use when invoking shell scripts.
18437SHELL=$lt_SHELL
18438
18439# An echo program that protects backslashes.
18440ECHO=$lt_ECHO
18441
18442# The host system.
18443host_alias=$host_alias
18444host=$host
18445host_os=$host_os
18446
18447# The build system.
18448build_alias=$build_alias
18449build=$build
18450build_os=$build_os
18451
18452# A sed program that does not truncate output.
18453SED=$lt_SED
18454
18455# Sed that helps us avoid accidentally triggering echo(1) options like -n.
18456Xsed="\$SED -e 1s/^X//"
18457
18458# A grep program that handles long lines.
18459GREP=$lt_GREP
18460
18461# An ERE matcher.
18462EGREP=$lt_EGREP
18463
18464# A literal string matcher.
18465FGREP=$lt_FGREP
18466
18467# A BSD- or MS-compatible name lister.
18468NM=$lt_NM
18469
18470# Whether we need soft or hard links.
18471LN_S=$lt_LN_S
18472
18473# What is the maximum length of a command?
18474max_cmd_len=$max_cmd_len
18475
18476# Object file suffix (normally "o").
18477objext=$ac_objext
18478
18479# Executable file suffix (normally "").
18480exeext=$exeext
18481
18482# whether the shell understands "unset".
18483lt_unset=$lt_unset
18484
18485# turn spaces into newlines.
18486SP2NL=$lt_lt_SP2NL
18487
18488# turn newlines into spaces.
18489NL2SP=$lt_lt_NL2SP
18490
18491# An object symbol dumper.
18492OBJDUMP=$lt_OBJDUMP
18493
18494# Method to check whether dependent libraries are shared objects.
18495deplibs_check_method=$lt_deplibs_check_method
18496
18497# Command to use when deplibs_check_method == "file_magic".
18498file_magic_cmd=$lt_file_magic_cmd
18499
18500# The archiver.
18501AR=$lt_AR
18502AR_FLAGS=$lt_AR_FLAGS
18503
18504# A symbol stripping program.
18505STRIP=$lt_STRIP
18506
18507# Commands used to install an old-style archive.
18508RANLIB=$lt_RANLIB
18509old_postinstall_cmds=$lt_old_postinstall_cmds
18510old_postuninstall_cmds=$lt_old_postuninstall_cmds
18511
18512# Whether to use a lock for old archive extraction.
18513lock_old_archive_extraction=$lock_old_archive_extraction
18514
18515# A C compiler.
18516LTCC=$lt_CC
18517
18518# LTCC compiler flags.
18519LTCFLAGS=$lt_CFLAGS
18520
18521# Take the output of nm and produce a listing of raw symbols and C names.
18522global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18523
18524# Transform the output of nm in a proper C declaration.
18525global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18526
18527# Transform the output of nm in a C name address pair.
18528global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18529
18530# Transform the output of nm in a C name address pair when lib prefix is needed.
18531global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
18532
18533# The name of the directory that contains temporary libtool files.
18534objdir=$objdir
18535
18536# Used to examine libraries when file_magic_cmd begins with "file".
18537MAGIC_CMD=$MAGIC_CMD
18538
18539# Must we lock files when doing compilation?
18540need_locks=$lt_need_locks
18541
18542# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
18543DSYMUTIL=$lt_DSYMUTIL
18544
18545# Tool to change global to local symbols on Mac OS X.
18546NMEDIT=$lt_NMEDIT
18547
18548# Tool to manipulate fat objects and archives on Mac OS X.
18549LIPO=$lt_LIPO
18550
18551# ldd/readelf like tool for Mach-O binaries on Mac OS X.
18552OTOOL=$lt_OTOOL
18553
18554# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
18555OTOOL64=$lt_OTOOL64
18556
18557# Old archive suffix (normally "a").
18558libext=$libext
18559
18560# Shared library suffix (normally ".so").
18561shrext_cmds=$lt_shrext_cmds
18562
18563# The commands to extract the exported symbol list from a shared archive.
18564extract_expsyms_cmds=$lt_extract_expsyms_cmds
18565
18566# Variables whose values should be saved in libtool wrapper scripts and
18567# restored at link time.
18568variables_saved_for_relink=$lt_variables_saved_for_relink
18569
18570# Do we need the "lib" prefix for modules?
18571need_lib_prefix=$need_lib_prefix
18572
18573# Do we need a version for libraries?
18574need_version=$need_version
18575
18576# Library versioning type.
18577version_type=$version_type
18578
18579# Shared library runtime path variable.
18580runpath_var=$runpath_var
18581
18582# Shared library path variable.
18583shlibpath_var=$shlibpath_var
18584
18585# Is shlibpath searched before the hard-coded library search path?
18586shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18587
18588# Format of library name prefix.
18589libname_spec=$lt_libname_spec
18590
18591# List of archive names.  First name is the real one, the rest are links.
18592# The last name is the one that the linker finds with -lNAME
18593library_names_spec=$lt_library_names_spec
18594
18595# The coded name of the library, if different from the real name.
18596soname_spec=$lt_soname_spec
18597
18598# Permission mode override for installation of shared libraries.
18599install_override_mode=$lt_install_override_mode
18600
18601# Command to use after installation of a shared archive.
18602postinstall_cmds=$lt_postinstall_cmds
18603
18604# Command to use after uninstallation of a shared archive.
18605postuninstall_cmds=$lt_postuninstall_cmds
18606
18607# Commands used to finish a libtool library installation in a directory.
18608finish_cmds=$lt_finish_cmds
18609
18610# As "finish_cmds", except a single script fragment to be evaled but
18611# not shown.
18612finish_eval=$lt_finish_eval
18613
18614# Whether we should hardcode library paths into libraries.
18615hardcode_into_libs=$hardcode_into_libs
18616
18617# Compile-time system search path for libraries.
18618sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18619
18620# Run-time system search path for libraries.
18621sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18622
18623# Whether dlopen is supported.
18624dlopen_support=$enable_dlopen
18625
18626# Whether dlopen of programs is supported.
18627dlopen_self=$enable_dlopen_self
18628
18629# Whether dlopen of statically linked programs is supported.
18630dlopen_self_static=$enable_dlopen_self_static
18631
18632# Commands to strip libraries.
18633old_striplib=$lt_old_striplib
18634striplib=$lt_striplib
18635
18636
18637# The linker used to build libraries.
18638LD=$lt_LD
18639
18640# How to create reloadable object files.
18641reload_flag=$lt_reload_flag
18642reload_cmds=$lt_reload_cmds
18643
18644# Commands used to build an old-style archive.
18645old_archive_cmds=$lt_old_archive_cmds
18646
18647# A language specific compiler.
18648CC=$lt_compiler
18649
18650# Is the compiler the GNU compiler?
18651with_gcc=$GCC
18652
18653# Compiler flag to turn off builtin functions.
18654no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
18655
18656# How to pass a linker flag through the compiler.
18657wl=$lt_lt_prog_compiler_wl
18658
18659# Additional compiler flags for building library objects.
18660pic_flag=$lt_lt_prog_compiler_pic
18661
18662# Compiler flag to prevent dynamic linking.
18663link_static_flag=$lt_lt_prog_compiler_static
18664
18665# Does compiler simultaneously support -c and -o options?
18666compiler_c_o=$lt_lt_cv_prog_compiler_c_o
18667
18668# Whether or not to add -lc for building shared libraries.
18669build_libtool_need_lc=$archive_cmds_need_lc
18670
18671# Whether or not to disallow shared libs when runtime libs are static.
18672allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
18673
18674# Compiler flag to allow reflexive dlopens.
18675export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
18676
18677# Compiler flag to generate shared objects directly from archives.
18678whole_archive_flag_spec=$lt_whole_archive_flag_spec
18679
18680# Whether the compiler copes with passing no objects directly.
18681compiler_needs_object=$lt_compiler_needs_object
18682
18683# Create an old-style archive from a shared archive.
18684old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
18685
18686# Create a temporary old-style archive to link instead of a shared archive.
18687old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
18688
18689# Commands used to build a shared archive.
18690archive_cmds=$lt_archive_cmds
18691archive_expsym_cmds=$lt_archive_expsym_cmds
18692
18693# Commands used to build a loadable module if different from building
18694# a shared archive.
18695module_cmds=$lt_module_cmds
18696module_expsym_cmds=$lt_module_expsym_cmds
18697
18698# Whether we are building with GNU ld or not.
18699with_gnu_ld=$lt_with_gnu_ld
18700
18701# Flag that allows shared libraries with undefined symbols to be built.
18702allow_undefined_flag=$lt_allow_undefined_flag
18703
18704# Flag that enforces no undefined symbols.
18705no_undefined_flag=$lt_no_undefined_flag
18706
18707# Flag to hardcode \$libdir into a binary during linking.
18708# This must work even if \$libdir does not exist
18709hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
18710
18711# If ld is used when linking, flag to hardcode \$libdir into a binary
18712# during linking.  This must work even if \$libdir does not exist.
18713hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
18714
18715# Whether we need a single "-rpath" flag with a separated argument.
18716hardcode_libdir_separator=$lt_hardcode_libdir_separator
18717
18718# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
18719# DIR into the resulting binary.
18720hardcode_direct=$hardcode_direct
18721
18722# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
18723# DIR into the resulting binary and the resulting library dependency is
18724# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
18725# library is relocated.
18726hardcode_direct_absolute=$hardcode_direct_absolute
18727
18728# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
18729# into the resulting binary.
18730hardcode_minus_L=$hardcode_minus_L
18731
18732# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
18733# into the resulting binary.
18734hardcode_shlibpath_var=$hardcode_shlibpath_var
18735
18736# Set to "yes" if building a shared library automatically hardcodes DIR
18737# into the library and all subsequent libraries and executables linked
18738# against it.
18739hardcode_automatic=$hardcode_automatic
18740
18741# Set to yes if linker adds runtime paths of dependent libraries
18742# to runtime path list.
18743inherit_rpath=$inherit_rpath
18744
18745# Whether libtool must link a program against all its dependency libraries.
18746link_all_deplibs=$link_all_deplibs
18747
18748# Fix the shell variable \$srcfile for the compiler.
18749fix_srcfile_path=$lt_fix_srcfile_path
18750
18751# Set to "yes" if exported symbols are required.
18752always_export_symbols=$always_export_symbols
18753
18754# The commands to list exported symbols.
18755export_symbols_cmds=$lt_export_symbols_cmds
18756
18757# Symbols that should not be listed in the preloaded symbols.
18758exclude_expsyms=$lt_exclude_expsyms
18759
18760# Symbols that must always be exported.
18761include_expsyms=$lt_include_expsyms
18762
18763# Commands necessary for linking programs (against libraries) with templates.
18764prelink_cmds=$lt_prelink_cmds
18765
18766# Specify filename containing input files.
18767file_list_spec=$lt_file_list_spec
18768
18769# How to hardcode a shared library path into an executable.
18770hardcode_action=$hardcode_action
18771
18772# The directories searched by this compiler when creating a shared library.
18773compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
18774
18775# Dependencies to place before and after the objects being linked to
18776# create a shared library.
18777predep_objects=$lt_predep_objects
18778postdep_objects=$lt_postdep_objects
18779predeps=$lt_predeps
18780postdeps=$lt_postdeps
18781
18782# The library search path used internally by the compiler when linking
18783# a shared library.
18784compiler_lib_search_path=$lt_compiler_lib_search_path
18785
18786# ### END LIBTOOL CONFIG
18787
18788_LT_EOF
18789
18790  case $host_os in
18791  aix3*)
18792    cat <<\_LT_EOF >> "$cfgfile"
18793# AIX sometimes has problems with the GCC collect2 program.  For some
18794# reason, if we set the COLLECT_NAMES environment variable, the problems
18795# vanish in a puff of smoke.
18796if test "X${COLLECT_NAMES+set}" != Xset; then
18797  COLLECT_NAMES=
18798  export COLLECT_NAMES
18799fi
18800_LT_EOF
18801    ;;
18802  esac
18803
18804
18805ltmain="$ac_aux_dir/ltmain.sh"
18806
18807
18808  # We use sed instead of cat because bash on DJGPP gets confused if
18809  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
18810  # text mode, it properly converts lines to CR/LF.  This bash problem
18811  # is reportedly fixed, but why not run on old versions too?
18812  sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
18813    || (rm -f "$cfgfile"; exit 1)
18814
18815  case $xsi_shell in
18816  yes)
18817    cat << \_LT_EOF >> "$cfgfile"
18818
18819# func_dirname file append nondir_replacement
18820# Compute the dirname of FILE.  If nonempty, add APPEND to the result,
18821# otherwise set result to NONDIR_REPLACEMENT.
18822func_dirname ()
18823{
18824  case ${1} in
18825    */*) func_dirname_result="${1%/*}${2}" ;;
18826    *  ) func_dirname_result="${3}" ;;
18827  esac
18828}
18829
18830# func_basename file
18831func_basename ()
18832{
18833  func_basename_result="${1##*/}"
18834}
18835
18836# func_dirname_and_basename file append nondir_replacement
18837# perform func_basename and func_dirname in a single function
18838# call:
18839#   dirname:  Compute the dirname of FILE.  If nonempty,
18840#             add APPEND to the result, otherwise set result
18841#             to NONDIR_REPLACEMENT.
18842#             value returned in "$func_dirname_result"
18843#   basename: Compute filename of FILE.
18844#             value retuned in "$func_basename_result"
18845# Implementation must be kept synchronized with func_dirname
18846# and func_basename. For efficiency, we do not delegate to
18847# those functions but instead duplicate the functionality here.
18848func_dirname_and_basename ()
18849{
18850  case ${1} in
18851    */*) func_dirname_result="${1%/*}${2}" ;;
18852    *  ) func_dirname_result="${3}" ;;
18853  esac
18854  func_basename_result="${1##*/}"
18855}
18856
18857# func_stripname prefix suffix name
18858# strip PREFIX and SUFFIX off of NAME.
18859# PREFIX and SUFFIX must not contain globbing or regex special
18860# characters, hashes, percent signs, but SUFFIX may contain a leading
18861# dot (in which case that matches only a dot).
18862func_stripname ()
18863{
18864  # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
18865  # positional parameters, so assign one to ordinary parameter first.
18866  func_stripname_result=${3}
18867  func_stripname_result=${func_stripname_result#"${1}"}
18868  func_stripname_result=${func_stripname_result%"${2}"}
18869}
18870
18871# func_opt_split
18872func_opt_split ()
18873{
18874  func_opt_split_opt=${1%%=*}
18875  func_opt_split_arg=${1#*=}
18876}
18877
18878# func_lo2o object
18879func_lo2o ()
18880{
18881  case ${1} in
18882    *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
18883    *)    func_lo2o_result=${1} ;;
18884  esac
18885}
18886
18887# func_xform libobj-or-source
18888func_xform ()
18889{
18890  func_xform_result=${1%.*}.lo
18891}
18892
18893# func_arith arithmetic-term...
18894func_arith ()
18895{
18896  func_arith_result=$(( $* ))
18897}
18898
18899# func_len string
18900# STRING may not start with a hyphen.
18901func_len ()
18902{
18903  func_len_result=${#1}
18904}
18905
18906_LT_EOF
18907    ;;
18908  *) # Bourne compatible functions.
18909    cat << \_LT_EOF >> "$cfgfile"
18910
18911# func_dirname file append nondir_replacement
18912# Compute the dirname of FILE.  If nonempty, add APPEND to the result,
18913# otherwise set result to NONDIR_REPLACEMENT.
18914func_dirname ()
18915{
18916  # Extract subdirectory from the argument.
18917  func_dirname_result=`$ECHO "${1}" | $SED "$dirname"`
18918  if test "X$func_dirname_result" = "X${1}"; then
18919    func_dirname_result="${3}"
18920  else
18921    func_dirname_result="$func_dirname_result${2}"
18922  fi
18923}
18924
18925# func_basename file
18926func_basename ()
18927{
18928  func_basename_result=`$ECHO "${1}" | $SED "$basename"`
18929}
18930
18931
18932# func_stripname prefix suffix name
18933# strip PREFIX and SUFFIX off of NAME.
18934# PREFIX and SUFFIX must not contain globbing or regex special
18935# characters, hashes, percent signs, but SUFFIX may contain a leading
18936# dot (in which case that matches only a dot).
18937# func_strip_suffix prefix name
18938func_stripname ()
18939{
18940  case ${2} in
18941    .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
18942    *)  func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
18943  esac
18944}
18945
18946# sed scripts:
18947my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
18948my_sed_long_arg='1s/^-[^=]*=//'
18949
18950# func_opt_split
18951func_opt_split ()
18952{
18953  func_opt_split_opt=`$ECHO "${1}" | $SED "$my_sed_long_opt"`
18954  func_opt_split_arg=`$ECHO "${1}" | $SED "$my_sed_long_arg"`
18955}
18956
18957# func_lo2o object
18958func_lo2o ()
18959{
18960  func_lo2o_result=`$ECHO "${1}" | $SED "$lo2o"`
18961}
18962
18963# func_xform libobj-or-source
18964func_xform ()
18965{
18966  func_xform_result=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'`
18967}
18968
18969# func_arith arithmetic-term...
18970func_arith ()
18971{
18972  func_arith_result=`expr "$@"`
18973}
18974
18975# func_len string
18976# STRING may not start with a hyphen.
18977func_len ()
18978{
18979  func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
18980}
18981
18982_LT_EOF
18983esac
18984
18985case $lt_shell_append in
18986  yes)
18987    cat << \_LT_EOF >> "$cfgfile"
18988
18989# func_append var value
18990# Append VALUE to the end of shell variable VAR.
18991func_append ()
18992{
18993  eval "$1+=\$2"
18994}
18995_LT_EOF
18996    ;;
18997  *)
18998    cat << \_LT_EOF >> "$cfgfile"
18999
19000# func_append var value
19001# Append VALUE to the end of shell variable VAR.
19002func_append ()
19003{
19004  eval "$1=\$$1\$2"
19005}
19006
19007_LT_EOF
19008    ;;
19009  esac
19010
19011
19012  sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
19013    || (rm -f "$cfgfile"; exit 1)
19014
19015  mv -f "$cfgfile" "$ofile" ||
19016    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
19017  chmod +x "$ofile"
19018
19019
19020    cat <<_LT_EOF >> "$ofile"
19021
19022# ### BEGIN LIBTOOL TAG CONFIG: CXX
19023
19024# The linker used to build libraries.
19025LD=$lt_LD_CXX
19026
19027# How to create reloadable object files.
19028reload_flag=$lt_reload_flag_CXX
19029reload_cmds=$lt_reload_cmds_CXX
19030
19031# Commands used to build an old-style archive.
19032old_archive_cmds=$lt_old_archive_cmds_CXX
19033
19034# A language specific compiler.
19035CC=$lt_compiler_CXX
19036
19037# Is the compiler the GNU compiler?
19038with_gcc=$GCC_CXX
19039
19040# Compiler flag to turn off builtin functions.
19041no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
19042
19043# How to pass a linker flag through the compiler.
19044wl=$lt_lt_prog_compiler_wl_CXX
19045
19046# Additional compiler flags for building library objects.
19047pic_flag=$lt_lt_prog_compiler_pic_CXX
19048
19049# Compiler flag to prevent dynamic linking.
19050link_static_flag=$lt_lt_prog_compiler_static_CXX
19051
19052# Does compiler simultaneously support -c and -o options?
19053compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
19054
19055# Whether or not to add -lc for building shared libraries.
19056build_libtool_need_lc=$archive_cmds_need_lc_CXX
19057
19058# Whether or not to disallow shared libs when runtime libs are static.
19059allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
19060
19061# Compiler flag to allow reflexive dlopens.
19062export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
19063
19064# Compiler flag to generate shared objects directly from archives.
19065whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
19066
19067# Whether the compiler copes with passing no objects directly.
19068compiler_needs_object=$lt_compiler_needs_object_CXX
19069
19070# Create an old-style archive from a shared archive.
19071old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
19072
19073# Create a temporary old-style archive to link instead of a shared archive.
19074old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
19075
19076# Commands used to build a shared archive.
19077archive_cmds=$lt_archive_cmds_CXX
19078archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
19079
19080# Commands used to build a loadable module if different from building
19081# a shared archive.
19082module_cmds=$lt_module_cmds_CXX
19083module_expsym_cmds=$lt_module_expsym_cmds_CXX
19084
19085# Whether we are building with GNU ld or not.
19086with_gnu_ld=$lt_with_gnu_ld_CXX
19087
19088# Flag that allows shared libraries with undefined symbols to be built.
19089allow_undefined_flag=$lt_allow_undefined_flag_CXX
19090
19091# Flag that enforces no undefined symbols.
19092no_undefined_flag=$lt_no_undefined_flag_CXX
19093
19094# Flag to hardcode \$libdir into a binary during linking.
19095# This must work even if \$libdir does not exist
19096hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
19097
19098# If ld is used when linking, flag to hardcode \$libdir into a binary
19099# during linking.  This must work even if \$libdir does not exist.
19100hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
19101
19102# Whether we need a single "-rpath" flag with a separated argument.
19103hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
19104
19105# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
19106# DIR into the resulting binary.
19107hardcode_direct=$hardcode_direct_CXX
19108
19109# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
19110# DIR into the resulting binary and the resulting library dependency is
19111# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
19112# library is relocated.
19113hardcode_direct_absolute=$hardcode_direct_absolute_CXX
19114
19115# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
19116# into the resulting binary.
19117hardcode_minus_L=$hardcode_minus_L_CXX
19118
19119# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
19120# into the resulting binary.
19121hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
19122
19123# Set to "yes" if building a shared library automatically hardcodes DIR
19124# into the library and all subsequent libraries and executables linked
19125# against it.
19126hardcode_automatic=$hardcode_automatic_CXX
19127
19128# Set to yes if linker adds runtime paths of dependent libraries
19129# to runtime path list.
19130inherit_rpath=$inherit_rpath_CXX
19131
19132# Whether libtool must link a program against all its dependency libraries.
19133link_all_deplibs=$link_all_deplibs_CXX
19134
19135# Fix the shell variable \$srcfile for the compiler.
19136fix_srcfile_path=$lt_fix_srcfile_path_CXX
19137
19138# Set to "yes" if exported symbols are required.
19139always_export_symbols=$always_export_symbols_CXX
19140
19141# The commands to list exported symbols.
19142export_symbols_cmds=$lt_export_symbols_cmds_CXX
19143
19144# Symbols that should not be listed in the preloaded symbols.
19145exclude_expsyms=$lt_exclude_expsyms_CXX
19146
19147# Symbols that must always be exported.
19148include_expsyms=$lt_include_expsyms_CXX
19149
19150# Commands necessary for linking programs (against libraries) with templates.
19151prelink_cmds=$lt_prelink_cmds_CXX
19152
19153# Specify filename containing input files.
19154file_list_spec=$lt_file_list_spec_CXX
19155
19156# How to hardcode a shared library path into an executable.
19157hardcode_action=$hardcode_action_CXX
19158
19159# The directories searched by this compiler when creating a shared library.
19160compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
19161
19162# Dependencies to place before and after the objects being linked to
19163# create a shared library.
19164predep_objects=$lt_predep_objects_CXX
19165postdep_objects=$lt_postdep_objects_CXX
19166predeps=$lt_predeps_CXX
19167postdeps=$lt_postdeps_CXX
19168
19169# The library search path used internally by the compiler when linking
19170# a shared library.
19171compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
19172
19173# ### END LIBTOOL TAG CONFIG: CXX
19174_LT_EOF
19175
19176 ;;
19177    "gstdint.h":C)
19178if test "$GCC" = yes; then
19179  echo "/* generated for " `$CC --version | sed 1q` "*/" > tmp-stdint.h
19180else
19181  echo "/* generated for $CC */" > tmp-stdint.h
19182fi
19183
19184sed 's/^ *//' >> tmp-stdint.h <<EOF
19185
19186  #ifndef GCC_GENERATED_STDINT_H
19187  #define GCC_GENERATED_STDINT_H 1
19188
19189  #include <sys/types.h>
19190EOF
19191
19192if test "$acx_cv_header_stdint" != stdint.h; then
19193  echo "#include <stddef.h>" >> tmp-stdint.h
19194fi
19195if test "$acx_cv_header_stdint" != stddef.h; then
19196  echo "#include <$acx_cv_header_stdint>" >> tmp-stdint.h
19197fi
19198
19199sed 's/^ *//' >> tmp-stdint.h <<EOF
19200  /* glibc uses these symbols as guards to prevent redefinitions.  */
19201  #ifdef __int8_t_defined
19202  #define _INT8_T
19203  #define _INT16_T
19204  #define _INT32_T
19205  #endif
19206  #ifdef __uint32_t_defined
19207  #define _UINT32_T
19208  #endif
19209
19210EOF
19211
19212# ----------------- done header, emit basic int types -------------
19213if test "$acx_cv_header_stdint" = stddef.h; then
19214  sed 's/^ *//' >> tmp-stdint.h <<EOF
19215
19216    #ifndef _UINT8_T
19217    #define _UINT8_T
19218    #ifndef __uint8_t_defined
19219    #define __uint8_t_defined
19220    #ifndef uint8_t
19221    typedef unsigned $acx_cv_type_int8_t uint8_t;
19222    #endif
19223    #endif
19224    #endif
19225
19226    #ifndef _UINT16_T
19227    #define _UINT16_T
19228    #ifndef __uint16_t_defined
19229    #define __uint16_t_defined
19230    #ifndef uint16_t
19231    typedef unsigned $acx_cv_type_int16_t uint16_t;
19232    #endif
19233    #endif
19234    #endif
19235
19236    #ifndef _UINT32_T
19237    #define _UINT32_T
19238    #ifndef __uint32_t_defined
19239    #define __uint32_t_defined
19240    #ifndef uint32_t
19241    typedef unsigned $acx_cv_type_int32_t uint32_t;
19242    #endif
19243    #endif
19244    #endif
19245
19246    #ifndef _INT8_T
19247    #define _INT8_T
19248    #ifndef __int8_t_defined
19249    #define __int8_t_defined
19250    #ifndef int8_t
19251    typedef $acx_cv_type_int8_t int8_t;
19252    #endif
19253    #endif
19254    #endif
19255
19256    #ifndef _INT16_T
19257    #define _INT16_T
19258    #ifndef __int16_t_defined
19259    #define __int16_t_defined
19260    #ifndef int16_t
19261    typedef $acx_cv_type_int16_t int16_t;
19262    #endif
19263    #endif
19264    #endif
19265
19266    #ifndef _INT32_T
19267    #define _INT32_T
19268    #ifndef __int32_t_defined
19269    #define __int32_t_defined
19270    #ifndef int32_t
19271    typedef $acx_cv_type_int32_t int32_t;
19272    #endif
19273    #endif
19274    #endif
19275EOF
19276elif test "$ac_cv_type_u_int32_t" = yes; then
19277  sed 's/^ *//' >> tmp-stdint.h <<EOF
19278
19279    /* int8_t int16_t int32_t defined by inet code, we do the u_intXX types */
19280    #ifndef _INT8_T
19281    #define _INT8_T
19282    #endif
19283    #ifndef _INT16_T
19284    #define _INT16_T
19285    #endif
19286    #ifndef _INT32_T
19287    #define _INT32_T
19288    #endif
19289
19290    #ifndef _UINT8_T
19291    #define _UINT8_T
19292    #ifndef __uint8_t_defined
19293    #define __uint8_t_defined
19294    #ifndef uint8_t
19295    typedef u_int8_t uint8_t;
19296    #endif
19297    #endif
19298    #endif
19299
19300    #ifndef _UINT16_T
19301    #define _UINT16_T
19302    #ifndef __uint16_t_defined
19303    #define __uint16_t_defined
19304    #ifndef uint16_t
19305    typedef u_int16_t uint16_t;
19306    #endif
19307    #endif
19308    #endif
19309
19310    #ifndef _UINT32_T
19311    #define _UINT32_T
19312    #ifndef __uint32_t_defined
19313    #define __uint32_t_defined
19314    #ifndef uint32_t
19315    typedef u_int32_t uint32_t;
19316    #endif
19317    #endif
19318    #endif
19319EOF
19320else
19321  sed 's/^ *//' >> tmp-stdint.h <<EOF
19322
19323    /* Some systems have guard macros to prevent redefinitions, define them.  */
19324    #ifndef _INT8_T
19325    #define _INT8_T
19326    #endif
19327    #ifndef _INT16_T
19328    #define _INT16_T
19329    #endif
19330    #ifndef _INT32_T
19331    #define _INT32_T
19332    #endif
19333    #ifndef _UINT8_T
19334    #define _UINT8_T
19335    #endif
19336    #ifndef _UINT16_T
19337    #define _UINT16_T
19338    #endif
19339    #ifndef _UINT32_T
19340    #define _UINT32_T
19341    #endif
19342EOF
19343fi
19344
19345# ------------- done basic int types, emit int64_t types ------------
19346if test "$ac_cv_type_uint64_t" = yes; then
19347  sed 's/^ *//' >> tmp-stdint.h <<EOF
19348
19349    /* system headers have good uint64_t and int64_t */
19350    #ifndef _INT64_T
19351    #define _INT64_T
19352    #endif
19353    #ifndef _UINT64_T
19354    #define _UINT64_T
19355    #endif
19356EOF
19357elif test "$ac_cv_type_u_int64_t" = yes; then
19358  sed 's/^ *//' >> tmp-stdint.h <<EOF
19359
19360    /* system headers have an u_int64_t (and int64_t) */
19361    #ifndef _INT64_T
19362    #define _INT64_T
19363    #endif
19364    #ifndef _UINT64_T
19365    #define _UINT64_T
19366    #ifndef __uint64_t_defined
19367    #define __uint64_t_defined
19368    #ifndef uint64_t
19369    typedef u_int64_t uint64_t;
19370    #endif
19371    #endif
19372    #endif
19373EOF
19374elif test -n "$acx_cv_type_int64_t"; then
19375  sed 's/^ *//' >> tmp-stdint.h <<EOF
19376
19377    /* architecture has a 64-bit type, $acx_cv_type_int64_t */
19378    #ifndef _INT64_T
19379    #define _INT64_T
19380    #ifndef int64_t
19381    typedef $acx_cv_type_int64_t int64_t;
19382    #endif
19383    #endif
19384    #ifndef _UINT64_T
19385    #define _UINT64_T
19386    #ifndef __uint64_t_defined
19387    #define __uint64_t_defined
19388    #ifndef uint64_t
19389    typedef unsigned $acx_cv_type_int64_t uint64_t;
19390    #endif
19391    #endif
19392    #endif
19393EOF
19394else
19395  sed 's/^ *//' >> tmp-stdint.h <<EOF
19396
19397    /* some common heuristics for int64_t, using compiler-specific tests */
19398    #if defined __STDC_VERSION__ && (__STDC_VERSION__-0) >= 199901L
19399    #ifndef _INT64_T
19400    #define _INT64_T
19401    #ifndef __int64_t_defined
19402    #ifndef int64_t
19403    typedef long long int64_t;
19404    #endif
19405    #endif
19406    #endif
19407    #ifndef _UINT64_T
19408    #define _UINT64_T
19409    #ifndef uint64_t
19410    typedef unsigned long long uint64_t;
19411    #endif
19412    #endif
19413
19414    #elif defined __GNUC__ && defined (__STDC__) && __STDC__-0
19415    /* NextStep 2.0 cc is really gcc 1.93 but it defines __GNUC__ = 2 and
19416       does not implement __extension__.  But that compiler doesn't define
19417       __GNUC_MINOR__.  */
19418    # if __GNUC__ < 2 || (__NeXT__ && !__GNUC_MINOR__)
19419    # define __extension__
19420    # endif
19421
19422    # ifndef _INT64_T
19423    # define _INT64_T
19424    # ifndef int64_t
19425    __extension__ typedef long long int64_t;
19426    # endif
19427    # endif
19428    # ifndef _UINT64_T
19429    # define _UINT64_T
19430    # ifndef uint64_t
19431    __extension__ typedef unsigned long long uint64_t;
19432    # endif
19433    # endif
19434
19435    #elif !defined __STRICT_ANSI__
19436    # if defined _MSC_VER || defined __WATCOMC__ || defined __BORLANDC__
19437
19438    #  ifndef _INT64_T
19439    #  define _INT64_T
19440    #  ifndef int64_t
19441    typedef __int64 int64_t;
19442    #  endif
19443    #  endif
19444    #  ifndef _UINT64_T
19445    #  define _UINT64_T
19446    #  ifndef uint64_t
19447    typedef unsigned __int64 uint64_t;
19448    #  endif
19449    #  endif
19450    # endif /* compiler */
19451
19452    #endif /* ANSI version */
19453EOF
19454fi
19455
19456# ------------- done int64_t types, emit intptr types ------------
19457if test "$ac_cv_type_uintptr_t" != yes; then
19458  sed 's/^ *//' >> tmp-stdint.h <<EOF
19459
19460    /* Define intptr_t based on sizeof(void*) = $ac_cv_sizeof_void_p */
19461    #ifndef __uintptr_t_defined
19462    #ifndef uintptr_t
19463    typedef u$acx_cv_type_intptr_t uintptr_t;
19464    #endif
19465    #endif
19466    #ifndef __intptr_t_defined
19467    #ifndef intptr_t
19468    typedef $acx_cv_type_intptr_t  intptr_t;
19469    #endif
19470    #endif
19471EOF
19472fi
19473
19474# ------------- done intptr types, emit int_least types ------------
19475if test "$ac_cv_type_int_least32_t" != yes; then
19476  sed 's/^ *//' >> tmp-stdint.h <<EOF
19477
19478    /* Define int_least types */
19479    typedef int8_t     int_least8_t;
19480    typedef int16_t    int_least16_t;
19481    typedef int32_t    int_least32_t;
19482    #ifdef _INT64_T
19483    typedef int64_t    int_least64_t;
19484    #endif
19485
19486    typedef uint8_t    uint_least8_t;
19487    typedef uint16_t   uint_least16_t;
19488    typedef uint32_t   uint_least32_t;
19489    #ifdef _UINT64_T
19490    typedef uint64_t   uint_least64_t;
19491    #endif
19492EOF
19493fi
19494
19495# ------------- done intptr types, emit int_fast types ------------
19496if test "$ac_cv_type_int_fast32_t" != yes; then
19497      sed 's/^ *//' >> tmp-stdint.h <<EOF
19498
19499    /* Define int_fast types.  short is often slow */
19500    typedef int8_t       int_fast8_t;
19501    typedef int          int_fast16_t;
19502    typedef int32_t      int_fast32_t;
19503    #ifdef _INT64_T
19504    typedef int64_t      int_fast64_t;
19505    #endif
19506
19507    typedef uint8_t      uint_fast8_t;
19508    typedef unsigned int uint_fast16_t;
19509    typedef uint32_t     uint_fast32_t;
19510    #ifdef _UINT64_T
19511    typedef uint64_t     uint_fast64_t;
19512    #endif
19513EOF
19514fi
19515
19516if test "$ac_cv_type_uintmax_t" != yes; then
19517  sed 's/^ *//' >> tmp-stdint.h <<EOF
19518
19519    /* Define intmax based on what we found */
19520    #ifndef intmax_t
19521    #ifdef _INT64_T
19522    typedef int64_t       intmax_t;
19523    #else
19524    typedef long          intmax_t;
19525    #endif
19526    #endif
19527    #ifndef uintmax_t
19528    #ifdef _UINT64_T
19529    typedef uint64_t      uintmax_t;
19530    #else
19531    typedef unsigned long uintmax_t;
19532    #endif
19533    #endif
19534EOF
19535fi
19536
19537sed 's/^ *//' >> tmp-stdint.h <<EOF
19538
19539  #endif /* GCC_GENERATED_STDINT_H */
19540EOF
19541
19542if test -r gstdint.h && cmp -s tmp-stdint.h gstdint.h; then
19543  rm -f tmp-stdint.h
19544else
19545  mv -f tmp-stdint.h gstdint.h
19546fi
19547
19548 ;;
19549    "interception/Makefile":F) cat > vpsed$$ << \_EOF
19550s!`test -f '$<' || echo '$(srcdir)/'`!!
19551_EOF
19552   sed -f vpsed$$ $ac_file > tmp$$
19553   mv tmp$$ $ac_file
19554   rm vpsed$$
19555   echo 'MULTISUBDIR =' >> $ac_file
19556   ml_norecursion=yes
19557   . ${multi_basedir}/config-ml.in
19558   { ml_norecursion=; unset ml_norecursion;}
19559 ;;
19560    "sanitizer_common/Makefile":F) cat > vpsed$$ << \_EOF
19561s!`test -f '$<' || echo '$(srcdir)/'`!!
19562_EOF
19563   sed -f vpsed$$ $ac_file > tmp$$
19564   mv tmp$$ $ac_file
19565   rm vpsed$$
19566   echo 'MULTISUBDIR =' >> $ac_file
19567   ml_norecursion=yes
19568   . ${multi_basedir}/config-ml.in
19569   { ml_norecursion=; unset ml_norecursion;}
19570 ;;
19571    "libbacktrace/Makefile":F) cat > vpsed$$ << \_EOF
19572s!`test -f '$<' || echo '$(srcdir)/'`!!
19573_EOF
19574   sed -f vpsed$$ $ac_file > tmp$$
19575   mv tmp$$ $ac_file
19576   rm vpsed$$
19577   echo 'MULTISUBDIR =' >> $ac_file
19578   ml_norecursion=yes
19579   . ${multi_basedir}/config-ml.in
19580   { ml_norecursion=; unset ml_norecursion;}
19581 ;;
19582    "lsan/Makefile":F) cat > vpsed$$ << \_EOF
19583s!`test -f '$<' || echo '$(srcdir)/'`!!
19584_EOF
19585   sed -f vpsed$$ $ac_file > tmp$$
19586   mv tmp$$ $ac_file
19587   rm vpsed$$
19588   echo 'MULTISUBDIR =' >> $ac_file
19589   ml_norecursion=yes
19590   . ${multi_basedir}/config-ml.in
19591   { ml_norecursion=; unset ml_norecursion;}
19592 ;;
19593    "asan/Makefile":F) cat > vpsed$$ << \_EOF
19594s!`test -f '$<' || echo '$(srcdir)/'`!!
19595_EOF
19596   sed -f vpsed$$ $ac_file > tmp$$
19597   mv tmp$$ $ac_file
19598   rm vpsed$$
19599   echo 'MULTISUBDIR =' >> $ac_file
19600   ml_norecursion=yes
19601   . ${multi_basedir}/config-ml.in
19602   { ml_norecursion=; unset ml_norecursion;}
19603 ;;
19604    "ubsan/Makefile":F) cat > vpsed$$ << \_EOF
19605s!`test -f '$<' || echo '$(srcdir)/'`!!
19606_EOF
19607   sed -f vpsed$$ $ac_file > tmp$$
19608   mv tmp$$ $ac_file
19609   rm vpsed$$
19610   echo 'MULTISUBDIR =' >> $ac_file
19611   ml_norecursion=yes
19612   . ${multi_basedir}/config-ml.in
19613   { ml_norecursion=; unset ml_norecursion;}
19614 ;;
19615    "tsan/Makefile":F) cat > vpsed$$ << \_EOF
19616s!`test -f '$<' || echo '$(srcdir)/'`!!
19617_EOF
19618    sed -f vpsed$$ $ac_file > tmp$$
19619    mv tmp$$ $ac_file
19620    rm vpsed$$
19621    echo 'MULTISUBDIR =' >> $ac_file
19622    ml_norecursion=yes
19623    . ${multi_basedir}/config-ml.in
19624    { ml_norecursion=; unset ml_norecursion;}
19625 ;;
19626
19627  esac
19628done # for ac_tag
19629
19630
19631as_fn_exit 0
19632_ACEOF
19633ac_clean_files=$ac_clean_files_save
19634
19635test $ac_write_fail = 0 ||
19636  as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
19637
19638
19639# configure is writing to config.log, and then calls config.status.
19640# config.status does its own redirection, appending to config.log.
19641# Unfortunately, on DOS this fails, as config.log is still kept open
19642# by configure, so config.status won't be able to write to it; its
19643# output is simply discarded.  So we exec the FD to /dev/null,
19644# effectively closing config.log, so it can be properly (re)opened and
19645# appended to by config.status.  When coming back to configure, we
19646# need to make the FD available again.
19647if test "$no_create" != yes; then
19648  ac_cs_success=:
19649  ac_config_status_args=
19650  test "$silent" = yes &&
19651    ac_config_status_args="$ac_config_status_args --quiet"
19652  exec 5>/dev/null
19653  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
19654  exec 5>>config.log
19655  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
19656  # would make configure fail if this is the last instruction.
19657  $ac_cs_success || as_fn_exit $?
19658fi
19659if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
19660  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
19661$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
19662fi
19663
19664