1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.65 for mac 3.99-u4-b5-s7.
4#
5#
6# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
7# 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation,
8# Inc.
9#
10#
11# This configure script is free software; the Free Software Foundation
12# gives unlimited permission to copy, distribute and modify it.
13## -------------------- ##
14## M4sh Initialization. ##
15## -------------------- ##
16
17# Be more Bourne compatible
18DUALCASE=1; export DUALCASE # for MKS sh
19if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
20  emulate sh
21  NULLCMD=:
22  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23  # is contrary to our usage.  Disable this feature.
24  alias -g '${1+"$@"}'='"$@"'
25  setopt NO_GLOB_SUBST
26else
27  case `(set -o) 2>/dev/null` in #(
28  *posix*) :
29    set -o posix ;; #(
30  *) :
31     ;;
32esac
33fi
34
35
36as_nl='
37'
38export as_nl
39# Printing a long string crashes Solaris 7 /usr/bin/printf.
40as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
42as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
43# Prefer a ksh shell builtin over an external printf program on Solaris,
44# but without wasting forks for bash or zsh.
45if test -z "$BASH_VERSION$ZSH_VERSION" \
46    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
47  as_echo='print -r --'
48  as_echo_n='print -rn --'
49elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
50  as_echo='printf %s\n'
51  as_echo_n='printf %s'
52else
53  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
55    as_echo_n='/usr/ucb/echo -n'
56  else
57    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
58    as_echo_n_body='eval
59      arg=$1;
60      case $arg in #(
61      *"$as_nl"*)
62	expr "X$arg" : "X\\(.*\\)$as_nl";
63	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
64      esac;
65      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
66    '
67    export as_echo_n_body
68    as_echo_n='sh -c $as_echo_n_body as_echo'
69  fi
70  export as_echo_body
71  as_echo='sh -c $as_echo_body as_echo'
72fi
73
74# The user is always right.
75if test "${PATH_SEPARATOR+set}" != set; then
76  PATH_SEPARATOR=:
77  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
79      PATH_SEPARATOR=';'
80  }
81fi
82
83
84# IFS
85# We need space, tab and new line, in precisely that order.  Quoting is
86# there to prevent editors from complaining about space-tab.
87# (If _AS_PATH_WALK were called with IFS unset, it would disable word
88# splitting by setting IFS to empty value.)
89IFS=" ""	$as_nl"
90
91# Find who we are.  Look in the path if we contain no directory separator.
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
174
175  test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
176    ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
177    ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
178    ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
179    PATH=/empty FPATH=/empty; export PATH FPATH
180    test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
181      || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1
182test \$(( 1 + 1 )) = 2 || 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 about your system,
240$0: including any error possibly output before this
241$0: message. Then install a modern shell, or manually run
242$0: 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
539test -n "$DJDIR" || exec 7<&0 </dev/null
540exec 6>&1
541
542# Name of the host.
543# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
544# so uname gets run too.
545ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
546
547#
548# Initializations.
549#
550ac_default_prefix=/usr/local
551ac_clean_files=
552ac_config_libobj_dir=.
553LIBOBJS=
554cross_compiling=no
555subdirs=
556MFLAGS=
557MAKEFLAGS=
558
559# Identity of this package.
560PACKAGE_NAME='mac'
561PACKAGE_TARNAME='mac'
562PACKAGE_VERSION='3.99-u4-b5-s7'
563PACKAGE_STRING='mac 3.99-u4-b5-s7'
564PACKAGE_BUGREPORT=''
565PACKAGE_URL=''
566
567ac_unique_file="src/Shared/GlobalFunctions.cpp"
568ac_default_prefix="/usr"
569# Factoring default headers for most tests.
570ac_includes_default="\
571#include <stdio.h>
572#ifdef HAVE_SYS_TYPES_H
573# include <sys/types.h>
574#endif
575#ifdef HAVE_SYS_STAT_H
576# include <sys/stat.h>
577#endif
578#ifdef STDC_HEADERS
579# include <stdlib.h>
580# include <stddef.h>
581#else
582# ifdef HAVE_STDLIB_H
583#  include <stdlib.h>
584# endif
585#endif
586#ifdef HAVE_STRING_H
587# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
588#  include <memory.h>
589# endif
590# include <string.h>
591#endif
592#ifdef HAVE_STRINGS_H
593# include <strings.h>
594#endif
595#ifdef HAVE_INTTYPES_H
596# include <inttypes.h>
597#endif
598#ifdef HAVE_STDINT_H
599# include <stdint.h>
600#endif
601#ifdef HAVE_UNISTD_H
602# include <unistd.h>
603#endif"
604
605ac_subst_vars='am__EXEEXT_FALSE
606am__EXEEXT_TRUE
607LTLIBOBJS
608YASM_FORMAT
609YASM_ARCH
610ARCH_PPC_FALSE
611ARCH_PPC_TRUE
612ARCH_SPARC_FALSE
613ARCH_SPARC_TRUE
614ARCH_X86_64_FALSE
615ARCH_X86_64_TRUE
616ARCH_X86_FALSE
617ARCH_X86_TRUE
618HAS_YASM_FALSE
619HAS_YASM_TRUE
620OS_WIN_FALSE
621OS_WIN_TRUE
622YASM
623ENABLE_ASSEMBLY_FALSE
624ENABLE_ASSEMBLY_TRUE
625LIBOBJS
626CXXCPP
627CPP
628OTOOL64
629OTOOL
630LIPO
631NMEDIT
632DSYMUTIL
633RANLIB
634AR
635OBJDUMP
636LN_S
637NM
638ac_ct_DUMPBIN
639DUMPBIN
640LD
641FGREP
642EGREP
643GREP
644SED
645host_os
646host_vendor
647host_cpu
648host
649build_os
650build_vendor
651build_cpu
652build
653LIBTOOL
654am__fastdepCC_FALSE
655am__fastdepCC_TRUE
656CCDEPMODE
657ac_ct_CC
658CFLAGS
659CC
660am__fastdepCXX_FALSE
661am__fastdepCXX_TRUE
662CXXDEPMODE
663AMDEPBACKSLASH
664AMDEP_FALSE
665AMDEP_TRUE
666am__quote
667am__include
668DEPDIR
669OBJEXT
670EXEEXT
671ac_ct_CXX
672CPPFLAGS
673LDFLAGS
674CXXFLAGS
675CXX
676MAINT
677MAINTAINER_MODE_FALSE
678MAINTAINER_MODE_TRUE
679am__untar
680am__tar
681AMTAR
682am__leading_dot
683SET_MAKE
684AWK
685mkdir_p
686MKDIR_P
687INSTALL_STRIP_PROGRAM
688STRIP
689install_sh
690MAKEINFO
691AUTOHEADER
692AUTOMAKE
693AUTOCONF
694ACLOCAL
695VERSION
696PACKAGE
697CYGPATH_W
698am__isrc
699INSTALL_DATA
700INSTALL_SCRIPT
701INSTALL_PROGRAM
702target_alias
703host_alias
704build_alias
705LIBS
706ECHO_T
707ECHO_N
708ECHO_C
709DEFS
710mandir
711localedir
712libdir
713psdir
714pdfdir
715dvidir
716htmldir
717infodir
718docdir
719oldincludedir
720includedir
721localstatedir
722sharedstatedir
723sysconfdir
724datadir
725datarootdir
726libexecdir
727sbindir
728bindir
729program_transform_name
730prefix
731exec_prefix
732PACKAGE_URL
733PACKAGE_BUGREPORT
734PACKAGE_STRING
735PACKAGE_VERSION
736PACKAGE_TARNAME
737PACKAGE_NAME
738PATH_SEPARATOR
739SHELL'
740ac_subst_files=''
741ac_user_opts='
742enable_option_checking
743enable_maintainer_mode
744enable_dependency_tracking
745enable_shared
746enable_static
747with_pic
748enable_fast_install
749with_gnu_ld
750enable_libtool_lock
751enable_assembly
752'
753      ac_precious_vars='build_alias
754host_alias
755target_alias
756CXX
757CXXFLAGS
758LDFLAGS
759LIBS
760CPPFLAGS
761CCC
762CC
763CFLAGS
764CPP
765CXXCPP'
766
767
768# Initialize some variables set by options.
769ac_init_help=
770ac_init_version=false
771ac_unrecognized_opts=
772ac_unrecognized_sep=
773# The variables have the same names as the options, with
774# dashes changed to underlines.
775cache_file=/dev/null
776exec_prefix=NONE
777no_create=
778no_recursion=
779prefix=NONE
780program_prefix=NONE
781program_suffix=NONE
782program_transform_name=s,x,x,
783silent=
784site=
785srcdir=
786verbose=
787x_includes=NONE
788x_libraries=NONE
789
790# Installation directory options.
791# These are left unexpanded so users can "make install exec_prefix=/foo"
792# and all the variables that are supposed to be based on exec_prefix
793# by default will actually change.
794# Use braces instead of parens because sh, perl, etc. also accept them.
795# (The list follows the same order as the GNU Coding Standards.)
796bindir='${exec_prefix}/bin'
797sbindir='${exec_prefix}/sbin'
798libexecdir='${exec_prefix}/libexec'
799datarootdir='${prefix}/share'
800datadir='${datarootdir}'
801sysconfdir='${prefix}/etc'
802sharedstatedir='${prefix}/com'
803localstatedir='${prefix}/var'
804includedir='${prefix}/include'
805oldincludedir='/usr/include'
806docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
807infodir='${datarootdir}/info'
808htmldir='${docdir}'
809dvidir='${docdir}'
810pdfdir='${docdir}'
811psdir='${docdir}'
812libdir='${exec_prefix}/lib'
813localedir='${datarootdir}/locale'
814mandir='${datarootdir}/man'
815
816ac_prev=
817ac_dashdash=
818for ac_option
819do
820  # If the previous option needs an argument, assign it.
821  if test -n "$ac_prev"; then
822    eval $ac_prev=\$ac_option
823    ac_prev=
824    continue
825  fi
826
827  case $ac_option in
828  *=*)	ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
829  *)	ac_optarg=yes ;;
830  esac
831
832  # Accept the important Cygnus configure options, so we can diagnose typos.
833
834  case $ac_dashdash$ac_option in
835  --)
836    ac_dashdash=yes ;;
837
838  -bindir | --bindir | --bindi | --bind | --bin | --bi)
839    ac_prev=bindir ;;
840  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
841    bindir=$ac_optarg ;;
842
843  -build | --build | --buil | --bui | --bu)
844    ac_prev=build_alias ;;
845  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
846    build_alias=$ac_optarg ;;
847
848  -cache-file | --cache-file | --cache-fil | --cache-fi \
849  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
850    ac_prev=cache_file ;;
851  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
852  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
853    cache_file=$ac_optarg ;;
854
855  --config-cache | -C)
856    cache_file=config.cache ;;
857
858  -datadir | --datadir | --datadi | --datad)
859    ac_prev=datadir ;;
860  -datadir=* | --datadir=* | --datadi=* | --datad=*)
861    datadir=$ac_optarg ;;
862
863  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
864  | --dataroo | --dataro | --datar)
865    ac_prev=datarootdir ;;
866  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
867  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
868    datarootdir=$ac_optarg ;;
869
870  -disable-* | --disable-*)
871    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
872    # Reject names that are not valid shell variable names.
873    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
874      as_fn_error "invalid feature name: $ac_useropt"
875    ac_useropt_orig=$ac_useropt
876    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
877    case $ac_user_opts in
878      *"
879"enable_$ac_useropt"
880"*) ;;
881      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
882	 ac_unrecognized_sep=', ';;
883    esac
884    eval enable_$ac_useropt=no ;;
885
886  -docdir | --docdir | --docdi | --doc | --do)
887    ac_prev=docdir ;;
888  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
889    docdir=$ac_optarg ;;
890
891  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
892    ac_prev=dvidir ;;
893  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
894    dvidir=$ac_optarg ;;
895
896  -enable-* | --enable-*)
897    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
898    # Reject names that are not valid shell variable names.
899    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
900      as_fn_error "invalid feature name: $ac_useropt"
901    ac_useropt_orig=$ac_useropt
902    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
903    case $ac_user_opts in
904      *"
905"enable_$ac_useropt"
906"*) ;;
907      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
908	 ac_unrecognized_sep=', ';;
909    esac
910    eval enable_$ac_useropt=\$ac_optarg ;;
911
912  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
913  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
914  | --exec | --exe | --ex)
915    ac_prev=exec_prefix ;;
916  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
917  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
918  | --exec=* | --exe=* | --ex=*)
919    exec_prefix=$ac_optarg ;;
920
921  -gas | --gas | --ga | --g)
922    # Obsolete; use --with-gas.
923    with_gas=yes ;;
924
925  -help | --help | --hel | --he | -h)
926    ac_init_help=long ;;
927  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
928    ac_init_help=recursive ;;
929  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
930    ac_init_help=short ;;
931
932  -host | --host | --hos | --ho)
933    ac_prev=host_alias ;;
934  -host=* | --host=* | --hos=* | --ho=*)
935    host_alias=$ac_optarg ;;
936
937  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
938    ac_prev=htmldir ;;
939  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
940  | --ht=*)
941    htmldir=$ac_optarg ;;
942
943  -includedir | --includedir | --includedi | --included | --include \
944  | --includ | --inclu | --incl | --inc)
945    ac_prev=includedir ;;
946  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
947  | --includ=* | --inclu=* | --incl=* | --inc=*)
948    includedir=$ac_optarg ;;
949
950  -infodir | --infodir | --infodi | --infod | --info | --inf)
951    ac_prev=infodir ;;
952  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
953    infodir=$ac_optarg ;;
954
955  -libdir | --libdir | --libdi | --libd)
956    ac_prev=libdir ;;
957  -libdir=* | --libdir=* | --libdi=* | --libd=*)
958    libdir=$ac_optarg ;;
959
960  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
961  | --libexe | --libex | --libe)
962    ac_prev=libexecdir ;;
963  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
964  | --libexe=* | --libex=* | --libe=*)
965    libexecdir=$ac_optarg ;;
966
967  -localedir | --localedir | --localedi | --localed | --locale)
968    ac_prev=localedir ;;
969  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
970    localedir=$ac_optarg ;;
971
972  -localstatedir | --localstatedir | --localstatedi | --localstated \
973  | --localstate | --localstat | --localsta | --localst | --locals)
974    ac_prev=localstatedir ;;
975  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
976  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
977    localstatedir=$ac_optarg ;;
978
979  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
980    ac_prev=mandir ;;
981  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
982    mandir=$ac_optarg ;;
983
984  -nfp | --nfp | --nf)
985    # Obsolete; use --without-fp.
986    with_fp=no ;;
987
988  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
989  | --no-cr | --no-c | -n)
990    no_create=yes ;;
991
992  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
993  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
994    no_recursion=yes ;;
995
996  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
997  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
998  | --oldin | --oldi | --old | --ol | --o)
999    ac_prev=oldincludedir ;;
1000  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1001  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1002  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1003    oldincludedir=$ac_optarg ;;
1004
1005  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1006    ac_prev=prefix ;;
1007  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1008    prefix=$ac_optarg ;;
1009
1010  -program-prefix | --program-prefix | --program-prefi | --program-pref \
1011  | --program-pre | --program-pr | --program-p)
1012    ac_prev=program_prefix ;;
1013  -program-prefix=* | --program-prefix=* | --program-prefi=* \
1014  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1015    program_prefix=$ac_optarg ;;
1016
1017  -program-suffix | --program-suffix | --program-suffi | --program-suff \
1018  | --program-suf | --program-su | --program-s)
1019    ac_prev=program_suffix ;;
1020  -program-suffix=* | --program-suffix=* | --program-suffi=* \
1021  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1022    program_suffix=$ac_optarg ;;
1023
1024  -program-transform-name | --program-transform-name \
1025  | --program-transform-nam | --program-transform-na \
1026  | --program-transform-n | --program-transform- \
1027  | --program-transform | --program-transfor \
1028  | --program-transfo | --program-transf \
1029  | --program-trans | --program-tran \
1030  | --progr-tra | --program-tr | --program-t)
1031    ac_prev=program_transform_name ;;
1032  -program-transform-name=* | --program-transform-name=* \
1033  | --program-transform-nam=* | --program-transform-na=* \
1034  | --program-transform-n=* | --program-transform-=* \
1035  | --program-transform=* | --program-transfor=* \
1036  | --program-transfo=* | --program-transf=* \
1037  | --program-trans=* | --program-tran=* \
1038  | --progr-tra=* | --program-tr=* | --program-t=*)
1039    program_transform_name=$ac_optarg ;;
1040
1041  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1042    ac_prev=pdfdir ;;
1043  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1044    pdfdir=$ac_optarg ;;
1045
1046  -psdir | --psdir | --psdi | --psd | --ps)
1047    ac_prev=psdir ;;
1048  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1049    psdir=$ac_optarg ;;
1050
1051  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1052  | -silent | --silent | --silen | --sile | --sil)
1053    silent=yes ;;
1054
1055  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1056    ac_prev=sbindir ;;
1057  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1058  | --sbi=* | --sb=*)
1059    sbindir=$ac_optarg ;;
1060
1061  -sharedstatedir | --sharedstatedir | --sharedstatedi \
1062  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1063  | --sharedst | --shareds | --shared | --share | --shar \
1064  | --sha | --sh)
1065    ac_prev=sharedstatedir ;;
1066  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1067  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1068  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1069  | --sha=* | --sh=*)
1070    sharedstatedir=$ac_optarg ;;
1071
1072  -site | --site | --sit)
1073    ac_prev=site ;;
1074  -site=* | --site=* | --sit=*)
1075    site=$ac_optarg ;;
1076
1077  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1078    ac_prev=srcdir ;;
1079  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1080    srcdir=$ac_optarg ;;
1081
1082  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1083  | --syscon | --sysco | --sysc | --sys | --sy)
1084    ac_prev=sysconfdir ;;
1085  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1086  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1087    sysconfdir=$ac_optarg ;;
1088
1089  -target | --target | --targe | --targ | --tar | --ta | --t)
1090    ac_prev=target_alias ;;
1091  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1092    target_alias=$ac_optarg ;;
1093
1094  -v | -verbose | --verbose | --verbos | --verbo | --verb)
1095    verbose=yes ;;
1096
1097  -version | --version | --versio | --versi | --vers | -V)
1098    ac_init_version=: ;;
1099
1100  -with-* | --with-*)
1101    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1102    # Reject names that are not valid shell variable names.
1103    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1104      as_fn_error "invalid package name: $ac_useropt"
1105    ac_useropt_orig=$ac_useropt
1106    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1107    case $ac_user_opts in
1108      *"
1109"with_$ac_useropt"
1110"*) ;;
1111      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1112	 ac_unrecognized_sep=', ';;
1113    esac
1114    eval with_$ac_useropt=\$ac_optarg ;;
1115
1116  -without-* | --without-*)
1117    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1118    # Reject names that are not valid shell variable names.
1119    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1120      as_fn_error "invalid package name: $ac_useropt"
1121    ac_useropt_orig=$ac_useropt
1122    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1123    case $ac_user_opts in
1124      *"
1125"with_$ac_useropt"
1126"*) ;;
1127      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1128	 ac_unrecognized_sep=', ';;
1129    esac
1130    eval with_$ac_useropt=no ;;
1131
1132  --x)
1133    # Obsolete; use --with-x.
1134    with_x=yes ;;
1135
1136  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1137  | --x-incl | --x-inc | --x-in | --x-i)
1138    ac_prev=x_includes ;;
1139  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1140  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1141    x_includes=$ac_optarg ;;
1142
1143  -x-libraries | --x-libraries | --x-librarie | --x-librari \
1144  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1145    ac_prev=x_libraries ;;
1146  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1147  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1148    x_libraries=$ac_optarg ;;
1149
1150  -*) as_fn_error "unrecognized option: \`$ac_option'
1151Try \`$0 --help' for more information."
1152    ;;
1153
1154  *=*)
1155    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1156    # Reject names that are not valid shell variable names.
1157    case $ac_envvar in #(
1158      '' | [0-9]* | *[!_$as_cr_alnum]* )
1159      as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1160    esac
1161    eval $ac_envvar=\$ac_optarg
1162    export $ac_envvar ;;
1163
1164  *)
1165    # FIXME: should be removed in autoconf 3.0.
1166    $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1167    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1168      $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1169    : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1170    ;;
1171
1172  esac
1173done
1174
1175if test -n "$ac_prev"; then
1176  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1177  as_fn_error "missing argument to $ac_option"
1178fi
1179
1180if test -n "$ac_unrecognized_opts"; then
1181  case $enable_option_checking in
1182    no) ;;
1183    fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1184    *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1185  esac
1186fi
1187
1188# Check all directory arguments for consistency.
1189for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
1190		datadir sysconfdir sharedstatedir localstatedir includedir \
1191		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1192		libdir localedir mandir
1193do
1194  eval ac_val=\$$ac_var
1195  # Remove trailing slashes.
1196  case $ac_val in
1197    */ )
1198      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1199      eval $ac_var=\$ac_val;;
1200  esac
1201  # Be sure to have absolute directory names.
1202  case $ac_val in
1203    [\\/$]* | ?:[\\/]* )  continue;;
1204    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1205  esac
1206  as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1207done
1208
1209# There might be people who depend on the old broken behavior: `$host'
1210# used to hold the argument of --host etc.
1211# FIXME: To remove some day.
1212build=$build_alias
1213host=$host_alias
1214target=$target_alias
1215
1216# FIXME: To remove some day.
1217if test "x$host_alias" != x; then
1218  if test "x$build_alias" = x; then
1219    cross_compiling=maybe
1220    $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1221    If a cross compiler is detected then cross compile mode will be used." >&2
1222  elif test "x$build_alias" != "x$host_alias"; then
1223    cross_compiling=yes
1224  fi
1225fi
1226
1227ac_tool_prefix=
1228test -n "$host_alias" && ac_tool_prefix=$host_alias-
1229
1230test "$silent" = yes && exec 6>/dev/null
1231
1232
1233ac_pwd=`pwd` && test -n "$ac_pwd" &&
1234ac_ls_di=`ls -di .` &&
1235ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1236  as_fn_error "working directory cannot be determined"
1237test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1238  as_fn_error "pwd does not report name of working directory"
1239
1240
1241# Find the source files, if location was not specified.
1242if test -z "$srcdir"; then
1243  ac_srcdir_defaulted=yes
1244  # Try the directory containing this script, then the parent directory.
1245  ac_confdir=`$as_dirname -- "$as_myself" ||
1246$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1247	 X"$as_myself" : 'X\(//\)[^/]' \| \
1248	 X"$as_myself" : 'X\(//\)$' \| \
1249	 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1250$as_echo X"$as_myself" |
1251    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1252	    s//\1/
1253	    q
1254	  }
1255	  /^X\(\/\/\)[^/].*/{
1256	    s//\1/
1257	    q
1258	  }
1259	  /^X\(\/\/\)$/{
1260	    s//\1/
1261	    q
1262	  }
1263	  /^X\(\/\).*/{
1264	    s//\1/
1265	    q
1266	  }
1267	  s/.*/./; q'`
1268  srcdir=$ac_confdir
1269  if test ! -r "$srcdir/$ac_unique_file"; then
1270    srcdir=..
1271  fi
1272else
1273  ac_srcdir_defaulted=no
1274fi
1275if test ! -r "$srcdir/$ac_unique_file"; then
1276  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1277  as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1278fi
1279ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1280ac_abs_confdir=`(
1281	cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1282	pwd)`
1283# When building in place, set srcdir=.
1284if test "$ac_abs_confdir" = "$ac_pwd"; then
1285  srcdir=.
1286fi
1287# Remove unnecessary trailing slashes from srcdir.
1288# Double slashes in file names in object file debugging info
1289# mess up M-x gdb in Emacs.
1290case $srcdir in
1291*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1292esac
1293for ac_var in $ac_precious_vars; do
1294  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1295  eval ac_env_${ac_var}_value=\$${ac_var}
1296  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1297  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1298done
1299
1300#
1301# Report the --help message.
1302#
1303if test "$ac_init_help" = "long"; then
1304  # Omit some internal or obsolete options to make the list less imposing.
1305  # This message is too long to be a string in the A/UX 3.1 sh.
1306  cat <<_ACEOF
1307\`configure' configures mac 3.99-u4-b5-s7 to adapt to many kinds of systems.
1308
1309Usage: $0 [OPTION]... [VAR=VALUE]...
1310
1311To assign environment variables (e.g., CC, CFLAGS...), specify them as
1312VAR=VALUE.  See below for descriptions of some of the useful variables.
1313
1314Defaults for the options are specified in brackets.
1315
1316Configuration:
1317  -h, --help              display this help and exit
1318      --help=short        display options specific to this package
1319      --help=recursive    display the short help of all the included packages
1320  -V, --version           display version information and exit
1321  -q, --quiet, --silent   do not print \`checking...' messages
1322      --cache-file=FILE   cache test results in FILE [disabled]
1323  -C, --config-cache      alias for \`--cache-file=config.cache'
1324  -n, --no-create         do not create output files
1325      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1326
1327Installation directories:
1328  --prefix=PREFIX         install architecture-independent files in PREFIX
1329                          [$ac_default_prefix]
1330  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1331                          [PREFIX]
1332
1333By default, \`make install' will install all the files in
1334\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1335an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1336for instance \`--prefix=\$HOME'.
1337
1338For better control, use the options below.
1339
1340Fine tuning of the installation directories:
1341  --bindir=DIR            user executables [EPREFIX/bin]
1342  --sbindir=DIR           system admin executables [EPREFIX/sbin]
1343  --libexecdir=DIR        program executables [EPREFIX/libexec]
1344  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1345  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1346  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1347  --libdir=DIR            object code libraries [EPREFIX/lib]
1348  --includedir=DIR        C header files [PREFIX/include]
1349  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1350  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1351  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1352  --infodir=DIR           info documentation [DATAROOTDIR/info]
1353  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1354  --mandir=DIR            man documentation [DATAROOTDIR/man]
1355  --docdir=DIR            documentation root [DATAROOTDIR/doc/mac]
1356  --htmldir=DIR           html documentation [DOCDIR]
1357  --dvidir=DIR            dvi documentation [DOCDIR]
1358  --pdfdir=DIR            pdf documentation [DOCDIR]
1359  --psdir=DIR             ps documentation [DOCDIR]
1360_ACEOF
1361
1362  cat <<\_ACEOF
1363
1364Program names:
1365  --program-prefix=PREFIX            prepend PREFIX to installed program names
1366  --program-suffix=SUFFIX            append SUFFIX to installed program names
1367  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1368
1369System types:
1370  --build=BUILD     configure for building on BUILD [guessed]
1371  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1372_ACEOF
1373fi
1374
1375if test -n "$ac_init_help"; then
1376  case $ac_init_help in
1377     short | recursive ) echo "Configuration of mac 3.99-u4-b5-s7:";;
1378   esac
1379  cat <<\_ACEOF
1380
1381Optional Features:
1382  --disable-option-checking  ignore unrecognized --enable/--with options
1383  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1384  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1385  --enable-maintainer-mode  enable make rules and dependencies not useful
1386			  (and sometimes confusing) to the casual installer
1387  --disable-dependency-tracking  speeds up one-time build
1388  --enable-dependency-tracking   do not reject slow dependency extractors
1389  --enable-shared[=PKGS]  build shared libraries [default=yes]
1390  --enable-static[=PKGS]  build static libraries [default=yes]
1391  --enable-fast-install[=PKGS]
1392                          optimize for fast installation [default=yes]
1393  --disable-libtool-lock  avoid locking (might break parallel builds)
1394  --enable-assembly=yes,no      enable assembly or not
1395
1396Optional Packages:
1397  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1398  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1399  --with-pic              try to use only PIC/non-PIC objects [default=use
1400                          both]
1401  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1402
1403Some influential environment variables:
1404  CXX         C++ compiler command
1405  CXXFLAGS    C++ compiler flags
1406  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1407              nonstandard directory <lib dir>
1408  LIBS        libraries to pass to the linker, e.g. -l<library>
1409  CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1410              you have headers in a nonstandard directory <include dir>
1411  CC          C compiler command
1412  CFLAGS      C compiler flags
1413  CPP         C preprocessor
1414  CXXCPP      C++ preprocessor
1415
1416Use these variables to override the choices made by `configure' or to help
1417it to find libraries and programs with nonstandard names/locations.
1418
1419Report bugs to the package provider.
1420_ACEOF
1421ac_status=$?
1422fi
1423
1424if test "$ac_init_help" = "recursive"; then
1425  # If there are subdirs, report their specific --help.
1426  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1427    test -d "$ac_dir" ||
1428      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1429      continue
1430    ac_builddir=.
1431
1432case "$ac_dir" in
1433.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1434*)
1435  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1436  # A ".." for each directory in $ac_dir_suffix.
1437  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1438  case $ac_top_builddir_sub in
1439  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1440  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1441  esac ;;
1442esac
1443ac_abs_top_builddir=$ac_pwd
1444ac_abs_builddir=$ac_pwd$ac_dir_suffix
1445# for backward compatibility:
1446ac_top_builddir=$ac_top_build_prefix
1447
1448case $srcdir in
1449  .)  # We are building in place.
1450    ac_srcdir=.
1451    ac_top_srcdir=$ac_top_builddir_sub
1452    ac_abs_top_srcdir=$ac_pwd ;;
1453  [\\/]* | ?:[\\/]* )  # Absolute name.
1454    ac_srcdir=$srcdir$ac_dir_suffix;
1455    ac_top_srcdir=$srcdir
1456    ac_abs_top_srcdir=$srcdir ;;
1457  *) # Relative name.
1458    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1459    ac_top_srcdir=$ac_top_build_prefix$srcdir
1460    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1461esac
1462ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1463
1464    cd "$ac_dir" || { ac_status=$?; continue; }
1465    # Check for guested configure.
1466    if test -f "$ac_srcdir/configure.gnu"; then
1467      echo &&
1468      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1469    elif test -f "$ac_srcdir/configure"; then
1470      echo &&
1471      $SHELL "$ac_srcdir/configure" --help=recursive
1472    else
1473      $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1474    fi || ac_status=$?
1475    cd "$ac_pwd" || { ac_status=$?; break; }
1476  done
1477fi
1478
1479test -n "$ac_init_help" && exit $ac_status
1480if $ac_init_version; then
1481  cat <<\_ACEOF
1482mac configure 3.99-u4-b5-s7
1483generated by GNU Autoconf 2.65
1484
1485Copyright (C) 2009 Free Software Foundation, Inc.
1486This configure script is free software; the Free Software Foundation
1487gives unlimited permission to copy, distribute and modify it.
1488_ACEOF
1489  exit
1490fi
1491
1492## ------------------------ ##
1493## Autoconf initialization. ##
1494## ------------------------ ##
1495
1496# ac_fn_cxx_try_compile LINENO
1497# ----------------------------
1498# Try to compile conftest.$ac_ext, and return whether this succeeded.
1499ac_fn_cxx_try_compile ()
1500{
1501  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1502  rm -f conftest.$ac_objext
1503  if { { ac_try="$ac_compile"
1504case "(($ac_try" in
1505  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1506  *) ac_try_echo=$ac_try;;
1507esac
1508eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1509$as_echo "$ac_try_echo"; } >&5
1510  (eval "$ac_compile") 2>conftest.err
1511  ac_status=$?
1512  if test -s conftest.err; then
1513    grep -v '^ *+' conftest.err >conftest.er1
1514    cat conftest.er1 >&5
1515    mv -f conftest.er1 conftest.err
1516  fi
1517  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1518  test $ac_status = 0; } && {
1519	 test -z "$ac_cxx_werror_flag" ||
1520	 test ! -s conftest.err
1521       } && test -s conftest.$ac_objext; then :
1522  ac_retval=0
1523else
1524  $as_echo "$as_me: failed program was:" >&5
1525sed 's/^/| /' conftest.$ac_ext >&5
1526
1527	ac_retval=1
1528fi
1529  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1530  as_fn_set_status $ac_retval
1531
1532} # ac_fn_cxx_try_compile
1533
1534# ac_fn_c_try_compile LINENO
1535# --------------------------
1536# Try to compile conftest.$ac_ext, and return whether this succeeded.
1537ac_fn_c_try_compile ()
1538{
1539  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1540  rm -f conftest.$ac_objext
1541  if { { ac_try="$ac_compile"
1542case "(($ac_try" in
1543  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1544  *) ac_try_echo=$ac_try;;
1545esac
1546eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1547$as_echo "$ac_try_echo"; } >&5
1548  (eval "$ac_compile") 2>conftest.err
1549  ac_status=$?
1550  if test -s conftest.err; then
1551    grep -v '^ *+' conftest.err >conftest.er1
1552    cat conftest.er1 >&5
1553    mv -f conftest.er1 conftest.err
1554  fi
1555  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1556  test $ac_status = 0; } && {
1557	 test -z "$ac_c_werror_flag" ||
1558	 test ! -s conftest.err
1559       } && test -s conftest.$ac_objext; then :
1560  ac_retval=0
1561else
1562  $as_echo "$as_me: failed program was:" >&5
1563sed 's/^/| /' conftest.$ac_ext >&5
1564
1565	ac_retval=1
1566fi
1567  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1568  as_fn_set_status $ac_retval
1569
1570} # ac_fn_c_try_compile
1571
1572# ac_fn_c_try_link LINENO
1573# -----------------------
1574# Try to link conftest.$ac_ext, and return whether this succeeded.
1575ac_fn_c_try_link ()
1576{
1577  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1578  rm -f conftest.$ac_objext conftest$ac_exeext
1579  if { { ac_try="$ac_link"
1580case "(($ac_try" in
1581  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1582  *) ac_try_echo=$ac_try;;
1583esac
1584eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1585$as_echo "$ac_try_echo"; } >&5
1586  (eval "$ac_link") 2>conftest.err
1587  ac_status=$?
1588  if test -s conftest.err; then
1589    grep -v '^ *+' conftest.err >conftest.er1
1590    cat conftest.er1 >&5
1591    mv -f conftest.er1 conftest.err
1592  fi
1593  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1594  test $ac_status = 0; } && {
1595	 test -z "$ac_c_werror_flag" ||
1596	 test ! -s conftest.err
1597       } && test -s conftest$ac_exeext && {
1598	 test "$cross_compiling" = yes ||
1599	 $as_test_x conftest$ac_exeext
1600       }; then :
1601  ac_retval=0
1602else
1603  $as_echo "$as_me: failed program was:" >&5
1604sed 's/^/| /' conftest.$ac_ext >&5
1605
1606	ac_retval=1
1607fi
1608  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1609  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1610  # interfere with the next link command; also delete a directory that is
1611  # left behind by Apple's compiler.  We do this before executing the actions.
1612  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1613  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1614  as_fn_set_status $ac_retval
1615
1616} # ac_fn_c_try_link
1617
1618# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1619# -------------------------------------------------------
1620# Tests whether HEADER exists and can be compiled using the include files in
1621# INCLUDES, setting the cache variable VAR accordingly.
1622ac_fn_c_check_header_compile ()
1623{
1624  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1625  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1626$as_echo_n "checking for $2... " >&6; }
1627if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1628  $as_echo_n "(cached) " >&6
1629else
1630  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1631/* end confdefs.h.  */
1632$4
1633#include <$2>
1634_ACEOF
1635if ac_fn_c_try_compile "$LINENO"; then :
1636  eval "$3=yes"
1637else
1638  eval "$3=no"
1639fi
1640rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1641fi
1642eval ac_res=\$$3
1643	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1644$as_echo "$ac_res" >&6; }
1645  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1646
1647} # ac_fn_c_check_header_compile
1648
1649# ac_fn_c_try_cpp LINENO
1650# ----------------------
1651# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1652ac_fn_c_try_cpp ()
1653{
1654  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1655  if { { ac_try="$ac_cpp conftest.$ac_ext"
1656case "(($ac_try" in
1657  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1658  *) ac_try_echo=$ac_try;;
1659esac
1660eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1661$as_echo "$ac_try_echo"; } >&5
1662  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1663  ac_status=$?
1664  if test -s conftest.err; then
1665    grep -v '^ *+' conftest.err >conftest.er1
1666    cat conftest.er1 >&5
1667    mv -f conftest.er1 conftest.err
1668  fi
1669  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1670  test $ac_status = 0; } >/dev/null && {
1671	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1672	 test ! -s conftest.err
1673       }; then :
1674  ac_retval=0
1675else
1676  $as_echo "$as_me: failed program was:" >&5
1677sed 's/^/| /' conftest.$ac_ext >&5
1678
1679    ac_retval=1
1680fi
1681  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1682  as_fn_set_status $ac_retval
1683
1684} # ac_fn_c_try_cpp
1685
1686# ac_fn_c_try_run LINENO
1687# ----------------------
1688# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1689# that executables *can* be run.
1690ac_fn_c_try_run ()
1691{
1692  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1693  if { { ac_try="$ac_link"
1694case "(($ac_try" in
1695  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1696  *) ac_try_echo=$ac_try;;
1697esac
1698eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1699$as_echo "$ac_try_echo"; } >&5
1700  (eval "$ac_link") 2>&5
1701  ac_status=$?
1702  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1703  test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1704  { { case "(($ac_try" in
1705  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1706  *) ac_try_echo=$ac_try;;
1707esac
1708eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1709$as_echo "$ac_try_echo"; } >&5
1710  (eval "$ac_try") 2>&5
1711  ac_status=$?
1712  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1713  test $ac_status = 0; }; }; then :
1714  ac_retval=0
1715else
1716  $as_echo "$as_me: program exited with status $ac_status" >&5
1717       $as_echo "$as_me: failed program was:" >&5
1718sed 's/^/| /' conftest.$ac_ext >&5
1719
1720       ac_retval=$ac_status
1721fi
1722  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1723  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1724  as_fn_set_status $ac_retval
1725
1726} # ac_fn_c_try_run
1727
1728# ac_fn_c_check_func LINENO FUNC VAR
1729# ----------------------------------
1730# Tests whether FUNC exists, setting the cache variable VAR accordingly
1731ac_fn_c_check_func ()
1732{
1733  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1734  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1735$as_echo_n "checking for $2... " >&6; }
1736if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1737  $as_echo_n "(cached) " >&6
1738else
1739  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1740/* end confdefs.h.  */
1741/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1742   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
1743#define $2 innocuous_$2
1744
1745/* System header to define __stub macros and hopefully few prototypes,
1746    which can conflict with char $2 (); below.
1747    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1748    <limits.h> exists even on freestanding compilers.  */
1749
1750#ifdef __STDC__
1751# include <limits.h>
1752#else
1753# include <assert.h>
1754#endif
1755
1756#undef $2
1757
1758/* Override any GCC internal prototype to avoid an error.
1759   Use char because int might match the return type of a GCC
1760   builtin and then its argument prototype would still apply.  */
1761#ifdef __cplusplus
1762extern "C"
1763#endif
1764char $2 ();
1765/* The GNU C library defines this for functions which it implements
1766    to always fail with ENOSYS.  Some functions are actually named
1767    something starting with __ and the normal name is an alias.  */
1768#if defined __stub_$2 || defined __stub___$2
1769choke me
1770#endif
1771
1772int
1773main ()
1774{
1775return $2 ();
1776  ;
1777  return 0;
1778}
1779_ACEOF
1780if ac_fn_c_try_link "$LINENO"; then :
1781  eval "$3=yes"
1782else
1783  eval "$3=no"
1784fi
1785rm -f core conftest.err conftest.$ac_objext \
1786    conftest$ac_exeext conftest.$ac_ext
1787fi
1788eval ac_res=\$$3
1789	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1790$as_echo "$ac_res" >&6; }
1791  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1792
1793} # ac_fn_c_check_func
1794
1795# ac_fn_cxx_try_cpp LINENO
1796# ------------------------
1797# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1798ac_fn_cxx_try_cpp ()
1799{
1800  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1801  if { { ac_try="$ac_cpp conftest.$ac_ext"
1802case "(($ac_try" in
1803  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1804  *) ac_try_echo=$ac_try;;
1805esac
1806eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1807$as_echo "$ac_try_echo"; } >&5
1808  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1809  ac_status=$?
1810  if test -s conftest.err; then
1811    grep -v '^ *+' conftest.err >conftest.er1
1812    cat conftest.er1 >&5
1813    mv -f conftest.er1 conftest.err
1814  fi
1815  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1816  test $ac_status = 0; } >/dev/null && {
1817	 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
1818	 test ! -s conftest.err
1819       }; then :
1820  ac_retval=0
1821else
1822  $as_echo "$as_me: failed program was:" >&5
1823sed 's/^/| /' conftest.$ac_ext >&5
1824
1825    ac_retval=1
1826fi
1827  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1828  as_fn_set_status $ac_retval
1829
1830} # ac_fn_cxx_try_cpp
1831
1832# ac_fn_cxx_try_link LINENO
1833# -------------------------
1834# Try to link conftest.$ac_ext, and return whether this succeeded.
1835ac_fn_cxx_try_link ()
1836{
1837  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1838  rm -f conftest.$ac_objext conftest$ac_exeext
1839  if { { ac_try="$ac_link"
1840case "(($ac_try" in
1841  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1842  *) ac_try_echo=$ac_try;;
1843esac
1844eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1845$as_echo "$ac_try_echo"; } >&5
1846  (eval "$ac_link") 2>conftest.err
1847  ac_status=$?
1848  if test -s conftest.err; then
1849    grep -v '^ *+' conftest.err >conftest.er1
1850    cat conftest.er1 >&5
1851    mv -f conftest.er1 conftest.err
1852  fi
1853  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1854  test $ac_status = 0; } && {
1855	 test -z "$ac_cxx_werror_flag" ||
1856	 test ! -s conftest.err
1857       } && test -s conftest$ac_exeext && {
1858	 test "$cross_compiling" = yes ||
1859	 $as_test_x conftest$ac_exeext
1860       }; then :
1861  ac_retval=0
1862else
1863  $as_echo "$as_me: failed program was:" >&5
1864sed 's/^/| /' conftest.$ac_ext >&5
1865
1866	ac_retval=1
1867fi
1868  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1869  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1870  # interfere with the next link command; also delete a directory that is
1871  # left behind by Apple's compiler.  We do this before executing the actions.
1872  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1873  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1874  as_fn_set_status $ac_retval
1875
1876} # ac_fn_cxx_try_link
1877
1878# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1879# -------------------------------------------------------
1880# Tests whether HEADER exists, giving a warning if it cannot be compiled using
1881# the include files in INCLUDES and setting the cache variable VAR
1882# accordingly.
1883ac_fn_c_check_header_mongrel ()
1884{
1885  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1886  if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1887  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1888$as_echo_n "checking for $2... " >&6; }
1889if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1890  $as_echo_n "(cached) " >&6
1891fi
1892eval ac_res=\$$3
1893	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1894$as_echo "$ac_res" >&6; }
1895else
1896  # Is the header compilable?
1897{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1898$as_echo_n "checking $2 usability... " >&6; }
1899cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1900/* end confdefs.h.  */
1901$4
1902#include <$2>
1903_ACEOF
1904if ac_fn_c_try_compile "$LINENO"; then :
1905  ac_header_compiler=yes
1906else
1907  ac_header_compiler=no
1908fi
1909rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1910{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1911$as_echo "$ac_header_compiler" >&6; }
1912
1913# Is the header present?
1914{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1915$as_echo_n "checking $2 presence... " >&6; }
1916cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1917/* end confdefs.h.  */
1918#include <$2>
1919_ACEOF
1920if ac_fn_c_try_cpp "$LINENO"; then :
1921  ac_header_preproc=yes
1922else
1923  ac_header_preproc=no
1924fi
1925rm -f conftest.err conftest.$ac_ext
1926{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1927$as_echo "$ac_header_preproc" >&6; }
1928
1929# So?  What about this header?
1930case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1931  yes:no: )
1932    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1933$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1934    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1935$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1936    ;;
1937  no:yes:* )
1938    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1939$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1940    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
1941$as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
1942    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1943$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1944    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
1945$as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
1946    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1947$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1948    ;;
1949esac
1950  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1951$as_echo_n "checking for $2... " >&6; }
1952if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1953  $as_echo_n "(cached) " >&6
1954else
1955  eval "$3=\$ac_header_compiler"
1956fi
1957eval ac_res=\$$3
1958	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1959$as_echo "$ac_res" >&6; }
1960fi
1961  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1962
1963} # ac_fn_c_check_header_mongrel
1964
1965# ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1966# -------------------------------------------
1967# Tests whether TYPE exists after having included INCLUDES, setting cache
1968# variable VAR accordingly.
1969ac_fn_c_check_type ()
1970{
1971  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1972  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1973$as_echo_n "checking for $2... " >&6; }
1974if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1975  $as_echo_n "(cached) " >&6
1976else
1977  eval "$3=no"
1978  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1979/* end confdefs.h.  */
1980$4
1981int
1982main ()
1983{
1984if (sizeof ($2))
1985	 return 0;
1986  ;
1987  return 0;
1988}
1989_ACEOF
1990if ac_fn_c_try_compile "$LINENO"; then :
1991  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1992/* end confdefs.h.  */
1993$4
1994int
1995main ()
1996{
1997if (sizeof (($2)))
1998	    return 0;
1999  ;
2000  return 0;
2001}
2002_ACEOF
2003if ac_fn_c_try_compile "$LINENO"; then :
2004
2005else
2006  eval "$3=yes"
2007fi
2008rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2009fi
2010rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2011fi
2012eval ac_res=\$$3
2013	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2014$as_echo "$ac_res" >&6; }
2015  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2016
2017} # ac_fn_c_check_type
2018
2019# ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2020# --------------------------------------------
2021# Tries to find the compile-time value of EXPR in a program that includes
2022# INCLUDES, setting VAR accordingly. Returns whether the value could be
2023# computed
2024ac_fn_c_compute_int ()
2025{
2026  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2027  if test "$cross_compiling" = yes; then
2028    # Depending upon the size, compute the lo and hi bounds.
2029cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2030/* end confdefs.h.  */
2031$4
2032int
2033main ()
2034{
2035static int test_array [1 - 2 * !(($2) >= 0)];
2036test_array [0] = 0
2037
2038  ;
2039  return 0;
2040}
2041_ACEOF
2042if ac_fn_c_try_compile "$LINENO"; then :
2043  ac_lo=0 ac_mid=0
2044  while :; do
2045    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2046/* end confdefs.h.  */
2047$4
2048int
2049main ()
2050{
2051static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2052test_array [0] = 0
2053
2054  ;
2055  return 0;
2056}
2057_ACEOF
2058if ac_fn_c_try_compile "$LINENO"; then :
2059  ac_hi=$ac_mid; break
2060else
2061  as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2062			if test $ac_lo -le $ac_mid; then
2063			  ac_lo= ac_hi=
2064			  break
2065			fi
2066			as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2067fi
2068rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2069  done
2070else
2071  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2072/* end confdefs.h.  */
2073$4
2074int
2075main ()
2076{
2077static int test_array [1 - 2 * !(($2) < 0)];
2078test_array [0] = 0
2079
2080  ;
2081  return 0;
2082}
2083_ACEOF
2084if ac_fn_c_try_compile "$LINENO"; then :
2085  ac_hi=-1 ac_mid=-1
2086  while :; do
2087    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2088/* end confdefs.h.  */
2089$4
2090int
2091main ()
2092{
2093static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2094test_array [0] = 0
2095
2096  ;
2097  return 0;
2098}
2099_ACEOF
2100if ac_fn_c_try_compile "$LINENO"; then :
2101  ac_lo=$ac_mid; break
2102else
2103  as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2104			if test $ac_mid -le $ac_hi; then
2105			  ac_lo= ac_hi=
2106			  break
2107			fi
2108			as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2109fi
2110rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2111  done
2112else
2113  ac_lo= ac_hi=
2114fi
2115rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2116fi
2117rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2118# Binary search between lo and hi bounds.
2119while test "x$ac_lo" != "x$ac_hi"; do
2120  as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2121  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2122/* end confdefs.h.  */
2123$4
2124int
2125main ()
2126{
2127static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2128test_array [0] = 0
2129
2130  ;
2131  return 0;
2132}
2133_ACEOF
2134if ac_fn_c_try_compile "$LINENO"; then :
2135  ac_hi=$ac_mid
2136else
2137  as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2138fi
2139rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2140done
2141case $ac_lo in #((
2142?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2143'') ac_retval=1 ;;
2144esac
2145  else
2146    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2147/* end confdefs.h.  */
2148$4
2149static long int longval () { return $2; }
2150static unsigned long int ulongval () { return $2; }
2151#include <stdio.h>
2152#include <stdlib.h>
2153int
2154main ()
2155{
2156
2157  FILE *f = fopen ("conftest.val", "w");
2158  if (! f)
2159    return 1;
2160  if (($2) < 0)
2161    {
2162      long int i = longval ();
2163      if (i != ($2))
2164	return 1;
2165      fprintf (f, "%ld", i);
2166    }
2167  else
2168    {
2169      unsigned long int i = ulongval ();
2170      if (i != ($2))
2171	return 1;
2172      fprintf (f, "%lu", i);
2173    }
2174  /* Do not output a trailing newline, as this causes \r\n confusion
2175     on some platforms.  */
2176  return ferror (f) || fclose (f) != 0;
2177
2178  ;
2179  return 0;
2180}
2181_ACEOF
2182if ac_fn_c_try_run "$LINENO"; then :
2183  echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2184else
2185  ac_retval=1
2186fi
2187rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2188  conftest.$ac_objext conftest.beam conftest.$ac_ext
2189rm -f conftest.val
2190
2191  fi
2192  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2193  as_fn_set_status $ac_retval
2194
2195} # ac_fn_c_compute_int
2196cat >config.log <<_ACEOF
2197This file contains any messages produced by compilers while
2198running configure, to aid debugging if configure makes a mistake.
2199
2200It was created by mac $as_me 3.99-u4-b5-s7, which was
2201generated by GNU Autoconf 2.65.  Invocation command line was
2202
2203  $ $0 $@
2204
2205_ACEOF
2206exec 5>>config.log
2207{
2208cat <<_ASUNAME
2209## --------- ##
2210## Platform. ##
2211## --------- ##
2212
2213hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2214uname -m = `(uname -m) 2>/dev/null || echo unknown`
2215uname -r = `(uname -r) 2>/dev/null || echo unknown`
2216uname -s = `(uname -s) 2>/dev/null || echo unknown`
2217uname -v = `(uname -v) 2>/dev/null || echo unknown`
2218
2219/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2220/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2221
2222/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2223/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2224/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2225/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2226/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2227/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2228/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2229
2230_ASUNAME
2231
2232as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2233for as_dir in $PATH
2234do
2235  IFS=$as_save_IFS
2236  test -z "$as_dir" && as_dir=.
2237    $as_echo "PATH: $as_dir"
2238  done
2239IFS=$as_save_IFS
2240
2241} >&5
2242
2243cat >&5 <<_ACEOF
2244
2245
2246## ----------- ##
2247## Core tests. ##
2248## ----------- ##
2249
2250_ACEOF
2251
2252
2253# Keep a trace of the command line.
2254# Strip out --no-create and --no-recursion so they do not pile up.
2255# Strip out --silent because we don't want to record it for future runs.
2256# Also quote any args containing shell meta-characters.
2257# Make two passes to allow for proper duplicate-argument suppression.
2258ac_configure_args=
2259ac_configure_args0=
2260ac_configure_args1=
2261ac_must_keep_next=false
2262for ac_pass in 1 2
2263do
2264  for ac_arg
2265  do
2266    case $ac_arg in
2267    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2268    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2269    | -silent | --silent | --silen | --sile | --sil)
2270      continue ;;
2271    *\'*)
2272      ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2273    esac
2274    case $ac_pass in
2275    1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2276    2)
2277      as_fn_append ac_configure_args1 " '$ac_arg'"
2278      if test $ac_must_keep_next = true; then
2279	ac_must_keep_next=false # Got value, back to normal.
2280      else
2281	case $ac_arg in
2282	  *=* | --config-cache | -C | -disable-* | --disable-* \
2283	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2284	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2285	  | -with-* | --with-* | -without-* | --without-* | --x)
2286	    case "$ac_configure_args0 " in
2287	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2288	    esac
2289	    ;;
2290	  -* ) ac_must_keep_next=true ;;
2291	esac
2292      fi
2293      as_fn_append ac_configure_args " '$ac_arg'"
2294      ;;
2295    esac
2296  done
2297done
2298{ ac_configure_args0=; unset ac_configure_args0;}
2299{ ac_configure_args1=; unset ac_configure_args1;}
2300
2301# When interrupted or exit'd, cleanup temporary files, and complete
2302# config.log.  We remove comments because anyway the quotes in there
2303# would cause problems or look ugly.
2304# WARNING: Use '\'' to represent an apostrophe within the trap.
2305# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2306trap 'exit_status=$?
2307  # Save into config.log some information that might help in debugging.
2308  {
2309    echo
2310
2311    cat <<\_ASBOX
2312## ---------------- ##
2313## Cache variables. ##
2314## ---------------- ##
2315_ASBOX
2316    echo
2317    # The following way of writing the cache mishandles newlines in values,
2318(
2319  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2320    eval ac_val=\$$ac_var
2321    case $ac_val in #(
2322    *${as_nl}*)
2323      case $ac_var in #(
2324      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2325$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2326      esac
2327      case $ac_var in #(
2328      _ | IFS | as_nl) ;; #(
2329      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2330      *) { eval $ac_var=; unset $ac_var;} ;;
2331      esac ;;
2332    esac
2333  done
2334  (set) 2>&1 |
2335    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2336    *${as_nl}ac_space=\ *)
2337      sed -n \
2338	"s/'\''/'\''\\\\'\'''\''/g;
2339	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2340      ;; #(
2341    *)
2342      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2343      ;;
2344    esac |
2345    sort
2346)
2347    echo
2348
2349    cat <<\_ASBOX
2350## ----------------- ##
2351## Output variables. ##
2352## ----------------- ##
2353_ASBOX
2354    echo
2355    for ac_var in $ac_subst_vars
2356    do
2357      eval ac_val=\$$ac_var
2358      case $ac_val in
2359      *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2360      esac
2361      $as_echo "$ac_var='\''$ac_val'\''"
2362    done | sort
2363    echo
2364
2365    if test -n "$ac_subst_files"; then
2366      cat <<\_ASBOX
2367## ------------------- ##
2368## File substitutions. ##
2369## ------------------- ##
2370_ASBOX
2371      echo
2372      for ac_var in $ac_subst_files
2373      do
2374	eval ac_val=\$$ac_var
2375	case $ac_val in
2376	*\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2377	esac
2378	$as_echo "$ac_var='\''$ac_val'\''"
2379      done | sort
2380      echo
2381    fi
2382
2383    if test -s confdefs.h; then
2384      cat <<\_ASBOX
2385## ----------- ##
2386## confdefs.h. ##
2387## ----------- ##
2388_ASBOX
2389      echo
2390      cat confdefs.h
2391      echo
2392    fi
2393    test "$ac_signal" != 0 &&
2394      $as_echo "$as_me: caught signal $ac_signal"
2395    $as_echo "$as_me: exit $exit_status"
2396  } >&5
2397  rm -f core *.core core.conftest.* &&
2398    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2399    exit $exit_status
2400' 0
2401for ac_signal in 1 2 13 15; do
2402  trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2403done
2404ac_signal=0
2405
2406# confdefs.h avoids OS command line length limits that DEFS can exceed.
2407rm -f -r conftest* confdefs.h
2408
2409$as_echo "/* confdefs.h */" > confdefs.h
2410
2411# Predefined preprocessor variables.
2412
2413cat >>confdefs.h <<_ACEOF
2414#define PACKAGE_NAME "$PACKAGE_NAME"
2415_ACEOF
2416
2417cat >>confdefs.h <<_ACEOF
2418#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2419_ACEOF
2420
2421cat >>confdefs.h <<_ACEOF
2422#define PACKAGE_VERSION "$PACKAGE_VERSION"
2423_ACEOF
2424
2425cat >>confdefs.h <<_ACEOF
2426#define PACKAGE_STRING "$PACKAGE_STRING"
2427_ACEOF
2428
2429cat >>confdefs.h <<_ACEOF
2430#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2431_ACEOF
2432
2433cat >>confdefs.h <<_ACEOF
2434#define PACKAGE_URL "$PACKAGE_URL"
2435_ACEOF
2436
2437
2438# Let the site file select an alternate cache file if it wants to.
2439# Prefer an explicitly selected file to automatically selected ones.
2440ac_site_file1=NONE
2441ac_site_file2=NONE
2442if test -n "$CONFIG_SITE"; then
2443  ac_site_file1=$CONFIG_SITE
2444elif test "x$prefix" != xNONE; then
2445  ac_site_file1=$prefix/share/config.site
2446  ac_site_file2=$prefix/etc/config.site
2447else
2448  ac_site_file1=$ac_default_prefix/share/config.site
2449  ac_site_file2=$ac_default_prefix/etc/config.site
2450fi
2451for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2452do
2453  test "x$ac_site_file" = xNONE && continue
2454  if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2455    { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2456$as_echo "$as_me: loading site script $ac_site_file" >&6;}
2457    sed 's/^/| /' "$ac_site_file" >&5
2458    . "$ac_site_file"
2459  fi
2460done
2461
2462if test -r "$cache_file"; then
2463  # Some versions of bash will fail to source /dev/null (special files
2464  # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2465  if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2466    { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2467$as_echo "$as_me: loading cache $cache_file" >&6;}
2468    case $cache_file in
2469      [\\/]* | ?:[\\/]* ) . "$cache_file";;
2470      *)                      . "./$cache_file";;
2471    esac
2472  fi
2473else
2474  { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2475$as_echo "$as_me: creating cache $cache_file" >&6;}
2476  >$cache_file
2477fi
2478
2479# Check that the precious variables saved in the cache have kept the same
2480# value.
2481ac_cache_corrupted=false
2482for ac_var in $ac_precious_vars; do
2483  eval ac_old_set=\$ac_cv_env_${ac_var}_set
2484  eval ac_new_set=\$ac_env_${ac_var}_set
2485  eval ac_old_val=\$ac_cv_env_${ac_var}_value
2486  eval ac_new_val=\$ac_env_${ac_var}_value
2487  case $ac_old_set,$ac_new_set in
2488    set,)
2489      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2490$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2491      ac_cache_corrupted=: ;;
2492    ,set)
2493      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2494$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2495      ac_cache_corrupted=: ;;
2496    ,);;
2497    *)
2498      if test "x$ac_old_val" != "x$ac_new_val"; then
2499	# differences in whitespace do not lead to failure.
2500	ac_old_val_w=`echo x $ac_old_val`
2501	ac_new_val_w=`echo x $ac_new_val`
2502	if test "$ac_old_val_w" != "$ac_new_val_w"; then
2503	  { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2504$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2505	  ac_cache_corrupted=:
2506	else
2507	  { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2508$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2509	  eval $ac_var=\$ac_old_val
2510	fi
2511	{ $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2512$as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2513	{ $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2514$as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2515      fi;;
2516  esac
2517  # Pass precious variables to config.status.
2518  if test "$ac_new_set" = set; then
2519    case $ac_new_val in
2520    *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2521    *) ac_arg=$ac_var=$ac_new_val ;;
2522    esac
2523    case " $ac_configure_args " in
2524      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2525      *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2526    esac
2527  fi
2528done
2529if $ac_cache_corrupted; then
2530  { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2531$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2532  { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2533$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2534  as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2535fi
2536## -------------------- ##
2537## Main body of script. ##
2538## -------------------- ##
2539
2540ac_ext=c
2541ac_cpp='$CPP $CPPFLAGS'
2542ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2543ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2544ac_compiler_gnu=$ac_cv_c_compiler_gnu
2545
2546
2547
2548
2549
2550am__api_version='1.11'
2551
2552ac_aux_dir=
2553for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2554  for ac_t in install-sh install.sh shtool; do
2555    if test -f "$ac_dir/$ac_t"; then
2556      ac_aux_dir=$ac_dir
2557      ac_install_sh="$ac_aux_dir/$ac_t -c"
2558      break 2
2559    fi
2560  done
2561done
2562if test -z "$ac_aux_dir"; then
2563  as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2564fi
2565
2566# These three variables are undocumented and unsupported,
2567# and are intended to be withdrawn in a future Autoconf release.
2568# They can cause serious problems if a builder's source tree is in a directory
2569# whose full name contains unusual characters.
2570ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2571ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2572ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2573
2574
2575# Find a good install program.  We prefer a C program (faster),
2576# so one script is as good as another.  But avoid the broken or
2577# incompatible versions:
2578# SysV /etc/install, /usr/sbin/install
2579# SunOS /usr/etc/install
2580# IRIX /sbin/install
2581# AIX /bin/install
2582# AmigaOS /C/install, which installs bootblocks on floppy discs
2583# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2584# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2585# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2586# OS/2's system install, which has a completely different semantic
2587# ./install, which can be erroneously created by make from ./install.sh.
2588# Reject install programs that cannot install multiple files.
2589{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2590$as_echo_n "checking for a BSD-compatible install... " >&6; }
2591if test -z "$INSTALL"; then
2592if test "${ac_cv_path_install+set}" = set; then :
2593  $as_echo_n "(cached) " >&6
2594else
2595  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2596for as_dir in $PATH
2597do
2598  IFS=$as_save_IFS
2599  test -z "$as_dir" && as_dir=.
2600    # Account for people who put trailing slashes in PATH elements.
2601case $as_dir/ in #((
2602  ./ | .// | /[cC]/* | \
2603  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2604  ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2605  /usr/ucb/* ) ;;
2606  *)
2607    # OSF1 and SCO ODT 3.0 have their own names for install.
2608    # Don't use installbsd from OSF since it installs stuff as root
2609    # by default.
2610    for ac_prog in ginstall scoinst install; do
2611      for ac_exec_ext in '' $ac_executable_extensions; do
2612	if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2613	  if test $ac_prog = install &&
2614	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2615	    # AIX install.  It has an incompatible calling convention.
2616	    :
2617	  elif test $ac_prog = install &&
2618	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2619	    # program-specific install script used by HP pwplus--don't use.
2620	    :
2621	  else
2622	    rm -rf conftest.one conftest.two conftest.dir
2623	    echo one > conftest.one
2624	    echo two > conftest.two
2625	    mkdir conftest.dir
2626	    if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2627	      test -s conftest.one && test -s conftest.two &&
2628	      test -s conftest.dir/conftest.one &&
2629	      test -s conftest.dir/conftest.two
2630	    then
2631	      ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2632	      break 3
2633	    fi
2634	  fi
2635	fi
2636      done
2637    done
2638    ;;
2639esac
2640
2641  done
2642IFS=$as_save_IFS
2643
2644rm -rf conftest.one conftest.two conftest.dir
2645
2646fi
2647  if test "${ac_cv_path_install+set}" = set; then
2648    INSTALL=$ac_cv_path_install
2649  else
2650    # As a last resort, use the slow shell script.  Don't cache a
2651    # value for INSTALL within a source directory, because that will
2652    # break other packages using the cache if that directory is
2653    # removed, or if the value is a relative name.
2654    INSTALL=$ac_install_sh
2655  fi
2656fi
2657{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2658$as_echo "$INSTALL" >&6; }
2659
2660# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2661# It thinks the first close brace ends the variable substitution.
2662test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2663
2664test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2665
2666test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2667
2668{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2669$as_echo_n "checking whether build environment is sane... " >&6; }
2670# Just in case
2671sleep 1
2672echo timestamp > conftest.file
2673# Reject unsafe characters in $srcdir or the absolute working directory
2674# name.  Accept space and tab only in the latter.
2675am_lf='
2676'
2677case `pwd` in
2678  *[\\\"\#\$\&\'\`$am_lf]*)
2679    as_fn_error "unsafe absolute working directory name" "$LINENO" 5;;
2680esac
2681case $srcdir in
2682  *[\\\"\#\$\&\'\`$am_lf\ \	]*)
2683    as_fn_error "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
2684esac
2685
2686# Do `set' in a subshell so we don't clobber the current shell's
2687# arguments.  Must try -L first in case configure is actually a
2688# symlink; some systems play weird games with the mod time of symlinks
2689# (eg FreeBSD returns the mod time of the symlink's containing
2690# directory).
2691if (
2692   set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2693   if test "$*" = "X"; then
2694      # -L didn't work.
2695      set X `ls -t "$srcdir/configure" conftest.file`
2696   fi
2697   rm -f conftest.file
2698   if test "$*" != "X $srcdir/configure conftest.file" \
2699      && test "$*" != "X conftest.file $srcdir/configure"; then
2700
2701      # If neither matched, then we have a broken ls.  This can happen
2702      # if, for instance, CONFIG_SHELL is bash and it inherits a
2703      # broken ls alias from the environment.  This has actually
2704      # happened.  Such a system could not be considered "sane".
2705      as_fn_error "ls -t appears to fail.  Make sure there is not a broken
2706alias in your environment" "$LINENO" 5
2707   fi
2708
2709   test "$2" = conftest.file
2710   )
2711then
2712   # Ok.
2713   :
2714else
2715   as_fn_error "newly created file is older than distributed files!
2716Check your system clock" "$LINENO" 5
2717fi
2718{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2719$as_echo "yes" >&6; }
2720test "$program_prefix" != NONE &&
2721  program_transform_name="s&^&$program_prefix&;$program_transform_name"
2722# Use a double $ so make ignores it.
2723test "$program_suffix" != NONE &&
2724  program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2725# Double any \ or $.
2726# By default was `s,x,x', remove it if useless.
2727ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2728program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2729
2730# expand $ac_aux_dir to an absolute path
2731am_aux_dir=`cd $ac_aux_dir && pwd`
2732
2733if test x"${MISSING+set}" != xset; then
2734  case $am_aux_dir in
2735  *\ * | *\	*)
2736    MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2737  *)
2738    MISSING="\${SHELL} $am_aux_dir/missing" ;;
2739  esac
2740fi
2741# Use eval to expand $SHELL
2742if eval "$MISSING --run true"; then
2743  am_missing_run="$MISSING --run "
2744else
2745  am_missing_run=
2746  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
2747$as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2748fi
2749
2750if test x"${install_sh}" != xset; then
2751  case $am_aux_dir in
2752  *\ * | *\	*)
2753    install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2754  *)
2755    install_sh="\${SHELL} $am_aux_dir/install-sh"
2756  esac
2757fi
2758
2759# Installed binaries are usually stripped using `strip' when the user
2760# run `make install-strip'.  However `strip' might not be the right
2761# tool to use in cross-compilation environments, therefore Automake
2762# will honor the `STRIP' environment variable to overrule this program.
2763if test "$cross_compiling" != no; then
2764  if test -n "$ac_tool_prefix"; then
2765  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2766set dummy ${ac_tool_prefix}strip; ac_word=$2
2767{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2768$as_echo_n "checking for $ac_word... " >&6; }
2769if test "${ac_cv_prog_STRIP+set}" = set; then :
2770  $as_echo_n "(cached) " >&6
2771else
2772  if test -n "$STRIP"; then
2773  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2774else
2775as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2776for as_dir in $PATH
2777do
2778  IFS=$as_save_IFS
2779  test -z "$as_dir" && as_dir=.
2780    for ac_exec_ext in '' $ac_executable_extensions; do
2781  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2782    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2783    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2784    break 2
2785  fi
2786done
2787  done
2788IFS=$as_save_IFS
2789
2790fi
2791fi
2792STRIP=$ac_cv_prog_STRIP
2793if test -n "$STRIP"; then
2794  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2795$as_echo "$STRIP" >&6; }
2796else
2797  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2798$as_echo "no" >&6; }
2799fi
2800
2801
2802fi
2803if test -z "$ac_cv_prog_STRIP"; then
2804  ac_ct_STRIP=$STRIP
2805  # Extract the first word of "strip", so it can be a program name with args.
2806set dummy strip; ac_word=$2
2807{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2808$as_echo_n "checking for $ac_word... " >&6; }
2809if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
2810  $as_echo_n "(cached) " >&6
2811else
2812  if test -n "$ac_ct_STRIP"; then
2813  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2814else
2815as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2816for as_dir in $PATH
2817do
2818  IFS=$as_save_IFS
2819  test -z "$as_dir" && as_dir=.
2820    for ac_exec_ext in '' $ac_executable_extensions; do
2821  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2822    ac_cv_prog_ac_ct_STRIP="strip"
2823    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2824    break 2
2825  fi
2826done
2827  done
2828IFS=$as_save_IFS
2829
2830fi
2831fi
2832ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2833if test -n "$ac_ct_STRIP"; then
2834  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2835$as_echo "$ac_ct_STRIP" >&6; }
2836else
2837  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2838$as_echo "no" >&6; }
2839fi
2840
2841  if test "x$ac_ct_STRIP" = x; then
2842    STRIP=":"
2843  else
2844    case $cross_compiling:$ac_tool_warned in
2845yes:)
2846{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2847$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2848ac_tool_warned=yes ;;
2849esac
2850    STRIP=$ac_ct_STRIP
2851  fi
2852else
2853  STRIP="$ac_cv_prog_STRIP"
2854fi
2855
2856fi
2857INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2858
2859{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2860$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2861if test -z "$MKDIR_P"; then
2862  if test "${ac_cv_path_mkdir+set}" = set; then :
2863  $as_echo_n "(cached) " >&6
2864else
2865  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2866for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2867do
2868  IFS=$as_save_IFS
2869  test -z "$as_dir" && as_dir=.
2870    for ac_prog in mkdir gmkdir; do
2871	 for ac_exec_ext in '' $ac_executable_extensions; do
2872	   { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2873	   case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2874	     'mkdir (GNU coreutils) '* | \
2875	     'mkdir (coreutils) '* | \
2876	     'mkdir (fileutils) '4.1*)
2877	       ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2878	       break 3;;
2879	   esac
2880	 done
2881       done
2882  done
2883IFS=$as_save_IFS
2884
2885fi
2886
2887  test -d ./--version && rmdir ./--version
2888  if test "${ac_cv_path_mkdir+set}" = set; then
2889    MKDIR_P="$ac_cv_path_mkdir -p"
2890  else
2891    # As a last resort, use the slow shell script.  Don't cache a
2892    # value for MKDIR_P within a source directory, because that will
2893    # break other packages using the cache if that directory is
2894    # removed, or if the value is a relative name.
2895    MKDIR_P="$ac_install_sh -d"
2896  fi
2897fi
2898{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2899$as_echo "$MKDIR_P" >&6; }
2900
2901mkdir_p="$MKDIR_P"
2902case $mkdir_p in
2903  [\\/$]* | ?:[\\/]*) ;;
2904  */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2905esac
2906
2907for ac_prog in gawk mawk nawk awk
2908do
2909  # Extract the first word of "$ac_prog", so it can be a program name with args.
2910set dummy $ac_prog; ac_word=$2
2911{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2912$as_echo_n "checking for $ac_word... " >&6; }
2913if test "${ac_cv_prog_AWK+set}" = set; then :
2914  $as_echo_n "(cached) " >&6
2915else
2916  if test -n "$AWK"; then
2917  ac_cv_prog_AWK="$AWK" # Let the user override the test.
2918else
2919as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2920for as_dir in $PATH
2921do
2922  IFS=$as_save_IFS
2923  test -z "$as_dir" && as_dir=.
2924    for ac_exec_ext in '' $ac_executable_extensions; do
2925  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2926    ac_cv_prog_AWK="$ac_prog"
2927    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2928    break 2
2929  fi
2930done
2931  done
2932IFS=$as_save_IFS
2933
2934fi
2935fi
2936AWK=$ac_cv_prog_AWK
2937if test -n "$AWK"; then
2938  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2939$as_echo "$AWK" >&6; }
2940else
2941  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2942$as_echo "no" >&6; }
2943fi
2944
2945
2946  test -n "$AWK" && break
2947done
2948
2949{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2950$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2951set x ${MAKE-make}
2952ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2953if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
2954  $as_echo_n "(cached) " >&6
2955else
2956  cat >conftest.make <<\_ACEOF
2957SHELL = /bin/sh
2958all:
2959	@echo '@@@%%%=$(MAKE)=@@@%%%'
2960_ACEOF
2961# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2962case `${MAKE-make} -f conftest.make 2>/dev/null` in
2963  *@@@%%%=?*=@@@%%%*)
2964    eval ac_cv_prog_make_${ac_make}_set=yes;;
2965  *)
2966    eval ac_cv_prog_make_${ac_make}_set=no;;
2967esac
2968rm -f conftest.make
2969fi
2970if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2971  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2972$as_echo "yes" >&6; }
2973  SET_MAKE=
2974else
2975  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2976$as_echo "no" >&6; }
2977  SET_MAKE="MAKE=${MAKE-make}"
2978fi
2979
2980rm -rf .tst 2>/dev/null
2981mkdir .tst 2>/dev/null
2982if test -d .tst; then
2983  am__leading_dot=.
2984else
2985  am__leading_dot=_
2986fi
2987rmdir .tst 2>/dev/null
2988
2989if test "`cd $srcdir && pwd`" != "`pwd`"; then
2990  # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2991  # is not polluted with repeated "-I."
2992  am__isrc=' -I$(srcdir)'
2993  # test to see if srcdir already configured
2994  if test -f $srcdir/config.status; then
2995    as_fn_error "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2996  fi
2997fi
2998
2999# test whether we have cygpath
3000if test -z "$CYGPATH_W"; then
3001  if (cygpath --version) >/dev/null 2>/dev/null; then
3002    CYGPATH_W='cygpath -w'
3003  else
3004    CYGPATH_W=echo
3005  fi
3006fi
3007
3008
3009# Define the identity of the package.
3010 PACKAGE=mac
3011 VERSION=3.99-u4-b5-s7
3012
3013
3014cat >>confdefs.h <<_ACEOF
3015#define PACKAGE "$PACKAGE"
3016_ACEOF
3017
3018
3019cat >>confdefs.h <<_ACEOF
3020#define VERSION "$VERSION"
3021_ACEOF
3022
3023# Some tools Automake needs.
3024
3025ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3026
3027
3028AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3029
3030
3031AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3032
3033
3034AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3035
3036
3037MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3038
3039# We need awk for the "check" target.  The system "awk" is bad on
3040# some platforms.
3041# Always define AMTAR for backward compatibility.
3042
3043AMTAR=${AMTAR-"${am_missing_run}tar"}
3044
3045am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
3046
3047
3048
3049
3050
3051ac_config_headers="$ac_config_headers src/Shared/config.h"
3052
3053
3054{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
3055$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
3056    # Check whether --enable-maintainer-mode was given.
3057if test "${enable_maintainer_mode+set}" = set; then :
3058  enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
3059else
3060  USE_MAINTAINER_MODE=no
3061fi
3062
3063  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
3064$as_echo "$USE_MAINTAINER_MODE" >&6; }
3065   if test $USE_MAINTAINER_MODE = yes; then
3066  MAINTAINER_MODE_TRUE=
3067  MAINTAINER_MODE_FALSE='#'
3068else
3069  MAINTAINER_MODE_TRUE='#'
3070  MAINTAINER_MODE_FALSE=
3071fi
3072
3073  MAINT=$MAINTAINER_MODE_TRUE
3074
3075
3076
3077# Checks for programs.
3078CXXFLAGS="$CXXFLAGS -Wall -pedantic -Wno-long-long"
3079ac_ext=cpp
3080ac_cpp='$CXXCPP $CPPFLAGS'
3081ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3082ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3083ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3084if test -z "$CXX"; then
3085  if test -n "$CCC"; then
3086    CXX=$CCC
3087  else
3088    if test -n "$ac_tool_prefix"; then
3089  for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3090  do
3091    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3092set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3093{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3094$as_echo_n "checking for $ac_word... " >&6; }
3095if test "${ac_cv_prog_CXX+set}" = set; then :
3096  $as_echo_n "(cached) " >&6
3097else
3098  if test -n "$CXX"; then
3099  ac_cv_prog_CXX="$CXX" # Let the user override the test.
3100else
3101as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3102for as_dir in $PATH
3103do
3104  IFS=$as_save_IFS
3105  test -z "$as_dir" && as_dir=.
3106    for ac_exec_ext in '' $ac_executable_extensions; do
3107  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3108    ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3109    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3110    break 2
3111  fi
3112done
3113  done
3114IFS=$as_save_IFS
3115
3116fi
3117fi
3118CXX=$ac_cv_prog_CXX
3119if test -n "$CXX"; then
3120  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
3121$as_echo "$CXX" >&6; }
3122else
3123  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3124$as_echo "no" >&6; }
3125fi
3126
3127
3128    test -n "$CXX" && break
3129  done
3130fi
3131if test -z "$CXX"; then
3132  ac_ct_CXX=$CXX
3133  for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3134do
3135  # Extract the first word of "$ac_prog", so it can be a program name with args.
3136set dummy $ac_prog; ac_word=$2
3137{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3138$as_echo_n "checking for $ac_word... " >&6; }
3139if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
3140  $as_echo_n "(cached) " >&6
3141else
3142  if test -n "$ac_ct_CXX"; then
3143  ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3144else
3145as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3146for as_dir in $PATH
3147do
3148  IFS=$as_save_IFS
3149  test -z "$as_dir" && as_dir=.
3150    for ac_exec_ext in '' $ac_executable_extensions; do
3151  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3152    ac_cv_prog_ac_ct_CXX="$ac_prog"
3153    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3154    break 2
3155  fi
3156done
3157  done
3158IFS=$as_save_IFS
3159
3160fi
3161fi
3162ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3163if test -n "$ac_ct_CXX"; then
3164  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
3165$as_echo "$ac_ct_CXX" >&6; }
3166else
3167  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3168$as_echo "no" >&6; }
3169fi
3170
3171
3172  test -n "$ac_ct_CXX" && break
3173done
3174
3175  if test "x$ac_ct_CXX" = x; then
3176    CXX="g++"
3177  else
3178    case $cross_compiling:$ac_tool_warned in
3179yes:)
3180{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3181$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3182ac_tool_warned=yes ;;
3183esac
3184    CXX=$ac_ct_CXX
3185  fi
3186fi
3187
3188  fi
3189fi
3190# Provide some information about the compiler.
3191$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
3192set X $ac_compile
3193ac_compiler=$2
3194for ac_option in --version -v -V -qversion; do
3195  { { ac_try="$ac_compiler $ac_option >&5"
3196case "(($ac_try" in
3197  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3198  *) ac_try_echo=$ac_try;;
3199esac
3200eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3201$as_echo "$ac_try_echo"; } >&5
3202  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3203  ac_status=$?
3204  if test -s conftest.err; then
3205    sed '10a\
3206... rest of stderr output deleted ...
3207         10q' conftest.err >conftest.er1
3208    cat conftest.er1 >&5
3209  fi
3210  rm -f conftest.er1 conftest.err
3211  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3212  test $ac_status = 0; }
3213done
3214
3215cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3216/* end confdefs.h.  */
3217
3218int
3219main ()
3220{
3221
3222  ;
3223  return 0;
3224}
3225_ACEOF
3226ac_clean_files_save=$ac_clean_files
3227ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3228# Try to create an executable without -o first, disregard a.out.
3229# It will help us diagnose broken compilers, and finding out an intuition
3230# of exeext.
3231{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C++ compiler works" >&5
3232$as_echo_n "checking whether the C++ compiler works... " >&6; }
3233ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3234
3235# The possible output files:
3236ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3237
3238ac_rmfiles=
3239for ac_file in $ac_files
3240do
3241  case $ac_file in
3242    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3243    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3244  esac
3245done
3246rm -f $ac_rmfiles
3247
3248if { { ac_try="$ac_link_default"
3249case "(($ac_try" in
3250  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3251  *) ac_try_echo=$ac_try;;
3252esac
3253eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3254$as_echo "$ac_try_echo"; } >&5
3255  (eval "$ac_link_default") 2>&5
3256  ac_status=$?
3257  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3258  test $ac_status = 0; }; then :
3259  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3260# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3261# in a Makefile.  We should not override ac_cv_exeext if it was cached,
3262# so that the user can short-circuit this test for compilers unknown to
3263# Autoconf.
3264for ac_file in $ac_files ''
3265do
3266  test -f "$ac_file" || continue
3267  case $ac_file in
3268    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3269	;;
3270    [ab].out )
3271	# We found the default executable, but exeext='' is most
3272	# certainly right.
3273	break;;
3274    *.* )
3275	if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3276	then :; else
3277	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3278	fi
3279	# We set ac_cv_exeext here because the later test for it is not
3280	# safe: cross compilers may not add the suffix if given an `-o'
3281	# argument, so we may need to know it at that point already.
3282	# Even if this section looks crufty: it has the advantage of
3283	# actually working.
3284	break;;
3285    * )
3286	break;;
3287  esac
3288done
3289test "$ac_cv_exeext" = no && ac_cv_exeext=
3290
3291else
3292  ac_file=''
3293fi
3294if test -z "$ac_file"; then :
3295  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3296$as_echo "no" >&6; }
3297$as_echo "$as_me: failed program was:" >&5
3298sed 's/^/| /' conftest.$ac_ext >&5
3299
3300{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3301$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3302{ as_fn_set_status 77
3303as_fn_error "C++ compiler cannot create executables
3304See \`config.log' for more details." "$LINENO" 5; }; }
3305else
3306  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3307$as_echo "yes" >&6; }
3308fi
3309{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler default output file name" >&5
3310$as_echo_n "checking for C++ compiler default output file name... " >&6; }
3311{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3312$as_echo "$ac_file" >&6; }
3313ac_exeext=$ac_cv_exeext
3314
3315rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3316ac_clean_files=$ac_clean_files_save
3317{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3318$as_echo_n "checking for suffix of executables... " >&6; }
3319if { { ac_try="$ac_link"
3320case "(($ac_try" in
3321  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3322  *) ac_try_echo=$ac_try;;
3323esac
3324eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3325$as_echo "$ac_try_echo"; } >&5
3326  (eval "$ac_link") 2>&5
3327  ac_status=$?
3328  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3329  test $ac_status = 0; }; then :
3330  # If both `conftest.exe' and `conftest' are `present' (well, observable)
3331# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3332# work properly (i.e., refer to `conftest.exe'), while it won't with
3333# `rm'.
3334for ac_file in conftest.exe conftest conftest.*; do
3335  test -f "$ac_file" || continue
3336  case $ac_file in
3337    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3338    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3339	  break;;
3340    * ) break;;
3341  esac
3342done
3343else
3344  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3345$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3346as_fn_error "cannot compute suffix of executables: cannot compile and link
3347See \`config.log' for more details." "$LINENO" 5; }
3348fi
3349rm -f conftest conftest$ac_cv_exeext
3350{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3351$as_echo "$ac_cv_exeext" >&6; }
3352
3353rm -f conftest.$ac_ext
3354EXEEXT=$ac_cv_exeext
3355ac_exeext=$EXEEXT
3356cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3357/* end confdefs.h.  */
3358#include <stdio.h>
3359int
3360main ()
3361{
3362FILE *f = fopen ("conftest.out", "w");
3363 return ferror (f) || fclose (f) != 0;
3364
3365  ;
3366  return 0;
3367}
3368_ACEOF
3369ac_clean_files="$ac_clean_files conftest.out"
3370# Check that the compiler produces executables we can run.  If not, either
3371# the compiler is broken, or we cross compile.
3372{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3373$as_echo_n "checking whether we are cross compiling... " >&6; }
3374if test "$cross_compiling" != yes; then
3375  { { ac_try="$ac_link"
3376case "(($ac_try" in
3377  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3378  *) ac_try_echo=$ac_try;;
3379esac
3380eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3381$as_echo "$ac_try_echo"; } >&5
3382  (eval "$ac_link") 2>&5
3383  ac_status=$?
3384  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3385  test $ac_status = 0; }
3386  if { ac_try='./conftest$ac_cv_exeext'
3387  { { case "(($ac_try" in
3388  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3389  *) ac_try_echo=$ac_try;;
3390esac
3391eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3392$as_echo "$ac_try_echo"; } >&5
3393  (eval "$ac_try") 2>&5
3394  ac_status=$?
3395  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3396  test $ac_status = 0; }; }; then
3397    cross_compiling=no
3398  else
3399    if test "$cross_compiling" = maybe; then
3400	cross_compiling=yes
3401    else
3402	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3403$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3404as_fn_error "cannot run C++ compiled programs.
3405If you meant to cross compile, use \`--host'.
3406See \`config.log' for more details." "$LINENO" 5; }
3407    fi
3408  fi
3409fi
3410{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3411$as_echo "$cross_compiling" >&6; }
3412
3413rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3414ac_clean_files=$ac_clean_files_save
3415{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3416$as_echo_n "checking for suffix of object files... " >&6; }
3417if test "${ac_cv_objext+set}" = set; then :
3418  $as_echo_n "(cached) " >&6
3419else
3420  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3421/* end confdefs.h.  */
3422
3423int
3424main ()
3425{
3426
3427  ;
3428  return 0;
3429}
3430_ACEOF
3431rm -f conftest.o conftest.obj
3432if { { ac_try="$ac_compile"
3433case "(($ac_try" in
3434  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3435  *) ac_try_echo=$ac_try;;
3436esac
3437eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3438$as_echo "$ac_try_echo"; } >&5
3439  (eval "$ac_compile") 2>&5
3440  ac_status=$?
3441  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3442  test $ac_status = 0; }; then :
3443  for ac_file in conftest.o conftest.obj conftest.*; do
3444  test -f "$ac_file" || continue;
3445  case $ac_file in
3446    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3447    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3448       break;;
3449  esac
3450done
3451else
3452  $as_echo "$as_me: failed program was:" >&5
3453sed 's/^/| /' conftest.$ac_ext >&5
3454
3455{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3456$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3457as_fn_error "cannot compute suffix of object files: cannot compile
3458See \`config.log' for more details." "$LINENO" 5; }
3459fi
3460rm -f conftest.$ac_cv_objext conftest.$ac_ext
3461fi
3462{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3463$as_echo "$ac_cv_objext" >&6; }
3464OBJEXT=$ac_cv_objext
3465ac_objext=$OBJEXT
3466{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
3467$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
3468if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
3469  $as_echo_n "(cached) " >&6
3470else
3471  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3472/* end confdefs.h.  */
3473
3474int
3475main ()
3476{
3477#ifndef __GNUC__
3478       choke me
3479#endif
3480
3481  ;
3482  return 0;
3483}
3484_ACEOF
3485if ac_fn_cxx_try_compile "$LINENO"; then :
3486  ac_compiler_gnu=yes
3487else
3488  ac_compiler_gnu=no
3489fi
3490rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3491ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3492
3493fi
3494{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
3495$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
3496if test $ac_compiler_gnu = yes; then
3497  GXX=yes
3498else
3499  GXX=
3500fi
3501ac_test_CXXFLAGS=${CXXFLAGS+set}
3502ac_save_CXXFLAGS=$CXXFLAGS
3503{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
3504$as_echo_n "checking whether $CXX accepts -g... " >&6; }
3505if test "${ac_cv_prog_cxx_g+set}" = set; then :
3506  $as_echo_n "(cached) " >&6
3507else
3508  ac_save_cxx_werror_flag=$ac_cxx_werror_flag
3509   ac_cxx_werror_flag=yes
3510   ac_cv_prog_cxx_g=no
3511   CXXFLAGS="-g"
3512   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3513/* end confdefs.h.  */
3514
3515int
3516main ()
3517{
3518
3519  ;
3520  return 0;
3521}
3522_ACEOF
3523if ac_fn_cxx_try_compile "$LINENO"; then :
3524  ac_cv_prog_cxx_g=yes
3525else
3526  CXXFLAGS=""
3527      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3528/* end confdefs.h.  */
3529
3530int
3531main ()
3532{
3533
3534  ;
3535  return 0;
3536}
3537_ACEOF
3538if ac_fn_cxx_try_compile "$LINENO"; then :
3539
3540else
3541  ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3542	 CXXFLAGS="-g"
3543	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3544/* end confdefs.h.  */
3545
3546int
3547main ()
3548{
3549
3550  ;
3551  return 0;
3552}
3553_ACEOF
3554if ac_fn_cxx_try_compile "$LINENO"; then :
3555  ac_cv_prog_cxx_g=yes
3556fi
3557rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3558fi
3559rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3560fi
3561rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3562   ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3563fi
3564{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
3565$as_echo "$ac_cv_prog_cxx_g" >&6; }
3566if test "$ac_test_CXXFLAGS" = set; then
3567  CXXFLAGS=$ac_save_CXXFLAGS
3568elif test $ac_cv_prog_cxx_g = yes; then
3569  if test "$GXX" = yes; then
3570    CXXFLAGS="-g -O2"
3571  else
3572    CXXFLAGS="-g"
3573  fi
3574else
3575  if test "$GXX" = yes; then
3576    CXXFLAGS="-O2"
3577  else
3578    CXXFLAGS=
3579  fi
3580fi
3581ac_ext=c
3582ac_cpp='$CPP $CPPFLAGS'
3583ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3584ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3585ac_compiler_gnu=$ac_cv_c_compiler_gnu
3586DEPDIR="${am__leading_dot}deps"
3587
3588ac_config_commands="$ac_config_commands depfiles"
3589
3590
3591am_make=${MAKE-make}
3592cat > confinc << 'END'
3593am__doit:
3594	@echo this is the am__doit target
3595.PHONY: am__doit
3596END
3597# If we don't find an include directive, just comment out the code.
3598{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3599$as_echo_n "checking for style of include used by $am_make... " >&6; }
3600am__include="#"
3601am__quote=
3602_am_result=none
3603# First try GNU make style include.
3604echo "include confinc" > confmf
3605# Ignore all kinds of additional output from `make'.
3606case `$am_make -s -f confmf 2> /dev/null` in #(
3607*the\ am__doit\ target*)
3608  am__include=include
3609  am__quote=
3610  _am_result=GNU
3611  ;;
3612esac
3613# Now try BSD make style include.
3614if test "$am__include" = "#"; then
3615   echo '.include "confinc"' > confmf
3616   case `$am_make -s -f confmf 2> /dev/null` in #(
3617   *the\ am__doit\ target*)
3618     am__include=.include
3619     am__quote="\""
3620     _am_result=BSD
3621     ;;
3622   esac
3623fi
3624
3625
3626{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3627$as_echo "$_am_result" >&6; }
3628rm -f confinc confmf
3629
3630# Check whether --enable-dependency-tracking was given.
3631if test "${enable_dependency_tracking+set}" = set; then :
3632  enableval=$enable_dependency_tracking;
3633fi
3634
3635if test "x$enable_dependency_tracking" != xno; then
3636  am_depcomp="$ac_aux_dir/depcomp"
3637  AMDEPBACKSLASH='\'
3638fi
3639 if test "x$enable_dependency_tracking" != xno; then
3640  AMDEP_TRUE=
3641  AMDEP_FALSE='#'
3642else
3643  AMDEP_TRUE='#'
3644  AMDEP_FALSE=
3645fi
3646
3647
3648
3649depcc="$CXX"  am_compiler_list=
3650
3651{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3652$as_echo_n "checking dependency style of $depcc... " >&6; }
3653if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then :
3654  $as_echo_n "(cached) " >&6
3655else
3656  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3657  # We make a subdir and do the tests there.  Otherwise we can end up
3658  # making bogus files that we don't know about and never remove.  For
3659  # instance it was reported that on HP-UX the gcc test will end up
3660  # making a dummy file named `D' -- because `-MD' means `put the output
3661  # in D'.
3662  mkdir conftest.dir
3663  # Copy depcomp to subdir because otherwise we won't find it if we're
3664  # using a relative directory.
3665  cp "$am_depcomp" conftest.dir
3666  cd conftest.dir
3667  # We will build objects and dependencies in a subdirectory because
3668  # it helps to detect inapplicable dependency modes.  For instance
3669  # both Tru64's cc and ICC support -MD to output dependencies as a
3670  # side effect of compilation, but ICC will put the dependencies in
3671  # the current directory while Tru64 will put them in the object
3672  # directory.
3673  mkdir sub
3674
3675  am_cv_CXX_dependencies_compiler_type=none
3676  if test "$am_compiler_list" = ""; then
3677     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3678  fi
3679  am__universal=false
3680  case " $depcc " in #(
3681     *\ -arch\ *\ -arch\ *) am__universal=true ;;
3682     esac
3683
3684  for depmode in $am_compiler_list; do
3685    # Setup a source with many dependencies, because some compilers
3686    # like to wrap large dependency lists on column 80 (with \), and
3687    # we should not choose a depcomp mode which is confused by this.
3688    #
3689    # We need to recreate these files for each test, as the compiler may
3690    # overwrite some of them when testing with obscure command lines.
3691    # This happens at least with the AIX C compiler.
3692    : > sub/conftest.c
3693    for i in 1 2 3 4 5 6; do
3694      echo '#include "conftst'$i'.h"' >> sub/conftest.c
3695      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3696      # Solaris 8's {/usr,}/bin/sh.
3697      touch sub/conftst$i.h
3698    done
3699    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3700
3701    # We check with `-c' and `-o' for the sake of the "dashmstdout"
3702    # mode.  It turns out that the SunPro C++ compiler does not properly
3703    # handle `-M -o', and we need to detect this.  Also, some Intel
3704    # versions had trouble with output in subdirs
3705    am__obj=sub/conftest.${OBJEXT-o}
3706    am__minus_obj="-o $am__obj"
3707    case $depmode in
3708    gcc)
3709      # This depmode causes a compiler race in universal mode.
3710      test "$am__universal" = false || continue
3711      ;;
3712    nosideeffect)
3713      # after this tag, mechanisms are not by side-effect, so they'll
3714      # only be used when explicitly requested
3715      if test "x$enable_dependency_tracking" = xyes; then
3716	continue
3717      else
3718	break
3719      fi
3720      ;;
3721    msvisualcpp | msvcmsys)
3722      # This compiler won't grok `-c -o', but also, the minuso test has
3723      # not run yet.  These depmodes are late enough in the game, and
3724      # so weak that their functioning should not be impacted.
3725      am__obj=conftest.${OBJEXT-o}
3726      am__minus_obj=
3727      ;;
3728    none) break ;;
3729    esac
3730    if depmode=$depmode \
3731       source=sub/conftest.c object=$am__obj \
3732       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3733       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3734         >/dev/null 2>conftest.err &&
3735       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3736       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3737       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
3738       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3739      # icc doesn't choke on unknown options, it will just issue warnings
3740      # or remarks (even with -Werror).  So we grep stderr for any message
3741      # that says an option was ignored or not supported.
3742      # When given -MP, icc 7.0 and 7.1 complain thusly:
3743      #   icc: Command line warning: ignoring option '-M'; no argument required
3744      # The diagnosis changed in icc 8.0:
3745      #   icc: Command line remark: option '-MP' not supported
3746      if (grep 'ignoring option' conftest.err ||
3747          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3748        am_cv_CXX_dependencies_compiler_type=$depmode
3749        break
3750      fi
3751    fi
3752  done
3753
3754  cd ..
3755  rm -rf conftest.dir
3756else
3757  am_cv_CXX_dependencies_compiler_type=none
3758fi
3759
3760fi
3761{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
3762$as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
3763CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
3764
3765 if
3766  test "x$enable_dependency_tracking" != xno \
3767  && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
3768  am__fastdepCXX_TRUE=
3769  am__fastdepCXX_FALSE='#'
3770else
3771  am__fastdepCXX_TRUE='#'
3772  am__fastdepCXX_FALSE=
3773fi
3774
3775
3776ac_ext=c
3777ac_cpp='$CPP $CPPFLAGS'
3778ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3779ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3780ac_compiler_gnu=$ac_cv_c_compiler_gnu
3781if test -n "$ac_tool_prefix"; then
3782  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3783set dummy ${ac_tool_prefix}gcc; ac_word=$2
3784{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3785$as_echo_n "checking for $ac_word... " >&6; }
3786if test "${ac_cv_prog_CC+set}" = set; then :
3787  $as_echo_n "(cached) " >&6
3788else
3789  if test -n "$CC"; then
3790  ac_cv_prog_CC="$CC" # Let the user override the test.
3791else
3792as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3793for as_dir in $PATH
3794do
3795  IFS=$as_save_IFS
3796  test -z "$as_dir" && as_dir=.
3797    for ac_exec_ext in '' $ac_executable_extensions; do
3798  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3799    ac_cv_prog_CC="${ac_tool_prefix}gcc"
3800    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3801    break 2
3802  fi
3803done
3804  done
3805IFS=$as_save_IFS
3806
3807fi
3808fi
3809CC=$ac_cv_prog_CC
3810if test -n "$CC"; then
3811  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3812$as_echo "$CC" >&6; }
3813else
3814  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3815$as_echo "no" >&6; }
3816fi
3817
3818
3819fi
3820if test -z "$ac_cv_prog_CC"; then
3821  ac_ct_CC=$CC
3822  # Extract the first word of "gcc", so it can be a program name with args.
3823set dummy gcc; ac_word=$2
3824{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3825$as_echo_n "checking for $ac_word... " >&6; }
3826if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3827  $as_echo_n "(cached) " >&6
3828else
3829  if test -n "$ac_ct_CC"; then
3830  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3831else
3832as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3833for as_dir in $PATH
3834do
3835  IFS=$as_save_IFS
3836  test -z "$as_dir" && as_dir=.
3837    for ac_exec_ext in '' $ac_executable_extensions; do
3838  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3839    ac_cv_prog_ac_ct_CC="gcc"
3840    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3841    break 2
3842  fi
3843done
3844  done
3845IFS=$as_save_IFS
3846
3847fi
3848fi
3849ac_ct_CC=$ac_cv_prog_ac_ct_CC
3850if test -n "$ac_ct_CC"; then
3851  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3852$as_echo "$ac_ct_CC" >&6; }
3853else
3854  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3855$as_echo "no" >&6; }
3856fi
3857
3858  if test "x$ac_ct_CC" = x; then
3859    CC=""
3860  else
3861    case $cross_compiling:$ac_tool_warned in
3862yes:)
3863{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3864$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3865ac_tool_warned=yes ;;
3866esac
3867    CC=$ac_ct_CC
3868  fi
3869else
3870  CC="$ac_cv_prog_CC"
3871fi
3872
3873if test -z "$CC"; then
3874          if test -n "$ac_tool_prefix"; then
3875    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3876set dummy ${ac_tool_prefix}cc; ac_word=$2
3877{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3878$as_echo_n "checking for $ac_word... " >&6; }
3879if test "${ac_cv_prog_CC+set}" = set; then :
3880  $as_echo_n "(cached) " >&6
3881else
3882  if test -n "$CC"; then
3883  ac_cv_prog_CC="$CC" # Let the user override the test.
3884else
3885as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3886for as_dir in $PATH
3887do
3888  IFS=$as_save_IFS
3889  test -z "$as_dir" && as_dir=.
3890    for ac_exec_ext in '' $ac_executable_extensions; do
3891  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3892    ac_cv_prog_CC="${ac_tool_prefix}cc"
3893    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3894    break 2
3895  fi
3896done
3897  done
3898IFS=$as_save_IFS
3899
3900fi
3901fi
3902CC=$ac_cv_prog_CC
3903if test -n "$CC"; then
3904  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3905$as_echo "$CC" >&6; }
3906else
3907  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3908$as_echo "no" >&6; }
3909fi
3910
3911
3912  fi
3913fi
3914if test -z "$CC"; then
3915  # Extract the first word of "cc", so it can be a program name with args.
3916set dummy cc; ac_word=$2
3917{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3918$as_echo_n "checking for $ac_word... " >&6; }
3919if test "${ac_cv_prog_CC+set}" = set; then :
3920  $as_echo_n "(cached) " >&6
3921else
3922  if test -n "$CC"; then
3923  ac_cv_prog_CC="$CC" # Let the user override the test.
3924else
3925  ac_prog_rejected=no
3926as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3927for as_dir in $PATH
3928do
3929  IFS=$as_save_IFS
3930  test -z "$as_dir" && as_dir=.
3931    for ac_exec_ext in '' $ac_executable_extensions; do
3932  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3933    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3934       ac_prog_rejected=yes
3935       continue
3936     fi
3937    ac_cv_prog_CC="cc"
3938    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3939    break 2
3940  fi
3941done
3942  done
3943IFS=$as_save_IFS
3944
3945if test $ac_prog_rejected = yes; then
3946  # We found a bogon in the path, so make sure we never use it.
3947  set dummy $ac_cv_prog_CC
3948  shift
3949  if test $# != 0; then
3950    # We chose a different compiler from the bogus one.
3951    # However, it has the same basename, so the bogon will be chosen
3952    # first if we set CC to just the basename; use the full file name.
3953    shift
3954    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3955  fi
3956fi
3957fi
3958fi
3959CC=$ac_cv_prog_CC
3960if test -n "$CC"; then
3961  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3962$as_echo "$CC" >&6; }
3963else
3964  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3965$as_echo "no" >&6; }
3966fi
3967
3968
3969fi
3970if test -z "$CC"; then
3971  if test -n "$ac_tool_prefix"; then
3972  for ac_prog in cl.exe
3973  do
3974    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3975set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3976{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3977$as_echo_n "checking for $ac_word... " >&6; }
3978if test "${ac_cv_prog_CC+set}" = set; then :
3979  $as_echo_n "(cached) " >&6
3980else
3981  if test -n "$CC"; then
3982  ac_cv_prog_CC="$CC" # Let the user override the test.
3983else
3984as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3985for as_dir in $PATH
3986do
3987  IFS=$as_save_IFS
3988  test -z "$as_dir" && as_dir=.
3989    for ac_exec_ext in '' $ac_executable_extensions; do
3990  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3991    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3992    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3993    break 2
3994  fi
3995done
3996  done
3997IFS=$as_save_IFS
3998
3999fi
4000fi
4001CC=$ac_cv_prog_CC
4002if test -n "$CC"; then
4003  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4004$as_echo "$CC" >&6; }
4005else
4006  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4007$as_echo "no" >&6; }
4008fi
4009
4010
4011    test -n "$CC" && break
4012  done
4013fi
4014if test -z "$CC"; then
4015  ac_ct_CC=$CC
4016  for ac_prog in cl.exe
4017do
4018  # Extract the first word of "$ac_prog", so it can be a program name with args.
4019set dummy $ac_prog; ac_word=$2
4020{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4021$as_echo_n "checking for $ac_word... " >&6; }
4022if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
4023  $as_echo_n "(cached) " >&6
4024else
4025  if test -n "$ac_ct_CC"; then
4026  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4027else
4028as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4029for as_dir in $PATH
4030do
4031  IFS=$as_save_IFS
4032  test -z "$as_dir" && as_dir=.
4033    for ac_exec_ext in '' $ac_executable_extensions; do
4034  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4035    ac_cv_prog_ac_ct_CC="$ac_prog"
4036    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4037    break 2
4038  fi
4039done
4040  done
4041IFS=$as_save_IFS
4042
4043fi
4044fi
4045ac_ct_CC=$ac_cv_prog_ac_ct_CC
4046if test -n "$ac_ct_CC"; then
4047  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4048$as_echo "$ac_ct_CC" >&6; }
4049else
4050  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4051$as_echo "no" >&6; }
4052fi
4053
4054
4055  test -n "$ac_ct_CC" && break
4056done
4057
4058  if test "x$ac_ct_CC" = x; then
4059    CC=""
4060  else
4061    case $cross_compiling:$ac_tool_warned in
4062yes:)
4063{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4064$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4065ac_tool_warned=yes ;;
4066esac
4067    CC=$ac_ct_CC
4068  fi
4069fi
4070
4071fi
4072
4073
4074test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4075$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4076as_fn_error "no acceptable C compiler found in \$PATH
4077See \`config.log' for more details." "$LINENO" 5; }
4078
4079# Provide some information about the compiler.
4080$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4081set X $ac_compile
4082ac_compiler=$2
4083for ac_option in --version -v -V -qversion; do
4084  { { ac_try="$ac_compiler $ac_option >&5"
4085case "(($ac_try" in
4086  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4087  *) ac_try_echo=$ac_try;;
4088esac
4089eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4090$as_echo "$ac_try_echo"; } >&5
4091  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4092  ac_status=$?
4093  if test -s conftest.err; then
4094    sed '10a\
4095... rest of stderr output deleted ...
4096         10q' conftest.err >conftest.er1
4097    cat conftest.er1 >&5
4098  fi
4099  rm -f conftest.er1 conftest.err
4100  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4101  test $ac_status = 0; }
4102done
4103
4104{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4105$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4106if test "${ac_cv_c_compiler_gnu+set}" = set; then :
4107  $as_echo_n "(cached) " >&6
4108else
4109  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4110/* end confdefs.h.  */
4111
4112int
4113main ()
4114{
4115#ifndef __GNUC__
4116       choke me
4117#endif
4118
4119  ;
4120  return 0;
4121}
4122_ACEOF
4123if ac_fn_c_try_compile "$LINENO"; then :
4124  ac_compiler_gnu=yes
4125else
4126  ac_compiler_gnu=no
4127fi
4128rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4129ac_cv_c_compiler_gnu=$ac_compiler_gnu
4130
4131fi
4132{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4133$as_echo "$ac_cv_c_compiler_gnu" >&6; }
4134if test $ac_compiler_gnu = yes; then
4135  GCC=yes
4136else
4137  GCC=
4138fi
4139ac_test_CFLAGS=${CFLAGS+set}
4140ac_save_CFLAGS=$CFLAGS
4141{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4142$as_echo_n "checking whether $CC accepts -g... " >&6; }
4143if test "${ac_cv_prog_cc_g+set}" = set; then :
4144  $as_echo_n "(cached) " >&6
4145else
4146  ac_save_c_werror_flag=$ac_c_werror_flag
4147   ac_c_werror_flag=yes
4148   ac_cv_prog_cc_g=no
4149   CFLAGS="-g"
4150   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4151/* end confdefs.h.  */
4152
4153int
4154main ()
4155{
4156
4157  ;
4158  return 0;
4159}
4160_ACEOF
4161if ac_fn_c_try_compile "$LINENO"; then :
4162  ac_cv_prog_cc_g=yes
4163else
4164  CFLAGS=""
4165      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4166/* end confdefs.h.  */
4167
4168int
4169main ()
4170{
4171
4172  ;
4173  return 0;
4174}
4175_ACEOF
4176if ac_fn_c_try_compile "$LINENO"; then :
4177
4178else
4179  ac_c_werror_flag=$ac_save_c_werror_flag
4180	 CFLAGS="-g"
4181	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4182/* end confdefs.h.  */
4183
4184int
4185main ()
4186{
4187
4188  ;
4189  return 0;
4190}
4191_ACEOF
4192if ac_fn_c_try_compile "$LINENO"; then :
4193  ac_cv_prog_cc_g=yes
4194fi
4195rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4196fi
4197rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4198fi
4199rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4200   ac_c_werror_flag=$ac_save_c_werror_flag
4201fi
4202{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4203$as_echo "$ac_cv_prog_cc_g" >&6; }
4204if test "$ac_test_CFLAGS" = set; then
4205  CFLAGS=$ac_save_CFLAGS
4206elif test $ac_cv_prog_cc_g = yes; then
4207  if test "$GCC" = yes; then
4208    CFLAGS="-g -O2"
4209  else
4210    CFLAGS="-g"
4211  fi
4212else
4213  if test "$GCC" = yes; then
4214    CFLAGS="-O2"
4215  else
4216    CFLAGS=
4217  fi
4218fi
4219{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4220$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4221if test "${ac_cv_prog_cc_c89+set}" = set; then :
4222  $as_echo_n "(cached) " >&6
4223else
4224  ac_cv_prog_cc_c89=no
4225ac_save_CC=$CC
4226cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4227/* end confdefs.h.  */
4228#include <stdarg.h>
4229#include <stdio.h>
4230#include <sys/types.h>
4231#include <sys/stat.h>
4232/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
4233struct buf { int x; };
4234FILE * (*rcsopen) (struct buf *, struct stat *, int);
4235static char *e (p, i)
4236     char **p;
4237     int i;
4238{
4239  return p[i];
4240}
4241static char *f (char * (*g) (char **, int), char **p, ...)
4242{
4243  char *s;
4244  va_list v;
4245  va_start (v,p);
4246  s = g (p, va_arg (v,int));
4247  va_end (v);
4248  return s;
4249}
4250
4251/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
4252   function prototypes and stuff, but not '\xHH' hex character constants.
4253   These don't provoke an error unfortunately, instead are silently treated
4254   as 'x'.  The following induces an error, until -std is added to get
4255   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
4256   array size at least.  It's necessary to write '\x00'==0 to get something
4257   that's true only with -std.  */
4258int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4259
4260/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4261   inside strings and character constants.  */
4262#define FOO(x) 'x'
4263int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4264
4265int test (int i, double x);
4266struct s1 {int (*f) (int a);};
4267struct s2 {int (*f) (double a);};
4268int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4269int argc;
4270char **argv;
4271int
4272main ()
4273{
4274return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
4275  ;
4276  return 0;
4277}
4278_ACEOF
4279for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4280	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4281do
4282  CC="$ac_save_CC $ac_arg"
4283  if ac_fn_c_try_compile "$LINENO"; then :
4284  ac_cv_prog_cc_c89=$ac_arg
4285fi
4286rm -f core conftest.err conftest.$ac_objext
4287  test "x$ac_cv_prog_cc_c89" != "xno" && break
4288done
4289rm -f conftest.$ac_ext
4290CC=$ac_save_CC
4291
4292fi
4293# AC_CACHE_VAL
4294case "x$ac_cv_prog_cc_c89" in
4295  x)
4296    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4297$as_echo "none needed" >&6; } ;;
4298  xno)
4299    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4300$as_echo "unsupported" >&6; } ;;
4301  *)
4302    CC="$CC $ac_cv_prog_cc_c89"
4303    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4304$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4305esac
4306if test "x$ac_cv_prog_cc_c89" != xno; then :
4307
4308fi
4309
4310ac_ext=c
4311ac_cpp='$CPP $CPPFLAGS'
4312ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4313ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4314ac_compiler_gnu=$ac_cv_c_compiler_gnu
4315
4316depcc="$CC"   am_compiler_list=
4317
4318{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4319$as_echo_n "checking dependency style of $depcc... " >&6; }
4320if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
4321  $as_echo_n "(cached) " >&6
4322else
4323  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4324  # We make a subdir and do the tests there.  Otherwise we can end up
4325  # making bogus files that we don't know about and never remove.  For
4326  # instance it was reported that on HP-UX the gcc test will end up
4327  # making a dummy file named `D' -- because `-MD' means `put the output
4328  # in D'.
4329  mkdir conftest.dir
4330  # Copy depcomp to subdir because otherwise we won't find it if we're
4331  # using a relative directory.
4332  cp "$am_depcomp" conftest.dir
4333  cd conftest.dir
4334  # We will build objects and dependencies in a subdirectory because
4335  # it helps to detect inapplicable dependency modes.  For instance
4336  # both Tru64's cc and ICC support -MD to output dependencies as a
4337  # side effect of compilation, but ICC will put the dependencies in
4338  # the current directory while Tru64 will put them in the object
4339  # directory.
4340  mkdir sub
4341
4342  am_cv_CC_dependencies_compiler_type=none
4343  if test "$am_compiler_list" = ""; then
4344     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4345  fi
4346  am__universal=false
4347  case " $depcc " in #(
4348     *\ -arch\ *\ -arch\ *) am__universal=true ;;
4349     esac
4350
4351  for depmode in $am_compiler_list; do
4352    # Setup a source with many dependencies, because some compilers
4353    # like to wrap large dependency lists on column 80 (with \), and
4354    # we should not choose a depcomp mode which is confused by this.
4355    #
4356    # We need to recreate these files for each test, as the compiler may
4357    # overwrite some of them when testing with obscure command lines.
4358    # This happens at least with the AIX C compiler.
4359    : > sub/conftest.c
4360    for i in 1 2 3 4 5 6; do
4361      echo '#include "conftst'$i'.h"' >> sub/conftest.c
4362      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4363      # Solaris 8's {/usr,}/bin/sh.
4364      touch sub/conftst$i.h
4365    done
4366    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4367
4368    # We check with `-c' and `-o' for the sake of the "dashmstdout"
4369    # mode.  It turns out that the SunPro C++ compiler does not properly
4370    # handle `-M -o', and we need to detect this.  Also, some Intel
4371    # versions had trouble with output in subdirs
4372    am__obj=sub/conftest.${OBJEXT-o}
4373    am__minus_obj="-o $am__obj"
4374    case $depmode in
4375    gcc)
4376      # This depmode causes a compiler race in universal mode.
4377      test "$am__universal" = false || continue
4378      ;;
4379    nosideeffect)
4380      # after this tag, mechanisms are not by side-effect, so they'll
4381      # only be used when explicitly requested
4382      if test "x$enable_dependency_tracking" = xyes; then
4383	continue
4384      else
4385	break
4386      fi
4387      ;;
4388    msvisualcpp | msvcmsys)
4389      # This compiler won't grok `-c -o', but also, the minuso test has
4390      # not run yet.  These depmodes are late enough in the game, and
4391      # so weak that their functioning should not be impacted.
4392      am__obj=conftest.${OBJEXT-o}
4393      am__minus_obj=
4394      ;;
4395    none) break ;;
4396    esac
4397    if depmode=$depmode \
4398       source=sub/conftest.c object=$am__obj \
4399       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4400       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4401         >/dev/null 2>conftest.err &&
4402       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4403       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4404       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4405       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4406      # icc doesn't choke on unknown options, it will just issue warnings
4407      # or remarks (even with -Werror).  So we grep stderr for any message
4408      # that says an option was ignored or not supported.
4409      # When given -MP, icc 7.0 and 7.1 complain thusly:
4410      #   icc: Command line warning: ignoring option '-M'; no argument required
4411      # The diagnosis changed in icc 8.0:
4412      #   icc: Command line remark: option '-MP' not supported
4413      if (grep 'ignoring option' conftest.err ||
4414          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4415        am_cv_CC_dependencies_compiler_type=$depmode
4416        break
4417      fi
4418    fi
4419  done
4420
4421  cd ..
4422  rm -rf conftest.dir
4423else
4424  am_cv_CC_dependencies_compiler_type=none
4425fi
4426
4427fi
4428{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4429$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4430CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4431
4432 if
4433  test "x$enable_dependency_tracking" != xno \
4434  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4435  am__fastdepCC_TRUE=
4436  am__fastdepCC_FALSE='#'
4437else
4438  am__fastdepCC_TRUE='#'
4439  am__fastdepCC_FALSE=
4440fi
4441
4442
4443case `pwd` in
4444  *\ * | *\	*)
4445    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
4446$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
4447esac
4448
4449
4450
4451macro_version='2.2.10'
4452macro_revision='1.3175'
4453
4454
4455
4456
4457
4458
4459
4460
4461
4462
4463
4464
4465
4466ltmain="$ac_aux_dir/ltmain.sh"
4467
4468# Make sure we can run config.sub.
4469$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4470  as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
4471
4472{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4473$as_echo_n "checking build system type... " >&6; }
4474if test "${ac_cv_build+set}" = set; then :
4475  $as_echo_n "(cached) " >&6
4476else
4477  ac_build_alias=$build_alias
4478test "x$ac_build_alias" = x &&
4479  ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4480test "x$ac_build_alias" = x &&
4481  as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
4482ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4483  as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
4484
4485fi
4486{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4487$as_echo "$ac_cv_build" >&6; }
4488case $ac_cv_build in
4489*-*-*) ;;
4490*) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
4491esac
4492build=$ac_cv_build
4493ac_save_IFS=$IFS; IFS='-'
4494set x $ac_cv_build
4495shift
4496build_cpu=$1
4497build_vendor=$2
4498shift; shift
4499# Remember, the first character of IFS is used to create $*,
4500# except with old shells:
4501build_os=$*
4502IFS=$ac_save_IFS
4503case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4504
4505
4506{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4507$as_echo_n "checking host system type... " >&6; }
4508if test "${ac_cv_host+set}" = set; then :
4509  $as_echo_n "(cached) " >&6
4510else
4511  if test "x$host_alias" = x; then
4512  ac_cv_host=$ac_cv_build
4513else
4514  ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4515    as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4516fi
4517
4518fi
4519{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4520$as_echo "$ac_cv_host" >&6; }
4521case $ac_cv_host in
4522*-*-*) ;;
4523*) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
4524esac
4525host=$ac_cv_host
4526ac_save_IFS=$IFS; IFS='-'
4527set x $ac_cv_host
4528shift
4529host_cpu=$1
4530host_vendor=$2
4531shift; shift
4532# Remember, the first character of IFS is used to create $*,
4533# except with old shells:
4534host_os=$*
4535IFS=$ac_save_IFS
4536case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4537
4538
4539# Backslashify metacharacters that are still active within
4540# double-quoted strings.
4541sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
4542
4543# Same as above, but do not quote variable references.
4544double_quote_subst='s/\(["`\\]\)/\\\1/g'
4545
4546# Sed substitution to delay expansion of an escaped shell variable in a
4547# double_quote_subst'ed string.
4548delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
4549
4550# Sed substitution to delay expansion of an escaped single quote.
4551delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
4552
4553# Sed substitution to avoid accidental globbing in evaled expressions
4554no_glob_subst='s/\*/\\\*/g'
4555
4556ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
4557ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
4558ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
4559
4560{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
4561$as_echo_n "checking how to print strings... " >&6; }
4562# Test print first, because it will be a builtin if present.
4563if test "X`print -r -- -n 2>/dev/null`" = X-n && \
4564   test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
4565  ECHO='print -r --'
4566elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
4567  ECHO='printf %s\n'
4568else
4569  # Use this function as a fallback that always works.
4570  func_fallback_echo ()
4571  {
4572    eval 'cat <<_LTECHO_EOF
4573$1
4574_LTECHO_EOF'
4575  }
4576  ECHO='func_fallback_echo'
4577fi
4578
4579# func_echo_all arg...
4580# Invoke $ECHO with all args, space-separated.
4581func_echo_all ()
4582{
4583    $ECHO ""
4584}
4585
4586case "$ECHO" in
4587  printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
4588$as_echo "printf" >&6; } ;;
4589  print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
4590$as_echo "print -r" >&6; } ;;
4591  *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
4592$as_echo "cat" >&6; } ;;
4593esac
4594
4595
4596
4597
4598
4599
4600
4601
4602
4603
4604
4605
4606
4607
4608{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4609$as_echo_n "checking for a sed that does not truncate output... " >&6; }
4610if test "${ac_cv_path_SED+set}" = set; then :
4611  $as_echo_n "(cached) " >&6
4612else
4613            ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4614     for ac_i in 1 2 3 4 5 6 7; do
4615       ac_script="$ac_script$as_nl$ac_script"
4616     done
4617     echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4618     { ac_script=; unset ac_script;}
4619     if test -z "$SED"; then
4620  ac_path_SED_found=false
4621  # Loop through the user's path and test for each of PROGNAME-LIST
4622  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4623for as_dir in $PATH
4624do
4625  IFS=$as_save_IFS
4626  test -z "$as_dir" && as_dir=.
4627    for ac_prog in sed gsed; do
4628    for ac_exec_ext in '' $ac_executable_extensions; do
4629      ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4630      { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
4631# Check for GNU ac_path_SED and select it if it is found.
4632  # Check for GNU $ac_path_SED
4633case `"$ac_path_SED" --version 2>&1` in
4634*GNU*)
4635  ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4636*)
4637  ac_count=0
4638  $as_echo_n 0123456789 >"conftest.in"
4639  while :
4640  do
4641    cat "conftest.in" "conftest.in" >"conftest.tmp"
4642    mv "conftest.tmp" "conftest.in"
4643    cp "conftest.in" "conftest.nl"
4644    $as_echo '' >> "conftest.nl"
4645    "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4646    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4647    as_fn_arith $ac_count + 1 && ac_count=$as_val
4648    if test $ac_count -gt ${ac_path_SED_max-0}; then
4649      # Best one so far, save it but keep looking for a better one
4650      ac_cv_path_SED="$ac_path_SED"
4651      ac_path_SED_max=$ac_count
4652    fi
4653    # 10*(2^10) chars as input seems more than enough
4654    test $ac_count -gt 10 && break
4655  done
4656  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4657esac
4658
4659      $ac_path_SED_found && break 3
4660    done
4661  done
4662  done
4663IFS=$as_save_IFS
4664  if test -z "$ac_cv_path_SED"; then
4665    as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
4666  fi
4667else
4668  ac_cv_path_SED=$SED
4669fi
4670
4671fi
4672{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4673$as_echo "$ac_cv_path_SED" >&6; }
4674 SED="$ac_cv_path_SED"
4675  rm -f conftest.sed
4676
4677test -z "$SED" && SED=sed
4678Xsed="$SED -e 1s/^X//"
4679
4680
4681
4682
4683
4684
4685
4686
4687
4688
4689
4690{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4691$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4692if test "${ac_cv_path_GREP+set}" = set; then :
4693  $as_echo_n "(cached) " >&6
4694else
4695  if test -z "$GREP"; then
4696  ac_path_GREP_found=false
4697  # Loop through the user's path and test for each of PROGNAME-LIST
4698  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4699for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4700do
4701  IFS=$as_save_IFS
4702  test -z "$as_dir" && as_dir=.
4703    for ac_prog in grep ggrep; do
4704    for ac_exec_ext in '' $ac_executable_extensions; do
4705      ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4706      { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4707# Check for GNU ac_path_GREP and select it if it is found.
4708  # Check for GNU $ac_path_GREP
4709case `"$ac_path_GREP" --version 2>&1` in
4710*GNU*)
4711  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4712*)
4713  ac_count=0
4714  $as_echo_n 0123456789 >"conftest.in"
4715  while :
4716  do
4717    cat "conftest.in" "conftest.in" >"conftest.tmp"
4718    mv "conftest.tmp" "conftest.in"
4719    cp "conftest.in" "conftest.nl"
4720    $as_echo 'GREP' >> "conftest.nl"
4721    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4722    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4723    as_fn_arith $ac_count + 1 && ac_count=$as_val
4724    if test $ac_count -gt ${ac_path_GREP_max-0}; then
4725      # Best one so far, save it but keep looking for a better one
4726      ac_cv_path_GREP="$ac_path_GREP"
4727      ac_path_GREP_max=$ac_count
4728    fi
4729    # 10*(2^10) chars as input seems more than enough
4730    test $ac_count -gt 10 && break
4731  done
4732  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4733esac
4734
4735      $ac_path_GREP_found && break 3
4736    done
4737  done
4738  done
4739IFS=$as_save_IFS
4740  if test -z "$ac_cv_path_GREP"; then
4741    as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4742  fi
4743else
4744  ac_cv_path_GREP=$GREP
4745fi
4746
4747fi
4748{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4749$as_echo "$ac_cv_path_GREP" >&6; }
4750 GREP="$ac_cv_path_GREP"
4751
4752
4753{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4754$as_echo_n "checking for egrep... " >&6; }
4755if test "${ac_cv_path_EGREP+set}" = set; then :
4756  $as_echo_n "(cached) " >&6
4757else
4758  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4759   then ac_cv_path_EGREP="$GREP -E"
4760   else
4761     if test -z "$EGREP"; then
4762  ac_path_EGREP_found=false
4763  # Loop through the user's path and test for each of PROGNAME-LIST
4764  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4765for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4766do
4767  IFS=$as_save_IFS
4768  test -z "$as_dir" && as_dir=.
4769    for ac_prog in egrep; do
4770    for ac_exec_ext in '' $ac_executable_extensions; do
4771      ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4772      { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4773# Check for GNU ac_path_EGREP and select it if it is found.
4774  # Check for GNU $ac_path_EGREP
4775case `"$ac_path_EGREP" --version 2>&1` in
4776*GNU*)
4777  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4778*)
4779  ac_count=0
4780  $as_echo_n 0123456789 >"conftest.in"
4781  while :
4782  do
4783    cat "conftest.in" "conftest.in" >"conftest.tmp"
4784    mv "conftest.tmp" "conftest.in"
4785    cp "conftest.in" "conftest.nl"
4786    $as_echo 'EGREP' >> "conftest.nl"
4787    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4788    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4789    as_fn_arith $ac_count + 1 && ac_count=$as_val
4790    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4791      # Best one so far, save it but keep looking for a better one
4792      ac_cv_path_EGREP="$ac_path_EGREP"
4793      ac_path_EGREP_max=$ac_count
4794    fi
4795    # 10*(2^10) chars as input seems more than enough
4796    test $ac_count -gt 10 && break
4797  done
4798  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4799esac
4800
4801      $ac_path_EGREP_found && break 3
4802    done
4803  done
4804  done
4805IFS=$as_save_IFS
4806  if test -z "$ac_cv_path_EGREP"; then
4807    as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4808  fi
4809else
4810  ac_cv_path_EGREP=$EGREP
4811fi
4812
4813   fi
4814fi
4815{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4816$as_echo "$ac_cv_path_EGREP" >&6; }
4817 EGREP="$ac_cv_path_EGREP"
4818
4819
4820{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4821$as_echo_n "checking for fgrep... " >&6; }
4822if test "${ac_cv_path_FGREP+set}" = set; then :
4823  $as_echo_n "(cached) " >&6
4824else
4825  if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4826   then ac_cv_path_FGREP="$GREP -F"
4827   else
4828     if test -z "$FGREP"; then
4829  ac_path_FGREP_found=false
4830  # Loop through the user's path and test for each of PROGNAME-LIST
4831  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4832for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4833do
4834  IFS=$as_save_IFS
4835  test -z "$as_dir" && as_dir=.
4836    for ac_prog in fgrep; do
4837    for ac_exec_ext in '' $ac_executable_extensions; do
4838      ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4839      { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
4840# Check for GNU ac_path_FGREP and select it if it is found.
4841  # Check for GNU $ac_path_FGREP
4842case `"$ac_path_FGREP" --version 2>&1` in
4843*GNU*)
4844  ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4845*)
4846  ac_count=0
4847  $as_echo_n 0123456789 >"conftest.in"
4848  while :
4849  do
4850    cat "conftest.in" "conftest.in" >"conftest.tmp"
4851    mv "conftest.tmp" "conftest.in"
4852    cp "conftest.in" "conftest.nl"
4853    $as_echo 'FGREP' >> "conftest.nl"
4854    "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4855    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4856    as_fn_arith $ac_count + 1 && ac_count=$as_val
4857    if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4858      # Best one so far, save it but keep looking for a better one
4859      ac_cv_path_FGREP="$ac_path_FGREP"
4860      ac_path_FGREP_max=$ac_count
4861    fi
4862    # 10*(2^10) chars as input seems more than enough
4863    test $ac_count -gt 10 && break
4864  done
4865  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4866esac
4867
4868      $ac_path_FGREP_found && break 3
4869    done
4870  done
4871  done
4872IFS=$as_save_IFS
4873  if test -z "$ac_cv_path_FGREP"; then
4874    as_fn_error "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4875  fi
4876else
4877  ac_cv_path_FGREP=$FGREP
4878fi
4879
4880   fi
4881fi
4882{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
4883$as_echo "$ac_cv_path_FGREP" >&6; }
4884 FGREP="$ac_cv_path_FGREP"
4885
4886
4887test -z "$GREP" && GREP=grep
4888
4889
4890
4891
4892
4893
4894
4895
4896
4897
4898
4899
4900
4901
4902
4903
4904
4905
4906
4907# Check whether --with-gnu-ld was given.
4908if test "${with_gnu_ld+set}" = set; then :
4909  withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4910else
4911  with_gnu_ld=no
4912fi
4913
4914ac_prog=ld
4915if test "$GCC" = yes; then
4916  # Check if gcc -print-prog-name=ld gives a path.
4917  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
4918$as_echo_n "checking for ld used by $CC... " >&6; }
4919  case $host in
4920  *-*-mingw*)
4921    # gcc leaves a trailing carriage return which upsets mingw
4922    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4923  *)
4924    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4925  esac
4926  case $ac_prog in
4927    # Accept absolute paths.
4928    [\\/]* | ?:[\\/]*)
4929      re_direlt='/[^/][^/]*/\.\./'
4930      # Canonicalize the pathname of ld
4931      ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4932      while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4933	ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4934      done
4935      test -z "$LD" && LD="$ac_prog"
4936      ;;
4937  "")
4938    # If it fails, then pretend we aren't using GCC.
4939    ac_prog=ld
4940    ;;
4941  *)
4942    # If it is relative, then search for the first ld in PATH.
4943    with_gnu_ld=unknown
4944    ;;
4945  esac
4946elif test "$with_gnu_ld" = yes; then
4947  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
4948$as_echo_n "checking for GNU ld... " >&6; }
4949else
4950  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
4951$as_echo_n "checking for non-GNU ld... " >&6; }
4952fi
4953if test "${lt_cv_path_LD+set}" = set; then :
4954  $as_echo_n "(cached) " >&6
4955else
4956  if test -z "$LD"; then
4957  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4958  for ac_dir in $PATH; do
4959    IFS="$lt_save_ifs"
4960    test -z "$ac_dir" && ac_dir=.
4961    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4962      lt_cv_path_LD="$ac_dir/$ac_prog"
4963      # Check to see if the program is GNU ld.  I'd rather use --version,
4964      # but apparently some variants of GNU ld only accept -v.
4965      # Break only if it was the GNU/non-GNU ld that we prefer.
4966      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4967      *GNU* | *'with BFD'*)
4968	test "$with_gnu_ld" != no && break
4969	;;
4970      *)
4971	test "$with_gnu_ld" != yes && break
4972	;;
4973      esac
4974    fi
4975  done
4976  IFS="$lt_save_ifs"
4977else
4978  lt_cv_path_LD="$LD" # Let the user override the test with a path.
4979fi
4980fi
4981
4982LD="$lt_cv_path_LD"
4983if test -n "$LD"; then
4984  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
4985$as_echo "$LD" >&6; }
4986else
4987  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4988$as_echo "no" >&6; }
4989fi
4990test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
4991{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
4992$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4993if test "${lt_cv_prog_gnu_ld+set}" = set; then :
4994  $as_echo_n "(cached) " >&6
4995else
4996  # I'd rather use --version here, but apparently some GNU lds only accept -v.
4997case `$LD -v 2>&1 </dev/null` in
4998*GNU* | *'with BFD'*)
4999  lt_cv_prog_gnu_ld=yes
5000  ;;
5001*)
5002  lt_cv_prog_gnu_ld=no
5003  ;;
5004esac
5005fi
5006{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5007$as_echo "$lt_cv_prog_gnu_ld" >&6; }
5008with_gnu_ld=$lt_cv_prog_gnu_ld
5009
5010
5011
5012
5013
5014
5015
5016
5017
5018{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5019$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5020if test "${lt_cv_path_NM+set}" = set; then :
5021  $as_echo_n "(cached) " >&6
5022else
5023  if test -n "$NM"; then
5024  # Let the user override the test.
5025  lt_cv_path_NM="$NM"
5026else
5027  lt_nm_to_check="${ac_tool_prefix}nm"
5028  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5029    lt_nm_to_check="$lt_nm_to_check nm"
5030  fi
5031  for lt_tmp_nm in $lt_nm_to_check; do
5032    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5033    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5034      IFS="$lt_save_ifs"
5035      test -z "$ac_dir" && ac_dir=.
5036      tmp_nm="$ac_dir/$lt_tmp_nm"
5037      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5038	# Check to see if the nm accepts a BSD-compat flag.
5039	# Adding the `sed 1q' prevents false positives on HP-UX, which says:
5040	#   nm: unknown option "B" ignored
5041	# Tru64's nm complains that /dev/null is an invalid object file
5042	case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5043	*/dev/null* | *'Invalid file or object type'*)
5044	  lt_cv_path_NM="$tmp_nm -B"
5045	  break
5046	  ;;
5047	*)
5048	  case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5049	  */dev/null*)
5050	    lt_cv_path_NM="$tmp_nm -p"
5051	    break
5052	    ;;
5053	  *)
5054	    lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5055	    continue # so that we can try to find one that supports BSD flags
5056	    ;;
5057	  esac
5058	  ;;
5059	esac
5060      fi
5061    done
5062    IFS="$lt_save_ifs"
5063  done
5064  : ${lt_cv_path_NM=no}
5065fi
5066fi
5067{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5068$as_echo "$lt_cv_path_NM" >&6; }
5069if test "$lt_cv_path_NM" != "no"; then
5070  NM="$lt_cv_path_NM"
5071else
5072  # Didn't find any BSD compatible name lister, look for dumpbin.
5073  if test -n "$DUMPBIN"; then :
5074    # Let the user override the test.
5075  else
5076    if test -n "$ac_tool_prefix"; then
5077  for ac_prog in dumpbin "link -dump"
5078  do
5079    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5080set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5081{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5082$as_echo_n "checking for $ac_word... " >&6; }
5083if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
5084  $as_echo_n "(cached) " >&6
5085else
5086  if test -n "$DUMPBIN"; then
5087  ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5088else
5089as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5090for as_dir in $PATH
5091do
5092  IFS=$as_save_IFS
5093  test -z "$as_dir" && as_dir=.
5094    for ac_exec_ext in '' $ac_executable_extensions; do
5095  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5096    ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5097    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5098    break 2
5099  fi
5100done
5101  done
5102IFS=$as_save_IFS
5103
5104fi
5105fi
5106DUMPBIN=$ac_cv_prog_DUMPBIN
5107if test -n "$DUMPBIN"; then
5108  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5109$as_echo "$DUMPBIN" >&6; }
5110else
5111  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5112$as_echo "no" >&6; }
5113fi
5114
5115
5116    test -n "$DUMPBIN" && break
5117  done
5118fi
5119if test -z "$DUMPBIN"; then
5120  ac_ct_DUMPBIN=$DUMPBIN
5121  for ac_prog in dumpbin "link -dump"
5122do
5123  # Extract the first word of "$ac_prog", so it can be a program name with args.
5124set dummy $ac_prog; ac_word=$2
5125{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5126$as_echo_n "checking for $ac_word... " >&6; }
5127if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
5128  $as_echo_n "(cached) " >&6
5129else
5130  if test -n "$ac_ct_DUMPBIN"; then
5131  ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5132else
5133as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5134for as_dir in $PATH
5135do
5136  IFS=$as_save_IFS
5137  test -z "$as_dir" && as_dir=.
5138    for ac_exec_ext in '' $ac_executable_extensions; do
5139  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5140    ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5141    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5142    break 2
5143  fi
5144done
5145  done
5146IFS=$as_save_IFS
5147
5148fi
5149fi
5150ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5151if test -n "$ac_ct_DUMPBIN"; then
5152  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5153$as_echo "$ac_ct_DUMPBIN" >&6; }
5154else
5155  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5156$as_echo "no" >&6; }
5157fi
5158
5159
5160  test -n "$ac_ct_DUMPBIN" && break
5161done
5162
5163  if test "x$ac_ct_DUMPBIN" = x; then
5164    DUMPBIN=":"
5165  else
5166    case $cross_compiling:$ac_tool_warned in
5167yes:)
5168{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5169$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5170ac_tool_warned=yes ;;
5171esac
5172    DUMPBIN=$ac_ct_DUMPBIN
5173  fi
5174fi
5175
5176    case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
5177    *COFF*)
5178      DUMPBIN="$DUMPBIN -symbols"
5179      ;;
5180    *)
5181      DUMPBIN=:
5182      ;;
5183    esac
5184  fi
5185
5186  if test "$DUMPBIN" != ":"; then
5187    NM="$DUMPBIN"
5188  fi
5189fi
5190test -z "$NM" && NM=nm
5191
5192
5193
5194
5195
5196
5197{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5198$as_echo_n "checking the name lister ($NM) interface... " >&6; }
5199if test "${lt_cv_nm_interface+set}" = set; then :
5200  $as_echo_n "(cached) " >&6
5201else
5202  lt_cv_nm_interface="BSD nm"
5203  echo "int some_variable = 0;" > conftest.$ac_ext
5204  (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
5205  (eval "$ac_compile" 2>conftest.err)
5206  cat conftest.err >&5
5207  (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5208  (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5209  cat conftest.err >&5
5210  (eval echo "\"\$as_me:$LINENO: output\"" >&5)
5211  cat conftest.out >&5
5212  if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5213    lt_cv_nm_interface="MS dumpbin"
5214  fi
5215  rm -f conftest*
5216fi
5217{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5218$as_echo "$lt_cv_nm_interface" >&6; }
5219
5220{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5221$as_echo_n "checking whether ln -s works... " >&6; }
5222LN_S=$as_ln_s
5223if test "$LN_S" = "ln -s"; then
5224  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5225$as_echo "yes" >&6; }
5226else
5227  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5228$as_echo "no, using $LN_S" >&6; }
5229fi
5230
5231# find the maximum length of command line arguments
5232{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5233$as_echo_n "checking the maximum length of command line arguments... " >&6; }
5234if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
5235  $as_echo_n "(cached) " >&6
5236else
5237    i=0
5238  teststring="ABCD"
5239
5240  case $build_os in
5241  msdosdjgpp*)
5242    # On DJGPP, this test can blow up pretty badly due to problems in libc
5243    # (any single argument exceeding 2000 bytes causes a buffer overrun
5244    # during glob expansion).  Even if it were fixed, the result of this
5245    # check would be larger than it should be.
5246    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
5247    ;;
5248
5249  gnu*)
5250    # Under GNU Hurd, this test is not required because there is
5251    # no limit to the length of command line arguments.
5252    # Libtool will interpret -1 as no limit whatsoever
5253    lt_cv_sys_max_cmd_len=-1;
5254    ;;
5255
5256  cygwin* | mingw* | cegcc*)
5257    # On Win9x/ME, this test blows up -- it succeeds, but takes
5258    # about 5 minutes as the teststring grows exponentially.
5259    # Worse, since 9x/ME are not pre-emptively multitasking,
5260    # you end up with a "frozen" computer, even though with patience
5261    # the test eventually succeeds (with a max line length of 256k).
5262    # Instead, let's just punt: use the minimum linelength reported by
5263    # all of the supported platforms: 8192 (on NT/2K/XP).
5264    lt_cv_sys_max_cmd_len=8192;
5265    ;;
5266
5267  mint*)
5268    # On MiNT this can take a long time and run out of memory.
5269    lt_cv_sys_max_cmd_len=8192;
5270    ;;
5271
5272  amigaos*)
5273    # On AmigaOS with pdksh, this test takes hours, literally.
5274    # So we just punt and use a minimum line length of 8192.
5275    lt_cv_sys_max_cmd_len=8192;
5276    ;;
5277
5278  netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5279    # This has been around since 386BSD, at least.  Likely further.
5280    if test -x /sbin/sysctl; then
5281      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5282    elif test -x /usr/sbin/sysctl; then
5283      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5284    else
5285      lt_cv_sys_max_cmd_len=65536	# usable default for all BSDs
5286    fi
5287    # And add a safety zone
5288    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5289    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5290    ;;
5291
5292  interix*)
5293    # We know the value 262144 and hardcode it with a safety zone (like BSD)
5294    lt_cv_sys_max_cmd_len=196608
5295    ;;
5296
5297  osf*)
5298    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5299    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5300    # nice to cause kernel panics so lets avoid the loop below.
5301    # First set a reasonable default.
5302    lt_cv_sys_max_cmd_len=16384
5303    #
5304    if test -x /sbin/sysconfig; then
5305      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5306        *1*) lt_cv_sys_max_cmd_len=-1 ;;
5307      esac
5308    fi
5309    ;;
5310  sco3.2v5*)
5311    lt_cv_sys_max_cmd_len=102400
5312    ;;
5313  sysv5* | sco5v6* | sysv4.2uw2*)
5314    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5315    if test -n "$kargmax"; then
5316      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[	 ]//'`
5317    else
5318      lt_cv_sys_max_cmd_len=32768
5319    fi
5320    ;;
5321  *)
5322    lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5323    if test -n "$lt_cv_sys_max_cmd_len"; then
5324      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5325      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5326    else
5327      # Make teststring a little bigger before we do anything with it.
5328      # a 1K string should be a reasonable start.
5329      for i in 1 2 3 4 5 6 7 8 ; do
5330        teststring=$teststring$teststring
5331      done
5332      SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5333      # If test is not a shell built-in, we'll probably end up computing a
5334      # maximum length that is only half of the actual maximum length, but
5335      # we can't tell.
5336      while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
5337	         = "X$teststring$teststring"; } >/dev/null 2>&1 &&
5338	      test $i != 17 # 1/2 MB should be enough
5339      do
5340        i=`expr $i + 1`
5341        teststring=$teststring$teststring
5342      done
5343      # Only check the string length outside the loop.
5344      lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5345      teststring=
5346      # Add a significant safety factor because C++ compilers can tack on
5347      # massive amounts of additional arguments before passing them to the
5348      # linker.  It appears as though 1/2 is a usable value.
5349      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5350    fi
5351    ;;
5352  esac
5353
5354fi
5355
5356if test -n $lt_cv_sys_max_cmd_len ; then
5357  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5358$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5359else
5360  { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5361$as_echo "none" >&6; }
5362fi
5363max_cmd_len=$lt_cv_sys_max_cmd_len
5364
5365
5366
5367
5368
5369
5370: ${CP="cp -f"}
5371: ${MV="mv -f"}
5372: ${RM="rm -f"}
5373
5374{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
5375$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
5376# Try some XSI features
5377xsi_shell=no
5378( _lt_dummy="a/b/c"
5379  test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
5380      = c,a/b,, \
5381    && eval 'test $(( 1 + 1 )) -eq 2 \
5382    && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
5383  && xsi_shell=yes
5384{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
5385$as_echo "$xsi_shell" >&6; }
5386
5387
5388{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
5389$as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
5390lt_shell_append=no
5391( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
5392    >/dev/null 2>&1 \
5393  && lt_shell_append=yes
5394{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
5395$as_echo "$lt_shell_append" >&6; }
5396
5397
5398if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5399  lt_unset=unset
5400else
5401  lt_unset=false
5402fi
5403
5404
5405
5406
5407
5408# test EBCDIC or ASCII
5409case `echo X|tr X '\101'` in
5410 A) # ASCII based system
5411    # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5412  lt_SP2NL='tr \040 \012'
5413  lt_NL2SP='tr \015\012 \040\040'
5414  ;;
5415 *) # EBCDIC based system
5416  lt_SP2NL='tr \100 \n'
5417  lt_NL2SP='tr \r\n \100\100'
5418  ;;
5419esac
5420
5421
5422
5423
5424
5425
5426
5427
5428
5429{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5430$as_echo_n "checking for $LD option to reload object files... " >&6; }
5431if test "${lt_cv_ld_reload_flag+set}" = set; then :
5432  $as_echo_n "(cached) " >&6
5433else
5434  lt_cv_ld_reload_flag='-r'
5435fi
5436{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5437$as_echo "$lt_cv_ld_reload_flag" >&6; }
5438reload_flag=$lt_cv_ld_reload_flag
5439case $reload_flag in
5440"" | " "*) ;;
5441*) reload_flag=" $reload_flag" ;;
5442esac
5443reload_cmds='$LD$reload_flag -o $output$reload_objs'
5444case $host_os in
5445  darwin*)
5446    if test "$GCC" = yes; then
5447      reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5448    else
5449      reload_cmds='$LD$reload_flag -o $output$reload_objs'
5450    fi
5451    ;;
5452esac
5453
5454
5455
5456
5457
5458
5459
5460
5461
5462if test -n "$ac_tool_prefix"; then
5463  # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5464set dummy ${ac_tool_prefix}objdump; ac_word=$2
5465{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5466$as_echo_n "checking for $ac_word... " >&6; }
5467if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
5468  $as_echo_n "(cached) " >&6
5469else
5470  if test -n "$OBJDUMP"; then
5471  ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5472else
5473as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5474for as_dir in $PATH
5475do
5476  IFS=$as_save_IFS
5477  test -z "$as_dir" && as_dir=.
5478    for ac_exec_ext in '' $ac_executable_extensions; do
5479  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5480    ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5481    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5482    break 2
5483  fi
5484done
5485  done
5486IFS=$as_save_IFS
5487
5488fi
5489fi
5490OBJDUMP=$ac_cv_prog_OBJDUMP
5491if test -n "$OBJDUMP"; then
5492  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5493$as_echo "$OBJDUMP" >&6; }
5494else
5495  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5496$as_echo "no" >&6; }
5497fi
5498
5499
5500fi
5501if test -z "$ac_cv_prog_OBJDUMP"; then
5502  ac_ct_OBJDUMP=$OBJDUMP
5503  # Extract the first word of "objdump", so it can be a program name with args.
5504set dummy objdump; ac_word=$2
5505{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5506$as_echo_n "checking for $ac_word... " >&6; }
5507if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
5508  $as_echo_n "(cached) " >&6
5509else
5510  if test -n "$ac_ct_OBJDUMP"; then
5511  ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5512else
5513as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5514for as_dir in $PATH
5515do
5516  IFS=$as_save_IFS
5517  test -z "$as_dir" && as_dir=.
5518    for ac_exec_ext in '' $ac_executable_extensions; do
5519  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5520    ac_cv_prog_ac_ct_OBJDUMP="objdump"
5521    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5522    break 2
5523  fi
5524done
5525  done
5526IFS=$as_save_IFS
5527
5528fi
5529fi
5530ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5531if test -n "$ac_ct_OBJDUMP"; then
5532  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5533$as_echo "$ac_ct_OBJDUMP" >&6; }
5534else
5535  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5536$as_echo "no" >&6; }
5537fi
5538
5539  if test "x$ac_ct_OBJDUMP" = x; then
5540    OBJDUMP="false"
5541  else
5542    case $cross_compiling:$ac_tool_warned in
5543yes:)
5544{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5545$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5546ac_tool_warned=yes ;;
5547esac
5548    OBJDUMP=$ac_ct_OBJDUMP
5549  fi
5550else
5551  OBJDUMP="$ac_cv_prog_OBJDUMP"
5552fi
5553
5554test -z "$OBJDUMP" && OBJDUMP=objdump
5555
5556
5557
5558
5559
5560
5561
5562
5563
5564{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5565$as_echo_n "checking how to recognize dependent libraries... " >&6; }
5566if test "${lt_cv_deplibs_check_method+set}" = set; then :
5567  $as_echo_n "(cached) " >&6
5568else
5569  lt_cv_file_magic_cmd='$MAGIC_CMD'
5570lt_cv_file_magic_test_file=
5571lt_cv_deplibs_check_method='unknown'
5572# Need to set the preceding variable on all platforms that support
5573# interlibrary dependencies.
5574# 'none' -- dependencies not supported.
5575# `unknown' -- same as none, but documents that we really don't know.
5576# 'pass_all' -- all dependencies passed with no checks.
5577# 'test_compile' -- check by making test program.
5578# 'file_magic [[regex]]' -- check by looking for files in library path
5579# which responds to the $file_magic_cmd with a given extended regex.
5580# If you have `file' or equivalent on your system and you're not sure
5581# whether `pass_all' will *always* work, you probably want this one.
5582
5583case $host_os in
5584aix[4-9]*)
5585  lt_cv_deplibs_check_method=pass_all
5586  ;;
5587
5588beos*)
5589  lt_cv_deplibs_check_method=pass_all
5590  ;;
5591
5592bsdi[45]*)
5593  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5594  lt_cv_file_magic_cmd='/usr/bin/file -L'
5595  lt_cv_file_magic_test_file=/shlib/libc.so
5596  ;;
5597
5598cygwin*)
5599  # func_win32_libid is a shell function defined in ltmain.sh
5600  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5601  lt_cv_file_magic_cmd='func_win32_libid'
5602  ;;
5603
5604mingw* | pw32*)
5605  # Base MSYS/MinGW do not provide the 'file' command needed by
5606  # func_win32_libid shell function, so use a weaker test based on 'objdump',
5607  # unless we find 'file', for example because we are cross-compiling.
5608  # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
5609  if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
5610    lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5611    lt_cv_file_magic_cmd='func_win32_libid'
5612  else
5613    # Keep this pattern in sync with the one in func_win32_libid.
5614    lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
5615    lt_cv_file_magic_cmd='$OBJDUMP -f'
5616  fi
5617  ;;
5618
5619cegcc*)
5620  # use the weaker test based on 'objdump'. See mingw*.
5621  lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5622  lt_cv_file_magic_cmd='$OBJDUMP -f'
5623  ;;
5624
5625darwin* | rhapsody*)
5626  lt_cv_deplibs_check_method=pass_all
5627  ;;
5628
5629freebsd* | dragonfly*)
5630  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5631    case $host_cpu in
5632    i*86 )
5633      # Not sure whether the presence of OpenBSD here was a mistake.
5634      # Let's accept both of them until this is cleared up.
5635      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5636      lt_cv_file_magic_cmd=/usr/bin/file
5637      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5638      ;;
5639    esac
5640  else
5641    lt_cv_deplibs_check_method=pass_all
5642  fi
5643  ;;
5644
5645gnu*)
5646  lt_cv_deplibs_check_method=pass_all
5647  ;;
5648
5649haiku*)
5650  lt_cv_deplibs_check_method=pass_all
5651  ;;
5652
5653hpux10.20* | hpux11*)
5654  lt_cv_file_magic_cmd=/usr/bin/file
5655  case $host_cpu in
5656  ia64*)
5657    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5658    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5659    ;;
5660  hppa*64*)
5661    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]'
5662    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5663    ;;
5664  *)
5665    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
5666    lt_cv_file_magic_test_file=/usr/lib/libc.sl
5667    ;;
5668  esac
5669  ;;
5670
5671interix[3-9]*)
5672  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5673  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5674  ;;
5675
5676irix5* | irix6* | nonstopux*)
5677  case $LD in
5678  *-32|*"-32 ") libmagic=32-bit;;
5679  *-n32|*"-n32 ") libmagic=N32;;
5680  *-64|*"-64 ") libmagic=64-bit;;
5681  *) libmagic=never-match;;
5682  esac
5683  lt_cv_deplibs_check_method=pass_all
5684  ;;
5685
5686# This must be Linux ELF.
5687linux* | k*bsd*-gnu | kopensolaris*-gnu)
5688  lt_cv_deplibs_check_method=pass_all
5689  ;;
5690
5691netbsd*)
5692  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5693    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5694  else
5695    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5696  fi
5697  ;;
5698
5699newos6*)
5700  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5701  lt_cv_file_magic_cmd=/usr/bin/file
5702  lt_cv_file_magic_test_file=/usr/lib/libnls.so
5703  ;;
5704
5705*nto* | *qnx*)
5706  lt_cv_deplibs_check_method=pass_all
5707  ;;
5708
5709openbsd*)
5710  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5711    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5712  else
5713    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5714  fi
5715  ;;
5716
5717osf3* | osf4* | osf5*)
5718  lt_cv_deplibs_check_method=pass_all
5719  ;;
5720
5721rdos*)
5722  lt_cv_deplibs_check_method=pass_all
5723  ;;
5724
5725solaris*)
5726  lt_cv_deplibs_check_method=pass_all
5727  ;;
5728
5729sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5730  lt_cv_deplibs_check_method=pass_all
5731  ;;
5732
5733sysv4 | sysv4.3*)
5734  case $host_vendor in
5735  motorola)
5736    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]'
5737    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5738    ;;
5739  ncr)
5740    lt_cv_deplibs_check_method=pass_all
5741    ;;
5742  sequent)
5743    lt_cv_file_magic_cmd='/bin/file'
5744    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5745    ;;
5746  sni)
5747    lt_cv_file_magic_cmd='/bin/file'
5748    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5749    lt_cv_file_magic_test_file=/lib/libc.so
5750    ;;
5751  siemens)
5752    lt_cv_deplibs_check_method=pass_all
5753    ;;
5754  pc)
5755    lt_cv_deplibs_check_method=pass_all
5756    ;;
5757  esac
5758  ;;
5759
5760tpf*)
5761  lt_cv_deplibs_check_method=pass_all
5762  ;;
5763esac
5764
5765fi
5766{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
5767$as_echo "$lt_cv_deplibs_check_method" >&6; }
5768file_magic_cmd=$lt_cv_file_magic_cmd
5769deplibs_check_method=$lt_cv_deplibs_check_method
5770test -z "$deplibs_check_method" && deplibs_check_method=unknown
5771
5772
5773
5774
5775
5776
5777
5778
5779
5780
5781
5782
5783if test -n "$ac_tool_prefix"; then
5784  # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5785set dummy ${ac_tool_prefix}ar; ac_word=$2
5786{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5787$as_echo_n "checking for $ac_word... " >&6; }
5788if test "${ac_cv_prog_AR+set}" = set; then :
5789  $as_echo_n "(cached) " >&6
5790else
5791  if test -n "$AR"; then
5792  ac_cv_prog_AR="$AR" # Let the user override the test.
5793else
5794as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5795for as_dir in $PATH
5796do
5797  IFS=$as_save_IFS
5798  test -z "$as_dir" && as_dir=.
5799    for ac_exec_ext in '' $ac_executable_extensions; do
5800  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5801    ac_cv_prog_AR="${ac_tool_prefix}ar"
5802    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5803    break 2
5804  fi
5805done
5806  done
5807IFS=$as_save_IFS
5808
5809fi
5810fi
5811AR=$ac_cv_prog_AR
5812if test -n "$AR"; then
5813  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5814$as_echo "$AR" >&6; }
5815else
5816  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5817$as_echo "no" >&6; }
5818fi
5819
5820
5821fi
5822if test -z "$ac_cv_prog_AR"; then
5823  ac_ct_AR=$AR
5824  # Extract the first word of "ar", so it can be a program name with args.
5825set dummy ar; ac_word=$2
5826{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5827$as_echo_n "checking for $ac_word... " >&6; }
5828if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
5829  $as_echo_n "(cached) " >&6
5830else
5831  if test -n "$ac_ct_AR"; then
5832  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5833else
5834as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5835for as_dir in $PATH
5836do
5837  IFS=$as_save_IFS
5838  test -z "$as_dir" && as_dir=.
5839    for ac_exec_ext in '' $ac_executable_extensions; do
5840  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5841    ac_cv_prog_ac_ct_AR="ar"
5842    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5843    break 2
5844  fi
5845done
5846  done
5847IFS=$as_save_IFS
5848
5849fi
5850fi
5851ac_ct_AR=$ac_cv_prog_ac_ct_AR
5852if test -n "$ac_ct_AR"; then
5853  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5854$as_echo "$ac_ct_AR" >&6; }
5855else
5856  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5857$as_echo "no" >&6; }
5858fi
5859
5860  if test "x$ac_ct_AR" = x; then
5861    AR="false"
5862  else
5863    case $cross_compiling:$ac_tool_warned in
5864yes:)
5865{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5866$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5867ac_tool_warned=yes ;;
5868esac
5869    AR=$ac_ct_AR
5870  fi
5871else
5872  AR="$ac_cv_prog_AR"
5873fi
5874
5875test -z "$AR" && AR=ar
5876test -z "$AR_FLAGS" && AR_FLAGS=cru
5877
5878
5879
5880
5881
5882
5883
5884
5885
5886
5887
5888if test -n "$ac_tool_prefix"; then
5889  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5890set dummy ${ac_tool_prefix}strip; ac_word=$2
5891{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5892$as_echo_n "checking for $ac_word... " >&6; }
5893if test "${ac_cv_prog_STRIP+set}" = set; then :
5894  $as_echo_n "(cached) " >&6
5895else
5896  if test -n "$STRIP"; then
5897  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5898else
5899as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5900for as_dir in $PATH
5901do
5902  IFS=$as_save_IFS
5903  test -z "$as_dir" && as_dir=.
5904    for ac_exec_ext in '' $ac_executable_extensions; do
5905  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5906    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5907    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5908    break 2
5909  fi
5910done
5911  done
5912IFS=$as_save_IFS
5913
5914fi
5915fi
5916STRIP=$ac_cv_prog_STRIP
5917if test -n "$STRIP"; then
5918  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
5919$as_echo "$STRIP" >&6; }
5920else
5921  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5922$as_echo "no" >&6; }
5923fi
5924
5925
5926fi
5927if test -z "$ac_cv_prog_STRIP"; then
5928  ac_ct_STRIP=$STRIP
5929  # Extract the first word of "strip", so it can be a program name with args.
5930set dummy strip; ac_word=$2
5931{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5932$as_echo_n "checking for $ac_word... " >&6; }
5933if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
5934  $as_echo_n "(cached) " >&6
5935else
5936  if test -n "$ac_ct_STRIP"; then
5937  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5938else
5939as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5940for as_dir in $PATH
5941do
5942  IFS=$as_save_IFS
5943  test -z "$as_dir" && as_dir=.
5944    for ac_exec_ext in '' $ac_executable_extensions; do
5945  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5946    ac_cv_prog_ac_ct_STRIP="strip"
5947    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5948    break 2
5949  fi
5950done
5951  done
5952IFS=$as_save_IFS
5953
5954fi
5955fi
5956ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5957if test -n "$ac_ct_STRIP"; then
5958  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
5959$as_echo "$ac_ct_STRIP" >&6; }
5960else
5961  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5962$as_echo "no" >&6; }
5963fi
5964
5965  if test "x$ac_ct_STRIP" = x; then
5966    STRIP=":"
5967  else
5968    case $cross_compiling:$ac_tool_warned in
5969yes:)
5970{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5971$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5972ac_tool_warned=yes ;;
5973esac
5974    STRIP=$ac_ct_STRIP
5975  fi
5976else
5977  STRIP="$ac_cv_prog_STRIP"
5978fi
5979
5980test -z "$STRIP" && STRIP=:
5981
5982
5983
5984
5985
5986
5987if test -n "$ac_tool_prefix"; then
5988  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5989set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5990{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5991$as_echo_n "checking for $ac_word... " >&6; }
5992if test "${ac_cv_prog_RANLIB+set}" = set; then :
5993  $as_echo_n "(cached) " >&6
5994else
5995  if test -n "$RANLIB"; then
5996  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5997else
5998as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5999for as_dir in $PATH
6000do
6001  IFS=$as_save_IFS
6002  test -z "$as_dir" && as_dir=.
6003    for ac_exec_ext in '' $ac_executable_extensions; do
6004  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6005    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6006    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6007    break 2
6008  fi
6009done
6010  done
6011IFS=$as_save_IFS
6012
6013fi
6014fi
6015RANLIB=$ac_cv_prog_RANLIB
6016if test -n "$RANLIB"; then
6017  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6018$as_echo "$RANLIB" >&6; }
6019else
6020  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6021$as_echo "no" >&6; }
6022fi
6023
6024
6025fi
6026if test -z "$ac_cv_prog_RANLIB"; then
6027  ac_ct_RANLIB=$RANLIB
6028  # Extract the first word of "ranlib", so it can be a program name with args.
6029set dummy ranlib; ac_word=$2
6030{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6031$as_echo_n "checking for $ac_word... " >&6; }
6032if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
6033  $as_echo_n "(cached) " >&6
6034else
6035  if test -n "$ac_ct_RANLIB"; then
6036  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6037else
6038as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6039for as_dir in $PATH
6040do
6041  IFS=$as_save_IFS
6042  test -z "$as_dir" && as_dir=.
6043    for ac_exec_ext in '' $ac_executable_extensions; do
6044  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6045    ac_cv_prog_ac_ct_RANLIB="ranlib"
6046    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6047    break 2
6048  fi
6049done
6050  done
6051IFS=$as_save_IFS
6052
6053fi
6054fi
6055ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6056if test -n "$ac_ct_RANLIB"; then
6057  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6058$as_echo "$ac_ct_RANLIB" >&6; }
6059else
6060  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6061$as_echo "no" >&6; }
6062fi
6063
6064  if test "x$ac_ct_RANLIB" = x; then
6065    RANLIB=":"
6066  else
6067    case $cross_compiling:$ac_tool_warned in
6068yes:)
6069{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6070$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6071ac_tool_warned=yes ;;
6072esac
6073    RANLIB=$ac_ct_RANLIB
6074  fi
6075else
6076  RANLIB="$ac_cv_prog_RANLIB"
6077fi
6078
6079test -z "$RANLIB" && RANLIB=:
6080
6081
6082
6083
6084
6085
6086# Determine commands to create old-style static archives.
6087old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6088old_postinstall_cmds='chmod 644 $oldlib'
6089old_postuninstall_cmds=
6090
6091if test -n "$RANLIB"; then
6092  case $host_os in
6093  openbsd*)
6094    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6095    ;;
6096  *)
6097    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6098    ;;
6099  esac
6100  old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6101fi
6102
6103case $host_os in
6104  darwin*)
6105    lock_old_archive_extraction=yes ;;
6106  *)
6107    lock_old_archive_extraction=no ;;
6108esac
6109
6110
6111
6112
6113
6114
6115
6116
6117
6118
6119
6120
6121
6122
6123
6124
6125
6126
6127
6128
6129
6130
6131
6132
6133
6134
6135
6136
6137
6138
6139
6140
6141
6142
6143
6144
6145
6146
6147
6148# If no C compiler was specified, use CC.
6149LTCC=${LTCC-"$CC"}
6150
6151# If no C compiler flags were specified, use CFLAGS.
6152LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6153
6154# Allow CC to be a program name with arguments.
6155compiler=$CC
6156
6157
6158# Check for command to grab the raw symbol name followed by C symbol from nm.
6159{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6160$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6161if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
6162  $as_echo_n "(cached) " >&6
6163else
6164
6165# These are sane defaults that work on at least a few old systems.
6166# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
6167
6168# Character class describing NM global symbol codes.
6169symcode='[BCDEGRST]'
6170
6171# Regexp to match symbols that can be accessed directly from C.
6172sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6173
6174# Define system-specific variables.
6175case $host_os in
6176aix*)
6177  symcode='[BCDT]'
6178  ;;
6179cygwin* | mingw* | pw32* | cegcc*)
6180  symcode='[ABCDGISTW]'
6181  ;;
6182hpux*)
6183  if test "$host_cpu" = ia64; then
6184    symcode='[ABCDEGRST]'
6185  fi
6186  ;;
6187irix* | nonstopux*)
6188  symcode='[BCDEGRST]'
6189  ;;
6190osf*)
6191  symcode='[BCDEGQRST]'
6192  ;;
6193solaris*)
6194  symcode='[BDRT]'
6195  ;;
6196sco3.2v5*)
6197  symcode='[DT]'
6198  ;;
6199sysv4.2uw2*)
6200  symcode='[DT]'
6201  ;;
6202sysv5* | sco5v6* | unixware* | OpenUNIX*)
6203  symcode='[ABDT]'
6204  ;;
6205sysv4)
6206  symcode='[DFNSTU]'
6207  ;;
6208esac
6209
6210# If we're using GNU nm, then use its standard symbol codes.
6211case `$NM -V 2>&1` in
6212*GNU* | *'with BFD'*)
6213  symcode='[ABCDGIRSTW]' ;;
6214esac
6215
6216# Transform an extracted symbol line into a proper C declaration.
6217# Some systems (esp. on ia64) link data and code symbols differently,
6218# so use this general approach.
6219lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6220
6221# Transform an extracted symbol line into symbol name and symbol address
6222lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'"
6223lt_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'"
6224
6225# Handle CRLF in mingw tool chain
6226opt_cr=
6227case $build_os in
6228mingw*)
6229  opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6230  ;;
6231esac
6232
6233# Try without a prefix underscore, then with it.
6234for ac_symprfx in "" "_"; do
6235
6236  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6237  symxfrm="\\1 $ac_symprfx\\2 \\2"
6238
6239  # Write the raw and C identifiers.
6240  if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6241    # Fake it for dumpbin and say T for any non-static function
6242    # and D for any global variable.
6243    # Also find C++ and __fastcall symbols from MSVC++,
6244    # which start with @ or ?.
6245    lt_cv_sys_global_symbol_pipe="$AWK '"\
6246"     {last_section=section; section=\$ 3};"\
6247"     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6248"     \$ 0!~/External *\|/{next};"\
6249"     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6250"     {if(hide[section]) next};"\
6251"     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6252"     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6253"     s[1]~/^[@?]/{print s[1], s[1]; next};"\
6254"     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6255"     ' prfx=^$ac_symprfx"
6256  else
6257    lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[	 ]\($symcode$symcode*\)[	 ][	 ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6258  fi
6259
6260  # Check to see that the pipe works correctly.
6261  pipe_works=no
6262
6263  rm -f conftest*
6264  cat > conftest.$ac_ext <<_LT_EOF
6265#ifdef __cplusplus
6266extern "C" {
6267#endif
6268char nm_test_var;
6269void nm_test_func(void);
6270void nm_test_func(void){}
6271#ifdef __cplusplus
6272}
6273#endif
6274int main(){nm_test_var='a';nm_test_func();return(0);}
6275_LT_EOF
6276
6277  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6278  (eval $ac_compile) 2>&5
6279  ac_status=$?
6280  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6281  test $ac_status = 0; }; then
6282    # Now try to grab the symbols.
6283    nlist=conftest.nm
6284    if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
6285  (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
6286  ac_status=$?
6287  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6288  test $ac_status = 0; } && test -s "$nlist"; then
6289      # Try sorting and uniquifying the output.
6290      if sort "$nlist" | uniq > "$nlist"T; then
6291	mv -f "$nlist"T "$nlist"
6292      else
6293	rm -f "$nlist"T
6294      fi
6295
6296      # Make sure that we snagged all the symbols we need.
6297      if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6298	if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6299	  cat <<_LT_EOF > conftest.$ac_ext
6300#ifdef __cplusplus
6301extern "C" {
6302#endif
6303
6304_LT_EOF
6305	  # Now generate the symbol file.
6306	  eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6307
6308	  cat <<_LT_EOF >> conftest.$ac_ext
6309
6310/* The mapping between symbol names and symbols.  */
6311const struct {
6312  const char *name;
6313  void       *address;
6314}
6315lt__PROGRAM__LTX_preloaded_symbols[] =
6316{
6317  { "@PROGRAM@", (void *) 0 },
6318_LT_EOF
6319	  $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6320	  cat <<\_LT_EOF >> conftest.$ac_ext
6321  {0, (void *) 0}
6322};
6323
6324/* This works around a problem in FreeBSD linker */
6325#ifdef FREEBSD_WORKAROUND
6326static const void *lt_preloaded_setup() {
6327  return lt__PROGRAM__LTX_preloaded_symbols;
6328}
6329#endif
6330
6331#ifdef __cplusplus
6332}
6333#endif
6334_LT_EOF
6335	  # Now try linking the two files.
6336	  mv conftest.$ac_objext conftstm.$ac_objext
6337	  lt_save_LIBS="$LIBS"
6338	  lt_save_CFLAGS="$CFLAGS"
6339	  LIBS="conftstm.$ac_objext"
6340	  CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6341	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6342  (eval $ac_link) 2>&5
6343  ac_status=$?
6344  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6345  test $ac_status = 0; } && test -s conftest${ac_exeext}; then
6346	    pipe_works=yes
6347	  fi
6348	  LIBS="$lt_save_LIBS"
6349	  CFLAGS="$lt_save_CFLAGS"
6350	else
6351	  echo "cannot find nm_test_func in $nlist" >&5
6352	fi
6353      else
6354	echo "cannot find nm_test_var in $nlist" >&5
6355      fi
6356    else
6357      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6358    fi
6359  else
6360    echo "$progname: failed program was:" >&5
6361    cat conftest.$ac_ext >&5
6362  fi
6363  rm -rf conftest* conftst*
6364
6365  # Do not use the global_symbol_pipe unless it works.
6366  if test "$pipe_works" = yes; then
6367    break
6368  else
6369    lt_cv_sys_global_symbol_pipe=
6370  fi
6371done
6372
6373fi
6374
6375if test -z "$lt_cv_sys_global_symbol_pipe"; then
6376  lt_cv_sys_global_symbol_to_cdecl=
6377fi
6378if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6379  { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6380$as_echo "failed" >&6; }
6381else
6382  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6383$as_echo "ok" >&6; }
6384fi
6385
6386
6387
6388
6389
6390
6391
6392
6393
6394
6395
6396
6397
6398
6399
6400
6401
6402
6403
6404
6405
6406
6407
6408# Check whether --enable-libtool-lock was given.
6409if test "${enable_libtool_lock+set}" = set; then :
6410  enableval=$enable_libtool_lock;
6411fi
6412
6413test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6414
6415# Some flags need to be propagated to the compiler or linker for good
6416# libtool support.
6417case $host in
6418ia64-*-hpux*)
6419  # Find out which ABI we are using.
6420  echo 'int i;' > conftest.$ac_ext
6421  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6422  (eval $ac_compile) 2>&5
6423  ac_status=$?
6424  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6425  test $ac_status = 0; }; then
6426    case `/usr/bin/file conftest.$ac_objext` in
6427      *ELF-32*)
6428	HPUX_IA64_MODE="32"
6429	;;
6430      *ELF-64*)
6431	HPUX_IA64_MODE="64"
6432	;;
6433    esac
6434  fi
6435  rm -rf conftest*
6436  ;;
6437*-*-irix6*)
6438  # Find out which ABI we are using.
6439  echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6440  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6441  (eval $ac_compile) 2>&5
6442  ac_status=$?
6443  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6444  test $ac_status = 0; }; then
6445    if test "$lt_cv_prog_gnu_ld" = yes; then
6446      case `/usr/bin/file conftest.$ac_objext` in
6447	*32-bit*)
6448	  LD="${LD-ld} -melf32bsmip"
6449	  ;;
6450	*N32*)
6451	  LD="${LD-ld} -melf32bmipn32"
6452	  ;;
6453	*64-bit*)
6454	  LD="${LD-ld} -melf64bmip"
6455	;;
6456      esac
6457    else
6458      case `/usr/bin/file conftest.$ac_objext` in
6459	*32-bit*)
6460	  LD="${LD-ld} -32"
6461	  ;;
6462	*N32*)
6463	  LD="${LD-ld} -n32"
6464	  ;;
6465	*64-bit*)
6466	  LD="${LD-ld} -64"
6467	  ;;
6468      esac
6469    fi
6470  fi
6471  rm -rf conftest*
6472  ;;
6473
6474x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
6475s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6476  # Find out which ABI we are using.
6477  echo 'int i;' > conftest.$ac_ext
6478  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6479  (eval $ac_compile) 2>&5
6480  ac_status=$?
6481  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6482  test $ac_status = 0; }; then
6483    case `/usr/bin/file conftest.o` in
6484      *32-bit*)
6485	case $host in
6486	  x86_64-*kfreebsd*-gnu)
6487	    LD="${LD-ld} -m elf_i386_fbsd"
6488	    ;;
6489	  x86_64-*linux*)
6490	    LD="${LD-ld} -m elf_i386"
6491	    ;;
6492	  ppc64-*linux*|powerpc64-*linux*)
6493	    LD="${LD-ld} -m elf32ppclinux"
6494	    ;;
6495	  s390x-*linux*)
6496	    LD="${LD-ld} -m elf_s390"
6497	    ;;
6498	  sparc64-*linux*)
6499	    LD="${LD-ld} -m elf32_sparc"
6500	    ;;
6501	esac
6502	;;
6503      *64-bit*)
6504	case $host in
6505	  x86_64-*kfreebsd*-gnu)
6506	    LD="${LD-ld} -m elf_x86_64_fbsd"
6507	    ;;
6508	  x86_64-*linux*)
6509	    LD="${LD-ld} -m elf_x86_64"
6510	    ;;
6511	  ppc*-*linux*|powerpc*-*linux*)
6512	    LD="${LD-ld} -m elf64ppc"
6513	    ;;
6514	  s390*-*linux*|s390*-*tpf*)
6515	    LD="${LD-ld} -m elf64_s390"
6516	    ;;
6517	  sparc*-*linux*)
6518	    LD="${LD-ld} -m elf64_sparc"
6519	    ;;
6520	esac
6521	;;
6522    esac
6523  fi
6524  rm -rf conftest*
6525  ;;
6526
6527*-*-sco3.2v5*)
6528  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6529  SAVE_CFLAGS="$CFLAGS"
6530  CFLAGS="$CFLAGS -belf"
6531  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
6532$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
6533if test "${lt_cv_cc_needs_belf+set}" = set; then :
6534  $as_echo_n "(cached) " >&6
6535else
6536  ac_ext=c
6537ac_cpp='$CPP $CPPFLAGS'
6538ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6539ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6540ac_compiler_gnu=$ac_cv_c_compiler_gnu
6541
6542     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6543/* end confdefs.h.  */
6544
6545int
6546main ()
6547{
6548
6549  ;
6550  return 0;
6551}
6552_ACEOF
6553if ac_fn_c_try_link "$LINENO"; then :
6554  lt_cv_cc_needs_belf=yes
6555else
6556  lt_cv_cc_needs_belf=no
6557fi
6558rm -f core conftest.err conftest.$ac_objext \
6559    conftest$ac_exeext conftest.$ac_ext
6560     ac_ext=c
6561ac_cpp='$CPP $CPPFLAGS'
6562ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6563ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6564ac_compiler_gnu=$ac_cv_c_compiler_gnu
6565
6566fi
6567{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
6568$as_echo "$lt_cv_cc_needs_belf" >&6; }
6569  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6570    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6571    CFLAGS="$SAVE_CFLAGS"
6572  fi
6573  ;;
6574sparc*-*solaris*)
6575  # Find out which ABI we are using.
6576  echo 'int i;' > conftest.$ac_ext
6577  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6578  (eval $ac_compile) 2>&5
6579  ac_status=$?
6580  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6581  test $ac_status = 0; }; then
6582    case `/usr/bin/file conftest.o` in
6583    *64-bit*)
6584      case $lt_cv_prog_gnu_ld in
6585      yes*) LD="${LD-ld} -m elf64_sparc" ;;
6586      *)
6587	if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6588	  LD="${LD-ld} -64"
6589	fi
6590	;;
6591      esac
6592      ;;
6593    esac
6594  fi
6595  rm -rf conftest*
6596  ;;
6597esac
6598
6599need_locks="$enable_libtool_lock"
6600
6601
6602  case $host_os in
6603    rhapsody* | darwin*)
6604    if test -n "$ac_tool_prefix"; then
6605  # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
6606set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
6607{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6608$as_echo_n "checking for $ac_word... " >&6; }
6609if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
6610  $as_echo_n "(cached) " >&6
6611else
6612  if test -n "$DSYMUTIL"; then
6613  ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
6614else
6615as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6616for as_dir in $PATH
6617do
6618  IFS=$as_save_IFS
6619  test -z "$as_dir" && as_dir=.
6620    for ac_exec_ext in '' $ac_executable_extensions; do
6621  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6622    ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
6623    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6624    break 2
6625  fi
6626done
6627  done
6628IFS=$as_save_IFS
6629
6630fi
6631fi
6632DSYMUTIL=$ac_cv_prog_DSYMUTIL
6633if test -n "$DSYMUTIL"; then
6634  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
6635$as_echo "$DSYMUTIL" >&6; }
6636else
6637  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6638$as_echo "no" >&6; }
6639fi
6640
6641
6642fi
6643if test -z "$ac_cv_prog_DSYMUTIL"; then
6644  ac_ct_DSYMUTIL=$DSYMUTIL
6645  # Extract the first word of "dsymutil", so it can be a program name with args.
6646set dummy dsymutil; ac_word=$2
6647{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6648$as_echo_n "checking for $ac_word... " >&6; }
6649if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
6650  $as_echo_n "(cached) " >&6
6651else
6652  if test -n "$ac_ct_DSYMUTIL"; then
6653  ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
6654else
6655as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6656for as_dir in $PATH
6657do
6658  IFS=$as_save_IFS
6659  test -z "$as_dir" && as_dir=.
6660    for ac_exec_ext in '' $ac_executable_extensions; do
6661  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6662    ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
6663    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6664    break 2
6665  fi
6666done
6667  done
6668IFS=$as_save_IFS
6669
6670fi
6671fi
6672ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
6673if test -n "$ac_ct_DSYMUTIL"; then
6674  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
6675$as_echo "$ac_ct_DSYMUTIL" >&6; }
6676else
6677  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6678$as_echo "no" >&6; }
6679fi
6680
6681  if test "x$ac_ct_DSYMUTIL" = x; then
6682    DSYMUTIL=":"
6683  else
6684    case $cross_compiling:$ac_tool_warned in
6685yes:)
6686{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6687$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6688ac_tool_warned=yes ;;
6689esac
6690    DSYMUTIL=$ac_ct_DSYMUTIL
6691  fi
6692else
6693  DSYMUTIL="$ac_cv_prog_DSYMUTIL"
6694fi
6695
6696    if test -n "$ac_tool_prefix"; then
6697  # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
6698set dummy ${ac_tool_prefix}nmedit; ac_word=$2
6699{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6700$as_echo_n "checking for $ac_word... " >&6; }
6701if test "${ac_cv_prog_NMEDIT+set}" = set; then :
6702  $as_echo_n "(cached) " >&6
6703else
6704  if test -n "$NMEDIT"; then
6705  ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
6706else
6707as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6708for as_dir in $PATH
6709do
6710  IFS=$as_save_IFS
6711  test -z "$as_dir" && as_dir=.
6712    for ac_exec_ext in '' $ac_executable_extensions; do
6713  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6714    ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
6715    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6716    break 2
6717  fi
6718done
6719  done
6720IFS=$as_save_IFS
6721
6722fi
6723fi
6724NMEDIT=$ac_cv_prog_NMEDIT
6725if test -n "$NMEDIT"; then
6726  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
6727$as_echo "$NMEDIT" >&6; }
6728else
6729  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6730$as_echo "no" >&6; }
6731fi
6732
6733
6734fi
6735if test -z "$ac_cv_prog_NMEDIT"; then
6736  ac_ct_NMEDIT=$NMEDIT
6737  # Extract the first word of "nmedit", so it can be a program name with args.
6738set dummy nmedit; ac_word=$2
6739{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6740$as_echo_n "checking for $ac_word... " >&6; }
6741if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
6742  $as_echo_n "(cached) " >&6
6743else
6744  if test -n "$ac_ct_NMEDIT"; then
6745  ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
6746else
6747as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6748for as_dir in $PATH
6749do
6750  IFS=$as_save_IFS
6751  test -z "$as_dir" && as_dir=.
6752    for ac_exec_ext in '' $ac_executable_extensions; do
6753  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6754    ac_cv_prog_ac_ct_NMEDIT="nmedit"
6755    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6756    break 2
6757  fi
6758done
6759  done
6760IFS=$as_save_IFS
6761
6762fi
6763fi
6764ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
6765if test -n "$ac_ct_NMEDIT"; then
6766  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
6767$as_echo "$ac_ct_NMEDIT" >&6; }
6768else
6769  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6770$as_echo "no" >&6; }
6771fi
6772
6773  if test "x$ac_ct_NMEDIT" = x; then
6774    NMEDIT=":"
6775  else
6776    case $cross_compiling:$ac_tool_warned in
6777yes:)
6778{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6779$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6780ac_tool_warned=yes ;;
6781esac
6782    NMEDIT=$ac_ct_NMEDIT
6783  fi
6784else
6785  NMEDIT="$ac_cv_prog_NMEDIT"
6786fi
6787
6788    if test -n "$ac_tool_prefix"; then
6789  # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
6790set dummy ${ac_tool_prefix}lipo; ac_word=$2
6791{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6792$as_echo_n "checking for $ac_word... " >&6; }
6793if test "${ac_cv_prog_LIPO+set}" = set; then :
6794  $as_echo_n "(cached) " >&6
6795else
6796  if test -n "$LIPO"; then
6797  ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
6798else
6799as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6800for as_dir in $PATH
6801do
6802  IFS=$as_save_IFS
6803  test -z "$as_dir" && as_dir=.
6804    for ac_exec_ext in '' $ac_executable_extensions; do
6805  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6806    ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
6807    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6808    break 2
6809  fi
6810done
6811  done
6812IFS=$as_save_IFS
6813
6814fi
6815fi
6816LIPO=$ac_cv_prog_LIPO
6817if test -n "$LIPO"; then
6818  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
6819$as_echo "$LIPO" >&6; }
6820else
6821  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6822$as_echo "no" >&6; }
6823fi
6824
6825
6826fi
6827if test -z "$ac_cv_prog_LIPO"; then
6828  ac_ct_LIPO=$LIPO
6829  # Extract the first word of "lipo", so it can be a program name with args.
6830set dummy lipo; ac_word=$2
6831{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6832$as_echo_n "checking for $ac_word... " >&6; }
6833if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
6834  $as_echo_n "(cached) " >&6
6835else
6836  if test -n "$ac_ct_LIPO"; then
6837  ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
6838else
6839as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6840for as_dir in $PATH
6841do
6842  IFS=$as_save_IFS
6843  test -z "$as_dir" && as_dir=.
6844    for ac_exec_ext in '' $ac_executable_extensions; do
6845  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6846    ac_cv_prog_ac_ct_LIPO="lipo"
6847    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6848    break 2
6849  fi
6850done
6851  done
6852IFS=$as_save_IFS
6853
6854fi
6855fi
6856ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
6857if test -n "$ac_ct_LIPO"; then
6858  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
6859$as_echo "$ac_ct_LIPO" >&6; }
6860else
6861  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6862$as_echo "no" >&6; }
6863fi
6864
6865  if test "x$ac_ct_LIPO" = x; then
6866    LIPO=":"
6867  else
6868    case $cross_compiling:$ac_tool_warned in
6869yes:)
6870{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6871$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6872ac_tool_warned=yes ;;
6873esac
6874    LIPO=$ac_ct_LIPO
6875  fi
6876else
6877  LIPO="$ac_cv_prog_LIPO"
6878fi
6879
6880    if test -n "$ac_tool_prefix"; then
6881  # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
6882set dummy ${ac_tool_prefix}otool; ac_word=$2
6883{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6884$as_echo_n "checking for $ac_word... " >&6; }
6885if test "${ac_cv_prog_OTOOL+set}" = set; then :
6886  $as_echo_n "(cached) " >&6
6887else
6888  if test -n "$OTOOL"; then
6889  ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
6890else
6891as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6892for as_dir in $PATH
6893do
6894  IFS=$as_save_IFS
6895  test -z "$as_dir" && as_dir=.
6896    for ac_exec_ext in '' $ac_executable_extensions; do
6897  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6898    ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
6899    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6900    break 2
6901  fi
6902done
6903  done
6904IFS=$as_save_IFS
6905
6906fi
6907fi
6908OTOOL=$ac_cv_prog_OTOOL
6909if test -n "$OTOOL"; then
6910  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
6911$as_echo "$OTOOL" >&6; }
6912else
6913  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6914$as_echo "no" >&6; }
6915fi
6916
6917
6918fi
6919if test -z "$ac_cv_prog_OTOOL"; then
6920  ac_ct_OTOOL=$OTOOL
6921  # Extract the first word of "otool", so it can be a program name with args.
6922set dummy otool; ac_word=$2
6923{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6924$as_echo_n "checking for $ac_word... " >&6; }
6925if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
6926  $as_echo_n "(cached) " >&6
6927else
6928  if test -n "$ac_ct_OTOOL"; then
6929  ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
6930else
6931as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6932for as_dir in $PATH
6933do
6934  IFS=$as_save_IFS
6935  test -z "$as_dir" && as_dir=.
6936    for ac_exec_ext in '' $ac_executable_extensions; do
6937  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6938    ac_cv_prog_ac_ct_OTOOL="otool"
6939    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6940    break 2
6941  fi
6942done
6943  done
6944IFS=$as_save_IFS
6945
6946fi
6947fi
6948ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
6949if test -n "$ac_ct_OTOOL"; then
6950  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
6951$as_echo "$ac_ct_OTOOL" >&6; }
6952else
6953  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6954$as_echo "no" >&6; }
6955fi
6956
6957  if test "x$ac_ct_OTOOL" = x; then
6958    OTOOL=":"
6959  else
6960    case $cross_compiling:$ac_tool_warned in
6961yes:)
6962{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6963$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6964ac_tool_warned=yes ;;
6965esac
6966    OTOOL=$ac_ct_OTOOL
6967  fi
6968else
6969  OTOOL="$ac_cv_prog_OTOOL"
6970fi
6971
6972    if test -n "$ac_tool_prefix"; then
6973  # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
6974set dummy ${ac_tool_prefix}otool64; ac_word=$2
6975{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6976$as_echo_n "checking for $ac_word... " >&6; }
6977if test "${ac_cv_prog_OTOOL64+set}" = set; then :
6978  $as_echo_n "(cached) " >&6
6979else
6980  if test -n "$OTOOL64"; then
6981  ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
6982else
6983as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6984for as_dir in $PATH
6985do
6986  IFS=$as_save_IFS
6987  test -z "$as_dir" && as_dir=.
6988    for ac_exec_ext in '' $ac_executable_extensions; do
6989  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6990    ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
6991    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6992    break 2
6993  fi
6994done
6995  done
6996IFS=$as_save_IFS
6997
6998fi
6999fi
7000OTOOL64=$ac_cv_prog_OTOOL64
7001if test -n "$OTOOL64"; then
7002  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7003$as_echo "$OTOOL64" >&6; }
7004else
7005  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7006$as_echo "no" >&6; }
7007fi
7008
7009
7010fi
7011if test -z "$ac_cv_prog_OTOOL64"; then
7012  ac_ct_OTOOL64=$OTOOL64
7013  # Extract the first word of "otool64", so it can be a program name with args.
7014set dummy otool64; ac_word=$2
7015{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7016$as_echo_n "checking for $ac_word... " >&6; }
7017if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
7018  $as_echo_n "(cached) " >&6
7019else
7020  if test -n "$ac_ct_OTOOL64"; then
7021  ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7022else
7023as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7024for as_dir in $PATH
7025do
7026  IFS=$as_save_IFS
7027  test -z "$as_dir" && as_dir=.
7028    for ac_exec_ext in '' $ac_executable_extensions; do
7029  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7030    ac_cv_prog_ac_ct_OTOOL64="otool64"
7031    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7032    break 2
7033  fi
7034done
7035  done
7036IFS=$as_save_IFS
7037
7038fi
7039fi
7040ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7041if test -n "$ac_ct_OTOOL64"; then
7042  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7043$as_echo "$ac_ct_OTOOL64" >&6; }
7044else
7045  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7046$as_echo "no" >&6; }
7047fi
7048
7049  if test "x$ac_ct_OTOOL64" = x; then
7050    OTOOL64=":"
7051  else
7052    case $cross_compiling:$ac_tool_warned in
7053yes:)
7054{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7055$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7056ac_tool_warned=yes ;;
7057esac
7058    OTOOL64=$ac_ct_OTOOL64
7059  fi
7060else
7061  OTOOL64="$ac_cv_prog_OTOOL64"
7062fi
7063
7064
7065
7066
7067
7068
7069
7070
7071
7072
7073
7074
7075
7076
7077
7078
7079
7080
7081
7082
7083
7084
7085
7086
7087
7088
7089
7090    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7091$as_echo_n "checking for -single_module linker flag... " >&6; }
7092if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
7093  $as_echo_n "(cached) " >&6
7094else
7095  lt_cv_apple_cc_single_mod=no
7096      if test -z "${LT_MULTI_MODULE}"; then
7097	# By default we will add the -single_module flag. You can override
7098	# by either setting the environment variable LT_MULTI_MODULE
7099	# non-empty at configure time, or by adding -multi_module to the
7100	# link flags.
7101	rm -rf libconftest.dylib*
7102	echo "int foo(void){return 1;}" > conftest.c
7103	echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7104-dynamiclib -Wl,-single_module conftest.c" >&5
7105	$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7106	  -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7107        _lt_result=$?
7108	if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
7109	  lt_cv_apple_cc_single_mod=yes
7110	else
7111	  cat conftest.err >&5
7112	fi
7113	rm -rf libconftest.dylib*
7114	rm -f conftest.*
7115      fi
7116fi
7117{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7118$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7119    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7120$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7121if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
7122  $as_echo_n "(cached) " >&6
7123else
7124  lt_cv_ld_exported_symbols_list=no
7125      save_LDFLAGS=$LDFLAGS
7126      echo "_main" > conftest.sym
7127      LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7128      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7129/* end confdefs.h.  */
7130
7131int
7132main ()
7133{
7134
7135  ;
7136  return 0;
7137}
7138_ACEOF
7139if ac_fn_c_try_link "$LINENO"; then :
7140  lt_cv_ld_exported_symbols_list=yes
7141else
7142  lt_cv_ld_exported_symbols_list=no
7143fi
7144rm -f core conftest.err conftest.$ac_objext \
7145    conftest$ac_exeext conftest.$ac_ext
7146	LDFLAGS="$save_LDFLAGS"
7147
7148fi
7149{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7150$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7151    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
7152$as_echo_n "checking for -force_load linker flag... " >&6; }
7153if test "${lt_cv_ld_force_load+set}" = set; then :
7154  $as_echo_n "(cached) " >&6
7155else
7156  lt_cv_ld_force_load=no
7157      cat > conftest.c << _LT_EOF
7158int forced_loaded() { return 2;}
7159_LT_EOF
7160      echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
7161      $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
7162      echo "$AR cru libconftest.a conftest.o" >&5
7163      $AR cru libconftest.a conftest.o 2>&5
7164      echo "$RANLIB libconftest.a" >&5
7165      $RANLIB libconftest.a 2>&5
7166      cat > conftest.c << _LT_EOF
7167int main() { return 0;}
7168_LT_EOF
7169      echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
7170      $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
7171      _lt_result=$?
7172      if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
7173	lt_cv_ld_force_load=yes
7174      else
7175	cat conftest.err >&5
7176      fi
7177        rm -f conftest.err libconftest.a conftest conftest.c
7178        rm -rf conftest.dSYM
7179
7180fi
7181{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
7182$as_echo "$lt_cv_ld_force_load" >&6; }
7183    case $host_os in
7184    rhapsody* | darwin1.[012])
7185      _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7186    darwin1.*)
7187      _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7188    darwin*) # darwin 5.x on
7189      # if running on 10.5 or later, the deployment target defaults
7190      # to the OS version, if on x86, and 10.4, the deployment
7191      # target defaults to 10.4. Don't you love it?
7192      case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7193	10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7194	  _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7195	10.[012]*)
7196	  _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7197	10.*)
7198	  _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7199      esac
7200    ;;
7201  esac
7202    if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7203      _lt_dar_single_mod='$single_module'
7204    fi
7205    if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7206      _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7207    else
7208      _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7209    fi
7210    if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
7211      _lt_dsymutil='~$DSYMUTIL $lib || :'
7212    else
7213      _lt_dsymutil=
7214    fi
7215    ;;
7216  esac
7217
7218ac_ext=c
7219ac_cpp='$CPP $CPPFLAGS'
7220ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7221ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7222ac_compiler_gnu=$ac_cv_c_compiler_gnu
7223{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
7224$as_echo_n "checking how to run the C preprocessor... " >&6; }
7225# On Suns, sometimes $CPP names a directory.
7226if test -n "$CPP" && test -d "$CPP"; then
7227  CPP=
7228fi
7229if test -z "$CPP"; then
7230  if test "${ac_cv_prog_CPP+set}" = set; then :
7231  $as_echo_n "(cached) " >&6
7232else
7233      # Double quotes because CPP needs to be expanded
7234    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
7235    do
7236      ac_preproc_ok=false
7237for ac_c_preproc_warn_flag in '' yes
7238do
7239  # Use a header file that comes with gcc, so configuring glibc
7240  # with a fresh cross-compiler works.
7241  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7242  # <limits.h> exists even on freestanding compilers.
7243  # On the NeXT, cc -E runs the code through the compiler's parser,
7244  # not just through cpp. "Syntax error" is here to catch this case.
7245  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7246/* end confdefs.h.  */
7247#ifdef __STDC__
7248# include <limits.h>
7249#else
7250# include <assert.h>
7251#endif
7252		     Syntax error
7253_ACEOF
7254if ac_fn_c_try_cpp "$LINENO"; then :
7255
7256else
7257  # Broken: fails on valid input.
7258continue
7259fi
7260rm -f conftest.err conftest.$ac_ext
7261
7262  # OK, works on sane cases.  Now check whether nonexistent headers
7263  # can be detected and how.
7264  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7265/* end confdefs.h.  */
7266#include <ac_nonexistent.h>
7267_ACEOF
7268if ac_fn_c_try_cpp "$LINENO"; then :
7269  # Broken: success on invalid input.
7270continue
7271else
7272  # Passes both tests.
7273ac_preproc_ok=:
7274break
7275fi
7276rm -f conftest.err conftest.$ac_ext
7277
7278done
7279# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7280rm -f conftest.err conftest.$ac_ext
7281if $ac_preproc_ok; then :
7282  break
7283fi
7284
7285    done
7286    ac_cv_prog_CPP=$CPP
7287
7288fi
7289  CPP=$ac_cv_prog_CPP
7290else
7291  ac_cv_prog_CPP=$CPP
7292fi
7293{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
7294$as_echo "$CPP" >&6; }
7295ac_preproc_ok=false
7296for ac_c_preproc_warn_flag in '' yes
7297do
7298  # Use a header file that comes with gcc, so configuring glibc
7299  # with a fresh cross-compiler works.
7300  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7301  # <limits.h> exists even on freestanding compilers.
7302  # On the NeXT, cc -E runs the code through the compiler's parser,
7303  # not just through cpp. "Syntax error" is here to catch this case.
7304  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7305/* end confdefs.h.  */
7306#ifdef __STDC__
7307# include <limits.h>
7308#else
7309# include <assert.h>
7310#endif
7311		     Syntax error
7312_ACEOF
7313if ac_fn_c_try_cpp "$LINENO"; then :
7314
7315else
7316  # Broken: fails on valid input.
7317continue
7318fi
7319rm -f conftest.err conftest.$ac_ext
7320
7321  # OK, works on sane cases.  Now check whether nonexistent headers
7322  # can be detected and how.
7323  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7324/* end confdefs.h.  */
7325#include <ac_nonexistent.h>
7326_ACEOF
7327if ac_fn_c_try_cpp "$LINENO"; then :
7328  # Broken: success on invalid input.
7329continue
7330else
7331  # Passes both tests.
7332ac_preproc_ok=:
7333break
7334fi
7335rm -f conftest.err conftest.$ac_ext
7336
7337done
7338# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7339rm -f conftest.err conftest.$ac_ext
7340if $ac_preproc_ok; then :
7341
7342else
7343  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7344$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7345as_fn_error "C preprocessor \"$CPP\" fails sanity check
7346See \`config.log' for more details." "$LINENO" 5; }
7347fi
7348
7349ac_ext=c
7350ac_cpp='$CPP $CPPFLAGS'
7351ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7352ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7353ac_compiler_gnu=$ac_cv_c_compiler_gnu
7354
7355
7356{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7357$as_echo_n "checking for ANSI C header files... " >&6; }
7358if test "${ac_cv_header_stdc+set}" = set; then :
7359  $as_echo_n "(cached) " >&6
7360else
7361  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7362/* end confdefs.h.  */
7363#include <stdlib.h>
7364#include <stdarg.h>
7365#include <string.h>
7366#include <float.h>
7367
7368int
7369main ()
7370{
7371
7372  ;
7373  return 0;
7374}
7375_ACEOF
7376if ac_fn_c_try_compile "$LINENO"; then :
7377  ac_cv_header_stdc=yes
7378else
7379  ac_cv_header_stdc=no
7380fi
7381rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7382
7383if test $ac_cv_header_stdc = yes; then
7384  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7385  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7386/* end confdefs.h.  */
7387#include <string.h>
7388
7389_ACEOF
7390if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7391  $EGREP "memchr" >/dev/null 2>&1; then :
7392
7393else
7394  ac_cv_header_stdc=no
7395fi
7396rm -f conftest*
7397
7398fi
7399
7400if test $ac_cv_header_stdc = yes; then
7401  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7402  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7403/* end confdefs.h.  */
7404#include <stdlib.h>
7405
7406_ACEOF
7407if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7408  $EGREP "free" >/dev/null 2>&1; then :
7409
7410else
7411  ac_cv_header_stdc=no
7412fi
7413rm -f conftest*
7414
7415fi
7416
7417if test $ac_cv_header_stdc = yes; then
7418  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7419  if test "$cross_compiling" = yes; then :
7420  :
7421else
7422  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7423/* end confdefs.h.  */
7424#include <ctype.h>
7425#include <stdlib.h>
7426#if ((' ' & 0x0FF) == 0x020)
7427# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7428# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7429#else
7430# define ISLOWER(c) \
7431		   (('a' <= (c) && (c) <= 'i') \
7432		     || ('j' <= (c) && (c) <= 'r') \
7433		     || ('s' <= (c) && (c) <= 'z'))
7434# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7435#endif
7436
7437#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7438int
7439main ()
7440{
7441  int i;
7442  for (i = 0; i < 256; i++)
7443    if (XOR (islower (i), ISLOWER (i))
7444	|| toupper (i) != TOUPPER (i))
7445      return 2;
7446  return 0;
7447}
7448_ACEOF
7449if ac_fn_c_try_run "$LINENO"; then :
7450
7451else
7452  ac_cv_header_stdc=no
7453fi
7454rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7455  conftest.$ac_objext conftest.beam conftest.$ac_ext
7456fi
7457
7458fi
7459fi
7460{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
7461$as_echo "$ac_cv_header_stdc" >&6; }
7462if test $ac_cv_header_stdc = yes; then
7463
7464$as_echo "#define STDC_HEADERS 1" >>confdefs.h
7465
7466fi
7467
7468# On IRIX 5.3, sys/types and inttypes.h are conflicting.
7469for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7470		  inttypes.h stdint.h unistd.h
7471do :
7472  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7473ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7474"
7475eval as_val=\$$as_ac_Header
7476   if test "x$as_val" = x""yes; then :
7477  cat >>confdefs.h <<_ACEOF
7478#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7479_ACEOF
7480
7481fi
7482
7483done
7484
7485
7486for ac_header in dlfcn.h
7487do :
7488  ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7489"
7490if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
7491  cat >>confdefs.h <<_ACEOF
7492#define HAVE_DLFCN_H 1
7493_ACEOF
7494
7495fi
7496
7497done
7498
7499
7500
7501
7502
7503
7504# Set options
7505
7506
7507
7508        enable_dlopen=no
7509
7510
7511  enable_win32_dll=no
7512
7513
7514            # Check whether --enable-shared was given.
7515if test "${enable_shared+set}" = set; then :
7516  enableval=$enable_shared; p=${PACKAGE-default}
7517    case $enableval in
7518    yes) enable_shared=yes ;;
7519    no) enable_shared=no ;;
7520    *)
7521      enable_shared=no
7522      # Look at the argument we got.  We use all the common list separators.
7523      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7524      for pkg in $enableval; do
7525	IFS="$lt_save_ifs"
7526	if test "X$pkg" = "X$p"; then
7527	  enable_shared=yes
7528	fi
7529      done
7530      IFS="$lt_save_ifs"
7531      ;;
7532    esac
7533else
7534  enable_shared=yes
7535fi
7536
7537
7538
7539
7540
7541
7542
7543
7544
7545  # Check whether --enable-static was given.
7546if test "${enable_static+set}" = set; then :
7547  enableval=$enable_static; p=${PACKAGE-default}
7548    case $enableval in
7549    yes) enable_static=yes ;;
7550    no) enable_static=no ;;
7551    *)
7552     enable_static=no
7553      # Look at the argument we got.  We use all the common list separators.
7554      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7555      for pkg in $enableval; do
7556	IFS="$lt_save_ifs"
7557	if test "X$pkg" = "X$p"; then
7558	  enable_static=yes
7559	fi
7560      done
7561      IFS="$lt_save_ifs"
7562      ;;
7563    esac
7564else
7565  enable_static=yes
7566fi
7567
7568
7569
7570
7571
7572
7573
7574
7575
7576
7577# Check whether --with-pic was given.
7578if test "${with_pic+set}" = set; then :
7579  withval=$with_pic; pic_mode="$withval"
7580else
7581  pic_mode=default
7582fi
7583
7584
7585test -z "$pic_mode" && pic_mode=default
7586
7587
7588
7589
7590
7591
7592
7593  # Check whether --enable-fast-install was given.
7594if test "${enable_fast_install+set}" = set; then :
7595  enableval=$enable_fast_install; p=${PACKAGE-default}
7596    case $enableval in
7597    yes) enable_fast_install=yes ;;
7598    no) enable_fast_install=no ;;
7599    *)
7600      enable_fast_install=no
7601      # Look at the argument we got.  We use all the common list separators.
7602      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7603      for pkg in $enableval; do
7604	IFS="$lt_save_ifs"
7605	if test "X$pkg" = "X$p"; then
7606	  enable_fast_install=yes
7607	fi
7608      done
7609      IFS="$lt_save_ifs"
7610      ;;
7611    esac
7612else
7613  enable_fast_install=yes
7614fi
7615
7616
7617
7618
7619
7620
7621
7622
7623
7624
7625
7626# This can be used to rebuild libtool when needed
7627LIBTOOL_DEPS="$ltmain"
7628
7629# Always use our own libtool.
7630LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7631
7632
7633
7634
7635
7636
7637
7638
7639
7640
7641
7642
7643
7644
7645
7646
7647
7648
7649
7650
7651
7652
7653
7654
7655
7656
7657test -z "$LN_S" && LN_S="ln -s"
7658
7659
7660
7661
7662
7663
7664
7665
7666
7667
7668
7669
7670
7671
7672if test -n "${ZSH_VERSION+set}" ; then
7673   setopt NO_GLOB_SUBST
7674fi
7675
7676{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
7677$as_echo_n "checking for objdir... " >&6; }
7678if test "${lt_cv_objdir+set}" = set; then :
7679  $as_echo_n "(cached) " >&6
7680else
7681  rm -f .libs 2>/dev/null
7682mkdir .libs 2>/dev/null
7683if test -d .libs; then
7684  lt_cv_objdir=.libs
7685else
7686  # MS-DOS does not allow filenames that begin with a dot.
7687  lt_cv_objdir=_libs
7688fi
7689rmdir .libs 2>/dev/null
7690fi
7691{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
7692$as_echo "$lt_cv_objdir" >&6; }
7693objdir=$lt_cv_objdir
7694
7695
7696
7697
7698
7699cat >>confdefs.h <<_ACEOF
7700#define LT_OBJDIR "$lt_cv_objdir/"
7701_ACEOF
7702
7703
7704
7705
7706case $host_os in
7707aix3*)
7708  # AIX sometimes has problems with the GCC collect2 program.  For some
7709  # reason, if we set the COLLECT_NAMES environment variable, the problems
7710  # vanish in a puff of smoke.
7711  if test "X${COLLECT_NAMES+set}" != Xset; then
7712    COLLECT_NAMES=
7713    export COLLECT_NAMES
7714  fi
7715  ;;
7716esac
7717
7718# Global variables:
7719ofile=libtool
7720can_build_shared=yes
7721
7722# All known linkers require a `.a' archive for static linking (except MSVC,
7723# which needs '.lib').
7724libext=a
7725
7726with_gnu_ld="$lt_cv_prog_gnu_ld"
7727
7728old_CC="$CC"
7729old_CFLAGS="$CFLAGS"
7730
7731# Set sane defaults for various variables
7732test -z "$CC" && CC=cc
7733test -z "$LTCC" && LTCC=$CC
7734test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7735test -z "$LD" && LD=ld
7736test -z "$ac_objext" && ac_objext=o
7737
7738for cc_temp in $compiler""; do
7739  case $cc_temp in
7740    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7741    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7742    \-*) ;;
7743    *) break;;
7744  esac
7745done
7746cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
7747
7748
7749# Only perform the check for file, if the check method requires it
7750test -z "$MAGIC_CMD" && MAGIC_CMD=file
7751case $deplibs_check_method in
7752file_magic*)
7753  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7754    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
7755$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
7756if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
7757  $as_echo_n "(cached) " >&6
7758else
7759  case $MAGIC_CMD in
7760[\\/*] |  ?:[\\/]*)
7761  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7762  ;;
7763*)
7764  lt_save_MAGIC_CMD="$MAGIC_CMD"
7765  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7766  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7767  for ac_dir in $ac_dummy; do
7768    IFS="$lt_save_ifs"
7769    test -z "$ac_dir" && ac_dir=.
7770    if test -f $ac_dir/${ac_tool_prefix}file; then
7771      lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7772      if test -n "$file_magic_test_file"; then
7773	case $deplibs_check_method in
7774	"file_magic "*)
7775	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7776	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7777	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7778	    $EGREP "$file_magic_regex" > /dev/null; then
7779	    :
7780	  else
7781	    cat <<_LT_EOF 1>&2
7782
7783*** Warning: the command libtool uses to detect shared libraries,
7784*** $file_magic_cmd, produces output that libtool cannot recognize.
7785*** The result is that libtool may fail to recognize shared libraries
7786*** as such.  This will affect the creation of libtool libraries that
7787*** depend on shared libraries, but programs linked with such libtool
7788*** libraries will work regardless of this problem.  Nevertheless, you
7789*** may want to report the problem to your system manager and/or to
7790*** bug-libtool@gnu.org
7791
7792_LT_EOF
7793	  fi ;;
7794	esac
7795      fi
7796      break
7797    fi
7798  done
7799  IFS="$lt_save_ifs"
7800  MAGIC_CMD="$lt_save_MAGIC_CMD"
7801  ;;
7802esac
7803fi
7804
7805MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7806if test -n "$MAGIC_CMD"; then
7807  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7808$as_echo "$MAGIC_CMD" >&6; }
7809else
7810  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7811$as_echo "no" >&6; }
7812fi
7813
7814
7815
7816
7817
7818if test -z "$lt_cv_path_MAGIC_CMD"; then
7819  if test -n "$ac_tool_prefix"; then
7820    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
7821$as_echo_n "checking for file... " >&6; }
7822if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
7823  $as_echo_n "(cached) " >&6
7824else
7825  case $MAGIC_CMD in
7826[\\/*] |  ?:[\\/]*)
7827  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7828  ;;
7829*)
7830  lt_save_MAGIC_CMD="$MAGIC_CMD"
7831  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7832  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7833  for ac_dir in $ac_dummy; do
7834    IFS="$lt_save_ifs"
7835    test -z "$ac_dir" && ac_dir=.
7836    if test -f $ac_dir/file; then
7837      lt_cv_path_MAGIC_CMD="$ac_dir/file"
7838      if test -n "$file_magic_test_file"; then
7839	case $deplibs_check_method in
7840	"file_magic "*)
7841	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7842	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7843	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7844	    $EGREP "$file_magic_regex" > /dev/null; then
7845	    :
7846	  else
7847	    cat <<_LT_EOF 1>&2
7848
7849*** Warning: the command libtool uses to detect shared libraries,
7850*** $file_magic_cmd, produces output that libtool cannot recognize.
7851*** The result is that libtool may fail to recognize shared libraries
7852*** as such.  This will affect the creation of libtool libraries that
7853*** depend on shared libraries, but programs linked with such libtool
7854*** libraries will work regardless of this problem.  Nevertheless, you
7855*** may want to report the problem to your system manager and/or to
7856*** bug-libtool@gnu.org
7857
7858_LT_EOF
7859	  fi ;;
7860	esac
7861      fi
7862      break
7863    fi
7864  done
7865  IFS="$lt_save_ifs"
7866  MAGIC_CMD="$lt_save_MAGIC_CMD"
7867  ;;
7868esac
7869fi
7870
7871MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7872if test -n "$MAGIC_CMD"; then
7873  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7874$as_echo "$MAGIC_CMD" >&6; }
7875else
7876  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7877$as_echo "no" >&6; }
7878fi
7879
7880
7881  else
7882    MAGIC_CMD=:
7883  fi
7884fi
7885
7886  fi
7887  ;;
7888esac
7889
7890# Use C for the default configuration in the libtool script
7891
7892lt_save_CC="$CC"
7893ac_ext=c
7894ac_cpp='$CPP $CPPFLAGS'
7895ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7896ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7897ac_compiler_gnu=$ac_cv_c_compiler_gnu
7898
7899
7900# Source file extension for C test sources.
7901ac_ext=c
7902
7903# Object file extension for compiled C test sources.
7904objext=o
7905objext=$objext
7906
7907# Code to be used in simple compile tests
7908lt_simple_compile_test_code="int some_variable = 0;"
7909
7910# Code to be used in simple link tests
7911lt_simple_link_test_code='int main(){return(0);}'
7912
7913
7914
7915
7916
7917
7918
7919# If no C compiler was specified, use CC.
7920LTCC=${LTCC-"$CC"}
7921
7922# If no C compiler flags were specified, use CFLAGS.
7923LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7924
7925# Allow CC to be a program name with arguments.
7926compiler=$CC
7927
7928# Save the default compiler, since it gets overwritten when the other
7929# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
7930compiler_DEFAULT=$CC
7931
7932# save warnings/boilerplate of simple test code
7933ac_outfile=conftest.$ac_objext
7934echo "$lt_simple_compile_test_code" >conftest.$ac_ext
7935eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7936_lt_compiler_boilerplate=`cat conftest.err`
7937$RM conftest*
7938
7939ac_outfile=conftest.$ac_objext
7940echo "$lt_simple_link_test_code" >conftest.$ac_ext
7941eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7942_lt_linker_boilerplate=`cat conftest.err`
7943$RM -r conftest*
7944
7945
7946if test -n "$compiler"; then
7947
7948lt_prog_compiler_no_builtin_flag=
7949
7950if test "$GCC" = yes; then
7951  case $cc_basename in
7952  nvcc*)
7953    lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
7954  *)
7955    lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
7956  esac
7957
7958  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7959$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
7960if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
7961  $as_echo_n "(cached) " >&6
7962else
7963  lt_cv_prog_compiler_rtti_exceptions=no
7964   ac_outfile=conftest.$ac_objext
7965   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7966   lt_compiler_flag="-fno-rtti -fno-exceptions"
7967   # Insert the option either (1) after the last *FLAGS variable, or
7968   # (2) before a word containing "conftest.", or (3) at the end.
7969   # Note that $ac_compile itself does not contain backslashes and begins
7970   # with a dollar sign (not a hyphen), so the echo should work correctly.
7971   # The option is referenced via a variable to avoid confusing sed.
7972   lt_compile=`echo "$ac_compile" | $SED \
7973   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7974   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7975   -e 's:$: $lt_compiler_flag:'`
7976   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
7977   (eval "$lt_compile" 2>conftest.err)
7978   ac_status=$?
7979   cat conftest.err >&5
7980   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7981   if (exit $ac_status) && test -s "$ac_outfile"; then
7982     # The compiler can only warn and ignore the option if not recognized
7983     # So say no if there are warnings other than the usual output.
7984     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
7985     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7986     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7987       lt_cv_prog_compiler_rtti_exceptions=yes
7988     fi
7989   fi
7990   $RM conftest*
7991
7992fi
7993{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7994$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
7995
7996if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7997    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7998else
7999    :
8000fi
8001
8002fi
8003
8004
8005
8006
8007
8008
8009  lt_prog_compiler_wl=
8010lt_prog_compiler_pic=
8011lt_prog_compiler_static=
8012
8013{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8014$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8015
8016  if test "$GCC" = yes; then
8017    lt_prog_compiler_wl='-Wl,'
8018    lt_prog_compiler_static='-static'
8019
8020    case $host_os in
8021      aix*)
8022      # All AIX code is PIC.
8023      if test "$host_cpu" = ia64; then
8024	# AIX 5 now supports IA64 processor
8025	lt_prog_compiler_static='-Bstatic'
8026      fi
8027      ;;
8028
8029    amigaos*)
8030      case $host_cpu in
8031      powerpc)
8032            # see comment about AmigaOS4 .so support
8033            lt_prog_compiler_pic='-fPIC'
8034        ;;
8035      m68k)
8036            # FIXME: we need at least 68020 code to build shared libraries, but
8037            # adding the `-m68020' flag to GCC prevents building anything better,
8038            # like `-m68040'.
8039            lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8040        ;;
8041      esac
8042      ;;
8043
8044    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8045      # PIC is the default for these OSes.
8046      ;;
8047
8048    mingw* | cygwin* | pw32* | os2* | cegcc*)
8049      # This hack is so that the source file can tell whether it is being
8050      # built for inclusion in a dll (and should export symbols for example).
8051      # Although the cygwin gcc ignores -fPIC, still need this for old-style
8052      # (--disable-auto-import) libraries
8053      lt_prog_compiler_pic='-DDLL_EXPORT'
8054      ;;
8055
8056    darwin* | rhapsody*)
8057      # PIC is the default on this platform
8058      # Common symbols not allowed in MH_DYLIB files
8059      lt_prog_compiler_pic='-fno-common'
8060      ;;
8061
8062    haiku*)
8063      # PIC is the default for Haiku.
8064      # The "-static" flag exists, but is broken.
8065      lt_prog_compiler_static=
8066      ;;
8067
8068    hpux*)
8069      # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8070      # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
8071      # sets the default TLS model and affects inlining.
8072      case $host_cpu in
8073      hppa*64*)
8074	# +Z the default
8075	;;
8076      *)
8077	lt_prog_compiler_pic='-fPIC'
8078	;;
8079      esac
8080      ;;
8081
8082    interix[3-9]*)
8083      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8084      # Instead, we relocate shared libraries at runtime.
8085      ;;
8086
8087    msdosdjgpp*)
8088      # Just because we use GCC doesn't mean we suddenly get shared libraries
8089      # on systems that don't support them.
8090      lt_prog_compiler_can_build_shared=no
8091      enable_shared=no
8092      ;;
8093
8094    *nto* | *qnx*)
8095      # QNX uses GNU C++, but need to define -shared option too, otherwise
8096      # it will coredump.
8097      lt_prog_compiler_pic='-fPIC -shared'
8098      ;;
8099
8100    sysv4*MP*)
8101      if test -d /usr/nec; then
8102	lt_prog_compiler_pic=-Kconform_pic
8103      fi
8104      ;;
8105
8106    *)
8107      lt_prog_compiler_pic='-fPIC'
8108      ;;
8109    esac
8110
8111    case $cc_basename in
8112    nvcc*) # Cuda Compiler Driver 2.2
8113      lt_prog_compiler_wl='-Xlinker '
8114      lt_prog_compiler_pic='-Xcompiler -fPIC'
8115      ;;
8116    esac
8117  else
8118    # PORTME Check for flag to pass linker flags through the system compiler.
8119    case $host_os in
8120    aix*)
8121      lt_prog_compiler_wl='-Wl,'
8122      if test "$host_cpu" = ia64; then
8123	# AIX 5 now supports IA64 processor
8124	lt_prog_compiler_static='-Bstatic'
8125      else
8126	lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8127      fi
8128      ;;
8129
8130    mingw* | cygwin* | pw32* | os2* | cegcc*)
8131      # This hack is so that the source file can tell whether it is being
8132      # built for inclusion in a dll (and should export symbols for example).
8133      lt_prog_compiler_pic='-DDLL_EXPORT'
8134      ;;
8135
8136    hpux9* | hpux10* | hpux11*)
8137      lt_prog_compiler_wl='-Wl,'
8138      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8139      # not for PA HP-UX.
8140      case $host_cpu in
8141      hppa*64*|ia64*)
8142	# +Z the default
8143	;;
8144      *)
8145	lt_prog_compiler_pic='+Z'
8146	;;
8147      esac
8148      # Is there a better lt_prog_compiler_static that works with the bundled CC?
8149      lt_prog_compiler_static='${wl}-a ${wl}archive'
8150      ;;
8151
8152    irix5* | irix6* | nonstopux*)
8153      lt_prog_compiler_wl='-Wl,'
8154      # PIC (with -KPIC) is the default.
8155      lt_prog_compiler_static='-non_shared'
8156      ;;
8157
8158    linux* | k*bsd*-gnu | kopensolaris*-gnu)
8159      case $cc_basename in
8160      # old Intel for x86_64 which still supported -KPIC.
8161      ecc*)
8162	lt_prog_compiler_wl='-Wl,'
8163	lt_prog_compiler_pic='-KPIC'
8164	lt_prog_compiler_static='-static'
8165        ;;
8166      # icc used to be incompatible with GCC.
8167      # ICC 10 doesn't accept -KPIC any more.
8168      icc* | ifort*)
8169	lt_prog_compiler_wl='-Wl,'
8170	lt_prog_compiler_pic='-fPIC'
8171	lt_prog_compiler_static='-static'
8172        ;;
8173      # Lahey Fortran 8.1.
8174      lf95*)
8175	lt_prog_compiler_wl='-Wl,'
8176	lt_prog_compiler_pic='--shared'
8177	lt_prog_compiler_static='--static'
8178	;;
8179      pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
8180        # Portland Group compilers (*not* the Pentium gcc compiler,
8181	# which looks to be a dead project)
8182	lt_prog_compiler_wl='-Wl,'
8183	lt_prog_compiler_pic='-fpic'
8184	lt_prog_compiler_static='-Bstatic'
8185        ;;
8186      ccc*)
8187        lt_prog_compiler_wl='-Wl,'
8188        # All Alpha code is PIC.
8189        lt_prog_compiler_static='-non_shared'
8190        ;;
8191      xl* | bgxl* | bgf* | mpixl*)
8192	# IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8193	lt_prog_compiler_wl='-Wl,'
8194	lt_prog_compiler_pic='-qpic'
8195	lt_prog_compiler_static='-qstaticlink'
8196	;;
8197      *)
8198	case `$CC -V 2>&1 | sed 5q` in
8199	*Sun\ F* | *Sun*Fortran*)
8200	  # Sun Fortran 8.3 passes all unrecognized flags to the linker
8201	  lt_prog_compiler_pic='-KPIC'
8202	  lt_prog_compiler_static='-Bstatic'
8203	  lt_prog_compiler_wl=''
8204	  ;;
8205	*Sun\ C*)
8206	  # Sun C 5.9
8207	  lt_prog_compiler_pic='-KPIC'
8208	  lt_prog_compiler_static='-Bstatic'
8209	  lt_prog_compiler_wl='-Wl,'
8210	  ;;
8211	esac
8212	;;
8213      esac
8214      ;;
8215
8216    newsos6)
8217      lt_prog_compiler_pic='-KPIC'
8218      lt_prog_compiler_static='-Bstatic'
8219      ;;
8220
8221    *nto* | *qnx*)
8222      # QNX uses GNU C++, but need to define -shared option too, otherwise
8223      # it will coredump.
8224      lt_prog_compiler_pic='-fPIC -shared'
8225      ;;
8226
8227    osf3* | osf4* | osf5*)
8228      lt_prog_compiler_wl='-Wl,'
8229      # All OSF/1 code is PIC.
8230      lt_prog_compiler_static='-non_shared'
8231      ;;
8232
8233    rdos*)
8234      lt_prog_compiler_static='-non_shared'
8235      ;;
8236
8237    solaris*)
8238      lt_prog_compiler_pic='-KPIC'
8239      lt_prog_compiler_static='-Bstatic'
8240      case $cc_basename in
8241      f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
8242	lt_prog_compiler_wl='-Qoption ld ';;
8243      *)
8244	lt_prog_compiler_wl='-Wl,';;
8245      esac
8246      ;;
8247
8248    sunos4*)
8249      lt_prog_compiler_wl='-Qoption ld '
8250      lt_prog_compiler_pic='-PIC'
8251      lt_prog_compiler_static='-Bstatic'
8252      ;;
8253
8254    sysv4 | sysv4.2uw2* | sysv4.3*)
8255      lt_prog_compiler_wl='-Wl,'
8256      lt_prog_compiler_pic='-KPIC'
8257      lt_prog_compiler_static='-Bstatic'
8258      ;;
8259
8260    sysv4*MP*)
8261      if test -d /usr/nec ;then
8262	lt_prog_compiler_pic='-Kconform_pic'
8263	lt_prog_compiler_static='-Bstatic'
8264      fi
8265      ;;
8266
8267    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8268      lt_prog_compiler_wl='-Wl,'
8269      lt_prog_compiler_pic='-KPIC'
8270      lt_prog_compiler_static='-Bstatic'
8271      ;;
8272
8273    unicos*)
8274      lt_prog_compiler_wl='-Wl,'
8275      lt_prog_compiler_can_build_shared=no
8276      ;;
8277
8278    uts4*)
8279      lt_prog_compiler_pic='-pic'
8280      lt_prog_compiler_static='-Bstatic'
8281      ;;
8282
8283    *)
8284      lt_prog_compiler_can_build_shared=no
8285      ;;
8286    esac
8287  fi
8288
8289case $host_os in
8290  # For platforms which do not support PIC, -DPIC is meaningless:
8291  *djgpp*)
8292    lt_prog_compiler_pic=
8293    ;;
8294  *)
8295    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8296    ;;
8297esac
8298{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
8299$as_echo "$lt_prog_compiler_pic" >&6; }
8300
8301
8302
8303
8304
8305
8306#
8307# Check to make sure the PIC flag actually works.
8308#
8309if test -n "$lt_prog_compiler_pic"; then
8310  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8311$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8312if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
8313  $as_echo_n "(cached) " >&6
8314else
8315  lt_cv_prog_compiler_pic_works=no
8316   ac_outfile=conftest.$ac_objext
8317   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8318   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8319   # Insert the option either (1) after the last *FLAGS variable, or
8320   # (2) before a word containing "conftest.", or (3) at the end.
8321   # Note that $ac_compile itself does not contain backslashes and begins
8322   # with a dollar sign (not a hyphen), so the echo should work correctly.
8323   # The option is referenced via a variable to avoid confusing sed.
8324   lt_compile=`echo "$ac_compile" | $SED \
8325   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8326   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8327   -e 's:$: $lt_compiler_flag:'`
8328   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8329   (eval "$lt_compile" 2>conftest.err)
8330   ac_status=$?
8331   cat conftest.err >&5
8332   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8333   if (exit $ac_status) && test -s "$ac_outfile"; then
8334     # The compiler can only warn and ignore the option if not recognized
8335     # So say no if there are warnings other than the usual output.
8336     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8337     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8338     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8339       lt_cv_prog_compiler_pic_works=yes
8340     fi
8341   fi
8342   $RM conftest*
8343
8344fi
8345{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8346$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8347
8348if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8349    case $lt_prog_compiler_pic in
8350     "" | " "*) ;;
8351     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8352     esac
8353else
8354    lt_prog_compiler_pic=
8355     lt_prog_compiler_can_build_shared=no
8356fi
8357
8358fi
8359
8360
8361
8362
8363
8364
8365#
8366# Check to make sure the static flag actually works.
8367#
8368wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8369{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8370$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8371if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
8372  $as_echo_n "(cached) " >&6
8373else
8374  lt_cv_prog_compiler_static_works=no
8375   save_LDFLAGS="$LDFLAGS"
8376   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8377   echo "$lt_simple_link_test_code" > conftest.$ac_ext
8378   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8379     # The linker can only warn and ignore the option if not recognized
8380     # So say no if there are warnings
8381     if test -s conftest.err; then
8382       # Append any errors to the config.log.
8383       cat conftest.err 1>&5
8384       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
8385       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8386       if diff conftest.exp conftest.er2 >/dev/null; then
8387         lt_cv_prog_compiler_static_works=yes
8388       fi
8389     else
8390       lt_cv_prog_compiler_static_works=yes
8391     fi
8392   fi
8393   $RM -r conftest*
8394   LDFLAGS="$save_LDFLAGS"
8395
8396fi
8397{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8398$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8399
8400if test x"$lt_cv_prog_compiler_static_works" = xyes; then
8401    :
8402else
8403    lt_prog_compiler_static=
8404fi
8405
8406
8407
8408
8409
8410
8411
8412  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8413$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8414if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
8415  $as_echo_n "(cached) " >&6
8416else
8417  lt_cv_prog_compiler_c_o=no
8418   $RM -r conftest 2>/dev/null
8419   mkdir conftest
8420   cd conftest
8421   mkdir out
8422   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8423
8424   lt_compiler_flag="-o out/conftest2.$ac_objext"
8425   # Insert the option either (1) after the last *FLAGS variable, or
8426   # (2) before a word containing "conftest.", or (3) at the end.
8427   # Note that $ac_compile itself does not contain backslashes and begins
8428   # with a dollar sign (not a hyphen), so the echo should work correctly.
8429   lt_compile=`echo "$ac_compile" | $SED \
8430   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8431   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8432   -e 's:$: $lt_compiler_flag:'`
8433   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8434   (eval "$lt_compile" 2>out/conftest.err)
8435   ac_status=$?
8436   cat out/conftest.err >&5
8437   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8438   if (exit $ac_status) && test -s out/conftest2.$ac_objext
8439   then
8440     # The compiler can only warn and ignore the option if not recognized
8441     # So say no if there are warnings
8442     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8443     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8444     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8445       lt_cv_prog_compiler_c_o=yes
8446     fi
8447   fi
8448   chmod u+w . 2>&5
8449   $RM conftest*
8450   # SGI C++ compiler will create directory out/ii_files/ for
8451   # template instantiation
8452   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8453   $RM out/* && rmdir out
8454   cd ..
8455   $RM -r conftest
8456   $RM conftest*
8457
8458fi
8459{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8460$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8461
8462
8463
8464
8465
8466
8467  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8468$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8469if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
8470  $as_echo_n "(cached) " >&6
8471else
8472  lt_cv_prog_compiler_c_o=no
8473   $RM -r conftest 2>/dev/null
8474   mkdir conftest
8475   cd conftest
8476   mkdir out
8477   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8478
8479   lt_compiler_flag="-o out/conftest2.$ac_objext"
8480   # Insert the option either (1) after the last *FLAGS variable, or
8481   # (2) before a word containing "conftest.", or (3) at the end.
8482   # Note that $ac_compile itself does not contain backslashes and begins
8483   # with a dollar sign (not a hyphen), so the echo should work correctly.
8484   lt_compile=`echo "$ac_compile" | $SED \
8485   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8486   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8487   -e 's:$: $lt_compiler_flag:'`
8488   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8489   (eval "$lt_compile" 2>out/conftest.err)
8490   ac_status=$?
8491   cat out/conftest.err >&5
8492   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8493   if (exit $ac_status) && test -s out/conftest2.$ac_objext
8494   then
8495     # The compiler can only warn and ignore the option if not recognized
8496     # So say no if there are warnings
8497     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8498     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8499     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8500       lt_cv_prog_compiler_c_o=yes
8501     fi
8502   fi
8503   chmod u+w . 2>&5
8504   $RM conftest*
8505   # SGI C++ compiler will create directory out/ii_files/ for
8506   # template instantiation
8507   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8508   $RM out/* && rmdir out
8509   cd ..
8510   $RM -r conftest
8511   $RM conftest*
8512
8513fi
8514{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8515$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8516
8517
8518
8519
8520hard_links="nottested"
8521if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8522  # do not overwrite the value of need_locks provided by the user
8523  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
8524$as_echo_n "checking if we can lock with hard links... " >&6; }
8525  hard_links=yes
8526  $RM conftest*
8527  ln conftest.a conftest.b 2>/dev/null && hard_links=no
8528  touch conftest.a
8529  ln conftest.a conftest.b 2>&5 || hard_links=no
8530  ln conftest.a conftest.b 2>/dev/null && hard_links=no
8531  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
8532$as_echo "$hard_links" >&6; }
8533  if test "$hard_links" = no; then
8534    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8535$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8536    need_locks=warn
8537  fi
8538else
8539  need_locks=no
8540fi
8541
8542
8543
8544
8545
8546
8547  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8548$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
8549
8550  runpath_var=
8551  allow_undefined_flag=
8552  always_export_symbols=no
8553  archive_cmds=
8554  archive_expsym_cmds=
8555  compiler_needs_object=no
8556  enable_shared_with_static_runtimes=no
8557  export_dynamic_flag_spec=
8558  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8559  hardcode_automatic=no
8560  hardcode_direct=no
8561  hardcode_direct_absolute=no
8562  hardcode_libdir_flag_spec=
8563  hardcode_libdir_flag_spec_ld=
8564  hardcode_libdir_separator=
8565  hardcode_minus_L=no
8566  hardcode_shlibpath_var=unsupported
8567  inherit_rpath=no
8568  link_all_deplibs=unknown
8569  module_cmds=
8570  module_expsym_cmds=
8571  old_archive_from_new_cmds=
8572  old_archive_from_expsyms_cmds=
8573  thread_safe_flag_spec=
8574  whole_archive_flag_spec=
8575  # include_expsyms should be a list of space-separated symbols to be *always*
8576  # included in the symbol list
8577  include_expsyms=
8578  # exclude_expsyms can be an extended regexp of symbols to exclude
8579  # it will be wrapped by ` (' and `)$', so one must not match beginning or
8580  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8581  # as well as any symbol that contains `d'.
8582  exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8583  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8584  # platforms (ab)use it in PIC code, but their linkers get confused if
8585  # the symbol is explicitly referenced.  Since portable code cannot
8586  # rely on this symbol name, it's probably fine to never include it in
8587  # preloaded symbol tables.
8588  # Exclude shared library initialization/finalization symbols.
8589  extract_expsyms_cmds=
8590
8591  case $host_os in
8592  cygwin* | mingw* | pw32* | cegcc*)
8593    # FIXME: the MSVC++ port hasn't been tested in a loooong time
8594    # When not using gcc, we currently assume that we are using
8595    # Microsoft Visual C++.
8596    if test "$GCC" != yes; then
8597      with_gnu_ld=no
8598    fi
8599    ;;
8600  interix*)
8601    # we just hope/assume this is gcc and not c89 (= MSVC++)
8602    with_gnu_ld=yes
8603    ;;
8604  openbsd*)
8605    with_gnu_ld=no
8606    ;;
8607  esac
8608
8609  ld_shlibs=yes
8610
8611  # On some targets, GNU ld is compatible enough with the native linker
8612  # that we're better off using the native interface for both.
8613  lt_use_gnu_ld_interface=no
8614  if test "$with_gnu_ld" = yes; then
8615    case $host_os in
8616      aix*)
8617	# The AIX port of GNU ld has always aspired to compatibility
8618	# with the native linker.  However, as the warning in the GNU ld
8619	# block says, versions before 2.19.5* couldn't really create working
8620	# shared libraries, regardless of the interface used.
8621	case `$LD -v 2>&1` in
8622	  *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
8623	  *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
8624	  *\ \(GNU\ Binutils\)\ [3-9]*) ;;
8625	  *)
8626	    lt_use_gnu_ld_interface=yes
8627	    ;;
8628	esac
8629	;;
8630      *)
8631	lt_use_gnu_ld_interface=yes
8632	;;
8633    esac
8634  fi
8635
8636  if test "$lt_use_gnu_ld_interface" = yes; then
8637    # If archive_cmds runs LD, not CC, wlarc should be empty
8638    wlarc='${wl}'
8639
8640    # Set some defaults for GNU ld with shared library support. These
8641    # are reset later if shared libraries are not supported. Putting them
8642    # here allows them to be overridden if necessary.
8643    runpath_var=LD_RUN_PATH
8644    hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8645    export_dynamic_flag_spec='${wl}--export-dynamic'
8646    # ancient GNU ld didn't support --whole-archive et. al.
8647    if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
8648      whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8649    else
8650      whole_archive_flag_spec=
8651    fi
8652    supports_anon_versioning=no
8653    case `$LD -v 2>&1` in
8654      *GNU\ gold*) supports_anon_versioning=yes ;;
8655      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8656      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8657      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8658      *\ 2.11.*) ;; # other 2.11 versions
8659      *) supports_anon_versioning=yes ;;
8660    esac
8661
8662    # See if GNU ld supports shared libraries.
8663    case $host_os in
8664    aix[3-9]*)
8665      # On AIX/PPC, the GNU linker is very broken
8666      if test "$host_cpu" != ia64; then
8667	ld_shlibs=no
8668	cat <<_LT_EOF 1>&2
8669
8670*** Warning: the GNU linker, at least up to release 2.19, is reported
8671*** to be unable to reliably create shared libraries on AIX.
8672*** Therefore, libtool is disabling shared libraries support.  If you
8673*** really care for shared libraries, you may want to install binutils
8674*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
8675*** You will then need to restart the configuration process.
8676
8677_LT_EOF
8678      fi
8679      ;;
8680
8681    amigaos*)
8682      case $host_cpu in
8683      powerpc)
8684            # see comment about AmigaOS4 .so support
8685            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8686            archive_expsym_cmds=''
8687        ;;
8688      m68k)
8689            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)'
8690            hardcode_libdir_flag_spec='-L$libdir'
8691            hardcode_minus_L=yes
8692        ;;
8693      esac
8694      ;;
8695
8696    beos*)
8697      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8698	allow_undefined_flag=unsupported
8699	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8700	# support --undefined.  This deserves some investigation.  FIXME
8701	archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8702      else
8703	ld_shlibs=no
8704      fi
8705      ;;
8706
8707    cygwin* | mingw* | pw32* | cegcc*)
8708      # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8709      # as there is no search path for DLLs.
8710      hardcode_libdir_flag_spec='-L$libdir'
8711      export_dynamic_flag_spec='${wl}--export-all-symbols'
8712      allow_undefined_flag=unsupported
8713      always_export_symbols=no
8714      enable_shared_with_static_runtimes=yes
8715      export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
8716
8717      if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
8718        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8719	# If the export-symbols file already is a .def file (1st line
8720	# is EXPORTS), use it as is; otherwise, prepend...
8721	archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8722	  cp $export_symbols $output_objdir/$soname.def;
8723	else
8724	  echo EXPORTS > $output_objdir/$soname.def;
8725	  cat $export_symbols >> $output_objdir/$soname.def;
8726	fi~
8727	$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8728      else
8729	ld_shlibs=no
8730      fi
8731      ;;
8732
8733    haiku*)
8734      archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8735      link_all_deplibs=yes
8736      ;;
8737
8738    interix[3-9]*)
8739      hardcode_direct=no
8740      hardcode_shlibpath_var=no
8741      hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8742      export_dynamic_flag_spec='${wl}-E'
8743      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8744      # Instead, shared libraries are loaded at an image base (0x10000000 by
8745      # default) and relocated if they conflict, which is a slow very memory
8746      # consuming and fragmenting process.  To avoid this, we pick a random,
8747      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8748      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
8749      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8750      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'
8751      ;;
8752
8753    gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
8754      tmp_diet=no
8755      if test "$host_os" = linux-dietlibc; then
8756	case $cc_basename in
8757	  diet\ *) tmp_diet=yes;;	# linux-dietlibc with static linking (!diet-dyn)
8758	esac
8759      fi
8760      if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
8761	 && test "$tmp_diet" = no
8762      then
8763	tmp_addflag=
8764	tmp_sharedflag='-shared'
8765	case $cc_basename,$host_cpu in
8766        pgcc*)				# Portland Group C compiler
8767	  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'
8768	  tmp_addflag=' $pic_flag'
8769	  ;;
8770	pgf77* | pgf90* | pgf95* | pgfortran*)
8771					# Portland Group f77 and f90 compilers
8772	  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'
8773	  tmp_addflag=' $pic_flag -Mnomain' ;;
8774	ecc*,ia64* | icc*,ia64*)	# Intel C compiler on ia64
8775	  tmp_addflag=' -i_dynamic' ;;
8776	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
8777	  tmp_addflag=' -i_dynamic -nofor_main' ;;
8778	ifc* | ifort*)			# Intel Fortran compiler
8779	  tmp_addflag=' -nofor_main' ;;
8780	lf95*)				# Lahey Fortran 8.1
8781	  whole_archive_flag_spec=
8782	  tmp_sharedflag='--shared' ;;
8783	xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
8784	  tmp_sharedflag='-qmkshrobj'
8785	  tmp_addflag= ;;
8786	nvcc*)	# Cuda Compiler Driver 2.2
8787	  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'
8788	  compiler_needs_object=yes
8789	  ;;
8790	esac
8791	case `$CC -V 2>&1 | sed 5q` in
8792	*Sun\ C*)			# Sun C 5.9
8793	  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'
8794	  compiler_needs_object=yes
8795	  tmp_sharedflag='-G' ;;
8796	*Sun\ F*)			# Sun Fortran 8.3
8797	  tmp_sharedflag='-G' ;;
8798	esac
8799	archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8800
8801        if test "x$supports_anon_versioning" = xyes; then
8802          archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8803	    cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8804	    echo "local: *; };" >> $output_objdir/$libname.ver~
8805	    $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8806        fi
8807
8808	case $cc_basename in
8809	xlf* | bgf* | bgxlf* | mpixlf*)
8810	  # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
8811	  whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
8812	  hardcode_libdir_flag_spec=
8813	  hardcode_libdir_flag_spec_ld='-rpath $libdir'
8814	  archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
8815	  if test "x$supports_anon_versioning" = xyes; then
8816	    archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8817	      cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8818	      echo "local: *; };" >> $output_objdir/$libname.ver~
8819	      $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
8820	  fi
8821	  ;;
8822	esac
8823      else
8824        ld_shlibs=no
8825      fi
8826      ;;
8827
8828    netbsd*)
8829      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8830	archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8831	wlarc=
8832      else
8833	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8834	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8835      fi
8836      ;;
8837
8838    solaris*)
8839      if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
8840	ld_shlibs=no
8841	cat <<_LT_EOF 1>&2
8842
8843*** Warning: The releases 2.8.* of the GNU linker cannot reliably
8844*** create shared libraries on Solaris systems.  Therefore, libtool
8845*** is disabling shared libraries support.  We urge you to upgrade GNU
8846*** binutils to release 2.9.1 or newer.  Another option is to modify
8847*** your PATH or compiler configuration so that the native linker is
8848*** used, and then restart.
8849
8850_LT_EOF
8851      elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8852	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8853	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8854      else
8855	ld_shlibs=no
8856      fi
8857      ;;
8858
8859    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8860      case `$LD -v 2>&1` in
8861        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8862	ld_shlibs=no
8863	cat <<_LT_EOF 1>&2
8864
8865*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8866*** reliably create shared libraries on SCO systems.  Therefore, libtool
8867*** is disabling shared libraries support.  We urge you to upgrade GNU
8868*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
8869*** your PATH or compiler configuration so that the native linker is
8870*** used, and then restart.
8871
8872_LT_EOF
8873	;;
8874	*)
8875	  # For security reasons, it is highly recommended that you always
8876	  # use absolute paths for naming shared libraries, and exclude the
8877	  # DT_RUNPATH tag from executables and libraries.  But doing so
8878	  # requires that you compile everything twice, which is a pain.
8879	  if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8880	    hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8881	    archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8882	    archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8883	  else
8884	    ld_shlibs=no
8885	  fi
8886	;;
8887      esac
8888      ;;
8889
8890    sunos4*)
8891      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8892      wlarc=
8893      hardcode_direct=yes
8894      hardcode_shlibpath_var=no
8895      ;;
8896
8897    *)
8898      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8899	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8900	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8901      else
8902	ld_shlibs=no
8903      fi
8904      ;;
8905    esac
8906
8907    if test "$ld_shlibs" = no; then
8908      runpath_var=
8909      hardcode_libdir_flag_spec=
8910      export_dynamic_flag_spec=
8911      whole_archive_flag_spec=
8912    fi
8913  else
8914    # PORTME fill in a description of your system's linker (not GNU ld)
8915    case $host_os in
8916    aix3*)
8917      allow_undefined_flag=unsupported
8918      always_export_symbols=yes
8919      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'
8920      # Note: this linker hardcodes the directories in LIBPATH if there
8921      # are no directories specified by -L.
8922      hardcode_minus_L=yes
8923      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8924	# Neither direct hardcoding nor static linking is supported with a
8925	# broken collect2.
8926	hardcode_direct=unsupported
8927      fi
8928      ;;
8929
8930    aix[4-9]*)
8931      if test "$host_cpu" = ia64; then
8932	# On IA64, the linker does run time linking by default, so we don't
8933	# have to do anything special.
8934	aix_use_runtimelinking=no
8935	exp_sym_flag='-Bexport'
8936	no_entry_flag=""
8937      else
8938	# If we're using GNU nm, then we don't want the "-C" option.
8939	# -C means demangle to AIX nm, but means don't demangle with GNU nm
8940	# Also, AIX nm treats weak defined symbols like other global
8941	# defined symbols, whereas GNU nm marks them as "W".
8942	if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
8943	  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'
8944	else
8945	  export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
8946	fi
8947	aix_use_runtimelinking=no
8948
8949	# Test if we are trying to use run time linking or normal
8950	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
8951	# need to do runtime linking.
8952	case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
8953	  for ld_flag in $LDFLAGS; do
8954	  if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8955	    aix_use_runtimelinking=yes
8956	    break
8957	  fi
8958	  done
8959	  ;;
8960	esac
8961
8962	exp_sym_flag='-bexport'
8963	no_entry_flag='-bnoentry'
8964      fi
8965
8966      # When large executables or shared objects are built, AIX ld can
8967      # have problems creating the table of contents.  If linking a library
8968      # or program results in "error TOC overflow" add -mminimal-toc to
8969      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
8970      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8971
8972      archive_cmds=''
8973      hardcode_direct=yes
8974      hardcode_direct_absolute=yes
8975      hardcode_libdir_separator=':'
8976      link_all_deplibs=yes
8977      file_list_spec='${wl}-f,'
8978
8979      if test "$GCC" = yes; then
8980	case $host_os in aix4.[012]|aix4.[012].*)
8981	# We only want to do this on AIX 4.2 and lower, the check
8982	# below for broken collect2 doesn't work under 4.3+
8983	  collect2name=`${CC} -print-prog-name=collect2`
8984	  if test -f "$collect2name" &&
8985	   strings "$collect2name" | $GREP resolve_lib_name >/dev/null
8986	  then
8987	  # We have reworked collect2
8988	  :
8989	  else
8990	  # We have old collect2
8991	  hardcode_direct=unsupported
8992	  # It fails to find uninstalled libraries when the uninstalled
8993	  # path is not listed in the libpath.  Setting hardcode_minus_L
8994	  # to unsupported forces relinking
8995	  hardcode_minus_L=yes
8996	  hardcode_libdir_flag_spec='-L$libdir'
8997	  hardcode_libdir_separator=
8998	  fi
8999	  ;;
9000	esac
9001	shared_flag='-shared'
9002	if test "$aix_use_runtimelinking" = yes; then
9003	  shared_flag="$shared_flag "'${wl}-G'
9004	fi
9005      else
9006	# not using gcc
9007	if test "$host_cpu" = ia64; then
9008	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9009	# chokes on -Wl,-G. The following line is correct:
9010	  shared_flag='-G'
9011	else
9012	  if test "$aix_use_runtimelinking" = yes; then
9013	    shared_flag='${wl}-G'
9014	  else
9015	    shared_flag='${wl}-bM:SRE'
9016	  fi
9017	fi
9018      fi
9019
9020      export_dynamic_flag_spec='${wl}-bexpall'
9021      # It seems that -bexpall does not export symbols beginning with
9022      # underscore (_), so it is better to generate a list of symbols to export.
9023      always_export_symbols=yes
9024      if test "$aix_use_runtimelinking" = yes; then
9025	# Warning - without using the other runtime loading flags (-brtl),
9026	# -berok will link without error, but may produce a broken library.
9027	allow_undefined_flag='-berok'
9028        # Determine the default libpath from the value encoded in an
9029        # empty executable.
9030        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9031/* end confdefs.h.  */
9032
9033int
9034main ()
9035{
9036
9037  ;
9038  return 0;
9039}
9040_ACEOF
9041if ac_fn_c_try_link "$LINENO"; then :
9042
9043lt_aix_libpath_sed='
9044    /Import File Strings/,/^$/ {
9045	/^0/ {
9046	    s/^0  *\(.*\)$/\1/
9047	    p
9048	}
9049    }'
9050aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9051# Check for a 64-bit object if we didn't find anything.
9052if test -z "$aix_libpath"; then
9053  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9054fi
9055fi
9056rm -f core conftest.err conftest.$ac_objext \
9057    conftest$ac_exeext conftest.$ac_ext
9058if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9059
9060        hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9061        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"
9062      else
9063	if test "$host_cpu" = ia64; then
9064	  hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9065	  allow_undefined_flag="-z nodefs"
9066	  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"
9067	else
9068	 # Determine the default libpath from the value encoded in an
9069	 # empty executable.
9070	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9071/* end confdefs.h.  */
9072
9073int
9074main ()
9075{
9076
9077  ;
9078  return 0;
9079}
9080_ACEOF
9081if ac_fn_c_try_link "$LINENO"; then :
9082
9083lt_aix_libpath_sed='
9084    /Import File Strings/,/^$/ {
9085	/^0/ {
9086	    s/^0  *\(.*\)$/\1/
9087	    p
9088	}
9089    }'
9090aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9091# Check for a 64-bit object if we didn't find anything.
9092if test -z "$aix_libpath"; then
9093  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9094fi
9095fi
9096rm -f core conftest.err conftest.$ac_objext \
9097    conftest$ac_exeext conftest.$ac_ext
9098if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9099
9100	 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9101	  # Warning - without using the other run time loading flags,
9102	  # -berok will link without error, but may produce a broken library.
9103	  no_undefined_flag=' ${wl}-bernotok'
9104	  allow_undefined_flag=' ${wl}-berok'
9105	  if test "$with_gnu_ld" = yes; then
9106	    # We only use this code for GNU lds that support --whole-archive.
9107	    whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
9108	  else
9109	    # Exported symbols can be pulled into shared objects from archives
9110	    whole_archive_flag_spec='$convenience'
9111	  fi
9112	  archive_cmds_need_lc=yes
9113	  # This is similar to how AIX traditionally builds its shared libraries.
9114	  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'
9115	fi
9116      fi
9117      ;;
9118
9119    amigaos*)
9120      case $host_cpu in
9121      powerpc)
9122            # see comment about AmigaOS4 .so support
9123            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9124            archive_expsym_cmds=''
9125        ;;
9126      m68k)
9127            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)'
9128            hardcode_libdir_flag_spec='-L$libdir'
9129            hardcode_minus_L=yes
9130        ;;
9131      esac
9132      ;;
9133
9134    bsdi[45]*)
9135      export_dynamic_flag_spec=-rdynamic
9136      ;;
9137
9138    cygwin* | mingw* | pw32* | cegcc*)
9139      # When not using gcc, we currently assume that we are using
9140      # Microsoft Visual C++.
9141      # hardcode_libdir_flag_spec is actually meaningless, as there is
9142      # no search path for DLLs.
9143      hardcode_libdir_flag_spec=' '
9144      allow_undefined_flag=unsupported
9145      # Tell ltmain to make .lib files, not .a files.
9146      libext=lib
9147      # Tell ltmain to make .dll files, not .so files.
9148      shrext_cmds=".dll"
9149      # FIXME: Setting linknames here is a bad hack.
9150      archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9151      # The linker will automatically build a .lib file if we build a DLL.
9152      old_archive_from_new_cmds='true'
9153      # FIXME: Should let the user specify the lib program.
9154      old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9155      fix_srcfile_path='`cygpath -w "$srcfile"`'
9156      enable_shared_with_static_runtimes=yes
9157      ;;
9158
9159    darwin* | rhapsody*)
9160
9161
9162  archive_cmds_need_lc=no
9163  hardcode_direct=no
9164  hardcode_automatic=yes
9165  hardcode_shlibpath_var=unsupported
9166  if test "$lt_cv_ld_force_load" = "yes"; then
9167    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\"`'
9168  else
9169    whole_archive_flag_spec=''
9170  fi
9171  link_all_deplibs=yes
9172  allow_undefined_flag="$_lt_dar_allow_undefined"
9173  case $cc_basename in
9174     ifort*) _lt_dar_can_shared=yes ;;
9175     *) _lt_dar_can_shared=$GCC ;;
9176  esac
9177  if test "$_lt_dar_can_shared" = "yes"; then
9178    output_verbose_link_cmd=func_echo_all
9179    archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9180    module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9181    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}"
9182    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}"
9183
9184  else
9185  ld_shlibs=no
9186  fi
9187
9188      ;;
9189
9190    dgux*)
9191      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9192      hardcode_libdir_flag_spec='-L$libdir'
9193      hardcode_shlibpath_var=no
9194      ;;
9195
9196    freebsd1*)
9197      ld_shlibs=no
9198      ;;
9199
9200    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9201    # support.  Future versions do this automatically, but an explicit c++rt0.o
9202    # does not break anything, and helps significantly (at the cost of a little
9203    # extra space).
9204    freebsd2.2*)
9205      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9206      hardcode_libdir_flag_spec='-R$libdir'
9207      hardcode_direct=yes
9208      hardcode_shlibpath_var=no
9209      ;;
9210
9211    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9212    freebsd2*)
9213      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9214      hardcode_direct=yes
9215      hardcode_minus_L=yes
9216      hardcode_shlibpath_var=no
9217      ;;
9218
9219    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9220    freebsd* | dragonfly*)
9221      archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
9222      hardcode_libdir_flag_spec='-R$libdir'
9223      hardcode_direct=yes
9224      hardcode_shlibpath_var=no
9225      ;;
9226
9227    hpux9*)
9228      if test "$GCC" = yes; then
9229	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'
9230      else
9231	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'
9232      fi
9233      hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9234      hardcode_libdir_separator=:
9235      hardcode_direct=yes
9236
9237      # hardcode_minus_L: Not really in the search PATH,
9238      # but as the default location of the library.
9239      hardcode_minus_L=yes
9240      export_dynamic_flag_spec='${wl}-E'
9241      ;;
9242
9243    hpux10*)
9244      if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9245	archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9246      else
9247	archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9248      fi
9249      if test "$with_gnu_ld" = no; then
9250	hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9251	hardcode_libdir_flag_spec_ld='+b $libdir'
9252	hardcode_libdir_separator=:
9253	hardcode_direct=yes
9254	hardcode_direct_absolute=yes
9255	export_dynamic_flag_spec='${wl}-E'
9256	# hardcode_minus_L: Not really in the search PATH,
9257	# but as the default location of the library.
9258	hardcode_minus_L=yes
9259      fi
9260      ;;
9261
9262    hpux11*)
9263      if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9264	case $host_cpu in
9265	hppa*64*)
9266	  archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9267	  ;;
9268	ia64*)
9269	  archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9270	  ;;
9271	*)
9272	  archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9273	  ;;
9274	esac
9275      else
9276	case $host_cpu in
9277	hppa*64*)
9278	  archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9279	  ;;
9280	ia64*)
9281	  archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9282	  ;;
9283	*)
9284
9285	  # Older versions of the 11.00 compiler do not understand -b yet
9286	  # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
9287	  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
9288$as_echo_n "checking if $CC understands -b... " >&6; }
9289if test "${lt_cv_prog_compiler__b+set}" = set; then :
9290  $as_echo_n "(cached) " >&6
9291else
9292  lt_cv_prog_compiler__b=no
9293   save_LDFLAGS="$LDFLAGS"
9294   LDFLAGS="$LDFLAGS -b"
9295   echo "$lt_simple_link_test_code" > conftest.$ac_ext
9296   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9297     # The linker can only warn and ignore the option if not recognized
9298     # So say no if there are warnings
9299     if test -s conftest.err; then
9300       # Append any errors to the config.log.
9301       cat conftest.err 1>&5
9302       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9303       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9304       if diff conftest.exp conftest.er2 >/dev/null; then
9305         lt_cv_prog_compiler__b=yes
9306       fi
9307     else
9308       lt_cv_prog_compiler__b=yes
9309     fi
9310   fi
9311   $RM -r conftest*
9312   LDFLAGS="$save_LDFLAGS"
9313
9314fi
9315{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
9316$as_echo "$lt_cv_prog_compiler__b" >&6; }
9317
9318if test x"$lt_cv_prog_compiler__b" = xyes; then
9319    archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9320else
9321    archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9322fi
9323
9324	  ;;
9325	esac
9326      fi
9327      if test "$with_gnu_ld" = no; then
9328	hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9329	hardcode_libdir_separator=:
9330
9331	case $host_cpu in
9332	hppa*64*|ia64*)
9333	  hardcode_direct=no
9334	  hardcode_shlibpath_var=no
9335	  ;;
9336	*)
9337	  hardcode_direct=yes
9338	  hardcode_direct_absolute=yes
9339	  export_dynamic_flag_spec='${wl}-E'
9340
9341	  # hardcode_minus_L: Not really in the search PATH,
9342	  # but as the default location of the library.
9343	  hardcode_minus_L=yes
9344	  ;;
9345	esac
9346      fi
9347      ;;
9348
9349    irix5* | irix6* | nonstopux*)
9350      if test "$GCC" = yes; then
9351	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'
9352	# Try to use the -exported_symbol ld option, if it does not
9353	# work, assume that -exports_file does not work either and
9354	# implicitly export all symbols.
9355        save_LDFLAGS="$LDFLAGS"
9356        LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9357        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9358/* end confdefs.h.  */
9359int foo(void) {}
9360_ACEOF
9361if ac_fn_c_try_link "$LINENO"; then :
9362  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'
9363
9364fi
9365rm -f core conftest.err conftest.$ac_objext \
9366    conftest$ac_exeext conftest.$ac_ext
9367        LDFLAGS="$save_LDFLAGS"
9368      else
9369	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'
9370	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'
9371      fi
9372      archive_cmds_need_lc='no'
9373      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9374      hardcode_libdir_separator=:
9375      inherit_rpath=yes
9376      link_all_deplibs=yes
9377      ;;
9378
9379    netbsd*)
9380      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9381	archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
9382      else
9383	archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
9384      fi
9385      hardcode_libdir_flag_spec='-R$libdir'
9386      hardcode_direct=yes
9387      hardcode_shlibpath_var=no
9388      ;;
9389
9390    newsos6)
9391      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9392      hardcode_direct=yes
9393      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9394      hardcode_libdir_separator=:
9395      hardcode_shlibpath_var=no
9396      ;;
9397
9398    *nto* | *qnx*)
9399      ;;
9400
9401    openbsd*)
9402      if test -f /usr/libexec/ld.so; then
9403	hardcode_direct=yes
9404	hardcode_shlibpath_var=no
9405	hardcode_direct_absolute=yes
9406	if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9407	  archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9408	  archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9409	  hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9410	  export_dynamic_flag_spec='${wl}-E'
9411	else
9412	  case $host_os in
9413	   openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9414	     archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9415	     hardcode_libdir_flag_spec='-R$libdir'
9416	     ;;
9417	   *)
9418	     archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9419	     hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9420	     ;;
9421	  esac
9422	fi
9423      else
9424	ld_shlibs=no
9425      fi
9426      ;;
9427
9428    os2*)
9429      hardcode_libdir_flag_spec='-L$libdir'
9430      hardcode_minus_L=yes
9431      allow_undefined_flag=unsupported
9432      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'
9433      old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9434      ;;
9435
9436    osf3*)
9437      if test "$GCC" = yes; then
9438	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9439	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'
9440      else
9441	allow_undefined_flag=' -expect_unresolved \*'
9442	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'
9443      fi
9444      archive_cmds_need_lc='no'
9445      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9446      hardcode_libdir_separator=:
9447      ;;
9448
9449    osf4* | osf5*)	# as osf3* with the addition of -msym flag
9450      if test "$GCC" = yes; then
9451	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9452	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'
9453	hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9454      else
9455	allow_undefined_flag=' -expect_unresolved \*'
9456	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'
9457	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~
9458	$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'
9459
9460	# Both c and cxx compiler support -rpath directly
9461	hardcode_libdir_flag_spec='-rpath $libdir'
9462      fi
9463      archive_cmds_need_lc='no'
9464      hardcode_libdir_separator=:
9465      ;;
9466
9467    solaris*)
9468      no_undefined_flag=' -z defs'
9469      if test "$GCC" = yes; then
9470	wlarc='${wl}'
9471	archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9472	archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9473	  $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9474      else
9475	case `$CC -V 2>&1` in
9476	*"Compilers 5.0"*)
9477	  wlarc=''
9478	  archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9479	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9480	  $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9481	  ;;
9482	*)
9483	  wlarc='${wl}'
9484	  archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9485	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9486	  $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9487	  ;;
9488	esac
9489      fi
9490      hardcode_libdir_flag_spec='-R$libdir'
9491      hardcode_shlibpath_var=no
9492      case $host_os in
9493      solaris2.[0-5] | solaris2.[0-5].*) ;;
9494      *)
9495	# The compiler driver will combine and reorder linker options,
9496	# but understands `-z linker_flag'.  GCC discards it without `$wl',
9497	# but is careful enough not to reorder.
9498	# Supported since Solaris 2.6 (maybe 2.5.1?)
9499	if test "$GCC" = yes; then
9500	  whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9501	else
9502	  whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9503	fi
9504	;;
9505      esac
9506      link_all_deplibs=yes
9507      ;;
9508
9509    sunos4*)
9510      if test "x$host_vendor" = xsequent; then
9511	# Use $CC to link under sequent, because it throws in some extra .o
9512	# files that make .init and .fini sections work.
9513	archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9514      else
9515	archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9516      fi
9517      hardcode_libdir_flag_spec='-L$libdir'
9518      hardcode_direct=yes
9519      hardcode_minus_L=yes
9520      hardcode_shlibpath_var=no
9521      ;;
9522
9523    sysv4)
9524      case $host_vendor in
9525	sni)
9526	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9527	  hardcode_direct=yes # is this really true???
9528	;;
9529	siemens)
9530	  ## LD is ld it makes a PLAMLIB
9531	  ## CC just makes a GrossModule.
9532	  archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9533	  reload_cmds='$CC -r -o $output$reload_objs'
9534	  hardcode_direct=no
9535        ;;
9536	motorola)
9537	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9538	  hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9539	;;
9540      esac
9541      runpath_var='LD_RUN_PATH'
9542      hardcode_shlibpath_var=no
9543      ;;
9544
9545    sysv4.3*)
9546      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9547      hardcode_shlibpath_var=no
9548      export_dynamic_flag_spec='-Bexport'
9549      ;;
9550
9551    sysv4*MP*)
9552      if test -d /usr/nec; then
9553	archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9554	hardcode_shlibpath_var=no
9555	runpath_var=LD_RUN_PATH
9556	hardcode_runpath_var=yes
9557	ld_shlibs=yes
9558      fi
9559      ;;
9560
9561    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
9562      no_undefined_flag='${wl}-z,text'
9563      archive_cmds_need_lc=no
9564      hardcode_shlibpath_var=no
9565      runpath_var='LD_RUN_PATH'
9566
9567      if test "$GCC" = yes; then
9568	archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9569	archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9570      else
9571	archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9572	archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9573      fi
9574      ;;
9575
9576    sysv5* | sco3.2v5* | sco5v6*)
9577      # Note: We can NOT use -z defs as we might desire, because we do not
9578      # link with -lc, and that would cause any symbols used from libc to
9579      # always be unresolved, which means just about no library would
9580      # ever link correctly.  If we're not using GNU ld we use -z text
9581      # though, which does catch some bad symbols but isn't as heavy-handed
9582      # as -z defs.
9583      no_undefined_flag='${wl}-z,text'
9584      allow_undefined_flag='${wl}-z,nodefs'
9585      archive_cmds_need_lc=no
9586      hardcode_shlibpath_var=no
9587      hardcode_libdir_flag_spec='${wl}-R,$libdir'
9588      hardcode_libdir_separator=':'
9589      link_all_deplibs=yes
9590      export_dynamic_flag_spec='${wl}-Bexport'
9591      runpath_var='LD_RUN_PATH'
9592
9593      if test "$GCC" = yes; then
9594	archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9595	archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9596      else
9597	archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9598	archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9599      fi
9600      ;;
9601
9602    uts4*)
9603      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9604      hardcode_libdir_flag_spec='-L$libdir'
9605      hardcode_shlibpath_var=no
9606      ;;
9607
9608    *)
9609      ld_shlibs=no
9610      ;;
9611    esac
9612
9613    if test x$host_vendor = xsni; then
9614      case $host in
9615      sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9616	export_dynamic_flag_spec='${wl}-Blargedynsym'
9617	;;
9618      esac
9619    fi
9620  fi
9621
9622{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
9623$as_echo "$ld_shlibs" >&6; }
9624test "$ld_shlibs" = no && can_build_shared=no
9625
9626with_gnu_ld=$with_gnu_ld
9627
9628
9629
9630
9631
9632
9633
9634
9635
9636
9637
9638
9639
9640
9641
9642#
9643# Do we need to explicitly link libc?
9644#
9645case "x$archive_cmds_need_lc" in
9646x|xyes)
9647  # Assume -lc should be added
9648  archive_cmds_need_lc=yes
9649
9650  if test "$enable_shared" = yes && test "$GCC" = yes; then
9651    case $archive_cmds in
9652    *'~'*)
9653      # FIXME: we may have to deal with multi-command sequences.
9654      ;;
9655    '$CC '*)
9656      # Test whether the compiler implicitly links with -lc since on some
9657      # systems, -lgcc has to come before -lc. If gcc already passes -lc
9658      # to ld, don't add -lc before -lgcc.
9659      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
9660$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
9661if test "${lt_cv_archive_cmds_need_lc+set}" = set; then :
9662  $as_echo_n "(cached) " >&6
9663else
9664  $RM conftest*
9665	echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9666
9667	if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9668  (eval $ac_compile) 2>&5
9669  ac_status=$?
9670  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9671  test $ac_status = 0; } 2>conftest.err; then
9672	  soname=conftest
9673	  lib=conftest
9674	  libobjs=conftest.$ac_objext
9675	  deplibs=
9676	  wl=$lt_prog_compiler_wl
9677	  pic_flag=$lt_prog_compiler_pic
9678	  compiler_flags=-v
9679	  linker_flags=-v
9680	  verstring=
9681	  output_objdir=.
9682	  libname=conftest
9683	  lt_save_allow_undefined_flag=$allow_undefined_flag
9684	  allow_undefined_flag=
9685	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
9686  (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
9687  ac_status=$?
9688  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9689  test $ac_status = 0; }
9690	  then
9691	    lt_cv_archive_cmds_need_lc=no
9692	  else
9693	    lt_cv_archive_cmds_need_lc=yes
9694	  fi
9695	  allow_undefined_flag=$lt_save_allow_undefined_flag
9696	else
9697	  cat conftest.err 1>&5
9698	fi
9699	$RM conftest*
9700
9701fi
9702{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
9703$as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
9704      archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
9705      ;;
9706    esac
9707  fi
9708  ;;
9709esac
9710
9711
9712
9713
9714
9715
9716
9717
9718
9719
9720
9721
9722
9723
9724
9725
9726
9727
9728
9729
9730
9731
9732
9733
9734
9735
9736
9737
9738
9739
9740
9741
9742
9743
9744
9745
9746
9747
9748
9749
9750
9751
9752
9753
9754
9755
9756
9757
9758
9759
9760
9761
9762
9763
9764
9765
9766
9767
9768
9769
9770
9771
9772
9773
9774
9775
9776
9777
9778
9779
9780
9781
9782
9783
9784
9785
9786
9787
9788
9789
9790
9791
9792
9793
9794
9795
9796
9797
9798
9799
9800
9801
9802
9803
9804
9805
9806
9807
9808
9809
9810
9811
9812
9813
9814
9815
9816
9817
9818
9819
9820
9821
9822
9823
9824
9825
9826
9827
9828
9829
9830
9831
9832
9833
9834
9835
9836
9837
9838
9839
9840
9841
9842
9843
9844
9845
9846
9847
9848
9849
9850
9851
9852
9853
9854
9855
9856
9857
9858
9859
9860
9861
9862
9863
9864
9865
9866
9867  { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
9868$as_echo_n "checking dynamic linker characteristics... " >&6; }
9869
9870if test "$GCC" = yes; then
9871  case $host_os in
9872    darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
9873    *) lt_awk_arg="/^libraries:/" ;;
9874  esac
9875  case $host_os in
9876    mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
9877    *) lt_sed_strip_eq="s,=/,/,g" ;;
9878  esac
9879  lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
9880  case $lt_search_path_spec in
9881  *\;*)
9882    # if the path contains ";" then we assume it to be the separator
9883    # otherwise default to the standard path separator (i.e. ":") - it is
9884    # assumed that no part of a normal pathname contains ";" but that should
9885    # okay in the real world where ";" in dirpaths is itself problematic.
9886    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
9887    ;;
9888  *)
9889    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
9890    ;;
9891  esac
9892  # Ok, now we have the path, separated by spaces, we can step through it
9893  # and add multilib dir if necessary.
9894  lt_tmp_lt_search_path_spec=
9895  lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
9896  for lt_sys_path in $lt_search_path_spec; do
9897    if test -d "$lt_sys_path/$lt_multi_os_dir"; then
9898      lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
9899    else
9900      test -d "$lt_sys_path" && \
9901	lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
9902    fi
9903  done
9904  lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
9905BEGIN {RS=" "; FS="/|\n";} {
9906  lt_foo="";
9907  lt_count=0;
9908  for (lt_i = NF; lt_i > 0; lt_i--) {
9909    if ($lt_i != "" && $lt_i != ".") {
9910      if ($lt_i == "..") {
9911        lt_count++;
9912      } else {
9913        if (lt_count == 0) {
9914          lt_foo="/" $lt_i lt_foo;
9915        } else {
9916          lt_count--;
9917        }
9918      }
9919    }
9920  }
9921  if (lt_foo != "") { lt_freq[lt_foo]++; }
9922  if (lt_freq[lt_foo] == 1) { print lt_foo; }
9923}'`
9924  # AWK program above erroneously prepends '/' to C:/dos/paths
9925  # for these hosts.
9926  case $host_os in
9927    mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
9928      $SED 's,/\([A-Za-z]:\),\1,g'` ;;
9929  esac
9930  sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
9931else
9932  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9933fi
9934library_names_spec=
9935libname_spec='lib$name'
9936soname_spec=
9937shrext_cmds=".so"
9938postinstall_cmds=
9939postuninstall_cmds=
9940finish_cmds=
9941finish_eval=
9942shlibpath_var=
9943shlibpath_overrides_runpath=unknown
9944version_type=none
9945dynamic_linker="$host_os ld.so"
9946sys_lib_dlsearch_path_spec="/lib /usr/lib"
9947need_lib_prefix=unknown
9948hardcode_into_libs=no
9949
9950# when you set need_version to no, make sure it does not cause -set_version
9951# flags to be left without arguments
9952need_version=unknown
9953
9954case $host_os in
9955aix3*)
9956  version_type=linux
9957  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9958  shlibpath_var=LIBPATH
9959
9960  # AIX 3 has no versioning support, so we append a major version to the name.
9961  soname_spec='${libname}${release}${shared_ext}$major'
9962  ;;
9963
9964aix[4-9]*)
9965  version_type=linux
9966  need_lib_prefix=no
9967  need_version=no
9968  hardcode_into_libs=yes
9969  if test "$host_cpu" = ia64; then
9970    # AIX 5 supports IA64
9971    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9972    shlibpath_var=LD_LIBRARY_PATH
9973  else
9974    # With GCC up to 2.95.x, collect2 would create an import file
9975    # for dependence libraries.  The import file would start with
9976    # the line `#! .'.  This would cause the generated library to
9977    # depend on `.', always an invalid library.  This was fixed in
9978    # development snapshots of GCC prior to 3.0.
9979    case $host_os in
9980      aix4 | aix4.[01] | aix4.[01].*)
9981      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9982	   echo ' yes '
9983	   echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
9984	:
9985      else
9986	can_build_shared=no
9987      fi
9988      ;;
9989    esac
9990    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9991    # soname into executable. Probably we can add versioning support to
9992    # collect2, so additional links can be useful in future.
9993    if test "$aix_use_runtimelinking" = yes; then
9994      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9995      # instead of lib<name>.a to let people know that these are not
9996      # typical AIX shared libraries.
9997      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9998    else
9999      # We preserve .a as extension for shared libraries through AIX4.2
10000      # and later when we are not doing run time linking.
10001      library_names_spec='${libname}${release}.a $libname.a'
10002      soname_spec='${libname}${release}${shared_ext}$major'
10003    fi
10004    shlibpath_var=LIBPATH
10005  fi
10006  ;;
10007
10008amigaos*)
10009  case $host_cpu in
10010  powerpc)
10011    # Since July 2007 AmigaOS4 officially supports .so libraries.
10012    # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10013    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10014    ;;
10015  m68k)
10016    library_names_spec='$libname.ixlibrary $libname.a'
10017    # Create ${libname}_ixlibrary.a entries in /sys/libs.
10018    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'
10019    ;;
10020  esac
10021  ;;
10022
10023beos*)
10024  library_names_spec='${libname}${shared_ext}'
10025  dynamic_linker="$host_os ld.so"
10026  shlibpath_var=LIBRARY_PATH
10027  ;;
10028
10029bsdi[45]*)
10030  version_type=linux
10031  need_version=no
10032  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10033  soname_spec='${libname}${release}${shared_ext}$major'
10034  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10035  shlibpath_var=LD_LIBRARY_PATH
10036  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10037  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10038  # the default ld.so.conf also contains /usr/contrib/lib and
10039  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10040  # libtool to hard-code these into programs
10041  ;;
10042
10043cygwin* | mingw* | pw32* | cegcc*)
10044  version_type=windows
10045  shrext_cmds=".dll"
10046  need_version=no
10047  need_lib_prefix=no
10048
10049  case $GCC,$host_os in
10050  yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
10051    library_names_spec='$libname.dll.a'
10052    # DLL is installed to $(libdir)/../bin by postinstall_cmds
10053    postinstall_cmds='base_file=`basename \${file}`~
10054      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10055      dldir=$destdir/`dirname \$dlpath`~
10056      test -d \$dldir || mkdir -p \$dldir~
10057      $install_prog $dir/$dlname \$dldir/$dlname~
10058      chmod a+x \$dldir/$dlname~
10059      if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10060        eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10061      fi'
10062    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10063      dlpath=$dir/\$dldll~
10064       $RM \$dlpath'
10065    shlibpath_overrides_runpath=yes
10066
10067    case $host_os in
10068    cygwin*)
10069      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10070      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10071
10072      sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
10073      ;;
10074    mingw* | cegcc*)
10075      # MinGW DLLs use traditional 'lib' prefix
10076      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10077      ;;
10078    pw32*)
10079      # pw32 DLLs use 'pw' prefix rather than 'lib'
10080      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10081      ;;
10082    esac
10083    ;;
10084
10085  *)
10086    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10087    ;;
10088  esac
10089  dynamic_linker='Win32 ld.exe'
10090  # FIXME: first we should search . and the directory the executable is in
10091  shlibpath_var=PATH
10092  ;;
10093
10094darwin* | rhapsody*)
10095  dynamic_linker="$host_os dyld"
10096  version_type=darwin
10097  need_lib_prefix=no
10098  need_version=no
10099  library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10100  soname_spec='${libname}${release}${major}$shared_ext'
10101  shlibpath_overrides_runpath=yes
10102  shlibpath_var=DYLD_LIBRARY_PATH
10103  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10104
10105  sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10106  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10107  ;;
10108
10109dgux*)
10110  version_type=linux
10111  need_lib_prefix=no
10112  need_version=no
10113  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10114  soname_spec='${libname}${release}${shared_ext}$major'
10115  shlibpath_var=LD_LIBRARY_PATH
10116  ;;
10117
10118freebsd1*)
10119  dynamic_linker=no
10120  ;;
10121
10122freebsd* | dragonfly*)
10123  # DragonFly does not have aout.  When/if they implement a new
10124  # versioning mechanism, adjust this.
10125  if test -x /usr/bin/objformat; then
10126    objformat=`/usr/bin/objformat`
10127  else
10128    case $host_os in
10129    freebsd[123]*) objformat=aout ;;
10130    *) objformat=elf ;;
10131    esac
10132  fi
10133  version_type=freebsd-$objformat
10134  case $version_type in
10135    freebsd-elf*)
10136      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10137      need_version=no
10138      need_lib_prefix=no
10139      ;;
10140    freebsd-*)
10141      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10142      need_version=yes
10143      ;;
10144  esac
10145  shlibpath_var=LD_LIBRARY_PATH
10146  case $host_os in
10147  freebsd2*)
10148    shlibpath_overrides_runpath=yes
10149    ;;
10150  freebsd3.[01]* | freebsdelf3.[01]*)
10151    shlibpath_overrides_runpath=yes
10152    hardcode_into_libs=yes
10153    ;;
10154  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10155  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10156    shlibpath_overrides_runpath=no
10157    hardcode_into_libs=yes
10158    ;;
10159  *) # from 4.6 on, and DragonFly
10160    shlibpath_overrides_runpath=yes
10161    hardcode_into_libs=yes
10162    ;;
10163  esac
10164  ;;
10165
10166gnu*)
10167  version_type=linux
10168  need_lib_prefix=no
10169  need_version=no
10170  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10171  soname_spec='${libname}${release}${shared_ext}$major'
10172  shlibpath_var=LD_LIBRARY_PATH
10173  hardcode_into_libs=yes
10174  ;;
10175
10176haiku*)
10177  version_type=linux
10178  need_lib_prefix=no
10179  need_version=no
10180  dynamic_linker="$host_os runtime_loader"
10181  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10182  soname_spec='${libname}${release}${shared_ext}$major'
10183  shlibpath_var=LIBRARY_PATH
10184  shlibpath_overrides_runpath=yes
10185  sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
10186  hardcode_into_libs=yes
10187  ;;
10188
10189hpux9* | hpux10* | hpux11*)
10190  # Give a soname corresponding to the major version so that dld.sl refuses to
10191  # link against other versions.
10192  version_type=sunos
10193  need_lib_prefix=no
10194  need_version=no
10195  case $host_cpu in
10196  ia64*)
10197    shrext_cmds='.so'
10198    hardcode_into_libs=yes
10199    dynamic_linker="$host_os dld.so"
10200    shlibpath_var=LD_LIBRARY_PATH
10201    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10202    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10203    soname_spec='${libname}${release}${shared_ext}$major'
10204    if test "X$HPUX_IA64_MODE" = X32; then
10205      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10206    else
10207      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10208    fi
10209    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10210    ;;
10211  hppa*64*)
10212    shrext_cmds='.sl'
10213    hardcode_into_libs=yes
10214    dynamic_linker="$host_os dld.sl"
10215    shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10216    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10217    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10218    soname_spec='${libname}${release}${shared_ext}$major'
10219    sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10220    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10221    ;;
10222  *)
10223    shrext_cmds='.sl'
10224    dynamic_linker="$host_os dld.sl"
10225    shlibpath_var=SHLIB_PATH
10226    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10227    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10228    soname_spec='${libname}${release}${shared_ext}$major'
10229    ;;
10230  esac
10231  # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
10232  postinstall_cmds='chmod 555 $lib'
10233  # or fails outright, so override atomically:
10234  install_override_mode=555
10235  ;;
10236
10237interix[3-9]*)
10238  version_type=linux
10239  need_lib_prefix=no
10240  need_version=no
10241  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10242  soname_spec='${libname}${release}${shared_ext}$major'
10243  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10244  shlibpath_var=LD_LIBRARY_PATH
10245  shlibpath_overrides_runpath=no
10246  hardcode_into_libs=yes
10247  ;;
10248
10249irix5* | irix6* | nonstopux*)
10250  case $host_os in
10251    nonstopux*) version_type=nonstopux ;;
10252    *)
10253	if test "$lt_cv_prog_gnu_ld" = yes; then
10254		version_type=linux
10255	else
10256		version_type=irix
10257	fi ;;
10258  esac
10259  need_lib_prefix=no
10260  need_version=no
10261  soname_spec='${libname}${release}${shared_ext}$major'
10262  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10263  case $host_os in
10264  irix5* | nonstopux*)
10265    libsuff= shlibsuff=
10266    ;;
10267  *)
10268    case $LD in # libtool.m4 will add one of these switches to LD
10269    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10270      libsuff= shlibsuff= libmagic=32-bit;;
10271    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10272      libsuff=32 shlibsuff=N32 libmagic=N32;;
10273    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10274      libsuff=64 shlibsuff=64 libmagic=64-bit;;
10275    *) libsuff= shlibsuff= libmagic=never-match;;
10276    esac
10277    ;;
10278  esac
10279  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10280  shlibpath_overrides_runpath=no
10281  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10282  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10283  hardcode_into_libs=yes
10284  ;;
10285
10286# No shared lib support for Linux oldld, aout, or coff.
10287linux*oldld* | linux*aout* | linux*coff*)
10288  dynamic_linker=no
10289  ;;
10290
10291# This must be Linux ELF.
10292linux* | k*bsd*-gnu | kopensolaris*-gnu)
10293  version_type=linux
10294  need_lib_prefix=no
10295  need_version=no
10296  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10297  soname_spec='${libname}${release}${shared_ext}$major'
10298  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10299  shlibpath_var=LD_LIBRARY_PATH
10300  shlibpath_overrides_runpath=no
10301
10302  # Some binutils ld are patched to set DT_RUNPATH
10303  if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
10304  $as_echo_n "(cached) " >&6
10305else
10306  lt_cv_shlibpath_overrides_runpath=no
10307    save_LDFLAGS=$LDFLAGS
10308    save_libdir=$libdir
10309    eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10310	 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10311    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10312/* end confdefs.h.  */
10313
10314int
10315main ()
10316{
10317
10318  ;
10319  return 0;
10320}
10321_ACEOF
10322if ac_fn_c_try_link "$LINENO"; then :
10323  if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
10324  lt_cv_shlibpath_overrides_runpath=yes
10325fi
10326fi
10327rm -f core conftest.err conftest.$ac_objext \
10328    conftest$ac_exeext conftest.$ac_ext
10329    LDFLAGS=$save_LDFLAGS
10330    libdir=$save_libdir
10331
10332fi
10333
10334  shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
10335
10336  # This implies no fast_install, which is unacceptable.
10337  # Some rework will be needed to allow for fast_install
10338  # before this can be enabled.
10339  hardcode_into_libs=yes
10340
10341  # Append ld.so.conf contents to the search path
10342  if test -f /etc/ld.so.conf; then
10343    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' ' '`
10344    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10345  fi
10346
10347  # We used to test for /lib/ld.so.1 and disable shared libraries on
10348  # powerpc, because MkLinux only supported shared libraries with the
10349  # GNU dynamic linker.  Since this was broken with cross compilers,
10350  # most powerpc-linux boxes support dynamic linking these days and
10351  # people can always --disable-shared, the test was removed, and we
10352  # assume the GNU/Linux dynamic linker is in use.
10353  dynamic_linker='GNU/Linux ld.so'
10354  ;;
10355
10356netbsd*)
10357  version_type=sunos
10358  need_lib_prefix=no
10359  need_version=no
10360  if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10361    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10362    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10363    dynamic_linker='NetBSD (a.out) ld.so'
10364  else
10365    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10366    soname_spec='${libname}${release}${shared_ext}$major'
10367    dynamic_linker='NetBSD ld.elf_so'
10368  fi
10369  shlibpath_var=LD_LIBRARY_PATH
10370  shlibpath_overrides_runpath=yes
10371  hardcode_into_libs=yes
10372  ;;
10373
10374newsos6)
10375  version_type=linux
10376  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10377  shlibpath_var=LD_LIBRARY_PATH
10378  shlibpath_overrides_runpath=yes
10379  ;;
10380
10381*nto* | *qnx*)
10382  version_type=qnx
10383  need_lib_prefix=no
10384  need_version=no
10385  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10386  soname_spec='${libname}${release}${shared_ext}$major'
10387  shlibpath_var=LD_LIBRARY_PATH
10388  shlibpath_overrides_runpath=no
10389  hardcode_into_libs=yes
10390  dynamic_linker='ldqnx.so'
10391  ;;
10392
10393openbsd*)
10394  version_type=sunos
10395  sys_lib_dlsearch_path_spec="/usr/lib"
10396  need_lib_prefix=no
10397  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10398  case $host_os in
10399    openbsd3.3 | openbsd3.3.*)	need_version=yes ;;
10400    *)				need_version=no  ;;
10401  esac
10402  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10403  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10404  shlibpath_var=LD_LIBRARY_PATH
10405  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10406    case $host_os in
10407      openbsd2.[89] | openbsd2.[89].*)
10408	shlibpath_overrides_runpath=no
10409	;;
10410      *)
10411	shlibpath_overrides_runpath=yes
10412	;;
10413      esac
10414  else
10415    shlibpath_overrides_runpath=yes
10416  fi
10417  ;;
10418
10419os2*)
10420  libname_spec='$name'
10421  shrext_cmds=".dll"
10422  need_lib_prefix=no
10423  library_names_spec='$libname${shared_ext} $libname.a'
10424  dynamic_linker='OS/2 ld.exe'
10425  shlibpath_var=LIBPATH
10426  ;;
10427
10428osf3* | osf4* | osf5*)
10429  version_type=osf
10430  need_lib_prefix=no
10431  need_version=no
10432  soname_spec='${libname}${release}${shared_ext}$major'
10433  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10434  shlibpath_var=LD_LIBRARY_PATH
10435  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10436  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10437  ;;
10438
10439rdos*)
10440  dynamic_linker=no
10441  ;;
10442
10443solaris*)
10444  version_type=linux
10445  need_lib_prefix=no
10446  need_version=no
10447  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10448  soname_spec='${libname}${release}${shared_ext}$major'
10449  shlibpath_var=LD_LIBRARY_PATH
10450  shlibpath_overrides_runpath=yes
10451  hardcode_into_libs=yes
10452  # ldd complains unless libraries are executable
10453  postinstall_cmds='chmod +x $lib'
10454  ;;
10455
10456sunos4*)
10457  version_type=sunos
10458  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10459  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10460  shlibpath_var=LD_LIBRARY_PATH
10461  shlibpath_overrides_runpath=yes
10462  if test "$with_gnu_ld" = yes; then
10463    need_lib_prefix=no
10464  fi
10465  need_version=yes
10466  ;;
10467
10468sysv4 | sysv4.3*)
10469  version_type=linux
10470  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10471  soname_spec='${libname}${release}${shared_ext}$major'
10472  shlibpath_var=LD_LIBRARY_PATH
10473  case $host_vendor in
10474    sni)
10475      shlibpath_overrides_runpath=no
10476      need_lib_prefix=no
10477      runpath_var=LD_RUN_PATH
10478      ;;
10479    siemens)
10480      need_lib_prefix=no
10481      ;;
10482    motorola)
10483      need_lib_prefix=no
10484      need_version=no
10485      shlibpath_overrides_runpath=no
10486      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10487      ;;
10488  esac
10489  ;;
10490
10491sysv4*MP*)
10492  if test -d /usr/nec ;then
10493    version_type=linux
10494    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10495    soname_spec='$libname${shared_ext}.$major'
10496    shlibpath_var=LD_LIBRARY_PATH
10497  fi
10498  ;;
10499
10500sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10501  version_type=freebsd-elf
10502  need_lib_prefix=no
10503  need_version=no
10504  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10505  soname_spec='${libname}${release}${shared_ext}$major'
10506  shlibpath_var=LD_LIBRARY_PATH
10507  shlibpath_overrides_runpath=yes
10508  hardcode_into_libs=yes
10509  if test "$with_gnu_ld" = yes; then
10510    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10511  else
10512    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10513    case $host_os in
10514      sco3.2v5*)
10515        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10516	;;
10517    esac
10518  fi
10519  sys_lib_dlsearch_path_spec='/usr/lib'
10520  ;;
10521
10522tpf*)
10523  # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
10524  version_type=linux
10525  need_lib_prefix=no
10526  need_version=no
10527  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10528  shlibpath_var=LD_LIBRARY_PATH
10529  shlibpath_overrides_runpath=no
10530  hardcode_into_libs=yes
10531  ;;
10532
10533uts4*)
10534  version_type=linux
10535  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10536  soname_spec='${libname}${release}${shared_ext}$major'
10537  shlibpath_var=LD_LIBRARY_PATH
10538  ;;
10539
10540*)
10541  dynamic_linker=no
10542  ;;
10543esac
10544{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
10545$as_echo "$dynamic_linker" >&6; }
10546test "$dynamic_linker" = no && can_build_shared=no
10547
10548variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10549if test "$GCC" = yes; then
10550  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10551fi
10552
10553if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
10554  sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
10555fi
10556if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
10557  sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
10558fi
10559
10560
10561
10562
10563
10564
10565
10566
10567
10568
10569
10570
10571
10572
10573
10574
10575
10576
10577
10578
10579
10580
10581
10582
10583
10584
10585
10586
10587
10588
10589
10590
10591
10592
10593
10594
10595
10596
10597
10598
10599
10600
10601
10602
10603
10604
10605
10606
10607
10608
10609
10610
10611
10612
10613
10614
10615
10616
10617
10618
10619
10620
10621
10622
10623
10624
10625
10626
10627
10628
10629
10630
10631
10632
10633
10634
10635
10636
10637
10638
10639
10640
10641
10642
10643
10644
10645
10646
10647
10648
10649
10650
10651  { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
10652$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
10653hardcode_action=
10654if test -n "$hardcode_libdir_flag_spec" ||
10655   test -n "$runpath_var" ||
10656   test "X$hardcode_automatic" = "Xyes" ; then
10657
10658  # We can hardcode non-existent directories.
10659  if test "$hardcode_direct" != no &&
10660     # If the only mechanism to avoid hardcoding is shlibpath_var, we
10661     # have to relink, otherwise we might link with an installed library
10662     # when we should be linking with a yet-to-be-installed one
10663     ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
10664     test "$hardcode_minus_L" != no; then
10665    # Linking always hardcodes the temporary library directory.
10666    hardcode_action=relink
10667  else
10668    # We can link without hardcoding, and we can hardcode nonexisting dirs.
10669    hardcode_action=immediate
10670  fi
10671else
10672  # We cannot hardcode anything, or else we can only hardcode existing
10673  # directories.
10674  hardcode_action=unsupported
10675fi
10676{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
10677$as_echo "$hardcode_action" >&6; }
10678
10679if test "$hardcode_action" = relink ||
10680   test "$inherit_rpath" = yes; then
10681  # Fast installation is not supported
10682  enable_fast_install=no
10683elif test "$shlibpath_overrides_runpath" = yes ||
10684     test "$enable_shared" = no; then
10685  # Fast installation is not necessary
10686  enable_fast_install=needless
10687fi
10688
10689
10690
10691
10692
10693
10694  if test "x$enable_dlopen" != xyes; then
10695  enable_dlopen=unknown
10696  enable_dlopen_self=unknown
10697  enable_dlopen_self_static=unknown
10698else
10699  lt_cv_dlopen=no
10700  lt_cv_dlopen_libs=
10701
10702  case $host_os in
10703  beos*)
10704    lt_cv_dlopen="load_add_on"
10705    lt_cv_dlopen_libs=
10706    lt_cv_dlopen_self=yes
10707    ;;
10708
10709  mingw* | pw32* | cegcc*)
10710    lt_cv_dlopen="LoadLibrary"
10711    lt_cv_dlopen_libs=
10712    ;;
10713
10714  cygwin*)
10715    lt_cv_dlopen="dlopen"
10716    lt_cv_dlopen_libs=
10717    ;;
10718
10719  darwin*)
10720  # if libdl is installed we need to link against it
10721    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10722$as_echo_n "checking for dlopen in -ldl... " >&6; }
10723if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
10724  $as_echo_n "(cached) " >&6
10725else
10726  ac_check_lib_save_LIBS=$LIBS
10727LIBS="-ldl  $LIBS"
10728cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10729/* end confdefs.h.  */
10730
10731/* Override any GCC internal prototype to avoid an error.
10732   Use char because int might match the return type of a GCC
10733   builtin and then its argument prototype would still apply.  */
10734#ifdef __cplusplus
10735extern "C"
10736#endif
10737char dlopen ();
10738int
10739main ()
10740{
10741return dlopen ();
10742  ;
10743  return 0;
10744}
10745_ACEOF
10746if ac_fn_c_try_link "$LINENO"; then :
10747  ac_cv_lib_dl_dlopen=yes
10748else
10749  ac_cv_lib_dl_dlopen=no
10750fi
10751rm -f core conftest.err conftest.$ac_objext \
10752    conftest$ac_exeext conftest.$ac_ext
10753LIBS=$ac_check_lib_save_LIBS
10754fi
10755{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10756$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10757if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
10758  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10759else
10760
10761    lt_cv_dlopen="dyld"
10762    lt_cv_dlopen_libs=
10763    lt_cv_dlopen_self=yes
10764
10765fi
10766
10767    ;;
10768
10769  *)
10770    ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
10771if test "x$ac_cv_func_shl_load" = x""yes; then :
10772  lt_cv_dlopen="shl_load"
10773else
10774  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
10775$as_echo_n "checking for shl_load in -ldld... " >&6; }
10776if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
10777  $as_echo_n "(cached) " >&6
10778else
10779  ac_check_lib_save_LIBS=$LIBS
10780LIBS="-ldld  $LIBS"
10781cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10782/* end confdefs.h.  */
10783
10784/* Override any GCC internal prototype to avoid an error.
10785   Use char because int might match the return type of a GCC
10786   builtin and then its argument prototype would still apply.  */
10787#ifdef __cplusplus
10788extern "C"
10789#endif
10790char shl_load ();
10791int
10792main ()
10793{
10794return shl_load ();
10795  ;
10796  return 0;
10797}
10798_ACEOF
10799if ac_fn_c_try_link "$LINENO"; then :
10800  ac_cv_lib_dld_shl_load=yes
10801else
10802  ac_cv_lib_dld_shl_load=no
10803fi
10804rm -f core conftest.err conftest.$ac_objext \
10805    conftest$ac_exeext conftest.$ac_ext
10806LIBS=$ac_check_lib_save_LIBS
10807fi
10808{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
10809$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
10810if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
10811  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
10812else
10813  ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
10814if test "x$ac_cv_func_dlopen" = x""yes; then :
10815  lt_cv_dlopen="dlopen"
10816else
10817  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10818$as_echo_n "checking for dlopen in -ldl... " >&6; }
10819if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
10820  $as_echo_n "(cached) " >&6
10821else
10822  ac_check_lib_save_LIBS=$LIBS
10823LIBS="-ldl  $LIBS"
10824cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10825/* end confdefs.h.  */
10826
10827/* Override any GCC internal prototype to avoid an error.
10828   Use char because int might match the return type of a GCC
10829   builtin and then its argument prototype would still apply.  */
10830#ifdef __cplusplus
10831extern "C"
10832#endif
10833char dlopen ();
10834int
10835main ()
10836{
10837return dlopen ();
10838  ;
10839  return 0;
10840}
10841_ACEOF
10842if ac_fn_c_try_link "$LINENO"; then :
10843  ac_cv_lib_dl_dlopen=yes
10844else
10845  ac_cv_lib_dl_dlopen=no
10846fi
10847rm -f core conftest.err conftest.$ac_objext \
10848    conftest$ac_exeext conftest.$ac_ext
10849LIBS=$ac_check_lib_save_LIBS
10850fi
10851{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10852$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10853if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
10854  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10855else
10856  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
10857$as_echo_n "checking for dlopen in -lsvld... " >&6; }
10858if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
10859  $as_echo_n "(cached) " >&6
10860else
10861  ac_check_lib_save_LIBS=$LIBS
10862LIBS="-lsvld  $LIBS"
10863cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10864/* end confdefs.h.  */
10865
10866/* Override any GCC internal prototype to avoid an error.
10867   Use char because int might match the return type of a GCC
10868   builtin and then its argument prototype would still apply.  */
10869#ifdef __cplusplus
10870extern "C"
10871#endif
10872char dlopen ();
10873int
10874main ()
10875{
10876return dlopen ();
10877  ;
10878  return 0;
10879}
10880_ACEOF
10881if ac_fn_c_try_link "$LINENO"; then :
10882  ac_cv_lib_svld_dlopen=yes
10883else
10884  ac_cv_lib_svld_dlopen=no
10885fi
10886rm -f core conftest.err conftest.$ac_objext \
10887    conftest$ac_exeext conftest.$ac_ext
10888LIBS=$ac_check_lib_save_LIBS
10889fi
10890{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
10891$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
10892if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
10893  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10894else
10895  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
10896$as_echo_n "checking for dld_link in -ldld... " >&6; }
10897if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
10898  $as_echo_n "(cached) " >&6
10899else
10900  ac_check_lib_save_LIBS=$LIBS
10901LIBS="-ldld  $LIBS"
10902cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10903/* end confdefs.h.  */
10904
10905/* Override any GCC internal prototype to avoid an error.
10906   Use char because int might match the return type of a GCC
10907   builtin and then its argument prototype would still apply.  */
10908#ifdef __cplusplus
10909extern "C"
10910#endif
10911char dld_link ();
10912int
10913main ()
10914{
10915return dld_link ();
10916  ;
10917  return 0;
10918}
10919_ACEOF
10920if ac_fn_c_try_link "$LINENO"; then :
10921  ac_cv_lib_dld_dld_link=yes
10922else
10923  ac_cv_lib_dld_dld_link=no
10924fi
10925rm -f core conftest.err conftest.$ac_objext \
10926    conftest$ac_exeext conftest.$ac_ext
10927LIBS=$ac_check_lib_save_LIBS
10928fi
10929{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
10930$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
10931if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
10932  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
10933fi
10934
10935
10936fi
10937
10938
10939fi
10940
10941
10942fi
10943
10944
10945fi
10946
10947
10948fi
10949
10950    ;;
10951  esac
10952
10953  if test "x$lt_cv_dlopen" != xno; then
10954    enable_dlopen=yes
10955  else
10956    enable_dlopen=no
10957  fi
10958
10959  case $lt_cv_dlopen in
10960  dlopen)
10961    save_CPPFLAGS="$CPPFLAGS"
10962    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10963
10964    save_LDFLAGS="$LDFLAGS"
10965    wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10966
10967    save_LIBS="$LIBS"
10968    LIBS="$lt_cv_dlopen_libs $LIBS"
10969
10970    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
10971$as_echo_n "checking whether a program can dlopen itself... " >&6; }
10972if test "${lt_cv_dlopen_self+set}" = set; then :
10973  $as_echo_n "(cached) " >&6
10974else
10975  	  if test "$cross_compiling" = yes; then :
10976  lt_cv_dlopen_self=cross
10977else
10978  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10979  lt_status=$lt_dlunknown
10980  cat > conftest.$ac_ext <<_LT_EOF
10981#line $LINENO "configure"
10982#include "confdefs.h"
10983
10984#if HAVE_DLFCN_H
10985#include <dlfcn.h>
10986#endif
10987
10988#include <stdio.h>
10989
10990#ifdef RTLD_GLOBAL
10991#  define LT_DLGLOBAL		RTLD_GLOBAL
10992#else
10993#  ifdef DL_GLOBAL
10994#    define LT_DLGLOBAL		DL_GLOBAL
10995#  else
10996#    define LT_DLGLOBAL		0
10997#  endif
10998#endif
10999
11000/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11001   find out it does not work in some platform. */
11002#ifndef LT_DLLAZY_OR_NOW
11003#  ifdef RTLD_LAZY
11004#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
11005#  else
11006#    ifdef DL_LAZY
11007#      define LT_DLLAZY_OR_NOW		DL_LAZY
11008#    else
11009#      ifdef RTLD_NOW
11010#        define LT_DLLAZY_OR_NOW	RTLD_NOW
11011#      else
11012#        ifdef DL_NOW
11013#          define LT_DLLAZY_OR_NOW	DL_NOW
11014#        else
11015#          define LT_DLLAZY_OR_NOW	0
11016#        endif
11017#      endif
11018#    endif
11019#  endif
11020#endif
11021
11022/* When -fvisbility=hidden is used, assume the code has been annotated
11023   correspondingly for the symbols needed.  */
11024#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11025void fnord () __attribute__((visibility("default")));
11026#endif
11027
11028void fnord () { int i=42; }
11029int main ()
11030{
11031  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11032  int status = $lt_dlunknown;
11033
11034  if (self)
11035    {
11036      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
11037      else
11038        {
11039	  if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
11040          else puts (dlerror ());
11041	}
11042      /* dlclose (self); */
11043    }
11044  else
11045    puts (dlerror ());
11046
11047  return status;
11048}
11049_LT_EOF
11050  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11051  (eval $ac_link) 2>&5
11052  ac_status=$?
11053  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11054  test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11055    (./conftest; exit; ) >&5 2>/dev/null
11056    lt_status=$?
11057    case x$lt_status in
11058      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11059      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11060      x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11061    esac
11062  else :
11063    # compilation failed
11064    lt_cv_dlopen_self=no
11065  fi
11066fi
11067rm -fr conftest*
11068
11069
11070fi
11071{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11072$as_echo "$lt_cv_dlopen_self" >&6; }
11073
11074    if test "x$lt_cv_dlopen_self" = xyes; then
11075      wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11076      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11077$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11078if test "${lt_cv_dlopen_self_static+set}" = set; then :
11079  $as_echo_n "(cached) " >&6
11080else
11081  	  if test "$cross_compiling" = yes; then :
11082  lt_cv_dlopen_self_static=cross
11083else
11084  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11085  lt_status=$lt_dlunknown
11086  cat > conftest.$ac_ext <<_LT_EOF
11087#line $LINENO "configure"
11088#include "confdefs.h"
11089
11090#if HAVE_DLFCN_H
11091#include <dlfcn.h>
11092#endif
11093
11094#include <stdio.h>
11095
11096#ifdef RTLD_GLOBAL
11097#  define LT_DLGLOBAL		RTLD_GLOBAL
11098#else
11099#  ifdef DL_GLOBAL
11100#    define LT_DLGLOBAL		DL_GLOBAL
11101#  else
11102#    define LT_DLGLOBAL		0
11103#  endif
11104#endif
11105
11106/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11107   find out it does not work in some platform. */
11108#ifndef LT_DLLAZY_OR_NOW
11109#  ifdef RTLD_LAZY
11110#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
11111#  else
11112#    ifdef DL_LAZY
11113#      define LT_DLLAZY_OR_NOW		DL_LAZY
11114#    else
11115#      ifdef RTLD_NOW
11116#        define LT_DLLAZY_OR_NOW	RTLD_NOW
11117#      else
11118#        ifdef DL_NOW
11119#          define LT_DLLAZY_OR_NOW	DL_NOW
11120#        else
11121#          define LT_DLLAZY_OR_NOW	0
11122#        endif
11123#      endif
11124#    endif
11125#  endif
11126#endif
11127
11128/* When -fvisbility=hidden is used, assume the code has been annotated
11129   correspondingly for the symbols needed.  */
11130#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11131void fnord () __attribute__((visibility("default")));
11132#endif
11133
11134void fnord () { int i=42; }
11135int main ()
11136{
11137  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11138  int status = $lt_dlunknown;
11139
11140  if (self)
11141    {
11142      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
11143      else
11144        {
11145	  if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
11146          else puts (dlerror ());
11147	}
11148      /* dlclose (self); */
11149    }
11150  else
11151    puts (dlerror ());
11152
11153  return status;
11154}
11155_LT_EOF
11156  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11157  (eval $ac_link) 2>&5
11158  ac_status=$?
11159  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11160  test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11161    (./conftest; exit; ) >&5 2>/dev/null
11162    lt_status=$?
11163    case x$lt_status in
11164      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11165      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11166      x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11167    esac
11168  else :
11169    # compilation failed
11170    lt_cv_dlopen_self_static=no
11171  fi
11172fi
11173rm -fr conftest*
11174
11175
11176fi
11177{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11178$as_echo "$lt_cv_dlopen_self_static" >&6; }
11179    fi
11180
11181    CPPFLAGS="$save_CPPFLAGS"
11182    LDFLAGS="$save_LDFLAGS"
11183    LIBS="$save_LIBS"
11184    ;;
11185  esac
11186
11187  case $lt_cv_dlopen_self in
11188  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11189  *) enable_dlopen_self=unknown ;;
11190  esac
11191
11192  case $lt_cv_dlopen_self_static in
11193  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11194  *) enable_dlopen_self_static=unknown ;;
11195  esac
11196fi
11197
11198
11199
11200
11201
11202
11203
11204
11205
11206
11207
11208
11209
11210
11211
11212
11213
11214striplib=
11215old_striplib=
11216{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11217$as_echo_n "checking whether stripping libraries is possible... " >&6; }
11218if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11219  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11220  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11221  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11222$as_echo "yes" >&6; }
11223else
11224# FIXME - insert some real tests, host_os isn't really good enough
11225  case $host_os in
11226  darwin*)
11227    if test -n "$STRIP" ; then
11228      striplib="$STRIP -x"
11229      old_striplib="$STRIP -S"
11230      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11231$as_echo "yes" >&6; }
11232    else
11233      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11234$as_echo "no" >&6; }
11235    fi
11236    ;;
11237  *)
11238    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11239$as_echo "no" >&6; }
11240    ;;
11241  esac
11242fi
11243
11244
11245
11246
11247
11248
11249
11250
11251
11252
11253
11254
11255  # Report which library types will actually be built
11256  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11257$as_echo_n "checking if libtool supports shared libraries... " >&6; }
11258  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11259$as_echo "$can_build_shared" >&6; }
11260
11261  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11262$as_echo_n "checking whether to build shared libraries... " >&6; }
11263  test "$can_build_shared" = "no" && enable_shared=no
11264
11265  # On AIX, shared libraries and static libraries use the same namespace, and
11266  # are all built from PIC.
11267  case $host_os in
11268  aix3*)
11269    test "$enable_shared" = yes && enable_static=no
11270    if test -n "$RANLIB"; then
11271      archive_cmds="$archive_cmds~\$RANLIB \$lib"
11272      postinstall_cmds='$RANLIB $lib'
11273    fi
11274    ;;
11275
11276  aix[4-9]*)
11277    if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11278      test "$enable_shared" = yes && enable_static=no
11279    fi
11280    ;;
11281  esac
11282  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11283$as_echo "$enable_shared" >&6; }
11284
11285  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11286$as_echo_n "checking whether to build static libraries... " >&6; }
11287  # Make sure either enable_shared or enable_static is yes.
11288  test "$enable_shared" = yes || enable_static=yes
11289  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11290$as_echo "$enable_static" >&6; }
11291
11292
11293
11294
11295fi
11296ac_ext=c
11297ac_cpp='$CPP $CPPFLAGS'
11298ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11299ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11300ac_compiler_gnu=$ac_cv_c_compiler_gnu
11301
11302CC="$lt_save_CC"
11303
11304      if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
11305    ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
11306    (test "X$CXX" != "Xg++"))) ; then
11307  ac_ext=cpp
11308ac_cpp='$CXXCPP $CPPFLAGS'
11309ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11310ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11311ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11312{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
11313$as_echo_n "checking how to run the C++ preprocessor... " >&6; }
11314if test -z "$CXXCPP"; then
11315  if test "${ac_cv_prog_CXXCPP+set}" = set; then :
11316  $as_echo_n "(cached) " >&6
11317else
11318      # Double quotes because CXXCPP needs to be expanded
11319    for CXXCPP in "$CXX -E" "/lib/cpp"
11320    do
11321      ac_preproc_ok=false
11322for ac_cxx_preproc_warn_flag in '' yes
11323do
11324  # Use a header file that comes with gcc, so configuring glibc
11325  # with a fresh cross-compiler works.
11326  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11327  # <limits.h> exists even on freestanding compilers.
11328  # On the NeXT, cc -E runs the code through the compiler's parser,
11329  # not just through cpp. "Syntax error" is here to catch this case.
11330  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11331/* end confdefs.h.  */
11332#ifdef __STDC__
11333# include <limits.h>
11334#else
11335# include <assert.h>
11336#endif
11337		     Syntax error
11338_ACEOF
11339if ac_fn_cxx_try_cpp "$LINENO"; then :
11340
11341else
11342  # Broken: fails on valid input.
11343continue
11344fi
11345rm -f conftest.err conftest.$ac_ext
11346
11347  # OK, works on sane cases.  Now check whether nonexistent headers
11348  # can be detected and how.
11349  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11350/* end confdefs.h.  */
11351#include <ac_nonexistent.h>
11352_ACEOF
11353if ac_fn_cxx_try_cpp "$LINENO"; then :
11354  # Broken: success on invalid input.
11355continue
11356else
11357  # Passes both tests.
11358ac_preproc_ok=:
11359break
11360fi
11361rm -f conftest.err conftest.$ac_ext
11362
11363done
11364# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
11365rm -f conftest.err conftest.$ac_ext
11366if $ac_preproc_ok; then :
11367  break
11368fi
11369
11370    done
11371    ac_cv_prog_CXXCPP=$CXXCPP
11372
11373fi
11374  CXXCPP=$ac_cv_prog_CXXCPP
11375else
11376  ac_cv_prog_CXXCPP=$CXXCPP
11377fi
11378{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
11379$as_echo "$CXXCPP" >&6; }
11380ac_preproc_ok=false
11381for ac_cxx_preproc_warn_flag in '' yes
11382do
11383  # Use a header file that comes with gcc, so configuring glibc
11384  # with a fresh cross-compiler works.
11385  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11386  # <limits.h> exists even on freestanding compilers.
11387  # On the NeXT, cc -E runs the code through the compiler's parser,
11388  # not just through cpp. "Syntax error" is here to catch this case.
11389  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11390/* end confdefs.h.  */
11391#ifdef __STDC__
11392# include <limits.h>
11393#else
11394# include <assert.h>
11395#endif
11396		     Syntax error
11397_ACEOF
11398if ac_fn_cxx_try_cpp "$LINENO"; then :
11399
11400else
11401  # Broken: fails on valid input.
11402continue
11403fi
11404rm -f conftest.err conftest.$ac_ext
11405
11406  # OK, works on sane cases.  Now check whether nonexistent headers
11407  # can be detected and how.
11408  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11409/* end confdefs.h.  */
11410#include <ac_nonexistent.h>
11411_ACEOF
11412if ac_fn_cxx_try_cpp "$LINENO"; then :
11413  # Broken: success on invalid input.
11414continue
11415else
11416  # Passes both tests.
11417ac_preproc_ok=:
11418break
11419fi
11420rm -f conftest.err conftest.$ac_ext
11421
11422done
11423# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
11424rm -f conftest.err conftest.$ac_ext
11425if $ac_preproc_ok; then :
11426
11427else
11428  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
11429$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
11430as_fn_error "C++ preprocessor \"$CXXCPP\" fails sanity check
11431See \`config.log' for more details." "$LINENO" 5; }
11432fi
11433
11434ac_ext=c
11435ac_cpp='$CPP $CPPFLAGS'
11436ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11437ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11438ac_compiler_gnu=$ac_cv_c_compiler_gnu
11439
11440else
11441  _lt_caught_CXX_error=yes
11442fi
11443
11444ac_ext=cpp
11445ac_cpp='$CXXCPP $CPPFLAGS'
11446ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11447ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11448ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11449
11450archive_cmds_need_lc_CXX=no
11451allow_undefined_flag_CXX=
11452always_export_symbols_CXX=no
11453archive_expsym_cmds_CXX=
11454compiler_needs_object_CXX=no
11455export_dynamic_flag_spec_CXX=
11456hardcode_direct_CXX=no
11457hardcode_direct_absolute_CXX=no
11458hardcode_libdir_flag_spec_CXX=
11459hardcode_libdir_flag_spec_ld_CXX=
11460hardcode_libdir_separator_CXX=
11461hardcode_minus_L_CXX=no
11462hardcode_shlibpath_var_CXX=unsupported
11463hardcode_automatic_CXX=no
11464inherit_rpath_CXX=no
11465module_cmds_CXX=
11466module_expsym_cmds_CXX=
11467link_all_deplibs_CXX=unknown
11468old_archive_cmds_CXX=$old_archive_cmds
11469reload_flag_CXX=$reload_flag
11470reload_cmds_CXX=$reload_cmds
11471no_undefined_flag_CXX=
11472whole_archive_flag_spec_CXX=
11473enable_shared_with_static_runtimes_CXX=no
11474
11475# Source file extension for C++ test sources.
11476ac_ext=cpp
11477
11478# Object file extension for compiled C++ test sources.
11479objext=o
11480objext_CXX=$objext
11481
11482# No sense in running all these tests if we already determined that
11483# the CXX compiler isn't working.  Some variables (like enable_shared)
11484# are currently assumed to apply to all compilers on this platform,
11485# and will be corrupted by setting them based on a non-working compiler.
11486if test "$_lt_caught_CXX_error" != yes; then
11487  # Code to be used in simple compile tests
11488  lt_simple_compile_test_code="int some_variable = 0;"
11489
11490  # Code to be used in simple link tests
11491  lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
11492
11493  # ltmain only uses $CC for tagged configurations so make sure $CC is set.
11494
11495
11496
11497
11498
11499
11500# If no C compiler was specified, use CC.
11501LTCC=${LTCC-"$CC"}
11502
11503# If no C compiler flags were specified, use CFLAGS.
11504LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
11505
11506# Allow CC to be a program name with arguments.
11507compiler=$CC
11508
11509
11510  # save warnings/boilerplate of simple test code
11511  ac_outfile=conftest.$ac_objext
11512echo "$lt_simple_compile_test_code" >conftest.$ac_ext
11513eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11514_lt_compiler_boilerplate=`cat conftest.err`
11515$RM conftest*
11516
11517  ac_outfile=conftest.$ac_objext
11518echo "$lt_simple_link_test_code" >conftest.$ac_ext
11519eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11520_lt_linker_boilerplate=`cat conftest.err`
11521$RM -r conftest*
11522
11523
11524  # Allow CC to be a program name with arguments.
11525  lt_save_CC=$CC
11526  lt_save_LD=$LD
11527  lt_save_GCC=$GCC
11528  GCC=$GXX
11529  lt_save_with_gnu_ld=$with_gnu_ld
11530  lt_save_path_LD=$lt_cv_path_LD
11531  if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
11532    lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
11533  else
11534    $as_unset lt_cv_prog_gnu_ld
11535  fi
11536  if test -n "${lt_cv_path_LDCXX+set}"; then
11537    lt_cv_path_LD=$lt_cv_path_LDCXX
11538  else
11539    $as_unset lt_cv_path_LD
11540  fi
11541  test -z "${LDCXX+set}" || LD=$LDCXX
11542  CC=${CXX-"c++"}
11543  compiler=$CC
11544  compiler_CXX=$CC
11545  for cc_temp in $compiler""; do
11546  case $cc_temp in
11547    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
11548    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
11549    \-*) ;;
11550    *) break;;
11551  esac
11552done
11553cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
11554
11555
11556  if test -n "$compiler"; then
11557    # We don't want -fno-exception when compiling C++ code, so set the
11558    # no_builtin_flag separately
11559    if test "$GXX" = yes; then
11560      lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
11561    else
11562      lt_prog_compiler_no_builtin_flag_CXX=
11563    fi
11564
11565    if test "$GXX" = yes; then
11566      # Set up default GNU C++ configuration
11567
11568
11569
11570# Check whether --with-gnu-ld was given.
11571if test "${with_gnu_ld+set}" = set; then :
11572  withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
11573else
11574  with_gnu_ld=no
11575fi
11576
11577ac_prog=ld
11578if test "$GCC" = yes; then
11579  # Check if gcc -print-prog-name=ld gives a path.
11580  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
11581$as_echo_n "checking for ld used by $CC... " >&6; }
11582  case $host in
11583  *-*-mingw*)
11584    # gcc leaves a trailing carriage return which upsets mingw
11585    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
11586  *)
11587    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
11588  esac
11589  case $ac_prog in
11590    # Accept absolute paths.
11591    [\\/]* | ?:[\\/]*)
11592      re_direlt='/[^/][^/]*/\.\./'
11593      # Canonicalize the pathname of ld
11594      ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
11595      while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
11596	ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
11597      done
11598      test -z "$LD" && LD="$ac_prog"
11599      ;;
11600  "")
11601    # If it fails, then pretend we aren't using GCC.
11602    ac_prog=ld
11603    ;;
11604  *)
11605    # If it is relative, then search for the first ld in PATH.
11606    with_gnu_ld=unknown
11607    ;;
11608  esac
11609elif test "$with_gnu_ld" = yes; then
11610  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
11611$as_echo_n "checking for GNU ld... " >&6; }
11612else
11613  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
11614$as_echo_n "checking for non-GNU ld... " >&6; }
11615fi
11616if test "${lt_cv_path_LD+set}" = set; then :
11617  $as_echo_n "(cached) " >&6
11618else
11619  if test -z "$LD"; then
11620  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
11621  for ac_dir in $PATH; do
11622    IFS="$lt_save_ifs"
11623    test -z "$ac_dir" && ac_dir=.
11624    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
11625      lt_cv_path_LD="$ac_dir/$ac_prog"
11626      # Check to see if the program is GNU ld.  I'd rather use --version,
11627      # but apparently some variants of GNU ld only accept -v.
11628      # Break only if it was the GNU/non-GNU ld that we prefer.
11629      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
11630      *GNU* | *'with BFD'*)
11631	test "$with_gnu_ld" != no && break
11632	;;
11633      *)
11634	test "$with_gnu_ld" != yes && break
11635	;;
11636      esac
11637    fi
11638  done
11639  IFS="$lt_save_ifs"
11640else
11641  lt_cv_path_LD="$LD" # Let the user override the test with a path.
11642fi
11643fi
11644
11645LD="$lt_cv_path_LD"
11646if test -n "$LD"; then
11647  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
11648$as_echo "$LD" >&6; }
11649else
11650  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11651$as_echo "no" >&6; }
11652fi
11653test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
11654{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
11655$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
11656if test "${lt_cv_prog_gnu_ld+set}" = set; then :
11657  $as_echo_n "(cached) " >&6
11658else
11659  # I'd rather use --version here, but apparently some GNU lds only accept -v.
11660case `$LD -v 2>&1 </dev/null` in
11661*GNU* | *'with BFD'*)
11662  lt_cv_prog_gnu_ld=yes
11663  ;;
11664*)
11665  lt_cv_prog_gnu_ld=no
11666  ;;
11667esac
11668fi
11669{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
11670$as_echo "$lt_cv_prog_gnu_ld" >&6; }
11671with_gnu_ld=$lt_cv_prog_gnu_ld
11672
11673
11674
11675
11676
11677
11678
11679      # Check if GNU C++ uses GNU ld as the underlying linker, since the
11680      # archiving commands below assume that GNU ld is being used.
11681      if test "$with_gnu_ld" = yes; then
11682        archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11683        archive_expsym_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
11684
11685        hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11686        export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11687
11688        # If archive_cmds runs LD, not CC, wlarc should be empty
11689        # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
11690        #     investigate it a little bit more. (MM)
11691        wlarc='${wl}'
11692
11693        # ancient GNU ld didn't support --whole-archive et. al.
11694        if eval "`$CC -print-prog-name=ld` --help 2>&1" |
11695	  $GREP 'no-whole-archive' > /dev/null; then
11696          whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
11697        else
11698          whole_archive_flag_spec_CXX=
11699        fi
11700      else
11701        with_gnu_ld=no
11702        wlarc=
11703
11704        # A generic and very simple default shared library creation
11705        # command for GNU C++ for the case where it uses the native
11706        # linker, instead of GNU ld.  If possible, this setting should
11707        # overridden to take advantage of the native linker features on
11708        # the platform it is being used on.
11709        archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
11710      fi
11711
11712      # Commands to make compiler produce verbose output that lists
11713      # what "hidden" libraries, object files and flags are used when
11714      # linking a shared library.
11715      output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
11716
11717    else
11718      GXX=no
11719      with_gnu_ld=no
11720      wlarc=
11721    fi
11722
11723    # PORTME: fill in a description of your system's C++ link characteristics
11724    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
11725$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
11726    ld_shlibs_CXX=yes
11727    case $host_os in
11728      aix3*)
11729        # FIXME: insert proper C++ library support
11730        ld_shlibs_CXX=no
11731        ;;
11732      aix[4-9]*)
11733        if test "$host_cpu" = ia64; then
11734          # On IA64, the linker does run time linking by default, so we don't
11735          # have to do anything special.
11736          aix_use_runtimelinking=no
11737          exp_sym_flag='-Bexport'
11738          no_entry_flag=""
11739        else
11740          aix_use_runtimelinking=no
11741
11742          # Test if we are trying to use run time linking or normal
11743          # AIX style linking. If -brtl is somewhere in LDFLAGS, we
11744          # need to do runtime linking.
11745          case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
11746	    for ld_flag in $LDFLAGS; do
11747	      case $ld_flag in
11748	      *-brtl*)
11749	        aix_use_runtimelinking=yes
11750	        break
11751	        ;;
11752	      esac
11753	    done
11754	    ;;
11755          esac
11756
11757          exp_sym_flag='-bexport'
11758          no_entry_flag='-bnoentry'
11759        fi
11760
11761        # When large executables or shared objects are built, AIX ld can
11762        # have problems creating the table of contents.  If linking a library
11763        # or program results in "error TOC overflow" add -mminimal-toc to
11764        # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
11765        # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
11766
11767        archive_cmds_CXX=''
11768        hardcode_direct_CXX=yes
11769        hardcode_direct_absolute_CXX=yes
11770        hardcode_libdir_separator_CXX=':'
11771        link_all_deplibs_CXX=yes
11772        file_list_spec_CXX='${wl}-f,'
11773
11774        if test "$GXX" = yes; then
11775          case $host_os in aix4.[012]|aix4.[012].*)
11776          # We only want to do this on AIX 4.2 and lower, the check
11777          # below for broken collect2 doesn't work under 4.3+
11778	  collect2name=`${CC} -print-prog-name=collect2`
11779	  if test -f "$collect2name" &&
11780	     strings "$collect2name" | $GREP resolve_lib_name >/dev/null
11781	  then
11782	    # We have reworked collect2
11783	    :
11784	  else
11785	    # We have old collect2
11786	    hardcode_direct_CXX=unsupported
11787	    # It fails to find uninstalled libraries when the uninstalled
11788	    # path is not listed in the libpath.  Setting hardcode_minus_L
11789	    # to unsupported forces relinking
11790	    hardcode_minus_L_CXX=yes
11791	    hardcode_libdir_flag_spec_CXX='-L$libdir'
11792	    hardcode_libdir_separator_CXX=
11793	  fi
11794          esac
11795          shared_flag='-shared'
11796	  if test "$aix_use_runtimelinking" = yes; then
11797	    shared_flag="$shared_flag "'${wl}-G'
11798	  fi
11799        else
11800          # not using gcc
11801          if test "$host_cpu" = ia64; then
11802	  # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
11803	  # chokes on -Wl,-G. The following line is correct:
11804	  shared_flag='-G'
11805          else
11806	    if test "$aix_use_runtimelinking" = yes; then
11807	      shared_flag='${wl}-G'
11808	    else
11809	      shared_flag='${wl}-bM:SRE'
11810	    fi
11811          fi
11812        fi
11813
11814        export_dynamic_flag_spec_CXX='${wl}-bexpall'
11815        # It seems that -bexpall does not export symbols beginning with
11816        # underscore (_), so it is better to generate a list of symbols to
11817	# export.
11818        always_export_symbols_CXX=yes
11819        if test "$aix_use_runtimelinking" = yes; then
11820          # Warning - without using the other runtime loading flags (-brtl),
11821          # -berok will link without error, but may produce a broken library.
11822          allow_undefined_flag_CXX='-berok'
11823          # Determine the default libpath from the value encoded in an empty
11824          # executable.
11825          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11826/* end confdefs.h.  */
11827
11828int
11829main ()
11830{
11831
11832  ;
11833  return 0;
11834}
11835_ACEOF
11836if ac_fn_cxx_try_link "$LINENO"; then :
11837
11838lt_aix_libpath_sed='
11839    /Import File Strings/,/^$/ {
11840	/^0/ {
11841	    s/^0  *\(.*\)$/\1/
11842	    p
11843	}
11844    }'
11845aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11846# Check for a 64-bit object if we didn't find anything.
11847if test -z "$aix_libpath"; then
11848  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11849fi
11850fi
11851rm -f core conftest.err conftest.$ac_objext \
11852    conftest$ac_exeext conftest.$ac_ext
11853if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11854
11855          hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11856
11857          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"
11858        else
11859          if test "$host_cpu" = ia64; then
11860	    hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
11861	    allow_undefined_flag_CXX="-z nodefs"
11862	    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"
11863          else
11864	    # Determine the default libpath from the value encoded in an
11865	    # empty executable.
11866	    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11867/* end confdefs.h.  */
11868
11869int
11870main ()
11871{
11872
11873  ;
11874  return 0;
11875}
11876_ACEOF
11877if ac_fn_cxx_try_link "$LINENO"; then :
11878
11879lt_aix_libpath_sed='
11880    /Import File Strings/,/^$/ {
11881	/^0/ {
11882	    s/^0  *\(.*\)$/\1/
11883	    p
11884	}
11885    }'
11886aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11887# Check for a 64-bit object if we didn't find anything.
11888if test -z "$aix_libpath"; then
11889  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11890fi
11891fi
11892rm -f core conftest.err conftest.$ac_objext \
11893    conftest$ac_exeext conftest.$ac_ext
11894if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11895
11896	    hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11897	    # Warning - without using the other run time loading flags,
11898	    # -berok will link without error, but may produce a broken library.
11899	    no_undefined_flag_CXX=' ${wl}-bernotok'
11900	    allow_undefined_flag_CXX=' ${wl}-berok'
11901	    if test "$with_gnu_ld" = yes; then
11902	      # We only use this code for GNU lds that support --whole-archive.
11903	      whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
11904	    else
11905	      # Exported symbols can be pulled into shared objects from archives
11906	      whole_archive_flag_spec_CXX='$convenience'
11907	    fi
11908	    archive_cmds_need_lc_CXX=yes
11909	    # This is similar to how AIX traditionally builds its shared
11910	    # libraries.
11911	    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'
11912          fi
11913        fi
11914        ;;
11915
11916      beos*)
11917	if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
11918	  allow_undefined_flag_CXX=unsupported
11919	  # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
11920	  # support --undefined.  This deserves some investigation.  FIXME
11921	  archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11922	else
11923	  ld_shlibs_CXX=no
11924	fi
11925	;;
11926
11927      chorus*)
11928        case $cc_basename in
11929          *)
11930	  # FIXME: insert proper C++ library support
11931	  ld_shlibs_CXX=no
11932	  ;;
11933        esac
11934        ;;
11935
11936      cygwin* | mingw* | pw32* | cegcc*)
11937        # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
11938        # as there is no search path for DLLs.
11939        hardcode_libdir_flag_spec_CXX='-L$libdir'
11940        export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
11941        allow_undefined_flag_CXX=unsupported
11942        always_export_symbols_CXX=no
11943        enable_shared_with_static_runtimes_CXX=yes
11944
11945        if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
11946          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'
11947          # If the export-symbols file already is a .def file (1st line
11948          # is EXPORTS), use it as is; otherwise, prepend...
11949          archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
11950	    cp $export_symbols $output_objdir/$soname.def;
11951          else
11952	    echo EXPORTS > $output_objdir/$soname.def;
11953	    cat $export_symbols >> $output_objdir/$soname.def;
11954          fi~
11955          $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'
11956        else
11957          ld_shlibs_CXX=no
11958        fi
11959        ;;
11960      darwin* | rhapsody*)
11961
11962
11963  archive_cmds_need_lc_CXX=no
11964  hardcode_direct_CXX=no
11965  hardcode_automatic_CXX=yes
11966  hardcode_shlibpath_var_CXX=unsupported
11967  if test "$lt_cv_ld_force_load" = "yes"; then
11968    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\"`'
11969  else
11970    whole_archive_flag_spec_CXX=''
11971  fi
11972  link_all_deplibs_CXX=yes
11973  allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
11974  case $cc_basename in
11975     ifort*) _lt_dar_can_shared=yes ;;
11976     *) _lt_dar_can_shared=$GCC ;;
11977  esac
11978  if test "$_lt_dar_can_shared" = "yes"; then
11979    output_verbose_link_cmd=func_echo_all
11980    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}"
11981    module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
11982    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}"
11983    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}"
11984       if test "$lt_cv_apple_cc_single_mod" != "yes"; then
11985      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}"
11986      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}"
11987    fi
11988
11989  else
11990  ld_shlibs_CXX=no
11991  fi
11992
11993	;;
11994
11995      dgux*)
11996        case $cc_basename in
11997          ec++*)
11998	    # FIXME: insert proper C++ library support
11999	    ld_shlibs_CXX=no
12000	    ;;
12001          ghcx*)
12002	    # Green Hills C++ Compiler
12003	    # FIXME: insert proper C++ library support
12004	    ld_shlibs_CXX=no
12005	    ;;
12006          *)
12007	    # FIXME: insert proper C++ library support
12008	    ld_shlibs_CXX=no
12009	    ;;
12010        esac
12011        ;;
12012
12013      freebsd[12]*)
12014        # C++ shared libraries reported to be fairly broken before
12015	# switch to ELF
12016        ld_shlibs_CXX=no
12017        ;;
12018
12019      freebsd-elf*)
12020        archive_cmds_need_lc_CXX=no
12021        ;;
12022
12023      freebsd* | dragonfly*)
12024        # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
12025        # conventions
12026        ld_shlibs_CXX=yes
12027        ;;
12028
12029      gnu*)
12030        ;;
12031
12032      haiku*)
12033        archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12034        link_all_deplibs_CXX=yes
12035        ;;
12036
12037      hpux9*)
12038        hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
12039        hardcode_libdir_separator_CXX=:
12040        export_dynamic_flag_spec_CXX='${wl}-E'
12041        hardcode_direct_CXX=yes
12042        hardcode_minus_L_CXX=yes # Not in the search PATH,
12043				             # but as the default
12044				             # location of the library.
12045
12046        case $cc_basename in
12047          CC*)
12048            # FIXME: insert proper C++ library support
12049            ld_shlibs_CXX=no
12050            ;;
12051          aCC*)
12052            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'
12053            # Commands to make compiler produce verbose output that lists
12054            # what "hidden" libraries, object files and flags are used when
12055            # linking a shared library.
12056            #
12057            # There doesn't appear to be a way to prevent this compiler from
12058            # explicitly linking system object files so we need to strip them
12059            # from the output so that they don't get included in the library
12060            # dependencies.
12061            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"'
12062            ;;
12063          *)
12064            if test "$GXX" = yes; then
12065              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'
12066            else
12067              # FIXME: insert proper C++ library support
12068              ld_shlibs_CXX=no
12069            fi
12070            ;;
12071        esac
12072        ;;
12073
12074      hpux10*|hpux11*)
12075        if test $with_gnu_ld = no; then
12076	  hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
12077	  hardcode_libdir_separator_CXX=:
12078
12079          case $host_cpu in
12080            hppa*64*|ia64*)
12081              ;;
12082            *)
12083	      export_dynamic_flag_spec_CXX='${wl}-E'
12084              ;;
12085          esac
12086        fi
12087        case $host_cpu in
12088          hppa*64*|ia64*)
12089            hardcode_direct_CXX=no
12090            hardcode_shlibpath_var_CXX=no
12091            ;;
12092          *)
12093            hardcode_direct_CXX=yes
12094            hardcode_direct_absolute_CXX=yes
12095            hardcode_minus_L_CXX=yes # Not in the search PATH,
12096					         # but as the default
12097					         # location of the library.
12098            ;;
12099        esac
12100
12101        case $cc_basename in
12102          CC*)
12103	    # FIXME: insert proper C++ library support
12104	    ld_shlibs_CXX=no
12105	    ;;
12106          aCC*)
12107	    case $host_cpu in
12108	      hppa*64*)
12109	        archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12110	        ;;
12111	      ia64*)
12112	        archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12113	        ;;
12114	      *)
12115	        archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12116	        ;;
12117	    esac
12118	    # Commands to make compiler produce verbose output that lists
12119	    # what "hidden" libraries, object files and flags are used when
12120	    # linking a shared library.
12121	    #
12122	    # There doesn't appear to be a way to prevent this compiler from
12123	    # explicitly linking system object files so we need to strip them
12124	    # from the output so that they don't get included in the library
12125	    # dependencies.
12126	    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"'
12127	    ;;
12128          *)
12129	    if test "$GXX" = yes; then
12130	      if test $with_gnu_ld = no; then
12131	        case $host_cpu in
12132	          hppa*64*)
12133	            archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12134	            ;;
12135	          ia64*)
12136	            archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12137	            ;;
12138	          *)
12139	            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'
12140	            ;;
12141	        esac
12142	      fi
12143	    else
12144	      # FIXME: insert proper C++ library support
12145	      ld_shlibs_CXX=no
12146	    fi
12147	    ;;
12148        esac
12149        ;;
12150
12151      interix[3-9]*)
12152	hardcode_direct_CXX=no
12153	hardcode_shlibpath_var_CXX=no
12154	hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12155	export_dynamic_flag_spec_CXX='${wl}-E'
12156	# Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
12157	# Instead, shared libraries are loaded at an image base (0x10000000 by
12158	# default) and relocated if they conflict, which is a slow very memory
12159	# consuming and fragmenting process.  To avoid this, we pick a random,
12160	# 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
12161	# time.  Moving up from 0x10000000 also allows more sbrk(2) space.
12162	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'
12163	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'
12164	;;
12165      irix5* | irix6*)
12166        case $cc_basename in
12167          CC*)
12168	    # SGI C++
12169	    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'
12170
12171	    # Archives containing C++ object files must be created using
12172	    # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
12173	    # necessary to make sure instantiated templates are included
12174	    # in the archive.
12175	    old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
12176	    ;;
12177          *)
12178	    if test "$GXX" = yes; then
12179	      if test "$with_gnu_ld" = no; then
12180	        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'
12181	      else
12182	        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'
12183	      fi
12184	    fi
12185	    link_all_deplibs_CXX=yes
12186	    ;;
12187        esac
12188        hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12189        hardcode_libdir_separator_CXX=:
12190        inherit_rpath_CXX=yes
12191        ;;
12192
12193      linux* | k*bsd*-gnu | kopensolaris*-gnu)
12194        case $cc_basename in
12195          KCC*)
12196	    # Kuck and Associates, Inc. (KAI) C++ Compiler
12197
12198	    # KCC will only create a shared library if the output file
12199	    # ends with ".so" (or ".sl" for HP-UX), so rename the library
12200	    # to its proper name (with version) after linking.
12201	    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'
12202	    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'
12203	    # Commands to make compiler produce verbose output that lists
12204	    # what "hidden" libraries, object files and flags are used when
12205	    # linking a shared library.
12206	    #
12207	    # There doesn't appear to be a way to prevent this compiler from
12208	    # explicitly linking system object files so we need to strip them
12209	    # from the output so that they don't get included in the library
12210	    # dependencies.
12211	    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"'
12212
12213	    hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12214	    export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12215
12216	    # Archives containing C++ object files must be created using
12217	    # "CC -Bstatic", where "CC" is the KAI C++ compiler.
12218	    old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
12219	    ;;
12220	  icpc* | ecpc* )
12221	    # Intel C++
12222	    with_gnu_ld=yes
12223	    # version 8.0 and above of icpc choke on multiply defined symbols
12224	    # if we add $predep_objects and $postdep_objects, however 7.1 and
12225	    # earlier do not add the objects themselves.
12226	    case `$CC -V 2>&1` in
12227	      *"Version 7."*)
12228	        archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12229		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'
12230		;;
12231	      *)  # Version 8.0 or newer
12232	        tmp_idyn=
12233	        case $host_cpu in
12234		  ia64*) tmp_idyn=' -i_dynamic';;
12235		esac
12236	        archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12237		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'
12238		;;
12239	    esac
12240	    archive_cmds_need_lc_CXX=no
12241	    hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12242	    export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12243	    whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
12244	    ;;
12245          pgCC* | pgcpp*)
12246            # Portland Group C++ compiler
12247	    case `$CC -V` in
12248	    *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
12249	      prelink_cmds_CXX='tpldir=Template.dir~
12250		rm -rf $tpldir~
12251		$CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
12252		compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
12253	      old_archive_cmds_CXX='tpldir=Template.dir~
12254		rm -rf $tpldir~
12255		$CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
12256		$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
12257		$RANLIB $oldlib'
12258	      archive_cmds_CXX='tpldir=Template.dir~
12259		rm -rf $tpldir~
12260		$CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
12261		$CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
12262	      archive_expsym_cmds_CXX='tpldir=Template.dir~
12263		rm -rf $tpldir~
12264		$CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
12265		$CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
12266	      ;;
12267	    *) # Version 6 and above use weak symbols
12268	      archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
12269	      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'
12270	      ;;
12271	    esac
12272
12273	    hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
12274	    export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12275	    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'
12276            ;;
12277	  cxx*)
12278	    # Compaq C++
12279	    archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12280	    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'
12281
12282	    runpath_var=LD_RUN_PATH
12283	    hardcode_libdir_flag_spec_CXX='-rpath $libdir'
12284	    hardcode_libdir_separator_CXX=:
12285
12286	    # Commands to make compiler produce verbose output that lists
12287	    # what "hidden" libraries, object files and flags are used when
12288	    # linking a shared library.
12289	    #
12290	    # There doesn't appear to be a way to prevent this compiler from
12291	    # explicitly linking system object files so we need to strip them
12292	    # from the output so that they don't get included in the library
12293	    # dependencies.
12294	    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'
12295	    ;;
12296	  xl* | mpixl* | bgxl*)
12297	    # IBM XL 8.0 on PPC, with GNU ld
12298	    hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12299	    export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12300	    archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12301	    if test "x$supports_anon_versioning" = xyes; then
12302	      archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
12303		cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
12304		echo "local: *; };" >> $output_objdir/$libname.ver~
12305		$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
12306	    fi
12307	    ;;
12308	  *)
12309	    case `$CC -V 2>&1 | sed 5q` in
12310	    *Sun\ C*)
12311	      # Sun C++ 5.9
12312	      no_undefined_flag_CXX=' -zdefs'
12313	      archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12314	      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'
12315	      hardcode_libdir_flag_spec_CXX='-R$libdir'
12316	      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'
12317	      compiler_needs_object_CXX=yes
12318
12319	      # Not sure whether something based on
12320	      # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
12321	      # would be better.
12322	      output_verbose_link_cmd='func_echo_all'
12323
12324	      # Archives containing C++ object files must be created using
12325	      # "CC -xar", where "CC" is the Sun C++ compiler.  This is
12326	      # necessary to make sure instantiated templates are included
12327	      # in the archive.
12328	      old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
12329	      ;;
12330	    esac
12331	    ;;
12332	esac
12333	;;
12334
12335      lynxos*)
12336        # FIXME: insert proper C++ library support
12337	ld_shlibs_CXX=no
12338	;;
12339
12340      m88k*)
12341        # FIXME: insert proper C++ library support
12342        ld_shlibs_CXX=no
12343	;;
12344
12345      mvs*)
12346        case $cc_basename in
12347          cxx*)
12348	    # FIXME: insert proper C++ library support
12349	    ld_shlibs_CXX=no
12350	    ;;
12351	  *)
12352	    # FIXME: insert proper C++ library support
12353	    ld_shlibs_CXX=no
12354	    ;;
12355	esac
12356	;;
12357
12358      netbsd*)
12359        if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12360	  archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
12361	  wlarc=
12362	  hardcode_libdir_flag_spec_CXX='-R$libdir'
12363	  hardcode_direct_CXX=yes
12364	  hardcode_shlibpath_var_CXX=no
12365	fi
12366	# Workaround some broken pre-1.5 toolchains
12367	output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
12368	;;
12369
12370      *nto* | *qnx*)
12371        ld_shlibs_CXX=yes
12372	;;
12373
12374      openbsd2*)
12375        # C++ shared libraries are fairly broken
12376	ld_shlibs_CXX=no
12377	;;
12378
12379      openbsd*)
12380	if test -f /usr/libexec/ld.so; then
12381	  hardcode_direct_CXX=yes
12382	  hardcode_shlibpath_var_CXX=no
12383	  hardcode_direct_absolute_CXX=yes
12384	  archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
12385	  hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12386	  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12387	    archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
12388	    export_dynamic_flag_spec_CXX='${wl}-E'
12389	    whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12390	  fi
12391	  output_verbose_link_cmd=func_echo_all
12392	else
12393	  ld_shlibs_CXX=no
12394	fi
12395	;;
12396
12397      osf3* | osf4* | osf5*)
12398        case $cc_basename in
12399          KCC*)
12400	    # Kuck and Associates, Inc. (KAI) C++ Compiler
12401
12402	    # KCC will only create a shared library if the output file
12403	    # ends with ".so" (or ".sl" for HP-UX), so rename the library
12404	    # to its proper name (with version) after linking.
12405	    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'
12406
12407	    hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12408	    hardcode_libdir_separator_CXX=:
12409
12410	    # Archives containing C++ object files must be created using
12411	    # the KAI C++ compiler.
12412	    case $host in
12413	      osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
12414	      *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
12415	    esac
12416	    ;;
12417          RCC*)
12418	    # Rational C++ 2.4.1
12419	    # FIXME: insert proper C++ library support
12420	    ld_shlibs_CXX=no
12421	    ;;
12422          cxx*)
12423	    case $host in
12424	      osf3*)
12425	        allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12426	        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'
12427	        hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12428		;;
12429	      *)
12430	        allow_undefined_flag_CXX=' -expect_unresolved \*'
12431	        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'
12432	        archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
12433	          echo "-hidden">> $lib.exp~
12434	          $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~
12435	          $RM $lib.exp'
12436	        hardcode_libdir_flag_spec_CXX='-rpath $libdir'
12437		;;
12438	    esac
12439
12440	    hardcode_libdir_separator_CXX=:
12441
12442	    # Commands to make compiler produce verbose output that lists
12443	    # what "hidden" libraries, object files and flags are used when
12444	    # linking a shared library.
12445	    #
12446	    # There doesn't appear to be a way to prevent this compiler from
12447	    # explicitly linking system object files so we need to strip them
12448	    # from the output so that they don't get included in the library
12449	    # dependencies.
12450	    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"'
12451	    ;;
12452	  *)
12453	    if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12454	      allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12455	      case $host in
12456	        osf3*)
12457	          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'
12458		  ;;
12459	        *)
12460	          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'
12461		  ;;
12462	      esac
12463
12464	      hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12465	      hardcode_libdir_separator_CXX=:
12466
12467	      # Commands to make compiler produce verbose output that lists
12468	      # what "hidden" libraries, object files and flags are used when
12469	      # linking a shared library.
12470	      output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
12471
12472	    else
12473	      # FIXME: insert proper C++ library support
12474	      ld_shlibs_CXX=no
12475	    fi
12476	    ;;
12477        esac
12478        ;;
12479
12480      psos*)
12481        # FIXME: insert proper C++ library support
12482        ld_shlibs_CXX=no
12483        ;;
12484
12485      sunos4*)
12486        case $cc_basename in
12487          CC*)
12488	    # Sun C++ 4.x
12489	    # FIXME: insert proper C++ library support
12490	    ld_shlibs_CXX=no
12491	    ;;
12492          lcc*)
12493	    # Lucid
12494	    # FIXME: insert proper C++ library support
12495	    ld_shlibs_CXX=no
12496	    ;;
12497          *)
12498	    # FIXME: insert proper C++ library support
12499	    ld_shlibs_CXX=no
12500	    ;;
12501        esac
12502        ;;
12503
12504      solaris*)
12505        case $cc_basename in
12506          CC* | sunCC*)
12507	    # Sun C++ 4.2, 5.x and Centerline C++
12508            archive_cmds_need_lc_CXX=yes
12509	    no_undefined_flag_CXX=' -zdefs'
12510	    archive_cmds_CXX='$CC -G${allow_undefined_flag}  -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12511	    archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12512	      $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'
12513
12514	    hardcode_libdir_flag_spec_CXX='-R$libdir'
12515	    hardcode_shlibpath_var_CXX=no
12516	    case $host_os in
12517	      solaris2.[0-5] | solaris2.[0-5].*) ;;
12518	      *)
12519		# The compiler driver will combine and reorder linker options,
12520		# but understands `-z linker_flag'.
12521	        # Supported since Solaris 2.6 (maybe 2.5.1?)
12522		whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
12523	        ;;
12524	    esac
12525	    link_all_deplibs_CXX=yes
12526
12527	    output_verbose_link_cmd='func_echo_all'
12528
12529	    # Archives containing C++ object files must be created using
12530	    # "CC -xar", where "CC" is the Sun C++ compiler.  This is
12531	    # necessary to make sure instantiated templates are included
12532	    # in the archive.
12533	    old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
12534	    ;;
12535          gcx*)
12536	    # Green Hills C++ Compiler
12537	    archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12538
12539	    # The C++ compiler must be used to create the archive.
12540	    old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
12541	    ;;
12542          *)
12543	    # GNU C++ compiler with Solaris linker
12544	    if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12545	      no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
12546	      if $CC --version | $GREP -v '^2\.7' > /dev/null; then
12547	        archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12548	        archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12549		  $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
12550
12551	        # Commands to make compiler produce verbose output that lists
12552	        # what "hidden" libraries, object files and flags are used when
12553	        # linking a shared library.
12554	        output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
12555	      else
12556	        # g++ 2.7 appears to require `-G' NOT `-shared' on this
12557	        # platform.
12558	        archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12559	        archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12560		  $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
12561
12562	        # Commands to make compiler produce verbose output that lists
12563	        # what "hidden" libraries, object files and flags are used when
12564	        # linking a shared library.
12565	        output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
12566	      fi
12567
12568	      hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
12569	      case $host_os in
12570		solaris2.[0-5] | solaris2.[0-5].*) ;;
12571		*)
12572		  whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
12573		  ;;
12574	      esac
12575	    fi
12576	    ;;
12577        esac
12578        ;;
12579
12580    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
12581      no_undefined_flag_CXX='${wl}-z,text'
12582      archive_cmds_need_lc_CXX=no
12583      hardcode_shlibpath_var_CXX=no
12584      runpath_var='LD_RUN_PATH'
12585
12586      case $cc_basename in
12587        CC*)
12588	  archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12589	  archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12590	  ;;
12591	*)
12592	  archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12593	  archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12594	  ;;
12595      esac
12596      ;;
12597
12598      sysv5* | sco3.2v5* | sco5v6*)
12599	# Note: We can NOT use -z defs as we might desire, because we do not
12600	# link with -lc, and that would cause any symbols used from libc to
12601	# always be unresolved, which means just about no library would
12602	# ever link correctly.  If we're not using GNU ld we use -z text
12603	# though, which does catch some bad symbols but isn't as heavy-handed
12604	# as -z defs.
12605	no_undefined_flag_CXX='${wl}-z,text'
12606	allow_undefined_flag_CXX='${wl}-z,nodefs'
12607	archive_cmds_need_lc_CXX=no
12608	hardcode_shlibpath_var_CXX=no
12609	hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
12610	hardcode_libdir_separator_CXX=':'
12611	link_all_deplibs_CXX=yes
12612	export_dynamic_flag_spec_CXX='${wl}-Bexport'
12613	runpath_var='LD_RUN_PATH'
12614
12615	case $cc_basename in
12616          CC*)
12617	    archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12618	    archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12619	    old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
12620	      '"$old_archive_cmds_CXX"
12621	    reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
12622	      '"$reload_cmds_CXX"
12623	    ;;
12624	  *)
12625	    archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12626	    archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12627	    ;;
12628	esac
12629      ;;
12630
12631      tandem*)
12632        case $cc_basename in
12633          NCC*)
12634	    # NonStop-UX NCC 3.20
12635	    # FIXME: insert proper C++ library support
12636	    ld_shlibs_CXX=no
12637	    ;;
12638          *)
12639	    # FIXME: insert proper C++ library support
12640	    ld_shlibs_CXX=no
12641	    ;;
12642        esac
12643        ;;
12644
12645      vxworks*)
12646        # FIXME: insert proper C++ library support
12647        ld_shlibs_CXX=no
12648        ;;
12649
12650      *)
12651        # FIXME: insert proper C++ library support
12652        ld_shlibs_CXX=no
12653        ;;
12654    esac
12655
12656    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
12657$as_echo "$ld_shlibs_CXX" >&6; }
12658    test "$ld_shlibs_CXX" = no && can_build_shared=no
12659
12660    GCC_CXX="$GXX"
12661    LD_CXX="$LD"
12662
12663    ## CAVEAT EMPTOR:
12664    ## There is no encapsulation within the following macros, do not change
12665    ## the running order or otherwise move them around unless you know exactly
12666    ## what you are doing...
12667    # Dependencies to place before and after the object being linked:
12668predep_objects_CXX=
12669postdep_objects_CXX=
12670predeps_CXX=
12671postdeps_CXX=
12672compiler_lib_search_path_CXX=
12673
12674cat > conftest.$ac_ext <<_LT_EOF
12675class Foo
12676{
12677public:
12678  Foo (void) { a = 0; }
12679private:
12680  int a;
12681};
12682_LT_EOF
12683
12684if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12685  (eval $ac_compile) 2>&5
12686  ac_status=$?
12687  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12688  test $ac_status = 0; }; then
12689  # Parse the compiler output and extract the necessary
12690  # objects, libraries and library flags.
12691
12692  # Sentinel used to keep track of whether or not we are before
12693  # the conftest object file.
12694  pre_test_object_deps_done=no
12695
12696  for p in `eval "$output_verbose_link_cmd"`; do
12697    case $p in
12698
12699    -L* | -R* | -l*)
12700       # Some compilers place space between "-{L,R}" and the path.
12701       # Remove the space.
12702       if test $p = "-L" ||
12703          test $p = "-R"; then
12704	 prev=$p
12705	 continue
12706       else
12707	 prev=
12708       fi
12709
12710       if test "$pre_test_object_deps_done" = no; then
12711	 case $p in
12712	 -L* | -R*)
12713	   # Internal compiler library paths should come after those
12714	   # provided the user.  The postdeps already come after the
12715	   # user supplied libs so there is no need to process them.
12716	   if test -z "$compiler_lib_search_path_CXX"; then
12717	     compiler_lib_search_path_CXX="${prev}${p}"
12718	   else
12719	     compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
12720	   fi
12721	   ;;
12722	 # The "-l" case would never come before the object being
12723	 # linked, so don't bother handling this case.
12724	 esac
12725       else
12726	 if test -z "$postdeps_CXX"; then
12727	   postdeps_CXX="${prev}${p}"
12728	 else
12729	   postdeps_CXX="${postdeps_CXX} ${prev}${p}"
12730	 fi
12731       fi
12732       ;;
12733
12734    *.$objext)
12735       # This assumes that the test object file only shows up
12736       # once in the compiler output.
12737       if test "$p" = "conftest.$objext"; then
12738	 pre_test_object_deps_done=yes
12739	 continue
12740       fi
12741
12742       if test "$pre_test_object_deps_done" = no; then
12743	 if test -z "$predep_objects_CXX"; then
12744	   predep_objects_CXX="$p"
12745	 else
12746	   predep_objects_CXX="$predep_objects_CXX $p"
12747	 fi
12748       else
12749	 if test -z "$postdep_objects_CXX"; then
12750	   postdep_objects_CXX="$p"
12751	 else
12752	   postdep_objects_CXX="$postdep_objects_CXX $p"
12753	 fi
12754       fi
12755       ;;
12756
12757    *) ;; # Ignore the rest.
12758
12759    esac
12760  done
12761
12762  # Clean up.
12763  rm -f a.out a.exe
12764else
12765  echo "libtool.m4: error: problem compiling CXX test program"
12766fi
12767
12768$RM -f confest.$objext
12769
12770# PORTME: override above test on systems where it is broken
12771case $host_os in
12772interix[3-9]*)
12773  # Interix 3.5 installs completely hosed .la files for C++, so rather than
12774  # hack all around it, let's just trust "g++" to DTRT.
12775  predep_objects_CXX=
12776  postdep_objects_CXX=
12777  postdeps_CXX=
12778  ;;
12779
12780linux*)
12781  case `$CC -V 2>&1 | sed 5q` in
12782  *Sun\ C*)
12783    # Sun C++ 5.9
12784
12785    # The more standards-conforming stlport4 library is
12786    # incompatible with the Cstd library. Avoid specifying
12787    # it if it's in CXXFLAGS. Ignore libCrun as
12788    # -library=stlport4 depends on it.
12789    case " $CXX $CXXFLAGS " in
12790    *" -library=stlport4 "*)
12791      solaris_use_stlport4=yes
12792      ;;
12793    esac
12794
12795    if test "$solaris_use_stlport4" != yes; then
12796      postdeps_CXX='-library=Cstd -library=Crun'
12797    fi
12798    ;;
12799  esac
12800  ;;
12801
12802solaris*)
12803  case $cc_basename in
12804  CC* | sunCC*)
12805    # The more standards-conforming stlport4 library is
12806    # incompatible with the Cstd library. Avoid specifying
12807    # it if it's in CXXFLAGS. Ignore libCrun as
12808    # -library=stlport4 depends on it.
12809    case " $CXX $CXXFLAGS " in
12810    *" -library=stlport4 "*)
12811      solaris_use_stlport4=yes
12812      ;;
12813    esac
12814
12815    # Adding this requires a known-good setup of shared libraries for
12816    # Sun compiler versions before 5.6, else PIC objects from an old
12817    # archive will be linked into the output, leading to subtle bugs.
12818    if test "$solaris_use_stlport4" != yes; then
12819      postdeps_CXX='-library=Cstd -library=Crun'
12820    fi
12821    ;;
12822  esac
12823  ;;
12824esac
12825
12826
12827case " $postdeps_CXX " in
12828*" -lc "*) archive_cmds_need_lc_CXX=no ;;
12829esac
12830 compiler_lib_search_dirs_CXX=
12831if test -n "${compiler_lib_search_path_CXX}"; then
12832 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
12833fi
12834
12835
12836
12837
12838
12839
12840
12841
12842
12843
12844
12845
12846
12847
12848
12849
12850
12851
12852
12853
12854
12855
12856
12857
12858
12859
12860
12861
12862
12863
12864
12865    lt_prog_compiler_wl_CXX=
12866lt_prog_compiler_pic_CXX=
12867lt_prog_compiler_static_CXX=
12868
12869{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
12870$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
12871
12872  # C++ specific cases for pic, static, wl, etc.
12873  if test "$GXX" = yes; then
12874    lt_prog_compiler_wl_CXX='-Wl,'
12875    lt_prog_compiler_static_CXX='-static'
12876
12877    case $host_os in
12878    aix*)
12879      # All AIX code is PIC.
12880      if test "$host_cpu" = ia64; then
12881	# AIX 5 now supports IA64 processor
12882	lt_prog_compiler_static_CXX='-Bstatic'
12883      fi
12884      ;;
12885
12886    amigaos*)
12887      case $host_cpu in
12888      powerpc)
12889            # see comment about AmigaOS4 .so support
12890            lt_prog_compiler_pic_CXX='-fPIC'
12891        ;;
12892      m68k)
12893            # FIXME: we need at least 68020 code to build shared libraries, but
12894            # adding the `-m68020' flag to GCC prevents building anything better,
12895            # like `-m68040'.
12896            lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
12897        ;;
12898      esac
12899      ;;
12900
12901    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
12902      # PIC is the default for these OSes.
12903      ;;
12904    mingw* | cygwin* | os2* | pw32* | cegcc*)
12905      # This hack is so that the source file can tell whether it is being
12906      # built for inclusion in a dll (and should export symbols for example).
12907      # Although the cygwin gcc ignores -fPIC, still need this for old-style
12908      # (--disable-auto-import) libraries
12909      lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
12910      ;;
12911    darwin* | rhapsody*)
12912      # PIC is the default on this platform
12913      # Common symbols not allowed in MH_DYLIB files
12914      lt_prog_compiler_pic_CXX='-fno-common'
12915      ;;
12916    *djgpp*)
12917      # DJGPP does not support shared libraries at all
12918      lt_prog_compiler_pic_CXX=
12919      ;;
12920    haiku*)
12921      # PIC is the default for Haiku.
12922      # The "-static" flag exists, but is broken.
12923      lt_prog_compiler_static_CXX=
12924      ;;
12925    interix[3-9]*)
12926      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
12927      # Instead, we relocate shared libraries at runtime.
12928      ;;
12929    sysv4*MP*)
12930      if test -d /usr/nec; then
12931	lt_prog_compiler_pic_CXX=-Kconform_pic
12932      fi
12933      ;;
12934    hpux*)
12935      # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
12936      # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
12937      # sets the default TLS model and affects inlining.
12938      case $host_cpu in
12939      hppa*64*)
12940	;;
12941      *)
12942	lt_prog_compiler_pic_CXX='-fPIC'
12943	;;
12944      esac
12945      ;;
12946    *qnx* | *nto*)
12947      # QNX uses GNU C++, but need to define -shared option too, otherwise
12948      # it will coredump.
12949      lt_prog_compiler_pic_CXX='-fPIC -shared'
12950      ;;
12951    *)
12952      lt_prog_compiler_pic_CXX='-fPIC'
12953      ;;
12954    esac
12955  else
12956    case $host_os in
12957      aix[4-9]*)
12958	# All AIX code is PIC.
12959	if test "$host_cpu" = ia64; then
12960	  # AIX 5 now supports IA64 processor
12961	  lt_prog_compiler_static_CXX='-Bstatic'
12962	else
12963	  lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
12964	fi
12965	;;
12966      chorus*)
12967	case $cc_basename in
12968	cxch68*)
12969	  # Green Hills C++ Compiler
12970	  # _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"
12971	  ;;
12972	esac
12973	;;
12974      dgux*)
12975	case $cc_basename in
12976	  ec++*)
12977	    lt_prog_compiler_pic_CXX='-KPIC'
12978	    ;;
12979	  ghcx*)
12980	    # Green Hills C++ Compiler
12981	    lt_prog_compiler_pic_CXX='-pic'
12982	    ;;
12983	  *)
12984	    ;;
12985	esac
12986	;;
12987      freebsd* | dragonfly*)
12988	# FreeBSD uses GNU C++
12989	;;
12990      hpux9* | hpux10* | hpux11*)
12991	case $cc_basename in
12992	  CC*)
12993	    lt_prog_compiler_wl_CXX='-Wl,'
12994	    lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
12995	    if test "$host_cpu" != ia64; then
12996	      lt_prog_compiler_pic_CXX='+Z'
12997	    fi
12998	    ;;
12999	  aCC*)
13000	    lt_prog_compiler_wl_CXX='-Wl,'
13001	    lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
13002	    case $host_cpu in
13003	    hppa*64*|ia64*)
13004	      # +Z the default
13005	      ;;
13006	    *)
13007	      lt_prog_compiler_pic_CXX='+Z'
13008	      ;;
13009	    esac
13010	    ;;
13011	  *)
13012	    ;;
13013	esac
13014	;;
13015      interix*)
13016	# This is c89, which is MS Visual C++ (no shared libs)
13017	# Anyone wants to do a port?
13018	;;
13019      irix5* | irix6* | nonstopux*)
13020	case $cc_basename in
13021	  CC*)
13022	    lt_prog_compiler_wl_CXX='-Wl,'
13023	    lt_prog_compiler_static_CXX='-non_shared'
13024	    # CC pic flag -KPIC is the default.
13025	    ;;
13026	  *)
13027	    ;;
13028	esac
13029	;;
13030      linux* | k*bsd*-gnu | kopensolaris*-gnu)
13031	case $cc_basename in
13032	  KCC*)
13033	    # KAI C++ Compiler
13034	    lt_prog_compiler_wl_CXX='--backend -Wl,'
13035	    lt_prog_compiler_pic_CXX='-fPIC'
13036	    ;;
13037	  ecpc* )
13038	    # old Intel C++ for x86_64 which still supported -KPIC.
13039	    lt_prog_compiler_wl_CXX='-Wl,'
13040	    lt_prog_compiler_pic_CXX='-KPIC'
13041	    lt_prog_compiler_static_CXX='-static'
13042	    ;;
13043	  icpc* )
13044	    # Intel C++, used to be incompatible with GCC.
13045	    # ICC 10 doesn't accept -KPIC any more.
13046	    lt_prog_compiler_wl_CXX='-Wl,'
13047	    lt_prog_compiler_pic_CXX='-fPIC'
13048	    lt_prog_compiler_static_CXX='-static'
13049	    ;;
13050	  pgCC* | pgcpp*)
13051	    # Portland Group C++ compiler
13052	    lt_prog_compiler_wl_CXX='-Wl,'
13053	    lt_prog_compiler_pic_CXX='-fpic'
13054	    lt_prog_compiler_static_CXX='-Bstatic'
13055	    ;;
13056	  cxx*)
13057	    # Compaq C++
13058	    # Make sure the PIC flag is empty.  It appears that all Alpha
13059	    # Linux and Compaq Tru64 Unix objects are PIC.
13060	    lt_prog_compiler_pic_CXX=
13061	    lt_prog_compiler_static_CXX='-non_shared'
13062	    ;;
13063	  xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
13064	    # IBM XL 8.0, 9.0 on PPC and BlueGene
13065	    lt_prog_compiler_wl_CXX='-Wl,'
13066	    lt_prog_compiler_pic_CXX='-qpic'
13067	    lt_prog_compiler_static_CXX='-qstaticlink'
13068	    ;;
13069	  *)
13070	    case `$CC -V 2>&1 | sed 5q` in
13071	    *Sun\ C*)
13072	      # Sun C++ 5.9
13073	      lt_prog_compiler_pic_CXX='-KPIC'
13074	      lt_prog_compiler_static_CXX='-Bstatic'
13075	      lt_prog_compiler_wl_CXX='-Qoption ld '
13076	      ;;
13077	    esac
13078	    ;;
13079	esac
13080	;;
13081      lynxos*)
13082	;;
13083      m88k*)
13084	;;
13085      mvs*)
13086	case $cc_basename in
13087	  cxx*)
13088	    lt_prog_compiler_pic_CXX='-W c,exportall'
13089	    ;;
13090	  *)
13091	    ;;
13092	esac
13093	;;
13094      netbsd*)
13095	;;
13096      *qnx* | *nto*)
13097        # QNX uses GNU C++, but need to define -shared option too, otherwise
13098        # it will coredump.
13099        lt_prog_compiler_pic_CXX='-fPIC -shared'
13100        ;;
13101      osf3* | osf4* | osf5*)
13102	case $cc_basename in
13103	  KCC*)
13104	    lt_prog_compiler_wl_CXX='--backend -Wl,'
13105	    ;;
13106	  RCC*)
13107	    # Rational C++ 2.4.1
13108	    lt_prog_compiler_pic_CXX='-pic'
13109	    ;;
13110	  cxx*)
13111	    # Digital/Compaq C++
13112	    lt_prog_compiler_wl_CXX='-Wl,'
13113	    # Make sure the PIC flag is empty.  It appears that all Alpha
13114	    # Linux and Compaq Tru64 Unix objects are PIC.
13115	    lt_prog_compiler_pic_CXX=
13116	    lt_prog_compiler_static_CXX='-non_shared'
13117	    ;;
13118	  *)
13119	    ;;
13120	esac
13121	;;
13122      psos*)
13123	;;
13124      solaris*)
13125	case $cc_basename in
13126	  CC* | sunCC*)
13127	    # Sun C++ 4.2, 5.x and Centerline C++
13128	    lt_prog_compiler_pic_CXX='-KPIC'
13129	    lt_prog_compiler_static_CXX='-Bstatic'
13130	    lt_prog_compiler_wl_CXX='-Qoption ld '
13131	    ;;
13132	  gcx*)
13133	    # Green Hills C++ Compiler
13134	    lt_prog_compiler_pic_CXX='-PIC'
13135	    ;;
13136	  *)
13137	    ;;
13138	esac
13139	;;
13140      sunos4*)
13141	case $cc_basename in
13142	  CC*)
13143	    # Sun C++ 4.x
13144	    lt_prog_compiler_pic_CXX='-pic'
13145	    lt_prog_compiler_static_CXX='-Bstatic'
13146	    ;;
13147	  lcc*)
13148	    # Lucid
13149	    lt_prog_compiler_pic_CXX='-pic'
13150	    ;;
13151	  *)
13152	    ;;
13153	esac
13154	;;
13155      sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
13156	case $cc_basename in
13157	  CC*)
13158	    lt_prog_compiler_wl_CXX='-Wl,'
13159	    lt_prog_compiler_pic_CXX='-KPIC'
13160	    lt_prog_compiler_static_CXX='-Bstatic'
13161	    ;;
13162	esac
13163	;;
13164      tandem*)
13165	case $cc_basename in
13166	  NCC*)
13167	    # NonStop-UX NCC 3.20
13168	    lt_prog_compiler_pic_CXX='-KPIC'
13169	    ;;
13170	  *)
13171	    ;;
13172	esac
13173	;;
13174      vxworks*)
13175	;;
13176      *)
13177	lt_prog_compiler_can_build_shared_CXX=no
13178	;;
13179    esac
13180  fi
13181
13182case $host_os in
13183  # For platforms which do not support PIC, -DPIC is meaningless:
13184  *djgpp*)
13185    lt_prog_compiler_pic_CXX=
13186    ;;
13187  *)
13188    lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
13189    ;;
13190esac
13191{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_CXX" >&5
13192$as_echo "$lt_prog_compiler_pic_CXX" >&6; }
13193
13194
13195
13196#
13197# Check to make sure the PIC flag actually works.
13198#
13199if test -n "$lt_prog_compiler_pic_CXX"; then
13200  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
13201$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
13202if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then :
13203  $as_echo_n "(cached) " >&6
13204else
13205  lt_cv_prog_compiler_pic_works_CXX=no
13206   ac_outfile=conftest.$ac_objext
13207   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13208   lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
13209   # Insert the option either (1) after the last *FLAGS variable, or
13210   # (2) before a word containing "conftest.", or (3) at the end.
13211   # Note that $ac_compile itself does not contain backslashes and begins
13212   # with a dollar sign (not a hyphen), so the echo should work correctly.
13213   # The option is referenced via a variable to avoid confusing sed.
13214   lt_compile=`echo "$ac_compile" | $SED \
13215   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13216   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13217   -e 's:$: $lt_compiler_flag:'`
13218   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
13219   (eval "$lt_compile" 2>conftest.err)
13220   ac_status=$?
13221   cat conftest.err >&5
13222   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13223   if (exit $ac_status) && test -s "$ac_outfile"; then
13224     # The compiler can only warn and ignore the option if not recognized
13225     # So say no if there are warnings other than the usual output.
13226     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
13227     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13228     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
13229       lt_cv_prog_compiler_pic_works_CXX=yes
13230     fi
13231   fi
13232   $RM conftest*
13233
13234fi
13235{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
13236$as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
13237
13238if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
13239    case $lt_prog_compiler_pic_CXX in
13240     "" | " "*) ;;
13241     *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
13242     esac
13243else
13244    lt_prog_compiler_pic_CXX=
13245     lt_prog_compiler_can_build_shared_CXX=no
13246fi
13247
13248fi
13249
13250
13251
13252#
13253# Check to make sure the static flag actually works.
13254#
13255wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
13256{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
13257$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
13258if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then :
13259  $as_echo_n "(cached) " >&6
13260else
13261  lt_cv_prog_compiler_static_works_CXX=no
13262   save_LDFLAGS="$LDFLAGS"
13263   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
13264   echo "$lt_simple_link_test_code" > conftest.$ac_ext
13265   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
13266     # The linker can only warn and ignore the option if not recognized
13267     # So say no if there are warnings
13268     if test -s conftest.err; then
13269       # Append any errors to the config.log.
13270       cat conftest.err 1>&5
13271       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
13272       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13273       if diff conftest.exp conftest.er2 >/dev/null; then
13274         lt_cv_prog_compiler_static_works_CXX=yes
13275       fi
13276     else
13277       lt_cv_prog_compiler_static_works_CXX=yes
13278     fi
13279   fi
13280   $RM -r conftest*
13281   LDFLAGS="$save_LDFLAGS"
13282
13283fi
13284{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
13285$as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
13286
13287if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
13288    :
13289else
13290    lt_prog_compiler_static_CXX=
13291fi
13292
13293
13294
13295
13296    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
13297$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
13298if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
13299  $as_echo_n "(cached) " >&6
13300else
13301  lt_cv_prog_compiler_c_o_CXX=no
13302   $RM -r conftest 2>/dev/null
13303   mkdir conftest
13304   cd conftest
13305   mkdir out
13306   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13307
13308   lt_compiler_flag="-o out/conftest2.$ac_objext"
13309   # Insert the option either (1) after the last *FLAGS variable, or
13310   # (2) before a word containing "conftest.", or (3) at the end.
13311   # Note that $ac_compile itself does not contain backslashes and begins
13312   # with a dollar sign (not a hyphen), so the echo should work correctly.
13313   lt_compile=`echo "$ac_compile" | $SED \
13314   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13315   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13316   -e 's:$: $lt_compiler_flag:'`
13317   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
13318   (eval "$lt_compile" 2>out/conftest.err)
13319   ac_status=$?
13320   cat out/conftest.err >&5
13321   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13322   if (exit $ac_status) && test -s out/conftest2.$ac_objext
13323   then
13324     # The compiler can only warn and ignore the option if not recognized
13325     # So say no if there are warnings
13326     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
13327     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
13328     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
13329       lt_cv_prog_compiler_c_o_CXX=yes
13330     fi
13331   fi
13332   chmod u+w . 2>&5
13333   $RM conftest*
13334   # SGI C++ compiler will create directory out/ii_files/ for
13335   # template instantiation
13336   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
13337   $RM out/* && rmdir out
13338   cd ..
13339   $RM -r conftest
13340   $RM conftest*
13341
13342fi
13343{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
13344$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
13345
13346
13347
13348    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
13349$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
13350if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
13351  $as_echo_n "(cached) " >&6
13352else
13353  lt_cv_prog_compiler_c_o_CXX=no
13354   $RM -r conftest 2>/dev/null
13355   mkdir conftest
13356   cd conftest
13357   mkdir out
13358   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13359
13360   lt_compiler_flag="-o out/conftest2.$ac_objext"
13361   # Insert the option either (1) after the last *FLAGS variable, or
13362   # (2) before a word containing "conftest.", or (3) at the end.
13363   # Note that $ac_compile itself does not contain backslashes and begins
13364   # with a dollar sign (not a hyphen), so the echo should work correctly.
13365   lt_compile=`echo "$ac_compile" | $SED \
13366   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13367   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13368   -e 's:$: $lt_compiler_flag:'`
13369   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
13370   (eval "$lt_compile" 2>out/conftest.err)
13371   ac_status=$?
13372   cat out/conftest.err >&5
13373   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13374   if (exit $ac_status) && test -s out/conftest2.$ac_objext
13375   then
13376     # The compiler can only warn and ignore the option if not recognized
13377     # So say no if there are warnings
13378     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
13379     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
13380     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
13381       lt_cv_prog_compiler_c_o_CXX=yes
13382     fi
13383   fi
13384   chmod u+w . 2>&5
13385   $RM conftest*
13386   # SGI C++ compiler will create directory out/ii_files/ for
13387   # template instantiation
13388   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
13389   $RM out/* && rmdir out
13390   cd ..
13391   $RM -r conftest
13392   $RM conftest*
13393
13394fi
13395{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
13396$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
13397
13398
13399
13400
13401hard_links="nottested"
13402if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
13403  # do not overwrite the value of need_locks provided by the user
13404  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
13405$as_echo_n "checking if we can lock with hard links... " >&6; }
13406  hard_links=yes
13407  $RM conftest*
13408  ln conftest.a conftest.b 2>/dev/null && hard_links=no
13409  touch conftest.a
13410  ln conftest.a conftest.b 2>&5 || hard_links=no
13411  ln conftest.a conftest.b 2>/dev/null && hard_links=no
13412  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
13413$as_echo "$hard_links" >&6; }
13414  if test "$hard_links" = no; then
13415    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
13416$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
13417    need_locks=warn
13418  fi
13419else
13420  need_locks=no
13421fi
13422
13423
13424
13425    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13426$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
13427
13428  export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13429  case $host_os in
13430  aix[4-9]*)
13431    # If we're using GNU nm, then we don't want the "-C" option.
13432    # -C means demangle to AIX nm, but means don't demangle with GNU nm
13433    # Also, AIX nm treats weak defined symbols like other global defined
13434    # symbols, whereas GNU nm marks them as "W".
13435    if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
13436      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'
13437    else
13438      export_symbols_cmds_CXX='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
13439    fi
13440    ;;
13441  pw32*)
13442    export_symbols_cmds_CXX="$ltdll_cmds"
13443  ;;
13444  cygwin* | mingw* | cegcc*)
13445    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'
13446  ;;
13447  *)
13448    export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13449  ;;
13450  esac
13451  exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
13452
13453{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
13454$as_echo "$ld_shlibs_CXX" >&6; }
13455test "$ld_shlibs_CXX" = no && can_build_shared=no
13456
13457with_gnu_ld_CXX=$with_gnu_ld
13458
13459
13460
13461
13462
13463
13464#
13465# Do we need to explicitly link libc?
13466#
13467case "x$archive_cmds_need_lc_CXX" in
13468x|xyes)
13469  # Assume -lc should be added
13470  archive_cmds_need_lc_CXX=yes
13471
13472  if test "$enable_shared" = yes && test "$GCC" = yes; then
13473    case $archive_cmds_CXX in
13474    *'~'*)
13475      # FIXME: we may have to deal with multi-command sequences.
13476      ;;
13477    '$CC '*)
13478      # Test whether the compiler implicitly links with -lc since on some
13479      # systems, -lgcc has to come before -lc. If gcc already passes -lc
13480      # to ld, don't add -lc before -lgcc.
13481      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
13482$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
13483if test "${lt_cv_archive_cmds_need_lc_CXX+set}" = set; then :
13484  $as_echo_n "(cached) " >&6
13485else
13486  $RM conftest*
13487	echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13488
13489	if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13490  (eval $ac_compile) 2>&5
13491  ac_status=$?
13492  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13493  test $ac_status = 0; } 2>conftest.err; then
13494	  soname=conftest
13495	  lib=conftest
13496	  libobjs=conftest.$ac_objext
13497	  deplibs=
13498	  wl=$lt_prog_compiler_wl_CXX
13499	  pic_flag=$lt_prog_compiler_pic_CXX
13500	  compiler_flags=-v
13501	  linker_flags=-v
13502	  verstring=
13503	  output_objdir=.
13504	  libname=conftest
13505	  lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
13506	  allow_undefined_flag_CXX=
13507	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
13508  (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
13509  ac_status=$?
13510  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13511  test $ac_status = 0; }
13512	  then
13513	    lt_cv_archive_cmds_need_lc_CXX=no
13514	  else
13515	    lt_cv_archive_cmds_need_lc_CXX=yes
13516	  fi
13517	  allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
13518	else
13519	  cat conftest.err 1>&5
13520	fi
13521	$RM conftest*
13522
13523fi
13524{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
13525$as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
13526      archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
13527      ;;
13528    esac
13529  fi
13530  ;;
13531esac
13532
13533
13534
13535
13536
13537
13538
13539
13540
13541
13542
13543
13544
13545
13546
13547
13548
13549
13550
13551
13552
13553
13554
13555
13556
13557
13558
13559
13560
13561
13562
13563
13564
13565
13566
13567
13568
13569
13570
13571
13572
13573
13574
13575
13576
13577
13578
13579
13580
13581
13582
13583
13584
13585
13586
13587
13588
13589
13590
13591
13592
13593
13594
13595
13596    { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
13597$as_echo_n "checking dynamic linker characteristics... " >&6; }
13598
13599library_names_spec=
13600libname_spec='lib$name'
13601soname_spec=
13602shrext_cmds=".so"
13603postinstall_cmds=
13604postuninstall_cmds=
13605finish_cmds=
13606finish_eval=
13607shlibpath_var=
13608shlibpath_overrides_runpath=unknown
13609version_type=none
13610dynamic_linker="$host_os ld.so"
13611sys_lib_dlsearch_path_spec="/lib /usr/lib"
13612need_lib_prefix=unknown
13613hardcode_into_libs=no
13614
13615# when you set need_version to no, make sure it does not cause -set_version
13616# flags to be left without arguments
13617need_version=unknown
13618
13619case $host_os in
13620aix3*)
13621  version_type=linux
13622  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
13623  shlibpath_var=LIBPATH
13624
13625  # AIX 3 has no versioning support, so we append a major version to the name.
13626  soname_spec='${libname}${release}${shared_ext}$major'
13627  ;;
13628
13629aix[4-9]*)
13630  version_type=linux
13631  need_lib_prefix=no
13632  need_version=no
13633  hardcode_into_libs=yes
13634  if test "$host_cpu" = ia64; then
13635    # AIX 5 supports IA64
13636    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
13637    shlibpath_var=LD_LIBRARY_PATH
13638  else
13639    # With GCC up to 2.95.x, collect2 would create an import file
13640    # for dependence libraries.  The import file would start with
13641    # the line `#! .'.  This would cause the generated library to
13642    # depend on `.', always an invalid library.  This was fixed in
13643    # development snapshots of GCC prior to 3.0.
13644    case $host_os in
13645      aix4 | aix4.[01] | aix4.[01].*)
13646      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
13647	   echo ' yes '
13648	   echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
13649	:
13650      else
13651	can_build_shared=no
13652      fi
13653      ;;
13654    esac
13655    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
13656    # soname into executable. Probably we can add versioning support to
13657    # collect2, so additional links can be useful in future.
13658    if test "$aix_use_runtimelinking" = yes; then
13659      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
13660      # instead of lib<name>.a to let people know that these are not
13661      # typical AIX shared libraries.
13662      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13663    else
13664      # We preserve .a as extension for shared libraries through AIX4.2
13665      # and later when we are not doing run time linking.
13666      library_names_spec='${libname}${release}.a $libname.a'
13667      soname_spec='${libname}${release}${shared_ext}$major'
13668    fi
13669    shlibpath_var=LIBPATH
13670  fi
13671  ;;
13672
13673amigaos*)
13674  case $host_cpu in
13675  powerpc)
13676    # Since July 2007 AmigaOS4 officially supports .so libraries.
13677    # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
13678    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13679    ;;
13680  m68k)
13681    library_names_spec='$libname.ixlibrary $libname.a'
13682    # Create ${libname}_ixlibrary.a entries in /sys/libs.
13683    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'
13684    ;;
13685  esac
13686  ;;
13687
13688beos*)
13689  library_names_spec='${libname}${shared_ext}'
13690  dynamic_linker="$host_os ld.so"
13691  shlibpath_var=LIBRARY_PATH
13692  ;;
13693
13694bsdi[45]*)
13695  version_type=linux
13696  need_version=no
13697  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13698  soname_spec='${libname}${release}${shared_ext}$major'
13699  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
13700  shlibpath_var=LD_LIBRARY_PATH
13701  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
13702  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
13703  # the default ld.so.conf also contains /usr/contrib/lib and
13704  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
13705  # libtool to hard-code these into programs
13706  ;;
13707
13708cygwin* | mingw* | pw32* | cegcc*)
13709  version_type=windows
13710  shrext_cmds=".dll"
13711  need_version=no
13712  need_lib_prefix=no
13713
13714  case $GCC,$host_os in
13715  yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
13716    library_names_spec='$libname.dll.a'
13717    # DLL is installed to $(libdir)/../bin by postinstall_cmds
13718    postinstall_cmds='base_file=`basename \${file}`~
13719      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
13720      dldir=$destdir/`dirname \$dlpath`~
13721      test -d \$dldir || mkdir -p \$dldir~
13722      $install_prog $dir/$dlname \$dldir/$dlname~
13723      chmod a+x \$dldir/$dlname~
13724      if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
13725        eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
13726      fi'
13727    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
13728      dlpath=$dir/\$dldll~
13729       $RM \$dlpath'
13730    shlibpath_overrides_runpath=yes
13731
13732    case $host_os in
13733    cygwin*)
13734      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
13735      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13736
13737      ;;
13738    mingw* | cegcc*)
13739      # MinGW DLLs use traditional 'lib' prefix
13740      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13741      ;;
13742    pw32*)
13743      # pw32 DLLs use 'pw' prefix rather than 'lib'
13744      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13745      ;;
13746    esac
13747    ;;
13748
13749  *)
13750    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
13751    ;;
13752  esac
13753  dynamic_linker='Win32 ld.exe'
13754  # FIXME: first we should search . and the directory the executable is in
13755  shlibpath_var=PATH
13756  ;;
13757
13758darwin* | rhapsody*)
13759  dynamic_linker="$host_os dyld"
13760  version_type=darwin
13761  need_lib_prefix=no
13762  need_version=no
13763  library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
13764  soname_spec='${libname}${release}${major}$shared_ext'
13765  shlibpath_overrides_runpath=yes
13766  shlibpath_var=DYLD_LIBRARY_PATH
13767  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
13768
13769  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
13770  ;;
13771
13772dgux*)
13773  version_type=linux
13774  need_lib_prefix=no
13775  need_version=no
13776  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
13777  soname_spec='${libname}${release}${shared_ext}$major'
13778  shlibpath_var=LD_LIBRARY_PATH
13779  ;;
13780
13781freebsd1*)
13782  dynamic_linker=no
13783  ;;
13784
13785freebsd* | dragonfly*)
13786  # DragonFly does not have aout.  When/if they implement a new
13787  # versioning mechanism, adjust this.
13788  if test -x /usr/bin/objformat; then
13789    objformat=`/usr/bin/objformat`
13790  else
13791    case $host_os in
13792    freebsd[123]*) objformat=aout ;;
13793    *) objformat=elf ;;
13794    esac
13795  fi
13796  version_type=freebsd-$objformat
13797  case $version_type in
13798    freebsd-elf*)
13799      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13800      need_version=no
13801      need_lib_prefix=no
13802      ;;
13803    freebsd-*)
13804      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
13805      need_version=yes
13806      ;;
13807  esac
13808  shlibpath_var=LD_LIBRARY_PATH
13809  case $host_os in
13810  freebsd2*)
13811    shlibpath_overrides_runpath=yes
13812    ;;
13813  freebsd3.[01]* | freebsdelf3.[01]*)
13814    shlibpath_overrides_runpath=yes
13815    hardcode_into_libs=yes
13816    ;;
13817  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
13818  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
13819    shlibpath_overrides_runpath=no
13820    hardcode_into_libs=yes
13821    ;;
13822  *) # from 4.6 on, and DragonFly
13823    shlibpath_overrides_runpath=yes
13824    hardcode_into_libs=yes
13825    ;;
13826  esac
13827  ;;
13828
13829gnu*)
13830  version_type=linux
13831  need_lib_prefix=no
13832  need_version=no
13833  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
13834  soname_spec='${libname}${release}${shared_ext}$major'
13835  shlibpath_var=LD_LIBRARY_PATH
13836  hardcode_into_libs=yes
13837  ;;
13838
13839haiku*)
13840  version_type=linux
13841  need_lib_prefix=no
13842  need_version=no
13843  dynamic_linker="$host_os runtime_loader"
13844  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
13845  soname_spec='${libname}${release}${shared_ext}$major'
13846  shlibpath_var=LIBRARY_PATH
13847  shlibpath_overrides_runpath=yes
13848  sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
13849  hardcode_into_libs=yes
13850  ;;
13851
13852hpux9* | hpux10* | hpux11*)
13853  # Give a soname corresponding to the major version so that dld.sl refuses to
13854  # link against other versions.
13855  version_type=sunos
13856  need_lib_prefix=no
13857  need_version=no
13858  case $host_cpu in
13859  ia64*)
13860    shrext_cmds='.so'
13861    hardcode_into_libs=yes
13862    dynamic_linker="$host_os dld.so"
13863    shlibpath_var=LD_LIBRARY_PATH
13864    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13865    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13866    soname_spec='${libname}${release}${shared_ext}$major'
13867    if test "X$HPUX_IA64_MODE" = X32; then
13868      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
13869    else
13870      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
13871    fi
13872    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13873    ;;
13874  hppa*64*)
13875    shrext_cmds='.sl'
13876    hardcode_into_libs=yes
13877    dynamic_linker="$host_os dld.sl"
13878    shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
13879    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13880    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13881    soname_spec='${libname}${release}${shared_ext}$major'
13882    sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
13883    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13884    ;;
13885  *)
13886    shrext_cmds='.sl'
13887    dynamic_linker="$host_os dld.sl"
13888    shlibpath_var=SHLIB_PATH
13889    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
13890    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13891    soname_spec='${libname}${release}${shared_ext}$major'
13892    ;;
13893  esac
13894  # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
13895  postinstall_cmds='chmod 555 $lib'
13896  # or fails outright, so override atomically:
13897  install_override_mode=555
13898  ;;
13899
13900interix[3-9]*)
13901  version_type=linux
13902  need_lib_prefix=no
13903  need_version=no
13904  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13905  soname_spec='${libname}${release}${shared_ext}$major'
13906  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
13907  shlibpath_var=LD_LIBRARY_PATH
13908  shlibpath_overrides_runpath=no
13909  hardcode_into_libs=yes
13910  ;;
13911
13912irix5* | irix6* | nonstopux*)
13913  case $host_os in
13914    nonstopux*) version_type=nonstopux ;;
13915    *)
13916	if test "$lt_cv_prog_gnu_ld" = yes; then
13917		version_type=linux
13918	else
13919		version_type=irix
13920	fi ;;
13921  esac
13922  need_lib_prefix=no
13923  need_version=no
13924  soname_spec='${libname}${release}${shared_ext}$major'
13925  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
13926  case $host_os in
13927  irix5* | nonstopux*)
13928    libsuff= shlibsuff=
13929    ;;
13930  *)
13931    case $LD in # libtool.m4 will add one of these switches to LD
13932    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
13933      libsuff= shlibsuff= libmagic=32-bit;;
13934    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
13935      libsuff=32 shlibsuff=N32 libmagic=N32;;
13936    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
13937      libsuff=64 shlibsuff=64 libmagic=64-bit;;
13938    *) libsuff= shlibsuff= libmagic=never-match;;
13939    esac
13940    ;;
13941  esac
13942  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
13943  shlibpath_overrides_runpath=no
13944  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
13945  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
13946  hardcode_into_libs=yes
13947  ;;
13948
13949# No shared lib support for Linux oldld, aout, or coff.
13950linux*oldld* | linux*aout* | linux*coff*)
13951  dynamic_linker=no
13952  ;;
13953
13954# This must be Linux ELF.
13955linux* | k*bsd*-gnu | kopensolaris*-gnu)
13956  version_type=linux
13957  need_lib_prefix=no
13958  need_version=no
13959  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13960  soname_spec='${libname}${release}${shared_ext}$major'
13961  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
13962  shlibpath_var=LD_LIBRARY_PATH
13963  shlibpath_overrides_runpath=no
13964
13965  # Some binutils ld are patched to set DT_RUNPATH
13966  if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
13967  $as_echo_n "(cached) " >&6
13968else
13969  lt_cv_shlibpath_overrides_runpath=no
13970    save_LDFLAGS=$LDFLAGS
13971    save_libdir=$libdir
13972    eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
13973	 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
13974    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13975/* end confdefs.h.  */
13976
13977int
13978main ()
13979{
13980
13981  ;
13982  return 0;
13983}
13984_ACEOF
13985if ac_fn_cxx_try_link "$LINENO"; then :
13986  if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
13987  lt_cv_shlibpath_overrides_runpath=yes
13988fi
13989fi
13990rm -f core conftest.err conftest.$ac_objext \
13991    conftest$ac_exeext conftest.$ac_ext
13992    LDFLAGS=$save_LDFLAGS
13993    libdir=$save_libdir
13994
13995fi
13996
13997  shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
13998
13999  # This implies no fast_install, which is unacceptable.
14000  # Some rework will be needed to allow for fast_install
14001  # before this can be enabled.
14002  hardcode_into_libs=yes
14003
14004  # Append ld.so.conf contents to the search path
14005  if test -f /etc/ld.so.conf; then
14006    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' ' '`
14007    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
14008  fi
14009
14010  # We used to test for /lib/ld.so.1 and disable shared libraries on
14011  # powerpc, because MkLinux only supported shared libraries with the
14012  # GNU dynamic linker.  Since this was broken with cross compilers,
14013  # most powerpc-linux boxes support dynamic linking these days and
14014  # people can always --disable-shared, the test was removed, and we
14015  # assume the GNU/Linux dynamic linker is in use.
14016  dynamic_linker='GNU/Linux ld.so'
14017  ;;
14018
14019netbsd*)
14020  version_type=sunos
14021  need_lib_prefix=no
14022  need_version=no
14023  if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
14024    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14025    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14026    dynamic_linker='NetBSD (a.out) ld.so'
14027  else
14028    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14029    soname_spec='${libname}${release}${shared_ext}$major'
14030    dynamic_linker='NetBSD ld.elf_so'
14031  fi
14032  shlibpath_var=LD_LIBRARY_PATH
14033  shlibpath_overrides_runpath=yes
14034  hardcode_into_libs=yes
14035  ;;
14036
14037newsos6)
14038  version_type=linux
14039  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14040  shlibpath_var=LD_LIBRARY_PATH
14041  shlibpath_overrides_runpath=yes
14042  ;;
14043
14044*nto* | *qnx*)
14045  version_type=qnx
14046  need_lib_prefix=no
14047  need_version=no
14048  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14049  soname_spec='${libname}${release}${shared_ext}$major'
14050  shlibpath_var=LD_LIBRARY_PATH
14051  shlibpath_overrides_runpath=no
14052  hardcode_into_libs=yes
14053  dynamic_linker='ldqnx.so'
14054  ;;
14055
14056openbsd*)
14057  version_type=sunos
14058  sys_lib_dlsearch_path_spec="/usr/lib"
14059  need_lib_prefix=no
14060  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
14061  case $host_os in
14062    openbsd3.3 | openbsd3.3.*)	need_version=yes ;;
14063    *)				need_version=no  ;;
14064  esac
14065  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14066  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14067  shlibpath_var=LD_LIBRARY_PATH
14068  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14069    case $host_os in
14070      openbsd2.[89] | openbsd2.[89].*)
14071	shlibpath_overrides_runpath=no
14072	;;
14073      *)
14074	shlibpath_overrides_runpath=yes
14075	;;
14076      esac
14077  else
14078    shlibpath_overrides_runpath=yes
14079  fi
14080  ;;
14081
14082os2*)
14083  libname_spec='$name'
14084  shrext_cmds=".dll"
14085  need_lib_prefix=no
14086  library_names_spec='$libname${shared_ext} $libname.a'
14087  dynamic_linker='OS/2 ld.exe'
14088  shlibpath_var=LIBPATH
14089  ;;
14090
14091osf3* | osf4* | osf5*)
14092  version_type=osf
14093  need_lib_prefix=no
14094  need_version=no
14095  soname_spec='${libname}${release}${shared_ext}$major'
14096  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14097  shlibpath_var=LD_LIBRARY_PATH
14098  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
14099  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
14100  ;;
14101
14102rdos*)
14103  dynamic_linker=no
14104  ;;
14105
14106solaris*)
14107  version_type=linux
14108  need_lib_prefix=no
14109  need_version=no
14110  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14111  soname_spec='${libname}${release}${shared_ext}$major'
14112  shlibpath_var=LD_LIBRARY_PATH
14113  shlibpath_overrides_runpath=yes
14114  hardcode_into_libs=yes
14115  # ldd complains unless libraries are executable
14116  postinstall_cmds='chmod +x $lib'
14117  ;;
14118
14119sunos4*)
14120  version_type=sunos
14121  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14122  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
14123  shlibpath_var=LD_LIBRARY_PATH
14124  shlibpath_overrides_runpath=yes
14125  if test "$with_gnu_ld" = yes; then
14126    need_lib_prefix=no
14127  fi
14128  need_version=yes
14129  ;;
14130
14131sysv4 | sysv4.3*)
14132  version_type=linux
14133  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14134  soname_spec='${libname}${release}${shared_ext}$major'
14135  shlibpath_var=LD_LIBRARY_PATH
14136  case $host_vendor in
14137    sni)
14138      shlibpath_overrides_runpath=no
14139      need_lib_prefix=no
14140      runpath_var=LD_RUN_PATH
14141      ;;
14142    siemens)
14143      need_lib_prefix=no
14144      ;;
14145    motorola)
14146      need_lib_prefix=no
14147      need_version=no
14148      shlibpath_overrides_runpath=no
14149      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
14150      ;;
14151  esac
14152  ;;
14153
14154sysv4*MP*)
14155  if test -d /usr/nec ;then
14156    version_type=linux
14157    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
14158    soname_spec='$libname${shared_ext}.$major'
14159    shlibpath_var=LD_LIBRARY_PATH
14160  fi
14161  ;;
14162
14163sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
14164  version_type=freebsd-elf
14165  need_lib_prefix=no
14166  need_version=no
14167  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14168  soname_spec='${libname}${release}${shared_ext}$major'
14169  shlibpath_var=LD_LIBRARY_PATH
14170  shlibpath_overrides_runpath=yes
14171  hardcode_into_libs=yes
14172  if test "$with_gnu_ld" = yes; then
14173    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
14174  else
14175    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
14176    case $host_os in
14177      sco3.2v5*)
14178        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
14179	;;
14180    esac
14181  fi
14182  sys_lib_dlsearch_path_spec='/usr/lib'
14183  ;;
14184
14185tpf*)
14186  # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
14187  version_type=linux
14188  need_lib_prefix=no
14189  need_version=no
14190  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14191  shlibpath_var=LD_LIBRARY_PATH
14192  shlibpath_overrides_runpath=no
14193  hardcode_into_libs=yes
14194  ;;
14195
14196uts4*)
14197  version_type=linux
14198  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14199  soname_spec='${libname}${release}${shared_ext}$major'
14200  shlibpath_var=LD_LIBRARY_PATH
14201  ;;
14202
14203*)
14204  dynamic_linker=no
14205  ;;
14206esac
14207{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
14208$as_echo "$dynamic_linker" >&6; }
14209test "$dynamic_linker" = no && can_build_shared=no
14210
14211variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
14212if test "$GCC" = yes; then
14213  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
14214fi
14215
14216if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
14217  sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
14218fi
14219if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
14220  sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
14221fi
14222
14223
14224
14225
14226
14227
14228
14229
14230
14231
14232
14233
14234
14235
14236
14237
14238
14239
14240
14241
14242
14243
14244
14245
14246
14247
14248
14249
14250
14251
14252
14253
14254
14255
14256
14257
14258
14259
14260    { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
14261$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
14262hardcode_action_CXX=
14263if test -n "$hardcode_libdir_flag_spec_CXX" ||
14264   test -n "$runpath_var_CXX" ||
14265   test "X$hardcode_automatic_CXX" = "Xyes" ; then
14266
14267  # We can hardcode non-existent directories.
14268  if test "$hardcode_direct_CXX" != no &&
14269     # If the only mechanism to avoid hardcoding is shlibpath_var, we
14270     # have to relink, otherwise we might link with an installed library
14271     # when we should be linking with a yet-to-be-installed one
14272     ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
14273     test "$hardcode_minus_L_CXX" != no; then
14274    # Linking always hardcodes the temporary library directory.
14275    hardcode_action_CXX=relink
14276  else
14277    # We can link without hardcoding, and we can hardcode nonexisting dirs.
14278    hardcode_action_CXX=immediate
14279  fi
14280else
14281  # We cannot hardcode anything, or else we can only hardcode existing
14282  # directories.
14283  hardcode_action_CXX=unsupported
14284fi
14285{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
14286$as_echo "$hardcode_action_CXX" >&6; }
14287
14288if test "$hardcode_action_CXX" = relink ||
14289   test "$inherit_rpath_CXX" = yes; then
14290  # Fast installation is not supported
14291  enable_fast_install=no
14292elif test "$shlibpath_overrides_runpath" = yes ||
14293     test "$enable_shared" = no; then
14294  # Fast installation is not necessary
14295  enable_fast_install=needless
14296fi
14297
14298
14299
14300
14301
14302
14303
14304  fi # test -n "$compiler"
14305
14306  CC=$lt_save_CC
14307  LDCXX=$LD
14308  LD=$lt_save_LD
14309  GCC=$lt_save_GCC
14310  with_gnu_ld=$lt_save_with_gnu_ld
14311  lt_cv_path_LDCXX=$lt_cv_path_LD
14312  lt_cv_path_LD=$lt_save_path_LD
14313  lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
14314  lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
14315fi # test "$_lt_caught_CXX_error" != yes
14316
14317ac_ext=c
14318ac_cpp='$CPP $CPPFLAGS'
14319ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14320ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14321ac_compiler_gnu=$ac_cv_c_compiler_gnu
14322
14323
14324
14325
14326
14327
14328
14329
14330
14331
14332
14333
14334
14335        ac_config_commands="$ac_config_commands libtool"
14336
14337
14338
14339
14340# Only expand once:
14341
14342
14343{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
14344$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
14345set x ${MAKE-make}
14346ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
14347if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
14348  $as_echo_n "(cached) " >&6
14349else
14350  cat >conftest.make <<\_ACEOF
14351SHELL = /bin/sh
14352all:
14353	@echo '@@@%%%=$(MAKE)=@@@%%%'
14354_ACEOF
14355# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
14356case `${MAKE-make} -f conftest.make 2>/dev/null` in
14357  *@@@%%%=?*=@@@%%%*)
14358    eval ac_cv_prog_make_${ac_make}_set=yes;;
14359  *)
14360    eval ac_cv_prog_make_${ac_make}_set=no;;
14361esac
14362rm -f conftest.make
14363fi
14364if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
14365  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14366$as_echo "yes" >&6; }
14367  SET_MAKE=
14368else
14369  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14370$as_echo "no" >&6; }
14371  SET_MAKE="MAKE=${MAKE-make}"
14372fi
14373
14374
14375
14376{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
14377$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
14378    # Check whether --enable-maintainer-mode was given.
14379if test "${enable_maintainer_mode+set}" = set; then :
14380  enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
14381else
14382  USE_MAINTAINER_MODE=no
14383fi
14384
14385  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
14386$as_echo "$USE_MAINTAINER_MODE" >&6; }
14387   if test $USE_MAINTAINER_MODE = yes; then
14388  MAINTAINER_MODE_TRUE=
14389  MAINTAINER_MODE_FALSE='#'
14390else
14391  MAINTAINER_MODE_TRUE='#'
14392  MAINTAINER_MODE_FALSE=
14393fi
14394
14395  MAINT=$MAINTAINER_MODE_TRUE
14396
14397
14398
14399CONFIGURE_STYLE=gnu
14400
14401# Checks for libraries.
14402
14403# Checks for header files.
14404{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
14405$as_echo_n "checking for ANSI C header files... " >&6; }
14406if test "${ac_cv_header_stdc+set}" = set; then :
14407  $as_echo_n "(cached) " >&6
14408else
14409  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14410/* end confdefs.h.  */
14411#include <stdlib.h>
14412#include <stdarg.h>
14413#include <string.h>
14414#include <float.h>
14415
14416int
14417main ()
14418{
14419
14420  ;
14421  return 0;
14422}
14423_ACEOF
14424if ac_fn_c_try_compile "$LINENO"; then :
14425  ac_cv_header_stdc=yes
14426else
14427  ac_cv_header_stdc=no
14428fi
14429rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14430
14431if test $ac_cv_header_stdc = yes; then
14432  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
14433  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14434/* end confdefs.h.  */
14435#include <string.h>
14436
14437_ACEOF
14438if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14439  $EGREP "memchr" >/dev/null 2>&1; then :
14440
14441else
14442  ac_cv_header_stdc=no
14443fi
14444rm -f conftest*
14445
14446fi
14447
14448if test $ac_cv_header_stdc = yes; then
14449  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
14450  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14451/* end confdefs.h.  */
14452#include <stdlib.h>
14453
14454_ACEOF
14455if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14456  $EGREP "free" >/dev/null 2>&1; then :
14457
14458else
14459  ac_cv_header_stdc=no
14460fi
14461rm -f conftest*
14462
14463fi
14464
14465if test $ac_cv_header_stdc = yes; then
14466  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
14467  if test "$cross_compiling" = yes; then :
14468  :
14469else
14470  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14471/* end confdefs.h.  */
14472#include <ctype.h>
14473#include <stdlib.h>
14474#if ((' ' & 0x0FF) == 0x020)
14475# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
14476# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
14477#else
14478# define ISLOWER(c) \
14479		   (('a' <= (c) && (c) <= 'i') \
14480		     || ('j' <= (c) && (c) <= 'r') \
14481		     || ('s' <= (c) && (c) <= 'z'))
14482# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
14483#endif
14484
14485#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
14486int
14487main ()
14488{
14489  int i;
14490  for (i = 0; i < 256; i++)
14491    if (XOR (islower (i), ISLOWER (i))
14492	|| toupper (i) != TOUPPER (i))
14493      return 2;
14494  return 0;
14495}
14496_ACEOF
14497if ac_fn_c_try_run "$LINENO"; then :
14498
14499else
14500  ac_cv_header_stdc=no
14501fi
14502rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14503  conftest.$ac_objext conftest.beam conftest.$ac_ext
14504fi
14505
14506fi
14507fi
14508{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
14509$as_echo "$ac_cv_header_stdc" >&6; }
14510if test $ac_cv_header_stdc = yes; then
14511
14512$as_echo "#define STDC_HEADERS 1" >>confdefs.h
14513
14514fi
14515
14516for ac_header in fcntl.h memory.h stdlib.h string.h sys/ioctl.h sys/time.h unistd.h
14517do :
14518  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
14519ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
14520eval as_val=\$$as_ac_Header
14521   if test "x$as_val" = x""yes; then :
14522  cat >>confdefs.h <<_ACEOF
14523#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
14524_ACEOF
14525
14526fi
14527
14528done
14529
14530
14531# Checks for typedefs, structures, and compiler characteristics.
14532{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
14533$as_echo_n "checking for an ANSI C-conforming const... " >&6; }
14534if test "${ac_cv_c_const+set}" = set; then :
14535  $as_echo_n "(cached) " >&6
14536else
14537  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14538/* end confdefs.h.  */
14539
14540int
14541main ()
14542{
14543/* FIXME: Include the comments suggested by Paul. */
14544#ifndef __cplusplus
14545  /* Ultrix mips cc rejects this.  */
14546  typedef int charset[2];
14547  const charset cs;
14548  /* SunOS 4.1.1 cc rejects this.  */
14549  char const *const *pcpcc;
14550  char **ppc;
14551  /* NEC SVR4.0.2 mips cc rejects this.  */
14552  struct point {int x, y;};
14553  static struct point const zero = {0,0};
14554  /* AIX XL C 1.02.0.0 rejects this.
14555     It does not let you subtract one const X* pointer from another in
14556     an arm of an if-expression whose if-part is not a constant
14557     expression */
14558  const char *g = "string";
14559  pcpcc = &g + (g ? g-g : 0);
14560  /* HPUX 7.0 cc rejects these. */
14561  ++pcpcc;
14562  ppc = (char**) pcpcc;
14563  pcpcc = (char const *const *) ppc;
14564  { /* SCO 3.2v4 cc rejects this.  */
14565    char *t;
14566    char const *s = 0 ? (char *) 0 : (char const *) 0;
14567
14568    *t++ = 0;
14569    if (s) return 0;
14570  }
14571  { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
14572    int x[] = {25, 17};
14573    const int *foo = &x[0];
14574    ++foo;
14575  }
14576  { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
14577    typedef const int *iptr;
14578    iptr p = 0;
14579    ++p;
14580  }
14581  { /* AIX XL C 1.02.0.0 rejects this saying
14582       "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
14583    struct s { int j; const int *ap[3]; };
14584    struct s *b; b->j = 5;
14585  }
14586  { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
14587    const int foo = 10;
14588    if (!foo) return 0;
14589  }
14590  return !cs[0] && !zero.x;
14591#endif
14592
14593  ;
14594  return 0;
14595}
14596_ACEOF
14597if ac_fn_c_try_compile "$LINENO"; then :
14598  ac_cv_c_const=yes
14599else
14600  ac_cv_c_const=no
14601fi
14602rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14603fi
14604{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
14605$as_echo "$ac_cv_c_const" >&6; }
14606if test $ac_cv_c_const = no; then
14607
14608$as_echo "#define const /**/" >>confdefs.h
14609
14610fi
14611
14612ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
14613if test "x$ac_cv_type_size_t" = x""yes; then :
14614
14615else
14616
14617cat >>confdefs.h <<_ACEOF
14618#define size_t unsigned int
14619_ACEOF
14620
14621fi
14622
14623{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
14624$as_echo_n "checking for inline... " >&6; }
14625if test "${ac_cv_c_inline+set}" = set; then :
14626  $as_echo_n "(cached) " >&6
14627else
14628  ac_cv_c_inline=no
14629for ac_kw in inline __inline__ __inline; do
14630  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14631/* end confdefs.h.  */
14632#ifndef __cplusplus
14633typedef int foo_t;
14634static $ac_kw foo_t static_foo () {return 0; }
14635$ac_kw foo_t foo () {return 0; }
14636#endif
14637
14638_ACEOF
14639if ac_fn_c_try_compile "$LINENO"; then :
14640  ac_cv_c_inline=$ac_kw
14641fi
14642rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14643  test "$ac_cv_c_inline" != no && break
14644done
14645
14646fi
14647{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
14648$as_echo "$ac_cv_c_inline" >&6; }
14649
14650case $ac_cv_c_inline in
14651  inline | yes) ;;
14652  *)
14653    case $ac_cv_c_inline in
14654      no) ac_val=;;
14655      *) ac_val=$ac_cv_c_inline;;
14656    esac
14657    cat >>confdefs.h <<_ACEOF
14658#ifndef __cplusplus
14659#define inline $ac_val
14660#endif
14661_ACEOF
14662    ;;
14663esac
14664
14665
14666# Checks for library functions.
14667{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working memcmp" >&5
14668$as_echo_n "checking for working memcmp... " >&6; }
14669if test "${ac_cv_func_memcmp_working+set}" = set; then :
14670  $as_echo_n "(cached) " >&6
14671else
14672  if test "$cross_compiling" = yes; then :
14673  ac_cv_func_memcmp_working=no
14674else
14675  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14676/* end confdefs.h.  */
14677$ac_includes_default
14678int
14679main ()
14680{
14681
14682  /* Some versions of memcmp are not 8-bit clean.  */
14683  char c0 = '\100', c1 = '\200', c2 = '\201';
14684  if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
14685    return 1;
14686
14687  /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
14688     or more and with at least one buffer not starting on a 4-byte boundary.
14689     William Lewis provided this test program.   */
14690  {
14691    char foo[21];
14692    char bar[21];
14693    int i;
14694    for (i = 0; i < 4; i++)
14695      {
14696	char *a = foo + i;
14697	char *b = bar + i;
14698	strcpy (a, "--------01111111");
14699	strcpy (b, "--------10000000");
14700	if (memcmp (a, b, 16) >= 0)
14701	  return 1;
14702      }
14703    return 0;
14704  }
14705
14706  ;
14707  return 0;
14708}
14709_ACEOF
14710if ac_fn_c_try_run "$LINENO"; then :
14711  ac_cv_func_memcmp_working=yes
14712else
14713  ac_cv_func_memcmp_working=no
14714fi
14715rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14716  conftest.$ac_objext conftest.beam conftest.$ac_ext
14717fi
14718
14719fi
14720{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_memcmp_working" >&5
14721$as_echo "$ac_cv_func_memcmp_working" >&6; }
14722test $ac_cv_func_memcmp_working = no && case " $LIBOBJS " in
14723  *" memcmp.$ac_objext "* ) ;;
14724  *) LIBOBJS="$LIBOBJS memcmp.$ac_objext"
14725 ;;
14726esac
14727
14728
14729{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether lstat correctly handles trailing slash" >&5
14730$as_echo_n "checking whether lstat correctly handles trailing slash... " >&6; }
14731if test "${ac_cv_func_lstat_dereferences_slashed_symlink+set}" = set; then :
14732  $as_echo_n "(cached) " >&6
14733else
14734  rm -f conftest.sym conftest.file
14735echo >conftest.file
14736if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then
14737  if test "$cross_compiling" = yes; then :
14738  ac_cv_func_lstat_dereferences_slashed_symlink=no
14739else
14740  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14741/* end confdefs.h.  */
14742$ac_includes_default
14743int
14744main ()
14745{
14746struct stat sbuf;
14747     /* Linux will dereference the symlink and fail, as required by POSIX.
14748	That is better in the sense that it means we will not
14749	have to compile and use the lstat wrapper.  */
14750     return lstat ("conftest.sym/", &sbuf) == 0;
14751  ;
14752  return 0;
14753}
14754_ACEOF
14755if ac_fn_c_try_run "$LINENO"; then :
14756  ac_cv_func_lstat_dereferences_slashed_symlink=yes
14757else
14758  ac_cv_func_lstat_dereferences_slashed_symlink=no
14759fi
14760rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14761  conftest.$ac_objext conftest.beam conftest.$ac_ext
14762fi
14763
14764else
14765  # If the `ln -s' command failed, then we probably don't even
14766  # have an lstat function.
14767  ac_cv_func_lstat_dereferences_slashed_symlink=no
14768fi
14769rm -f conftest.sym conftest.file
14770
14771fi
14772{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_lstat_dereferences_slashed_symlink" >&5
14773$as_echo "$ac_cv_func_lstat_dereferences_slashed_symlink" >&6; }
14774
14775test $ac_cv_func_lstat_dereferences_slashed_symlink = yes &&
14776
14777cat >>confdefs.h <<_ACEOF
14778#define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
14779_ACEOF
14780
14781
14782if test "x$ac_cv_func_lstat_dereferences_slashed_symlink" = xno; then
14783  case " $LIBOBJS " in
14784  *" lstat.$ac_objext "* ) ;;
14785  *) LIBOBJS="$LIBOBJS lstat.$ac_objext"
14786 ;;
14787esac
14788
14789fi
14790
14791{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat accepts an empty string" >&5
14792$as_echo_n "checking whether stat accepts an empty string... " >&6; }
14793if test "${ac_cv_func_stat_empty_string_bug+set}" = set; then :
14794  $as_echo_n "(cached) " >&6
14795else
14796  if test "$cross_compiling" = yes; then :
14797  ac_cv_func_stat_empty_string_bug=yes
14798else
14799  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14800/* end confdefs.h.  */
14801$ac_includes_default
14802int
14803main ()
14804{
14805struct stat sbuf;
14806  return stat ("", &sbuf) == 0;
14807  ;
14808  return 0;
14809}
14810_ACEOF
14811if ac_fn_c_try_run "$LINENO"; then :
14812  ac_cv_func_stat_empty_string_bug=no
14813else
14814  ac_cv_func_stat_empty_string_bug=yes
14815fi
14816rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14817  conftest.$ac_objext conftest.beam conftest.$ac_ext
14818fi
14819
14820fi
14821{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_stat_empty_string_bug" >&5
14822$as_echo "$ac_cv_func_stat_empty_string_bug" >&6; }
14823if test $ac_cv_func_stat_empty_string_bug = yes; then
14824  case " $LIBOBJS " in
14825  *" stat.$ac_objext "* ) ;;
14826  *) LIBOBJS="$LIBOBJS stat.$ac_objext"
14827 ;;
14828esac
14829
14830
14831cat >>confdefs.h <<_ACEOF
14832#define HAVE_STAT_EMPTY_STRING_BUG 1
14833_ACEOF
14834
14835fi
14836
14837#AC_CHECK_FUNCS([ftruncate memmove memset strrchr strstr])
14838
14839# Checks for whether the architecture is in big endian or not.
14840# will define WORDS_BIGENDIAN if the arch is in big endian.
14841 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
14842$as_echo_n "checking whether byte ordering is bigendian... " >&6; }
14843if test "${ac_cv_c_bigendian+set}" = set; then :
14844  $as_echo_n "(cached) " >&6
14845else
14846  ac_cv_c_bigendian=unknown
14847    # See if we're dealing with a universal compiler.
14848    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14849/* end confdefs.h.  */
14850#ifndef __APPLE_CC__
14851	       not a universal capable compiler
14852	     #endif
14853	     typedef int dummy;
14854
14855_ACEOF
14856if ac_fn_c_try_compile "$LINENO"; then :
14857
14858	# Check for potential -arch flags.  It is not universal unless
14859	# there are at least two -arch flags with different values.
14860	ac_arch=
14861	ac_prev=
14862	for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
14863	 if test -n "$ac_prev"; then
14864	   case $ac_word in
14865	     i?86 | x86_64 | ppc | ppc64)
14866	       if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
14867		 ac_arch=$ac_word
14868	       else
14869		 ac_cv_c_bigendian=universal
14870		 break
14871	       fi
14872	       ;;
14873	   esac
14874	   ac_prev=
14875	 elif test "x$ac_word" = "x-arch"; then
14876	   ac_prev=arch
14877	 fi
14878       done
14879fi
14880rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14881    if test $ac_cv_c_bigendian = unknown; then
14882      # See if sys/param.h defines the BYTE_ORDER macro.
14883      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14884/* end confdefs.h.  */
14885#include <sys/types.h>
14886	     #include <sys/param.h>
14887
14888int
14889main ()
14890{
14891#if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
14892		     && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
14893		     && LITTLE_ENDIAN)
14894	      bogus endian macros
14895	     #endif
14896
14897  ;
14898  return 0;
14899}
14900_ACEOF
14901if ac_fn_c_try_compile "$LINENO"; then :
14902  # It does; now see whether it defined to BIG_ENDIAN or not.
14903	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14904/* end confdefs.h.  */
14905#include <sys/types.h>
14906		#include <sys/param.h>
14907
14908int
14909main ()
14910{
14911#if BYTE_ORDER != BIG_ENDIAN
14912		 not big endian
14913		#endif
14914
14915  ;
14916  return 0;
14917}
14918_ACEOF
14919if ac_fn_c_try_compile "$LINENO"; then :
14920  ac_cv_c_bigendian=yes
14921else
14922  ac_cv_c_bigendian=no
14923fi
14924rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14925fi
14926rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14927    fi
14928    if test $ac_cv_c_bigendian = unknown; then
14929      # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
14930      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14931/* end confdefs.h.  */
14932#include <limits.h>
14933
14934int
14935main ()
14936{
14937#if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
14938	      bogus endian macros
14939	     #endif
14940
14941  ;
14942  return 0;
14943}
14944_ACEOF
14945if ac_fn_c_try_compile "$LINENO"; then :
14946  # It does; now see whether it defined to _BIG_ENDIAN or not.
14947	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14948/* end confdefs.h.  */
14949#include <limits.h>
14950
14951int
14952main ()
14953{
14954#ifndef _BIG_ENDIAN
14955		 not big endian
14956		#endif
14957
14958  ;
14959  return 0;
14960}
14961_ACEOF
14962if ac_fn_c_try_compile "$LINENO"; then :
14963  ac_cv_c_bigendian=yes
14964else
14965  ac_cv_c_bigendian=no
14966fi
14967rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14968fi
14969rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14970    fi
14971    if test $ac_cv_c_bigendian = unknown; then
14972      # Compile a test program.
14973      if test "$cross_compiling" = yes; then :
14974  # Try to guess by grepping values from an object file.
14975	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14976/* end confdefs.h.  */
14977short int ascii_mm[] =
14978		  { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
14979		short int ascii_ii[] =
14980		  { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
14981		int use_ascii (int i) {
14982		  return ascii_mm[i] + ascii_ii[i];
14983		}
14984		short int ebcdic_ii[] =
14985		  { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
14986		short int ebcdic_mm[] =
14987		  { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
14988		int use_ebcdic (int i) {
14989		  return ebcdic_mm[i] + ebcdic_ii[i];
14990		}
14991		extern int foo;
14992
14993int
14994main ()
14995{
14996return use_ascii (foo) == use_ebcdic (foo);
14997  ;
14998  return 0;
14999}
15000_ACEOF
15001if ac_fn_c_try_compile "$LINENO"; then :
15002  if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
15003	      ac_cv_c_bigendian=yes
15004	    fi
15005	    if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
15006	      if test "$ac_cv_c_bigendian" = unknown; then
15007		ac_cv_c_bigendian=no
15008	      else
15009		# finding both strings is unlikely to happen, but who knows?
15010		ac_cv_c_bigendian=unknown
15011	      fi
15012	    fi
15013fi
15014rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15015else
15016  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15017/* end confdefs.h.  */
15018$ac_includes_default
15019int
15020main ()
15021{
15022
15023	     /* Are we little or big endian?  From Harbison&Steele.  */
15024	     union
15025	     {
15026	       long int l;
15027	       char c[sizeof (long int)];
15028	     } u;
15029	     u.l = 1;
15030	     return u.c[sizeof (long int) - 1] == 1;
15031
15032  ;
15033  return 0;
15034}
15035_ACEOF
15036if ac_fn_c_try_run "$LINENO"; then :
15037  ac_cv_c_bigendian=no
15038else
15039  ac_cv_c_bigendian=yes
15040fi
15041rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15042  conftest.$ac_objext conftest.beam conftest.$ac_ext
15043fi
15044
15045    fi
15046fi
15047{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
15048$as_echo "$ac_cv_c_bigendian" >&6; }
15049 case $ac_cv_c_bigendian in #(
15050   yes)
15051     $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
15052;; #(
15053   no)
15054      ;; #(
15055   universal)
15056
15057$as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
15058
15059     ;; #(
15060   *)
15061     as_fn_error "unknown endianness
15062 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
15063 esac
15064
15065
15066for ac_func in wcscasecmp
15067do :
15068  ac_fn_c_check_func "$LINENO" "wcscasecmp" "ac_cv_func_wcscasecmp"
15069if test "x$ac_cv_func_wcscasecmp" = x""yes; then :
15070  cat >>confdefs.h <<_ACEOF
15071#define HAVE_WCSCASECMP 1
15072_ACEOF
15073
15074fi
15075done
15076
15077
15078# AC_SEARCH_LIBS (nanosleep, [rt,posix4])
15079# copied from videolan
15080ac_fn_c_check_func "$LINENO" "nanosleep" "ac_cv_func_nanosleep"
15081if test "x$ac_cv_func_nanosleep" = x""yes; then :
15082
15083else
15084
15085  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nanosleep in -lrt" >&5
15086$as_echo_n "checking for nanosleep in -lrt... " >&6; }
15087if test "${ac_cv_lib_rt_nanosleep+set}" = set; then :
15088  $as_echo_n "(cached) " >&6
15089else
15090  ac_check_lib_save_LIBS=$LIBS
15091LIBS="-lrt  $LIBS"
15092cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15093/* end confdefs.h.  */
15094
15095/* Override any GCC internal prototype to avoid an error.
15096   Use char because int might match the return type of a GCC
15097   builtin and then its argument prototype would still apply.  */
15098#ifdef __cplusplus
15099extern "C"
15100#endif
15101char nanosleep ();
15102int
15103main ()
15104{
15105return nanosleep ();
15106  ;
15107  return 0;
15108}
15109_ACEOF
15110if ac_fn_c_try_link "$LINENO"; then :
15111  ac_cv_lib_rt_nanosleep=yes
15112else
15113  ac_cv_lib_rt_nanosleep=no
15114fi
15115rm -f core conftest.err conftest.$ac_objext \
15116    conftest$ac_exeext conftest.$ac_ext
15117LIBS=$ac_check_lib_save_LIBS
15118fi
15119{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_nanosleep" >&5
15120$as_echo "$ac_cv_lib_rt_nanosleep" >&6; }
15121if test "x$ac_cv_lib_rt_nanosleep" = x""yes; then :
15122  LIBS="${LIBS} -lrt"
15123else
15124
15125    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nanosleep in -lposix4" >&5
15126$as_echo_n "checking for nanosleep in -lposix4... " >&6; }
15127if test "${ac_cv_lib_posix4_nanosleep+set}" = set; then :
15128  $as_echo_n "(cached) " >&6
15129else
15130  ac_check_lib_save_LIBS=$LIBS
15131LIBS="-lposix4  $LIBS"
15132cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15133/* end confdefs.h.  */
15134
15135/* Override any GCC internal prototype to avoid an error.
15136   Use char because int might match the return type of a GCC
15137   builtin and then its argument prototype would still apply.  */
15138#ifdef __cplusplus
15139extern "C"
15140#endif
15141char nanosleep ();
15142int
15143main ()
15144{
15145return nanosleep ();
15146  ;
15147  return 0;
15148}
15149_ACEOF
15150if ac_fn_c_try_link "$LINENO"; then :
15151  ac_cv_lib_posix4_nanosleep=yes
15152else
15153  ac_cv_lib_posix4_nanosleep=no
15154fi
15155rm -f core conftest.err conftest.$ac_objext \
15156    conftest$ac_exeext conftest.$ac_ext
15157LIBS=$ac_check_lib_save_LIBS
15158fi
15159{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix4_nanosleep" >&5
15160$as_echo "$ac_cv_lib_posix4_nanosleep" >&6; }
15161if test "x$ac_cv_lib_posix4_nanosleep" = x""yes; then :
15162  LIBS="${LIBS} -lposix4"
15163fi
15164
15165
15166fi
15167
15168
15169fi
15170
15171
15172{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for assembly enabled" >&5
15173$as_echo_n "checking for assembly enabled... " >&6; }
15174# Check whether --enable-assembly was given.
15175if test "${enable_assembly+set}" = set; then :
15176  enableval=$enable_assembly; assembly="$enableval"
15177else
15178  assembly="yes"
15179fi
15180
15181if test "$assembly" = "yes"; then
15182  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15183$as_echo "yes" >&6; }
15184else
15185  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15186$as_echo "no" >&6; }
15187fi
15188
15189 if test "$assembly" = "yes"; then
15190  ENABLE_ASSEMBLY_TRUE=
15191  ENABLE_ASSEMBLY_FALSE='#'
15192else
15193  ENABLE_ASSEMBLY_TRUE='#'
15194  ENABLE_ASSEMBLY_FALSE=
15195fi
15196
15197
15198if test "$assembly" = "yes"; then
15199YASM=
15200# Extract the first word of "yasm", so it can be a program name with args.
15201set dummy yasm; ac_word=$2
15202{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15203$as_echo_n "checking for $ac_word... " >&6; }
15204if test "${ac_cv_path_YASM+set}" = set; then :
15205  $as_echo_n "(cached) " >&6
15206else
15207  case $YASM in
15208  [\\/]* | ?:[\\/]*)
15209  ac_cv_path_YASM="$YASM" # Let the user override the test with a path.
15210  ;;
15211  *)
15212  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15213for as_dir in $PATH
15214do
15215  IFS=$as_save_IFS
15216  test -z "$as_dir" && as_dir=.
15217    for ac_exec_ext in '' $ac_executable_extensions; do
15218  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
15219    ac_cv_path_YASM="$as_dir/$ac_word$ac_exec_ext"
15220    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15221    break 2
15222  fi
15223done
15224  done
15225IFS=$as_save_IFS
15226
15227  test -z "$ac_cv_path_YASM" && ac_cv_path_YASM=""not found""
15228  ;;
15229esac
15230fi
15231YASM=$ac_cv_path_YASM
15232if test -n "$YASM"; then
15233  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YASM" >&5
15234$as_echo "$YASM" >&6; }
15235else
15236  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15237$as_echo "no" >&6; }
15238fi
15239
15240
15241fi
15242
15243{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for some Win32 platform" >&5
15244$as_echo_n "checking for some Win32 platform... " >&6; }
15245case "$host" in
15246  *-*-mingw*|*-*-cygwin*)
15247    os_win=yes
15248    ;;
15249  *)
15250    os_win=no
15251    ;;
15252esac
15253{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $os_win" >&5
15254$as_echo "$os_win" >&6; }
15255
15256if test "$os_win" != "yes"; then
15257
15258$as_echo "#define BUILD_CROSS_PLATFORM /**/" >>confdefs.h
15259
15260fi
15261
15262 if test "$os_win" = "yes"; then
15263  OS_WIN_TRUE=
15264  OS_WIN_FALSE='#'
15265else
15266  OS_WIN_TRUE='#'
15267  OS_WIN_FALSE=
15268fi
15269
15270
15271case "$host_os" in
15272  *bsd*|linux*|beos|irix*|solaris*)
15273    YASM_FORMAT="-f elf"
15274    ;;
15275  [cC][yY][gG][wW][iI][nN]*|mingw32*|mks*)
15276    YASM_FORMAT="-f win32"
15277    ;;
15278esac
15279
15280case "$host" in
15281  i386-*-* | i486-*-* | i586-*-* | i686-*-* | i86pc-*-*)
15282    arch_type=X86
15283    YASM_ARCH="-m x86"
15284
15285
15286$as_echo "#define ARCH_X86 /**/" >>confdefs.h
15287
15288    ;;
15289  x86_64-*-*)
15290    arch_type=X86_64
15291    YASM_ARCH="-m amd64"
15292
15293
15294$as_echo "#define ARCH_X86_64 /**/" >>confdefs.h
15295
15296    ;;
15297  powerpc-*-* )
15298    arch_type=PowerPC
15299
15300
15301$as_echo "#define ARCH_PPC /**/" >>confdefs.h
15302
15303    ;;
15304  sparc-*-* )
15305    arch_type=SPARC
15306
15307
15308$as_echo "#define ARCH_SPARC /**/" >>confdefs.h
15309
15310    ;;
15311  *)
15312    arch_type=other
15313    ;;
15314esac
15315
15316 if test "x$YASM" != "x"; then
15317  HAS_YASM_TRUE=
15318  HAS_YASM_FALSE='#'
15319else
15320  HAS_YASM_TRUE='#'
15321  HAS_YASM_FALSE=
15322fi
15323
15324
15325 if test "$arch_type" = "X86"; then
15326  ARCH_X86_TRUE=
15327  ARCH_X86_FALSE='#'
15328else
15329  ARCH_X86_TRUE='#'
15330  ARCH_X86_FALSE=
15331fi
15332
15333 if test "$arch_type" = "X86_64"; then
15334  ARCH_X86_64_TRUE=
15335  ARCH_X86_64_FALSE='#'
15336else
15337  ARCH_X86_64_TRUE='#'
15338  ARCH_X86_64_FALSE=
15339fi
15340
15341 if test "$arch_type" = "SPARC"; then
15342  ARCH_SPARC_TRUE=
15343  ARCH_SPARC_FALSE='#'
15344else
15345  ARCH_SPARC_TRUE='#'
15346  ARCH_SPARC_FALSE=
15347fi
15348
15349 if test "$arch_type" = "PowerPC"; then
15350  ARCH_PPC_TRUE=
15351  ARCH_PPC_FALSE='#'
15352else
15353  ARCH_PPC_TRUE='#'
15354  ARCH_PPC_FALSE=
15355fi
15356
15357
15358
15359if test "x$YASM" != "x"; then
15360  { $as_echo "$as_me:${as_lineno-$LINENO}: result: \"enable_assembly = yes\"" >&5
15361$as_echo "\"enable_assembly = yes\"" >&6; }
15362
15363$as_echo "#define ENABLE_ASSEMBLY /**/" >>confdefs.h
15364
15365else
15366  { $as_echo "$as_me:${as_lineno-$LINENO}: result: \"enable_assembly = no\"" >&5
15367$as_echo "\"enable_assembly = no\"" >&6; }
15368  assembly=no;
15369fi
15370
15371
15372
15373
15374
15375# The cast to long int works around a bug in the HP C Compiler
15376# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15377# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15378# This bug is HP SR number 8606223364.
15379{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int *" >&5
15380$as_echo_n "checking size of int *... " >&6; }
15381if test "${ac_cv_sizeof_int_p+set}" = set; then :
15382  $as_echo_n "(cached) " >&6
15383else
15384  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int *))" "ac_cv_sizeof_int_p"        "$ac_includes_default"; then :
15385
15386else
15387  if test "$ac_cv_type_int_p" = yes; then
15388     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
15389$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
15390{ as_fn_set_status 77
15391as_fn_error "cannot compute sizeof (int *)
15392See \`config.log' for more details." "$LINENO" 5; }; }
15393   else
15394     ac_cv_sizeof_int_p=0
15395   fi
15396fi
15397
15398fi
15399{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int_p" >&5
15400$as_echo "$ac_cv_sizeof_int_p" >&6; }
15401
15402
15403
15404cat >>confdefs.h <<_ACEOF
15405#define SIZEOF_INT_P $ac_cv_sizeof_int_p
15406_ACEOF
15407
15408
15409case "$ac_cv_sizeof_int_p" in
15410     8)
15411
15412$as_echo "#define IS_64BIT /**/" >>confdefs.h
15413
15414	;;
15415esac
15416
15417ac_config_files="$ac_config_files Makefile src/Makefile src/Console/Makefile src/Shared/Makefile src/MACLib/Makefile src/MACLib/Assembly/Makefile src/Examples/Makefile src/Examples/Analyze/Makefile src/Examples/Analyze/Sample1/Makefile"
15418
15419cat >confcache <<\_ACEOF
15420# This file is a shell script that caches the results of configure
15421# tests run on this system so they can be shared between configure
15422# scripts and configure runs, see configure's option --config-cache.
15423# It is not useful on other systems.  If it contains results you don't
15424# want to keep, you may remove or edit it.
15425#
15426# config.status only pays attention to the cache file if you give it
15427# the --recheck option to rerun configure.
15428#
15429# `ac_cv_env_foo' variables (set or unset) will be overridden when
15430# loading this file, other *unset* `ac_cv_foo' will be assigned the
15431# following values.
15432
15433_ACEOF
15434
15435# The following way of writing the cache mishandles newlines in values,
15436# but we know of no workaround that is simple, portable, and efficient.
15437# So, we kill variables containing newlines.
15438# Ultrix sh set writes to stderr and can't be redirected directly,
15439# and sets the high bit in the cache file unless we assign to the vars.
15440(
15441  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
15442    eval ac_val=\$$ac_var
15443    case $ac_val in #(
15444    *${as_nl}*)
15445      case $ac_var in #(
15446      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
15447$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
15448      esac
15449      case $ac_var in #(
15450      _ | IFS | as_nl) ;; #(
15451      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
15452      *) { eval $ac_var=; unset $ac_var;} ;;
15453      esac ;;
15454    esac
15455  done
15456
15457  (set) 2>&1 |
15458    case $as_nl`(ac_space=' '; set) 2>&1` in #(
15459    *${as_nl}ac_space=\ *)
15460      # `set' does not quote correctly, so add quotes: double-quote
15461      # substitution turns \\\\ into \\, and sed turns \\ into \.
15462      sed -n \
15463	"s/'/'\\\\''/g;
15464	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
15465      ;; #(
15466    *)
15467      # `set' quotes correctly as required by POSIX, so do not add quotes.
15468      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
15469      ;;
15470    esac |
15471    sort
15472) |
15473  sed '
15474     /^ac_cv_env_/b end
15475     t clear
15476     :clear
15477     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
15478     t end
15479     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
15480     :end' >>confcache
15481if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
15482  if test -w "$cache_file"; then
15483    test "x$cache_file" != "x/dev/null" &&
15484      { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
15485$as_echo "$as_me: updating cache $cache_file" >&6;}
15486    cat confcache >$cache_file
15487  else
15488    { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
15489$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
15490  fi
15491fi
15492rm -f confcache
15493
15494test "x$prefix" = xNONE && prefix=$ac_default_prefix
15495# Let make expand exec_prefix.
15496test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
15497
15498DEFS=-DHAVE_CONFIG_H
15499
15500ac_libobjs=
15501ac_ltlibobjs=
15502for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
15503  # 1. Remove the extension, and $U if already installed.
15504  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
15505  ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
15506  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
15507  #    will be set to the directory where LIBOBJS objects are built.
15508  as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
15509  as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
15510done
15511LIBOBJS=$ac_libobjs
15512
15513LTLIBOBJS=$ac_ltlibobjs
15514
15515
15516 if test -n "$EXEEXT"; then
15517  am__EXEEXT_TRUE=
15518  am__EXEEXT_FALSE='#'
15519else
15520  am__EXEEXT_TRUE='#'
15521  am__EXEEXT_FALSE=
15522fi
15523
15524if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
15525  as_fn_error "conditional \"MAINTAINER_MODE\" was never defined.
15526Usually this means the macro was only invoked conditionally." "$LINENO" 5
15527fi
15528if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
15529  as_fn_error "conditional \"AMDEP\" was never defined.
15530Usually this means the macro was only invoked conditionally." "$LINENO" 5
15531fi
15532if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
15533  as_fn_error "conditional \"am__fastdepCXX\" was never defined.
15534Usually this means the macro was only invoked conditionally." "$LINENO" 5
15535fi
15536if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
15537  as_fn_error "conditional \"am__fastdepCC\" was never defined.
15538Usually this means the macro was only invoked conditionally." "$LINENO" 5
15539fi
15540if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
15541  as_fn_error "conditional \"MAINTAINER_MODE\" was never defined.
15542Usually this means the macro was only invoked conditionally." "$LINENO" 5
15543fi
15544
15545if test -z "${ENABLE_ASSEMBLY_TRUE}" && test -z "${ENABLE_ASSEMBLY_FALSE}"; then
15546  as_fn_error "conditional \"ENABLE_ASSEMBLY\" was never defined.
15547Usually this means the macro was only invoked conditionally." "$LINENO" 5
15548fi
15549if test -z "${OS_WIN_TRUE}" && test -z "${OS_WIN_FALSE}"; then
15550  as_fn_error "conditional \"OS_WIN\" was never defined.
15551Usually this means the macro was only invoked conditionally." "$LINENO" 5
15552fi
15553if test -z "${HAS_YASM_TRUE}" && test -z "${HAS_YASM_FALSE}"; then
15554  as_fn_error "conditional \"HAS_YASM\" was never defined.
15555Usually this means the macro was only invoked conditionally." "$LINENO" 5
15556fi
15557if test -z "${ARCH_X86_TRUE}" && test -z "${ARCH_X86_FALSE}"; then
15558  as_fn_error "conditional \"ARCH_X86\" was never defined.
15559Usually this means the macro was only invoked conditionally." "$LINENO" 5
15560fi
15561if test -z "${ARCH_X86_64_TRUE}" && test -z "${ARCH_X86_64_FALSE}"; then
15562  as_fn_error "conditional \"ARCH_X86_64\" was never defined.
15563Usually this means the macro was only invoked conditionally." "$LINENO" 5
15564fi
15565if test -z "${ARCH_SPARC_TRUE}" && test -z "${ARCH_SPARC_FALSE}"; then
15566  as_fn_error "conditional \"ARCH_SPARC\" was never defined.
15567Usually this means the macro was only invoked conditionally." "$LINENO" 5
15568fi
15569if test -z "${ARCH_PPC_TRUE}" && test -z "${ARCH_PPC_FALSE}"; then
15570  as_fn_error "conditional \"ARCH_PPC\" was never defined.
15571Usually this means the macro was only invoked conditionally." "$LINENO" 5
15572fi
15573
15574: ${CONFIG_STATUS=./config.status}
15575ac_write_fail=0
15576ac_clean_files_save=$ac_clean_files
15577ac_clean_files="$ac_clean_files $CONFIG_STATUS"
15578{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
15579$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
15580as_write_fail=0
15581cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
15582#! $SHELL
15583# Generated by $as_me.
15584# Run this file to recreate the current configuration.
15585# Compiler output produced by configure, useful for debugging
15586# configure, is in config.log if it exists.
15587
15588debug=false
15589ac_cs_recheck=false
15590ac_cs_silent=false
15591
15592SHELL=\${CONFIG_SHELL-$SHELL}
15593export SHELL
15594_ASEOF
15595cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
15596## -------------------- ##
15597## M4sh Initialization. ##
15598## -------------------- ##
15599
15600# Be more Bourne compatible
15601DUALCASE=1; export DUALCASE # for MKS sh
15602if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
15603  emulate sh
15604  NULLCMD=:
15605  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
15606  # is contrary to our usage.  Disable this feature.
15607  alias -g '${1+"$@"}'='"$@"'
15608  setopt NO_GLOB_SUBST
15609else
15610  case `(set -o) 2>/dev/null` in #(
15611  *posix*) :
15612    set -o posix ;; #(
15613  *) :
15614     ;;
15615esac
15616fi
15617
15618
15619as_nl='
15620'
15621export as_nl
15622# Printing a long string crashes Solaris 7 /usr/bin/printf.
15623as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
15624as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
15625as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
15626# Prefer a ksh shell builtin over an external printf program on Solaris,
15627# but without wasting forks for bash or zsh.
15628if test -z "$BASH_VERSION$ZSH_VERSION" \
15629    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
15630  as_echo='print -r --'
15631  as_echo_n='print -rn --'
15632elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
15633  as_echo='printf %s\n'
15634  as_echo_n='printf %s'
15635else
15636  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
15637    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
15638    as_echo_n='/usr/ucb/echo -n'
15639  else
15640    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
15641    as_echo_n_body='eval
15642      arg=$1;
15643      case $arg in #(
15644      *"$as_nl"*)
15645	expr "X$arg" : "X\\(.*\\)$as_nl";
15646	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
15647      esac;
15648      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
15649    '
15650    export as_echo_n_body
15651    as_echo_n='sh -c $as_echo_n_body as_echo'
15652  fi
15653  export as_echo_body
15654  as_echo='sh -c $as_echo_body as_echo'
15655fi
15656
15657# The user is always right.
15658if test "${PATH_SEPARATOR+set}" != set; then
15659  PATH_SEPARATOR=:
15660  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
15661    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
15662      PATH_SEPARATOR=';'
15663  }
15664fi
15665
15666
15667# IFS
15668# We need space, tab and new line, in precisely that order.  Quoting is
15669# there to prevent editors from complaining about space-tab.
15670# (If _AS_PATH_WALK were called with IFS unset, it would disable word
15671# splitting by setting IFS to empty value.)
15672IFS=" ""	$as_nl"
15673
15674# Find who we are.  Look in the path if we contain no directory separator.
15675case $0 in #((
15676  *[\\/]* ) as_myself=$0 ;;
15677  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15678for as_dir in $PATH
15679do
15680  IFS=$as_save_IFS
15681  test -z "$as_dir" && as_dir=.
15682    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
15683  done
15684IFS=$as_save_IFS
15685
15686     ;;
15687esac
15688# We did not find ourselves, most probably we were run as `sh COMMAND'
15689# in which case we are not to be found in the path.
15690if test "x$as_myself" = x; then
15691  as_myself=$0
15692fi
15693if test ! -f "$as_myself"; then
15694  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
15695  exit 1
15696fi
15697
15698# Unset variables that we do not need and which cause bugs (e.g. in
15699# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
15700# suppresses any "Segmentation fault" message there.  '((' could
15701# trigger a bug in pdksh 5.2.14.
15702for as_var in BASH_ENV ENV MAIL MAILPATH
15703do eval test x\${$as_var+set} = xset \
15704  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
15705done
15706PS1='$ '
15707PS2='> '
15708PS4='+ '
15709
15710# NLS nuisances.
15711LC_ALL=C
15712export LC_ALL
15713LANGUAGE=C
15714export LANGUAGE
15715
15716# CDPATH.
15717(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
15718
15719
15720# as_fn_error ERROR [LINENO LOG_FD]
15721# ---------------------------------
15722# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
15723# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
15724# script with status $?, using 1 if that was 0.
15725as_fn_error ()
15726{
15727  as_status=$?; test $as_status -eq 0 && as_status=1
15728  if test "$3"; then
15729    as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
15730    $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
15731  fi
15732  $as_echo "$as_me: error: $1" >&2
15733  as_fn_exit $as_status
15734} # as_fn_error
15735
15736
15737# as_fn_set_status STATUS
15738# -----------------------
15739# Set $? to STATUS, without forking.
15740as_fn_set_status ()
15741{
15742  return $1
15743} # as_fn_set_status
15744
15745# as_fn_exit STATUS
15746# -----------------
15747# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
15748as_fn_exit ()
15749{
15750  set +e
15751  as_fn_set_status $1
15752  exit $1
15753} # as_fn_exit
15754
15755# as_fn_unset VAR
15756# ---------------
15757# Portably unset VAR.
15758as_fn_unset ()
15759{
15760  { eval $1=; unset $1;}
15761}
15762as_unset=as_fn_unset
15763# as_fn_append VAR VALUE
15764# ----------------------
15765# Append the text in VALUE to the end of the definition contained in VAR. Take
15766# advantage of any shell optimizations that allow amortized linear growth over
15767# repeated appends, instead of the typical quadratic growth present in naive
15768# implementations.
15769if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
15770  eval 'as_fn_append ()
15771  {
15772    eval $1+=\$2
15773  }'
15774else
15775  as_fn_append ()
15776  {
15777    eval $1=\$$1\$2
15778  }
15779fi # as_fn_append
15780
15781# as_fn_arith ARG...
15782# ------------------
15783# Perform arithmetic evaluation on the ARGs, and store the result in the
15784# global $as_val. Take advantage of shells that can avoid forks. The arguments
15785# must be portable across $(()) and expr.
15786if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
15787  eval 'as_fn_arith ()
15788  {
15789    as_val=$(( $* ))
15790  }'
15791else
15792  as_fn_arith ()
15793  {
15794    as_val=`expr "$@" || test $? -eq 1`
15795  }
15796fi # as_fn_arith
15797
15798
15799if expr a : '\(a\)' >/dev/null 2>&1 &&
15800   test "X`expr 00001 : '.*\(...\)'`" = X001; then
15801  as_expr=expr
15802else
15803  as_expr=false
15804fi
15805
15806if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
15807  as_basename=basename
15808else
15809  as_basename=false
15810fi
15811
15812if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
15813  as_dirname=dirname
15814else
15815  as_dirname=false
15816fi
15817
15818as_me=`$as_basename -- "$0" ||
15819$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
15820	 X"$0" : 'X\(//\)$' \| \
15821	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
15822$as_echo X/"$0" |
15823    sed '/^.*\/\([^/][^/]*\)\/*$/{
15824	    s//\1/
15825	    q
15826	  }
15827	  /^X\/\(\/\/\)$/{
15828	    s//\1/
15829	    q
15830	  }
15831	  /^X\/\(\/\).*/{
15832	    s//\1/
15833	    q
15834	  }
15835	  s/.*/./; q'`
15836
15837# Avoid depending upon Character Ranges.
15838as_cr_letters='abcdefghijklmnopqrstuvwxyz'
15839as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
15840as_cr_Letters=$as_cr_letters$as_cr_LETTERS
15841as_cr_digits='0123456789'
15842as_cr_alnum=$as_cr_Letters$as_cr_digits
15843
15844ECHO_C= ECHO_N= ECHO_T=
15845case `echo -n x` in #(((((
15846-n*)
15847  case `echo 'xy\c'` in
15848  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
15849  xy)  ECHO_C='\c';;
15850  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
15851       ECHO_T='	';;
15852  esac;;
15853*)
15854  ECHO_N='-n';;
15855esac
15856
15857rm -f conf$$ conf$$.exe conf$$.file
15858if test -d conf$$.dir; then
15859  rm -f conf$$.dir/conf$$.file
15860else
15861  rm -f conf$$.dir
15862  mkdir conf$$.dir 2>/dev/null
15863fi
15864if (echo >conf$$.file) 2>/dev/null; then
15865  if ln -s conf$$.file conf$$ 2>/dev/null; then
15866    as_ln_s='ln -s'
15867    # ... but there are two gotchas:
15868    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
15869    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
15870    # In both cases, we have to default to `cp -p'.
15871    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
15872      as_ln_s='cp -p'
15873  elif ln conf$$.file conf$$ 2>/dev/null; then
15874    as_ln_s=ln
15875  else
15876    as_ln_s='cp -p'
15877  fi
15878else
15879  as_ln_s='cp -p'
15880fi
15881rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
15882rmdir conf$$.dir 2>/dev/null
15883
15884
15885# as_fn_mkdir_p
15886# -------------
15887# Create "$as_dir" as a directory, including parents if necessary.
15888as_fn_mkdir_p ()
15889{
15890
15891  case $as_dir in #(
15892  -*) as_dir=./$as_dir;;
15893  esac
15894  test -d "$as_dir" || eval $as_mkdir_p || {
15895    as_dirs=
15896    while :; do
15897      case $as_dir in #(
15898      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
15899      *) as_qdir=$as_dir;;
15900      esac
15901      as_dirs="'$as_qdir' $as_dirs"
15902      as_dir=`$as_dirname -- "$as_dir" ||
15903$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15904	 X"$as_dir" : 'X\(//\)[^/]' \| \
15905	 X"$as_dir" : 'X\(//\)$' \| \
15906	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
15907$as_echo X"$as_dir" |
15908    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15909	    s//\1/
15910	    q
15911	  }
15912	  /^X\(\/\/\)[^/].*/{
15913	    s//\1/
15914	    q
15915	  }
15916	  /^X\(\/\/\)$/{
15917	    s//\1/
15918	    q
15919	  }
15920	  /^X\(\/\).*/{
15921	    s//\1/
15922	    q
15923	  }
15924	  s/.*/./; q'`
15925      test -d "$as_dir" && break
15926    done
15927    test -z "$as_dirs" || eval "mkdir $as_dirs"
15928  } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
15929
15930
15931} # as_fn_mkdir_p
15932if mkdir -p . 2>/dev/null; then
15933  as_mkdir_p='mkdir -p "$as_dir"'
15934else
15935  test -d ./-p && rmdir ./-p
15936  as_mkdir_p=false
15937fi
15938
15939if test -x / >/dev/null 2>&1; then
15940  as_test_x='test -x'
15941else
15942  if ls -dL / >/dev/null 2>&1; then
15943    as_ls_L_option=L
15944  else
15945    as_ls_L_option=
15946  fi
15947  as_test_x='
15948    eval sh -c '\''
15949      if test -d "$1"; then
15950	test -d "$1/.";
15951      else
15952	case $1 in #(
15953	-*)set "./$1";;
15954	esac;
15955	case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
15956	???[sx]*):;;*)false;;esac;fi
15957    '\'' sh
15958  '
15959fi
15960as_executable_p=$as_test_x
15961
15962# Sed expression to map a string onto a valid CPP name.
15963as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
15964
15965# Sed expression to map a string onto a valid variable name.
15966as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
15967
15968
15969exec 6>&1
15970## ----------------------------------- ##
15971## Main body of $CONFIG_STATUS script. ##
15972## ----------------------------------- ##
15973_ASEOF
15974test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
15975
15976cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15977# Save the log message, to keep $0 and so on meaningful, and to
15978# report actual input values of CONFIG_FILES etc. instead of their
15979# values after options handling.
15980ac_log="
15981This file was extended by mac $as_me 3.99-u4-b5-s7, which was
15982generated by GNU Autoconf 2.65.  Invocation command line was
15983
15984  CONFIG_FILES    = $CONFIG_FILES
15985  CONFIG_HEADERS  = $CONFIG_HEADERS
15986  CONFIG_LINKS    = $CONFIG_LINKS
15987  CONFIG_COMMANDS = $CONFIG_COMMANDS
15988  $ $0 $@
15989
15990on `(hostname || uname -n) 2>/dev/null | sed 1q`
15991"
15992
15993_ACEOF
15994
15995case $ac_config_files in *"
15996"*) set x $ac_config_files; shift; ac_config_files=$*;;
15997esac
15998
15999case $ac_config_headers in *"
16000"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
16001esac
16002
16003
16004cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16005# Files that config.status was made for.
16006config_files="$ac_config_files"
16007config_headers="$ac_config_headers"
16008config_commands="$ac_config_commands"
16009
16010_ACEOF
16011
16012cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16013ac_cs_usage="\
16014\`$as_me' instantiates files and other configuration actions
16015from templates according to the current configuration.  Unless the files
16016and actions are specified as TAGs, all are instantiated by default.
16017
16018Usage: $0 [OPTION]... [TAG]...
16019
16020  -h, --help       print this help, then exit
16021  -V, --version    print version number and configuration settings, then exit
16022      --config     print configuration, then exit
16023  -q, --quiet, --silent
16024                   do not print progress messages
16025  -d, --debug      don't remove temporary files
16026      --recheck    update $as_me by reconfiguring in the same conditions
16027      --file=FILE[:TEMPLATE]
16028                   instantiate the configuration file FILE
16029      --header=FILE[:TEMPLATE]
16030                   instantiate the configuration header FILE
16031
16032Configuration files:
16033$config_files
16034
16035Configuration headers:
16036$config_headers
16037
16038Configuration commands:
16039$config_commands
16040
16041Report bugs to the package provider."
16042
16043_ACEOF
16044cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16045ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
16046ac_cs_version="\\
16047mac config.status 3.99-u4-b5-s7
16048configured by $0, generated by GNU Autoconf 2.65,
16049  with options \\"\$ac_cs_config\\"
16050
16051Copyright (C) 2009 Free Software Foundation, Inc.
16052This config.status script is free software; the Free Software Foundation
16053gives unlimited permission to copy, distribute and modify it."
16054
16055ac_pwd='$ac_pwd'
16056srcdir='$srcdir'
16057INSTALL='$INSTALL'
16058MKDIR_P='$MKDIR_P'
16059AWK='$AWK'
16060test -n "\$AWK" || AWK=awk
16061_ACEOF
16062
16063cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16064# The default lists apply if the user does not specify any file.
16065ac_need_defaults=:
16066while test $# != 0
16067do
16068  case $1 in
16069  --*=*)
16070    ac_option=`expr "X$1" : 'X\([^=]*\)='`
16071    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
16072    ac_shift=:
16073    ;;
16074  *)
16075    ac_option=$1
16076    ac_optarg=$2
16077    ac_shift=shift
16078    ;;
16079  esac
16080
16081  case $ac_option in
16082  # Handling of the options.
16083  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
16084    ac_cs_recheck=: ;;
16085  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
16086    $as_echo "$ac_cs_version"; exit ;;
16087  --config | --confi | --conf | --con | --co | --c )
16088    $as_echo "$ac_cs_config"; exit ;;
16089  --debug | --debu | --deb | --de | --d | -d )
16090    debug=: ;;
16091  --file | --fil | --fi | --f )
16092    $ac_shift
16093    case $ac_optarg in
16094    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
16095    esac
16096    as_fn_append CONFIG_FILES " '$ac_optarg'"
16097    ac_need_defaults=false;;
16098  --header | --heade | --head | --hea )
16099    $ac_shift
16100    case $ac_optarg in
16101    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
16102    esac
16103    as_fn_append CONFIG_HEADERS " '$ac_optarg'"
16104    ac_need_defaults=false;;
16105  --he | --h)
16106    # Conflict between --help and --header
16107    as_fn_error "ambiguous option: \`$1'
16108Try \`$0 --help' for more information.";;
16109  --help | --hel | -h )
16110    $as_echo "$ac_cs_usage"; exit ;;
16111  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
16112  | -silent | --silent | --silen | --sile | --sil | --si | --s)
16113    ac_cs_silent=: ;;
16114
16115  # This is an error.
16116  -*) as_fn_error "unrecognized option: \`$1'
16117Try \`$0 --help' for more information." ;;
16118
16119  *) as_fn_append ac_config_targets " $1"
16120     ac_need_defaults=false ;;
16121
16122  esac
16123  shift
16124done
16125
16126ac_configure_extra_args=
16127
16128if $ac_cs_silent; then
16129  exec 6>/dev/null
16130  ac_configure_extra_args="$ac_configure_extra_args --silent"
16131fi
16132
16133_ACEOF
16134cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16135if \$ac_cs_recheck; then
16136  set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
16137  shift
16138  \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
16139  CONFIG_SHELL='$SHELL'
16140  export CONFIG_SHELL
16141  exec "\$@"
16142fi
16143
16144_ACEOF
16145cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16146exec 5>>config.log
16147{
16148  echo
16149  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
16150## Running $as_me. ##
16151_ASBOX
16152  $as_echo "$ac_log"
16153} >&5
16154
16155_ACEOF
16156cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16157#
16158# INIT-COMMANDS
16159#
16160AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
16161
16162
16163# The HP-UX ksh and POSIX shell print the target directory to stdout
16164# if CDPATH is set.
16165(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
16166
16167sed_quote_subst='$sed_quote_subst'
16168double_quote_subst='$double_quote_subst'
16169delay_variable_subst='$delay_variable_subst'
16170macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
16171macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
16172enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
16173enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
16174pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
16175enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
16176SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
16177ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
16178host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
16179host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
16180host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
16181build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
16182build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
16183build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
16184SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
16185Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
16186GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
16187EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
16188FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
16189LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
16190NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
16191LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
16192max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
16193ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
16194exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
16195lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
16196lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
16197lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
16198reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
16199reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
16200OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
16201deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
16202file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
16203AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
16204AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
16205STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
16206RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
16207old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
16208old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
16209old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
16210lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
16211CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
16212CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
16213compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
16214GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
16215lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
16216lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
16217lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
16218lt_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"`'
16219objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
16220MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
16221lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
16222lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
16223lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
16224lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
16225lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
16226need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
16227DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
16228NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
16229LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
16230OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
16231OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
16232libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
16233shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
16234extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
16235archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
16236enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
16237export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
16238whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
16239compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
16240old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
16241old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
16242archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
16243archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
16244module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
16245module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
16246with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
16247allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
16248no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
16249hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
16250hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
16251hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
16252hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
16253hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
16254hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
16255hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
16256hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
16257inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
16258link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
16259fix_srcfile_path='`$ECHO "$fix_srcfile_path" | $SED "$delay_single_quote_subst"`'
16260always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
16261export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
16262exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
16263include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
16264prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
16265file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
16266variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
16267need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
16268need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
16269version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
16270runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
16271shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
16272shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
16273libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
16274library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
16275soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
16276install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
16277postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
16278postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
16279finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
16280finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
16281hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
16282sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
16283sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
16284hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
16285enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
16286enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
16287enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
16288old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
16289striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
16290compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
16291predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
16292postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
16293predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
16294postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
16295compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
16296LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
16297reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
16298reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
16299old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
16300compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
16301GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
16302lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
16303lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
16304lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
16305lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
16306lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
16307archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
16308enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
16309export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
16310whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
16311compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
16312old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
16313old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
16314archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
16315archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
16316module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
16317module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
16318with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
16319allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
16320no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
16321hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
16322hardcode_libdir_flag_spec_ld_CXX='`$ECHO "$hardcode_libdir_flag_spec_ld_CXX" | $SED "$delay_single_quote_subst"`'
16323hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
16324hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
16325hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
16326hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
16327hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
16328hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
16329inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
16330link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
16331fix_srcfile_path_CXX='`$ECHO "$fix_srcfile_path_CXX" | $SED "$delay_single_quote_subst"`'
16332always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
16333export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
16334exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
16335include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
16336prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
16337file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
16338hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
16339compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
16340predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
16341postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
16342predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
16343postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
16344compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
16345
16346LTCC='$LTCC'
16347LTCFLAGS='$LTCFLAGS'
16348compiler='$compiler_DEFAULT'
16349
16350# A function that is used when there is no print builtin or printf.
16351func_fallback_echo ()
16352{
16353  eval 'cat <<_LTECHO_EOF
16354\$1
16355_LTECHO_EOF'
16356}
16357
16358# Quote evaled strings.
16359for var in SHELL \
16360ECHO \
16361SED \
16362GREP \
16363EGREP \
16364FGREP \
16365LD \
16366NM \
16367LN_S \
16368lt_SP2NL \
16369lt_NL2SP \
16370reload_flag \
16371OBJDUMP \
16372deplibs_check_method \
16373file_magic_cmd \
16374AR \
16375AR_FLAGS \
16376STRIP \
16377RANLIB \
16378CC \
16379CFLAGS \
16380compiler \
16381lt_cv_sys_global_symbol_pipe \
16382lt_cv_sys_global_symbol_to_cdecl \
16383lt_cv_sys_global_symbol_to_c_name_address \
16384lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
16385lt_prog_compiler_no_builtin_flag \
16386lt_prog_compiler_wl \
16387lt_prog_compiler_pic \
16388lt_prog_compiler_static \
16389lt_cv_prog_compiler_c_o \
16390need_locks \
16391DSYMUTIL \
16392NMEDIT \
16393LIPO \
16394OTOOL \
16395OTOOL64 \
16396shrext_cmds \
16397export_dynamic_flag_spec \
16398whole_archive_flag_spec \
16399compiler_needs_object \
16400with_gnu_ld \
16401allow_undefined_flag \
16402no_undefined_flag \
16403hardcode_libdir_flag_spec \
16404hardcode_libdir_flag_spec_ld \
16405hardcode_libdir_separator \
16406fix_srcfile_path \
16407exclude_expsyms \
16408include_expsyms \
16409file_list_spec \
16410variables_saved_for_relink \
16411libname_spec \
16412library_names_spec \
16413soname_spec \
16414install_override_mode \
16415finish_eval \
16416old_striplib \
16417striplib \
16418compiler_lib_search_dirs \
16419predep_objects \
16420postdep_objects \
16421predeps \
16422postdeps \
16423compiler_lib_search_path \
16424LD_CXX \
16425reload_flag_CXX \
16426compiler_CXX \
16427lt_prog_compiler_no_builtin_flag_CXX \
16428lt_prog_compiler_wl_CXX \
16429lt_prog_compiler_pic_CXX \
16430lt_prog_compiler_static_CXX \
16431lt_cv_prog_compiler_c_o_CXX \
16432export_dynamic_flag_spec_CXX \
16433whole_archive_flag_spec_CXX \
16434compiler_needs_object_CXX \
16435with_gnu_ld_CXX \
16436allow_undefined_flag_CXX \
16437no_undefined_flag_CXX \
16438hardcode_libdir_flag_spec_CXX \
16439hardcode_libdir_flag_spec_ld_CXX \
16440hardcode_libdir_separator_CXX \
16441fix_srcfile_path_CXX \
16442exclude_expsyms_CXX \
16443include_expsyms_CXX \
16444file_list_spec_CXX \
16445compiler_lib_search_dirs_CXX \
16446predep_objects_CXX \
16447postdep_objects_CXX \
16448predeps_CXX \
16449postdeps_CXX \
16450compiler_lib_search_path_CXX; do
16451    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
16452    *[\\\\\\\`\\"\\\$]*)
16453      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
16454      ;;
16455    *)
16456      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
16457      ;;
16458    esac
16459done
16460
16461# Double-quote double-evaled strings.
16462for var in reload_cmds \
16463old_postinstall_cmds \
16464old_postuninstall_cmds \
16465old_archive_cmds \
16466extract_expsyms_cmds \
16467old_archive_from_new_cmds \
16468old_archive_from_expsyms_cmds \
16469archive_cmds \
16470archive_expsym_cmds \
16471module_cmds \
16472module_expsym_cmds \
16473export_symbols_cmds \
16474prelink_cmds \
16475postinstall_cmds \
16476postuninstall_cmds \
16477finish_cmds \
16478sys_lib_search_path_spec \
16479sys_lib_dlsearch_path_spec \
16480reload_cmds_CXX \
16481old_archive_cmds_CXX \
16482old_archive_from_new_cmds_CXX \
16483old_archive_from_expsyms_cmds_CXX \
16484archive_cmds_CXX \
16485archive_expsym_cmds_CXX \
16486module_cmds_CXX \
16487module_expsym_cmds_CXX \
16488export_symbols_cmds_CXX \
16489prelink_cmds_CXX; do
16490    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
16491    *[\\\\\\\`\\"\\\$]*)
16492      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
16493      ;;
16494    *)
16495      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
16496      ;;
16497    esac
16498done
16499
16500ac_aux_dir='$ac_aux_dir'
16501xsi_shell='$xsi_shell'
16502lt_shell_append='$lt_shell_append'
16503
16504# See if we are running on zsh, and set the options which allow our
16505# commands through without removal of \ escapes INIT.
16506if test -n "\${ZSH_VERSION+set}" ; then
16507   setopt NO_GLOB_SUBST
16508fi
16509
16510
16511    PACKAGE='$PACKAGE'
16512    VERSION='$VERSION'
16513    TIMESTAMP='$TIMESTAMP'
16514    RM='$RM'
16515    ofile='$ofile'
16516
16517
16518
16519
16520
16521
16522_ACEOF
16523
16524cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16525
16526# Handling of arguments.
16527for ac_config_target in $ac_config_targets
16528do
16529  case $ac_config_target in
16530    "src/Shared/config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/Shared/config.h" ;;
16531    "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
16532    "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
16533    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
16534    "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
16535    "src/Console/Makefile") CONFIG_FILES="$CONFIG_FILES src/Console/Makefile" ;;
16536    "src/Shared/Makefile") CONFIG_FILES="$CONFIG_FILES src/Shared/Makefile" ;;
16537    "src/MACLib/Makefile") CONFIG_FILES="$CONFIG_FILES src/MACLib/Makefile" ;;
16538    "src/MACLib/Assembly/Makefile") CONFIG_FILES="$CONFIG_FILES src/MACLib/Assembly/Makefile" ;;
16539    "src/Examples/Makefile") CONFIG_FILES="$CONFIG_FILES src/Examples/Makefile" ;;
16540    "src/Examples/Analyze/Makefile") CONFIG_FILES="$CONFIG_FILES src/Examples/Analyze/Makefile" ;;
16541    "src/Examples/Analyze/Sample1/Makefile") CONFIG_FILES="$CONFIG_FILES src/Examples/Analyze/Sample1/Makefile" ;;
16542
16543  *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
16544  esac
16545done
16546
16547
16548# If the user did not use the arguments to specify the items to instantiate,
16549# then the envvar interface is used.  Set only those that are not.
16550# We use the long form for the default assignment because of an extremely
16551# bizarre bug on SunOS 4.1.3.
16552if $ac_need_defaults; then
16553  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
16554  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
16555  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
16556fi
16557
16558# Have a temporary directory for convenience.  Make it in the build tree
16559# simply because there is no reason against having it here, and in addition,
16560# creating and moving files from /tmp can sometimes cause problems.
16561# Hook for its removal unless debugging.
16562# Note that there is a small window in which the directory will not be cleaned:
16563# after its creation but before its name has been assigned to `$tmp'.
16564$debug ||
16565{
16566  tmp=
16567  trap 'exit_status=$?
16568  { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
16569' 0
16570  trap 'as_fn_exit 1' 1 2 13 15
16571}
16572# Create a (secure) tmp directory for tmp files.
16573
16574{
16575  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
16576  test -n "$tmp" && test -d "$tmp"
16577}  ||
16578{
16579  tmp=./conf$$-$RANDOM
16580  (umask 077 && mkdir "$tmp")
16581} || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
16582
16583# Set up the scripts for CONFIG_FILES section.
16584# No need to generate them if there are no CONFIG_FILES.
16585# This happens for instance with `./config.status config.h'.
16586if test -n "$CONFIG_FILES"; then
16587
16588
16589ac_cr=`echo X | tr X '\015'`
16590# On cygwin, bash can eat \r inside `` if the user requested igncr.
16591# But we know of no other shell where ac_cr would be empty at this
16592# point, so we can use a bashism as a fallback.
16593if test "x$ac_cr" = x; then
16594  eval ac_cr=\$\'\\r\'
16595fi
16596ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
16597if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
16598  ac_cs_awk_cr='\r'
16599else
16600  ac_cs_awk_cr=$ac_cr
16601fi
16602
16603echo 'BEGIN {' >"$tmp/subs1.awk" &&
16604_ACEOF
16605
16606
16607{
16608  echo "cat >conf$$subs.awk <<_ACEOF" &&
16609  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
16610  echo "_ACEOF"
16611} >conf$$subs.sh ||
16612  as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
16613ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
16614ac_delim='%!_!# '
16615for ac_last_try in false false false false false :; do
16616  . ./conf$$subs.sh ||
16617    as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
16618
16619  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
16620  if test $ac_delim_n = $ac_delim_num; then
16621    break
16622  elif $ac_last_try; then
16623    as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
16624  else
16625    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16626  fi
16627done
16628rm -f conf$$subs.sh
16629
16630cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16631cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
16632_ACEOF
16633sed -n '
16634h
16635s/^/S["/; s/!.*/"]=/
16636p
16637g
16638s/^[^!]*!//
16639:repl
16640t repl
16641s/'"$ac_delim"'$//
16642t delim
16643:nl
16644h
16645s/\(.\{148\}\)..*/\1/
16646t more1
16647s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
16648p
16649n
16650b repl
16651:more1
16652s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16653p
16654g
16655s/.\{148\}//
16656t nl
16657:delim
16658h
16659s/\(.\{148\}\)..*/\1/
16660t more2
16661s/["\\]/\\&/g; s/^/"/; s/$/"/
16662p
16663b
16664:more2
16665s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16666p
16667g
16668s/.\{148\}//
16669t delim
16670' <conf$$subs.awk | sed '
16671/^[^""]/{
16672  N
16673  s/\n//
16674}
16675' >>$CONFIG_STATUS || ac_write_fail=1
16676rm -f conf$$subs.awk
16677cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16678_ACAWK
16679cat >>"\$tmp/subs1.awk" <<_ACAWK &&
16680  for (key in S) S_is_set[key] = 1
16681  FS = ""
16682
16683}
16684{
16685  line = $ 0
16686  nfields = split(line, field, "@")
16687  substed = 0
16688  len = length(field[1])
16689  for (i = 2; i < nfields; i++) {
16690    key = field[i]
16691    keylen = length(key)
16692    if (S_is_set[key]) {
16693      value = S[key]
16694      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
16695      len += length(value) + length(field[++i])
16696      substed = 1
16697    } else
16698      len += 1 + keylen
16699  }
16700
16701  print line
16702}
16703
16704_ACAWK
16705_ACEOF
16706cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16707if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
16708  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
16709else
16710  cat
16711fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
16712  || as_fn_error "could not setup config files machinery" "$LINENO" 5
16713_ACEOF
16714
16715# VPATH may cause trouble with some makes, so we remove $(srcdir),
16716# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
16717# trailing colons and then remove the whole line if VPATH becomes empty
16718# (actually we leave an empty line to preserve line numbers).
16719if test "x$srcdir" = x.; then
16720  ac_vpsub='/^[	 ]*VPATH[	 ]*=/{
16721s/:*\$(srcdir):*/:/
16722s/:*\${srcdir}:*/:/
16723s/:*@srcdir@:*/:/
16724s/^\([^=]*=[	 ]*\):*/\1/
16725s/:*$//
16726s/^[^=]*=[	 ]*$//
16727}'
16728fi
16729
16730cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16731fi # test -n "$CONFIG_FILES"
16732
16733# Set up the scripts for CONFIG_HEADERS section.
16734# No need to generate them if there are no CONFIG_HEADERS.
16735# This happens for instance with `./config.status Makefile'.
16736if test -n "$CONFIG_HEADERS"; then
16737cat >"$tmp/defines.awk" <<\_ACAWK ||
16738BEGIN {
16739_ACEOF
16740
16741# Transform confdefs.h into an awk script `defines.awk', embedded as
16742# here-document in config.status, that substitutes the proper values into
16743# config.h.in to produce config.h.
16744
16745# Create a delimiter string that does not exist in confdefs.h, to ease
16746# handling of long lines.
16747ac_delim='%!_!# '
16748for ac_last_try in false false :; do
16749  ac_t=`sed -n "/$ac_delim/p" confdefs.h`
16750  if test -z "$ac_t"; then
16751    break
16752  elif $ac_last_try; then
16753    as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
16754  else
16755    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16756  fi
16757done
16758
16759# For the awk script, D is an array of macro values keyed by name,
16760# likewise P contains macro parameters if any.  Preserve backslash
16761# newline sequences.
16762
16763ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
16764sed -n '
16765s/.\{148\}/&'"$ac_delim"'/g
16766t rset
16767:rset
16768s/^[	 ]*#[	 ]*define[	 ][	 ]*/ /
16769t def
16770d
16771:def
16772s/\\$//
16773t bsnl
16774s/["\\]/\\&/g
16775s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
16776D["\1"]=" \3"/p
16777s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2"/p
16778d
16779:bsnl
16780s/["\\]/\\&/g
16781s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
16782D["\1"]=" \3\\\\\\n"\\/p
16783t cont
16784s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
16785t cont
16786d
16787:cont
16788n
16789s/.\{148\}/&'"$ac_delim"'/g
16790t clear
16791:clear
16792s/\\$//
16793t bsnlc
16794s/["\\]/\\&/g; s/^/"/; s/$/"/p
16795d
16796:bsnlc
16797s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
16798b cont
16799' <confdefs.h | sed '
16800s/'"$ac_delim"'/"\\\
16801"/g' >>$CONFIG_STATUS || ac_write_fail=1
16802
16803cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16804  for (key in D) D_is_set[key] = 1
16805  FS = ""
16806}
16807/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
16808  line = \$ 0
16809  split(line, arg, " ")
16810  if (arg[1] == "#") {
16811    defundef = arg[2]
16812    mac1 = arg[3]
16813  } else {
16814    defundef = substr(arg[1], 2)
16815    mac1 = arg[2]
16816  }
16817  split(mac1, mac2, "(") #)
16818  macro = mac2[1]
16819  prefix = substr(line, 1, index(line, defundef) - 1)
16820  if (D_is_set[macro]) {
16821    # Preserve the white space surrounding the "#".
16822    print prefix "define", macro P[macro] D[macro]
16823    next
16824  } else {
16825    # Replace #undef with comments.  This is necessary, for example,
16826    # in the case of _POSIX_SOURCE, which is predefined and required
16827    # on some systems where configure will not decide to define it.
16828    if (defundef == "undef") {
16829      print "/*", prefix defundef, macro, "*/"
16830      next
16831    }
16832  }
16833}
16834{ print }
16835_ACAWK
16836_ACEOF
16837cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16838  as_fn_error "could not setup config headers machinery" "$LINENO" 5
16839fi # test -n "$CONFIG_HEADERS"
16840
16841
16842eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
16843shift
16844for ac_tag
16845do
16846  case $ac_tag in
16847  :[FHLC]) ac_mode=$ac_tag; continue;;
16848  esac
16849  case $ac_mode$ac_tag in
16850  :[FHL]*:*);;
16851  :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
16852  :[FH]-) ac_tag=-:-;;
16853  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
16854  esac
16855  ac_save_IFS=$IFS
16856  IFS=:
16857  set x $ac_tag
16858  IFS=$ac_save_IFS
16859  shift
16860  ac_file=$1
16861  shift
16862
16863  case $ac_mode in
16864  :L) ac_source=$1;;
16865  :[FH])
16866    ac_file_inputs=
16867    for ac_f
16868    do
16869      case $ac_f in
16870      -) ac_f="$tmp/stdin";;
16871      *) # Look for the file first in the build tree, then in the source tree
16872	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
16873	 # because $ac_f cannot contain `:'.
16874	 test -f "$ac_f" ||
16875	   case $ac_f in
16876	   [\\/$]*) false;;
16877	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
16878	   esac ||
16879	   as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
16880      esac
16881      case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
16882      as_fn_append ac_file_inputs " '$ac_f'"
16883    done
16884
16885    # Let's still pretend it is `configure' which instantiates (i.e., don't
16886    # use $as_me), people would be surprised to read:
16887    #    /* config.h.  Generated by config.status.  */
16888    configure_input='Generated from '`
16889	  $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
16890	`' by configure.'
16891    if test x"$ac_file" != x-; then
16892      configure_input="$ac_file.  $configure_input"
16893      { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
16894$as_echo "$as_me: creating $ac_file" >&6;}
16895    fi
16896    # Neutralize special characters interpreted by sed in replacement strings.
16897    case $configure_input in #(
16898    *\&* | *\|* | *\\* )
16899       ac_sed_conf_input=`$as_echo "$configure_input" |
16900       sed 's/[\\\\&|]/\\\\&/g'`;; #(
16901    *) ac_sed_conf_input=$configure_input;;
16902    esac
16903
16904    case $ac_tag in
16905    *:-:* | *:-) cat >"$tmp/stdin" \
16906      || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
16907    esac
16908    ;;
16909  esac
16910
16911  ac_dir=`$as_dirname -- "$ac_file" ||
16912$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16913	 X"$ac_file" : 'X\(//\)[^/]' \| \
16914	 X"$ac_file" : 'X\(//\)$' \| \
16915	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
16916$as_echo X"$ac_file" |
16917    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16918	    s//\1/
16919	    q
16920	  }
16921	  /^X\(\/\/\)[^/].*/{
16922	    s//\1/
16923	    q
16924	  }
16925	  /^X\(\/\/\)$/{
16926	    s//\1/
16927	    q
16928	  }
16929	  /^X\(\/\).*/{
16930	    s//\1/
16931	    q
16932	  }
16933	  s/.*/./; q'`
16934  as_dir="$ac_dir"; as_fn_mkdir_p
16935  ac_builddir=.
16936
16937case "$ac_dir" in
16938.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
16939*)
16940  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
16941  # A ".." for each directory in $ac_dir_suffix.
16942  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
16943  case $ac_top_builddir_sub in
16944  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
16945  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
16946  esac ;;
16947esac
16948ac_abs_top_builddir=$ac_pwd
16949ac_abs_builddir=$ac_pwd$ac_dir_suffix
16950# for backward compatibility:
16951ac_top_builddir=$ac_top_build_prefix
16952
16953case $srcdir in
16954  .)  # We are building in place.
16955    ac_srcdir=.
16956    ac_top_srcdir=$ac_top_builddir_sub
16957    ac_abs_top_srcdir=$ac_pwd ;;
16958  [\\/]* | ?:[\\/]* )  # Absolute name.
16959    ac_srcdir=$srcdir$ac_dir_suffix;
16960    ac_top_srcdir=$srcdir
16961    ac_abs_top_srcdir=$srcdir ;;
16962  *) # Relative name.
16963    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
16964    ac_top_srcdir=$ac_top_build_prefix$srcdir
16965    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
16966esac
16967ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
16968
16969
16970  case $ac_mode in
16971  :F)
16972  #
16973  # CONFIG_FILE
16974  #
16975
16976  case $INSTALL in
16977  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
16978  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
16979  esac
16980  ac_MKDIR_P=$MKDIR_P
16981  case $MKDIR_P in
16982  [\\/$]* | ?:[\\/]* ) ;;
16983  */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
16984  esac
16985_ACEOF
16986
16987cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16988# If the template does not know about datarootdir, expand it.
16989# FIXME: This hack should be removed a few years after 2.60.
16990ac_datarootdir_hack=; ac_datarootdir_seen=
16991ac_sed_dataroot='
16992/datarootdir/ {
16993  p
16994  q
16995}
16996/@datadir@/p
16997/@docdir@/p
16998/@infodir@/p
16999/@localedir@/p
17000/@mandir@/p'
17001case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
17002*datarootdir*) ac_datarootdir_seen=yes;;
17003*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
17004  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
17005$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
17006_ACEOF
17007cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17008  ac_datarootdir_hack='
17009  s&@datadir@&$datadir&g
17010  s&@docdir@&$docdir&g
17011  s&@infodir@&$infodir&g
17012  s&@localedir@&$localedir&g
17013  s&@mandir@&$mandir&g
17014  s&\\\${datarootdir}&$datarootdir&g' ;;
17015esac
17016_ACEOF
17017
17018# Neutralize VPATH when `$srcdir' = `.'.
17019# Shell code in configure.ac might set extrasub.
17020# FIXME: do we really want to maintain this feature?
17021cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17022ac_sed_extra="$ac_vpsub
17023$extrasub
17024_ACEOF
17025cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17026:t
17027/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
17028s|@configure_input@|$ac_sed_conf_input|;t t
17029s&@top_builddir@&$ac_top_builddir_sub&;t t
17030s&@top_build_prefix@&$ac_top_build_prefix&;t t
17031s&@srcdir@&$ac_srcdir&;t t
17032s&@abs_srcdir@&$ac_abs_srcdir&;t t
17033s&@top_srcdir@&$ac_top_srcdir&;t t
17034s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
17035s&@builddir@&$ac_builddir&;t t
17036s&@abs_builddir@&$ac_abs_builddir&;t t
17037s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
17038s&@INSTALL@&$ac_INSTALL&;t t
17039s&@MKDIR_P@&$ac_MKDIR_P&;t t
17040$ac_datarootdir_hack
17041"
17042eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
17043  || as_fn_error "could not create $ac_file" "$LINENO" 5
17044
17045test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
17046  { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
17047  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
17048  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
17049which seems to be undefined.  Please make sure it is defined." >&5
17050$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
17051which seems to be undefined.  Please make sure it is defined." >&2;}
17052
17053  rm -f "$tmp/stdin"
17054  case $ac_file in
17055  -) cat "$tmp/out" && rm -f "$tmp/out";;
17056  *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
17057  esac \
17058  || as_fn_error "could not create $ac_file" "$LINENO" 5
17059 ;;
17060  :H)
17061  #
17062  # CONFIG_HEADER
17063  #
17064  if test x"$ac_file" != x-; then
17065    {
17066      $as_echo "/* $configure_input  */" \
17067      && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
17068    } >"$tmp/config.h" \
17069      || as_fn_error "could not create $ac_file" "$LINENO" 5
17070    if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
17071      { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
17072$as_echo "$as_me: $ac_file is unchanged" >&6;}
17073    else
17074      rm -f "$ac_file"
17075      mv "$tmp/config.h" "$ac_file" \
17076	|| as_fn_error "could not create $ac_file" "$LINENO" 5
17077    fi
17078  else
17079    $as_echo "/* $configure_input  */" \
17080      && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
17081      || as_fn_error "could not create -" "$LINENO" 5
17082  fi
17083# Compute "$ac_file"'s index in $config_headers.
17084_am_arg="$ac_file"
17085_am_stamp_count=1
17086for _am_header in $config_headers :; do
17087  case $_am_header in
17088    $_am_arg | $_am_arg:* )
17089      break ;;
17090    * )
17091      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
17092  esac
17093done
17094echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
17095$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17096	 X"$_am_arg" : 'X\(//\)[^/]' \| \
17097	 X"$_am_arg" : 'X\(//\)$' \| \
17098	 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
17099$as_echo X"$_am_arg" |
17100    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17101	    s//\1/
17102	    q
17103	  }
17104	  /^X\(\/\/\)[^/].*/{
17105	    s//\1/
17106	    q
17107	  }
17108	  /^X\(\/\/\)$/{
17109	    s//\1/
17110	    q
17111	  }
17112	  /^X\(\/\).*/{
17113	    s//\1/
17114	    q
17115	  }
17116	  s/.*/./; q'`/stamp-h$_am_stamp_count
17117 ;;
17118
17119  :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
17120$as_echo "$as_me: executing $ac_file commands" >&6;}
17121 ;;
17122  esac
17123
17124
17125  case $ac_file$ac_mode in
17126    "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
17127  # Autoconf 2.62 quotes --file arguments for eval, but not when files
17128  # are listed without --file.  Let's play safe and only enable the eval
17129  # if we detect the quoting.
17130  case $CONFIG_FILES in
17131  *\'*) eval set x "$CONFIG_FILES" ;;
17132  *)   set x $CONFIG_FILES ;;
17133  esac
17134  shift
17135  for mf
17136  do
17137    # Strip MF so we end up with the name of the file.
17138    mf=`echo "$mf" | sed -e 's/:.*$//'`
17139    # Check whether this is an Automake generated Makefile or not.
17140    # We used to match only the files named `Makefile.in', but
17141    # some people rename them; so instead we look at the file content.
17142    # Grep'ing the first line is not enough: some people post-process
17143    # each Makefile.in and add a new line on top of each file to say so.
17144    # Grep'ing the whole file is not good either: AIX grep has a line
17145    # limit of 2048, but all sed's we know have understand at least 4000.
17146    if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
17147      dirpart=`$as_dirname -- "$mf" ||
17148$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17149	 X"$mf" : 'X\(//\)[^/]' \| \
17150	 X"$mf" : 'X\(//\)$' \| \
17151	 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
17152$as_echo X"$mf" |
17153    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17154	    s//\1/
17155	    q
17156	  }
17157	  /^X\(\/\/\)[^/].*/{
17158	    s//\1/
17159	    q
17160	  }
17161	  /^X\(\/\/\)$/{
17162	    s//\1/
17163	    q
17164	  }
17165	  /^X\(\/\).*/{
17166	    s//\1/
17167	    q
17168	  }
17169	  s/.*/./; q'`
17170    else
17171      continue
17172    fi
17173    # Extract the definition of DEPDIR, am__include, and am__quote
17174    # from the Makefile without running `make'.
17175    DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
17176    test -z "$DEPDIR" && continue
17177    am__include=`sed -n 's/^am__include = //p' < "$mf"`
17178    test -z "am__include" && continue
17179    am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
17180    # When using ansi2knr, U may be empty or an underscore; expand it
17181    U=`sed -n 's/^U = //p' < "$mf"`
17182    # Find all dependency output files, they are included files with
17183    # $(DEPDIR) in their names.  We invoke sed twice because it is the
17184    # simplest approach to changing $(DEPDIR) to its actual value in the
17185    # expansion.
17186    for file in `sed -n "
17187      s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
17188	 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
17189      # Make sure the directory exists.
17190      test -f "$dirpart/$file" && continue
17191      fdir=`$as_dirname -- "$file" ||
17192$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17193	 X"$file" : 'X\(//\)[^/]' \| \
17194	 X"$file" : 'X\(//\)$' \| \
17195	 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
17196$as_echo X"$file" |
17197    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17198	    s//\1/
17199	    q
17200	  }
17201	  /^X\(\/\/\)[^/].*/{
17202	    s//\1/
17203	    q
17204	  }
17205	  /^X\(\/\/\)$/{
17206	    s//\1/
17207	    q
17208	  }
17209	  /^X\(\/\).*/{
17210	    s//\1/
17211	    q
17212	  }
17213	  s/.*/./; q'`
17214      as_dir=$dirpart/$fdir; as_fn_mkdir_p
17215      # echo "creating $dirpart/$file"
17216      echo '# dummy' > "$dirpart/$file"
17217    done
17218  done
17219}
17220 ;;
17221    "libtool":C)
17222
17223    # See if we are running on zsh, and set the options which allow our
17224    # commands through without removal of \ escapes.
17225    if test -n "${ZSH_VERSION+set}" ; then
17226      setopt NO_GLOB_SUBST
17227    fi
17228
17229    cfgfile="${ofile}T"
17230    trap "$RM \"$cfgfile\"; exit 1" 1 2 15
17231    $RM "$cfgfile"
17232
17233    cat <<_LT_EOF >> "$cfgfile"
17234#! $SHELL
17235
17236# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
17237# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
17238# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
17239# NOTE: Changes made to this file will be lost: look at ltmain.sh.
17240#
17241#   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
17242#                 2006, 2007, 2008, 2009, 2010 Free Software Foundation,
17243#                 Inc.
17244#   Written by Gordon Matzigkeit, 1996
17245#
17246#   This file is part of GNU Libtool.
17247#
17248# GNU Libtool is free software; you can redistribute it and/or
17249# modify it under the terms of the GNU General Public License as
17250# published by the Free Software Foundation; either version 2 of
17251# the License, or (at your option) any later version.
17252#
17253# As a special exception to the GNU General Public License,
17254# if you distribute this file as part of a program or library that
17255# is built using GNU Libtool, you may include this file under the
17256# same distribution terms that you use for the rest of that program.
17257#
17258# GNU Libtool is distributed in the hope that it will be useful,
17259# but WITHOUT ANY WARRANTY; without even the implied warranty of
17260# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
17261# GNU General Public License for more details.
17262#
17263# You should have received a copy of the GNU General Public License
17264# along with GNU Libtool; see the file COPYING.  If not, a copy
17265# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
17266# obtained by writing to the Free Software Foundation, Inc.,
17267# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
17268
17269
17270# The names of the tagged configurations supported by this script.
17271available_tags="CXX "
17272
17273# ### BEGIN LIBTOOL CONFIG
17274
17275# Which release of libtool.m4 was used?
17276macro_version=$macro_version
17277macro_revision=$macro_revision
17278
17279# Whether or not to build shared libraries.
17280build_libtool_libs=$enable_shared
17281
17282# Whether or not to build static libraries.
17283build_old_libs=$enable_static
17284
17285# What type of objects to build.
17286pic_mode=$pic_mode
17287
17288# Whether or not to optimize for fast installation.
17289fast_install=$enable_fast_install
17290
17291# Shell to use when invoking shell scripts.
17292SHELL=$lt_SHELL
17293
17294# An echo program that protects backslashes.
17295ECHO=$lt_ECHO
17296
17297# The host system.
17298host_alias=$host_alias
17299host=$host
17300host_os=$host_os
17301
17302# The build system.
17303build_alias=$build_alias
17304build=$build
17305build_os=$build_os
17306
17307# A sed program that does not truncate output.
17308SED=$lt_SED
17309
17310# Sed that helps us avoid accidentally triggering echo(1) options like -n.
17311Xsed="\$SED -e 1s/^X//"
17312
17313# A grep program that handles long lines.
17314GREP=$lt_GREP
17315
17316# An ERE matcher.
17317EGREP=$lt_EGREP
17318
17319# A literal string matcher.
17320FGREP=$lt_FGREP
17321
17322# A BSD- or MS-compatible name lister.
17323NM=$lt_NM
17324
17325# Whether we need soft or hard links.
17326LN_S=$lt_LN_S
17327
17328# What is the maximum length of a command?
17329max_cmd_len=$max_cmd_len
17330
17331# Object file suffix (normally "o").
17332objext=$ac_objext
17333
17334# Executable file suffix (normally "").
17335exeext=$exeext
17336
17337# whether the shell understands "unset".
17338lt_unset=$lt_unset
17339
17340# turn spaces into newlines.
17341SP2NL=$lt_lt_SP2NL
17342
17343# turn newlines into spaces.
17344NL2SP=$lt_lt_NL2SP
17345
17346# An object symbol dumper.
17347OBJDUMP=$lt_OBJDUMP
17348
17349# Method to check whether dependent libraries are shared objects.
17350deplibs_check_method=$lt_deplibs_check_method
17351
17352# Command to use when deplibs_check_method == "file_magic".
17353file_magic_cmd=$lt_file_magic_cmd
17354
17355# The archiver.
17356AR=$lt_AR
17357AR_FLAGS=$lt_AR_FLAGS
17358
17359# A symbol stripping program.
17360STRIP=$lt_STRIP
17361
17362# Commands used to install an old-style archive.
17363RANLIB=$lt_RANLIB
17364old_postinstall_cmds=$lt_old_postinstall_cmds
17365old_postuninstall_cmds=$lt_old_postuninstall_cmds
17366
17367# Whether to use a lock for old archive extraction.
17368lock_old_archive_extraction=$lock_old_archive_extraction
17369
17370# A C compiler.
17371LTCC=$lt_CC
17372
17373# LTCC compiler flags.
17374LTCFLAGS=$lt_CFLAGS
17375
17376# Take the output of nm and produce a listing of raw symbols and C names.
17377global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
17378
17379# Transform the output of nm in a proper C declaration.
17380global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
17381
17382# Transform the output of nm in a C name address pair.
17383global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
17384
17385# Transform the output of nm in a C name address pair when lib prefix is needed.
17386global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
17387
17388# The name of the directory that contains temporary libtool files.
17389objdir=$objdir
17390
17391# Used to examine libraries when file_magic_cmd begins with "file".
17392MAGIC_CMD=$MAGIC_CMD
17393
17394# Must we lock files when doing compilation?
17395need_locks=$lt_need_locks
17396
17397# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
17398DSYMUTIL=$lt_DSYMUTIL
17399
17400# Tool to change global to local symbols on Mac OS X.
17401NMEDIT=$lt_NMEDIT
17402
17403# Tool to manipulate fat objects and archives on Mac OS X.
17404LIPO=$lt_LIPO
17405
17406# ldd/readelf like tool for Mach-O binaries on Mac OS X.
17407OTOOL=$lt_OTOOL
17408
17409# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
17410OTOOL64=$lt_OTOOL64
17411
17412# Old archive suffix (normally "a").
17413libext=$libext
17414
17415# Shared library suffix (normally ".so").
17416shrext_cmds=$lt_shrext_cmds
17417
17418# The commands to extract the exported symbol list from a shared archive.
17419extract_expsyms_cmds=$lt_extract_expsyms_cmds
17420
17421# Variables whose values should be saved in libtool wrapper scripts and
17422# restored at link time.
17423variables_saved_for_relink=$lt_variables_saved_for_relink
17424
17425# Do we need the "lib" prefix for modules?
17426need_lib_prefix=$need_lib_prefix
17427
17428# Do we need a version for libraries?
17429need_version=$need_version
17430
17431# Library versioning type.
17432version_type=$version_type
17433
17434# Shared library runtime path variable.
17435runpath_var=$runpath_var
17436
17437# Shared library path variable.
17438shlibpath_var=$shlibpath_var
17439
17440# Is shlibpath searched before the hard-coded library search path?
17441shlibpath_overrides_runpath=$shlibpath_overrides_runpath
17442
17443# Format of library name prefix.
17444libname_spec=$lt_libname_spec
17445
17446# List of archive names.  First name is the real one, the rest are links.
17447# The last name is the one that the linker finds with -lNAME
17448library_names_spec=$lt_library_names_spec
17449
17450# The coded name of the library, if different from the real name.
17451soname_spec=$lt_soname_spec
17452
17453# Permission mode override for installation of shared libraries.
17454install_override_mode=$lt_install_override_mode
17455
17456# Command to use after installation of a shared archive.
17457postinstall_cmds=$lt_postinstall_cmds
17458
17459# Command to use after uninstallation of a shared archive.
17460postuninstall_cmds=$lt_postuninstall_cmds
17461
17462# Commands used to finish a libtool library installation in a directory.
17463finish_cmds=$lt_finish_cmds
17464
17465# As "finish_cmds", except a single script fragment to be evaled but
17466# not shown.
17467finish_eval=$lt_finish_eval
17468
17469# Whether we should hardcode library paths into libraries.
17470hardcode_into_libs=$hardcode_into_libs
17471
17472# Compile-time system search path for libraries.
17473sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
17474
17475# Run-time system search path for libraries.
17476sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
17477
17478# Whether dlopen is supported.
17479dlopen_support=$enable_dlopen
17480
17481# Whether dlopen of programs is supported.
17482dlopen_self=$enable_dlopen_self
17483
17484# Whether dlopen of statically linked programs is supported.
17485dlopen_self_static=$enable_dlopen_self_static
17486
17487# Commands to strip libraries.
17488old_striplib=$lt_old_striplib
17489striplib=$lt_striplib
17490
17491
17492# The linker used to build libraries.
17493LD=$lt_LD
17494
17495# How to create reloadable object files.
17496reload_flag=$lt_reload_flag
17497reload_cmds=$lt_reload_cmds
17498
17499# Commands used to build an old-style archive.
17500old_archive_cmds=$lt_old_archive_cmds
17501
17502# A language specific compiler.
17503CC=$lt_compiler
17504
17505# Is the compiler the GNU compiler?
17506with_gcc=$GCC
17507
17508# Compiler flag to turn off builtin functions.
17509no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
17510
17511# How to pass a linker flag through the compiler.
17512wl=$lt_lt_prog_compiler_wl
17513
17514# Additional compiler flags for building library objects.
17515pic_flag=$lt_lt_prog_compiler_pic
17516
17517# Compiler flag to prevent dynamic linking.
17518link_static_flag=$lt_lt_prog_compiler_static
17519
17520# Does compiler simultaneously support -c and -o options?
17521compiler_c_o=$lt_lt_cv_prog_compiler_c_o
17522
17523# Whether or not to add -lc for building shared libraries.
17524build_libtool_need_lc=$archive_cmds_need_lc
17525
17526# Whether or not to disallow shared libs when runtime libs are static.
17527allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
17528
17529# Compiler flag to allow reflexive dlopens.
17530export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
17531
17532# Compiler flag to generate shared objects directly from archives.
17533whole_archive_flag_spec=$lt_whole_archive_flag_spec
17534
17535# Whether the compiler copes with passing no objects directly.
17536compiler_needs_object=$lt_compiler_needs_object
17537
17538# Create an old-style archive from a shared archive.
17539old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
17540
17541# Create a temporary old-style archive to link instead of a shared archive.
17542old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
17543
17544# Commands used to build a shared archive.
17545archive_cmds=$lt_archive_cmds
17546archive_expsym_cmds=$lt_archive_expsym_cmds
17547
17548# Commands used to build a loadable module if different from building
17549# a shared archive.
17550module_cmds=$lt_module_cmds
17551module_expsym_cmds=$lt_module_expsym_cmds
17552
17553# Whether we are building with GNU ld or not.
17554with_gnu_ld=$lt_with_gnu_ld
17555
17556# Flag that allows shared libraries with undefined symbols to be built.
17557allow_undefined_flag=$lt_allow_undefined_flag
17558
17559# Flag that enforces no undefined symbols.
17560no_undefined_flag=$lt_no_undefined_flag
17561
17562# Flag to hardcode \$libdir into a binary during linking.
17563# This must work even if \$libdir does not exist
17564hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
17565
17566# If ld is used when linking, flag to hardcode \$libdir into a binary
17567# during linking.  This must work even if \$libdir does not exist.
17568hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
17569
17570# Whether we need a single "-rpath" flag with a separated argument.
17571hardcode_libdir_separator=$lt_hardcode_libdir_separator
17572
17573# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
17574# DIR into the resulting binary.
17575hardcode_direct=$hardcode_direct
17576
17577# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
17578# DIR into the resulting binary and the resulting library dependency is
17579# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
17580# library is relocated.
17581hardcode_direct_absolute=$hardcode_direct_absolute
17582
17583# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
17584# into the resulting binary.
17585hardcode_minus_L=$hardcode_minus_L
17586
17587# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
17588# into the resulting binary.
17589hardcode_shlibpath_var=$hardcode_shlibpath_var
17590
17591# Set to "yes" if building a shared library automatically hardcodes DIR
17592# into the library and all subsequent libraries and executables linked
17593# against it.
17594hardcode_automatic=$hardcode_automatic
17595
17596# Set to yes if linker adds runtime paths of dependent libraries
17597# to runtime path list.
17598inherit_rpath=$inherit_rpath
17599
17600# Whether libtool must link a program against all its dependency libraries.
17601link_all_deplibs=$link_all_deplibs
17602
17603# Fix the shell variable \$srcfile for the compiler.
17604fix_srcfile_path=$lt_fix_srcfile_path
17605
17606# Set to "yes" if exported symbols are required.
17607always_export_symbols=$always_export_symbols
17608
17609# The commands to list exported symbols.
17610export_symbols_cmds=$lt_export_symbols_cmds
17611
17612# Symbols that should not be listed in the preloaded symbols.
17613exclude_expsyms=$lt_exclude_expsyms
17614
17615# Symbols that must always be exported.
17616include_expsyms=$lt_include_expsyms
17617
17618# Commands necessary for linking programs (against libraries) with templates.
17619prelink_cmds=$lt_prelink_cmds
17620
17621# Specify filename containing input files.
17622file_list_spec=$lt_file_list_spec
17623
17624# How to hardcode a shared library path into an executable.
17625hardcode_action=$hardcode_action
17626
17627# The directories searched by this compiler when creating a shared library.
17628compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
17629
17630# Dependencies to place before and after the objects being linked to
17631# create a shared library.
17632predep_objects=$lt_predep_objects
17633postdep_objects=$lt_postdep_objects
17634predeps=$lt_predeps
17635postdeps=$lt_postdeps
17636
17637# The library search path used internally by the compiler when linking
17638# a shared library.
17639compiler_lib_search_path=$lt_compiler_lib_search_path
17640
17641# ### END LIBTOOL CONFIG
17642
17643_LT_EOF
17644
17645  case $host_os in
17646  aix3*)
17647    cat <<\_LT_EOF >> "$cfgfile"
17648# AIX sometimes has problems with the GCC collect2 program.  For some
17649# reason, if we set the COLLECT_NAMES environment variable, the problems
17650# vanish in a puff of smoke.
17651if test "X${COLLECT_NAMES+set}" != Xset; then
17652  COLLECT_NAMES=
17653  export COLLECT_NAMES
17654fi
17655_LT_EOF
17656    ;;
17657  esac
17658
17659
17660ltmain="$ac_aux_dir/ltmain.sh"
17661
17662
17663  # We use sed instead of cat because bash on DJGPP gets confused if
17664  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
17665  # text mode, it properly converts lines to CR/LF.  This bash problem
17666  # is reportedly fixed, but why not run on old versions too?
17667  sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
17668    || (rm -f "$cfgfile"; exit 1)
17669
17670  case $xsi_shell in
17671  yes)
17672    cat << \_LT_EOF >> "$cfgfile"
17673
17674# func_dirname file append nondir_replacement
17675# Compute the dirname of FILE.  If nonempty, add APPEND to the result,
17676# otherwise set result to NONDIR_REPLACEMENT.
17677func_dirname ()
17678{
17679  case ${1} in
17680    */*) func_dirname_result="${1%/*}${2}" ;;
17681    *  ) func_dirname_result="${3}" ;;
17682  esac
17683}
17684
17685# func_basename file
17686func_basename ()
17687{
17688  func_basename_result="${1##*/}"
17689}
17690
17691# func_dirname_and_basename file append nondir_replacement
17692# perform func_basename and func_dirname in a single function
17693# call:
17694#   dirname:  Compute the dirname of FILE.  If nonempty,
17695#             add APPEND to the result, otherwise set result
17696#             to NONDIR_REPLACEMENT.
17697#             value returned in "$func_dirname_result"
17698#   basename: Compute filename of FILE.
17699#             value retuned in "$func_basename_result"
17700# Implementation must be kept synchronized with func_dirname
17701# and func_basename. For efficiency, we do not delegate to
17702# those functions but instead duplicate the functionality here.
17703func_dirname_and_basename ()
17704{
17705  case ${1} in
17706    */*) func_dirname_result="${1%/*}${2}" ;;
17707    *  ) func_dirname_result="${3}" ;;
17708  esac
17709  func_basename_result="${1##*/}"
17710}
17711
17712# func_stripname prefix suffix name
17713# strip PREFIX and SUFFIX off of NAME.
17714# PREFIX and SUFFIX must not contain globbing or regex special
17715# characters, hashes, percent signs, but SUFFIX may contain a leading
17716# dot (in which case that matches only a dot).
17717func_stripname ()
17718{
17719  # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
17720  # positional parameters, so assign one to ordinary parameter first.
17721  func_stripname_result=${3}
17722  func_stripname_result=${func_stripname_result#"${1}"}
17723  func_stripname_result=${func_stripname_result%"${2}"}
17724}
17725
17726# func_opt_split
17727func_opt_split ()
17728{
17729  func_opt_split_opt=${1%%=*}
17730  func_opt_split_arg=${1#*=}
17731}
17732
17733# func_lo2o object
17734func_lo2o ()
17735{
17736  case ${1} in
17737    *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
17738    *)    func_lo2o_result=${1} ;;
17739  esac
17740}
17741
17742# func_xform libobj-or-source
17743func_xform ()
17744{
17745  func_xform_result=${1%.*}.lo
17746}
17747
17748# func_arith arithmetic-term...
17749func_arith ()
17750{
17751  func_arith_result=$(( $* ))
17752}
17753
17754# func_len string
17755# STRING may not start with a hyphen.
17756func_len ()
17757{
17758  func_len_result=${#1}
17759}
17760
17761_LT_EOF
17762    ;;
17763  *) # Bourne compatible functions.
17764    cat << \_LT_EOF >> "$cfgfile"
17765
17766# func_dirname file append nondir_replacement
17767# Compute the dirname of FILE.  If nonempty, add APPEND to the result,
17768# otherwise set result to NONDIR_REPLACEMENT.
17769func_dirname ()
17770{
17771  # Extract subdirectory from the argument.
17772  func_dirname_result=`$ECHO "${1}" | $SED "$dirname"`
17773  if test "X$func_dirname_result" = "X${1}"; then
17774    func_dirname_result="${3}"
17775  else
17776    func_dirname_result="$func_dirname_result${2}"
17777  fi
17778}
17779
17780# func_basename file
17781func_basename ()
17782{
17783  func_basename_result=`$ECHO "${1}" | $SED "$basename"`
17784}
17785
17786
17787# func_stripname prefix suffix name
17788# strip PREFIX and SUFFIX off of NAME.
17789# PREFIX and SUFFIX must not contain globbing or regex special
17790# characters, hashes, percent signs, but SUFFIX may contain a leading
17791# dot (in which case that matches only a dot).
17792# func_strip_suffix prefix name
17793func_stripname ()
17794{
17795  case ${2} in
17796    .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
17797    *)  func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
17798  esac
17799}
17800
17801# sed scripts:
17802my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
17803my_sed_long_arg='1s/^-[^=]*=//'
17804
17805# func_opt_split
17806func_opt_split ()
17807{
17808  func_opt_split_opt=`$ECHO "${1}" | $SED "$my_sed_long_opt"`
17809  func_opt_split_arg=`$ECHO "${1}" | $SED "$my_sed_long_arg"`
17810}
17811
17812# func_lo2o object
17813func_lo2o ()
17814{
17815  func_lo2o_result=`$ECHO "${1}" | $SED "$lo2o"`
17816}
17817
17818# func_xform libobj-or-source
17819func_xform ()
17820{
17821  func_xform_result=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'`
17822}
17823
17824# func_arith arithmetic-term...
17825func_arith ()
17826{
17827  func_arith_result=`expr "$@"`
17828}
17829
17830# func_len string
17831# STRING may not start with a hyphen.
17832func_len ()
17833{
17834  func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
17835}
17836
17837_LT_EOF
17838esac
17839
17840case $lt_shell_append in
17841  yes)
17842    cat << \_LT_EOF >> "$cfgfile"
17843
17844# func_append var value
17845# Append VALUE to the end of shell variable VAR.
17846func_append ()
17847{
17848  eval "$1+=\$2"
17849}
17850_LT_EOF
17851    ;;
17852  *)
17853    cat << \_LT_EOF >> "$cfgfile"
17854
17855# func_append var value
17856# Append VALUE to the end of shell variable VAR.
17857func_append ()
17858{
17859  eval "$1=\$$1\$2"
17860}
17861
17862_LT_EOF
17863    ;;
17864  esac
17865
17866
17867  sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
17868    || (rm -f "$cfgfile"; exit 1)
17869
17870  mv -f "$cfgfile" "$ofile" ||
17871    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
17872  chmod +x "$ofile"
17873
17874
17875    cat <<_LT_EOF >> "$ofile"
17876
17877# ### BEGIN LIBTOOL TAG CONFIG: CXX
17878
17879# The linker used to build libraries.
17880LD=$lt_LD_CXX
17881
17882# How to create reloadable object files.
17883reload_flag=$lt_reload_flag_CXX
17884reload_cmds=$lt_reload_cmds_CXX
17885
17886# Commands used to build an old-style archive.
17887old_archive_cmds=$lt_old_archive_cmds_CXX
17888
17889# A language specific compiler.
17890CC=$lt_compiler_CXX
17891
17892# Is the compiler the GNU compiler?
17893with_gcc=$GCC_CXX
17894
17895# Compiler flag to turn off builtin functions.
17896no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
17897
17898# How to pass a linker flag through the compiler.
17899wl=$lt_lt_prog_compiler_wl_CXX
17900
17901# Additional compiler flags for building library objects.
17902pic_flag=$lt_lt_prog_compiler_pic_CXX
17903
17904# Compiler flag to prevent dynamic linking.
17905link_static_flag=$lt_lt_prog_compiler_static_CXX
17906
17907# Does compiler simultaneously support -c and -o options?
17908compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
17909
17910# Whether or not to add -lc for building shared libraries.
17911build_libtool_need_lc=$archive_cmds_need_lc_CXX
17912
17913# Whether or not to disallow shared libs when runtime libs are static.
17914allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
17915
17916# Compiler flag to allow reflexive dlopens.
17917export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
17918
17919# Compiler flag to generate shared objects directly from archives.
17920whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
17921
17922# Whether the compiler copes with passing no objects directly.
17923compiler_needs_object=$lt_compiler_needs_object_CXX
17924
17925# Create an old-style archive from a shared archive.
17926old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
17927
17928# Create a temporary old-style archive to link instead of a shared archive.
17929old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
17930
17931# Commands used to build a shared archive.
17932archive_cmds=$lt_archive_cmds_CXX
17933archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
17934
17935# Commands used to build a loadable module if different from building
17936# a shared archive.
17937module_cmds=$lt_module_cmds_CXX
17938module_expsym_cmds=$lt_module_expsym_cmds_CXX
17939
17940# Whether we are building with GNU ld or not.
17941with_gnu_ld=$lt_with_gnu_ld_CXX
17942
17943# Flag that allows shared libraries with undefined symbols to be built.
17944allow_undefined_flag=$lt_allow_undefined_flag_CXX
17945
17946# Flag that enforces no undefined symbols.
17947no_undefined_flag=$lt_no_undefined_flag_CXX
17948
17949# Flag to hardcode \$libdir into a binary during linking.
17950# This must work even if \$libdir does not exist
17951hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
17952
17953# If ld is used when linking, flag to hardcode \$libdir into a binary
17954# during linking.  This must work even if \$libdir does not exist.
17955hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
17956
17957# Whether we need a single "-rpath" flag with a separated argument.
17958hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
17959
17960# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
17961# DIR into the resulting binary.
17962hardcode_direct=$hardcode_direct_CXX
17963
17964# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
17965# DIR into the resulting binary and the resulting library dependency is
17966# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
17967# library is relocated.
17968hardcode_direct_absolute=$hardcode_direct_absolute_CXX
17969
17970# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
17971# into the resulting binary.
17972hardcode_minus_L=$hardcode_minus_L_CXX
17973
17974# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
17975# into the resulting binary.
17976hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
17977
17978# Set to "yes" if building a shared library automatically hardcodes DIR
17979# into the library and all subsequent libraries and executables linked
17980# against it.
17981hardcode_automatic=$hardcode_automatic_CXX
17982
17983# Set to yes if linker adds runtime paths of dependent libraries
17984# to runtime path list.
17985inherit_rpath=$inherit_rpath_CXX
17986
17987# Whether libtool must link a program against all its dependency libraries.
17988link_all_deplibs=$link_all_deplibs_CXX
17989
17990# Fix the shell variable \$srcfile for the compiler.
17991fix_srcfile_path=$lt_fix_srcfile_path_CXX
17992
17993# Set to "yes" if exported symbols are required.
17994always_export_symbols=$always_export_symbols_CXX
17995
17996# The commands to list exported symbols.
17997export_symbols_cmds=$lt_export_symbols_cmds_CXX
17998
17999# Symbols that should not be listed in the preloaded symbols.
18000exclude_expsyms=$lt_exclude_expsyms_CXX
18001
18002# Symbols that must always be exported.
18003include_expsyms=$lt_include_expsyms_CXX
18004
18005# Commands necessary for linking programs (against libraries) with templates.
18006prelink_cmds=$lt_prelink_cmds_CXX
18007
18008# Specify filename containing input files.
18009file_list_spec=$lt_file_list_spec_CXX
18010
18011# How to hardcode a shared library path into an executable.
18012hardcode_action=$hardcode_action_CXX
18013
18014# The directories searched by this compiler when creating a shared library.
18015compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
18016
18017# Dependencies to place before and after the objects being linked to
18018# create a shared library.
18019predep_objects=$lt_predep_objects_CXX
18020postdep_objects=$lt_postdep_objects_CXX
18021predeps=$lt_predeps_CXX
18022postdeps=$lt_postdeps_CXX
18023
18024# The library search path used internally by the compiler when linking
18025# a shared library.
18026compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
18027
18028# ### END LIBTOOL TAG CONFIG: CXX
18029_LT_EOF
18030
18031 ;;
18032
18033  esac
18034done # for ac_tag
18035
18036
18037as_fn_exit 0
18038_ACEOF
18039ac_clean_files=$ac_clean_files_save
18040
18041test $ac_write_fail = 0 ||
18042  as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
18043
18044
18045# configure is writing to config.log, and then calls config.status.
18046# config.status does its own redirection, appending to config.log.
18047# Unfortunately, on DOS this fails, as config.log is still kept open
18048# by configure, so config.status won't be able to write to it; its
18049# output is simply discarded.  So we exec the FD to /dev/null,
18050# effectively closing config.log, so it can be properly (re)opened and
18051# appended to by config.status.  When coming back to configure, we
18052# need to make the FD available again.
18053if test "$no_create" != yes; then
18054  ac_cs_success=:
18055  ac_config_status_args=
18056  test "$silent" = yes &&
18057    ac_config_status_args="$ac_config_status_args --quiet"
18058  exec 5>/dev/null
18059  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
18060  exec 5>>config.log
18061  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
18062  # would make configure fail if this is the last instruction.
18063  $ac_cs_success || as_fn_exit $?
18064fi
18065if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
18066  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
18067$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
18068fi
18069
18070
18071{ $as_echo "$as_me:${as_lineno-$LINENO}: result:
18072Build options:
18073  $PACKAGE			$VERSION
18074  archtecture		$arch_type
18075  Win			$os_win
18076  enable-assembly	$assembly
18077" >&5
18078$as_echo "
18079Build options:
18080  $PACKAGE			$VERSION
18081  archtecture		$arch_type
18082  Win			$os_win
18083  enable-assembly	$assembly
18084" >&6; }
18085if test "$assembly" = "yes"; then
18086{ $as_echo "$as_me:${as_lineno-$LINENO}: result:
18087  Yasm			$YASM
18088  YASM_ARCH		$YASM_ARCH
18089  YASM_FORMAT		$YASM_FORMAT
18090" >&5
18091$as_echo "
18092  Yasm			$YASM
18093  YASM_ARCH		$YASM_ARCH
18094  YASM_FORMAT		$YASM_FORMAT
18095" >&6; }
18096fi
18097