configure revision 1.1.1.1
1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.64 for LTO plugin for ld 0.1.
4#
5# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
6# 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software
7# Foundation, Inc.
8#
9# This configure script is free software; the Free Software Foundation
10# gives unlimited permission to copy, distribute and modify it.
11## -------------------- ##
12## M4sh Initialization. ##
13## -------------------- ##
14
15# Be more Bourne compatible
16DUALCASE=1; export DUALCASE # for MKS sh
17if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
18  emulate sh
19  NULLCMD=:
20  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
21  # is contrary to our usage.  Disable this feature.
22  alias -g '${1+"$@"}'='"$@"'
23  setopt NO_GLOB_SUBST
24else
25  case `(set -o) 2>/dev/null` in #(
26  *posix*) :
27    set -o posix ;; #(
28  *) :
29     ;;
30esac
31fi
32
33
34as_nl='
35'
36export as_nl
37# Printing a long string crashes Solaris 7 /usr/bin/printf.
38as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
39as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
40as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
41# Prefer a ksh shell builtin over an external printf program on Solaris,
42# but without wasting forks for bash or zsh.
43if test -z "$BASH_VERSION$ZSH_VERSION" \
44    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
45  as_echo='print -r --'
46  as_echo_n='print -rn --'
47elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
48  as_echo='printf %s\n'
49  as_echo_n='printf %s'
50else
51  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
52    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
53    as_echo_n='/usr/ucb/echo -n'
54  else
55    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
56    as_echo_n_body='eval
57      arg=$1;
58      case $arg in #(
59      *"$as_nl"*)
60	expr "X$arg" : "X\\(.*\\)$as_nl";
61	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
62      esac;
63      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
64    '
65    export as_echo_n_body
66    as_echo_n='sh -c $as_echo_n_body as_echo'
67  fi
68  export as_echo_body
69  as_echo='sh -c $as_echo_body as_echo'
70fi
71
72# The user is always right.
73if test "${PATH_SEPARATOR+set}" != set; then
74  PATH_SEPARATOR=:
75  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
76    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
77      PATH_SEPARATOR=';'
78  }
79fi
80
81
82# IFS
83# We need space, tab and new line, in precisely that order.  Quoting is
84# there to prevent editors from complaining about space-tab.
85# (If _AS_PATH_WALK were called with IFS unset, it would disable word
86# splitting by setting IFS to empty value.)
87IFS=" ""	$as_nl"
88
89# Find who we are.  Look in the path if we contain no directory separator.
90case $0 in #((
91  *[\\/]* ) as_myself=$0 ;;
92  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
93for as_dir in $PATH
94do
95  IFS=$as_save_IFS
96  test -z "$as_dir" && as_dir=.
97    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
98  done
99IFS=$as_save_IFS
100
101     ;;
102esac
103# We did not find ourselves, most probably we were run as `sh COMMAND'
104# in which case we are not to be found in the path.
105if test "x$as_myself" = x; then
106  as_myself=$0
107fi
108if test ! -f "$as_myself"; then
109  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
110  exit 1
111fi
112
113# Unset variables that we do not need and which cause bugs (e.g. in
114# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
115# suppresses any "Segmentation fault" message there.  '((' could
116# trigger a bug in pdksh 5.2.14.
117for as_var in BASH_ENV ENV MAIL MAILPATH
118do eval test x\${$as_var+set} = xset \
119  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
120done
121PS1='$ '
122PS2='> '
123PS4='+ '
124
125# NLS nuisances.
126LC_ALL=C
127export LC_ALL
128LANGUAGE=C
129export LANGUAGE
130
131# CDPATH.
132(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
133
134if test "x$CONFIG_SHELL" = x; then
135  as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
136  emulate sh
137  NULLCMD=:
138  # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
139  # is contrary to our usage.  Disable this feature.
140  alias -g '\${1+\"\$@\"}'='\"\$@\"'
141  setopt NO_GLOB_SUBST
142else
143  case \`(set -o) 2>/dev/null\` in #(
144  *posix*) :
145    set -o posix ;; #(
146  *) :
147     ;;
148esac
149fi
150"
151  as_required="as_fn_return () { (exit \$1); }
152as_fn_success () { as_fn_return 0; }
153as_fn_failure () { as_fn_return 1; }
154as_fn_ret_success () { return 0; }
155as_fn_ret_failure () { return 1; }
156
157exitcode=0
158as_fn_success || { exitcode=1; echo as_fn_success failed.; }
159as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
160as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
161as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
162if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
163
164else
165  exitcode=1; echo positional parameters were not saved.
166fi
167test x\$exitcode = x0 || exit 1"
168  as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
169  as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
170  eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
171  test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
172
173  test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
174    ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
175    ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
176    ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
177    PATH=/empty FPATH=/empty; export PATH FPATH
178    test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
179      || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1
180test \$(( 1 + 1 )) = 2 || exit 1"
181  if (eval "$as_required") 2>/dev/null; then :
182  as_have_required=yes
183else
184  as_have_required=no
185fi
186  if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
187
188else
189  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
190as_found=false
191for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
192do
193  IFS=$as_save_IFS
194  test -z "$as_dir" && as_dir=.
195  as_found=:
196  case $as_dir in #(
197	 /*)
198	   for as_base in sh bash ksh sh5; do
199	     # Try only shells that exist, to save several forks.
200	     as_shell=$as_dir/$as_base
201	     if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
202		    { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
203  CONFIG_SHELL=$as_shell as_have_required=yes
204		   if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
205  break 2
206fi
207fi
208	   done;;
209       esac
210  as_found=false
211done
212$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
213	      { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
214  CONFIG_SHELL=$SHELL as_have_required=yes
215fi; }
216IFS=$as_save_IFS
217
218
219      if test "x$CONFIG_SHELL" != x; then :
220  # We cannot yet assume a decent shell, so we have to provide a
221	# neutralization value for shells without unset; and this also
222	# works around shells that cannot unset nonexistent variables.
223	BASH_ENV=/dev/null
224	ENV=/dev/null
225	(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
226	export CONFIG_SHELL
227	exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
228fi
229
230    if test x$as_have_required = xno; then :
231  $as_echo "$0: This script requires a shell more modern than all"
232  $as_echo "$0: the shells that I found on your system."
233  if test x${ZSH_VERSION+set} = xset ; then
234    $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
235    $as_echo "$0: be upgraded to zsh 4.3.4 or later."
236  else
237    $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
238$0: including any error possibly output before this
239$0: message. Then install a modern shell, or manually run
240$0: the script under such a shell if you do have one."
241  fi
242  exit 1
243fi
244fi
245fi
246SHELL=${CONFIG_SHELL-/bin/sh}
247export SHELL
248# Unset more variables known to interfere with behavior of common tools.
249CLICOLOR_FORCE= GREP_OPTIONS=
250unset CLICOLOR_FORCE GREP_OPTIONS
251
252## --------------------- ##
253## M4sh Shell Functions. ##
254## --------------------- ##
255# as_fn_unset VAR
256# ---------------
257# Portably unset VAR.
258as_fn_unset ()
259{
260  { eval $1=; unset $1;}
261}
262as_unset=as_fn_unset
263
264# as_fn_set_status STATUS
265# -----------------------
266# Set $? to STATUS, without forking.
267as_fn_set_status ()
268{
269  return $1
270} # as_fn_set_status
271
272# as_fn_exit STATUS
273# -----------------
274# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
275as_fn_exit ()
276{
277  set +e
278  as_fn_set_status $1
279  exit $1
280} # as_fn_exit
281
282# as_fn_mkdir_p
283# -------------
284# Create "$as_dir" as a directory, including parents if necessary.
285as_fn_mkdir_p ()
286{
287
288  case $as_dir in #(
289  -*) as_dir=./$as_dir;;
290  esac
291  test -d "$as_dir" || eval $as_mkdir_p || {
292    as_dirs=
293    while :; do
294      case $as_dir in #(
295      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
296      *) as_qdir=$as_dir;;
297      esac
298      as_dirs="'$as_qdir' $as_dirs"
299      as_dir=`$as_dirname -- "$as_dir" ||
300$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
301	 X"$as_dir" : 'X\(//\)[^/]' \| \
302	 X"$as_dir" : 'X\(//\)$' \| \
303	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
304$as_echo X"$as_dir" |
305    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
306	    s//\1/
307	    q
308	  }
309	  /^X\(\/\/\)[^/].*/{
310	    s//\1/
311	    q
312	  }
313	  /^X\(\/\/\)$/{
314	    s//\1/
315	    q
316	  }
317	  /^X\(\/\).*/{
318	    s//\1/
319	    q
320	  }
321	  s/.*/./; q'`
322      test -d "$as_dir" && break
323    done
324    test -z "$as_dirs" || eval "mkdir $as_dirs"
325  } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
326
327
328} # as_fn_mkdir_p
329# as_fn_append VAR VALUE
330# ----------------------
331# Append the text in VALUE to the end of the definition contained in VAR. Take
332# advantage of any shell optimizations that allow amortized linear growth over
333# repeated appends, instead of the typical quadratic growth present in naive
334# implementations.
335if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
336  eval 'as_fn_append ()
337  {
338    eval $1+=\$2
339  }'
340else
341  as_fn_append ()
342  {
343    eval $1=\$$1\$2
344  }
345fi # as_fn_append
346
347# as_fn_arith ARG...
348# ------------------
349# Perform arithmetic evaluation on the ARGs, and store the result in the
350# global $as_val. Take advantage of shells that can avoid forks. The arguments
351# must be portable across $(()) and expr.
352if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
353  eval 'as_fn_arith ()
354  {
355    as_val=$(( $* ))
356  }'
357else
358  as_fn_arith ()
359  {
360    as_val=`expr "$@" || test $? -eq 1`
361  }
362fi # as_fn_arith
363
364
365# as_fn_error ERROR [LINENO LOG_FD]
366# ---------------------------------
367# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
368# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
369# script with status $?, using 1 if that was 0.
370as_fn_error ()
371{
372  as_status=$?; test $as_status -eq 0 && as_status=1
373  if test "$3"; then
374    as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
375    $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
376  fi
377  $as_echo "$as_me: error: $1" >&2
378  as_fn_exit $as_status
379} # as_fn_error
380
381if expr a : '\(a\)' >/dev/null 2>&1 &&
382   test "X`expr 00001 : '.*\(...\)'`" = X001; then
383  as_expr=expr
384else
385  as_expr=false
386fi
387
388if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
389  as_basename=basename
390else
391  as_basename=false
392fi
393
394if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
395  as_dirname=dirname
396else
397  as_dirname=false
398fi
399
400as_me=`$as_basename -- "$0" ||
401$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
402	 X"$0" : 'X\(//\)$' \| \
403	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
404$as_echo X/"$0" |
405    sed '/^.*\/\([^/][^/]*\)\/*$/{
406	    s//\1/
407	    q
408	  }
409	  /^X\/\(\/\/\)$/{
410	    s//\1/
411	    q
412	  }
413	  /^X\/\(\/\).*/{
414	    s//\1/
415	    q
416	  }
417	  s/.*/./; q'`
418
419# Avoid depending upon Character Ranges.
420as_cr_letters='abcdefghijklmnopqrstuvwxyz'
421as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
422as_cr_Letters=$as_cr_letters$as_cr_LETTERS
423as_cr_digits='0123456789'
424as_cr_alnum=$as_cr_Letters$as_cr_digits
425
426
427  as_lineno_1=$LINENO as_lineno_1a=$LINENO
428  as_lineno_2=$LINENO as_lineno_2a=$LINENO
429  eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
430  test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
431  # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
432  sed -n '
433    p
434    /[$]LINENO/=
435  ' <$as_myself |
436    sed '
437      s/[$]LINENO.*/&-/
438      t lineno
439      b
440      :lineno
441      N
442      :loop
443      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
444      t loop
445      s/-\n.*//
446    ' >$as_me.lineno &&
447  chmod +x "$as_me.lineno" ||
448    { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
449
450  # Don't try to exec as it changes $[0], causing all sort of problems
451  # (the dirname of $[0] is not the place where we might find the
452  # original and so on.  Autoconf is especially sensitive to this).
453  . "./$as_me.lineno"
454  # Exit status is that of the last command.
455  exit
456}
457
458ECHO_C= ECHO_N= ECHO_T=
459case `echo -n x` in #(((((
460-n*)
461  case `echo 'xy\c'` in
462  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
463  xy)  ECHO_C='\c';;
464  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
465       ECHO_T='	';;
466  esac;;
467*)
468  ECHO_N='-n';;
469esac
470
471rm -f conf$$ conf$$.exe conf$$.file
472if test -d conf$$.dir; then
473  rm -f conf$$.dir/conf$$.file
474else
475  rm -f conf$$.dir
476  mkdir conf$$.dir 2>/dev/null
477fi
478if (echo >conf$$.file) 2>/dev/null; then
479  if ln -s conf$$.file conf$$ 2>/dev/null; then
480    as_ln_s='ln -s'
481    # ... but there are two gotchas:
482    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
483    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
484    # In both cases, we have to default to `cp -p'.
485    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
486      as_ln_s='cp -p'
487  elif ln conf$$.file conf$$ 2>/dev/null; then
488    as_ln_s=ln
489  else
490    as_ln_s='cp -p'
491  fi
492else
493  as_ln_s='cp -p'
494fi
495rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
496rmdir conf$$.dir 2>/dev/null
497
498if mkdir -p . 2>/dev/null; then
499  as_mkdir_p='mkdir -p "$as_dir"'
500else
501  test -d ./-p && rmdir ./-p
502  as_mkdir_p=false
503fi
504
505if test -x / >/dev/null 2>&1; then
506  as_test_x='test -x'
507else
508  if ls -dL / >/dev/null 2>&1; then
509    as_ls_L_option=L
510  else
511    as_ls_L_option=
512  fi
513  as_test_x='
514    eval sh -c '\''
515      if test -d "$1"; then
516	test -d "$1/.";
517      else
518	case $1 in #(
519	-*)set "./$1";;
520	esac;
521	case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
522	???[sx]*):;;*)false;;esac;fi
523    '\'' sh
524  '
525fi
526as_executable_p=$as_test_x
527
528# Sed expression to map a string onto a valid CPP name.
529as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
530
531# Sed expression to map a string onto a valid variable name.
532as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
533
534SHELL=${CONFIG_SHELL-/bin/sh}
535
536
537exec 7<&0 </dev/null 6>&1
538
539# Name of the host.
540# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
541# so uname gets run too.
542ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
543
544#
545# Initializations.
546#
547ac_default_prefix=/usr/local
548ac_clean_files=
549ac_config_libobj_dir=.
550LIBOBJS=
551cross_compiling=no
552subdirs=
553MFLAGS=
554MAKEFLAGS=
555
556# Identity of this package.
557PACKAGE_NAME='LTO plugin for ld'
558PACKAGE_TARNAME='lto-plugin'
559PACKAGE_VERSION='0.1'
560PACKAGE_STRING='LTO plugin for ld 0.1'
561PACKAGE_BUGREPORT=''
562PACKAGE_URL=''
563
564# Factoring default headers for most tests.
565ac_includes_default="\
566#include <stdio.h>
567#ifdef HAVE_SYS_TYPES_H
568# include <sys/types.h>
569#endif
570#ifdef HAVE_SYS_STAT_H
571# include <sys/stat.h>
572#endif
573#ifdef STDC_HEADERS
574# include <stdlib.h>
575# include <stddef.h>
576#else
577# ifdef HAVE_STDLIB_H
578#  include <stdlib.h>
579# endif
580#endif
581#ifdef HAVE_STRING_H
582# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
583#  include <memory.h>
584# endif
585# include <string.h>
586#endif
587#ifdef HAVE_STRINGS_H
588# include <strings.h>
589#endif
590#ifdef HAVE_INTTYPES_H
591# include <inttypes.h>
592#endif
593#ifdef HAVE_STDINT_H
594# include <stdint.h>
595#endif
596#ifdef HAVE_UNISTD_H
597# include <unistd.h>
598#endif"
599
600ac_subst_vars='am__EXEEXT_FALSE
601am__EXEEXT_TRUE
602LTLIBOBJS
603LIBOBJS
604target_noncanonical
605CPP
606OTOOL64
607OTOOL
608LIPO
609NMEDIT
610DSYMUTIL
611RANLIB
612AR
613OBJDUMP
614LN_S
615NM
616ac_ct_DUMPBIN
617DUMPBIN
618LD
619FGREP
620EGREP
621GREP
622SED
623host_os
624host_vendor
625host_cpu
626host
627LIBTOOL
628LIBELFINC
629LIBELFLIBS
630am__fastdepCC_FALSE
631am__fastdepCC_TRUE
632CCDEPMODE
633AMDEPBACKSLASH
634AMDEP_FALSE
635AMDEP_TRUE
636am__quote
637am__include
638DEPDIR
639OBJEXT
640EXEEXT
641ac_ct_CC
642CPPFLAGS
643LDFLAGS
644CFLAGS
645CC
646MAINT
647MAINTAINER_MODE_FALSE
648MAINTAINER_MODE_TRUE
649am__untar
650am__tar
651AMTAR
652am__leading_dot
653SET_MAKE
654AWK
655mkdir_p
656MKDIR_P
657INSTALL_STRIP_PROGRAM
658STRIP
659install_sh
660MAKEINFO
661AUTOHEADER
662AUTOMAKE
663AUTOCONF
664ACLOCAL
665VERSION
666PACKAGE
667CYGPATH_W
668am__isrc
669INSTALL_DATA
670INSTALL_SCRIPT
671INSTALL_PROGRAM
672target_subdir
673host_subdir
674build_subdir
675build_libsubdir
676build_os
677build_vendor
678build_cpu
679build
680target_alias
681host_alias
682build_alias
683LIBS
684ECHO_T
685ECHO_N
686ECHO_C
687DEFS
688mandir
689localedir
690libdir
691psdir
692pdfdir
693dvidir
694htmldir
695infodir
696docdir
697oldincludedir
698includedir
699localstatedir
700sharedstatedir
701sysconfdir
702datadir
703datarootdir
704libexecdir
705sbindir
706bindir
707program_transform_name
708prefix
709exec_prefix
710PACKAGE_URL
711PACKAGE_BUGREPORT
712PACKAGE_STRING
713PACKAGE_VERSION
714PACKAGE_TARNAME
715PACKAGE_NAME
716PATH_SEPARATOR
717SHELL'
718ac_subst_files=''
719ac_user_opts='
720enable_option_checking
721with_build_libsubdir
722enable_maintainer_mode
723enable_dependency_tracking
724enable_largefile
725enable_shared
726enable_static
727with_pic
728enable_fast_install
729with_gnu_ld
730enable_libtool_lock
731'
732      ac_precious_vars='build_alias
733host_alias
734target_alias
735CC
736CFLAGS
737LDFLAGS
738LIBS
739CPPFLAGS
740LIBELFLIBS
741LIBELFINC
742CPP'
743
744
745# Initialize some variables set by options.
746ac_init_help=
747ac_init_version=false
748ac_unrecognized_opts=
749ac_unrecognized_sep=
750# The variables have the same names as the options, with
751# dashes changed to underlines.
752cache_file=/dev/null
753exec_prefix=NONE
754no_create=
755no_recursion=
756prefix=NONE
757program_prefix=NONE
758program_suffix=NONE
759program_transform_name=s,x,x,
760silent=
761site=
762srcdir=
763verbose=
764x_includes=NONE
765x_libraries=NONE
766
767# Installation directory options.
768# These are left unexpanded so users can "make install exec_prefix=/foo"
769# and all the variables that are supposed to be based on exec_prefix
770# by default will actually change.
771# Use braces instead of parens because sh, perl, etc. also accept them.
772# (The list follows the same order as the GNU Coding Standards.)
773bindir='${exec_prefix}/bin'
774sbindir='${exec_prefix}/sbin'
775libexecdir='${exec_prefix}/libexec'
776datarootdir='${prefix}/share'
777datadir='${datarootdir}'
778sysconfdir='${prefix}/etc'
779sharedstatedir='${prefix}/com'
780localstatedir='${prefix}/var'
781includedir='${prefix}/include'
782oldincludedir='/usr/include'
783docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
784infodir='${datarootdir}/info'
785htmldir='${docdir}'
786dvidir='${docdir}'
787pdfdir='${docdir}'
788psdir='${docdir}'
789libdir='${exec_prefix}/lib'
790localedir='${datarootdir}/locale'
791mandir='${datarootdir}/man'
792
793ac_prev=
794ac_dashdash=
795for ac_option
796do
797  # If the previous option needs an argument, assign it.
798  if test -n "$ac_prev"; then
799    eval $ac_prev=\$ac_option
800    ac_prev=
801    continue
802  fi
803
804  case $ac_option in
805  *=*)	ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
806  *)	ac_optarg=yes ;;
807  esac
808
809  # Accept the important Cygnus configure options, so we can diagnose typos.
810
811  case $ac_dashdash$ac_option in
812  --)
813    ac_dashdash=yes ;;
814
815  -bindir | --bindir | --bindi | --bind | --bin | --bi)
816    ac_prev=bindir ;;
817  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
818    bindir=$ac_optarg ;;
819
820  -build | --build | --buil | --bui | --bu)
821    ac_prev=build_alias ;;
822  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
823    build_alias=$ac_optarg ;;
824
825  -cache-file | --cache-file | --cache-fil | --cache-fi \
826  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
827    ac_prev=cache_file ;;
828  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
829  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
830    cache_file=$ac_optarg ;;
831
832  --config-cache | -C)
833    cache_file=config.cache ;;
834
835  -datadir | --datadir | --datadi | --datad)
836    ac_prev=datadir ;;
837  -datadir=* | --datadir=* | --datadi=* | --datad=*)
838    datadir=$ac_optarg ;;
839
840  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
841  | --dataroo | --dataro | --datar)
842    ac_prev=datarootdir ;;
843  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
844  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
845    datarootdir=$ac_optarg ;;
846
847  -disable-* | --disable-*)
848    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
849    # Reject names that are not valid shell variable names.
850    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
851      as_fn_error "invalid feature name: $ac_useropt"
852    ac_useropt_orig=$ac_useropt
853    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
854    case $ac_user_opts in
855      *"
856"enable_$ac_useropt"
857"*) ;;
858      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
859	 ac_unrecognized_sep=', ';;
860    esac
861    eval enable_$ac_useropt=no ;;
862
863  -docdir | --docdir | --docdi | --doc | --do)
864    ac_prev=docdir ;;
865  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
866    docdir=$ac_optarg ;;
867
868  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
869    ac_prev=dvidir ;;
870  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
871    dvidir=$ac_optarg ;;
872
873  -enable-* | --enable-*)
874    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
875    # Reject names that are not valid shell variable names.
876    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
877      as_fn_error "invalid feature name: $ac_useropt"
878    ac_useropt_orig=$ac_useropt
879    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
880    case $ac_user_opts in
881      *"
882"enable_$ac_useropt"
883"*) ;;
884      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
885	 ac_unrecognized_sep=', ';;
886    esac
887    eval enable_$ac_useropt=\$ac_optarg ;;
888
889  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
890  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
891  | --exec | --exe | --ex)
892    ac_prev=exec_prefix ;;
893  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
894  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
895  | --exec=* | --exe=* | --ex=*)
896    exec_prefix=$ac_optarg ;;
897
898  -gas | --gas | --ga | --g)
899    # Obsolete; use --with-gas.
900    with_gas=yes ;;
901
902  -help | --help | --hel | --he | -h)
903    ac_init_help=long ;;
904  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
905    ac_init_help=recursive ;;
906  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
907    ac_init_help=short ;;
908
909  -host | --host | --hos | --ho)
910    ac_prev=host_alias ;;
911  -host=* | --host=* | --hos=* | --ho=*)
912    host_alias=$ac_optarg ;;
913
914  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
915    ac_prev=htmldir ;;
916  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
917  | --ht=*)
918    htmldir=$ac_optarg ;;
919
920  -includedir | --includedir | --includedi | --included | --include \
921  | --includ | --inclu | --incl | --inc)
922    ac_prev=includedir ;;
923  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
924  | --includ=* | --inclu=* | --incl=* | --inc=*)
925    includedir=$ac_optarg ;;
926
927  -infodir | --infodir | --infodi | --infod | --info | --inf)
928    ac_prev=infodir ;;
929  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
930    infodir=$ac_optarg ;;
931
932  -libdir | --libdir | --libdi | --libd)
933    ac_prev=libdir ;;
934  -libdir=* | --libdir=* | --libdi=* | --libd=*)
935    libdir=$ac_optarg ;;
936
937  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
938  | --libexe | --libex | --libe)
939    ac_prev=libexecdir ;;
940  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
941  | --libexe=* | --libex=* | --libe=*)
942    libexecdir=$ac_optarg ;;
943
944  -localedir | --localedir | --localedi | --localed | --locale)
945    ac_prev=localedir ;;
946  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
947    localedir=$ac_optarg ;;
948
949  -localstatedir | --localstatedir | --localstatedi | --localstated \
950  | --localstate | --localstat | --localsta | --localst | --locals)
951    ac_prev=localstatedir ;;
952  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
953  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
954    localstatedir=$ac_optarg ;;
955
956  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
957    ac_prev=mandir ;;
958  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
959    mandir=$ac_optarg ;;
960
961  -nfp | --nfp | --nf)
962    # Obsolete; use --without-fp.
963    with_fp=no ;;
964
965  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
966  | --no-cr | --no-c | -n)
967    no_create=yes ;;
968
969  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
970  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
971    no_recursion=yes ;;
972
973  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
974  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
975  | --oldin | --oldi | --old | --ol | --o)
976    ac_prev=oldincludedir ;;
977  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
978  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
979  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
980    oldincludedir=$ac_optarg ;;
981
982  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
983    ac_prev=prefix ;;
984  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
985    prefix=$ac_optarg ;;
986
987  -program-prefix | --program-prefix | --program-prefi | --program-pref \
988  | --program-pre | --program-pr | --program-p)
989    ac_prev=program_prefix ;;
990  -program-prefix=* | --program-prefix=* | --program-prefi=* \
991  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
992    program_prefix=$ac_optarg ;;
993
994  -program-suffix | --program-suffix | --program-suffi | --program-suff \
995  | --program-suf | --program-su | --program-s)
996    ac_prev=program_suffix ;;
997  -program-suffix=* | --program-suffix=* | --program-suffi=* \
998  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
999    program_suffix=$ac_optarg ;;
1000
1001  -program-transform-name | --program-transform-name \
1002  | --program-transform-nam | --program-transform-na \
1003  | --program-transform-n | --program-transform- \
1004  | --program-transform | --program-transfor \
1005  | --program-transfo | --program-transf \
1006  | --program-trans | --program-tran \
1007  | --progr-tra | --program-tr | --program-t)
1008    ac_prev=program_transform_name ;;
1009  -program-transform-name=* | --program-transform-name=* \
1010  | --program-transform-nam=* | --program-transform-na=* \
1011  | --program-transform-n=* | --program-transform-=* \
1012  | --program-transform=* | --program-transfor=* \
1013  | --program-transfo=* | --program-transf=* \
1014  | --program-trans=* | --program-tran=* \
1015  | --progr-tra=* | --program-tr=* | --program-t=*)
1016    program_transform_name=$ac_optarg ;;
1017
1018  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1019    ac_prev=pdfdir ;;
1020  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1021    pdfdir=$ac_optarg ;;
1022
1023  -psdir | --psdir | --psdi | --psd | --ps)
1024    ac_prev=psdir ;;
1025  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1026    psdir=$ac_optarg ;;
1027
1028  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1029  | -silent | --silent | --silen | --sile | --sil)
1030    silent=yes ;;
1031
1032  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1033    ac_prev=sbindir ;;
1034  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1035  | --sbi=* | --sb=*)
1036    sbindir=$ac_optarg ;;
1037
1038  -sharedstatedir | --sharedstatedir | --sharedstatedi \
1039  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1040  | --sharedst | --shareds | --shared | --share | --shar \
1041  | --sha | --sh)
1042    ac_prev=sharedstatedir ;;
1043  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1044  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1045  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1046  | --sha=* | --sh=*)
1047    sharedstatedir=$ac_optarg ;;
1048
1049  -site | --site | --sit)
1050    ac_prev=site ;;
1051  -site=* | --site=* | --sit=*)
1052    site=$ac_optarg ;;
1053
1054  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1055    ac_prev=srcdir ;;
1056  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1057    srcdir=$ac_optarg ;;
1058
1059  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1060  | --syscon | --sysco | --sysc | --sys | --sy)
1061    ac_prev=sysconfdir ;;
1062  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1063  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1064    sysconfdir=$ac_optarg ;;
1065
1066  -target | --target | --targe | --targ | --tar | --ta | --t)
1067    ac_prev=target_alias ;;
1068  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1069    target_alias=$ac_optarg ;;
1070
1071  -v | -verbose | --verbose | --verbos | --verbo | --verb)
1072    verbose=yes ;;
1073
1074  -version | --version | --versio | --versi | --vers | -V)
1075    ac_init_version=: ;;
1076
1077  -with-* | --with-*)
1078    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1079    # Reject names that are not valid shell variable names.
1080    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1081      as_fn_error "invalid package name: $ac_useropt"
1082    ac_useropt_orig=$ac_useropt
1083    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1084    case $ac_user_opts in
1085      *"
1086"with_$ac_useropt"
1087"*) ;;
1088      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1089	 ac_unrecognized_sep=', ';;
1090    esac
1091    eval with_$ac_useropt=\$ac_optarg ;;
1092
1093  -without-* | --without-*)
1094    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1095    # Reject names that are not valid shell variable names.
1096    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1097      as_fn_error "invalid package name: $ac_useropt"
1098    ac_useropt_orig=$ac_useropt
1099    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1100    case $ac_user_opts in
1101      *"
1102"with_$ac_useropt"
1103"*) ;;
1104      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1105	 ac_unrecognized_sep=', ';;
1106    esac
1107    eval with_$ac_useropt=no ;;
1108
1109  --x)
1110    # Obsolete; use --with-x.
1111    with_x=yes ;;
1112
1113  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1114  | --x-incl | --x-inc | --x-in | --x-i)
1115    ac_prev=x_includes ;;
1116  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1117  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1118    x_includes=$ac_optarg ;;
1119
1120  -x-libraries | --x-libraries | --x-librarie | --x-librari \
1121  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1122    ac_prev=x_libraries ;;
1123  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1124  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1125    x_libraries=$ac_optarg ;;
1126
1127  -*) as_fn_error "unrecognized option: \`$ac_option'
1128Try \`$0 --help' for more information."
1129    ;;
1130
1131  *=*)
1132    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1133    # Reject names that are not valid shell variable names.
1134    case $ac_envvar in #(
1135      '' | [0-9]* | *[!_$as_cr_alnum]* )
1136      as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1137    esac
1138    eval $ac_envvar=\$ac_optarg
1139    export $ac_envvar ;;
1140
1141  *)
1142    # FIXME: should be removed in autoconf 3.0.
1143    $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1144    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1145      $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1146    : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1147    ;;
1148
1149  esac
1150done
1151
1152if test -n "$ac_prev"; then
1153  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1154  as_fn_error "missing argument to $ac_option"
1155fi
1156
1157if test -n "$ac_unrecognized_opts"; then
1158  case $enable_option_checking in
1159    no) ;;
1160    fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1161    *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1162  esac
1163fi
1164
1165# Check all directory arguments for consistency.
1166for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
1167		datadir sysconfdir sharedstatedir localstatedir includedir \
1168		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1169		libdir localedir mandir
1170do
1171  eval ac_val=\$$ac_var
1172  # Remove trailing slashes.
1173  case $ac_val in
1174    */ )
1175      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1176      eval $ac_var=\$ac_val;;
1177  esac
1178  # Be sure to have absolute directory names.
1179  case $ac_val in
1180    [\\/$]* | ?:[\\/]* )  continue;;
1181    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1182  esac
1183  as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1184done
1185
1186# There might be people who depend on the old broken behavior: `$host'
1187# used to hold the argument of --host etc.
1188# FIXME: To remove some day.
1189build=$build_alias
1190host=$host_alias
1191target=$target_alias
1192
1193# FIXME: To remove some day.
1194if test "x$host_alias" != x; then
1195  if test "x$build_alias" = x; then
1196    cross_compiling=maybe
1197    $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1198    If a cross compiler is detected then cross compile mode will be used." >&2
1199  elif test "x$build_alias" != "x$host_alias"; then
1200    cross_compiling=yes
1201  fi
1202fi
1203
1204ac_tool_prefix=
1205test -n "$host_alias" && ac_tool_prefix=$host_alias-
1206
1207test "$silent" = yes && exec 6>/dev/null
1208
1209
1210ac_pwd=`pwd` && test -n "$ac_pwd" &&
1211ac_ls_di=`ls -di .` &&
1212ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1213  as_fn_error "working directory cannot be determined"
1214test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1215  as_fn_error "pwd does not report name of working directory"
1216
1217
1218# Find the source files, if location was not specified.
1219if test -z "$srcdir"; then
1220  ac_srcdir_defaulted=yes
1221  # Try the directory containing this script, then the parent directory.
1222  ac_confdir=`$as_dirname -- "$as_myself" ||
1223$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1224	 X"$as_myself" : 'X\(//\)[^/]' \| \
1225	 X"$as_myself" : 'X\(//\)$' \| \
1226	 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1227$as_echo X"$as_myself" |
1228    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1229	    s//\1/
1230	    q
1231	  }
1232	  /^X\(\/\/\)[^/].*/{
1233	    s//\1/
1234	    q
1235	  }
1236	  /^X\(\/\/\)$/{
1237	    s//\1/
1238	    q
1239	  }
1240	  /^X\(\/\).*/{
1241	    s//\1/
1242	    q
1243	  }
1244	  s/.*/./; q'`
1245  srcdir=$ac_confdir
1246  if test ! -r "$srcdir/$ac_unique_file"; then
1247    srcdir=..
1248  fi
1249else
1250  ac_srcdir_defaulted=no
1251fi
1252if test ! -r "$srcdir/$ac_unique_file"; then
1253  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1254  as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1255fi
1256ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1257ac_abs_confdir=`(
1258	cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1259	pwd)`
1260# When building in place, set srcdir=.
1261if test "$ac_abs_confdir" = "$ac_pwd"; then
1262  srcdir=.
1263fi
1264# Remove unnecessary trailing slashes from srcdir.
1265# Double slashes in file names in object file debugging info
1266# mess up M-x gdb in Emacs.
1267case $srcdir in
1268*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1269esac
1270for ac_var in $ac_precious_vars; do
1271  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1272  eval ac_env_${ac_var}_value=\$${ac_var}
1273  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1274  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1275done
1276
1277#
1278# Report the --help message.
1279#
1280if test "$ac_init_help" = "long"; then
1281  # Omit some internal or obsolete options to make the list less imposing.
1282  # This message is too long to be a string in the A/UX 3.1 sh.
1283  cat <<_ACEOF
1284\`configure' configures LTO plugin for ld 0.1 to adapt to many kinds of systems.
1285
1286Usage: $0 [OPTION]... [VAR=VALUE]...
1287
1288To assign environment variables (e.g., CC, CFLAGS...), specify them as
1289VAR=VALUE.  See below for descriptions of some of the useful variables.
1290
1291Defaults for the options are specified in brackets.
1292
1293Configuration:
1294  -h, --help              display this help and exit
1295      --help=short        display options specific to this package
1296      --help=recursive    display the short help of all the included packages
1297  -V, --version           display version information and exit
1298  -q, --quiet, --silent   do not print \`checking...' messages
1299      --cache-file=FILE   cache test results in FILE [disabled]
1300  -C, --config-cache      alias for \`--cache-file=config.cache'
1301  -n, --no-create         do not create output files
1302      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1303
1304Installation directories:
1305  --prefix=PREFIX         install architecture-independent files in PREFIX
1306                          [$ac_default_prefix]
1307  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1308                          [PREFIX]
1309
1310By default, \`make install' will install all the files in
1311\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1312an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1313for instance \`--prefix=\$HOME'.
1314
1315For better control, use the options below.
1316
1317Fine tuning of the installation directories:
1318  --bindir=DIR            user executables [EPREFIX/bin]
1319  --sbindir=DIR           system admin executables [EPREFIX/sbin]
1320  --libexecdir=DIR        program executables [EPREFIX/libexec]
1321  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1322  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1323  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1324  --libdir=DIR            object code libraries [EPREFIX/lib]
1325  --includedir=DIR        C header files [PREFIX/include]
1326  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1327  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1328  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1329  --infodir=DIR           info documentation [DATAROOTDIR/info]
1330  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1331  --mandir=DIR            man documentation [DATAROOTDIR/man]
1332  --docdir=DIR            documentation root [DATAROOTDIR/doc/lto-plugin]
1333  --htmldir=DIR           html documentation [DOCDIR]
1334  --dvidir=DIR            dvi documentation [DOCDIR]
1335  --pdfdir=DIR            pdf documentation [DOCDIR]
1336  --psdir=DIR             ps documentation [DOCDIR]
1337_ACEOF
1338
1339  cat <<\_ACEOF
1340
1341Program names:
1342  --program-prefix=PREFIX            prepend PREFIX to installed program names
1343  --program-suffix=SUFFIX            append SUFFIX to installed program names
1344  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1345
1346System types:
1347  --build=BUILD     configure for building on BUILD [guessed]
1348  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1349_ACEOF
1350fi
1351
1352if test -n "$ac_init_help"; then
1353  case $ac_init_help in
1354     short | recursive ) echo "Configuration of LTO plugin for ld 0.1:";;
1355   esac
1356  cat <<\_ACEOF
1357
1358Optional Features:
1359  --disable-option-checking  ignore unrecognized --enable/--with options
1360  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1361  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1362  --enable-maintainer-mode  enable make rules and dependencies not useful
1363			  (and sometimes confusing) to the casual installer
1364  --disable-dependency-tracking  speeds up one-time build
1365  --enable-dependency-tracking   do not reject slow dependency extractors
1366  --disable-largefile     omit support for large files
1367  --enable-shared[=PKGS]  build shared libraries [default=yes]
1368  --enable-static[=PKGS]  build static libraries [default=yes]
1369  --enable-fast-install[=PKGS]
1370                          optimize for fast installation [default=yes]
1371  --disable-libtool-lock  avoid locking (might break parallel builds)
1372
1373Optional Packages:
1374  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1375  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1376  --with-build-libsubdir=DIR  Directory where to find libraries for build system
1377  --with-pic              try to use only PIC/non-PIC objects [default=use
1378                          both]
1379  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1380
1381Some influential environment variables:
1382  CC          C compiler command
1383  CFLAGS      C compiler flags
1384  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1385              nonstandard directory <lib dir>
1386  LIBS        libraries to pass to the linker, e.g. -l<library>
1387  CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1388              you have headers in a nonstandard directory <include dir>
1389  LIBELFLIBS  How to link libelf
1390  LIBELFINC   How to find libelf include files
1391  CPP         C preprocessor
1392
1393Use these variables to override the choices made by `configure' or to help
1394it to find libraries and programs with nonstandard names/locations.
1395
1396Report bugs to the package provider.
1397_ACEOF
1398ac_status=$?
1399fi
1400
1401if test "$ac_init_help" = "recursive"; then
1402  # If there are subdirs, report their specific --help.
1403  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1404    test -d "$ac_dir" ||
1405      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1406      continue
1407    ac_builddir=.
1408
1409case "$ac_dir" in
1410.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1411*)
1412  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1413  # A ".." for each directory in $ac_dir_suffix.
1414  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1415  case $ac_top_builddir_sub in
1416  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1417  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1418  esac ;;
1419esac
1420ac_abs_top_builddir=$ac_pwd
1421ac_abs_builddir=$ac_pwd$ac_dir_suffix
1422# for backward compatibility:
1423ac_top_builddir=$ac_top_build_prefix
1424
1425case $srcdir in
1426  .)  # We are building in place.
1427    ac_srcdir=.
1428    ac_top_srcdir=$ac_top_builddir_sub
1429    ac_abs_top_srcdir=$ac_pwd ;;
1430  [\\/]* | ?:[\\/]* )  # Absolute name.
1431    ac_srcdir=$srcdir$ac_dir_suffix;
1432    ac_top_srcdir=$srcdir
1433    ac_abs_top_srcdir=$srcdir ;;
1434  *) # Relative name.
1435    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1436    ac_top_srcdir=$ac_top_build_prefix$srcdir
1437    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1438esac
1439ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1440
1441    cd "$ac_dir" || { ac_status=$?; continue; }
1442    # Check for guested configure.
1443    if test -f "$ac_srcdir/configure.gnu"; then
1444      echo &&
1445      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1446    elif test -f "$ac_srcdir/configure"; then
1447      echo &&
1448      $SHELL "$ac_srcdir/configure" --help=recursive
1449    else
1450      $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1451    fi || ac_status=$?
1452    cd "$ac_pwd" || { ac_status=$?; break; }
1453  done
1454fi
1455
1456test -n "$ac_init_help" && exit $ac_status
1457if $ac_init_version; then
1458  cat <<\_ACEOF
1459LTO plugin for ld configure 0.1
1460generated by GNU Autoconf 2.64
1461
1462Copyright (C) 2009 Free Software Foundation, Inc.
1463This configure script is free software; the Free Software Foundation
1464gives unlimited permission to copy, distribute and modify it.
1465_ACEOF
1466  exit
1467fi
1468
1469## ------------------------ ##
1470## Autoconf initialization. ##
1471## ------------------------ ##
1472
1473# ac_fn_c_try_compile LINENO
1474# --------------------------
1475# Try to compile conftest.$ac_ext, and return whether this succeeded.
1476ac_fn_c_try_compile ()
1477{
1478  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1479  rm -f conftest.$ac_objext
1480  if { { ac_try="$ac_compile"
1481case "(($ac_try" in
1482  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1483  *) ac_try_echo=$ac_try;;
1484esac
1485eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1486$as_echo "$ac_try_echo"; } >&5
1487  (eval "$ac_compile") 2>conftest.err
1488  ac_status=$?
1489  if test -s conftest.err; then
1490    grep -v '^ *+' conftest.err >conftest.er1
1491    cat conftest.er1 >&5
1492    mv -f conftest.er1 conftest.err
1493  fi
1494  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1495  test $ac_status = 0; } && {
1496	 test -z "$ac_c_werror_flag" ||
1497	 test ! -s conftest.err
1498       } && test -s conftest.$ac_objext; then :
1499  ac_retval=0
1500else
1501  $as_echo "$as_me: failed program was:" >&5
1502sed 's/^/| /' conftest.$ac_ext >&5
1503
1504	ac_retval=1
1505fi
1506  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1507  return $ac_retval
1508
1509} # ac_fn_c_try_compile
1510
1511# ac_fn_c_try_link LINENO
1512# -----------------------
1513# Try to link conftest.$ac_ext, and return whether this succeeded.
1514ac_fn_c_try_link ()
1515{
1516  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1517  rm -f conftest.$ac_objext conftest$ac_exeext
1518  if { { ac_try="$ac_link"
1519case "(($ac_try" in
1520  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1521  *) ac_try_echo=$ac_try;;
1522esac
1523eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1524$as_echo "$ac_try_echo"; } >&5
1525  (eval "$ac_link") 2>conftest.err
1526  ac_status=$?
1527  if test -s conftest.err; then
1528    grep -v '^ *+' conftest.err >conftest.er1
1529    cat conftest.er1 >&5
1530    mv -f conftest.er1 conftest.err
1531  fi
1532  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1533  test $ac_status = 0; } && {
1534	 test -z "$ac_c_werror_flag" ||
1535	 test ! -s conftest.err
1536       } && test -s conftest$ac_exeext && {
1537	 test "$cross_compiling" = yes ||
1538	 $as_test_x conftest$ac_exeext
1539       }; then :
1540  ac_retval=0
1541else
1542  $as_echo "$as_me: failed program was:" >&5
1543sed 's/^/| /' conftest.$ac_ext >&5
1544
1545	ac_retval=1
1546fi
1547  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1548  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1549  # interfere with the next link command; also delete a directory that is
1550  # left behind by Apple's compiler.  We do this before executing the actions.
1551  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1552  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1553  return $ac_retval
1554
1555} # ac_fn_c_try_link
1556
1557# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1558# -------------------------------------------------------
1559# Tests whether HEADER exists and can be compiled using the include files in
1560# INCLUDES, setting the cache variable VAR accordingly.
1561ac_fn_c_check_header_compile ()
1562{
1563  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1564  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1565$as_echo_n "checking for $2... " >&6; }
1566if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1567  $as_echo_n "(cached) " >&6
1568else
1569  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1570/* end confdefs.h.  */
1571$4
1572#include <$2>
1573_ACEOF
1574if ac_fn_c_try_compile "$LINENO"; then :
1575  eval "$3=yes"
1576else
1577  eval "$3=no"
1578fi
1579rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1580fi
1581eval ac_res=\$$3
1582	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1583$as_echo "$ac_res" >&6; }
1584  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1585
1586} # ac_fn_c_check_header_compile
1587
1588# ac_fn_c_try_cpp LINENO
1589# ----------------------
1590# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1591ac_fn_c_try_cpp ()
1592{
1593  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1594  if { { ac_try="$ac_cpp conftest.$ac_ext"
1595case "(($ac_try" in
1596  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1597  *) ac_try_echo=$ac_try;;
1598esac
1599eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1600$as_echo "$ac_try_echo"; } >&5
1601  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1602  ac_status=$?
1603  if test -s conftest.err; then
1604    grep -v '^ *+' conftest.err >conftest.er1
1605    cat conftest.er1 >&5
1606    mv -f conftest.er1 conftest.err
1607  fi
1608  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1609  test $ac_status = 0; } >/dev/null && {
1610	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1611	 test ! -s conftest.err
1612       }; then :
1613  ac_retval=0
1614else
1615  $as_echo "$as_me: failed program was:" >&5
1616sed 's/^/| /' conftest.$ac_ext >&5
1617
1618    ac_retval=1
1619fi
1620  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1621  return $ac_retval
1622
1623} # ac_fn_c_try_cpp
1624
1625# ac_fn_c_try_run LINENO
1626# ----------------------
1627# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1628# that executables *can* be run.
1629ac_fn_c_try_run ()
1630{
1631  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1632  if { { ac_try="$ac_link"
1633case "(($ac_try" in
1634  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1635  *) ac_try_echo=$ac_try;;
1636esac
1637eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1638$as_echo "$ac_try_echo"; } >&5
1639  (eval "$ac_link") 2>&5
1640  ac_status=$?
1641  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1642  test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1643  { { case "(($ac_try" in
1644  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1645  *) ac_try_echo=$ac_try;;
1646esac
1647eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1648$as_echo "$ac_try_echo"; } >&5
1649  (eval "$ac_try") 2>&5
1650  ac_status=$?
1651  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1652  test $ac_status = 0; }; }; then :
1653  ac_retval=0
1654else
1655  $as_echo "$as_me: program exited with status $ac_status" >&5
1656       $as_echo "$as_me: failed program was:" >&5
1657sed 's/^/| /' conftest.$ac_ext >&5
1658
1659       ac_retval=$ac_status
1660fi
1661  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1662  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1663  return $ac_retval
1664
1665} # ac_fn_c_try_run
1666
1667# ac_fn_c_check_func LINENO FUNC VAR
1668# ----------------------------------
1669# Tests whether FUNC exists, setting the cache variable VAR accordingly
1670ac_fn_c_check_func ()
1671{
1672  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1673  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1674$as_echo_n "checking for $2... " >&6; }
1675if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1676  $as_echo_n "(cached) " >&6
1677else
1678  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1679/* end confdefs.h.  */
1680/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1681   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
1682#define $2 innocuous_$2
1683
1684/* System header to define __stub macros and hopefully few prototypes,
1685    which can conflict with char $2 (); below.
1686    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1687    <limits.h> exists even on freestanding compilers.  */
1688
1689#ifdef __STDC__
1690# include <limits.h>
1691#else
1692# include <assert.h>
1693#endif
1694
1695#undef $2
1696
1697/* Override any GCC internal prototype to avoid an error.
1698   Use char because int might match the return type of a GCC
1699   builtin and then its argument prototype would still apply.  */
1700#ifdef __cplusplus
1701extern "C"
1702#endif
1703char $2 ();
1704/* The GNU C library defines this for functions which it implements
1705    to always fail with ENOSYS.  Some functions are actually named
1706    something starting with __ and the normal name is an alias.  */
1707#if defined __stub_$2 || defined __stub___$2
1708choke me
1709#endif
1710
1711int
1712main ()
1713{
1714return $2 ();
1715  ;
1716  return 0;
1717}
1718_ACEOF
1719if ac_fn_c_try_link "$LINENO"; then :
1720  eval "$3=yes"
1721else
1722  eval "$3=no"
1723fi
1724rm -f core conftest.err conftest.$ac_objext \
1725    conftest$ac_exeext conftest.$ac_ext
1726fi
1727eval ac_res=\$$3
1728	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1729$as_echo "$ac_res" >&6; }
1730  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1731
1732} # ac_fn_c_check_func
1733
1734# ac_fn_c_find_uintX_t LINENO BITS VAR
1735# ------------------------------------
1736# Finds an unsigned integer type with width BITS, setting cache variable VAR
1737# accordingly.
1738ac_fn_c_find_uintX_t ()
1739{
1740  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1741  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint$2_t" >&5
1742$as_echo_n "checking for uint$2_t... " >&6; }
1743if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1744  $as_echo_n "(cached) " >&6
1745else
1746  eval "$3=no"
1747     for ac_type in uint$2_t 'unsigned int' 'unsigned long int' \
1748	 'unsigned long long int' 'unsigned short int' 'unsigned char'; do
1749       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1750/* end confdefs.h.  */
1751$ac_includes_default
1752int
1753main ()
1754{
1755static int test_array [1 - 2 * !(($ac_type) -1 >> ($2 - 1) == 1)];
1756test_array [0] = 0
1757
1758  ;
1759  return 0;
1760}
1761_ACEOF
1762if ac_fn_c_try_compile "$LINENO"; then :
1763  case $ac_type in #(
1764  uint$2_t) :
1765    eval "$3=yes" ;; #(
1766  *) :
1767    eval "$3=\$ac_type" ;;
1768esac
1769fi
1770rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1771       eval as_val=\$$3
1772   if test "x$as_val" = x""no; then :
1773
1774else
1775  break
1776fi
1777     done
1778fi
1779eval ac_res=\$$3
1780	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1781$as_echo "$ac_res" >&6; }
1782  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1783
1784} # ac_fn_c_find_uintX_t
1785cat >config.log <<_ACEOF
1786This file contains any messages produced by compilers while
1787running configure, to aid debugging if configure makes a mistake.
1788
1789It was created by LTO plugin for ld $as_me 0.1, which was
1790generated by GNU Autoconf 2.64.  Invocation command line was
1791
1792  $ $0 $@
1793
1794_ACEOF
1795exec 5>>config.log
1796{
1797cat <<_ASUNAME
1798## --------- ##
1799## Platform. ##
1800## --------- ##
1801
1802hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1803uname -m = `(uname -m) 2>/dev/null || echo unknown`
1804uname -r = `(uname -r) 2>/dev/null || echo unknown`
1805uname -s = `(uname -s) 2>/dev/null || echo unknown`
1806uname -v = `(uname -v) 2>/dev/null || echo unknown`
1807
1808/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1809/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1810
1811/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1812/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1813/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1814/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1815/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1816/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1817/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1818
1819_ASUNAME
1820
1821as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1822for as_dir in $PATH
1823do
1824  IFS=$as_save_IFS
1825  test -z "$as_dir" && as_dir=.
1826    $as_echo "PATH: $as_dir"
1827  done
1828IFS=$as_save_IFS
1829
1830} >&5
1831
1832cat >&5 <<_ACEOF
1833
1834
1835## ----------- ##
1836## Core tests. ##
1837## ----------- ##
1838
1839_ACEOF
1840
1841
1842# Keep a trace of the command line.
1843# Strip out --no-create and --no-recursion so they do not pile up.
1844# Strip out --silent because we don't want to record it for future runs.
1845# Also quote any args containing shell meta-characters.
1846# Make two passes to allow for proper duplicate-argument suppression.
1847ac_configure_args=
1848ac_configure_args0=
1849ac_configure_args1=
1850ac_must_keep_next=false
1851for ac_pass in 1 2
1852do
1853  for ac_arg
1854  do
1855    case $ac_arg in
1856    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1857    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1858    | -silent | --silent | --silen | --sile | --sil)
1859      continue ;;
1860    *\'*)
1861      ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1862    esac
1863    case $ac_pass in
1864    1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1865    2)
1866      as_fn_append ac_configure_args1 " '$ac_arg'"
1867      if test $ac_must_keep_next = true; then
1868	ac_must_keep_next=false # Got value, back to normal.
1869      else
1870	case $ac_arg in
1871	  *=* | --config-cache | -C | -disable-* | --disable-* \
1872	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1873	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1874	  | -with-* | --with-* | -without-* | --without-* | --x)
1875	    case "$ac_configure_args0 " in
1876	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1877	    esac
1878	    ;;
1879	  -* ) ac_must_keep_next=true ;;
1880	esac
1881      fi
1882      as_fn_append ac_configure_args " '$ac_arg'"
1883      ;;
1884    esac
1885  done
1886done
1887{ ac_configure_args0=; unset ac_configure_args0;}
1888{ ac_configure_args1=; unset ac_configure_args1;}
1889
1890# When interrupted or exit'd, cleanup temporary files, and complete
1891# config.log.  We remove comments because anyway the quotes in there
1892# would cause problems or look ugly.
1893# WARNING: Use '\'' to represent an apostrophe within the trap.
1894# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1895trap 'exit_status=$?
1896  # Save into config.log some information that might help in debugging.
1897  {
1898    echo
1899
1900    cat <<\_ASBOX
1901## ---------------- ##
1902## Cache variables. ##
1903## ---------------- ##
1904_ASBOX
1905    echo
1906    # The following way of writing the cache mishandles newlines in values,
1907(
1908  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1909    eval ac_val=\$$ac_var
1910    case $ac_val in #(
1911    *${as_nl}*)
1912      case $ac_var in #(
1913      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
1914$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1915      esac
1916      case $ac_var in #(
1917      _ | IFS | as_nl) ;; #(
1918      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1919      *) { eval $ac_var=; unset $ac_var;} ;;
1920      esac ;;
1921    esac
1922  done
1923  (set) 2>&1 |
1924    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1925    *${as_nl}ac_space=\ *)
1926      sed -n \
1927	"s/'\''/'\''\\\\'\'''\''/g;
1928	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1929      ;; #(
1930    *)
1931      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1932      ;;
1933    esac |
1934    sort
1935)
1936    echo
1937
1938    cat <<\_ASBOX
1939## ----------------- ##
1940## Output variables. ##
1941## ----------------- ##
1942_ASBOX
1943    echo
1944    for ac_var in $ac_subst_vars
1945    do
1946      eval ac_val=\$$ac_var
1947      case $ac_val in
1948      *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1949      esac
1950      $as_echo "$ac_var='\''$ac_val'\''"
1951    done | sort
1952    echo
1953
1954    if test -n "$ac_subst_files"; then
1955      cat <<\_ASBOX
1956## ------------------- ##
1957## File substitutions. ##
1958## ------------------- ##
1959_ASBOX
1960      echo
1961      for ac_var in $ac_subst_files
1962      do
1963	eval ac_val=\$$ac_var
1964	case $ac_val in
1965	*\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1966	esac
1967	$as_echo "$ac_var='\''$ac_val'\''"
1968      done | sort
1969      echo
1970    fi
1971
1972    if test -s confdefs.h; then
1973      cat <<\_ASBOX
1974## ----------- ##
1975## confdefs.h. ##
1976## ----------- ##
1977_ASBOX
1978      echo
1979      cat confdefs.h
1980      echo
1981    fi
1982    test "$ac_signal" != 0 &&
1983      $as_echo "$as_me: caught signal $ac_signal"
1984    $as_echo "$as_me: exit $exit_status"
1985  } >&5
1986  rm -f core *.core core.conftest.* &&
1987    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1988    exit $exit_status
1989' 0
1990for ac_signal in 1 2 13 15; do
1991  trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
1992done
1993ac_signal=0
1994
1995# confdefs.h avoids OS command line length limits that DEFS can exceed.
1996rm -f -r conftest* confdefs.h
1997
1998$as_echo "/* confdefs.h */" > confdefs.h
1999
2000# Predefined preprocessor variables.
2001
2002cat >>confdefs.h <<_ACEOF
2003#define PACKAGE_NAME "$PACKAGE_NAME"
2004_ACEOF
2005
2006cat >>confdefs.h <<_ACEOF
2007#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2008_ACEOF
2009
2010cat >>confdefs.h <<_ACEOF
2011#define PACKAGE_VERSION "$PACKAGE_VERSION"
2012_ACEOF
2013
2014cat >>confdefs.h <<_ACEOF
2015#define PACKAGE_STRING "$PACKAGE_STRING"
2016_ACEOF
2017
2018cat >>confdefs.h <<_ACEOF
2019#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2020_ACEOF
2021
2022cat >>confdefs.h <<_ACEOF
2023#define PACKAGE_URL "$PACKAGE_URL"
2024_ACEOF
2025
2026
2027# Let the site file select an alternate cache file if it wants to.
2028# Prefer an explicitly selected file to automatically selected ones.
2029ac_site_file1=NONE
2030ac_site_file2=NONE
2031if test -n "$CONFIG_SITE"; then
2032  ac_site_file1=$CONFIG_SITE
2033elif test "x$prefix" != xNONE; then
2034  ac_site_file1=$prefix/share/config.site
2035  ac_site_file2=$prefix/etc/config.site
2036else
2037  ac_site_file1=$ac_default_prefix/share/config.site
2038  ac_site_file2=$ac_default_prefix/etc/config.site
2039fi
2040for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2041do
2042  test "x$ac_site_file" = xNONE && continue
2043  if test -r "$ac_site_file"; then
2044    { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2045$as_echo "$as_me: loading site script $ac_site_file" >&6;}
2046    sed 's/^/| /' "$ac_site_file" >&5
2047    . "$ac_site_file"
2048  fi
2049done
2050
2051if test -r "$cache_file"; then
2052  # Some versions of bash will fail to source /dev/null (special
2053  # files actually), so we avoid doing that.
2054  if test -f "$cache_file"; then
2055    { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2056$as_echo "$as_me: loading cache $cache_file" >&6;}
2057    case $cache_file in
2058      [\\/]* | ?:[\\/]* ) . "$cache_file";;
2059      *)                      . "./$cache_file";;
2060    esac
2061  fi
2062else
2063  { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2064$as_echo "$as_me: creating cache $cache_file" >&6;}
2065  >$cache_file
2066fi
2067
2068# Check that the precious variables saved in the cache have kept the same
2069# value.
2070ac_cache_corrupted=false
2071for ac_var in $ac_precious_vars; do
2072  eval ac_old_set=\$ac_cv_env_${ac_var}_set
2073  eval ac_new_set=\$ac_env_${ac_var}_set
2074  eval ac_old_val=\$ac_cv_env_${ac_var}_value
2075  eval ac_new_val=\$ac_env_${ac_var}_value
2076  case $ac_old_set,$ac_new_set in
2077    set,)
2078      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2079$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2080      ac_cache_corrupted=: ;;
2081    ,set)
2082      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2083$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2084      ac_cache_corrupted=: ;;
2085    ,);;
2086    *)
2087      if test "x$ac_old_val" != "x$ac_new_val"; then
2088	# differences in whitespace do not lead to failure.
2089	ac_old_val_w=`echo x $ac_old_val`
2090	ac_new_val_w=`echo x $ac_new_val`
2091	if test "$ac_old_val_w" != "$ac_new_val_w"; then
2092	  { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2093$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2094	  ac_cache_corrupted=:
2095	else
2096	  { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2097$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2098	  eval $ac_var=\$ac_old_val
2099	fi
2100	{ $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2101$as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2102	{ $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2103$as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2104      fi;;
2105  esac
2106  # Pass precious variables to config.status.
2107  if test "$ac_new_set" = set; then
2108    case $ac_new_val in
2109    *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2110    *) ac_arg=$ac_var=$ac_new_val ;;
2111    esac
2112    case " $ac_configure_args " in
2113      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2114      *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2115    esac
2116  fi
2117done
2118if $ac_cache_corrupted; then
2119  { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2120$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2121  { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2122$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2123  as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2124fi
2125## -------------------- ##
2126## Main body of script. ##
2127## -------------------- ##
2128
2129ac_ext=c
2130ac_cpp='$CPP $CPPFLAGS'
2131ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2132ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2133ac_compiler_gnu=$ac_cv_c_compiler_gnu
2134
2135
2136
2137
2138
2139ac_aux_dir=
2140for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2141  for ac_t in install-sh install.sh shtool; do
2142    if test -f "$ac_dir/$ac_t"; then
2143      ac_aux_dir=$ac_dir
2144      ac_install_sh="$ac_aux_dir/$ac_t -c"
2145      break 2
2146    fi
2147  done
2148done
2149if test -z "$ac_aux_dir"; then
2150  as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2151fi
2152
2153# These three variables are undocumented and unsupported,
2154# and are intended to be withdrawn in a future Autoconf release.
2155# They can cause serious problems if a builder's source tree is in a directory
2156# whose full name contains unusual characters.
2157ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2158ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2159ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2160
2161
2162# Make sure we can run config.sub.
2163$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2164  as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2165
2166{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2167$as_echo_n "checking build system type... " >&6; }
2168if test "${ac_cv_build+set}" = set; then :
2169  $as_echo_n "(cached) " >&6
2170else
2171  ac_build_alias=$build_alias
2172test "x$ac_build_alias" = x &&
2173  ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2174test "x$ac_build_alias" = x &&
2175  as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
2176ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2177  as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2178
2179fi
2180{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2181$as_echo "$ac_cv_build" >&6; }
2182case $ac_cv_build in
2183*-*-*) ;;
2184*) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
2185esac
2186build=$ac_cv_build
2187ac_save_IFS=$IFS; IFS='-'
2188set x $ac_cv_build
2189shift
2190build_cpu=$1
2191build_vendor=$2
2192shift; shift
2193# Remember, the first character of IFS is used to create $*,
2194# except with old shells:
2195build_os=$*
2196IFS=$ac_save_IFS
2197case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2198
2199
2200 case ${build_alias} in
2201  "") build_noncanonical=${build} ;;
2202  *) build_noncanonical=${build_alias} ;;
2203esac
2204
2205 case ${host_alias} in
2206  "") host_noncanonical=${build_noncanonical} ;;
2207  *) host_noncanonical=${host_alias} ;;
2208esac
2209
2210 case ${target_alias} in
2211  "") target_noncanonical=${host_noncanonical} ;;
2212  *) target_noncanonical=${target_alias} ;;
2213esac
2214
2215
2216# post-stage1 host modules use a different CC_FOR_BUILD so, in order to
2217# have matching libraries, they should use host libraries: Makefile.tpl
2218# arranges to pass --with-build-libsubdir=$(HOST_SUBDIR).
2219# However, they still use the build modules, because the corresponding
2220# host modules (e.g. bison) are only built for the host when bootstrap
2221# finishes. So:
2222# - build_subdir is where we find build modules, and never changes.
2223# - build_libsubdir is where we find build libraries, and can be overridden.
2224
2225# Prefix 'build-' so this never conflicts with target_subdir.
2226build_subdir="build-${build_noncanonical}"
2227
2228# Check whether --with-build-libsubdir was given.
2229if test "${with_build_libsubdir+set}" = set; then :
2230  withval=$with_build_libsubdir; build_libsubdir="$withval"
2231else
2232  build_libsubdir="$build_subdir"
2233fi
2234
2235# --srcdir=. covers the toplevel, while "test -d" covers the subdirectories
2236if ( test $srcdir = . && test -d gcc ) \
2237   || test -d $srcdir/../host-${host_noncanonical}; then
2238  host_subdir="host-${host_noncanonical}"
2239else
2240  host_subdir=.
2241fi
2242# No prefix.
2243target_subdir=${target_noncanonical}
2244
2245am__api_version='1.11'
2246
2247# Find a good install program.  We prefer a C program (faster),
2248# so one script is as good as another.  But avoid the broken or
2249# incompatible versions:
2250# SysV /etc/install, /usr/sbin/install
2251# SunOS /usr/etc/install
2252# IRIX /sbin/install
2253# AIX /bin/install
2254# AmigaOS /C/install, which installs bootblocks on floppy discs
2255# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2256# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2257# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2258# OS/2's system install, which has a completely different semantic
2259# ./install, which can be erroneously created by make from ./install.sh.
2260# Reject install programs that cannot install multiple files.
2261{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2262$as_echo_n "checking for a BSD-compatible install... " >&6; }
2263if test -z "$INSTALL"; then
2264if test "${ac_cv_path_install+set}" = set; then :
2265  $as_echo_n "(cached) " >&6
2266else
2267  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2268for as_dir in $PATH
2269do
2270  IFS=$as_save_IFS
2271  test -z "$as_dir" && as_dir=.
2272    # Account for people who put trailing slashes in PATH elements.
2273case $as_dir/ in #((
2274  ./ | .// | /[cC]/* | \
2275  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2276  ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2277  /usr/ucb/* ) ;;
2278  *)
2279    # OSF1 and SCO ODT 3.0 have their own names for install.
2280    # Don't use installbsd from OSF since it installs stuff as root
2281    # by default.
2282    for ac_prog in ginstall scoinst install; do
2283      for ac_exec_ext in '' $ac_executable_extensions; do
2284	if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2285	  if test $ac_prog = install &&
2286	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2287	    # AIX install.  It has an incompatible calling convention.
2288	    :
2289	  elif test $ac_prog = install &&
2290	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2291	    # program-specific install script used by HP pwplus--don't use.
2292	    :
2293	  else
2294	    rm -rf conftest.one conftest.two conftest.dir
2295	    echo one > conftest.one
2296	    echo two > conftest.two
2297	    mkdir conftest.dir
2298	    if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2299	      test -s conftest.one && test -s conftest.two &&
2300	      test -s conftest.dir/conftest.one &&
2301	      test -s conftest.dir/conftest.two
2302	    then
2303	      ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2304	      break 3
2305	    fi
2306	  fi
2307	fi
2308      done
2309    done
2310    ;;
2311esac
2312
2313  done
2314IFS=$as_save_IFS
2315
2316rm -rf conftest.one conftest.two conftest.dir
2317
2318fi
2319  if test "${ac_cv_path_install+set}" = set; then
2320    INSTALL=$ac_cv_path_install
2321  else
2322    # As a last resort, use the slow shell script.  Don't cache a
2323    # value for INSTALL within a source directory, because that will
2324    # break other packages using the cache if that directory is
2325    # removed, or if the value is a relative name.
2326    INSTALL=$ac_install_sh
2327  fi
2328fi
2329{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2330$as_echo "$INSTALL" >&6; }
2331
2332# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2333# It thinks the first close brace ends the variable substitution.
2334test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2335
2336test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2337
2338test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2339
2340{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2341$as_echo_n "checking whether build environment is sane... " >&6; }
2342# Just in case
2343sleep 1
2344echo timestamp > conftest.file
2345# Reject unsafe characters in $srcdir or the absolute working directory
2346# name.  Accept space and tab only in the latter.
2347am_lf='
2348'
2349case `pwd` in
2350  *[\\\"\#\$\&\'\`$am_lf]*)
2351    as_fn_error "unsafe absolute working directory name" "$LINENO" 5;;
2352esac
2353case $srcdir in
2354  *[\\\"\#\$\&\'\`$am_lf\ \	]*)
2355    as_fn_error "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
2356esac
2357
2358# Do `set' in a subshell so we don't clobber the current shell's
2359# arguments.  Must try -L first in case configure is actually a
2360# symlink; some systems play weird games with the mod time of symlinks
2361# (eg FreeBSD returns the mod time of the symlink's containing
2362# directory).
2363if (
2364   set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2365   if test "$*" = "X"; then
2366      # -L didn't work.
2367      set X `ls -t "$srcdir/configure" conftest.file`
2368   fi
2369   rm -f conftest.file
2370   if test "$*" != "X $srcdir/configure conftest.file" \
2371      && test "$*" != "X conftest.file $srcdir/configure"; then
2372
2373      # If neither matched, then we have a broken ls.  This can happen
2374      # if, for instance, CONFIG_SHELL is bash and it inherits a
2375      # broken ls alias from the environment.  This has actually
2376      # happened.  Such a system could not be considered "sane".
2377      as_fn_error "ls -t appears to fail.  Make sure there is not a broken
2378alias in your environment" "$LINENO" 5
2379   fi
2380
2381   test "$2" = conftest.file
2382   )
2383then
2384   # Ok.
2385   :
2386else
2387   as_fn_error "newly created file is older than distributed files!
2388Check your system clock" "$LINENO" 5
2389fi
2390{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2391$as_echo "yes" >&6; }
2392test "$program_prefix" != NONE &&
2393  program_transform_name="s&^&$program_prefix&;$program_transform_name"
2394# Use a double $ so make ignores it.
2395test "$program_suffix" != NONE &&
2396  program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2397# Double any \ or $.
2398# By default was `s,x,x', remove it if useless.
2399ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2400program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2401
2402# expand $ac_aux_dir to an absolute path
2403am_aux_dir=`cd $ac_aux_dir && pwd`
2404
2405if test x"${MISSING+set}" != xset; then
2406  case $am_aux_dir in
2407  *\ * | *\	*)
2408    MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2409  *)
2410    MISSING="\${SHELL} $am_aux_dir/missing" ;;
2411  esac
2412fi
2413# Use eval to expand $SHELL
2414if eval "$MISSING --run true"; then
2415  am_missing_run="$MISSING --run "
2416else
2417  am_missing_run=
2418  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
2419$as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2420fi
2421
2422if test x"${install_sh}" != xset; then
2423  case $am_aux_dir in
2424  *\ * | *\	*)
2425    install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2426  *)
2427    install_sh="\${SHELL} $am_aux_dir/install-sh"
2428  esac
2429fi
2430
2431# Installed binaries are usually stripped using `strip' when the user
2432# run `make install-strip'.  However `strip' might not be the right
2433# tool to use in cross-compilation environments, therefore Automake
2434# will honor the `STRIP' environment variable to overrule this program.
2435if test "$cross_compiling" != no; then
2436  if test -n "$ac_tool_prefix"; then
2437  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2438set dummy ${ac_tool_prefix}strip; ac_word=$2
2439{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2440$as_echo_n "checking for $ac_word... " >&6; }
2441if test "${ac_cv_prog_STRIP+set}" = set; then :
2442  $as_echo_n "(cached) " >&6
2443else
2444  if test -n "$STRIP"; then
2445  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2446else
2447as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2448for as_dir in $PATH
2449do
2450  IFS=$as_save_IFS
2451  test -z "$as_dir" && as_dir=.
2452    for ac_exec_ext in '' $ac_executable_extensions; do
2453  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2454    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2455    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2456    break 2
2457  fi
2458done
2459  done
2460IFS=$as_save_IFS
2461
2462fi
2463fi
2464STRIP=$ac_cv_prog_STRIP
2465if test -n "$STRIP"; then
2466  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2467$as_echo "$STRIP" >&6; }
2468else
2469  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2470$as_echo "no" >&6; }
2471fi
2472
2473
2474fi
2475if test -z "$ac_cv_prog_STRIP"; then
2476  ac_ct_STRIP=$STRIP
2477  # Extract the first word of "strip", so it can be a program name with args.
2478set dummy strip; ac_word=$2
2479{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2480$as_echo_n "checking for $ac_word... " >&6; }
2481if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
2482  $as_echo_n "(cached) " >&6
2483else
2484  if test -n "$ac_ct_STRIP"; then
2485  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2486else
2487as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2488for as_dir in $PATH
2489do
2490  IFS=$as_save_IFS
2491  test -z "$as_dir" && as_dir=.
2492    for ac_exec_ext in '' $ac_executable_extensions; do
2493  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2494    ac_cv_prog_ac_ct_STRIP="strip"
2495    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2496    break 2
2497  fi
2498done
2499  done
2500IFS=$as_save_IFS
2501
2502fi
2503fi
2504ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2505if test -n "$ac_ct_STRIP"; then
2506  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2507$as_echo "$ac_ct_STRIP" >&6; }
2508else
2509  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2510$as_echo "no" >&6; }
2511fi
2512
2513  if test "x$ac_ct_STRIP" = x; then
2514    STRIP=":"
2515  else
2516    case $cross_compiling:$ac_tool_warned in
2517yes:)
2518{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2519$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2520ac_tool_warned=yes ;;
2521esac
2522    STRIP=$ac_ct_STRIP
2523  fi
2524else
2525  STRIP="$ac_cv_prog_STRIP"
2526fi
2527
2528fi
2529INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2530
2531{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2532$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2533if test -z "$MKDIR_P"; then
2534  if test "${ac_cv_path_mkdir+set}" = set; then :
2535  $as_echo_n "(cached) " >&6
2536else
2537  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2538for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2539do
2540  IFS=$as_save_IFS
2541  test -z "$as_dir" && as_dir=.
2542    for ac_prog in mkdir gmkdir; do
2543	 for ac_exec_ext in '' $ac_executable_extensions; do
2544	   { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2545	   case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2546	     'mkdir (GNU coreutils) '* | \
2547	     'mkdir (coreutils) '* | \
2548	     'mkdir (fileutils) '4.1*)
2549	       ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2550	       break 3;;
2551	   esac
2552	 done
2553       done
2554  done
2555IFS=$as_save_IFS
2556
2557fi
2558
2559  if test "${ac_cv_path_mkdir+set}" = set; then
2560    MKDIR_P="$ac_cv_path_mkdir -p"
2561  else
2562    # As a last resort, use the slow shell script.  Don't cache a
2563    # value for MKDIR_P within a source directory, because that will
2564    # break other packages using the cache if that directory is
2565    # removed, or if the value is a relative name.
2566    test -d ./--version && rmdir ./--version
2567    MKDIR_P="$ac_install_sh -d"
2568  fi
2569fi
2570{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2571$as_echo "$MKDIR_P" >&6; }
2572
2573mkdir_p="$MKDIR_P"
2574case $mkdir_p in
2575  [\\/$]* | ?:[\\/]*) ;;
2576  */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2577esac
2578
2579for ac_prog in gawk mawk nawk awk
2580do
2581  # Extract the first word of "$ac_prog", so it can be a program name with args.
2582set dummy $ac_prog; ac_word=$2
2583{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2584$as_echo_n "checking for $ac_word... " >&6; }
2585if test "${ac_cv_prog_AWK+set}" = set; then :
2586  $as_echo_n "(cached) " >&6
2587else
2588  if test -n "$AWK"; then
2589  ac_cv_prog_AWK="$AWK" # Let the user override the test.
2590else
2591as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2592for as_dir in $PATH
2593do
2594  IFS=$as_save_IFS
2595  test -z "$as_dir" && as_dir=.
2596    for ac_exec_ext in '' $ac_executable_extensions; do
2597  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2598    ac_cv_prog_AWK="$ac_prog"
2599    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2600    break 2
2601  fi
2602done
2603  done
2604IFS=$as_save_IFS
2605
2606fi
2607fi
2608AWK=$ac_cv_prog_AWK
2609if test -n "$AWK"; then
2610  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2611$as_echo "$AWK" >&6; }
2612else
2613  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2614$as_echo "no" >&6; }
2615fi
2616
2617
2618  test -n "$AWK" && break
2619done
2620
2621{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2622$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2623set x ${MAKE-make}
2624ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2625if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
2626  $as_echo_n "(cached) " >&6
2627else
2628  cat >conftest.make <<\_ACEOF
2629SHELL = /bin/sh
2630all:
2631	@echo '@@@%%%=$(MAKE)=@@@%%%'
2632_ACEOF
2633# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2634case `${MAKE-make} -f conftest.make 2>/dev/null` in
2635  *@@@%%%=?*=@@@%%%*)
2636    eval ac_cv_prog_make_${ac_make}_set=yes;;
2637  *)
2638    eval ac_cv_prog_make_${ac_make}_set=no;;
2639esac
2640rm -f conftest.make
2641fi
2642if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2643  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2644$as_echo "yes" >&6; }
2645  SET_MAKE=
2646else
2647  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2648$as_echo "no" >&6; }
2649  SET_MAKE="MAKE=${MAKE-make}"
2650fi
2651
2652rm -rf .tst 2>/dev/null
2653mkdir .tst 2>/dev/null
2654if test -d .tst; then
2655  am__leading_dot=.
2656else
2657  am__leading_dot=_
2658fi
2659rmdir .tst 2>/dev/null
2660
2661if test "`cd $srcdir && pwd`" != "`pwd`"; then
2662  # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2663  # is not polluted with repeated "-I."
2664  am__isrc=' -I$(srcdir)'
2665  # test to see if srcdir already configured
2666  if test -f $srcdir/config.status; then
2667    as_fn_error "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2668  fi
2669fi
2670
2671# test whether we have cygpath
2672if test -z "$CYGPATH_W"; then
2673  if (cygpath --version) >/dev/null 2>/dev/null; then
2674    CYGPATH_W='cygpath -w'
2675  else
2676    CYGPATH_W=echo
2677  fi
2678fi
2679
2680
2681# Define the identity of the package.
2682 PACKAGE='lto-plugin'
2683 VERSION='0.1'
2684
2685
2686cat >>confdefs.h <<_ACEOF
2687#define PACKAGE "$PACKAGE"
2688_ACEOF
2689
2690
2691cat >>confdefs.h <<_ACEOF
2692#define VERSION "$VERSION"
2693_ACEOF
2694
2695# Some tools Automake needs.
2696
2697ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2698
2699
2700AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2701
2702
2703AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2704
2705
2706AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2707
2708
2709MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2710
2711# We need awk for the "check" target.  The system "awk" is bad on
2712# some platforms.
2713# Always define AMTAR for backward compatibility.
2714
2715AMTAR=${AMTAR-"${am_missing_run}tar"}
2716
2717am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2718
2719
2720
2721
2722
2723
2724{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
2725$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
2726    # Check whether --enable-maintainer-mode was given.
2727if test "${enable_maintainer_mode+set}" = set; then :
2728  enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2729else
2730  USE_MAINTAINER_MODE=no
2731fi
2732
2733  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
2734$as_echo "$USE_MAINTAINER_MODE" >&6; }
2735   if test $USE_MAINTAINER_MODE = yes; then
2736  MAINTAINER_MODE_TRUE=
2737  MAINTAINER_MODE_FALSE='#'
2738else
2739  MAINTAINER_MODE_TRUE='#'
2740  MAINTAINER_MODE_FALSE=
2741fi
2742
2743  MAINT=$MAINTAINER_MODE_TRUE
2744
2745
2746ac_ext=c
2747ac_cpp='$CPP $CPPFLAGS'
2748ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2749ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2750ac_compiler_gnu=$ac_cv_c_compiler_gnu
2751if test -n "$ac_tool_prefix"; then
2752  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2753set dummy ${ac_tool_prefix}gcc; ac_word=$2
2754{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2755$as_echo_n "checking for $ac_word... " >&6; }
2756if test "${ac_cv_prog_CC+set}" = set; then :
2757  $as_echo_n "(cached) " >&6
2758else
2759  if test -n "$CC"; then
2760  ac_cv_prog_CC="$CC" # Let the user override the test.
2761else
2762as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2763for as_dir in $PATH
2764do
2765  IFS=$as_save_IFS
2766  test -z "$as_dir" && as_dir=.
2767    for ac_exec_ext in '' $ac_executable_extensions; do
2768  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2769    ac_cv_prog_CC="${ac_tool_prefix}gcc"
2770    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2771    break 2
2772  fi
2773done
2774  done
2775IFS=$as_save_IFS
2776
2777fi
2778fi
2779CC=$ac_cv_prog_CC
2780if test -n "$CC"; then
2781  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2782$as_echo "$CC" >&6; }
2783else
2784  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2785$as_echo "no" >&6; }
2786fi
2787
2788
2789fi
2790if test -z "$ac_cv_prog_CC"; then
2791  ac_ct_CC=$CC
2792  # Extract the first word of "gcc", so it can be a program name with args.
2793set dummy gcc; ac_word=$2
2794{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2795$as_echo_n "checking for $ac_word... " >&6; }
2796if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
2797  $as_echo_n "(cached) " >&6
2798else
2799  if test -n "$ac_ct_CC"; then
2800  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2801else
2802as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2803for as_dir in $PATH
2804do
2805  IFS=$as_save_IFS
2806  test -z "$as_dir" && as_dir=.
2807    for ac_exec_ext in '' $ac_executable_extensions; do
2808  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2809    ac_cv_prog_ac_ct_CC="gcc"
2810    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2811    break 2
2812  fi
2813done
2814  done
2815IFS=$as_save_IFS
2816
2817fi
2818fi
2819ac_ct_CC=$ac_cv_prog_ac_ct_CC
2820if test -n "$ac_ct_CC"; then
2821  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2822$as_echo "$ac_ct_CC" >&6; }
2823else
2824  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2825$as_echo "no" >&6; }
2826fi
2827
2828  if test "x$ac_ct_CC" = x; then
2829    CC=""
2830  else
2831    case $cross_compiling:$ac_tool_warned in
2832yes:)
2833{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2834$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2835ac_tool_warned=yes ;;
2836esac
2837    CC=$ac_ct_CC
2838  fi
2839else
2840  CC="$ac_cv_prog_CC"
2841fi
2842
2843if test -z "$CC"; then
2844          if test -n "$ac_tool_prefix"; then
2845    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2846set dummy ${ac_tool_prefix}cc; ac_word=$2
2847{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2848$as_echo_n "checking for $ac_word... " >&6; }
2849if test "${ac_cv_prog_CC+set}" = set; then :
2850  $as_echo_n "(cached) " >&6
2851else
2852  if test -n "$CC"; then
2853  ac_cv_prog_CC="$CC" # Let the user override the test.
2854else
2855as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2856for as_dir in $PATH
2857do
2858  IFS=$as_save_IFS
2859  test -z "$as_dir" && as_dir=.
2860    for ac_exec_ext in '' $ac_executable_extensions; do
2861  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2862    ac_cv_prog_CC="${ac_tool_prefix}cc"
2863    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2864    break 2
2865  fi
2866done
2867  done
2868IFS=$as_save_IFS
2869
2870fi
2871fi
2872CC=$ac_cv_prog_CC
2873if test -n "$CC"; then
2874  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2875$as_echo "$CC" >&6; }
2876else
2877  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2878$as_echo "no" >&6; }
2879fi
2880
2881
2882  fi
2883fi
2884if test -z "$CC"; then
2885  # Extract the first word of "cc", so it can be a program name with args.
2886set dummy cc; ac_word=$2
2887{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2888$as_echo_n "checking for $ac_word... " >&6; }
2889if test "${ac_cv_prog_CC+set}" = set; then :
2890  $as_echo_n "(cached) " >&6
2891else
2892  if test -n "$CC"; then
2893  ac_cv_prog_CC="$CC" # Let the user override the test.
2894else
2895  ac_prog_rejected=no
2896as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2897for as_dir in $PATH
2898do
2899  IFS=$as_save_IFS
2900  test -z "$as_dir" && as_dir=.
2901    for ac_exec_ext in '' $ac_executable_extensions; do
2902  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2903    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2904       ac_prog_rejected=yes
2905       continue
2906     fi
2907    ac_cv_prog_CC="cc"
2908    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2909    break 2
2910  fi
2911done
2912  done
2913IFS=$as_save_IFS
2914
2915if test $ac_prog_rejected = yes; then
2916  # We found a bogon in the path, so make sure we never use it.
2917  set dummy $ac_cv_prog_CC
2918  shift
2919  if test $# != 0; then
2920    # We chose a different compiler from the bogus one.
2921    # However, it has the same basename, so the bogon will be chosen
2922    # first if we set CC to just the basename; use the full file name.
2923    shift
2924    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2925  fi
2926fi
2927fi
2928fi
2929CC=$ac_cv_prog_CC
2930if test -n "$CC"; then
2931  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2932$as_echo "$CC" >&6; }
2933else
2934  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2935$as_echo "no" >&6; }
2936fi
2937
2938
2939fi
2940if test -z "$CC"; then
2941  if test -n "$ac_tool_prefix"; then
2942  for ac_prog in cl.exe
2943  do
2944    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2945set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2946{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2947$as_echo_n "checking for $ac_word... " >&6; }
2948if test "${ac_cv_prog_CC+set}" = set; then :
2949  $as_echo_n "(cached) " >&6
2950else
2951  if test -n "$CC"; then
2952  ac_cv_prog_CC="$CC" # Let the user override the test.
2953else
2954as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2955for as_dir in $PATH
2956do
2957  IFS=$as_save_IFS
2958  test -z "$as_dir" && as_dir=.
2959    for ac_exec_ext in '' $ac_executable_extensions; do
2960  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2961    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2962    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2963    break 2
2964  fi
2965done
2966  done
2967IFS=$as_save_IFS
2968
2969fi
2970fi
2971CC=$ac_cv_prog_CC
2972if test -n "$CC"; then
2973  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2974$as_echo "$CC" >&6; }
2975else
2976  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2977$as_echo "no" >&6; }
2978fi
2979
2980
2981    test -n "$CC" && break
2982  done
2983fi
2984if test -z "$CC"; then
2985  ac_ct_CC=$CC
2986  for ac_prog in cl.exe
2987do
2988  # Extract the first word of "$ac_prog", so it can be a program name with args.
2989set dummy $ac_prog; ac_word=$2
2990{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2991$as_echo_n "checking for $ac_word... " >&6; }
2992if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
2993  $as_echo_n "(cached) " >&6
2994else
2995  if test -n "$ac_ct_CC"; then
2996  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2997else
2998as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2999for as_dir in $PATH
3000do
3001  IFS=$as_save_IFS
3002  test -z "$as_dir" && as_dir=.
3003    for ac_exec_ext in '' $ac_executable_extensions; do
3004  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3005    ac_cv_prog_ac_ct_CC="$ac_prog"
3006    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3007    break 2
3008  fi
3009done
3010  done
3011IFS=$as_save_IFS
3012
3013fi
3014fi
3015ac_ct_CC=$ac_cv_prog_ac_ct_CC
3016if test -n "$ac_ct_CC"; then
3017  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3018$as_echo "$ac_ct_CC" >&6; }
3019else
3020  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3021$as_echo "no" >&6; }
3022fi
3023
3024
3025  test -n "$ac_ct_CC" && break
3026done
3027
3028  if test "x$ac_ct_CC" = x; then
3029    CC=""
3030  else
3031    case $cross_compiling:$ac_tool_warned in
3032yes:)
3033{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3034$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3035ac_tool_warned=yes ;;
3036esac
3037    CC=$ac_ct_CC
3038  fi
3039fi
3040
3041fi
3042
3043
3044test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3045$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3046as_fn_error "no acceptable C compiler found in \$PATH
3047See \`config.log' for more details." "$LINENO" 5; }
3048
3049# Provide some information about the compiler.
3050$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3051set X $ac_compile
3052ac_compiler=$2
3053for ac_option in --version -v -V -qversion; do
3054  { { ac_try="$ac_compiler $ac_option >&5"
3055case "(($ac_try" in
3056  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3057  *) ac_try_echo=$ac_try;;
3058esac
3059eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3060$as_echo "$ac_try_echo"; } >&5
3061  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3062  ac_status=$?
3063  if test -s conftest.err; then
3064    sed '10a\
3065... rest of stderr output deleted ...
3066         10q' conftest.err >conftest.er1
3067    cat conftest.er1 >&5
3068    rm -f conftest.er1 conftest.err
3069  fi
3070  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3071  test $ac_status = 0; }
3072done
3073
3074cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3075/* end confdefs.h.  */
3076
3077int
3078main ()
3079{
3080
3081  ;
3082  return 0;
3083}
3084_ACEOF
3085ac_clean_files_save=$ac_clean_files
3086ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
3087# Try to create an executable without -o first, disregard a.out.
3088# It will help us diagnose broken compilers, and finding out an intuition
3089# of exeext.
3090{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3091$as_echo_n "checking for C compiler default output file name... " >&6; }
3092ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3093
3094# The possible output files:
3095ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3096
3097ac_rmfiles=
3098for ac_file in $ac_files
3099do
3100  case $ac_file in
3101    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3102    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3103  esac
3104done
3105rm -f $ac_rmfiles
3106
3107if { { ac_try="$ac_link_default"
3108case "(($ac_try" in
3109  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3110  *) ac_try_echo=$ac_try;;
3111esac
3112eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3113$as_echo "$ac_try_echo"; } >&5
3114  (eval "$ac_link_default") 2>&5
3115  ac_status=$?
3116  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3117  test $ac_status = 0; }; then :
3118  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3119# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3120# in a Makefile.  We should not override ac_cv_exeext if it was cached,
3121# so that the user can short-circuit this test for compilers unknown to
3122# Autoconf.
3123for ac_file in $ac_files ''
3124do
3125  test -f "$ac_file" || continue
3126  case $ac_file in
3127    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3128	;;
3129    [ab].out )
3130	# We found the default executable, but exeext='' is most
3131	# certainly right.
3132	break;;
3133    *.* )
3134	if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3135	then :; else
3136	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3137	fi
3138	# We set ac_cv_exeext here because the later test for it is not
3139	# safe: cross compilers may not add the suffix if given an `-o'
3140	# argument, so we may need to know it at that point already.
3141	# Even if this section looks crufty: it has the advantage of
3142	# actually working.
3143	break;;
3144    * )
3145	break;;
3146  esac
3147done
3148test "$ac_cv_exeext" = no && ac_cv_exeext=
3149
3150else
3151  ac_file=''
3152fi
3153{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3154$as_echo "$ac_file" >&6; }
3155if test -z "$ac_file"; then :
3156  $as_echo "$as_me: failed program was:" >&5
3157sed 's/^/| /' conftest.$ac_ext >&5
3158
3159{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3160$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3161{ as_fn_set_status 77
3162as_fn_error "C compiler cannot create executables
3163See \`config.log' for more details." "$LINENO" 5; }; }
3164fi
3165ac_exeext=$ac_cv_exeext
3166
3167# Check that the compiler produces executables we can run.  If not, either
3168# the compiler is broken, or we cross compile.
3169{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3170$as_echo_n "checking whether the C compiler works... " >&6; }
3171# If not cross compiling, check that we can run a simple program.
3172if test "$cross_compiling" != yes; then
3173  if { ac_try='./$ac_file'
3174  { { case "(($ac_try" in
3175  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3176  *) ac_try_echo=$ac_try;;
3177esac
3178eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3179$as_echo "$ac_try_echo"; } >&5
3180  (eval "$ac_try") 2>&5
3181  ac_status=$?
3182  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3183  test $ac_status = 0; }; }; then
3184    cross_compiling=no
3185  else
3186    if test "$cross_compiling" = maybe; then
3187	cross_compiling=yes
3188    else
3189	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3190$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3191as_fn_error "cannot run C compiled programs.
3192If you meant to cross compile, use \`--host'.
3193See \`config.log' for more details." "$LINENO" 5; }
3194    fi
3195  fi
3196fi
3197{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3198$as_echo "yes" >&6; }
3199
3200rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
3201ac_clean_files=$ac_clean_files_save
3202# Check that the compiler produces executables we can run.  If not, either
3203# the compiler is broken, or we cross compile.
3204{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3205$as_echo_n "checking whether we are cross compiling... " >&6; }
3206{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3207$as_echo "$cross_compiling" >&6; }
3208
3209{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3210$as_echo_n "checking for suffix of executables... " >&6; }
3211if { { ac_try="$ac_link"
3212case "(($ac_try" in
3213  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3214  *) ac_try_echo=$ac_try;;
3215esac
3216eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3217$as_echo "$ac_try_echo"; } >&5
3218  (eval "$ac_link") 2>&5
3219  ac_status=$?
3220  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3221  test $ac_status = 0; }; then :
3222  # If both `conftest.exe' and `conftest' are `present' (well, observable)
3223# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3224# work properly (i.e., refer to `conftest.exe'), while it won't with
3225# `rm'.
3226for ac_file in conftest.exe conftest conftest.*; do
3227  test -f "$ac_file" || continue
3228  case $ac_file in
3229    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3230    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3231	  break;;
3232    * ) break;;
3233  esac
3234done
3235else
3236  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3237$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3238as_fn_error "cannot compute suffix of executables: cannot compile and link
3239See \`config.log' for more details." "$LINENO" 5; }
3240fi
3241rm -f conftest$ac_cv_exeext
3242{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3243$as_echo "$ac_cv_exeext" >&6; }
3244
3245rm -f conftest.$ac_ext
3246EXEEXT=$ac_cv_exeext
3247ac_exeext=$EXEEXT
3248{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3249$as_echo_n "checking for suffix of object files... " >&6; }
3250if test "${ac_cv_objext+set}" = set; then :
3251  $as_echo_n "(cached) " >&6
3252else
3253  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3254/* end confdefs.h.  */
3255
3256int
3257main ()
3258{
3259
3260  ;
3261  return 0;
3262}
3263_ACEOF
3264rm -f conftest.o conftest.obj
3265if { { ac_try="$ac_compile"
3266case "(($ac_try" in
3267  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3268  *) ac_try_echo=$ac_try;;
3269esac
3270eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3271$as_echo "$ac_try_echo"; } >&5
3272  (eval "$ac_compile") 2>&5
3273  ac_status=$?
3274  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3275  test $ac_status = 0; }; then :
3276  for ac_file in conftest.o conftest.obj conftest.*; do
3277  test -f "$ac_file" || continue;
3278  case $ac_file in
3279    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3280    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3281       break;;
3282  esac
3283done
3284else
3285  $as_echo "$as_me: failed program was:" >&5
3286sed 's/^/| /' conftest.$ac_ext >&5
3287
3288{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3289$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3290as_fn_error "cannot compute suffix of object files: cannot compile
3291See \`config.log' for more details." "$LINENO" 5; }
3292fi
3293rm -f conftest.$ac_cv_objext conftest.$ac_ext
3294fi
3295{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3296$as_echo "$ac_cv_objext" >&6; }
3297OBJEXT=$ac_cv_objext
3298ac_objext=$OBJEXT
3299{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3300$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3301if test "${ac_cv_c_compiler_gnu+set}" = set; then :
3302  $as_echo_n "(cached) " >&6
3303else
3304  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3305/* end confdefs.h.  */
3306
3307int
3308main ()
3309{
3310#ifndef __GNUC__
3311       choke me
3312#endif
3313
3314  ;
3315  return 0;
3316}
3317_ACEOF
3318if ac_fn_c_try_compile "$LINENO"; then :
3319  ac_compiler_gnu=yes
3320else
3321  ac_compiler_gnu=no
3322fi
3323rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3324ac_cv_c_compiler_gnu=$ac_compiler_gnu
3325
3326fi
3327{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3328$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3329if test $ac_compiler_gnu = yes; then
3330  GCC=yes
3331else
3332  GCC=
3333fi
3334ac_test_CFLAGS=${CFLAGS+set}
3335ac_save_CFLAGS=$CFLAGS
3336{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3337$as_echo_n "checking whether $CC accepts -g... " >&6; }
3338if test "${ac_cv_prog_cc_g+set}" = set; then :
3339  $as_echo_n "(cached) " >&6
3340else
3341  ac_save_c_werror_flag=$ac_c_werror_flag
3342   ac_c_werror_flag=yes
3343   ac_cv_prog_cc_g=no
3344   CFLAGS="-g"
3345   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3346/* end confdefs.h.  */
3347
3348int
3349main ()
3350{
3351
3352  ;
3353  return 0;
3354}
3355_ACEOF
3356if ac_fn_c_try_compile "$LINENO"; then :
3357  ac_cv_prog_cc_g=yes
3358else
3359  CFLAGS=""
3360      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3361/* end confdefs.h.  */
3362
3363int
3364main ()
3365{
3366
3367  ;
3368  return 0;
3369}
3370_ACEOF
3371if ac_fn_c_try_compile "$LINENO"; then :
3372
3373else
3374  ac_c_werror_flag=$ac_save_c_werror_flag
3375	 CFLAGS="-g"
3376	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3377/* end confdefs.h.  */
3378
3379int
3380main ()
3381{
3382
3383  ;
3384  return 0;
3385}
3386_ACEOF
3387if ac_fn_c_try_compile "$LINENO"; then :
3388  ac_cv_prog_cc_g=yes
3389fi
3390rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3391fi
3392rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3393fi
3394rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3395   ac_c_werror_flag=$ac_save_c_werror_flag
3396fi
3397{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3398$as_echo "$ac_cv_prog_cc_g" >&6; }
3399if test "$ac_test_CFLAGS" = set; then
3400  CFLAGS=$ac_save_CFLAGS
3401elif test $ac_cv_prog_cc_g = yes; then
3402  if test "$GCC" = yes; then
3403    CFLAGS="-g -O2"
3404  else
3405    CFLAGS="-g"
3406  fi
3407else
3408  if test "$GCC" = yes; then
3409    CFLAGS="-O2"
3410  else
3411    CFLAGS=
3412  fi
3413fi
3414{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3415$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3416if test "${ac_cv_prog_cc_c89+set}" = set; then :
3417  $as_echo_n "(cached) " >&6
3418else
3419  ac_cv_prog_cc_c89=no
3420ac_save_CC=$CC
3421cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3422/* end confdefs.h.  */
3423#include <stdarg.h>
3424#include <stdio.h>
3425#include <sys/types.h>
3426#include <sys/stat.h>
3427/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3428struct buf { int x; };
3429FILE * (*rcsopen) (struct buf *, struct stat *, int);
3430static char *e (p, i)
3431     char **p;
3432     int i;
3433{
3434  return p[i];
3435}
3436static char *f (char * (*g) (char **, int), char **p, ...)
3437{
3438  char *s;
3439  va_list v;
3440  va_start (v,p);
3441  s = g (p, va_arg (v,int));
3442  va_end (v);
3443  return s;
3444}
3445
3446/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3447   function prototypes and stuff, but not '\xHH' hex character constants.
3448   These don't provoke an error unfortunately, instead are silently treated
3449   as 'x'.  The following induces an error, until -std is added to get
3450   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3451   array size at least.  It's necessary to write '\x00'==0 to get something
3452   that's true only with -std.  */
3453int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3454
3455/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3456   inside strings and character constants.  */
3457#define FOO(x) 'x'
3458int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3459
3460int test (int i, double x);
3461struct s1 {int (*f) (int a);};
3462struct s2 {int (*f) (double a);};
3463int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3464int argc;
3465char **argv;
3466int
3467main ()
3468{
3469return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3470  ;
3471  return 0;
3472}
3473_ACEOF
3474for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3475	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3476do
3477  CC="$ac_save_CC $ac_arg"
3478  if ac_fn_c_try_compile "$LINENO"; then :
3479  ac_cv_prog_cc_c89=$ac_arg
3480fi
3481rm -f core conftest.err conftest.$ac_objext
3482  test "x$ac_cv_prog_cc_c89" != "xno" && break
3483done
3484rm -f conftest.$ac_ext
3485CC=$ac_save_CC
3486
3487fi
3488# AC_CACHE_VAL
3489case "x$ac_cv_prog_cc_c89" in
3490  x)
3491    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3492$as_echo "none needed" >&6; } ;;
3493  xno)
3494    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3495$as_echo "unsupported" >&6; } ;;
3496  *)
3497    CC="$CC $ac_cv_prog_cc_c89"
3498    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3499$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3500esac
3501if test "x$ac_cv_prog_cc_c89" != xno; then :
3502
3503fi
3504
3505ac_ext=c
3506ac_cpp='$CPP $CPPFLAGS'
3507ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3508ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3509ac_compiler_gnu=$ac_cv_c_compiler_gnu
3510DEPDIR="${am__leading_dot}deps"
3511
3512ac_config_commands="$ac_config_commands depfiles"
3513
3514
3515am_make=${MAKE-make}
3516cat > confinc << 'END'
3517am__doit:
3518	@echo this is the am__doit target
3519.PHONY: am__doit
3520END
3521# If we don't find an include directive, just comment out the code.
3522{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3523$as_echo_n "checking for style of include used by $am_make... " >&6; }
3524am__include="#"
3525am__quote=
3526_am_result=none
3527# First try GNU make style include.
3528echo "include confinc" > confmf
3529# Ignore all kinds of additional output from `make'.
3530case `$am_make -s -f confmf 2> /dev/null` in #(
3531*the\ am__doit\ target*)
3532  am__include=include
3533  am__quote=
3534  _am_result=GNU
3535  ;;
3536esac
3537# Now try BSD make style include.
3538if test "$am__include" = "#"; then
3539   echo '.include "confinc"' > confmf
3540   case `$am_make -s -f confmf 2> /dev/null` in #(
3541   *the\ am__doit\ target*)
3542     am__include=.include
3543     am__quote="\""
3544     _am_result=BSD
3545     ;;
3546   esac
3547fi
3548
3549
3550{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3551$as_echo "$_am_result" >&6; }
3552rm -f confinc confmf
3553
3554# Check whether --enable-dependency-tracking was given.
3555if test "${enable_dependency_tracking+set}" = set; then :
3556  enableval=$enable_dependency_tracking;
3557fi
3558
3559if test "x$enable_dependency_tracking" != xno; then
3560  am_depcomp="$ac_aux_dir/depcomp"
3561  AMDEPBACKSLASH='\'
3562fi
3563 if test "x$enable_dependency_tracking" != xno; then
3564  AMDEP_TRUE=
3565  AMDEP_FALSE='#'
3566else
3567  AMDEP_TRUE='#'
3568  AMDEP_FALSE=
3569fi
3570
3571
3572
3573depcc="$CC"   am_compiler_list=
3574
3575{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3576$as_echo_n "checking dependency style of $depcc... " >&6; }
3577if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
3578  $as_echo_n "(cached) " >&6
3579else
3580  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3581  # We make a subdir and do the tests there.  Otherwise we can end up
3582  # making bogus files that we don't know about and never remove.  For
3583  # instance it was reported that on HP-UX the gcc test will end up
3584  # making a dummy file named `D' -- because `-MD' means `put the output
3585  # in D'.
3586  mkdir conftest.dir
3587  # Copy depcomp to subdir because otherwise we won't find it if we're
3588  # using a relative directory.
3589  cp "$am_depcomp" conftest.dir
3590  cd conftest.dir
3591  # We will build objects and dependencies in a subdirectory because
3592  # it helps to detect inapplicable dependency modes.  For instance
3593  # both Tru64's cc and ICC support -MD to output dependencies as a
3594  # side effect of compilation, but ICC will put the dependencies in
3595  # the current directory while Tru64 will put them in the object
3596  # directory.
3597  mkdir sub
3598
3599  am_cv_CC_dependencies_compiler_type=none
3600  if test "$am_compiler_list" = ""; then
3601     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3602  fi
3603  am__universal=false
3604  case " $depcc " in #(
3605     *\ -arch\ *\ -arch\ *) am__universal=true ;;
3606     esac
3607
3608  for depmode in $am_compiler_list; do
3609    # Setup a source with many dependencies, because some compilers
3610    # like to wrap large dependency lists on column 80 (with \), and
3611    # we should not choose a depcomp mode which is confused by this.
3612    #
3613    # We need to recreate these files for each test, as the compiler may
3614    # overwrite some of them when testing with obscure command lines.
3615    # This happens at least with the AIX C compiler.
3616    : > sub/conftest.c
3617    for i in 1 2 3 4 5 6; do
3618      echo '#include "conftst'$i'.h"' >> sub/conftest.c
3619      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3620      # Solaris 8's {/usr,}/bin/sh.
3621      touch sub/conftst$i.h
3622    done
3623    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3624
3625    # We check with `-c' and `-o' for the sake of the "dashmstdout"
3626    # mode.  It turns out that the SunPro C++ compiler does not properly
3627    # handle `-M -o', and we need to detect this.  Also, some Intel
3628    # versions had trouble with output in subdirs
3629    am__obj=sub/conftest.${OBJEXT-o}
3630    am__minus_obj="-o $am__obj"
3631    case $depmode in
3632    gcc)
3633      # This depmode causes a compiler race in universal mode.
3634      test "$am__universal" = false || continue
3635      ;;
3636    nosideeffect)
3637      # after this tag, mechanisms are not by side-effect, so they'll
3638      # only be used when explicitly requested
3639      if test "x$enable_dependency_tracking" = xyes; then
3640	continue
3641      else
3642	break
3643      fi
3644      ;;
3645    msvisualcpp | msvcmsys)
3646      # This compiler won't grok `-c -o', but also, the minuso test has
3647      # not run yet.  These depmodes are late enough in the game, and
3648      # so weak that their functioning should not be impacted.
3649      am__obj=conftest.${OBJEXT-o}
3650      am__minus_obj=
3651      ;;
3652    none) break ;;
3653    esac
3654    if depmode=$depmode \
3655       source=sub/conftest.c object=$am__obj \
3656       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3657       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3658         >/dev/null 2>conftest.err &&
3659       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3660       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3661       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
3662       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3663      # icc doesn't choke on unknown options, it will just issue warnings
3664      # or remarks (even with -Werror).  So we grep stderr for any message
3665      # that says an option was ignored or not supported.
3666      # When given -MP, icc 7.0 and 7.1 complain thusly:
3667      #   icc: Command line warning: ignoring option '-M'; no argument required
3668      # The diagnosis changed in icc 8.0:
3669      #   icc: Command line remark: option '-MP' not supported
3670      if (grep 'ignoring option' conftest.err ||
3671          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3672        am_cv_CC_dependencies_compiler_type=$depmode
3673        break
3674      fi
3675    fi
3676  done
3677
3678  cd ..
3679  rm -rf conftest.dir
3680else
3681  am_cv_CC_dependencies_compiler_type=none
3682fi
3683
3684fi
3685{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
3686$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
3687CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3688
3689 if
3690  test "x$enable_dependency_tracking" != xno \
3691  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3692  am__fastdepCC_TRUE=
3693  am__fastdepCC_FALSE='#'
3694else
3695  am__fastdepCC_TRUE='#'
3696  am__fastdepCC_FALSE=
3697fi
3698
3699
3700
3701# Check whether --enable-largefile was given.
3702if test "${enable_largefile+set}" = set; then :
3703  enableval=$enable_largefile;
3704fi
3705
3706if test "$enable_largefile" != no; then
3707
3708  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
3709$as_echo_n "checking for special C compiler options needed for large files... " >&6; }
3710if test "${ac_cv_sys_largefile_CC+set}" = set; then :
3711  $as_echo_n "(cached) " >&6
3712else
3713  ac_cv_sys_largefile_CC=no
3714     if test "$GCC" != yes; then
3715       ac_save_CC=$CC
3716       while :; do
3717	 # IRIX 6.2 and later do not support large files by default,
3718	 # so use the C compiler's -n32 option if that helps.
3719	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3720/* end confdefs.h.  */
3721#include <sys/types.h>
3722 /* Check that off_t can represent 2**63 - 1 correctly.
3723    We can't simply define LARGE_OFF_T to be 9223372036854775807,
3724    since some C++ compilers masquerading as C compilers
3725    incorrectly reject 9223372036854775807.  */
3726#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
3727  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
3728		       && LARGE_OFF_T % 2147483647 == 1)
3729		      ? 1 : -1];
3730int
3731main ()
3732{
3733
3734  ;
3735  return 0;
3736}
3737_ACEOF
3738	 if ac_fn_c_try_compile "$LINENO"; then :
3739  break
3740fi
3741rm -f core conftest.err conftest.$ac_objext
3742	 CC="$CC -n32"
3743	 if ac_fn_c_try_compile "$LINENO"; then :
3744  ac_cv_sys_largefile_CC=' -n32'; break
3745fi
3746rm -f core conftest.err conftest.$ac_objext
3747	 break
3748       done
3749       CC=$ac_save_CC
3750       rm -f conftest.$ac_ext
3751    fi
3752fi
3753{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
3754$as_echo "$ac_cv_sys_largefile_CC" >&6; }
3755  if test "$ac_cv_sys_largefile_CC" != no; then
3756    CC=$CC$ac_cv_sys_largefile_CC
3757  fi
3758
3759  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
3760$as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
3761if test "${ac_cv_sys_file_offset_bits+set}" = set; then :
3762  $as_echo_n "(cached) " >&6
3763else
3764  while :; do
3765  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3766/* end confdefs.h.  */
3767#include <sys/types.h>
3768 /* Check that off_t can represent 2**63 - 1 correctly.
3769    We can't simply define LARGE_OFF_T to be 9223372036854775807,
3770    since some C++ compilers masquerading as C compilers
3771    incorrectly reject 9223372036854775807.  */
3772#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
3773  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
3774		       && LARGE_OFF_T % 2147483647 == 1)
3775		      ? 1 : -1];
3776int
3777main ()
3778{
3779
3780  ;
3781  return 0;
3782}
3783_ACEOF
3784if ac_fn_c_try_compile "$LINENO"; then :
3785  ac_cv_sys_file_offset_bits=no; break
3786fi
3787rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3788  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3789/* end confdefs.h.  */
3790#define _FILE_OFFSET_BITS 64
3791#include <sys/types.h>
3792 /* Check that off_t can represent 2**63 - 1 correctly.
3793    We can't simply define LARGE_OFF_T to be 9223372036854775807,
3794    since some C++ compilers masquerading as C compilers
3795    incorrectly reject 9223372036854775807.  */
3796#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
3797  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
3798		       && LARGE_OFF_T % 2147483647 == 1)
3799		      ? 1 : -1];
3800int
3801main ()
3802{
3803
3804  ;
3805  return 0;
3806}
3807_ACEOF
3808if ac_fn_c_try_compile "$LINENO"; then :
3809  ac_cv_sys_file_offset_bits=64; break
3810fi
3811rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3812  ac_cv_sys_file_offset_bits=unknown
3813  break
3814done
3815fi
3816{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
3817$as_echo "$ac_cv_sys_file_offset_bits" >&6; }
3818case $ac_cv_sys_file_offset_bits in #(
3819  no | unknown) ;;
3820  *)
3821cat >>confdefs.h <<_ACEOF
3822#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
3823_ACEOF
3824;;
3825esac
3826rm -rf conftest*
3827  if test $ac_cv_sys_file_offset_bits = unknown; then
3828    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
3829$as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
3830if test "${ac_cv_sys_large_files+set}" = set; then :
3831  $as_echo_n "(cached) " >&6
3832else
3833  while :; do
3834  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3835/* end confdefs.h.  */
3836#include <sys/types.h>
3837 /* Check that off_t can represent 2**63 - 1 correctly.
3838    We can't simply define LARGE_OFF_T to be 9223372036854775807,
3839    since some C++ compilers masquerading as C compilers
3840    incorrectly reject 9223372036854775807.  */
3841#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
3842  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
3843		       && LARGE_OFF_T % 2147483647 == 1)
3844		      ? 1 : -1];
3845int
3846main ()
3847{
3848
3849  ;
3850  return 0;
3851}
3852_ACEOF
3853if ac_fn_c_try_compile "$LINENO"; then :
3854  ac_cv_sys_large_files=no; break
3855fi
3856rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3857  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3858/* end confdefs.h.  */
3859#define _LARGE_FILES 1
3860#include <sys/types.h>
3861 /* Check that off_t can represent 2**63 - 1 correctly.
3862    We can't simply define LARGE_OFF_T to be 9223372036854775807,
3863    since some C++ compilers masquerading as C compilers
3864    incorrectly reject 9223372036854775807.  */
3865#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
3866  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
3867		       && LARGE_OFF_T % 2147483647 == 1)
3868		      ? 1 : -1];
3869int
3870main ()
3871{
3872
3873  ;
3874  return 0;
3875}
3876_ACEOF
3877if ac_fn_c_try_compile "$LINENO"; then :
3878  ac_cv_sys_large_files=1; break
3879fi
3880rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3881  ac_cv_sys_large_files=unknown
3882  break
3883done
3884fi
3885{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
3886$as_echo "$ac_cv_sys_large_files" >&6; }
3887case $ac_cv_sys_large_files in #(
3888  no | unknown) ;;
3889  *)
3890cat >>confdefs.h <<_ACEOF
3891#define _LARGE_FILES $ac_cv_sys_large_files
3892_ACEOF
3893;;
3894esac
3895rm -rf conftest*
3896  fi
3897fi
3898
3899
3900
3901case `pwd` in
3902  *\ * | *\	*)
3903    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
3904$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
3905esac
3906
3907
3908
3909macro_version='2.2.7a'
3910macro_revision='1.3134'
3911
3912
3913
3914
3915
3916
3917
3918
3919
3920
3921
3922
3923
3924ltmain="$ac_aux_dir/ltmain.sh"
3925
3926{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3927$as_echo_n "checking host system type... " >&6; }
3928if test "${ac_cv_host+set}" = set; then :
3929  $as_echo_n "(cached) " >&6
3930else
3931  if test "x$host_alias" = x; then
3932  ac_cv_host=$ac_cv_build
3933else
3934  ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3935    as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3936fi
3937
3938fi
3939{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3940$as_echo "$ac_cv_host" >&6; }
3941case $ac_cv_host in
3942*-*-*) ;;
3943*) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
3944esac
3945host=$ac_cv_host
3946ac_save_IFS=$IFS; IFS='-'
3947set x $ac_cv_host
3948shift
3949host_cpu=$1
3950host_vendor=$2
3951shift; shift
3952# Remember, the first character of IFS is used to create $*,
3953# except with old shells:
3954host_os=$*
3955IFS=$ac_save_IFS
3956case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3957
3958
3959# Backslashify metacharacters that are still active within
3960# double-quoted strings.
3961sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
3962
3963# Same as above, but do not quote variable references.
3964double_quote_subst='s/\(["`\\]\)/\\\1/g'
3965
3966# Sed substitution to delay expansion of an escaped shell variable in a
3967# double_quote_subst'ed string.
3968delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
3969
3970# Sed substitution to delay expansion of an escaped single quote.
3971delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
3972
3973# Sed substitution to avoid accidental globbing in evaled expressions
3974no_glob_subst='s/\*/\\\*/g'
3975
3976ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
3977ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
3978ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
3979
3980{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
3981$as_echo_n "checking how to print strings... " >&6; }
3982# Test print first, because it will be a builtin if present.
3983if test "X`print -r -- -n 2>/dev/null`" = X-n && \
3984   test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
3985  ECHO='print -r --'
3986elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
3987  ECHO='printf %s\n'
3988else
3989  # Use this function as a fallback that always works.
3990  func_fallback_echo ()
3991  {
3992    eval 'cat <<_LTECHO_EOF
3993$1
3994_LTECHO_EOF'
3995  }
3996  ECHO='func_fallback_echo'
3997fi
3998
3999# func_echo_all arg...
4000# Invoke $ECHO with all args, space-separated.
4001func_echo_all ()
4002{
4003    $ECHO ""
4004}
4005
4006case "$ECHO" in
4007  printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
4008$as_echo "printf" >&6; } ;;
4009  print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
4010$as_echo "print -r" >&6; } ;;
4011  *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
4012$as_echo "cat" >&6; } ;;
4013esac
4014
4015
4016
4017
4018
4019
4020
4021
4022
4023
4024
4025
4026
4027
4028{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4029$as_echo_n "checking for a sed that does not truncate output... " >&6; }
4030if test "${ac_cv_path_SED+set}" = set; then :
4031  $as_echo_n "(cached) " >&6
4032else
4033            ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4034     for ac_i in 1 2 3 4 5 6 7; do
4035       ac_script="$ac_script$as_nl$ac_script"
4036     done
4037     echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4038     { ac_script=; unset ac_script;}
4039     if test -z "$SED"; then
4040  ac_path_SED_found=false
4041  # Loop through the user's path and test for each of PROGNAME-LIST
4042  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4043for as_dir in $PATH
4044do
4045  IFS=$as_save_IFS
4046  test -z "$as_dir" && as_dir=.
4047    for ac_prog in sed gsed; do
4048    for ac_exec_ext in '' $ac_executable_extensions; do
4049      ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4050      { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
4051# Check for GNU ac_path_SED and select it if it is found.
4052  # Check for GNU $ac_path_SED
4053case `"$ac_path_SED" --version 2>&1` in
4054*GNU*)
4055  ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4056*)
4057  ac_count=0
4058  $as_echo_n 0123456789 >"conftest.in"
4059  while :
4060  do
4061    cat "conftest.in" "conftest.in" >"conftest.tmp"
4062    mv "conftest.tmp" "conftest.in"
4063    cp "conftest.in" "conftest.nl"
4064    $as_echo '' >> "conftest.nl"
4065    "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4066    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4067    as_fn_arith $ac_count + 1 && ac_count=$as_val
4068    if test $ac_count -gt ${ac_path_SED_max-0}; then
4069      # Best one so far, save it but keep looking for a better one
4070      ac_cv_path_SED="$ac_path_SED"
4071      ac_path_SED_max=$ac_count
4072    fi
4073    # 10*(2^10) chars as input seems more than enough
4074    test $ac_count -gt 10 && break
4075  done
4076  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4077esac
4078
4079      $ac_path_SED_found && break 3
4080    done
4081  done
4082  done
4083IFS=$as_save_IFS
4084  if test -z "$ac_cv_path_SED"; then
4085    as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
4086  fi
4087else
4088  ac_cv_path_SED=$SED
4089fi
4090
4091fi
4092{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4093$as_echo "$ac_cv_path_SED" >&6; }
4094 SED="$ac_cv_path_SED"
4095  rm -f conftest.sed
4096
4097test -z "$SED" && SED=sed
4098Xsed="$SED -e 1s/^X//"
4099
4100
4101
4102
4103
4104
4105
4106
4107
4108
4109
4110{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4111$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4112if test "${ac_cv_path_GREP+set}" = set; then :
4113  $as_echo_n "(cached) " >&6
4114else
4115  if test -z "$GREP"; then
4116  ac_path_GREP_found=false
4117  # Loop through the user's path and test for each of PROGNAME-LIST
4118  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4119for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4120do
4121  IFS=$as_save_IFS
4122  test -z "$as_dir" && as_dir=.
4123    for ac_prog in grep ggrep; do
4124    for ac_exec_ext in '' $ac_executable_extensions; do
4125      ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4126      { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4127# Check for GNU ac_path_GREP and select it if it is found.
4128  # Check for GNU $ac_path_GREP
4129case `"$ac_path_GREP" --version 2>&1` in
4130*GNU*)
4131  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4132*)
4133  ac_count=0
4134  $as_echo_n 0123456789 >"conftest.in"
4135  while :
4136  do
4137    cat "conftest.in" "conftest.in" >"conftest.tmp"
4138    mv "conftest.tmp" "conftest.in"
4139    cp "conftest.in" "conftest.nl"
4140    $as_echo 'GREP' >> "conftest.nl"
4141    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4142    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4143    as_fn_arith $ac_count + 1 && ac_count=$as_val
4144    if test $ac_count -gt ${ac_path_GREP_max-0}; then
4145      # Best one so far, save it but keep looking for a better one
4146      ac_cv_path_GREP="$ac_path_GREP"
4147      ac_path_GREP_max=$ac_count
4148    fi
4149    # 10*(2^10) chars as input seems more than enough
4150    test $ac_count -gt 10 && break
4151  done
4152  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4153esac
4154
4155      $ac_path_GREP_found && break 3
4156    done
4157  done
4158  done
4159IFS=$as_save_IFS
4160  if test -z "$ac_cv_path_GREP"; then
4161    as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4162  fi
4163else
4164  ac_cv_path_GREP=$GREP
4165fi
4166
4167fi
4168{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4169$as_echo "$ac_cv_path_GREP" >&6; }
4170 GREP="$ac_cv_path_GREP"
4171
4172
4173{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4174$as_echo_n "checking for egrep... " >&6; }
4175if test "${ac_cv_path_EGREP+set}" = set; then :
4176  $as_echo_n "(cached) " >&6
4177else
4178  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4179   then ac_cv_path_EGREP="$GREP -E"
4180   else
4181     if test -z "$EGREP"; then
4182  ac_path_EGREP_found=false
4183  # Loop through the user's path and test for each of PROGNAME-LIST
4184  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4185for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4186do
4187  IFS=$as_save_IFS
4188  test -z "$as_dir" && as_dir=.
4189    for ac_prog in egrep; do
4190    for ac_exec_ext in '' $ac_executable_extensions; do
4191      ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4192      { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4193# Check for GNU ac_path_EGREP and select it if it is found.
4194  # Check for GNU $ac_path_EGREP
4195case `"$ac_path_EGREP" --version 2>&1` in
4196*GNU*)
4197  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4198*)
4199  ac_count=0
4200  $as_echo_n 0123456789 >"conftest.in"
4201  while :
4202  do
4203    cat "conftest.in" "conftest.in" >"conftest.tmp"
4204    mv "conftest.tmp" "conftest.in"
4205    cp "conftest.in" "conftest.nl"
4206    $as_echo 'EGREP' >> "conftest.nl"
4207    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4208    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4209    as_fn_arith $ac_count + 1 && ac_count=$as_val
4210    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4211      # Best one so far, save it but keep looking for a better one
4212      ac_cv_path_EGREP="$ac_path_EGREP"
4213      ac_path_EGREP_max=$ac_count
4214    fi
4215    # 10*(2^10) chars as input seems more than enough
4216    test $ac_count -gt 10 && break
4217  done
4218  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4219esac
4220
4221      $ac_path_EGREP_found && break 3
4222    done
4223  done
4224  done
4225IFS=$as_save_IFS
4226  if test -z "$ac_cv_path_EGREP"; then
4227    as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4228  fi
4229else
4230  ac_cv_path_EGREP=$EGREP
4231fi
4232
4233   fi
4234fi
4235{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4236$as_echo "$ac_cv_path_EGREP" >&6; }
4237 EGREP="$ac_cv_path_EGREP"
4238
4239
4240{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4241$as_echo_n "checking for fgrep... " >&6; }
4242if test "${ac_cv_path_FGREP+set}" = set; then :
4243  $as_echo_n "(cached) " >&6
4244else
4245  if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4246   then ac_cv_path_FGREP="$GREP -F"
4247   else
4248     if test -z "$FGREP"; then
4249  ac_path_FGREP_found=false
4250  # Loop through the user's path and test for each of PROGNAME-LIST
4251  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4252for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4253do
4254  IFS=$as_save_IFS
4255  test -z "$as_dir" && as_dir=.
4256    for ac_prog in fgrep; do
4257    for ac_exec_ext in '' $ac_executable_extensions; do
4258      ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4259      { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
4260# Check for GNU ac_path_FGREP and select it if it is found.
4261  # Check for GNU $ac_path_FGREP
4262case `"$ac_path_FGREP" --version 2>&1` in
4263*GNU*)
4264  ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4265*)
4266  ac_count=0
4267  $as_echo_n 0123456789 >"conftest.in"
4268  while :
4269  do
4270    cat "conftest.in" "conftest.in" >"conftest.tmp"
4271    mv "conftest.tmp" "conftest.in"
4272    cp "conftest.in" "conftest.nl"
4273    $as_echo 'FGREP' >> "conftest.nl"
4274    "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4275    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4276    as_fn_arith $ac_count + 1 && ac_count=$as_val
4277    if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4278      # Best one so far, save it but keep looking for a better one
4279      ac_cv_path_FGREP="$ac_path_FGREP"
4280      ac_path_FGREP_max=$ac_count
4281    fi
4282    # 10*(2^10) chars as input seems more than enough
4283    test $ac_count -gt 10 && break
4284  done
4285  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4286esac
4287
4288      $ac_path_FGREP_found && break 3
4289    done
4290  done
4291  done
4292IFS=$as_save_IFS
4293  if test -z "$ac_cv_path_FGREP"; then
4294    as_fn_error "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4295  fi
4296else
4297  ac_cv_path_FGREP=$FGREP
4298fi
4299
4300   fi
4301fi
4302{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
4303$as_echo "$ac_cv_path_FGREP" >&6; }
4304 FGREP="$ac_cv_path_FGREP"
4305
4306
4307test -z "$GREP" && GREP=grep
4308
4309
4310
4311
4312
4313
4314
4315
4316
4317
4318
4319
4320
4321
4322
4323
4324
4325
4326
4327# Check whether --with-gnu-ld was given.
4328if test "${with_gnu_ld+set}" = set; then :
4329  withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4330else
4331  with_gnu_ld=no
4332fi
4333
4334ac_prog=ld
4335if test "$GCC" = yes; then
4336  # Check if gcc -print-prog-name=ld gives a path.
4337  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
4338$as_echo_n "checking for ld used by $CC... " >&6; }
4339  case $host in
4340  *-*-mingw*)
4341    # gcc leaves a trailing carriage return which upsets mingw
4342    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4343  *)
4344    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4345  esac
4346  case $ac_prog in
4347    # Accept absolute paths.
4348    [\\/]* | ?:[\\/]*)
4349      re_direlt='/[^/][^/]*/\.\./'
4350      # Canonicalize the pathname of ld
4351      ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4352      while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4353	ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4354      done
4355      test -z "$LD" && LD="$ac_prog"
4356      ;;
4357  "")
4358    # If it fails, then pretend we aren't using GCC.
4359    ac_prog=ld
4360    ;;
4361  *)
4362    # If it is relative, then search for the first ld in PATH.
4363    with_gnu_ld=unknown
4364    ;;
4365  esac
4366elif test "$with_gnu_ld" = yes; then
4367  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
4368$as_echo_n "checking for GNU ld... " >&6; }
4369else
4370  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
4371$as_echo_n "checking for non-GNU ld... " >&6; }
4372fi
4373if test "${lt_cv_path_LD+set}" = set; then :
4374  $as_echo_n "(cached) " >&6
4375else
4376  if test -z "$LD"; then
4377  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4378  for ac_dir in $PATH; do
4379    IFS="$lt_save_ifs"
4380    test -z "$ac_dir" && ac_dir=.
4381    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4382      lt_cv_path_LD="$ac_dir/$ac_prog"
4383      # Check to see if the program is GNU ld.  I'd rather use --version,
4384      # but apparently some variants of GNU ld only accept -v.
4385      # Break only if it was the GNU/non-GNU ld that we prefer.
4386      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4387      *GNU* | *'with BFD'*)
4388	test "$with_gnu_ld" != no && break
4389	;;
4390      *)
4391	test "$with_gnu_ld" != yes && break
4392	;;
4393      esac
4394    fi
4395  done
4396  IFS="$lt_save_ifs"
4397else
4398  lt_cv_path_LD="$LD" # Let the user override the test with a path.
4399fi
4400fi
4401
4402LD="$lt_cv_path_LD"
4403if test -n "$LD"; then
4404  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
4405$as_echo "$LD" >&6; }
4406else
4407  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4408$as_echo "no" >&6; }
4409fi
4410test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
4411{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
4412$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4413if test "${lt_cv_prog_gnu_ld+set}" = set; then :
4414  $as_echo_n "(cached) " >&6
4415else
4416  # I'd rather use --version here, but apparently some GNU lds only accept -v.
4417case `$LD -v 2>&1 </dev/null` in
4418*GNU* | *'with BFD'*)
4419  lt_cv_prog_gnu_ld=yes
4420  ;;
4421*)
4422  lt_cv_prog_gnu_ld=no
4423  ;;
4424esac
4425fi
4426{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
4427$as_echo "$lt_cv_prog_gnu_ld" >&6; }
4428with_gnu_ld=$lt_cv_prog_gnu_ld
4429
4430
4431
4432
4433
4434
4435
4436
4437
4438{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
4439$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
4440if test "${lt_cv_path_NM+set}" = set; then :
4441  $as_echo_n "(cached) " >&6
4442else
4443  if test -n "$NM"; then
4444  # Let the user override the test.
4445  lt_cv_path_NM="$NM"
4446else
4447  lt_nm_to_check="${ac_tool_prefix}nm"
4448  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4449    lt_nm_to_check="$lt_nm_to_check nm"
4450  fi
4451  for lt_tmp_nm in $lt_nm_to_check; do
4452    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4453    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4454      IFS="$lt_save_ifs"
4455      test -z "$ac_dir" && ac_dir=.
4456      tmp_nm="$ac_dir/$lt_tmp_nm"
4457      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4458	# Check to see if the nm accepts a BSD-compat flag.
4459	# Adding the `sed 1q' prevents false positives on HP-UX, which says:
4460	#   nm: unknown option "B" ignored
4461	# Tru64's nm complains that /dev/null is an invalid object file
4462	case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4463	*/dev/null* | *'Invalid file or object type'*)
4464	  lt_cv_path_NM="$tmp_nm -B"
4465	  break
4466	  ;;
4467	*)
4468	  case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4469	  */dev/null*)
4470	    lt_cv_path_NM="$tmp_nm -p"
4471	    break
4472	    ;;
4473	  *)
4474	    lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4475	    continue # so that we can try to find one that supports BSD flags
4476	    ;;
4477	  esac
4478	  ;;
4479	esac
4480      fi
4481    done
4482    IFS="$lt_save_ifs"
4483  done
4484  : ${lt_cv_path_NM=no}
4485fi
4486fi
4487{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
4488$as_echo "$lt_cv_path_NM" >&6; }
4489if test "$lt_cv_path_NM" != "no"; then
4490  NM="$lt_cv_path_NM"
4491else
4492  # Didn't find any BSD compatible name lister, look for dumpbin.
4493  if test -n "$DUMPBIN"; then :
4494    # Let the user override the test.
4495  else
4496    if test -n "$ac_tool_prefix"; then
4497  for ac_prog in dumpbin "link -dump"
4498  do
4499    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4500set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4501{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4502$as_echo_n "checking for $ac_word... " >&6; }
4503if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
4504  $as_echo_n "(cached) " >&6
4505else
4506  if test -n "$DUMPBIN"; then
4507  ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
4508else
4509as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4510for as_dir in $PATH
4511do
4512  IFS=$as_save_IFS
4513  test -z "$as_dir" && as_dir=.
4514    for ac_exec_ext in '' $ac_executable_extensions; do
4515  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4516    ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
4517    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4518    break 2
4519  fi
4520done
4521  done
4522IFS=$as_save_IFS
4523
4524fi
4525fi
4526DUMPBIN=$ac_cv_prog_DUMPBIN
4527if test -n "$DUMPBIN"; then
4528  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
4529$as_echo "$DUMPBIN" >&6; }
4530else
4531  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4532$as_echo "no" >&6; }
4533fi
4534
4535
4536    test -n "$DUMPBIN" && break
4537  done
4538fi
4539if test -z "$DUMPBIN"; then
4540  ac_ct_DUMPBIN=$DUMPBIN
4541  for ac_prog in dumpbin "link -dump"
4542do
4543  # Extract the first word of "$ac_prog", so it can be a program name with args.
4544set dummy $ac_prog; ac_word=$2
4545{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4546$as_echo_n "checking for $ac_word... " >&6; }
4547if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
4548  $as_echo_n "(cached) " >&6
4549else
4550  if test -n "$ac_ct_DUMPBIN"; then
4551  ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
4552else
4553as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4554for as_dir in $PATH
4555do
4556  IFS=$as_save_IFS
4557  test -z "$as_dir" && as_dir=.
4558    for ac_exec_ext in '' $ac_executable_extensions; do
4559  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4560    ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
4561    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4562    break 2
4563  fi
4564done
4565  done
4566IFS=$as_save_IFS
4567
4568fi
4569fi
4570ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
4571if test -n "$ac_ct_DUMPBIN"; then
4572  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
4573$as_echo "$ac_ct_DUMPBIN" >&6; }
4574else
4575  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4576$as_echo "no" >&6; }
4577fi
4578
4579
4580  test -n "$ac_ct_DUMPBIN" && break
4581done
4582
4583  if test "x$ac_ct_DUMPBIN" = x; then
4584    DUMPBIN=":"
4585  else
4586    case $cross_compiling:$ac_tool_warned in
4587yes:)
4588{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4589$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4590ac_tool_warned=yes ;;
4591esac
4592    DUMPBIN=$ac_ct_DUMPBIN
4593  fi
4594fi
4595
4596    case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
4597    *COFF*)
4598      DUMPBIN="$DUMPBIN -symbols"
4599      ;;
4600    *)
4601      DUMPBIN=:
4602      ;;
4603    esac
4604  fi
4605
4606  if test "$DUMPBIN" != ":"; then
4607    NM="$DUMPBIN"
4608  fi
4609fi
4610test -z "$NM" && NM=nm
4611
4612
4613
4614
4615
4616
4617{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
4618$as_echo_n "checking the name lister ($NM) interface... " >&6; }
4619if test "${lt_cv_nm_interface+set}" = set; then :
4620  $as_echo_n "(cached) " >&6
4621else
4622  lt_cv_nm_interface="BSD nm"
4623  echo "int some_variable = 0;" > conftest.$ac_ext
4624  (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
4625  (eval "$ac_compile" 2>conftest.err)
4626  cat conftest.err >&5
4627  (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
4628  (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
4629  cat conftest.err >&5
4630  (eval echo "\"\$as_me:$LINENO: output\"" >&5)
4631  cat conftest.out >&5
4632  if $GREP 'External.*some_variable' conftest.out > /dev/null; then
4633    lt_cv_nm_interface="MS dumpbin"
4634  fi
4635  rm -f conftest*
4636fi
4637{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
4638$as_echo "$lt_cv_nm_interface" >&6; }
4639
4640{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
4641$as_echo_n "checking whether ln -s works... " >&6; }
4642LN_S=$as_ln_s
4643if test "$LN_S" = "ln -s"; then
4644  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4645$as_echo "yes" >&6; }
4646else
4647  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
4648$as_echo "no, using $LN_S" >&6; }
4649fi
4650
4651# find the maximum length of command line arguments
4652{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
4653$as_echo_n "checking the maximum length of command line arguments... " >&6; }
4654if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
4655  $as_echo_n "(cached) " >&6
4656else
4657    i=0
4658  teststring="ABCD"
4659
4660  case $build_os in
4661  msdosdjgpp*)
4662    # On DJGPP, this test can blow up pretty badly due to problems in libc
4663    # (any single argument exceeding 2000 bytes causes a buffer overrun
4664    # during glob expansion).  Even if it were fixed, the result of this
4665    # check would be larger than it should be.
4666    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
4667    ;;
4668
4669  gnu*)
4670    # Under GNU Hurd, this test is not required because there is
4671    # no limit to the length of command line arguments.
4672    # Libtool will interpret -1 as no limit whatsoever
4673    lt_cv_sys_max_cmd_len=-1;
4674    ;;
4675
4676  cygwin* | mingw* | cegcc*)
4677    # On Win9x/ME, this test blows up -- it succeeds, but takes
4678    # about 5 minutes as the teststring grows exponentially.
4679    # Worse, since 9x/ME are not pre-emptively multitasking,
4680    # you end up with a "frozen" computer, even though with patience
4681    # the test eventually succeeds (with a max line length of 256k).
4682    # Instead, let's just punt: use the minimum linelength reported by
4683    # all of the supported platforms: 8192 (on NT/2K/XP).
4684    lt_cv_sys_max_cmd_len=8192;
4685    ;;
4686
4687  mint*)
4688    # On MiNT this can take a long time and run out of memory.
4689    lt_cv_sys_max_cmd_len=8192;
4690    ;;
4691
4692  amigaos*)
4693    # On AmigaOS with pdksh, this test takes hours, literally.
4694    # So we just punt and use a minimum line length of 8192.
4695    lt_cv_sys_max_cmd_len=8192;
4696    ;;
4697
4698  netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
4699    # This has been around since 386BSD, at least.  Likely further.
4700    if test -x /sbin/sysctl; then
4701      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
4702    elif test -x /usr/sbin/sysctl; then
4703      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
4704    else
4705      lt_cv_sys_max_cmd_len=65536	# usable default for all BSDs
4706    fi
4707    # And add a safety zone
4708    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4709    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4710    ;;
4711
4712  interix*)
4713    # We know the value 262144 and hardcode it with a safety zone (like BSD)
4714    lt_cv_sys_max_cmd_len=196608
4715    ;;
4716
4717  osf*)
4718    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
4719    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
4720    # nice to cause kernel panics so lets avoid the loop below.
4721    # First set a reasonable default.
4722    lt_cv_sys_max_cmd_len=16384
4723    #
4724    if test -x /sbin/sysconfig; then
4725      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
4726        *1*) lt_cv_sys_max_cmd_len=-1 ;;
4727      esac
4728    fi
4729    ;;
4730  sco3.2v5*)
4731    lt_cv_sys_max_cmd_len=102400
4732    ;;
4733  sysv5* | sco5v6* | sysv4.2uw2*)
4734    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
4735    if test -n "$kargmax"; then
4736      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[	 ]//'`
4737    else
4738      lt_cv_sys_max_cmd_len=32768
4739    fi
4740    ;;
4741  *)
4742    lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
4743    if test -n "$lt_cv_sys_max_cmd_len"; then
4744      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4745      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4746    else
4747      # Make teststring a little bigger before we do anything with it.
4748      # a 1K string should be a reasonable start.
4749      for i in 1 2 3 4 5 6 7 8 ; do
4750        teststring=$teststring$teststring
4751      done
4752      SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
4753      # If test is not a shell built-in, we'll probably end up computing a
4754      # maximum length that is only half of the actual maximum length, but
4755      # we can't tell.
4756      while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
4757	         = "X$teststring$teststring"; } >/dev/null 2>&1 &&
4758	      test $i != 17 # 1/2 MB should be enough
4759      do
4760        i=`expr $i + 1`
4761        teststring=$teststring$teststring
4762      done
4763      # Only check the string length outside the loop.
4764      lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
4765      teststring=
4766      # Add a significant safety factor because C++ compilers can tack on
4767      # massive amounts of additional arguments before passing them to the
4768      # linker.  It appears as though 1/2 is a usable value.
4769      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
4770    fi
4771    ;;
4772  esac
4773
4774fi
4775
4776if test -n $lt_cv_sys_max_cmd_len ; then
4777  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
4778$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
4779else
4780  { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
4781$as_echo "none" >&6; }
4782fi
4783max_cmd_len=$lt_cv_sys_max_cmd_len
4784
4785
4786
4787
4788
4789
4790: ${CP="cp -f"}
4791: ${MV="mv -f"}
4792: ${RM="rm -f"}
4793
4794{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
4795$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
4796# Try some XSI features
4797xsi_shell=no
4798( _lt_dummy="a/b/c"
4799  test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
4800      = c,a/b,, \
4801    && eval 'test $(( 1 + 1 )) -eq 2 \
4802    && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
4803  && xsi_shell=yes
4804{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
4805$as_echo "$xsi_shell" >&6; }
4806
4807
4808{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
4809$as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
4810lt_shell_append=no
4811( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
4812    >/dev/null 2>&1 \
4813  && lt_shell_append=yes
4814{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
4815$as_echo "$lt_shell_append" >&6; }
4816
4817
4818if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
4819  lt_unset=unset
4820else
4821  lt_unset=false
4822fi
4823
4824
4825
4826
4827
4828# test EBCDIC or ASCII
4829case `echo X|tr X '\101'` in
4830 A) # ASCII based system
4831    # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
4832  lt_SP2NL='tr \040 \012'
4833  lt_NL2SP='tr \015\012 \040\040'
4834  ;;
4835 *) # EBCDIC based system
4836  lt_SP2NL='tr \100 \n'
4837  lt_NL2SP='tr \r\n \100\100'
4838  ;;
4839esac
4840
4841
4842
4843
4844
4845
4846
4847
4848
4849{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
4850$as_echo_n "checking for $LD option to reload object files... " >&6; }
4851if test "${lt_cv_ld_reload_flag+set}" = set; then :
4852  $as_echo_n "(cached) " >&6
4853else
4854  lt_cv_ld_reload_flag='-r'
4855fi
4856{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
4857$as_echo "$lt_cv_ld_reload_flag" >&6; }
4858reload_flag=$lt_cv_ld_reload_flag
4859case $reload_flag in
4860"" | " "*) ;;
4861*) reload_flag=" $reload_flag" ;;
4862esac
4863reload_cmds='$LD$reload_flag -o $output$reload_objs'
4864case $host_os in
4865  darwin*)
4866    if test "$GCC" = yes; then
4867      reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
4868    else
4869      reload_cmds='$LD$reload_flag -o $output$reload_objs'
4870    fi
4871    ;;
4872esac
4873
4874
4875
4876
4877
4878
4879
4880
4881
4882if test -n "$ac_tool_prefix"; then
4883  # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
4884set dummy ${ac_tool_prefix}objdump; ac_word=$2
4885{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4886$as_echo_n "checking for $ac_word... " >&6; }
4887if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
4888  $as_echo_n "(cached) " >&6
4889else
4890  if test -n "$OBJDUMP"; then
4891  ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
4892else
4893as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4894for as_dir in $PATH
4895do
4896  IFS=$as_save_IFS
4897  test -z "$as_dir" && as_dir=.
4898    for ac_exec_ext in '' $ac_executable_extensions; do
4899  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4900    ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
4901    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4902    break 2
4903  fi
4904done
4905  done
4906IFS=$as_save_IFS
4907
4908fi
4909fi
4910OBJDUMP=$ac_cv_prog_OBJDUMP
4911if test -n "$OBJDUMP"; then
4912  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
4913$as_echo "$OBJDUMP" >&6; }
4914else
4915  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4916$as_echo "no" >&6; }
4917fi
4918
4919
4920fi
4921if test -z "$ac_cv_prog_OBJDUMP"; then
4922  ac_ct_OBJDUMP=$OBJDUMP
4923  # Extract the first word of "objdump", so it can be a program name with args.
4924set dummy objdump; ac_word=$2
4925{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4926$as_echo_n "checking for $ac_word... " >&6; }
4927if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
4928  $as_echo_n "(cached) " >&6
4929else
4930  if test -n "$ac_ct_OBJDUMP"; then
4931  ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
4932else
4933as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4934for as_dir in $PATH
4935do
4936  IFS=$as_save_IFS
4937  test -z "$as_dir" && as_dir=.
4938    for ac_exec_ext in '' $ac_executable_extensions; do
4939  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4940    ac_cv_prog_ac_ct_OBJDUMP="objdump"
4941    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4942    break 2
4943  fi
4944done
4945  done
4946IFS=$as_save_IFS
4947
4948fi
4949fi
4950ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
4951if test -n "$ac_ct_OBJDUMP"; then
4952  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
4953$as_echo "$ac_ct_OBJDUMP" >&6; }
4954else
4955  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4956$as_echo "no" >&6; }
4957fi
4958
4959  if test "x$ac_ct_OBJDUMP" = x; then
4960    OBJDUMP="false"
4961  else
4962    case $cross_compiling:$ac_tool_warned in
4963yes:)
4964{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4965$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4966ac_tool_warned=yes ;;
4967esac
4968    OBJDUMP=$ac_ct_OBJDUMP
4969  fi
4970else
4971  OBJDUMP="$ac_cv_prog_OBJDUMP"
4972fi
4973
4974test -z "$OBJDUMP" && OBJDUMP=objdump
4975
4976
4977
4978
4979
4980
4981
4982
4983
4984{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
4985$as_echo_n "checking how to recognize dependent libraries... " >&6; }
4986if test "${lt_cv_deplibs_check_method+set}" = set; then :
4987  $as_echo_n "(cached) " >&6
4988else
4989  lt_cv_file_magic_cmd='$MAGIC_CMD'
4990lt_cv_file_magic_test_file=
4991lt_cv_deplibs_check_method='unknown'
4992# Need to set the preceding variable on all platforms that support
4993# interlibrary dependencies.
4994# 'none' -- dependencies not supported.
4995# `unknown' -- same as none, but documents that we really don't know.
4996# 'pass_all' -- all dependencies passed with no checks.
4997# 'test_compile' -- check by making test program.
4998# 'file_magic [[regex]]' -- check by looking for files in library path
4999# which responds to the $file_magic_cmd with a given extended regex.
5000# If you have `file' or equivalent on your system and you're not sure
5001# whether `pass_all' will *always* work, you probably want this one.
5002
5003case $host_os in
5004aix[4-9]*)
5005  lt_cv_deplibs_check_method=pass_all
5006  ;;
5007
5008beos*)
5009  lt_cv_deplibs_check_method=pass_all
5010  ;;
5011
5012bsdi[45]*)
5013  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5014  lt_cv_file_magic_cmd='/usr/bin/file -L'
5015  lt_cv_file_magic_test_file=/shlib/libc.so
5016  ;;
5017
5018cygwin*)
5019  # func_win32_libid is a shell function defined in ltmain.sh
5020  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5021  lt_cv_file_magic_cmd='func_win32_libid'
5022  ;;
5023
5024mingw* | pw32*)
5025  # Base MSYS/MinGW do not provide the 'file' command needed by
5026  # func_win32_libid shell function, so use a weaker test based on 'objdump',
5027  # unless we find 'file', for example because we are cross-compiling.
5028  # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
5029  if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
5030    lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5031    lt_cv_file_magic_cmd='func_win32_libid'
5032  else
5033    lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
5034    lt_cv_file_magic_cmd='$OBJDUMP -f'
5035  fi
5036  ;;
5037
5038cegcc*)
5039  # use the weaker test based on 'objdump'. See mingw*.
5040  lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5041  lt_cv_file_magic_cmd='$OBJDUMP -f'
5042  ;;
5043
5044darwin* | rhapsody*)
5045  lt_cv_deplibs_check_method=pass_all
5046  ;;
5047
5048freebsd* | dragonfly*)
5049  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5050    case $host_cpu in
5051    i*86 )
5052      # Not sure whether the presence of OpenBSD here was a mistake.
5053      # Let's accept both of them until this is cleared up.
5054      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5055      lt_cv_file_magic_cmd=/usr/bin/file
5056      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5057      ;;
5058    esac
5059  else
5060    lt_cv_deplibs_check_method=pass_all
5061  fi
5062  ;;
5063
5064gnu*)
5065  lt_cv_deplibs_check_method=pass_all
5066  ;;
5067
5068haiku*)
5069  lt_cv_deplibs_check_method=pass_all
5070  ;;
5071
5072hpux10.20* | hpux11*)
5073  lt_cv_file_magic_cmd=/usr/bin/file
5074  case $host_cpu in
5075  ia64*)
5076    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5077    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5078    ;;
5079  hppa*64*)
5080    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]'
5081    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5082    ;;
5083  *)
5084    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
5085    lt_cv_file_magic_test_file=/usr/lib/libc.sl
5086    ;;
5087  esac
5088  ;;
5089
5090interix[3-9]*)
5091  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5092  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5093  ;;
5094
5095irix5* | irix6* | nonstopux*)
5096  case $LD in
5097  *-32|*"-32 ") libmagic=32-bit;;
5098  *-n32|*"-n32 ") libmagic=N32;;
5099  *-64|*"-64 ") libmagic=64-bit;;
5100  *) libmagic=never-match;;
5101  esac
5102  lt_cv_deplibs_check_method=pass_all
5103  ;;
5104
5105# This must be Linux ELF.
5106linux* | k*bsd*-gnu | kopensolaris*-gnu)
5107  lt_cv_deplibs_check_method=pass_all
5108  ;;
5109
5110netbsd*)
5111  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5112    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5113  else
5114    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5115  fi
5116  ;;
5117
5118newos6*)
5119  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5120  lt_cv_file_magic_cmd=/usr/bin/file
5121  lt_cv_file_magic_test_file=/usr/lib/libnls.so
5122  ;;
5123
5124*nto* | *qnx*)
5125  lt_cv_deplibs_check_method=pass_all
5126  ;;
5127
5128openbsd*)
5129  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5130    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5131  else
5132    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5133  fi
5134  ;;
5135
5136osf3* | osf4* | osf5*)
5137  lt_cv_deplibs_check_method=pass_all
5138  ;;
5139
5140rdos*)
5141  lt_cv_deplibs_check_method=pass_all
5142  ;;
5143
5144solaris*)
5145  lt_cv_deplibs_check_method=pass_all
5146  ;;
5147
5148sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5149  lt_cv_deplibs_check_method=pass_all
5150  ;;
5151
5152sysv4 | sysv4.3*)
5153  case $host_vendor in
5154  motorola)
5155    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]'
5156    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5157    ;;
5158  ncr)
5159    lt_cv_deplibs_check_method=pass_all
5160    ;;
5161  sequent)
5162    lt_cv_file_magic_cmd='/bin/file'
5163    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5164    ;;
5165  sni)
5166    lt_cv_file_magic_cmd='/bin/file'
5167    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5168    lt_cv_file_magic_test_file=/lib/libc.so
5169    ;;
5170  siemens)
5171    lt_cv_deplibs_check_method=pass_all
5172    ;;
5173  pc)
5174    lt_cv_deplibs_check_method=pass_all
5175    ;;
5176  esac
5177  ;;
5178
5179tpf*)
5180  lt_cv_deplibs_check_method=pass_all
5181  ;;
5182esac
5183
5184fi
5185{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
5186$as_echo "$lt_cv_deplibs_check_method" >&6; }
5187file_magic_cmd=$lt_cv_file_magic_cmd
5188deplibs_check_method=$lt_cv_deplibs_check_method
5189test -z "$deplibs_check_method" && deplibs_check_method=unknown
5190
5191
5192
5193
5194
5195
5196
5197
5198
5199
5200
5201
5202if test -n "$ac_tool_prefix"; then
5203  # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5204set dummy ${ac_tool_prefix}ar; ac_word=$2
5205{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5206$as_echo_n "checking for $ac_word... " >&6; }
5207if test "${ac_cv_prog_AR+set}" = set; then :
5208  $as_echo_n "(cached) " >&6
5209else
5210  if test -n "$AR"; then
5211  ac_cv_prog_AR="$AR" # Let the user override the test.
5212else
5213as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5214for as_dir in $PATH
5215do
5216  IFS=$as_save_IFS
5217  test -z "$as_dir" && as_dir=.
5218    for ac_exec_ext in '' $ac_executable_extensions; do
5219  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5220    ac_cv_prog_AR="${ac_tool_prefix}ar"
5221    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5222    break 2
5223  fi
5224done
5225  done
5226IFS=$as_save_IFS
5227
5228fi
5229fi
5230AR=$ac_cv_prog_AR
5231if test -n "$AR"; then
5232  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5233$as_echo "$AR" >&6; }
5234else
5235  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5236$as_echo "no" >&6; }
5237fi
5238
5239
5240fi
5241if test -z "$ac_cv_prog_AR"; then
5242  ac_ct_AR=$AR
5243  # Extract the first word of "ar", so it can be a program name with args.
5244set dummy ar; ac_word=$2
5245{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5246$as_echo_n "checking for $ac_word... " >&6; }
5247if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
5248  $as_echo_n "(cached) " >&6
5249else
5250  if test -n "$ac_ct_AR"; then
5251  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5252else
5253as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5254for as_dir in $PATH
5255do
5256  IFS=$as_save_IFS
5257  test -z "$as_dir" && as_dir=.
5258    for ac_exec_ext in '' $ac_executable_extensions; do
5259  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5260    ac_cv_prog_ac_ct_AR="ar"
5261    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5262    break 2
5263  fi
5264done
5265  done
5266IFS=$as_save_IFS
5267
5268fi
5269fi
5270ac_ct_AR=$ac_cv_prog_ac_ct_AR
5271if test -n "$ac_ct_AR"; then
5272  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5273$as_echo "$ac_ct_AR" >&6; }
5274else
5275  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5276$as_echo "no" >&6; }
5277fi
5278
5279  if test "x$ac_ct_AR" = x; then
5280    AR="false"
5281  else
5282    case $cross_compiling:$ac_tool_warned in
5283yes:)
5284{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5285$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5286ac_tool_warned=yes ;;
5287esac
5288    AR=$ac_ct_AR
5289  fi
5290else
5291  AR="$ac_cv_prog_AR"
5292fi
5293
5294test -z "$AR" && AR=ar
5295test -z "$AR_FLAGS" && AR_FLAGS=cru
5296
5297
5298
5299
5300
5301
5302
5303
5304
5305
5306
5307if test -n "$ac_tool_prefix"; then
5308  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5309set dummy ${ac_tool_prefix}strip; ac_word=$2
5310{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5311$as_echo_n "checking for $ac_word... " >&6; }
5312if test "${ac_cv_prog_STRIP+set}" = set; then :
5313  $as_echo_n "(cached) " >&6
5314else
5315  if test -n "$STRIP"; then
5316  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5317else
5318as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5319for as_dir in $PATH
5320do
5321  IFS=$as_save_IFS
5322  test -z "$as_dir" && as_dir=.
5323    for ac_exec_ext in '' $ac_executable_extensions; do
5324  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5325    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5326    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5327    break 2
5328  fi
5329done
5330  done
5331IFS=$as_save_IFS
5332
5333fi
5334fi
5335STRIP=$ac_cv_prog_STRIP
5336if test -n "$STRIP"; then
5337  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
5338$as_echo "$STRIP" >&6; }
5339else
5340  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5341$as_echo "no" >&6; }
5342fi
5343
5344
5345fi
5346if test -z "$ac_cv_prog_STRIP"; then
5347  ac_ct_STRIP=$STRIP
5348  # Extract the first word of "strip", so it can be a program name with args.
5349set dummy strip; ac_word=$2
5350{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5351$as_echo_n "checking for $ac_word... " >&6; }
5352if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
5353  $as_echo_n "(cached) " >&6
5354else
5355  if test -n "$ac_ct_STRIP"; then
5356  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5357else
5358as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5359for as_dir in $PATH
5360do
5361  IFS=$as_save_IFS
5362  test -z "$as_dir" && as_dir=.
5363    for ac_exec_ext in '' $ac_executable_extensions; do
5364  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5365    ac_cv_prog_ac_ct_STRIP="strip"
5366    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5367    break 2
5368  fi
5369done
5370  done
5371IFS=$as_save_IFS
5372
5373fi
5374fi
5375ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5376if test -n "$ac_ct_STRIP"; then
5377  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
5378$as_echo "$ac_ct_STRIP" >&6; }
5379else
5380  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5381$as_echo "no" >&6; }
5382fi
5383
5384  if test "x$ac_ct_STRIP" = x; then
5385    STRIP=":"
5386  else
5387    case $cross_compiling:$ac_tool_warned in
5388yes:)
5389{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5390$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5391ac_tool_warned=yes ;;
5392esac
5393    STRIP=$ac_ct_STRIP
5394  fi
5395else
5396  STRIP="$ac_cv_prog_STRIP"
5397fi
5398
5399test -z "$STRIP" && STRIP=:
5400
5401
5402
5403
5404
5405
5406if test -n "$ac_tool_prefix"; then
5407  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5408set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5409{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5410$as_echo_n "checking for $ac_word... " >&6; }
5411if test "${ac_cv_prog_RANLIB+set}" = set; then :
5412  $as_echo_n "(cached) " >&6
5413else
5414  if test -n "$RANLIB"; then
5415  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5416else
5417as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5418for as_dir in $PATH
5419do
5420  IFS=$as_save_IFS
5421  test -z "$as_dir" && as_dir=.
5422    for ac_exec_ext in '' $ac_executable_extensions; do
5423  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5424    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5425    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5426    break 2
5427  fi
5428done
5429  done
5430IFS=$as_save_IFS
5431
5432fi
5433fi
5434RANLIB=$ac_cv_prog_RANLIB
5435if test -n "$RANLIB"; then
5436  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5437$as_echo "$RANLIB" >&6; }
5438else
5439  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5440$as_echo "no" >&6; }
5441fi
5442
5443
5444fi
5445if test -z "$ac_cv_prog_RANLIB"; then
5446  ac_ct_RANLIB=$RANLIB
5447  # Extract the first word of "ranlib", so it can be a program name with args.
5448set dummy ranlib; ac_word=$2
5449{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5450$as_echo_n "checking for $ac_word... " >&6; }
5451if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
5452  $as_echo_n "(cached) " >&6
5453else
5454  if test -n "$ac_ct_RANLIB"; then
5455  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5456else
5457as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5458for as_dir in $PATH
5459do
5460  IFS=$as_save_IFS
5461  test -z "$as_dir" && as_dir=.
5462    for ac_exec_ext in '' $ac_executable_extensions; do
5463  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5464    ac_cv_prog_ac_ct_RANLIB="ranlib"
5465    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5466    break 2
5467  fi
5468done
5469  done
5470IFS=$as_save_IFS
5471
5472fi
5473fi
5474ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5475if test -n "$ac_ct_RANLIB"; then
5476  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5477$as_echo "$ac_ct_RANLIB" >&6; }
5478else
5479  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5480$as_echo "no" >&6; }
5481fi
5482
5483  if test "x$ac_ct_RANLIB" = x; then
5484    RANLIB=":"
5485  else
5486    case $cross_compiling:$ac_tool_warned in
5487yes:)
5488{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5489$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5490ac_tool_warned=yes ;;
5491esac
5492    RANLIB=$ac_ct_RANLIB
5493  fi
5494else
5495  RANLIB="$ac_cv_prog_RANLIB"
5496fi
5497
5498test -z "$RANLIB" && RANLIB=:
5499
5500
5501
5502
5503
5504
5505# Determine commands to create old-style static archives.
5506old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
5507old_postinstall_cmds='chmod 644 $oldlib'
5508old_postuninstall_cmds=
5509
5510if test -n "$RANLIB"; then
5511  case $host_os in
5512  openbsd*)
5513    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
5514    ;;
5515  *)
5516    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
5517    ;;
5518  esac
5519  old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
5520fi
5521
5522case $host_os in
5523  darwin*)
5524    lock_old_archive_extraction=yes ;;
5525  *)
5526    lock_old_archive_extraction=no ;;
5527esac
5528
5529
5530
5531
5532
5533
5534
5535
5536
5537
5538
5539
5540
5541
5542
5543
5544
5545
5546
5547
5548
5549
5550
5551
5552
5553
5554
5555
5556
5557
5558
5559
5560
5561
5562
5563
5564
5565
5566
5567# If no C compiler was specified, use CC.
5568LTCC=${LTCC-"$CC"}
5569
5570# If no C compiler flags were specified, use CFLAGS.
5571LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
5572
5573# Allow CC to be a program name with arguments.
5574compiler=$CC
5575
5576
5577# Check for command to grab the raw symbol name followed by C symbol from nm.
5578{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
5579$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
5580if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
5581  $as_echo_n "(cached) " >&6
5582else
5583
5584# These are sane defaults that work on at least a few old systems.
5585# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
5586
5587# Character class describing NM global symbol codes.
5588symcode='[BCDEGRST]'
5589
5590# Regexp to match symbols that can be accessed directly from C.
5591sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5592
5593# Define system-specific variables.
5594case $host_os in
5595aix*)
5596  symcode='[BCDT]'
5597  ;;
5598cygwin* | mingw* | pw32* | cegcc*)
5599  symcode='[ABCDGISTW]'
5600  ;;
5601hpux*)
5602  if test "$host_cpu" = ia64; then
5603    symcode='[ABCDEGRST]'
5604  fi
5605  ;;
5606irix* | nonstopux*)
5607  symcode='[BCDEGRST]'
5608  ;;
5609osf*)
5610  symcode='[BCDEGQRST]'
5611  ;;
5612solaris*)
5613  symcode='[BDRT]'
5614  ;;
5615sco3.2v5*)
5616  symcode='[DT]'
5617  ;;
5618sysv4.2uw2*)
5619  symcode='[DT]'
5620  ;;
5621sysv5* | sco5v6* | unixware* | OpenUNIX*)
5622  symcode='[ABDT]'
5623  ;;
5624sysv4)
5625  symcode='[DFNSTU]'
5626  ;;
5627esac
5628
5629# If we're using GNU nm, then use its standard symbol codes.
5630case `$NM -V 2>&1` in
5631*GNU* | *'with BFD'*)
5632  symcode='[ABCDGIRSTW]' ;;
5633esac
5634
5635# Transform an extracted symbol line into a proper C declaration.
5636# Some systems (esp. on ia64) link data and code symbols differently,
5637# so use this general approach.
5638lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5639
5640# Transform an extracted symbol line into symbol name and symbol address
5641lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'"
5642lt_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'"
5643
5644# Handle CRLF in mingw tool chain
5645opt_cr=
5646case $build_os in
5647mingw*)
5648  opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5649  ;;
5650esac
5651
5652# Try without a prefix underscore, then with it.
5653for ac_symprfx in "" "_"; do
5654
5655  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
5656  symxfrm="\\1 $ac_symprfx\\2 \\2"
5657
5658  # Write the raw and C identifiers.
5659  if test "$lt_cv_nm_interface" = "MS dumpbin"; then
5660    # Fake it for dumpbin and say T for any non-static function
5661    # and D for any global variable.
5662    # Also find C++ and __fastcall symbols from MSVC++,
5663    # which start with @ or ?.
5664    lt_cv_sys_global_symbol_pipe="$AWK '"\
5665"     {last_section=section; section=\$ 3};"\
5666"     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
5667"     \$ 0!~/External *\|/{next};"\
5668"     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
5669"     {if(hide[section]) next};"\
5670"     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
5671"     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
5672"     s[1]~/^[@?]/{print s[1], s[1]; next};"\
5673"     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
5674"     ' prfx=^$ac_symprfx"
5675  else
5676    lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[	 ]\($symcode$symcode*\)[	 ][	 ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
5677  fi
5678
5679  # Check to see that the pipe works correctly.
5680  pipe_works=no
5681
5682  rm -f conftest*
5683  cat > conftest.$ac_ext <<_LT_EOF
5684#ifdef __cplusplus
5685extern "C" {
5686#endif
5687char nm_test_var;
5688void nm_test_func(void);
5689void nm_test_func(void){}
5690#ifdef __cplusplus
5691}
5692#endif
5693int main(){nm_test_var='a';nm_test_func();return(0);}
5694_LT_EOF
5695
5696  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5697  (eval $ac_compile) 2>&5
5698  ac_status=$?
5699  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5700  test $ac_status = 0; }; then
5701    # Now try to grab the symbols.
5702    nlist=conftest.nm
5703    if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
5704  (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
5705  ac_status=$?
5706  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5707  test $ac_status = 0; } && test -s "$nlist"; then
5708      # Try sorting and uniquifying the output.
5709      if sort "$nlist" | uniq > "$nlist"T; then
5710	mv -f "$nlist"T "$nlist"
5711      else
5712	rm -f "$nlist"T
5713      fi
5714
5715      # Make sure that we snagged all the symbols we need.
5716      if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
5717	if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
5718	  cat <<_LT_EOF > conftest.$ac_ext
5719#ifdef __cplusplus
5720extern "C" {
5721#endif
5722
5723_LT_EOF
5724	  # Now generate the symbol file.
5725	  eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
5726
5727	  cat <<_LT_EOF >> conftest.$ac_ext
5728
5729/* The mapping between symbol names and symbols.  */
5730const struct {
5731  const char *name;
5732  void       *address;
5733}
5734lt__PROGRAM__LTX_preloaded_symbols[] =
5735{
5736  { "@PROGRAM@", (void *) 0 },
5737_LT_EOF
5738	  $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
5739	  cat <<\_LT_EOF >> conftest.$ac_ext
5740  {0, (void *) 0}
5741};
5742
5743/* This works around a problem in FreeBSD linker */
5744#ifdef FREEBSD_WORKAROUND
5745static const void *lt_preloaded_setup() {
5746  return lt__PROGRAM__LTX_preloaded_symbols;
5747}
5748#endif
5749
5750#ifdef __cplusplus
5751}
5752#endif
5753_LT_EOF
5754	  # Now try linking the two files.
5755	  mv conftest.$ac_objext conftstm.$ac_objext
5756	  lt_save_LIBS="$LIBS"
5757	  lt_save_CFLAGS="$CFLAGS"
5758	  LIBS="conftstm.$ac_objext"
5759	  CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
5760	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
5761  (eval $ac_link) 2>&5
5762  ac_status=$?
5763  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5764  test $ac_status = 0; } && test -s conftest${ac_exeext}; then
5765	    pipe_works=yes
5766	  fi
5767	  LIBS="$lt_save_LIBS"
5768	  CFLAGS="$lt_save_CFLAGS"
5769	else
5770	  echo "cannot find nm_test_func in $nlist" >&5
5771	fi
5772      else
5773	echo "cannot find nm_test_var in $nlist" >&5
5774      fi
5775    else
5776      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
5777    fi
5778  else
5779    echo "$progname: failed program was:" >&5
5780    cat conftest.$ac_ext >&5
5781  fi
5782  rm -rf conftest* conftst*
5783
5784  # Do not use the global_symbol_pipe unless it works.
5785  if test "$pipe_works" = yes; then
5786    break
5787  else
5788    lt_cv_sys_global_symbol_pipe=
5789  fi
5790done
5791
5792fi
5793
5794if test -z "$lt_cv_sys_global_symbol_pipe"; then
5795  lt_cv_sys_global_symbol_to_cdecl=
5796fi
5797if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
5798  { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
5799$as_echo "failed" >&6; }
5800else
5801  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
5802$as_echo "ok" >&6; }
5803fi
5804
5805
5806
5807
5808
5809
5810
5811
5812
5813
5814
5815
5816
5817
5818
5819
5820
5821
5822
5823
5824
5825
5826# Check whether --enable-libtool-lock was given.
5827if test "${enable_libtool_lock+set}" = set; then :
5828  enableval=$enable_libtool_lock;
5829fi
5830
5831test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
5832
5833# Some flags need to be propagated to the compiler or linker for good
5834# libtool support.
5835case $host in
5836ia64-*-hpux*)
5837  # Find out which ABI we are using.
5838  echo 'int i;' > conftest.$ac_ext
5839  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5840  (eval $ac_compile) 2>&5
5841  ac_status=$?
5842  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5843  test $ac_status = 0; }; then
5844    case `/usr/bin/file conftest.$ac_objext` in
5845      *ELF-32*)
5846	HPUX_IA64_MODE="32"
5847	;;
5848      *ELF-64*)
5849	HPUX_IA64_MODE="64"
5850	;;
5851    esac
5852  fi
5853  rm -rf conftest*
5854  ;;
5855*-*-irix6*)
5856  # Find out which ABI we are using.
5857  echo '#line '$LINENO' "configure"' > conftest.$ac_ext
5858  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5859  (eval $ac_compile) 2>&5
5860  ac_status=$?
5861  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5862  test $ac_status = 0; }; then
5863    if test "$lt_cv_prog_gnu_ld" = yes; then
5864      case `/usr/bin/file conftest.$ac_objext` in
5865	*32-bit*)
5866	  LD="${LD-ld} -melf32bsmip"
5867	  ;;
5868	*N32*)
5869	  LD="${LD-ld} -melf32bmipn32"
5870	  ;;
5871	*64-bit*)
5872	  LD="${LD-ld} -melf64bmip"
5873	;;
5874      esac
5875    else
5876      case `/usr/bin/file conftest.$ac_objext` in
5877	*32-bit*)
5878	  LD="${LD-ld} -32"
5879	  ;;
5880	*N32*)
5881	  LD="${LD-ld} -n32"
5882	  ;;
5883	*64-bit*)
5884	  LD="${LD-ld} -64"
5885	  ;;
5886      esac
5887    fi
5888  fi
5889  rm -rf conftest*
5890  ;;
5891
5892x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
5893s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
5894  # Find out which ABI we are using.
5895  echo 'int i;' > conftest.$ac_ext
5896  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5897  (eval $ac_compile) 2>&5
5898  ac_status=$?
5899  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5900  test $ac_status = 0; }; then
5901    case `/usr/bin/file conftest.o` in
5902      *32-bit*)
5903	case $host in
5904	  x86_64-*kfreebsd*-gnu)
5905	    LD="${LD-ld} -m elf_i386_fbsd"
5906	    ;;
5907	  x86_64-*linux*)
5908	    LD="${LD-ld} -m elf_i386"
5909	    ;;
5910	  ppc64-*linux*|powerpc64-*linux*)
5911	    LD="${LD-ld} -m elf32ppclinux"
5912	    ;;
5913	  s390x-*linux*)
5914	    LD="${LD-ld} -m elf_s390"
5915	    ;;
5916	  sparc64-*linux*)
5917	    LD="${LD-ld} -m elf32_sparc"
5918	    ;;
5919	esac
5920	;;
5921      *64-bit*)
5922	case $host in
5923	  x86_64-*kfreebsd*-gnu)
5924	    LD="${LD-ld} -m elf_x86_64_fbsd"
5925	    ;;
5926	  x86_64-*linux*)
5927	    LD="${LD-ld} -m elf_x86_64"
5928	    ;;
5929	  ppc*-*linux*|powerpc*-*linux*)
5930	    LD="${LD-ld} -m elf64ppc"
5931	    ;;
5932	  s390*-*linux*|s390*-*tpf*)
5933	    LD="${LD-ld} -m elf64_s390"
5934	    ;;
5935	  sparc*-*linux*)
5936	    LD="${LD-ld} -m elf64_sparc"
5937	    ;;
5938	esac
5939	;;
5940    esac
5941  fi
5942  rm -rf conftest*
5943  ;;
5944
5945*-*-sco3.2v5*)
5946  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
5947  SAVE_CFLAGS="$CFLAGS"
5948  CFLAGS="$CFLAGS -belf"
5949  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
5950$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
5951if test "${lt_cv_cc_needs_belf+set}" = set; then :
5952  $as_echo_n "(cached) " >&6
5953else
5954  ac_ext=c
5955ac_cpp='$CPP $CPPFLAGS'
5956ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5957ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5958ac_compiler_gnu=$ac_cv_c_compiler_gnu
5959
5960     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5961/* end confdefs.h.  */
5962
5963int
5964main ()
5965{
5966
5967  ;
5968  return 0;
5969}
5970_ACEOF
5971if ac_fn_c_try_link "$LINENO"; then :
5972  lt_cv_cc_needs_belf=yes
5973else
5974  lt_cv_cc_needs_belf=no
5975fi
5976rm -f core conftest.err conftest.$ac_objext \
5977    conftest$ac_exeext conftest.$ac_ext
5978     ac_ext=c
5979ac_cpp='$CPP $CPPFLAGS'
5980ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5981ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5982ac_compiler_gnu=$ac_cv_c_compiler_gnu
5983
5984fi
5985{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
5986$as_echo "$lt_cv_cc_needs_belf" >&6; }
5987  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
5988    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
5989    CFLAGS="$SAVE_CFLAGS"
5990  fi
5991  ;;
5992sparc*-*solaris*)
5993  # Find out which ABI we are using.
5994  echo 'int i;' > conftest.$ac_ext
5995  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5996  (eval $ac_compile) 2>&5
5997  ac_status=$?
5998  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5999  test $ac_status = 0; }; then
6000    case `/usr/bin/file conftest.o` in
6001    *64-bit*)
6002      case $lt_cv_prog_gnu_ld in
6003      yes*) LD="${LD-ld} -m elf64_sparc" ;;
6004      *)
6005	if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6006	  LD="${LD-ld} -64"
6007	fi
6008	;;
6009      esac
6010      ;;
6011    esac
6012  fi
6013  rm -rf conftest*
6014  ;;
6015esac
6016
6017need_locks="$enable_libtool_lock"
6018
6019
6020  case $host_os in
6021    rhapsody* | darwin*)
6022    if test -n "$ac_tool_prefix"; then
6023  # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
6024set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
6025{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6026$as_echo_n "checking for $ac_word... " >&6; }
6027if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
6028  $as_echo_n "(cached) " >&6
6029else
6030  if test -n "$DSYMUTIL"; then
6031  ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
6032else
6033as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6034for as_dir in $PATH
6035do
6036  IFS=$as_save_IFS
6037  test -z "$as_dir" && as_dir=.
6038    for ac_exec_ext in '' $ac_executable_extensions; do
6039  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6040    ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
6041    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6042    break 2
6043  fi
6044done
6045  done
6046IFS=$as_save_IFS
6047
6048fi
6049fi
6050DSYMUTIL=$ac_cv_prog_DSYMUTIL
6051if test -n "$DSYMUTIL"; then
6052  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
6053$as_echo "$DSYMUTIL" >&6; }
6054else
6055  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6056$as_echo "no" >&6; }
6057fi
6058
6059
6060fi
6061if test -z "$ac_cv_prog_DSYMUTIL"; then
6062  ac_ct_DSYMUTIL=$DSYMUTIL
6063  # Extract the first word of "dsymutil", so it can be a program name with args.
6064set dummy dsymutil; ac_word=$2
6065{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6066$as_echo_n "checking for $ac_word... " >&6; }
6067if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
6068  $as_echo_n "(cached) " >&6
6069else
6070  if test -n "$ac_ct_DSYMUTIL"; then
6071  ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
6072else
6073as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6074for as_dir in $PATH
6075do
6076  IFS=$as_save_IFS
6077  test -z "$as_dir" && as_dir=.
6078    for ac_exec_ext in '' $ac_executable_extensions; do
6079  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6080    ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
6081    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6082    break 2
6083  fi
6084done
6085  done
6086IFS=$as_save_IFS
6087
6088fi
6089fi
6090ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
6091if test -n "$ac_ct_DSYMUTIL"; then
6092  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
6093$as_echo "$ac_ct_DSYMUTIL" >&6; }
6094else
6095  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6096$as_echo "no" >&6; }
6097fi
6098
6099  if test "x$ac_ct_DSYMUTIL" = x; then
6100    DSYMUTIL=":"
6101  else
6102    case $cross_compiling:$ac_tool_warned in
6103yes:)
6104{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6105$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6106ac_tool_warned=yes ;;
6107esac
6108    DSYMUTIL=$ac_ct_DSYMUTIL
6109  fi
6110else
6111  DSYMUTIL="$ac_cv_prog_DSYMUTIL"
6112fi
6113
6114    if test -n "$ac_tool_prefix"; then
6115  # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
6116set dummy ${ac_tool_prefix}nmedit; ac_word=$2
6117{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6118$as_echo_n "checking for $ac_word... " >&6; }
6119if test "${ac_cv_prog_NMEDIT+set}" = set; then :
6120  $as_echo_n "(cached) " >&6
6121else
6122  if test -n "$NMEDIT"; then
6123  ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
6124else
6125as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6126for as_dir in $PATH
6127do
6128  IFS=$as_save_IFS
6129  test -z "$as_dir" && as_dir=.
6130    for ac_exec_ext in '' $ac_executable_extensions; do
6131  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6132    ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
6133    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6134    break 2
6135  fi
6136done
6137  done
6138IFS=$as_save_IFS
6139
6140fi
6141fi
6142NMEDIT=$ac_cv_prog_NMEDIT
6143if test -n "$NMEDIT"; then
6144  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
6145$as_echo "$NMEDIT" >&6; }
6146else
6147  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6148$as_echo "no" >&6; }
6149fi
6150
6151
6152fi
6153if test -z "$ac_cv_prog_NMEDIT"; then
6154  ac_ct_NMEDIT=$NMEDIT
6155  # Extract the first word of "nmedit", so it can be a program name with args.
6156set dummy nmedit; ac_word=$2
6157{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6158$as_echo_n "checking for $ac_word... " >&6; }
6159if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
6160  $as_echo_n "(cached) " >&6
6161else
6162  if test -n "$ac_ct_NMEDIT"; then
6163  ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
6164else
6165as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6166for as_dir in $PATH
6167do
6168  IFS=$as_save_IFS
6169  test -z "$as_dir" && as_dir=.
6170    for ac_exec_ext in '' $ac_executable_extensions; do
6171  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6172    ac_cv_prog_ac_ct_NMEDIT="nmedit"
6173    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6174    break 2
6175  fi
6176done
6177  done
6178IFS=$as_save_IFS
6179
6180fi
6181fi
6182ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
6183if test -n "$ac_ct_NMEDIT"; then
6184  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
6185$as_echo "$ac_ct_NMEDIT" >&6; }
6186else
6187  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6188$as_echo "no" >&6; }
6189fi
6190
6191  if test "x$ac_ct_NMEDIT" = x; then
6192    NMEDIT=":"
6193  else
6194    case $cross_compiling:$ac_tool_warned in
6195yes:)
6196{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6197$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6198ac_tool_warned=yes ;;
6199esac
6200    NMEDIT=$ac_ct_NMEDIT
6201  fi
6202else
6203  NMEDIT="$ac_cv_prog_NMEDIT"
6204fi
6205
6206    if test -n "$ac_tool_prefix"; then
6207  # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
6208set dummy ${ac_tool_prefix}lipo; ac_word=$2
6209{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6210$as_echo_n "checking for $ac_word... " >&6; }
6211if test "${ac_cv_prog_LIPO+set}" = set; then :
6212  $as_echo_n "(cached) " >&6
6213else
6214  if test -n "$LIPO"; then
6215  ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
6216else
6217as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6218for as_dir in $PATH
6219do
6220  IFS=$as_save_IFS
6221  test -z "$as_dir" && as_dir=.
6222    for ac_exec_ext in '' $ac_executable_extensions; do
6223  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6224    ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
6225    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6226    break 2
6227  fi
6228done
6229  done
6230IFS=$as_save_IFS
6231
6232fi
6233fi
6234LIPO=$ac_cv_prog_LIPO
6235if test -n "$LIPO"; then
6236  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
6237$as_echo "$LIPO" >&6; }
6238else
6239  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6240$as_echo "no" >&6; }
6241fi
6242
6243
6244fi
6245if test -z "$ac_cv_prog_LIPO"; then
6246  ac_ct_LIPO=$LIPO
6247  # Extract the first word of "lipo", so it can be a program name with args.
6248set dummy lipo; ac_word=$2
6249{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6250$as_echo_n "checking for $ac_word... " >&6; }
6251if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
6252  $as_echo_n "(cached) " >&6
6253else
6254  if test -n "$ac_ct_LIPO"; then
6255  ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
6256else
6257as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6258for as_dir in $PATH
6259do
6260  IFS=$as_save_IFS
6261  test -z "$as_dir" && as_dir=.
6262    for ac_exec_ext in '' $ac_executable_extensions; do
6263  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6264    ac_cv_prog_ac_ct_LIPO="lipo"
6265    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6266    break 2
6267  fi
6268done
6269  done
6270IFS=$as_save_IFS
6271
6272fi
6273fi
6274ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
6275if test -n "$ac_ct_LIPO"; then
6276  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
6277$as_echo "$ac_ct_LIPO" >&6; }
6278else
6279  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6280$as_echo "no" >&6; }
6281fi
6282
6283  if test "x$ac_ct_LIPO" = x; then
6284    LIPO=":"
6285  else
6286    case $cross_compiling:$ac_tool_warned in
6287yes:)
6288{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6289$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6290ac_tool_warned=yes ;;
6291esac
6292    LIPO=$ac_ct_LIPO
6293  fi
6294else
6295  LIPO="$ac_cv_prog_LIPO"
6296fi
6297
6298    if test -n "$ac_tool_prefix"; then
6299  # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
6300set dummy ${ac_tool_prefix}otool; ac_word=$2
6301{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6302$as_echo_n "checking for $ac_word... " >&6; }
6303if test "${ac_cv_prog_OTOOL+set}" = set; then :
6304  $as_echo_n "(cached) " >&6
6305else
6306  if test -n "$OTOOL"; then
6307  ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
6308else
6309as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6310for as_dir in $PATH
6311do
6312  IFS=$as_save_IFS
6313  test -z "$as_dir" && as_dir=.
6314    for ac_exec_ext in '' $ac_executable_extensions; do
6315  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6316    ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
6317    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6318    break 2
6319  fi
6320done
6321  done
6322IFS=$as_save_IFS
6323
6324fi
6325fi
6326OTOOL=$ac_cv_prog_OTOOL
6327if test -n "$OTOOL"; then
6328  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
6329$as_echo "$OTOOL" >&6; }
6330else
6331  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6332$as_echo "no" >&6; }
6333fi
6334
6335
6336fi
6337if test -z "$ac_cv_prog_OTOOL"; then
6338  ac_ct_OTOOL=$OTOOL
6339  # Extract the first word of "otool", so it can be a program name with args.
6340set dummy otool; ac_word=$2
6341{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6342$as_echo_n "checking for $ac_word... " >&6; }
6343if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
6344  $as_echo_n "(cached) " >&6
6345else
6346  if test -n "$ac_ct_OTOOL"; then
6347  ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
6348else
6349as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6350for as_dir in $PATH
6351do
6352  IFS=$as_save_IFS
6353  test -z "$as_dir" && as_dir=.
6354    for ac_exec_ext in '' $ac_executable_extensions; do
6355  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6356    ac_cv_prog_ac_ct_OTOOL="otool"
6357    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6358    break 2
6359  fi
6360done
6361  done
6362IFS=$as_save_IFS
6363
6364fi
6365fi
6366ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
6367if test -n "$ac_ct_OTOOL"; then
6368  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
6369$as_echo "$ac_ct_OTOOL" >&6; }
6370else
6371  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6372$as_echo "no" >&6; }
6373fi
6374
6375  if test "x$ac_ct_OTOOL" = x; then
6376    OTOOL=":"
6377  else
6378    case $cross_compiling:$ac_tool_warned in
6379yes:)
6380{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6381$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6382ac_tool_warned=yes ;;
6383esac
6384    OTOOL=$ac_ct_OTOOL
6385  fi
6386else
6387  OTOOL="$ac_cv_prog_OTOOL"
6388fi
6389
6390    if test -n "$ac_tool_prefix"; then
6391  # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
6392set dummy ${ac_tool_prefix}otool64; ac_word=$2
6393{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6394$as_echo_n "checking for $ac_word... " >&6; }
6395if test "${ac_cv_prog_OTOOL64+set}" = set; then :
6396  $as_echo_n "(cached) " >&6
6397else
6398  if test -n "$OTOOL64"; then
6399  ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
6400else
6401as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6402for as_dir in $PATH
6403do
6404  IFS=$as_save_IFS
6405  test -z "$as_dir" && as_dir=.
6406    for ac_exec_ext in '' $ac_executable_extensions; do
6407  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6408    ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
6409    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6410    break 2
6411  fi
6412done
6413  done
6414IFS=$as_save_IFS
6415
6416fi
6417fi
6418OTOOL64=$ac_cv_prog_OTOOL64
6419if test -n "$OTOOL64"; then
6420  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
6421$as_echo "$OTOOL64" >&6; }
6422else
6423  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6424$as_echo "no" >&6; }
6425fi
6426
6427
6428fi
6429if test -z "$ac_cv_prog_OTOOL64"; then
6430  ac_ct_OTOOL64=$OTOOL64
6431  # Extract the first word of "otool64", so it can be a program name with args.
6432set dummy otool64; ac_word=$2
6433{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6434$as_echo_n "checking for $ac_word... " >&6; }
6435if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
6436  $as_echo_n "(cached) " >&6
6437else
6438  if test -n "$ac_ct_OTOOL64"; then
6439  ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
6440else
6441as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6442for as_dir in $PATH
6443do
6444  IFS=$as_save_IFS
6445  test -z "$as_dir" && as_dir=.
6446    for ac_exec_ext in '' $ac_executable_extensions; do
6447  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6448    ac_cv_prog_ac_ct_OTOOL64="otool64"
6449    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6450    break 2
6451  fi
6452done
6453  done
6454IFS=$as_save_IFS
6455
6456fi
6457fi
6458ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
6459if test -n "$ac_ct_OTOOL64"; then
6460  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
6461$as_echo "$ac_ct_OTOOL64" >&6; }
6462else
6463  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6464$as_echo "no" >&6; }
6465fi
6466
6467  if test "x$ac_ct_OTOOL64" = x; then
6468    OTOOL64=":"
6469  else
6470    case $cross_compiling:$ac_tool_warned in
6471yes:)
6472{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6473$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6474ac_tool_warned=yes ;;
6475esac
6476    OTOOL64=$ac_ct_OTOOL64
6477  fi
6478else
6479  OTOOL64="$ac_cv_prog_OTOOL64"
6480fi
6481
6482
6483
6484
6485
6486
6487
6488
6489
6490
6491
6492
6493
6494
6495
6496
6497
6498
6499
6500
6501
6502
6503
6504
6505
6506
6507
6508    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
6509$as_echo_n "checking for -single_module linker flag... " >&6; }
6510if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
6511  $as_echo_n "(cached) " >&6
6512else
6513  lt_cv_apple_cc_single_mod=no
6514      if test -z "${LT_MULTI_MODULE}"; then
6515	# By default we will add the -single_module flag. You can override
6516	# by either setting the environment variable LT_MULTI_MODULE
6517	# non-empty at configure time, or by adding -multi_module to the
6518	# link flags.
6519	rm -rf libconftest.dylib*
6520	echo "int foo(void){return 1;}" > conftest.c
6521	echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6522-dynamiclib -Wl,-single_module conftest.c" >&5
6523	$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6524	  -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
6525        _lt_result=$?
6526	if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
6527	  lt_cv_apple_cc_single_mod=yes
6528	else
6529	  cat conftest.err >&5
6530	fi
6531	rm -rf libconftest.dylib*
6532	rm -f conftest.*
6533      fi
6534fi
6535{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
6536$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
6537    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
6538$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
6539if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
6540  $as_echo_n "(cached) " >&6
6541else
6542  lt_cv_ld_exported_symbols_list=no
6543      save_LDFLAGS=$LDFLAGS
6544      echo "_main" > conftest.sym
6545      LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
6546      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6547/* end confdefs.h.  */
6548
6549int
6550main ()
6551{
6552
6553  ;
6554  return 0;
6555}
6556_ACEOF
6557if ac_fn_c_try_link "$LINENO"; then :
6558  lt_cv_ld_exported_symbols_list=yes
6559else
6560  lt_cv_ld_exported_symbols_list=no
6561fi
6562rm -f core conftest.err conftest.$ac_objext \
6563    conftest$ac_exeext conftest.$ac_ext
6564	LDFLAGS="$save_LDFLAGS"
6565
6566fi
6567{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
6568$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
6569    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
6570$as_echo_n "checking for -force_load linker flag... " >&6; }
6571if test "${lt_cv_ld_force_load+set}" = set; then :
6572  $as_echo_n "(cached) " >&6
6573else
6574  lt_cv_ld_force_load=no
6575      cat > conftest.c << _LT_EOF
6576int forced_loaded() { return 2;}
6577_LT_EOF
6578      echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
6579      $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
6580      echo "$AR cru libconftest.a conftest.o" >&5
6581      $AR cru libconftest.a conftest.o 2>&5
6582      cat > conftest.c << _LT_EOF
6583int main() { return 0;}
6584_LT_EOF
6585      echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
6586      $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
6587      _lt_result=$?
6588      if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
6589	lt_cv_ld_force_load=yes
6590      else
6591	cat conftest.err >&5
6592      fi
6593        rm -f conftest.err libconftest.a conftest conftest.c
6594        rm -rf conftest.dSYM
6595
6596fi
6597{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
6598$as_echo "$lt_cv_ld_force_load" >&6; }
6599    case $host_os in
6600    rhapsody* | darwin1.[012])
6601      _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
6602    darwin1.*)
6603      _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
6604    darwin*) # darwin 5.x on
6605      # if running on 10.5 or later, the deployment target defaults
6606      # to the OS version, if on x86, and 10.4, the deployment
6607      # target defaults to 10.4. Don't you love it?
6608      case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
6609	10.0,*86*-darwin8*|10.0,*-darwin[91]*)
6610	  _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
6611	10.[012]*)
6612	  _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
6613	10.*)
6614	  _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
6615      esac
6616    ;;
6617  esac
6618    if test "$lt_cv_apple_cc_single_mod" = "yes"; then
6619      _lt_dar_single_mod='$single_module'
6620    fi
6621    if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
6622      _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
6623    else
6624      _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
6625    fi
6626    if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
6627      _lt_dsymutil='~$DSYMUTIL $lib || :'
6628    else
6629      _lt_dsymutil=
6630    fi
6631    ;;
6632  esac
6633
6634ac_ext=c
6635ac_cpp='$CPP $CPPFLAGS'
6636ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6637ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6638ac_compiler_gnu=$ac_cv_c_compiler_gnu
6639{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
6640$as_echo_n "checking how to run the C preprocessor... " >&6; }
6641# On Suns, sometimes $CPP names a directory.
6642if test -n "$CPP" && test -d "$CPP"; then
6643  CPP=
6644fi
6645if test -z "$CPP"; then
6646  if test "${ac_cv_prog_CPP+set}" = set; then :
6647  $as_echo_n "(cached) " >&6
6648else
6649      # Double quotes because CPP needs to be expanded
6650    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
6651    do
6652      ac_preproc_ok=false
6653for ac_c_preproc_warn_flag in '' yes
6654do
6655  # Use a header file that comes with gcc, so configuring glibc
6656  # with a fresh cross-compiler works.
6657  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6658  # <limits.h> exists even on freestanding compilers.
6659  # On the NeXT, cc -E runs the code through the compiler's parser,
6660  # not just through cpp. "Syntax error" is here to catch this case.
6661  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6662/* end confdefs.h.  */
6663#ifdef __STDC__
6664# include <limits.h>
6665#else
6666# include <assert.h>
6667#endif
6668		     Syntax error
6669_ACEOF
6670if ac_fn_c_try_cpp "$LINENO"; then :
6671
6672else
6673  # Broken: fails on valid input.
6674continue
6675fi
6676rm -f conftest.err conftest.$ac_ext
6677
6678  # OK, works on sane cases.  Now check whether nonexistent headers
6679  # can be detected and how.
6680  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6681/* end confdefs.h.  */
6682#include <ac_nonexistent.h>
6683_ACEOF
6684if ac_fn_c_try_cpp "$LINENO"; then :
6685  # Broken: success on invalid input.
6686continue
6687else
6688  # Passes both tests.
6689ac_preproc_ok=:
6690break
6691fi
6692rm -f conftest.err conftest.$ac_ext
6693
6694done
6695# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6696rm -f conftest.err conftest.$ac_ext
6697if $ac_preproc_ok; then :
6698  break
6699fi
6700
6701    done
6702    ac_cv_prog_CPP=$CPP
6703
6704fi
6705  CPP=$ac_cv_prog_CPP
6706else
6707  ac_cv_prog_CPP=$CPP
6708fi
6709{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
6710$as_echo "$CPP" >&6; }
6711ac_preproc_ok=false
6712for ac_c_preproc_warn_flag in '' yes
6713do
6714  # Use a header file that comes with gcc, so configuring glibc
6715  # with a fresh cross-compiler works.
6716  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6717  # <limits.h> exists even on freestanding compilers.
6718  # On the NeXT, cc -E runs the code through the compiler's parser,
6719  # not just through cpp. "Syntax error" is here to catch this case.
6720  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6721/* end confdefs.h.  */
6722#ifdef __STDC__
6723# include <limits.h>
6724#else
6725# include <assert.h>
6726#endif
6727		     Syntax error
6728_ACEOF
6729if ac_fn_c_try_cpp "$LINENO"; then :
6730
6731else
6732  # Broken: fails on valid input.
6733continue
6734fi
6735rm -f conftest.err conftest.$ac_ext
6736
6737  # OK, works on sane cases.  Now check whether nonexistent headers
6738  # can be detected and how.
6739  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6740/* end confdefs.h.  */
6741#include <ac_nonexistent.h>
6742_ACEOF
6743if ac_fn_c_try_cpp "$LINENO"; then :
6744  # Broken: success on invalid input.
6745continue
6746else
6747  # Passes both tests.
6748ac_preproc_ok=:
6749break
6750fi
6751rm -f conftest.err conftest.$ac_ext
6752
6753done
6754# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6755rm -f conftest.err conftest.$ac_ext
6756if $ac_preproc_ok; then :
6757
6758else
6759  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6760$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6761as_fn_error "C preprocessor \"$CPP\" fails sanity check
6762See \`config.log' for more details." "$LINENO" 5; }
6763fi
6764
6765ac_ext=c
6766ac_cpp='$CPP $CPPFLAGS'
6767ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6768ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6769ac_compiler_gnu=$ac_cv_c_compiler_gnu
6770
6771
6772{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
6773$as_echo_n "checking for ANSI C header files... " >&6; }
6774if test "${ac_cv_header_stdc+set}" = set; then :
6775  $as_echo_n "(cached) " >&6
6776else
6777  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6778/* end confdefs.h.  */
6779#include <stdlib.h>
6780#include <stdarg.h>
6781#include <string.h>
6782#include <float.h>
6783
6784int
6785main ()
6786{
6787
6788  ;
6789  return 0;
6790}
6791_ACEOF
6792if ac_fn_c_try_compile "$LINENO"; then :
6793  ac_cv_header_stdc=yes
6794else
6795  ac_cv_header_stdc=no
6796fi
6797rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6798
6799if test $ac_cv_header_stdc = yes; then
6800  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6801  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6802/* end confdefs.h.  */
6803#include <string.h>
6804
6805_ACEOF
6806if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6807  $EGREP "memchr" >/dev/null 2>&1; then :
6808
6809else
6810  ac_cv_header_stdc=no
6811fi
6812rm -f conftest*
6813
6814fi
6815
6816if test $ac_cv_header_stdc = yes; then
6817  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6818  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6819/* end confdefs.h.  */
6820#include <stdlib.h>
6821
6822_ACEOF
6823if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6824  $EGREP "free" >/dev/null 2>&1; then :
6825
6826else
6827  ac_cv_header_stdc=no
6828fi
6829rm -f conftest*
6830
6831fi
6832
6833if test $ac_cv_header_stdc = yes; then
6834  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6835  if test "$cross_compiling" = yes; then :
6836  :
6837else
6838  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6839/* end confdefs.h.  */
6840#include <ctype.h>
6841#include <stdlib.h>
6842#if ((' ' & 0x0FF) == 0x020)
6843# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6844# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6845#else
6846# define ISLOWER(c) \
6847		   (('a' <= (c) && (c) <= 'i') \
6848		     || ('j' <= (c) && (c) <= 'r') \
6849		     || ('s' <= (c) && (c) <= 'z'))
6850# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6851#endif
6852
6853#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6854int
6855main ()
6856{
6857  int i;
6858  for (i = 0; i < 256; i++)
6859    if (XOR (islower (i), ISLOWER (i))
6860	|| toupper (i) != TOUPPER (i))
6861      return 2;
6862  return 0;
6863}
6864_ACEOF
6865if ac_fn_c_try_run "$LINENO"; then :
6866
6867else
6868  ac_cv_header_stdc=no
6869fi
6870rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6871  conftest.$ac_objext conftest.beam conftest.$ac_ext
6872fi
6873
6874fi
6875fi
6876{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
6877$as_echo "$ac_cv_header_stdc" >&6; }
6878if test $ac_cv_header_stdc = yes; then
6879
6880$as_echo "#define STDC_HEADERS 1" >>confdefs.h
6881
6882fi
6883
6884# On IRIX 5.3, sys/types and inttypes.h are conflicting.
6885for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6886		  inttypes.h stdint.h unistd.h
6887do :
6888  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6889ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
6890"
6891eval as_val=\$$as_ac_Header
6892   if test "x$as_val" = x""yes; then :
6893  cat >>confdefs.h <<_ACEOF
6894#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6895_ACEOF
6896
6897fi
6898
6899done
6900
6901
6902for ac_header in dlfcn.h
6903do :
6904  ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
6905"
6906if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
6907  cat >>confdefs.h <<_ACEOF
6908#define HAVE_DLFCN_H 1
6909_ACEOF
6910
6911fi
6912
6913done
6914
6915
6916
6917
6918
6919# Set options
6920
6921
6922
6923        enable_dlopen=no
6924
6925
6926  enable_win32_dll=no
6927
6928
6929            # Check whether --enable-shared was given.
6930if test "${enable_shared+set}" = set; then :
6931  enableval=$enable_shared; p=${PACKAGE-default}
6932    case $enableval in
6933    yes) enable_shared=yes ;;
6934    no) enable_shared=no ;;
6935    *)
6936      enable_shared=no
6937      # Look at the argument we got.  We use all the common list separators.
6938      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
6939      for pkg in $enableval; do
6940	IFS="$lt_save_ifs"
6941	if test "X$pkg" = "X$p"; then
6942	  enable_shared=yes
6943	fi
6944      done
6945      IFS="$lt_save_ifs"
6946      ;;
6947    esac
6948else
6949  enable_shared=yes
6950fi
6951
6952
6953
6954
6955
6956
6957
6958
6959
6960  # Check whether --enable-static was given.
6961if test "${enable_static+set}" = set; then :
6962  enableval=$enable_static; p=${PACKAGE-default}
6963    case $enableval in
6964    yes) enable_static=yes ;;
6965    no) enable_static=no ;;
6966    *)
6967     enable_static=no
6968      # Look at the argument we got.  We use all the common list separators.
6969      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
6970      for pkg in $enableval; do
6971	IFS="$lt_save_ifs"
6972	if test "X$pkg" = "X$p"; then
6973	  enable_static=yes
6974	fi
6975      done
6976      IFS="$lt_save_ifs"
6977      ;;
6978    esac
6979else
6980  enable_static=yes
6981fi
6982
6983
6984
6985
6986
6987
6988
6989
6990
6991
6992# Check whether --with-pic was given.
6993if test "${with_pic+set}" = set; then :
6994  withval=$with_pic; pic_mode="$withval"
6995else
6996  pic_mode=default
6997fi
6998
6999
7000test -z "$pic_mode" && pic_mode=default
7001
7002
7003
7004
7005
7006
7007
7008  # Check whether --enable-fast-install was given.
7009if test "${enable_fast_install+set}" = set; then :
7010  enableval=$enable_fast_install; p=${PACKAGE-default}
7011    case $enableval in
7012    yes) enable_fast_install=yes ;;
7013    no) enable_fast_install=no ;;
7014    *)
7015      enable_fast_install=no
7016      # Look at the argument we got.  We use all the common list separators.
7017      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7018      for pkg in $enableval; do
7019	IFS="$lt_save_ifs"
7020	if test "X$pkg" = "X$p"; then
7021	  enable_fast_install=yes
7022	fi
7023      done
7024      IFS="$lt_save_ifs"
7025      ;;
7026    esac
7027else
7028  enable_fast_install=yes
7029fi
7030
7031
7032
7033
7034
7035
7036
7037
7038
7039
7040
7041# This can be used to rebuild libtool when needed
7042LIBTOOL_DEPS="$ltmain"
7043
7044# Always use our own libtool.
7045LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7046
7047
7048
7049
7050
7051
7052
7053
7054
7055
7056
7057
7058
7059
7060
7061
7062
7063
7064
7065
7066
7067
7068
7069
7070
7071
7072test -z "$LN_S" && LN_S="ln -s"
7073
7074
7075
7076
7077
7078
7079
7080
7081
7082
7083
7084
7085
7086
7087if test -n "${ZSH_VERSION+set}" ; then
7088   setopt NO_GLOB_SUBST
7089fi
7090
7091{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
7092$as_echo_n "checking for objdir... " >&6; }
7093if test "${lt_cv_objdir+set}" = set; then :
7094  $as_echo_n "(cached) " >&6
7095else
7096  rm -f .libs 2>/dev/null
7097mkdir .libs 2>/dev/null
7098if test -d .libs; then
7099  lt_cv_objdir=.libs
7100else
7101  # MS-DOS does not allow filenames that begin with a dot.
7102  lt_cv_objdir=_libs
7103fi
7104rmdir .libs 2>/dev/null
7105fi
7106{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
7107$as_echo "$lt_cv_objdir" >&6; }
7108objdir=$lt_cv_objdir
7109
7110
7111
7112
7113
7114cat >>confdefs.h <<_ACEOF
7115#define LT_OBJDIR "$lt_cv_objdir/"
7116_ACEOF
7117
7118
7119
7120
7121case $host_os in
7122aix3*)
7123  # AIX sometimes has problems with the GCC collect2 program.  For some
7124  # reason, if we set the COLLECT_NAMES environment variable, the problems
7125  # vanish in a puff of smoke.
7126  if test "X${COLLECT_NAMES+set}" != Xset; then
7127    COLLECT_NAMES=
7128    export COLLECT_NAMES
7129  fi
7130  ;;
7131esac
7132
7133# Global variables:
7134ofile=libtool
7135can_build_shared=yes
7136
7137# All known linkers require a `.a' archive for static linking (except MSVC,
7138# which needs '.lib').
7139libext=a
7140
7141with_gnu_ld="$lt_cv_prog_gnu_ld"
7142
7143old_CC="$CC"
7144old_CFLAGS="$CFLAGS"
7145
7146# Set sane defaults for various variables
7147test -z "$CC" && CC=cc
7148test -z "$LTCC" && LTCC=$CC
7149test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7150test -z "$LD" && LD=ld
7151test -z "$ac_objext" && ac_objext=o
7152
7153for cc_temp in $compiler""; do
7154  case $cc_temp in
7155    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7156    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7157    \-*) ;;
7158    *) break;;
7159  esac
7160done
7161cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
7162
7163
7164# Only perform the check for file, if the check method requires it
7165test -z "$MAGIC_CMD" && MAGIC_CMD=file
7166case $deplibs_check_method in
7167file_magic*)
7168  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7169    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
7170$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
7171if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
7172  $as_echo_n "(cached) " >&6
7173else
7174  case $MAGIC_CMD in
7175[\\/*] |  ?:[\\/]*)
7176  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7177  ;;
7178*)
7179  lt_save_MAGIC_CMD="$MAGIC_CMD"
7180  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7181  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7182  for ac_dir in $ac_dummy; do
7183    IFS="$lt_save_ifs"
7184    test -z "$ac_dir" && ac_dir=.
7185    if test -f $ac_dir/${ac_tool_prefix}file; then
7186      lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7187      if test -n "$file_magic_test_file"; then
7188	case $deplibs_check_method in
7189	"file_magic "*)
7190	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7191	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7192	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7193	    $EGREP "$file_magic_regex" > /dev/null; then
7194	    :
7195	  else
7196	    cat <<_LT_EOF 1>&2
7197
7198*** Warning: the command libtool uses to detect shared libraries,
7199*** $file_magic_cmd, produces output that libtool cannot recognize.
7200*** The result is that libtool may fail to recognize shared libraries
7201*** as such.  This will affect the creation of libtool libraries that
7202*** depend on shared libraries, but programs linked with such libtool
7203*** libraries will work regardless of this problem.  Nevertheless, you
7204*** may want to report the problem to your system manager and/or to
7205*** bug-libtool@gnu.org
7206
7207_LT_EOF
7208	  fi ;;
7209	esac
7210      fi
7211      break
7212    fi
7213  done
7214  IFS="$lt_save_ifs"
7215  MAGIC_CMD="$lt_save_MAGIC_CMD"
7216  ;;
7217esac
7218fi
7219
7220MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7221if test -n "$MAGIC_CMD"; then
7222  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7223$as_echo "$MAGIC_CMD" >&6; }
7224else
7225  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7226$as_echo "no" >&6; }
7227fi
7228
7229
7230
7231
7232
7233if test -z "$lt_cv_path_MAGIC_CMD"; then
7234  if test -n "$ac_tool_prefix"; then
7235    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
7236$as_echo_n "checking for file... " >&6; }
7237if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
7238  $as_echo_n "(cached) " >&6
7239else
7240  case $MAGIC_CMD in
7241[\\/*] |  ?:[\\/]*)
7242  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7243  ;;
7244*)
7245  lt_save_MAGIC_CMD="$MAGIC_CMD"
7246  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7247  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7248  for ac_dir in $ac_dummy; do
7249    IFS="$lt_save_ifs"
7250    test -z "$ac_dir" && ac_dir=.
7251    if test -f $ac_dir/file; then
7252      lt_cv_path_MAGIC_CMD="$ac_dir/file"
7253      if test -n "$file_magic_test_file"; then
7254	case $deplibs_check_method in
7255	"file_magic "*)
7256	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7257	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7258	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7259	    $EGREP "$file_magic_regex" > /dev/null; then
7260	    :
7261	  else
7262	    cat <<_LT_EOF 1>&2
7263
7264*** Warning: the command libtool uses to detect shared libraries,
7265*** $file_magic_cmd, produces output that libtool cannot recognize.
7266*** The result is that libtool may fail to recognize shared libraries
7267*** as such.  This will affect the creation of libtool libraries that
7268*** depend on shared libraries, but programs linked with such libtool
7269*** libraries will work regardless of this problem.  Nevertheless, you
7270*** may want to report the problem to your system manager and/or to
7271*** bug-libtool@gnu.org
7272
7273_LT_EOF
7274	  fi ;;
7275	esac
7276      fi
7277      break
7278    fi
7279  done
7280  IFS="$lt_save_ifs"
7281  MAGIC_CMD="$lt_save_MAGIC_CMD"
7282  ;;
7283esac
7284fi
7285
7286MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7287if test -n "$MAGIC_CMD"; then
7288  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7289$as_echo "$MAGIC_CMD" >&6; }
7290else
7291  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7292$as_echo "no" >&6; }
7293fi
7294
7295
7296  else
7297    MAGIC_CMD=:
7298  fi
7299fi
7300
7301  fi
7302  ;;
7303esac
7304
7305# Use C for the default configuration in the libtool script
7306
7307lt_save_CC="$CC"
7308ac_ext=c
7309ac_cpp='$CPP $CPPFLAGS'
7310ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7311ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7312ac_compiler_gnu=$ac_cv_c_compiler_gnu
7313
7314
7315# Source file extension for C test sources.
7316ac_ext=c
7317
7318# Object file extension for compiled C test sources.
7319objext=o
7320objext=$objext
7321
7322# Code to be used in simple compile tests
7323lt_simple_compile_test_code="int some_variable = 0;"
7324
7325# Code to be used in simple link tests
7326lt_simple_link_test_code='int main(){return(0);}'
7327
7328
7329
7330
7331
7332
7333
7334# If no C compiler was specified, use CC.
7335LTCC=${LTCC-"$CC"}
7336
7337# If no C compiler flags were specified, use CFLAGS.
7338LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7339
7340# Allow CC to be a program name with arguments.
7341compiler=$CC
7342
7343# Save the default compiler, since it gets overwritten when the other
7344# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
7345compiler_DEFAULT=$CC
7346
7347# save warnings/boilerplate of simple test code
7348ac_outfile=conftest.$ac_objext
7349echo "$lt_simple_compile_test_code" >conftest.$ac_ext
7350eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7351_lt_compiler_boilerplate=`cat conftest.err`
7352$RM conftest*
7353
7354ac_outfile=conftest.$ac_objext
7355echo "$lt_simple_link_test_code" >conftest.$ac_ext
7356eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7357_lt_linker_boilerplate=`cat conftest.err`
7358$RM -r conftest*
7359
7360
7361## CAVEAT EMPTOR:
7362## There is no encapsulation within the following macros, do not change
7363## the running order or otherwise move them around unless you know exactly
7364## what you are doing...
7365if test -n "$compiler"; then
7366
7367lt_prog_compiler_no_builtin_flag=
7368
7369if test "$GCC" = yes; then
7370  case $cc_basename in
7371  nvcc*)
7372    lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
7373  *)
7374    lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
7375  esac
7376
7377  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7378$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
7379if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
7380  $as_echo_n "(cached) " >&6
7381else
7382  lt_cv_prog_compiler_rtti_exceptions=no
7383   ac_outfile=conftest.$ac_objext
7384   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7385   lt_compiler_flag="-fno-rtti -fno-exceptions"
7386   # Insert the option either (1) after the last *FLAGS variable, or
7387   # (2) before a word containing "conftest.", or (3) at the end.
7388   # Note that $ac_compile itself does not contain backslashes and begins
7389   # with a dollar sign (not a hyphen), so the echo should work correctly.
7390   # The option is referenced via a variable to avoid confusing sed.
7391   lt_compile=`echo "$ac_compile" | $SED \
7392   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7393   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7394   -e 's:$: $lt_compiler_flag:'`
7395   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
7396   (eval "$lt_compile" 2>conftest.err)
7397   ac_status=$?
7398   cat conftest.err >&5
7399   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7400   if (exit $ac_status) && test -s "$ac_outfile"; then
7401     # The compiler can only warn and ignore the option if not recognized
7402     # So say no if there are warnings other than the usual output.
7403     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
7404     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7405     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7406       lt_cv_prog_compiler_rtti_exceptions=yes
7407     fi
7408   fi
7409   $RM conftest*
7410
7411fi
7412{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7413$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
7414
7415if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7416    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7417else
7418    :
7419fi
7420
7421fi
7422
7423
7424
7425
7426
7427
7428  lt_prog_compiler_wl=
7429lt_prog_compiler_pic=
7430lt_prog_compiler_static=
7431
7432{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
7433$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
7434
7435  if test "$GCC" = yes; then
7436    lt_prog_compiler_wl='-Wl,'
7437    lt_prog_compiler_static='-static'
7438
7439    case $host_os in
7440      aix*)
7441      # All AIX code is PIC.
7442      if test "$host_cpu" = ia64; then
7443	# AIX 5 now supports IA64 processor
7444	lt_prog_compiler_static='-Bstatic'
7445      fi
7446      ;;
7447
7448    amigaos*)
7449      case $host_cpu in
7450      powerpc)
7451            # see comment about AmigaOS4 .so support
7452            lt_prog_compiler_pic='-fPIC'
7453        ;;
7454      m68k)
7455            # FIXME: we need at least 68020 code to build shared libraries, but
7456            # adding the `-m68020' flag to GCC prevents building anything better,
7457            # like `-m68040'.
7458            lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7459        ;;
7460      esac
7461      ;;
7462
7463    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7464      # PIC is the default for these OSes.
7465      ;;
7466
7467    mingw* | cygwin* | pw32* | os2* | cegcc*)
7468      # This hack is so that the source file can tell whether it is being
7469      # built for inclusion in a dll (and should export symbols for example).
7470      # Although the cygwin gcc ignores -fPIC, still need this for old-style
7471      # (--disable-auto-import) libraries
7472      lt_prog_compiler_pic='-DDLL_EXPORT'
7473      ;;
7474
7475    darwin* | rhapsody*)
7476      # PIC is the default on this platform
7477      # Common symbols not allowed in MH_DYLIB files
7478      lt_prog_compiler_pic='-fno-common'
7479      ;;
7480
7481    haiku*)
7482      # PIC is the default for Haiku.
7483      # The "-static" flag exists, but is broken.
7484      lt_prog_compiler_static=
7485      ;;
7486
7487    hpux*)
7488      # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
7489      # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
7490      # sets the default TLS model and affects inlining.
7491      case $host_cpu in
7492      hppa*64*)
7493	# +Z the default
7494	;;
7495      *)
7496	lt_prog_compiler_pic='-fPIC'
7497	;;
7498      esac
7499      ;;
7500
7501    interix[3-9]*)
7502      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7503      # Instead, we relocate shared libraries at runtime.
7504      ;;
7505
7506    msdosdjgpp*)
7507      # Just because we use GCC doesn't mean we suddenly get shared libraries
7508      # on systems that don't support them.
7509      lt_prog_compiler_can_build_shared=no
7510      enable_shared=no
7511      ;;
7512
7513    *nto* | *qnx*)
7514      # QNX uses GNU C++, but need to define -shared option too, otherwise
7515      # it will coredump.
7516      lt_prog_compiler_pic='-fPIC -shared'
7517      ;;
7518
7519    sysv4*MP*)
7520      if test -d /usr/nec; then
7521	lt_prog_compiler_pic=-Kconform_pic
7522      fi
7523      ;;
7524
7525    *)
7526      lt_prog_compiler_pic='-fPIC'
7527      ;;
7528    esac
7529
7530    case $cc_basename in
7531    nvcc*) # Cuda Compiler Driver 2.2
7532      lt_prog_compiler_wl='-Xlinker '
7533      lt_prog_compiler_pic='-Xcompiler -fPIC'
7534      ;;
7535    esac
7536  else
7537    # PORTME Check for flag to pass linker flags through the system compiler.
7538    case $host_os in
7539    aix*)
7540      lt_prog_compiler_wl='-Wl,'
7541      if test "$host_cpu" = ia64; then
7542	# AIX 5 now supports IA64 processor
7543	lt_prog_compiler_static='-Bstatic'
7544      else
7545	lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7546      fi
7547      ;;
7548
7549    mingw* | cygwin* | pw32* | os2* | cegcc*)
7550      # This hack is so that the source file can tell whether it is being
7551      # built for inclusion in a dll (and should export symbols for example).
7552      lt_prog_compiler_pic='-DDLL_EXPORT'
7553      ;;
7554
7555    hpux9* | hpux10* | hpux11*)
7556      lt_prog_compiler_wl='-Wl,'
7557      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7558      # not for PA HP-UX.
7559      case $host_cpu in
7560      hppa*64*|ia64*)
7561	# +Z the default
7562	;;
7563      *)
7564	lt_prog_compiler_pic='+Z'
7565	;;
7566      esac
7567      # Is there a better lt_prog_compiler_static that works with the bundled CC?
7568      lt_prog_compiler_static='${wl}-a ${wl}archive'
7569      ;;
7570
7571    irix5* | irix6* | nonstopux*)
7572      lt_prog_compiler_wl='-Wl,'
7573      # PIC (with -KPIC) is the default.
7574      lt_prog_compiler_static='-non_shared'
7575      ;;
7576
7577    linux* | k*bsd*-gnu | kopensolaris*-gnu)
7578      case $cc_basename in
7579      # old Intel for x86_64 which still supported -KPIC.
7580      ecc*)
7581	lt_prog_compiler_wl='-Wl,'
7582	lt_prog_compiler_pic='-KPIC'
7583	lt_prog_compiler_static='-static'
7584        ;;
7585      # icc used to be incompatible with GCC.
7586      # ICC 10 doesn't accept -KPIC any more.
7587      icc* | ifort*)
7588	lt_prog_compiler_wl='-Wl,'
7589	lt_prog_compiler_pic='-fPIC'
7590	lt_prog_compiler_static='-static'
7591        ;;
7592      # Lahey Fortran 8.1.
7593      lf95*)
7594	lt_prog_compiler_wl='-Wl,'
7595	lt_prog_compiler_pic='--shared'
7596	lt_prog_compiler_static='--static'
7597	;;
7598      pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
7599        # Portland Group compilers (*not* the Pentium gcc compiler,
7600	# which looks to be a dead project)
7601	lt_prog_compiler_wl='-Wl,'
7602	lt_prog_compiler_pic='-fpic'
7603	lt_prog_compiler_static='-Bstatic'
7604        ;;
7605      ccc*)
7606        lt_prog_compiler_wl='-Wl,'
7607        # All Alpha code is PIC.
7608        lt_prog_compiler_static='-non_shared'
7609        ;;
7610      xl* | bgxl* | bgf* | mpixl*)
7611	# IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
7612	lt_prog_compiler_wl='-Wl,'
7613	lt_prog_compiler_pic='-qpic'
7614	lt_prog_compiler_static='-qstaticlink'
7615	;;
7616      *)
7617	case `$CC -V 2>&1 | sed 5q` in
7618	*Sun\ F* | *Sun*Fortran*)
7619	  # Sun Fortran 8.3 passes all unrecognized flags to the linker
7620	  lt_prog_compiler_pic='-KPIC'
7621	  lt_prog_compiler_static='-Bstatic'
7622	  lt_prog_compiler_wl=''
7623	  ;;
7624	*Sun\ C*)
7625	  # Sun C 5.9
7626	  lt_prog_compiler_pic='-KPIC'
7627	  lt_prog_compiler_static='-Bstatic'
7628	  lt_prog_compiler_wl='-Wl,'
7629	  ;;
7630	esac
7631	;;
7632      esac
7633      ;;
7634
7635    newsos6)
7636      lt_prog_compiler_pic='-KPIC'
7637      lt_prog_compiler_static='-Bstatic'
7638      ;;
7639
7640    *nto* | *qnx*)
7641      # QNX uses GNU C++, but need to define -shared option too, otherwise
7642      # it will coredump.
7643      lt_prog_compiler_pic='-fPIC -shared'
7644      ;;
7645
7646    osf3* | osf4* | osf5*)
7647      lt_prog_compiler_wl='-Wl,'
7648      # All OSF/1 code is PIC.
7649      lt_prog_compiler_static='-non_shared'
7650      ;;
7651
7652    rdos*)
7653      lt_prog_compiler_static='-non_shared'
7654      ;;
7655
7656    solaris*)
7657      lt_prog_compiler_pic='-KPIC'
7658      lt_prog_compiler_static='-Bstatic'
7659      case $cc_basename in
7660      f77* | f90* | f95*)
7661	lt_prog_compiler_wl='-Qoption ld ';;
7662      *)
7663	lt_prog_compiler_wl='-Wl,';;
7664      esac
7665      ;;
7666
7667    sunos4*)
7668      lt_prog_compiler_wl='-Qoption ld '
7669      lt_prog_compiler_pic='-PIC'
7670      lt_prog_compiler_static='-Bstatic'
7671      ;;
7672
7673    sysv4 | sysv4.2uw2* | sysv4.3*)
7674      lt_prog_compiler_wl='-Wl,'
7675      lt_prog_compiler_pic='-KPIC'
7676      lt_prog_compiler_static='-Bstatic'
7677      ;;
7678
7679    sysv4*MP*)
7680      if test -d /usr/nec ;then
7681	lt_prog_compiler_pic='-Kconform_pic'
7682	lt_prog_compiler_static='-Bstatic'
7683      fi
7684      ;;
7685
7686    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
7687      lt_prog_compiler_wl='-Wl,'
7688      lt_prog_compiler_pic='-KPIC'
7689      lt_prog_compiler_static='-Bstatic'
7690      ;;
7691
7692    unicos*)
7693      lt_prog_compiler_wl='-Wl,'
7694      lt_prog_compiler_can_build_shared=no
7695      ;;
7696
7697    uts4*)
7698      lt_prog_compiler_pic='-pic'
7699      lt_prog_compiler_static='-Bstatic'
7700      ;;
7701
7702    *)
7703      lt_prog_compiler_can_build_shared=no
7704      ;;
7705    esac
7706  fi
7707
7708case $host_os in
7709  # For platforms which do not support PIC, -DPIC is meaningless:
7710  *djgpp*)
7711    lt_prog_compiler_pic=
7712    ;;
7713  *)
7714    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
7715    ;;
7716esac
7717{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
7718$as_echo "$lt_prog_compiler_pic" >&6; }
7719
7720
7721
7722
7723
7724
7725#
7726# Check to make sure the PIC flag actually works.
7727#
7728if test -n "$lt_prog_compiler_pic"; then
7729  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
7730$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
7731if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
7732  $as_echo_n "(cached) " >&6
7733else
7734  lt_cv_prog_compiler_pic_works=no
7735   ac_outfile=conftest.$ac_objext
7736   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7737   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
7738   # Insert the option either (1) after the last *FLAGS variable, or
7739   # (2) before a word containing "conftest.", or (3) at the end.
7740   # Note that $ac_compile itself does not contain backslashes and begins
7741   # with a dollar sign (not a hyphen), so the echo should work correctly.
7742   # The option is referenced via a variable to avoid confusing sed.
7743   lt_compile=`echo "$ac_compile" | $SED \
7744   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7745   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7746   -e 's:$: $lt_compiler_flag:'`
7747   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
7748   (eval "$lt_compile" 2>conftest.err)
7749   ac_status=$?
7750   cat conftest.err >&5
7751   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7752   if (exit $ac_status) && test -s "$ac_outfile"; then
7753     # The compiler can only warn and ignore the option if not recognized
7754     # So say no if there are warnings other than the usual output.
7755     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
7756     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7757     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7758       lt_cv_prog_compiler_pic_works=yes
7759     fi
7760   fi
7761   $RM conftest*
7762
7763fi
7764{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
7765$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
7766
7767if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
7768    case $lt_prog_compiler_pic in
7769     "" | " "*) ;;
7770     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
7771     esac
7772else
7773    lt_prog_compiler_pic=
7774     lt_prog_compiler_can_build_shared=no
7775fi
7776
7777fi
7778
7779
7780
7781
7782
7783
7784#
7785# Check to make sure the static flag actually works.
7786#
7787wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
7788{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
7789$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
7790if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
7791  $as_echo_n "(cached) " >&6
7792else
7793  lt_cv_prog_compiler_static_works=no
7794   save_LDFLAGS="$LDFLAGS"
7795   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
7796   echo "$lt_simple_link_test_code" > conftest.$ac_ext
7797   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
7798     # The linker can only warn and ignore the option if not recognized
7799     # So say no if there are warnings
7800     if test -s conftest.err; then
7801       # Append any errors to the config.log.
7802       cat conftest.err 1>&5
7803       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
7804       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7805       if diff conftest.exp conftest.er2 >/dev/null; then
7806         lt_cv_prog_compiler_static_works=yes
7807       fi
7808     else
7809       lt_cv_prog_compiler_static_works=yes
7810     fi
7811   fi
7812   $RM -r conftest*
7813   LDFLAGS="$save_LDFLAGS"
7814
7815fi
7816{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
7817$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
7818
7819if test x"$lt_cv_prog_compiler_static_works" = xyes; then
7820    :
7821else
7822    lt_prog_compiler_static=
7823fi
7824
7825
7826
7827
7828
7829
7830
7831  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
7832$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
7833if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
7834  $as_echo_n "(cached) " >&6
7835else
7836  lt_cv_prog_compiler_c_o=no
7837   $RM -r conftest 2>/dev/null
7838   mkdir conftest
7839   cd conftest
7840   mkdir out
7841   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7842
7843   lt_compiler_flag="-o out/conftest2.$ac_objext"
7844   # Insert the option either (1) after the last *FLAGS variable, or
7845   # (2) before a word containing "conftest.", or (3) at the end.
7846   # Note that $ac_compile itself does not contain backslashes and begins
7847   # with a dollar sign (not a hyphen), so the echo should work correctly.
7848   lt_compile=`echo "$ac_compile" | $SED \
7849   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7850   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7851   -e 's:$: $lt_compiler_flag:'`
7852   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
7853   (eval "$lt_compile" 2>out/conftest.err)
7854   ac_status=$?
7855   cat out/conftest.err >&5
7856   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7857   if (exit $ac_status) && test -s out/conftest2.$ac_objext
7858   then
7859     # The compiler can only warn and ignore the option if not recognized
7860     # So say no if there are warnings
7861     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
7862     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7863     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7864       lt_cv_prog_compiler_c_o=yes
7865     fi
7866   fi
7867   chmod u+w . 2>&5
7868   $RM conftest*
7869   # SGI C++ compiler will create directory out/ii_files/ for
7870   # template instantiation
7871   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
7872   $RM out/* && rmdir out
7873   cd ..
7874   $RM -r conftest
7875   $RM conftest*
7876
7877fi
7878{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
7879$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
7880
7881
7882
7883
7884
7885
7886  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
7887$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
7888if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
7889  $as_echo_n "(cached) " >&6
7890else
7891  lt_cv_prog_compiler_c_o=no
7892   $RM -r conftest 2>/dev/null
7893   mkdir conftest
7894   cd conftest
7895   mkdir out
7896   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7897
7898   lt_compiler_flag="-o out/conftest2.$ac_objext"
7899   # Insert the option either (1) after the last *FLAGS variable, or
7900   # (2) before a word containing "conftest.", or (3) at the end.
7901   # Note that $ac_compile itself does not contain backslashes and begins
7902   # with a dollar sign (not a hyphen), so the echo should work correctly.
7903   lt_compile=`echo "$ac_compile" | $SED \
7904   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7905   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7906   -e 's:$: $lt_compiler_flag:'`
7907   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
7908   (eval "$lt_compile" 2>out/conftest.err)
7909   ac_status=$?
7910   cat out/conftest.err >&5
7911   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7912   if (exit $ac_status) && test -s out/conftest2.$ac_objext
7913   then
7914     # The compiler can only warn and ignore the option if not recognized
7915     # So say no if there are warnings
7916     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
7917     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7918     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7919       lt_cv_prog_compiler_c_o=yes
7920     fi
7921   fi
7922   chmod u+w . 2>&5
7923   $RM conftest*
7924   # SGI C++ compiler will create directory out/ii_files/ for
7925   # template instantiation
7926   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
7927   $RM out/* && rmdir out
7928   cd ..
7929   $RM -r conftest
7930   $RM conftest*
7931
7932fi
7933{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
7934$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
7935
7936
7937
7938
7939hard_links="nottested"
7940if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
7941  # do not overwrite the value of need_locks provided by the user
7942  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
7943$as_echo_n "checking if we can lock with hard links... " >&6; }
7944  hard_links=yes
7945  $RM conftest*
7946  ln conftest.a conftest.b 2>/dev/null && hard_links=no
7947  touch conftest.a
7948  ln conftest.a conftest.b 2>&5 || hard_links=no
7949  ln conftest.a conftest.b 2>/dev/null && hard_links=no
7950  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
7951$as_echo "$hard_links" >&6; }
7952  if test "$hard_links" = no; then
7953    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
7954$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
7955    need_locks=warn
7956  fi
7957else
7958  need_locks=no
7959fi
7960
7961
7962
7963
7964
7965
7966  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
7967$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
7968
7969  runpath_var=
7970  allow_undefined_flag=
7971  always_export_symbols=no
7972  archive_cmds=
7973  archive_expsym_cmds=
7974  compiler_needs_object=no
7975  enable_shared_with_static_runtimes=no
7976  export_dynamic_flag_spec=
7977  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
7978  hardcode_automatic=no
7979  hardcode_direct=no
7980  hardcode_direct_absolute=no
7981  hardcode_libdir_flag_spec=
7982  hardcode_libdir_flag_spec_ld=
7983  hardcode_libdir_separator=
7984  hardcode_minus_L=no
7985  hardcode_shlibpath_var=unsupported
7986  inherit_rpath=no
7987  link_all_deplibs=unknown
7988  module_cmds=
7989  module_expsym_cmds=
7990  old_archive_from_new_cmds=
7991  old_archive_from_expsyms_cmds=
7992  thread_safe_flag_spec=
7993  whole_archive_flag_spec=
7994  # include_expsyms should be a list of space-separated symbols to be *always*
7995  # included in the symbol list
7996  include_expsyms=
7997  # exclude_expsyms can be an extended regexp of symbols to exclude
7998  # it will be wrapped by ` (' and `)$', so one must not match beginning or
7999  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8000  # as well as any symbol that contains `d'.
8001  exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8002  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8003  # platforms (ab)use it in PIC code, but their linkers get confused if
8004  # the symbol is explicitly referenced.  Since portable code cannot
8005  # rely on this symbol name, it's probably fine to never include it in
8006  # preloaded symbol tables.
8007  # Exclude shared library initialization/finalization symbols.
8008  extract_expsyms_cmds=
8009
8010  case $host_os in
8011  cygwin* | mingw* | pw32* | cegcc*)
8012    # FIXME: the MSVC++ port hasn't been tested in a loooong time
8013    # When not using gcc, we currently assume that we are using
8014    # Microsoft Visual C++.
8015    if test "$GCC" != yes; then
8016      with_gnu_ld=no
8017    fi
8018    ;;
8019  interix*)
8020    # we just hope/assume this is gcc and not c89 (= MSVC++)
8021    with_gnu_ld=yes
8022    ;;
8023  openbsd*)
8024    with_gnu_ld=no
8025    ;;
8026  esac
8027
8028  ld_shlibs=yes
8029
8030  # On some targets, GNU ld is compatible enough with the native linker
8031  # that we're better off using the native interface for both.
8032  lt_use_gnu_ld_interface=no
8033  if test "$with_gnu_ld" = yes; then
8034    case $host_os in
8035      aix*)
8036	# The AIX port of GNU ld has always aspired to compatibility
8037	# with the native linker.  However, as the warning in the GNU ld
8038	# block says, versions before 2.19.5* couldn't really create working
8039	# shared libraries, regardless of the interface used.
8040	case `$LD -v 2>&1` in
8041	  *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
8042	  *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
8043	  *\ \(GNU\ Binutils\)\ [3-9]*) ;;
8044	  *)
8045	    lt_use_gnu_ld_interface=yes
8046	    ;;
8047	esac
8048	;;
8049      *)
8050	lt_use_gnu_ld_interface=yes
8051	;;
8052    esac
8053  fi
8054
8055  if test "$lt_use_gnu_ld_interface" = yes; then
8056    # If archive_cmds runs LD, not CC, wlarc should be empty
8057    wlarc='${wl}'
8058
8059    # Set some defaults for GNU ld with shared library support. These
8060    # are reset later if shared libraries are not supported. Putting them
8061    # here allows them to be overridden if necessary.
8062    runpath_var=LD_RUN_PATH
8063    hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8064    export_dynamic_flag_spec='${wl}--export-dynamic'
8065    # ancient GNU ld didn't support --whole-archive et. al.
8066    if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
8067      whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8068    else
8069      whole_archive_flag_spec=
8070    fi
8071    supports_anon_versioning=no
8072    case `$LD -v 2>&1` in
8073      *GNU\ gold*) supports_anon_versioning=yes ;;
8074      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8075      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8076      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8077      *\ 2.11.*) ;; # other 2.11 versions
8078      *) supports_anon_versioning=yes ;;
8079    esac
8080
8081    # See if GNU ld supports shared libraries.
8082    case $host_os in
8083    aix[3-9]*)
8084      # On AIX/PPC, the GNU linker is very broken
8085      if test "$host_cpu" != ia64; then
8086	ld_shlibs=no
8087	cat <<_LT_EOF 1>&2
8088
8089*** Warning: the GNU linker, at least up to release 2.19, is reported
8090*** to be unable to reliably create shared libraries on AIX.
8091*** Therefore, libtool is disabling shared libraries support.  If you
8092*** really care for shared libraries, you may want to install binutils
8093*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
8094*** You will then need to restart the configuration process.
8095
8096_LT_EOF
8097      fi
8098      ;;
8099
8100    amigaos*)
8101      case $host_cpu in
8102      powerpc)
8103            # see comment about AmigaOS4 .so support
8104            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8105            archive_expsym_cmds=''
8106        ;;
8107      m68k)
8108            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)'
8109            hardcode_libdir_flag_spec='-L$libdir'
8110            hardcode_minus_L=yes
8111        ;;
8112      esac
8113      ;;
8114
8115    beos*)
8116      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8117	allow_undefined_flag=unsupported
8118	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8119	# support --undefined.  This deserves some investigation.  FIXME
8120	archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8121      else
8122	ld_shlibs=no
8123      fi
8124      ;;
8125
8126    cygwin* | mingw* | pw32* | cegcc*)
8127      # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8128      # as there is no search path for DLLs.
8129      hardcode_libdir_flag_spec='-L$libdir'
8130      export_dynamic_flag_spec='${wl}--export-all-symbols'
8131      allow_undefined_flag=unsupported
8132      always_export_symbols=no
8133      enable_shared_with_static_runtimes=yes
8134      export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
8135
8136      if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
8137        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8138	# If the export-symbols file already is a .def file (1st line
8139	# is EXPORTS), use it as is; otherwise, prepend...
8140	archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8141	  cp $export_symbols $output_objdir/$soname.def;
8142	else
8143	  echo EXPORTS > $output_objdir/$soname.def;
8144	  cat $export_symbols >> $output_objdir/$soname.def;
8145	fi~
8146	$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8147      else
8148	ld_shlibs=no
8149      fi
8150      ;;
8151
8152    haiku*)
8153      archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8154      link_all_deplibs=yes
8155      ;;
8156
8157    interix[3-9]*)
8158      hardcode_direct=no
8159      hardcode_shlibpath_var=no
8160      hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8161      export_dynamic_flag_spec='${wl}-E'
8162      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8163      # Instead, shared libraries are loaded at an image base (0x10000000 by
8164      # default) and relocated if they conflict, which is a slow very memory
8165      # consuming and fragmenting process.  To avoid this, we pick a random,
8166      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8167      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
8168      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8169      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'
8170      ;;
8171
8172    gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
8173      tmp_diet=no
8174      if test "$host_os" = linux-dietlibc; then
8175	case $cc_basename in
8176	  diet\ *) tmp_diet=yes;;	# linux-dietlibc with static linking (!diet-dyn)
8177	esac
8178      fi
8179      if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
8180	 && test "$tmp_diet" = no
8181      then
8182	tmp_addflag=
8183	tmp_sharedflag='-shared'
8184	case $cc_basename,$host_cpu in
8185        pgcc*)				# Portland Group C compiler
8186	  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'
8187	  tmp_addflag=' $pic_flag'
8188	  ;;
8189	pgf77* | pgf90* | pgf95* | pgfortran*)
8190					# Portland Group f77 and f90 compilers
8191	  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'
8192	  tmp_addflag=' $pic_flag -Mnomain' ;;
8193	ecc*,ia64* | icc*,ia64*)	# Intel C compiler on ia64
8194	  tmp_addflag=' -i_dynamic' ;;
8195	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
8196	  tmp_addflag=' -i_dynamic -nofor_main' ;;
8197	ifc* | ifort*)			# Intel Fortran compiler
8198	  tmp_addflag=' -nofor_main' ;;
8199	lf95*)				# Lahey Fortran 8.1
8200	  whole_archive_flag_spec=
8201	  tmp_sharedflag='--shared' ;;
8202	xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
8203	  tmp_sharedflag='-qmkshrobj'
8204	  tmp_addflag= ;;
8205	nvcc*)	# Cuda Compiler Driver 2.2
8206	  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'
8207	  compiler_needs_object=yes
8208	  ;;
8209	esac
8210	case `$CC -V 2>&1 | sed 5q` in
8211	*Sun\ C*)			# Sun C 5.9
8212	  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'
8213	  compiler_needs_object=yes
8214	  tmp_sharedflag='-G' ;;
8215	*Sun\ F*)			# Sun Fortran 8.3
8216	  tmp_sharedflag='-G' ;;
8217	esac
8218	archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8219
8220        if test "x$supports_anon_versioning" = xyes; then
8221          archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8222	    cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8223	    echo "local: *; };" >> $output_objdir/$libname.ver~
8224	    $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8225        fi
8226
8227	case $cc_basename in
8228	xlf* | bgf* | bgxlf* | mpixlf*)
8229	  # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
8230	  whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
8231	  hardcode_libdir_flag_spec=
8232	  hardcode_libdir_flag_spec_ld='-rpath $libdir'
8233	  archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
8234	  if test "x$supports_anon_versioning" = xyes; then
8235	    archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8236	      cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8237	      echo "local: *; };" >> $output_objdir/$libname.ver~
8238	      $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
8239	  fi
8240	  ;;
8241	esac
8242      else
8243        ld_shlibs=no
8244      fi
8245      ;;
8246
8247    netbsd*)
8248      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8249	archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8250	wlarc=
8251      else
8252	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8253	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8254      fi
8255      ;;
8256
8257    solaris*)
8258      if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
8259	ld_shlibs=no
8260	cat <<_LT_EOF 1>&2
8261
8262*** Warning: The releases 2.8.* of the GNU linker cannot reliably
8263*** create shared libraries on Solaris systems.  Therefore, libtool
8264*** is disabling shared libraries support.  We urge you to upgrade GNU
8265*** binutils to release 2.9.1 or newer.  Another option is to modify
8266*** your PATH or compiler configuration so that the native linker is
8267*** used, and then restart.
8268
8269_LT_EOF
8270      elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8271	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8272	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8273      else
8274	ld_shlibs=no
8275      fi
8276      ;;
8277
8278    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8279      case `$LD -v 2>&1` in
8280        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8281	ld_shlibs=no
8282	cat <<_LT_EOF 1>&2
8283
8284*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8285*** reliably create shared libraries on SCO systems.  Therefore, libtool
8286*** is disabling shared libraries support.  We urge you to upgrade GNU
8287*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
8288*** your PATH or compiler configuration so that the native linker is
8289*** used, and then restart.
8290
8291_LT_EOF
8292	;;
8293	*)
8294	  # For security reasons, it is highly recommended that you always
8295	  # use absolute paths for naming shared libraries, and exclude the
8296	  # DT_RUNPATH tag from executables and libraries.  But doing so
8297	  # requires that you compile everything twice, which is a pain.
8298	  if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8299	    hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8300	    archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8301	    archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8302	  else
8303	    ld_shlibs=no
8304	  fi
8305	;;
8306      esac
8307      ;;
8308
8309    sunos4*)
8310      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8311      wlarc=
8312      hardcode_direct=yes
8313      hardcode_shlibpath_var=no
8314      ;;
8315
8316    *)
8317      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8318	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8319	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8320      else
8321	ld_shlibs=no
8322      fi
8323      ;;
8324    esac
8325
8326    if test "$ld_shlibs" = no; then
8327      runpath_var=
8328      hardcode_libdir_flag_spec=
8329      export_dynamic_flag_spec=
8330      whole_archive_flag_spec=
8331    fi
8332  else
8333    # PORTME fill in a description of your system's linker (not GNU ld)
8334    case $host_os in
8335    aix3*)
8336      allow_undefined_flag=unsupported
8337      always_export_symbols=yes
8338      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'
8339      # Note: this linker hardcodes the directories in LIBPATH if there
8340      # are no directories specified by -L.
8341      hardcode_minus_L=yes
8342      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8343	# Neither direct hardcoding nor static linking is supported with a
8344	# broken collect2.
8345	hardcode_direct=unsupported
8346      fi
8347      ;;
8348
8349    aix[4-9]*)
8350      if test "$host_cpu" = ia64; then
8351	# On IA64, the linker does run time linking by default, so we don't
8352	# have to do anything special.
8353	aix_use_runtimelinking=no
8354	exp_sym_flag='-Bexport'
8355	no_entry_flag=""
8356      else
8357	# If we're using GNU nm, then we don't want the "-C" option.
8358	# -C means demangle to AIX nm, but means don't demangle with GNU nm
8359	# Also, AIX nm treats weak defined symbols like other global
8360	# defined symbols, whereas GNU nm marks them as "W".
8361	if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
8362	  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'
8363	else
8364	  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'
8365	fi
8366	aix_use_runtimelinking=no
8367
8368	# Test if we are trying to use run time linking or normal
8369	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
8370	# need to do runtime linking.
8371	case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
8372	  for ld_flag in $LDFLAGS; do
8373	  if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8374	    aix_use_runtimelinking=yes
8375	    break
8376	  fi
8377	  done
8378	  ;;
8379	esac
8380
8381	exp_sym_flag='-bexport'
8382	no_entry_flag='-bnoentry'
8383      fi
8384
8385      # When large executables or shared objects are built, AIX ld can
8386      # have problems creating the table of contents.  If linking a library
8387      # or program results in "error TOC overflow" add -mminimal-toc to
8388      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
8389      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8390
8391      archive_cmds=''
8392      hardcode_direct=yes
8393      hardcode_direct_absolute=yes
8394      hardcode_libdir_separator=':'
8395      link_all_deplibs=yes
8396      file_list_spec='${wl}-f,'
8397
8398      if test "$GCC" = yes; then
8399	case $host_os in aix4.[012]|aix4.[012].*)
8400	# We only want to do this on AIX 4.2 and lower, the check
8401	# below for broken collect2 doesn't work under 4.3+
8402	  collect2name=`${CC} -print-prog-name=collect2`
8403	  if test -f "$collect2name" &&
8404	   strings "$collect2name" | $GREP resolve_lib_name >/dev/null
8405	  then
8406	  # We have reworked collect2
8407	  :
8408	  else
8409	  # We have old collect2
8410	  hardcode_direct=unsupported
8411	  # It fails to find uninstalled libraries when the uninstalled
8412	  # path is not listed in the libpath.  Setting hardcode_minus_L
8413	  # to unsupported forces relinking
8414	  hardcode_minus_L=yes
8415	  hardcode_libdir_flag_spec='-L$libdir'
8416	  hardcode_libdir_separator=
8417	  fi
8418	  ;;
8419	esac
8420	shared_flag='-shared'
8421	if test "$aix_use_runtimelinking" = yes; then
8422	  shared_flag="$shared_flag "'${wl}-G'
8423	fi
8424      else
8425	# not using gcc
8426	if test "$host_cpu" = ia64; then
8427	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8428	# chokes on -Wl,-G. The following line is correct:
8429	  shared_flag='-G'
8430	else
8431	  if test "$aix_use_runtimelinking" = yes; then
8432	    shared_flag='${wl}-G'
8433	  else
8434	    shared_flag='${wl}-bM:SRE'
8435	  fi
8436	fi
8437      fi
8438
8439      export_dynamic_flag_spec='${wl}-bexpall'
8440      # It seems that -bexpall does not export symbols beginning with
8441      # underscore (_), so it is better to generate a list of symbols to export.
8442      always_export_symbols=yes
8443      if test "$aix_use_runtimelinking" = yes; then
8444	# Warning - without using the other runtime loading flags (-brtl),
8445	# -berok will link without error, but may produce a broken library.
8446	allow_undefined_flag='-berok'
8447        # Determine the default libpath from the value encoded in an
8448        # empty executable.
8449        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8450/* end confdefs.h.  */
8451
8452int
8453main ()
8454{
8455
8456  ;
8457  return 0;
8458}
8459_ACEOF
8460if ac_fn_c_try_link "$LINENO"; then :
8461
8462lt_aix_libpath_sed='
8463    /Import File Strings/,/^$/ {
8464	/^0/ {
8465	    s/^0  *\(.*\)$/\1/
8466	    p
8467	}
8468    }'
8469aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8470# Check for a 64-bit object if we didn't find anything.
8471if test -z "$aix_libpath"; then
8472  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8473fi
8474fi
8475rm -f core conftest.err conftest.$ac_objext \
8476    conftest$ac_exeext conftest.$ac_ext
8477if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8478
8479        hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8480        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"
8481      else
8482	if test "$host_cpu" = ia64; then
8483	  hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8484	  allow_undefined_flag="-z nodefs"
8485	  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"
8486	else
8487	 # Determine the default libpath from the value encoded in an
8488	 # empty executable.
8489	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8490/* end confdefs.h.  */
8491
8492int
8493main ()
8494{
8495
8496  ;
8497  return 0;
8498}
8499_ACEOF
8500if ac_fn_c_try_link "$LINENO"; then :
8501
8502lt_aix_libpath_sed='
8503    /Import File Strings/,/^$/ {
8504	/^0/ {
8505	    s/^0  *\(.*\)$/\1/
8506	    p
8507	}
8508    }'
8509aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8510# Check for a 64-bit object if we didn't find anything.
8511if test -z "$aix_libpath"; then
8512  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8513fi
8514fi
8515rm -f core conftest.err conftest.$ac_objext \
8516    conftest$ac_exeext conftest.$ac_ext
8517if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8518
8519	 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8520	  # Warning - without using the other run time loading flags,
8521	  # -berok will link without error, but may produce a broken library.
8522	  no_undefined_flag=' ${wl}-bernotok'
8523	  allow_undefined_flag=' ${wl}-berok'
8524	  if test "$with_gnu_ld" = yes; then
8525	    # We only use this code for GNU lds that support --whole-archive.
8526	    whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
8527	  else
8528	    # Exported symbols can be pulled into shared objects from archives
8529	    whole_archive_flag_spec='$convenience'
8530	  fi
8531	  archive_cmds_need_lc=yes
8532	  # This is similar to how AIX traditionally builds its shared libraries.
8533	  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'
8534	fi
8535      fi
8536      ;;
8537
8538    amigaos*)
8539      case $host_cpu in
8540      powerpc)
8541            # see comment about AmigaOS4 .so support
8542            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8543            archive_expsym_cmds=''
8544        ;;
8545      m68k)
8546            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)'
8547            hardcode_libdir_flag_spec='-L$libdir'
8548            hardcode_minus_L=yes
8549        ;;
8550      esac
8551      ;;
8552
8553    bsdi[45]*)
8554      export_dynamic_flag_spec=-rdynamic
8555      ;;
8556
8557    cygwin* | mingw* | pw32* | cegcc*)
8558      # When not using gcc, we currently assume that we are using
8559      # Microsoft Visual C++.
8560      # hardcode_libdir_flag_spec is actually meaningless, as there is
8561      # no search path for DLLs.
8562      hardcode_libdir_flag_spec=' '
8563      allow_undefined_flag=unsupported
8564      # Tell ltmain to make .lib files, not .a files.
8565      libext=lib
8566      # Tell ltmain to make .dll files, not .so files.
8567      shrext_cmds=".dll"
8568      # FIXME: Setting linknames here is a bad hack.
8569      archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
8570      # The linker will automatically build a .lib file if we build a DLL.
8571      old_archive_from_new_cmds='true'
8572      # FIXME: Should let the user specify the lib program.
8573      old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
8574      fix_srcfile_path='`cygpath -w "$srcfile"`'
8575      enable_shared_with_static_runtimes=yes
8576      ;;
8577
8578    darwin* | rhapsody*)
8579
8580
8581  archive_cmds_need_lc=no
8582  hardcode_direct=no
8583  hardcode_automatic=yes
8584  hardcode_shlibpath_var=unsupported
8585  if test "$lt_cv_ld_force_load" = "yes"; then
8586    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\"`'
8587  else
8588    whole_archive_flag_spec=''
8589  fi
8590  link_all_deplibs=yes
8591  allow_undefined_flag="$_lt_dar_allow_undefined"
8592  case $cc_basename in
8593     ifort*) _lt_dar_can_shared=yes ;;
8594     *) _lt_dar_can_shared=$GCC ;;
8595  esac
8596  if test "$_lt_dar_can_shared" = "yes"; then
8597    output_verbose_link_cmd=func_echo_all
8598    archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
8599    module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
8600    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}"
8601    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}"
8602
8603  else
8604  ld_shlibs=no
8605  fi
8606
8607      ;;
8608
8609    dgux*)
8610      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8611      hardcode_libdir_flag_spec='-L$libdir'
8612      hardcode_shlibpath_var=no
8613      ;;
8614
8615    freebsd1*)
8616      ld_shlibs=no
8617      ;;
8618
8619    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
8620    # support.  Future versions do this automatically, but an explicit c++rt0.o
8621    # does not break anything, and helps significantly (at the cost of a little
8622    # extra space).
8623    freebsd2.2*)
8624      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
8625      hardcode_libdir_flag_spec='-R$libdir'
8626      hardcode_direct=yes
8627      hardcode_shlibpath_var=no
8628      ;;
8629
8630    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
8631    freebsd2*)
8632      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8633      hardcode_direct=yes
8634      hardcode_minus_L=yes
8635      hardcode_shlibpath_var=no
8636      ;;
8637
8638    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
8639    freebsd* | dragonfly*)
8640      archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
8641      hardcode_libdir_flag_spec='-R$libdir'
8642      hardcode_direct=yes
8643      hardcode_shlibpath_var=no
8644      ;;
8645
8646    hpux9*)
8647      if test "$GCC" = yes; then
8648	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'
8649      else
8650	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'
8651      fi
8652      hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8653      hardcode_libdir_separator=:
8654      hardcode_direct=yes
8655
8656      # hardcode_minus_L: Not really in the search PATH,
8657      # but as the default location of the library.
8658      hardcode_minus_L=yes
8659      export_dynamic_flag_spec='${wl}-E'
8660      ;;
8661
8662    hpux10*)
8663      if test "$GCC" = yes && test "$with_gnu_ld" = no; then
8664	archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8665      else
8666	archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8667      fi
8668      if test "$with_gnu_ld" = no; then
8669	hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8670	hardcode_libdir_flag_spec_ld='+b $libdir'
8671	hardcode_libdir_separator=:
8672	hardcode_direct=yes
8673	hardcode_direct_absolute=yes
8674	export_dynamic_flag_spec='${wl}-E'
8675	# hardcode_minus_L: Not really in the search PATH,
8676	# but as the default location of the library.
8677	hardcode_minus_L=yes
8678      fi
8679      ;;
8680
8681    hpux11*)
8682      if test "$GCC" = yes && test "$with_gnu_ld" = no; then
8683	case $host_cpu in
8684	hppa*64*)
8685	  archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8686	  ;;
8687	ia64*)
8688	  archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8689	  ;;
8690	*)
8691	  archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8692	  ;;
8693	esac
8694      else
8695	case $host_cpu in
8696	hppa*64*)
8697	  archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8698	  ;;
8699	ia64*)
8700	  archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8701	  ;;
8702	*)
8703
8704	  # Older versions of the 11.00 compiler do not understand -b yet
8705	  # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
8706	  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
8707$as_echo_n "checking if $CC understands -b... " >&6; }
8708if test "${lt_cv_prog_compiler__b+set}" = set; then :
8709  $as_echo_n "(cached) " >&6
8710else
8711  lt_cv_prog_compiler__b=no
8712   save_LDFLAGS="$LDFLAGS"
8713   LDFLAGS="$LDFLAGS -b"
8714   echo "$lt_simple_link_test_code" > conftest.$ac_ext
8715   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8716     # The linker can only warn and ignore the option if not recognized
8717     # So say no if there are warnings
8718     if test -s conftest.err; then
8719       # Append any errors to the config.log.
8720       cat conftest.err 1>&5
8721       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
8722       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8723       if diff conftest.exp conftest.er2 >/dev/null; then
8724         lt_cv_prog_compiler__b=yes
8725       fi
8726     else
8727       lt_cv_prog_compiler__b=yes
8728     fi
8729   fi
8730   $RM -r conftest*
8731   LDFLAGS="$save_LDFLAGS"
8732
8733fi
8734{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
8735$as_echo "$lt_cv_prog_compiler__b" >&6; }
8736
8737if test x"$lt_cv_prog_compiler__b" = xyes; then
8738    archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8739else
8740    archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8741fi
8742
8743	  ;;
8744	esac
8745      fi
8746      if test "$with_gnu_ld" = no; then
8747	hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8748	hardcode_libdir_separator=:
8749
8750	case $host_cpu in
8751	hppa*64*|ia64*)
8752	  hardcode_direct=no
8753	  hardcode_shlibpath_var=no
8754	  ;;
8755	*)
8756	  hardcode_direct=yes
8757	  hardcode_direct_absolute=yes
8758	  export_dynamic_flag_spec='${wl}-E'
8759
8760	  # hardcode_minus_L: Not really in the search PATH,
8761	  # but as the default location of the library.
8762	  hardcode_minus_L=yes
8763	  ;;
8764	esac
8765      fi
8766      ;;
8767
8768    irix5* | irix6* | nonstopux*)
8769      if test "$GCC" = yes; then
8770	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'
8771	# Try to use the -exported_symbol ld option, if it does not
8772	# work, assume that -exports_file does not work either and
8773	# implicitly export all symbols.
8774        save_LDFLAGS="$LDFLAGS"
8775        LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
8776        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8777/* end confdefs.h.  */
8778int foo(void) {}
8779_ACEOF
8780if ac_fn_c_try_link "$LINENO"; then :
8781  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'
8782
8783fi
8784rm -f core conftest.err conftest.$ac_objext \
8785    conftest$ac_exeext conftest.$ac_ext
8786        LDFLAGS="$save_LDFLAGS"
8787      else
8788	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'
8789	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'
8790      fi
8791      archive_cmds_need_lc='no'
8792      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8793      hardcode_libdir_separator=:
8794      inherit_rpath=yes
8795      link_all_deplibs=yes
8796      ;;
8797
8798    netbsd*)
8799      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8800	archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
8801      else
8802	archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
8803      fi
8804      hardcode_libdir_flag_spec='-R$libdir'
8805      hardcode_direct=yes
8806      hardcode_shlibpath_var=no
8807      ;;
8808
8809    newsos6)
8810      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8811      hardcode_direct=yes
8812      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8813      hardcode_libdir_separator=:
8814      hardcode_shlibpath_var=no
8815      ;;
8816
8817    *nto* | *qnx*)
8818      ;;
8819
8820    openbsd*)
8821      if test -f /usr/libexec/ld.so; then
8822	hardcode_direct=yes
8823	hardcode_shlibpath_var=no
8824	hardcode_direct_absolute=yes
8825	if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8826	  archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8827	  archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
8828	  hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8829	  export_dynamic_flag_spec='${wl}-E'
8830	else
8831	  case $host_os in
8832	   openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
8833	     archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8834	     hardcode_libdir_flag_spec='-R$libdir'
8835	     ;;
8836	   *)
8837	     archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8838	     hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8839	     ;;
8840	  esac
8841	fi
8842      else
8843	ld_shlibs=no
8844      fi
8845      ;;
8846
8847    os2*)
8848      hardcode_libdir_flag_spec='-L$libdir'
8849      hardcode_minus_L=yes
8850      allow_undefined_flag=unsupported
8851      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'
8852      old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
8853      ;;
8854
8855    osf3*)
8856      if test "$GCC" = yes; then
8857	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8858	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'
8859      else
8860	allow_undefined_flag=' -expect_unresolved \*'
8861	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'
8862      fi
8863      archive_cmds_need_lc='no'
8864      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8865      hardcode_libdir_separator=:
8866      ;;
8867
8868    osf4* | osf5*)	# as osf3* with the addition of -msym flag
8869      if test "$GCC" = yes; then
8870	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8871	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'
8872	hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8873      else
8874	allow_undefined_flag=' -expect_unresolved \*'
8875	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'
8876	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~
8877	$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'
8878
8879	# Both c and cxx compiler support -rpath directly
8880	hardcode_libdir_flag_spec='-rpath $libdir'
8881      fi
8882      archive_cmds_need_lc='no'
8883      hardcode_libdir_separator=:
8884      ;;
8885
8886    solaris*)
8887      no_undefined_flag=' -z defs'
8888      if test "$GCC" = yes; then
8889	wlarc='${wl}'
8890	archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8891	archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
8892	  $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
8893      else
8894	case `$CC -V 2>&1` in
8895	*"Compilers 5.0"*)
8896	  wlarc=''
8897	  archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8898	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
8899	  $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
8900	  ;;
8901	*)
8902	  wlarc='${wl}'
8903	  archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
8904	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
8905	  $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
8906	  ;;
8907	esac
8908      fi
8909      hardcode_libdir_flag_spec='-R$libdir'
8910      hardcode_shlibpath_var=no
8911      case $host_os in
8912      solaris2.[0-5] | solaris2.[0-5].*) ;;
8913      *)
8914	# The compiler driver will combine and reorder linker options,
8915	# but understands `-z linker_flag'.  GCC discards it without `$wl',
8916	# but is careful enough not to reorder.
8917	# Supported since Solaris 2.6 (maybe 2.5.1?)
8918	if test "$GCC" = yes; then
8919	  whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
8920	else
8921	  whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
8922	fi
8923	;;
8924      esac
8925      link_all_deplibs=yes
8926      ;;
8927
8928    sunos4*)
8929      if test "x$host_vendor" = xsequent; then
8930	# Use $CC to link under sequent, because it throws in some extra .o
8931	# files that make .init and .fini sections work.
8932	archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
8933      else
8934	archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
8935      fi
8936      hardcode_libdir_flag_spec='-L$libdir'
8937      hardcode_direct=yes
8938      hardcode_minus_L=yes
8939      hardcode_shlibpath_var=no
8940      ;;
8941
8942    sysv4)
8943      case $host_vendor in
8944	sni)
8945	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8946	  hardcode_direct=yes # is this really true???
8947	;;
8948	siemens)
8949	  ## LD is ld it makes a PLAMLIB
8950	  ## CC just makes a GrossModule.
8951	  archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
8952	  reload_cmds='$CC -r -o $output$reload_objs'
8953	  hardcode_direct=no
8954        ;;
8955	motorola)
8956	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8957	  hardcode_direct=no #Motorola manual says yes, but my tests say they lie
8958	;;
8959      esac
8960      runpath_var='LD_RUN_PATH'
8961      hardcode_shlibpath_var=no
8962      ;;
8963
8964    sysv4.3*)
8965      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8966      hardcode_shlibpath_var=no
8967      export_dynamic_flag_spec='-Bexport'
8968      ;;
8969
8970    sysv4*MP*)
8971      if test -d /usr/nec; then
8972	archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8973	hardcode_shlibpath_var=no
8974	runpath_var=LD_RUN_PATH
8975	hardcode_runpath_var=yes
8976	ld_shlibs=yes
8977      fi
8978      ;;
8979
8980    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
8981      no_undefined_flag='${wl}-z,text'
8982      archive_cmds_need_lc=no
8983      hardcode_shlibpath_var=no
8984      runpath_var='LD_RUN_PATH'
8985
8986      if test "$GCC" = yes; then
8987	archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8988	archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8989      else
8990	archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8991	archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8992      fi
8993      ;;
8994
8995    sysv5* | sco3.2v5* | sco5v6*)
8996      # Note: We can NOT use -z defs as we might desire, because we do not
8997      # link with -lc, and that would cause any symbols used from libc to
8998      # always be unresolved, which means just about no library would
8999      # ever link correctly.  If we're not using GNU ld we use -z text
9000      # though, which does catch some bad symbols but isn't as heavy-handed
9001      # as -z defs.
9002      no_undefined_flag='${wl}-z,text'
9003      allow_undefined_flag='${wl}-z,nodefs'
9004      archive_cmds_need_lc=no
9005      hardcode_shlibpath_var=no
9006      hardcode_libdir_flag_spec='${wl}-R,$libdir'
9007      hardcode_libdir_separator=':'
9008      link_all_deplibs=yes
9009      export_dynamic_flag_spec='${wl}-Bexport'
9010      runpath_var='LD_RUN_PATH'
9011
9012      if test "$GCC" = yes; then
9013	archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9014	archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9015      else
9016	archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9017	archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9018      fi
9019      ;;
9020
9021    uts4*)
9022      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9023      hardcode_libdir_flag_spec='-L$libdir'
9024      hardcode_shlibpath_var=no
9025      ;;
9026
9027    *)
9028      ld_shlibs=no
9029      ;;
9030    esac
9031
9032    if test x$host_vendor = xsni; then
9033      case $host in
9034      sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9035	export_dynamic_flag_spec='${wl}-Blargedynsym'
9036	;;
9037      esac
9038    fi
9039  fi
9040
9041{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
9042$as_echo "$ld_shlibs" >&6; }
9043test "$ld_shlibs" = no && can_build_shared=no
9044
9045with_gnu_ld=$with_gnu_ld
9046
9047
9048
9049
9050
9051
9052
9053
9054
9055
9056
9057
9058
9059
9060
9061#
9062# Do we need to explicitly link libc?
9063#
9064case "x$archive_cmds_need_lc" in
9065x|xyes)
9066  # Assume -lc should be added
9067  archive_cmds_need_lc=yes
9068
9069  if test "$enable_shared" = yes && test "$GCC" = yes; then
9070    case $archive_cmds in
9071    *'~'*)
9072      # FIXME: we may have to deal with multi-command sequences.
9073      ;;
9074    '$CC '*)
9075      # Test whether the compiler implicitly links with -lc since on some
9076      # systems, -lgcc has to come before -lc. If gcc already passes -lc
9077      # to ld, don't add -lc before -lgcc.
9078      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
9079$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
9080if test "${lt_cv_archive_cmds_need_lc+set}" = set; then :
9081  $as_echo_n "(cached) " >&6
9082else
9083  $RM conftest*
9084	echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9085
9086	if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9087  (eval $ac_compile) 2>&5
9088  ac_status=$?
9089  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9090  test $ac_status = 0; } 2>conftest.err; then
9091	  soname=conftest
9092	  lib=conftest
9093	  libobjs=conftest.$ac_objext
9094	  deplibs=
9095	  wl=$lt_prog_compiler_wl
9096	  pic_flag=$lt_prog_compiler_pic
9097	  compiler_flags=-v
9098	  linker_flags=-v
9099	  verstring=
9100	  output_objdir=.
9101	  libname=conftest
9102	  lt_save_allow_undefined_flag=$allow_undefined_flag
9103	  allow_undefined_flag=
9104	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
9105  (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
9106  ac_status=$?
9107  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9108  test $ac_status = 0; }
9109	  then
9110	    lt_cv_archive_cmds_need_lc=no
9111	  else
9112	    lt_cv_archive_cmds_need_lc=yes
9113	  fi
9114	  allow_undefined_flag=$lt_save_allow_undefined_flag
9115	else
9116	  cat conftest.err 1>&5
9117	fi
9118	$RM conftest*
9119
9120fi
9121{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
9122$as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
9123      archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
9124      ;;
9125    esac
9126  fi
9127  ;;
9128esac
9129
9130
9131
9132
9133
9134
9135
9136
9137
9138
9139
9140
9141
9142
9143
9144
9145
9146
9147
9148
9149
9150
9151
9152
9153
9154
9155
9156
9157
9158
9159
9160
9161
9162
9163
9164
9165
9166
9167
9168
9169
9170
9171
9172
9173
9174
9175
9176
9177
9178
9179
9180
9181
9182
9183
9184
9185
9186
9187
9188
9189
9190
9191
9192
9193
9194
9195
9196
9197
9198
9199
9200
9201
9202
9203
9204
9205
9206
9207
9208
9209
9210
9211
9212
9213
9214
9215
9216
9217
9218
9219
9220
9221
9222
9223
9224
9225
9226
9227
9228
9229
9230
9231
9232
9233
9234
9235
9236
9237
9238
9239
9240
9241
9242
9243
9244
9245
9246
9247
9248
9249
9250
9251
9252
9253
9254
9255
9256
9257
9258
9259
9260
9261
9262
9263
9264
9265
9266
9267
9268
9269
9270
9271
9272
9273
9274
9275
9276
9277
9278
9279
9280
9281
9282
9283
9284
9285
9286  { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
9287$as_echo_n "checking dynamic linker characteristics... " >&6; }
9288
9289if test "$GCC" = yes; then
9290  case $host_os in
9291    darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
9292    *) lt_awk_arg="/^libraries:/" ;;
9293  esac
9294  case $host_os in
9295    mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
9296    *) lt_sed_strip_eq="s,=/,/,g" ;;
9297  esac
9298  lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
9299  case $lt_search_path_spec in
9300  *\;*)
9301    # if the path contains ";" then we assume it to be the separator
9302    # otherwise default to the standard path separator (i.e. ":") - it is
9303    # assumed that no part of a normal pathname contains ";" but that should
9304    # okay in the real world where ";" in dirpaths is itself problematic.
9305    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
9306    ;;
9307  *)
9308    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
9309    ;;
9310  esac
9311  # Ok, now we have the path, separated by spaces, we can step through it
9312  # and add multilib dir if necessary.
9313  lt_tmp_lt_search_path_spec=
9314  lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
9315  for lt_sys_path in $lt_search_path_spec; do
9316    if test -d "$lt_sys_path/$lt_multi_os_dir"; then
9317      lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
9318    else
9319      test -d "$lt_sys_path" && \
9320	lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
9321    fi
9322  done
9323  lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
9324BEGIN {RS=" "; FS="/|\n";} {
9325  lt_foo="";
9326  lt_count=0;
9327  for (lt_i = NF; lt_i > 0; lt_i--) {
9328    if ($lt_i != "" && $lt_i != ".") {
9329      if ($lt_i == "..") {
9330        lt_count++;
9331      } else {
9332        if (lt_count == 0) {
9333          lt_foo="/" $lt_i lt_foo;
9334        } else {
9335          lt_count--;
9336        }
9337      }
9338    }
9339  }
9340  if (lt_foo != "") { lt_freq[lt_foo]++; }
9341  if (lt_freq[lt_foo] == 1) { print lt_foo; }
9342}'`
9343  # AWK program above erroneously prepends '/' to C:/dos/paths
9344  # for these hosts.
9345  case $host_os in
9346    mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
9347      $SED 's,/\([A-Za-z]:\),\1,g'` ;;
9348  esac
9349  sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
9350else
9351  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9352fi
9353library_names_spec=
9354libname_spec='lib$name'
9355soname_spec=
9356shrext_cmds=".so"
9357postinstall_cmds=
9358postuninstall_cmds=
9359finish_cmds=
9360finish_eval=
9361shlibpath_var=
9362shlibpath_overrides_runpath=unknown
9363version_type=none
9364dynamic_linker="$host_os ld.so"
9365sys_lib_dlsearch_path_spec="/lib /usr/lib"
9366need_lib_prefix=unknown
9367hardcode_into_libs=no
9368
9369# when you set need_version to no, make sure it does not cause -set_version
9370# flags to be left without arguments
9371need_version=unknown
9372
9373case $host_os in
9374aix3*)
9375  version_type=linux
9376  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9377  shlibpath_var=LIBPATH
9378
9379  # AIX 3 has no versioning support, so we append a major version to the name.
9380  soname_spec='${libname}${release}${shared_ext}$major'
9381  ;;
9382
9383aix[4-9]*)
9384  version_type=linux
9385  need_lib_prefix=no
9386  need_version=no
9387  hardcode_into_libs=yes
9388  if test "$host_cpu" = ia64; then
9389    # AIX 5 supports IA64
9390    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9391    shlibpath_var=LD_LIBRARY_PATH
9392  else
9393    # With GCC up to 2.95.x, collect2 would create an import file
9394    # for dependence libraries.  The import file would start with
9395    # the line `#! .'.  This would cause the generated library to
9396    # depend on `.', always an invalid library.  This was fixed in
9397    # development snapshots of GCC prior to 3.0.
9398    case $host_os in
9399      aix4 | aix4.[01] | aix4.[01].*)
9400      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9401	   echo ' yes '
9402	   echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
9403	:
9404      else
9405	can_build_shared=no
9406      fi
9407      ;;
9408    esac
9409    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9410    # soname into executable. Probably we can add versioning support to
9411    # collect2, so additional links can be useful in future.
9412    if test "$aix_use_runtimelinking" = yes; then
9413      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9414      # instead of lib<name>.a to let people know that these are not
9415      # typical AIX shared libraries.
9416      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9417    else
9418      # We preserve .a as extension for shared libraries through AIX4.2
9419      # and later when we are not doing run time linking.
9420      library_names_spec='${libname}${release}.a $libname.a'
9421      soname_spec='${libname}${release}${shared_ext}$major'
9422    fi
9423    shlibpath_var=LIBPATH
9424  fi
9425  ;;
9426
9427amigaos*)
9428  case $host_cpu in
9429  powerpc)
9430    # Since July 2007 AmigaOS4 officially supports .so libraries.
9431    # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
9432    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9433    ;;
9434  m68k)
9435    library_names_spec='$libname.ixlibrary $libname.a'
9436    # Create ${libname}_ixlibrary.a entries in /sys/libs.
9437    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'
9438    ;;
9439  esac
9440  ;;
9441
9442beos*)
9443  library_names_spec='${libname}${shared_ext}'
9444  dynamic_linker="$host_os ld.so"
9445  shlibpath_var=LIBRARY_PATH
9446  ;;
9447
9448bsdi[45]*)
9449  version_type=linux
9450  need_version=no
9451  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9452  soname_spec='${libname}${release}${shared_ext}$major'
9453  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9454  shlibpath_var=LD_LIBRARY_PATH
9455  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9456  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9457  # the default ld.so.conf also contains /usr/contrib/lib and
9458  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9459  # libtool to hard-code these into programs
9460  ;;
9461
9462cygwin* | mingw* | pw32* | cegcc*)
9463  version_type=windows
9464  shrext_cmds=".dll"
9465  need_version=no
9466  need_lib_prefix=no
9467
9468  case $GCC,$host_os in
9469  yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
9470    library_names_spec='$libname.dll.a'
9471    # DLL is installed to $(libdir)/../bin by postinstall_cmds
9472    postinstall_cmds='base_file=`basename \${file}`~
9473      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
9474      dldir=$destdir/`dirname \$dlpath`~
9475      test -d \$dldir || mkdir -p \$dldir~
9476      $install_prog $dir/$dlname \$dldir/$dlname~
9477      chmod a+x \$dldir/$dlname~
9478      if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
9479        eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
9480      fi'
9481    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9482      dlpath=$dir/\$dldll~
9483       $RM \$dlpath'
9484    shlibpath_overrides_runpath=yes
9485
9486    case $host_os in
9487    cygwin*)
9488      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9489      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9490
9491      sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
9492      ;;
9493    mingw* | cegcc*)
9494      # MinGW DLLs use traditional 'lib' prefix
9495      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9496      ;;
9497    pw32*)
9498      # pw32 DLLs use 'pw' prefix rather than 'lib'
9499      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9500      ;;
9501    esac
9502    ;;
9503
9504  *)
9505    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9506    ;;
9507  esac
9508  dynamic_linker='Win32 ld.exe'
9509  # FIXME: first we should search . and the directory the executable is in
9510  shlibpath_var=PATH
9511  ;;
9512
9513darwin* | rhapsody*)
9514  dynamic_linker="$host_os dyld"
9515  version_type=darwin
9516  need_lib_prefix=no
9517  need_version=no
9518  library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9519  soname_spec='${libname}${release}${major}$shared_ext'
9520  shlibpath_overrides_runpath=yes
9521  shlibpath_var=DYLD_LIBRARY_PATH
9522  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
9523
9524  sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
9525  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9526  ;;
9527
9528dgux*)
9529  version_type=linux
9530  need_lib_prefix=no
9531  need_version=no
9532  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9533  soname_spec='${libname}${release}${shared_ext}$major'
9534  shlibpath_var=LD_LIBRARY_PATH
9535  ;;
9536
9537freebsd1*)
9538  dynamic_linker=no
9539  ;;
9540
9541freebsd* | dragonfly*)
9542  # DragonFly does not have aout.  When/if they implement a new
9543  # versioning mechanism, adjust this.
9544  if test -x /usr/bin/objformat; then
9545    objformat=`/usr/bin/objformat`
9546  else
9547    case $host_os in
9548    freebsd[123]*) objformat=aout ;;
9549    *) objformat=elf ;;
9550    esac
9551  fi
9552  version_type=freebsd-$objformat
9553  case $version_type in
9554    freebsd-elf*)
9555      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9556      need_version=no
9557      need_lib_prefix=no
9558      ;;
9559    freebsd-*)
9560      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9561      need_version=yes
9562      ;;
9563  esac
9564  shlibpath_var=LD_LIBRARY_PATH
9565  case $host_os in
9566  freebsd2*)
9567    shlibpath_overrides_runpath=yes
9568    ;;
9569  freebsd3.[01]* | freebsdelf3.[01]*)
9570    shlibpath_overrides_runpath=yes
9571    hardcode_into_libs=yes
9572    ;;
9573  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9574  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9575    shlibpath_overrides_runpath=no
9576    hardcode_into_libs=yes
9577    ;;
9578  *) # from 4.6 on, and DragonFly
9579    shlibpath_overrides_runpath=yes
9580    hardcode_into_libs=yes
9581    ;;
9582  esac
9583  ;;
9584
9585gnu*)
9586  version_type=linux
9587  need_lib_prefix=no
9588  need_version=no
9589  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9590  soname_spec='${libname}${release}${shared_ext}$major'
9591  shlibpath_var=LD_LIBRARY_PATH
9592  hardcode_into_libs=yes
9593  ;;
9594
9595haiku*)
9596  version_type=linux
9597  need_lib_prefix=no
9598  need_version=no
9599  dynamic_linker="$host_os runtime_loader"
9600  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9601  soname_spec='${libname}${release}${shared_ext}$major'
9602  shlibpath_var=LIBRARY_PATH
9603  shlibpath_overrides_runpath=yes
9604  sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
9605  hardcode_into_libs=yes
9606  ;;
9607
9608hpux9* | hpux10* | hpux11*)
9609  # Give a soname corresponding to the major version so that dld.sl refuses to
9610  # link against other versions.
9611  version_type=sunos
9612  need_lib_prefix=no
9613  need_version=no
9614  case $host_cpu in
9615  ia64*)
9616    shrext_cmds='.so'
9617    hardcode_into_libs=yes
9618    dynamic_linker="$host_os dld.so"
9619    shlibpath_var=LD_LIBRARY_PATH
9620    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9621    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9622    soname_spec='${libname}${release}${shared_ext}$major'
9623    if test "X$HPUX_IA64_MODE" = X32; then
9624      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9625    else
9626      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9627    fi
9628    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9629    ;;
9630  hppa*64*)
9631    shrext_cmds='.sl'
9632    hardcode_into_libs=yes
9633    dynamic_linker="$host_os dld.sl"
9634    shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9635    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9636    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9637    soname_spec='${libname}${release}${shared_ext}$major'
9638    sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9639    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9640    ;;
9641  *)
9642    shrext_cmds='.sl'
9643    dynamic_linker="$host_os dld.sl"
9644    shlibpath_var=SHLIB_PATH
9645    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9646    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9647    soname_spec='${libname}${release}${shared_ext}$major'
9648    ;;
9649  esac
9650  # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
9651  postinstall_cmds='chmod 555 $lib'
9652  # or fails outright, so override atomically:
9653  install_override_mode=555
9654  ;;
9655
9656interix[3-9]*)
9657  version_type=linux
9658  need_lib_prefix=no
9659  need_version=no
9660  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9661  soname_spec='${libname}${release}${shared_ext}$major'
9662  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9663  shlibpath_var=LD_LIBRARY_PATH
9664  shlibpath_overrides_runpath=no
9665  hardcode_into_libs=yes
9666  ;;
9667
9668irix5* | irix6* | nonstopux*)
9669  case $host_os in
9670    nonstopux*) version_type=nonstopux ;;
9671    *)
9672	if test "$lt_cv_prog_gnu_ld" = yes; then
9673		version_type=linux
9674	else
9675		version_type=irix
9676	fi ;;
9677  esac
9678  need_lib_prefix=no
9679  need_version=no
9680  soname_spec='${libname}${release}${shared_ext}$major'
9681  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9682  case $host_os in
9683  irix5* | nonstopux*)
9684    libsuff= shlibsuff=
9685    ;;
9686  *)
9687    case $LD in # libtool.m4 will add one of these switches to LD
9688    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9689      libsuff= shlibsuff= libmagic=32-bit;;
9690    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9691      libsuff=32 shlibsuff=N32 libmagic=N32;;
9692    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9693      libsuff=64 shlibsuff=64 libmagic=64-bit;;
9694    *) libsuff= shlibsuff= libmagic=never-match;;
9695    esac
9696    ;;
9697  esac
9698  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9699  shlibpath_overrides_runpath=no
9700  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9701  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9702  hardcode_into_libs=yes
9703  ;;
9704
9705# No shared lib support for Linux oldld, aout, or coff.
9706linux*oldld* | linux*aout* | linux*coff*)
9707  dynamic_linker=no
9708  ;;
9709
9710# This must be Linux ELF.
9711linux* | k*bsd*-gnu | kopensolaris*-gnu)
9712  version_type=linux
9713  need_lib_prefix=no
9714  need_version=no
9715  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9716  soname_spec='${libname}${release}${shared_ext}$major'
9717  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9718  shlibpath_var=LD_LIBRARY_PATH
9719  shlibpath_overrides_runpath=no
9720
9721  # Some binutils ld are patched to set DT_RUNPATH
9722  if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
9723  $as_echo_n "(cached) " >&6
9724else
9725  lt_cv_shlibpath_overrides_runpath=no
9726    save_LDFLAGS=$LDFLAGS
9727    save_libdir=$libdir
9728    eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
9729	 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
9730    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9731/* end confdefs.h.  */
9732
9733int
9734main ()
9735{
9736
9737  ;
9738  return 0;
9739}
9740_ACEOF
9741if ac_fn_c_try_link "$LINENO"; then :
9742  if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
9743  lt_cv_shlibpath_overrides_runpath=yes
9744fi
9745fi
9746rm -f core conftest.err conftest.$ac_objext \
9747    conftest$ac_exeext conftest.$ac_ext
9748    LDFLAGS=$save_LDFLAGS
9749    libdir=$save_libdir
9750
9751fi
9752
9753  shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
9754
9755  # This implies no fast_install, which is unacceptable.
9756  # Some rework will be needed to allow for fast_install
9757  # before this can be enabled.
9758  hardcode_into_libs=yes
9759
9760  # Append ld.so.conf contents to the search path
9761  if test -f /etc/ld.so.conf; then
9762    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' ' '`
9763    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9764  fi
9765
9766  # We used to test for /lib/ld.so.1 and disable shared libraries on
9767  # powerpc, because MkLinux only supported shared libraries with the
9768  # GNU dynamic linker.  Since this was broken with cross compilers,
9769  # most powerpc-linux boxes support dynamic linking these days and
9770  # people can always --disable-shared, the test was removed, and we
9771  # assume the GNU/Linux dynamic linker is in use.
9772  dynamic_linker='GNU/Linux ld.so'
9773  ;;
9774
9775netbsd*)
9776  version_type=sunos
9777  need_lib_prefix=no
9778  need_version=no
9779  if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9780    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9781    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9782    dynamic_linker='NetBSD (a.out) ld.so'
9783  else
9784    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9785    soname_spec='${libname}${release}${shared_ext}$major'
9786    dynamic_linker='NetBSD ld.elf_so'
9787  fi
9788  shlibpath_var=LD_LIBRARY_PATH
9789  shlibpath_overrides_runpath=yes
9790  hardcode_into_libs=yes
9791  ;;
9792
9793newsos6)
9794  version_type=linux
9795  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9796  shlibpath_var=LD_LIBRARY_PATH
9797  shlibpath_overrides_runpath=yes
9798  ;;
9799
9800*nto* | *qnx*)
9801  version_type=qnx
9802  need_lib_prefix=no
9803  need_version=no
9804  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9805  soname_spec='${libname}${release}${shared_ext}$major'
9806  shlibpath_var=LD_LIBRARY_PATH
9807  shlibpath_overrides_runpath=no
9808  hardcode_into_libs=yes
9809  dynamic_linker='ldqnx.so'
9810  ;;
9811
9812openbsd*)
9813  version_type=sunos
9814  sys_lib_dlsearch_path_spec="/usr/lib"
9815  need_lib_prefix=no
9816  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9817  case $host_os in
9818    openbsd3.3 | openbsd3.3.*)	need_version=yes ;;
9819    *)				need_version=no  ;;
9820  esac
9821  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9822  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9823  shlibpath_var=LD_LIBRARY_PATH
9824  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9825    case $host_os in
9826      openbsd2.[89] | openbsd2.[89].*)
9827	shlibpath_overrides_runpath=no
9828	;;
9829      *)
9830	shlibpath_overrides_runpath=yes
9831	;;
9832      esac
9833  else
9834    shlibpath_overrides_runpath=yes
9835  fi
9836  ;;
9837
9838os2*)
9839  libname_spec='$name'
9840  shrext_cmds=".dll"
9841  need_lib_prefix=no
9842  library_names_spec='$libname${shared_ext} $libname.a'
9843  dynamic_linker='OS/2 ld.exe'
9844  shlibpath_var=LIBPATH
9845  ;;
9846
9847osf3* | osf4* | osf5*)
9848  version_type=osf
9849  need_lib_prefix=no
9850  need_version=no
9851  soname_spec='${libname}${release}${shared_ext}$major'
9852  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9853  shlibpath_var=LD_LIBRARY_PATH
9854  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9855  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9856  ;;
9857
9858rdos*)
9859  dynamic_linker=no
9860  ;;
9861
9862solaris*)
9863  version_type=linux
9864  need_lib_prefix=no
9865  need_version=no
9866  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9867  soname_spec='${libname}${release}${shared_ext}$major'
9868  shlibpath_var=LD_LIBRARY_PATH
9869  shlibpath_overrides_runpath=yes
9870  hardcode_into_libs=yes
9871  # ldd complains unless libraries are executable
9872  postinstall_cmds='chmod +x $lib'
9873  ;;
9874
9875sunos4*)
9876  version_type=sunos
9877  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9878  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9879  shlibpath_var=LD_LIBRARY_PATH
9880  shlibpath_overrides_runpath=yes
9881  if test "$with_gnu_ld" = yes; then
9882    need_lib_prefix=no
9883  fi
9884  need_version=yes
9885  ;;
9886
9887sysv4 | sysv4.3*)
9888  version_type=linux
9889  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9890  soname_spec='${libname}${release}${shared_ext}$major'
9891  shlibpath_var=LD_LIBRARY_PATH
9892  case $host_vendor in
9893    sni)
9894      shlibpath_overrides_runpath=no
9895      need_lib_prefix=no
9896      runpath_var=LD_RUN_PATH
9897      ;;
9898    siemens)
9899      need_lib_prefix=no
9900      ;;
9901    motorola)
9902      need_lib_prefix=no
9903      need_version=no
9904      shlibpath_overrides_runpath=no
9905      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9906      ;;
9907  esac
9908  ;;
9909
9910sysv4*MP*)
9911  if test -d /usr/nec ;then
9912    version_type=linux
9913    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9914    soname_spec='$libname${shared_ext}.$major'
9915    shlibpath_var=LD_LIBRARY_PATH
9916  fi
9917  ;;
9918
9919sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9920  version_type=freebsd-elf
9921  need_lib_prefix=no
9922  need_version=no
9923  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9924  soname_spec='${libname}${release}${shared_ext}$major'
9925  shlibpath_var=LD_LIBRARY_PATH
9926  shlibpath_overrides_runpath=yes
9927  hardcode_into_libs=yes
9928  if test "$with_gnu_ld" = yes; then
9929    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9930  else
9931    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9932    case $host_os in
9933      sco3.2v5*)
9934        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9935	;;
9936    esac
9937  fi
9938  sys_lib_dlsearch_path_spec='/usr/lib'
9939  ;;
9940
9941tpf*)
9942  # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
9943  version_type=linux
9944  need_lib_prefix=no
9945  need_version=no
9946  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9947  shlibpath_var=LD_LIBRARY_PATH
9948  shlibpath_overrides_runpath=no
9949  hardcode_into_libs=yes
9950  ;;
9951
9952uts4*)
9953  version_type=linux
9954  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9955  soname_spec='${libname}${release}${shared_ext}$major'
9956  shlibpath_var=LD_LIBRARY_PATH
9957  ;;
9958
9959*)
9960  dynamic_linker=no
9961  ;;
9962esac
9963{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
9964$as_echo "$dynamic_linker" >&6; }
9965test "$dynamic_linker" = no && can_build_shared=no
9966
9967variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9968if test "$GCC" = yes; then
9969  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9970fi
9971
9972if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
9973  sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
9974fi
9975if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
9976  sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
9977fi
9978
9979
9980
9981
9982
9983
9984
9985
9986
9987
9988
9989
9990
9991
9992
9993
9994
9995
9996
9997
9998
9999
10000
10001
10002
10003
10004
10005
10006
10007
10008
10009
10010
10011
10012
10013
10014
10015
10016
10017
10018
10019
10020
10021
10022
10023
10024
10025
10026
10027
10028
10029
10030
10031
10032
10033
10034
10035
10036
10037
10038
10039
10040
10041
10042
10043
10044
10045
10046
10047
10048
10049
10050
10051
10052
10053
10054
10055
10056
10057
10058
10059
10060
10061
10062
10063
10064
10065
10066
10067
10068
10069
10070  { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
10071$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
10072hardcode_action=
10073if test -n "$hardcode_libdir_flag_spec" ||
10074   test -n "$runpath_var" ||
10075   test "X$hardcode_automatic" = "Xyes" ; then
10076
10077  # We can hardcode non-existent directories.
10078  if test "$hardcode_direct" != no &&
10079     # If the only mechanism to avoid hardcoding is shlibpath_var, we
10080     # have to relink, otherwise we might link with an installed library
10081     # when we should be linking with a yet-to-be-installed one
10082     ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
10083     test "$hardcode_minus_L" != no; then
10084    # Linking always hardcodes the temporary library directory.
10085    hardcode_action=relink
10086  else
10087    # We can link without hardcoding, and we can hardcode nonexisting dirs.
10088    hardcode_action=immediate
10089  fi
10090else
10091  # We cannot hardcode anything, or else we can only hardcode existing
10092  # directories.
10093  hardcode_action=unsupported
10094fi
10095{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
10096$as_echo "$hardcode_action" >&6; }
10097
10098if test "$hardcode_action" = relink ||
10099   test "$inherit_rpath" = yes; then
10100  # Fast installation is not supported
10101  enable_fast_install=no
10102elif test "$shlibpath_overrides_runpath" = yes ||
10103     test "$enable_shared" = no; then
10104  # Fast installation is not necessary
10105  enable_fast_install=needless
10106fi
10107
10108
10109
10110
10111
10112
10113  if test "x$enable_dlopen" != xyes; then
10114  enable_dlopen=unknown
10115  enable_dlopen_self=unknown
10116  enable_dlopen_self_static=unknown
10117else
10118  lt_cv_dlopen=no
10119  lt_cv_dlopen_libs=
10120
10121  case $host_os in
10122  beos*)
10123    lt_cv_dlopen="load_add_on"
10124    lt_cv_dlopen_libs=
10125    lt_cv_dlopen_self=yes
10126    ;;
10127
10128  mingw* | pw32* | cegcc*)
10129    lt_cv_dlopen="LoadLibrary"
10130    lt_cv_dlopen_libs=
10131    ;;
10132
10133  cygwin*)
10134    lt_cv_dlopen="dlopen"
10135    lt_cv_dlopen_libs=
10136    ;;
10137
10138  darwin*)
10139  # if libdl is installed we need to link against it
10140    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10141$as_echo_n "checking for dlopen in -ldl... " >&6; }
10142if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
10143  $as_echo_n "(cached) " >&6
10144else
10145  ac_check_lib_save_LIBS=$LIBS
10146LIBS="-ldl  $LIBS"
10147cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10148/* end confdefs.h.  */
10149
10150/* Override any GCC internal prototype to avoid an error.
10151   Use char because int might match the return type of a GCC
10152   builtin and then its argument prototype would still apply.  */
10153#ifdef __cplusplus
10154extern "C"
10155#endif
10156char dlopen ();
10157int
10158main ()
10159{
10160return dlopen ();
10161  ;
10162  return 0;
10163}
10164_ACEOF
10165if ac_fn_c_try_link "$LINENO"; then :
10166  ac_cv_lib_dl_dlopen=yes
10167else
10168  ac_cv_lib_dl_dlopen=no
10169fi
10170rm -f core conftest.err conftest.$ac_objext \
10171    conftest$ac_exeext conftest.$ac_ext
10172LIBS=$ac_check_lib_save_LIBS
10173fi
10174{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10175$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10176if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
10177  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10178else
10179
10180    lt_cv_dlopen="dyld"
10181    lt_cv_dlopen_libs=
10182    lt_cv_dlopen_self=yes
10183
10184fi
10185
10186    ;;
10187
10188  *)
10189    ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
10190if test "x$ac_cv_func_shl_load" = x""yes; then :
10191  lt_cv_dlopen="shl_load"
10192else
10193  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
10194$as_echo_n "checking for shl_load in -ldld... " >&6; }
10195if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
10196  $as_echo_n "(cached) " >&6
10197else
10198  ac_check_lib_save_LIBS=$LIBS
10199LIBS="-ldld  $LIBS"
10200cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10201/* end confdefs.h.  */
10202
10203/* Override any GCC internal prototype to avoid an error.
10204   Use char because int might match the return type of a GCC
10205   builtin and then its argument prototype would still apply.  */
10206#ifdef __cplusplus
10207extern "C"
10208#endif
10209char shl_load ();
10210int
10211main ()
10212{
10213return shl_load ();
10214  ;
10215  return 0;
10216}
10217_ACEOF
10218if ac_fn_c_try_link "$LINENO"; then :
10219  ac_cv_lib_dld_shl_load=yes
10220else
10221  ac_cv_lib_dld_shl_load=no
10222fi
10223rm -f core conftest.err conftest.$ac_objext \
10224    conftest$ac_exeext conftest.$ac_ext
10225LIBS=$ac_check_lib_save_LIBS
10226fi
10227{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
10228$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
10229if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
10230  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
10231else
10232  ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
10233if test "x$ac_cv_func_dlopen" = x""yes; then :
10234  lt_cv_dlopen="dlopen"
10235else
10236  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10237$as_echo_n "checking for dlopen in -ldl... " >&6; }
10238if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
10239  $as_echo_n "(cached) " >&6
10240else
10241  ac_check_lib_save_LIBS=$LIBS
10242LIBS="-ldl  $LIBS"
10243cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10244/* end confdefs.h.  */
10245
10246/* Override any GCC internal prototype to avoid an error.
10247   Use char because int might match the return type of a GCC
10248   builtin and then its argument prototype would still apply.  */
10249#ifdef __cplusplus
10250extern "C"
10251#endif
10252char dlopen ();
10253int
10254main ()
10255{
10256return dlopen ();
10257  ;
10258  return 0;
10259}
10260_ACEOF
10261if ac_fn_c_try_link "$LINENO"; then :
10262  ac_cv_lib_dl_dlopen=yes
10263else
10264  ac_cv_lib_dl_dlopen=no
10265fi
10266rm -f core conftest.err conftest.$ac_objext \
10267    conftest$ac_exeext conftest.$ac_ext
10268LIBS=$ac_check_lib_save_LIBS
10269fi
10270{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10271$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10272if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
10273  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10274else
10275  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
10276$as_echo_n "checking for dlopen in -lsvld... " >&6; }
10277if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
10278  $as_echo_n "(cached) " >&6
10279else
10280  ac_check_lib_save_LIBS=$LIBS
10281LIBS="-lsvld  $LIBS"
10282cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10283/* end confdefs.h.  */
10284
10285/* Override any GCC internal prototype to avoid an error.
10286   Use char because int might match the return type of a GCC
10287   builtin and then its argument prototype would still apply.  */
10288#ifdef __cplusplus
10289extern "C"
10290#endif
10291char dlopen ();
10292int
10293main ()
10294{
10295return dlopen ();
10296  ;
10297  return 0;
10298}
10299_ACEOF
10300if ac_fn_c_try_link "$LINENO"; then :
10301  ac_cv_lib_svld_dlopen=yes
10302else
10303  ac_cv_lib_svld_dlopen=no
10304fi
10305rm -f core conftest.err conftest.$ac_objext \
10306    conftest$ac_exeext conftest.$ac_ext
10307LIBS=$ac_check_lib_save_LIBS
10308fi
10309{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
10310$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
10311if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
10312  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10313else
10314  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
10315$as_echo_n "checking for dld_link in -ldld... " >&6; }
10316if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
10317  $as_echo_n "(cached) " >&6
10318else
10319  ac_check_lib_save_LIBS=$LIBS
10320LIBS="-ldld  $LIBS"
10321cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10322/* end confdefs.h.  */
10323
10324/* Override any GCC internal prototype to avoid an error.
10325   Use char because int might match the return type of a GCC
10326   builtin and then its argument prototype would still apply.  */
10327#ifdef __cplusplus
10328extern "C"
10329#endif
10330char dld_link ();
10331int
10332main ()
10333{
10334return dld_link ();
10335  ;
10336  return 0;
10337}
10338_ACEOF
10339if ac_fn_c_try_link "$LINENO"; then :
10340  ac_cv_lib_dld_dld_link=yes
10341else
10342  ac_cv_lib_dld_dld_link=no
10343fi
10344rm -f core conftest.err conftest.$ac_objext \
10345    conftest$ac_exeext conftest.$ac_ext
10346LIBS=$ac_check_lib_save_LIBS
10347fi
10348{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
10349$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
10350if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
10351  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
10352fi
10353
10354
10355fi
10356
10357
10358fi
10359
10360
10361fi
10362
10363
10364fi
10365
10366
10367fi
10368
10369    ;;
10370  esac
10371
10372  if test "x$lt_cv_dlopen" != xno; then
10373    enable_dlopen=yes
10374  else
10375    enable_dlopen=no
10376  fi
10377
10378  case $lt_cv_dlopen in
10379  dlopen)
10380    save_CPPFLAGS="$CPPFLAGS"
10381    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10382
10383    save_LDFLAGS="$LDFLAGS"
10384    wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10385
10386    save_LIBS="$LIBS"
10387    LIBS="$lt_cv_dlopen_libs $LIBS"
10388
10389    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
10390$as_echo_n "checking whether a program can dlopen itself... " >&6; }
10391if test "${lt_cv_dlopen_self+set}" = set; then :
10392  $as_echo_n "(cached) " >&6
10393else
10394  	  if test "$cross_compiling" = yes; then :
10395  lt_cv_dlopen_self=cross
10396else
10397  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10398  lt_status=$lt_dlunknown
10399  cat > conftest.$ac_ext <<_LT_EOF
10400#line 10400 "configure"
10401#include "confdefs.h"
10402
10403#if HAVE_DLFCN_H
10404#include <dlfcn.h>
10405#endif
10406
10407#include <stdio.h>
10408
10409#ifdef RTLD_GLOBAL
10410#  define LT_DLGLOBAL		RTLD_GLOBAL
10411#else
10412#  ifdef DL_GLOBAL
10413#    define LT_DLGLOBAL		DL_GLOBAL
10414#  else
10415#    define LT_DLGLOBAL		0
10416#  endif
10417#endif
10418
10419/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10420   find out it does not work in some platform. */
10421#ifndef LT_DLLAZY_OR_NOW
10422#  ifdef RTLD_LAZY
10423#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
10424#  else
10425#    ifdef DL_LAZY
10426#      define LT_DLLAZY_OR_NOW		DL_LAZY
10427#    else
10428#      ifdef RTLD_NOW
10429#        define LT_DLLAZY_OR_NOW	RTLD_NOW
10430#      else
10431#        ifdef DL_NOW
10432#          define LT_DLLAZY_OR_NOW	DL_NOW
10433#        else
10434#          define LT_DLLAZY_OR_NOW	0
10435#        endif
10436#      endif
10437#    endif
10438#  endif
10439#endif
10440
10441/* When -fvisbility=hidden is used, assume the code has been annotated
10442   correspondingly for the symbols needed.  */
10443#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
10444void fnord () __attribute__((visibility("default")));
10445#endif
10446
10447void fnord () { int i=42; }
10448int main ()
10449{
10450  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10451  int status = $lt_dlunknown;
10452
10453  if (self)
10454    {
10455      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
10456      else
10457        {
10458	  if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
10459          else puts (dlerror ());
10460	}
10461      /* dlclose (self); */
10462    }
10463  else
10464    puts (dlerror ());
10465
10466  return status;
10467}
10468_LT_EOF
10469  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
10470  (eval $ac_link) 2>&5
10471  ac_status=$?
10472  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10473  test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
10474    (./conftest; exit; ) >&5 2>/dev/null
10475    lt_status=$?
10476    case x$lt_status in
10477      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
10478      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
10479      x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
10480    esac
10481  else :
10482    # compilation failed
10483    lt_cv_dlopen_self=no
10484  fi
10485fi
10486rm -fr conftest*
10487
10488
10489fi
10490{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
10491$as_echo "$lt_cv_dlopen_self" >&6; }
10492
10493    if test "x$lt_cv_dlopen_self" = xyes; then
10494      wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
10495      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
10496$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
10497if test "${lt_cv_dlopen_self_static+set}" = set; then :
10498  $as_echo_n "(cached) " >&6
10499else
10500  	  if test "$cross_compiling" = yes; then :
10501  lt_cv_dlopen_self_static=cross
10502else
10503  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10504  lt_status=$lt_dlunknown
10505  cat > conftest.$ac_ext <<_LT_EOF
10506#line 10506 "configure"
10507#include "confdefs.h"
10508
10509#if HAVE_DLFCN_H
10510#include <dlfcn.h>
10511#endif
10512
10513#include <stdio.h>
10514
10515#ifdef RTLD_GLOBAL
10516#  define LT_DLGLOBAL		RTLD_GLOBAL
10517#else
10518#  ifdef DL_GLOBAL
10519#    define LT_DLGLOBAL		DL_GLOBAL
10520#  else
10521#    define LT_DLGLOBAL		0
10522#  endif
10523#endif
10524
10525/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10526   find out it does not work in some platform. */
10527#ifndef LT_DLLAZY_OR_NOW
10528#  ifdef RTLD_LAZY
10529#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
10530#  else
10531#    ifdef DL_LAZY
10532#      define LT_DLLAZY_OR_NOW		DL_LAZY
10533#    else
10534#      ifdef RTLD_NOW
10535#        define LT_DLLAZY_OR_NOW	RTLD_NOW
10536#      else
10537#        ifdef DL_NOW
10538#          define LT_DLLAZY_OR_NOW	DL_NOW
10539#        else
10540#          define LT_DLLAZY_OR_NOW	0
10541#        endif
10542#      endif
10543#    endif
10544#  endif
10545#endif
10546
10547/* When -fvisbility=hidden is used, assume the code has been annotated
10548   correspondingly for the symbols needed.  */
10549#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
10550void fnord () __attribute__((visibility("default")));
10551#endif
10552
10553void fnord () { int i=42; }
10554int main ()
10555{
10556  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10557  int status = $lt_dlunknown;
10558
10559  if (self)
10560    {
10561      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
10562      else
10563        {
10564	  if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
10565          else puts (dlerror ());
10566	}
10567      /* dlclose (self); */
10568    }
10569  else
10570    puts (dlerror ());
10571
10572  return status;
10573}
10574_LT_EOF
10575  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
10576  (eval $ac_link) 2>&5
10577  ac_status=$?
10578  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10579  test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
10580    (./conftest; exit; ) >&5 2>/dev/null
10581    lt_status=$?
10582    case x$lt_status in
10583      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
10584      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
10585      x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
10586    esac
10587  else :
10588    # compilation failed
10589    lt_cv_dlopen_self_static=no
10590  fi
10591fi
10592rm -fr conftest*
10593
10594
10595fi
10596{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
10597$as_echo "$lt_cv_dlopen_self_static" >&6; }
10598    fi
10599
10600    CPPFLAGS="$save_CPPFLAGS"
10601    LDFLAGS="$save_LDFLAGS"
10602    LIBS="$save_LIBS"
10603    ;;
10604  esac
10605
10606  case $lt_cv_dlopen_self in
10607  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
10608  *) enable_dlopen_self=unknown ;;
10609  esac
10610
10611  case $lt_cv_dlopen_self_static in
10612  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
10613  *) enable_dlopen_self_static=unknown ;;
10614  esac
10615fi
10616
10617
10618
10619
10620
10621
10622
10623
10624
10625
10626
10627
10628
10629
10630
10631
10632
10633striplib=
10634old_striplib=
10635{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
10636$as_echo_n "checking whether stripping libraries is possible... " >&6; }
10637if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
10638  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
10639  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
10640  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10641$as_echo "yes" >&6; }
10642else
10643# FIXME - insert some real tests, host_os isn't really good enough
10644  case $host_os in
10645  darwin*)
10646    if test -n "$STRIP" ; then
10647      striplib="$STRIP -x"
10648      old_striplib="$STRIP -S"
10649      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10650$as_echo "yes" >&6; }
10651    else
10652      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10653$as_echo "no" >&6; }
10654    fi
10655    ;;
10656  *)
10657    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10658$as_echo "no" >&6; }
10659    ;;
10660  esac
10661fi
10662
10663
10664
10665
10666
10667
10668
10669
10670
10671
10672
10673
10674  # Report which library types will actually be built
10675  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
10676$as_echo_n "checking if libtool supports shared libraries... " >&6; }
10677  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
10678$as_echo "$can_build_shared" >&6; }
10679
10680  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
10681$as_echo_n "checking whether to build shared libraries... " >&6; }
10682  test "$can_build_shared" = "no" && enable_shared=no
10683
10684  # On AIX, shared libraries and static libraries use the same namespace, and
10685  # are all built from PIC.
10686  case $host_os in
10687  aix3*)
10688    test "$enable_shared" = yes && enable_static=no
10689    if test -n "$RANLIB"; then
10690      archive_cmds="$archive_cmds~\$RANLIB \$lib"
10691      postinstall_cmds='$RANLIB $lib'
10692    fi
10693    ;;
10694
10695  aix[4-9]*)
10696    if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
10697      test "$enable_shared" = yes && enable_static=no
10698    fi
10699    ;;
10700  esac
10701  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
10702$as_echo "$enable_shared" >&6; }
10703
10704  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
10705$as_echo_n "checking whether to build static libraries... " >&6; }
10706  # Make sure either enable_shared or enable_static is yes.
10707  test "$enable_shared" = yes || enable_static=yes
10708  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
10709$as_echo "$enable_static" >&6; }
10710
10711
10712
10713
10714fi
10715ac_ext=c
10716ac_cpp='$CPP $CPPFLAGS'
10717ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10718ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10719ac_compiler_gnu=$ac_cv_c_compiler_gnu
10720
10721CC="$lt_save_CC"
10722
10723
10724
10725
10726
10727
10728
10729
10730
10731
10732
10733
10734
10735        ac_config_commands="$ac_config_commands libtool"
10736
10737
10738
10739
10740# Only expand once:
10741
10742
10743
10744ac_fn_c_find_uintX_t "$LINENO" "64" "ac_cv_c_uint64_t"
10745case $ac_cv_c_uint64_t in #(
10746  no|yes) ;; #(
10747  *)
10748
10749$as_echo "#define _UINT64_T 1" >>confdefs.h
10750
10751
10752cat >>confdefs.h <<_ACEOF
10753#define uint64_t $ac_cv_c_uint64_t
10754_ACEOF
10755;;
10756  esac
10757
10758ac_config_files="$ac_config_files Makefile"
10759
10760cat >confcache <<\_ACEOF
10761# This file is a shell script that caches the results of configure
10762# tests run on this system so they can be shared between configure
10763# scripts and configure runs, see configure's option --config-cache.
10764# It is not useful on other systems.  If it contains results you don't
10765# want to keep, you may remove or edit it.
10766#
10767# config.status only pays attention to the cache file if you give it
10768# the --recheck option to rerun configure.
10769#
10770# `ac_cv_env_foo' variables (set or unset) will be overridden when
10771# loading this file, other *unset* `ac_cv_foo' will be assigned the
10772# following values.
10773
10774_ACEOF
10775
10776# The following way of writing the cache mishandles newlines in values,
10777# but we know of no workaround that is simple, portable, and efficient.
10778# So, we kill variables containing newlines.
10779# Ultrix sh set writes to stderr and can't be redirected directly,
10780# and sets the high bit in the cache file unless we assign to the vars.
10781(
10782  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
10783    eval ac_val=\$$ac_var
10784    case $ac_val in #(
10785    *${as_nl}*)
10786      case $ac_var in #(
10787      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
10788$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
10789      esac
10790      case $ac_var in #(
10791      _ | IFS | as_nl) ;; #(
10792      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
10793      *) { eval $ac_var=; unset $ac_var;} ;;
10794      esac ;;
10795    esac
10796  done
10797
10798  (set) 2>&1 |
10799    case $as_nl`(ac_space=' '; set) 2>&1` in #(
10800    *${as_nl}ac_space=\ *)
10801      # `set' does not quote correctly, so add quotes: double-quote
10802      # substitution turns \\\\ into \\, and sed turns \\ into \.
10803      sed -n \
10804	"s/'/'\\\\''/g;
10805	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
10806      ;; #(
10807    *)
10808      # `set' quotes correctly as required by POSIX, so do not add quotes.
10809      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
10810      ;;
10811    esac |
10812    sort
10813) |
10814  sed '
10815     /^ac_cv_env_/b end
10816     t clear
10817     :clear
10818     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
10819     t end
10820     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
10821     :end' >>confcache
10822if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
10823  if test -w "$cache_file"; then
10824    test "x$cache_file" != "x/dev/null" &&
10825      { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
10826$as_echo "$as_me: updating cache $cache_file" >&6;}
10827    cat confcache >$cache_file
10828  else
10829    { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
10830$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
10831  fi
10832fi
10833rm -f confcache
10834
10835test "x$prefix" = xNONE && prefix=$ac_default_prefix
10836# Let make expand exec_prefix.
10837test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
10838
10839# Transform confdefs.h into DEFS.
10840# Protect against shell expansion while executing Makefile rules.
10841# Protect against Makefile macro expansion.
10842#
10843# If the first sed substitution is executed (which looks for macros that
10844# take arguments), then branch to the quote section.  Otherwise,
10845# look for a macro that doesn't take arguments.
10846ac_script='
10847:mline
10848/\\$/{
10849 N
10850 s,\\\n,,
10851 b mline
10852}
10853t clear
10854:clear
10855s/^[	 ]*#[	 ]*define[	 ][	 ]*\([^	 (][^	 (]*([^)]*)\)[	 ]*\(.*\)/-D\1=\2/g
10856t quote
10857s/^[	 ]*#[	 ]*define[	 ][	 ]*\([^	 ][^	 ]*\)[	 ]*\(.*\)/-D\1=\2/g
10858t quote
10859b any
10860:quote
10861s/[	 `~#$^&*(){}\\|;'\''"<>?]/\\&/g
10862s/\[/\\&/g
10863s/\]/\\&/g
10864s/\$/$$/g
10865H
10866:any
10867${
10868	g
10869	s/^\n//
10870	s/\n/ /g
10871	p
10872}
10873'
10874DEFS=`sed -n "$ac_script" confdefs.h`
10875
10876
10877ac_libobjs=
10878ac_ltlibobjs=
10879for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
10880  # 1. Remove the extension, and $U if already installed.
10881  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
10882  ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
10883  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
10884  #    will be set to the directory where LIBOBJS objects are built.
10885  as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
10886  as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
10887done
10888LIBOBJS=$ac_libobjs
10889
10890LTLIBOBJS=$ac_ltlibobjs
10891
10892
10893 if test -n "$EXEEXT"; then
10894  am__EXEEXT_TRUE=
10895  am__EXEEXT_FALSE='#'
10896else
10897  am__EXEEXT_TRUE='#'
10898  am__EXEEXT_FALSE=
10899fi
10900
10901if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
10902  as_fn_error "conditional \"MAINTAINER_MODE\" was never defined.
10903Usually this means the macro was only invoked conditionally." "$LINENO" 5
10904fi
10905if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
10906  as_fn_error "conditional \"AMDEP\" was never defined.
10907Usually this means the macro was only invoked conditionally." "$LINENO" 5
10908fi
10909if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
10910  as_fn_error "conditional \"am__fastdepCC\" was never defined.
10911Usually this means the macro was only invoked conditionally." "$LINENO" 5
10912fi
10913
10914: ${CONFIG_STATUS=./config.status}
10915ac_write_fail=0
10916ac_clean_files_save=$ac_clean_files
10917ac_clean_files="$ac_clean_files $CONFIG_STATUS"
10918{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
10919$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
10920as_write_fail=0
10921cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
10922#! $SHELL
10923# Generated by $as_me.
10924# Run this file to recreate the current configuration.
10925# Compiler output produced by configure, useful for debugging
10926# configure, is in config.log if it exists.
10927
10928debug=false
10929ac_cs_recheck=false
10930ac_cs_silent=false
10931
10932SHELL=\${CONFIG_SHELL-$SHELL}
10933export SHELL
10934_ASEOF
10935cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
10936## -------------------- ##
10937## M4sh Initialization. ##
10938## -------------------- ##
10939
10940# Be more Bourne compatible
10941DUALCASE=1; export DUALCASE # for MKS sh
10942if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
10943  emulate sh
10944  NULLCMD=:
10945  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
10946  # is contrary to our usage.  Disable this feature.
10947  alias -g '${1+"$@"}'='"$@"'
10948  setopt NO_GLOB_SUBST
10949else
10950  case `(set -o) 2>/dev/null` in #(
10951  *posix*) :
10952    set -o posix ;; #(
10953  *) :
10954     ;;
10955esac
10956fi
10957
10958
10959as_nl='
10960'
10961export as_nl
10962# Printing a long string crashes Solaris 7 /usr/bin/printf.
10963as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
10964as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
10965as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
10966# Prefer a ksh shell builtin over an external printf program on Solaris,
10967# but without wasting forks for bash or zsh.
10968if test -z "$BASH_VERSION$ZSH_VERSION" \
10969    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
10970  as_echo='print -r --'
10971  as_echo_n='print -rn --'
10972elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
10973  as_echo='printf %s\n'
10974  as_echo_n='printf %s'
10975else
10976  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
10977    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
10978    as_echo_n='/usr/ucb/echo -n'
10979  else
10980    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
10981    as_echo_n_body='eval
10982      arg=$1;
10983      case $arg in #(
10984      *"$as_nl"*)
10985	expr "X$arg" : "X\\(.*\\)$as_nl";
10986	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
10987      esac;
10988      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
10989    '
10990    export as_echo_n_body
10991    as_echo_n='sh -c $as_echo_n_body as_echo'
10992  fi
10993  export as_echo_body
10994  as_echo='sh -c $as_echo_body as_echo'
10995fi
10996
10997# The user is always right.
10998if test "${PATH_SEPARATOR+set}" != set; then
10999  PATH_SEPARATOR=:
11000  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
11001    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
11002      PATH_SEPARATOR=';'
11003  }
11004fi
11005
11006
11007# IFS
11008# We need space, tab and new line, in precisely that order.  Quoting is
11009# there to prevent editors from complaining about space-tab.
11010# (If _AS_PATH_WALK were called with IFS unset, it would disable word
11011# splitting by setting IFS to empty value.)
11012IFS=" ""	$as_nl"
11013
11014# Find who we are.  Look in the path if we contain no directory separator.
11015case $0 in #((
11016  *[\\/]* ) as_myself=$0 ;;
11017  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11018for as_dir in $PATH
11019do
11020  IFS=$as_save_IFS
11021  test -z "$as_dir" && as_dir=.
11022    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
11023  done
11024IFS=$as_save_IFS
11025
11026     ;;
11027esac
11028# We did not find ourselves, most probably we were run as `sh COMMAND'
11029# in which case we are not to be found in the path.
11030if test "x$as_myself" = x; then
11031  as_myself=$0
11032fi
11033if test ! -f "$as_myself"; then
11034  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
11035  exit 1
11036fi
11037
11038# Unset variables that we do not need and which cause bugs (e.g. in
11039# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
11040# suppresses any "Segmentation fault" message there.  '((' could
11041# trigger a bug in pdksh 5.2.14.
11042for as_var in BASH_ENV ENV MAIL MAILPATH
11043do eval test x\${$as_var+set} = xset \
11044  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
11045done
11046PS1='$ '
11047PS2='> '
11048PS4='+ '
11049
11050# NLS nuisances.
11051LC_ALL=C
11052export LC_ALL
11053LANGUAGE=C
11054export LANGUAGE
11055
11056# CDPATH.
11057(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
11058
11059
11060# as_fn_error ERROR [LINENO LOG_FD]
11061# ---------------------------------
11062# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
11063# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
11064# script with status $?, using 1 if that was 0.
11065as_fn_error ()
11066{
11067  as_status=$?; test $as_status -eq 0 && as_status=1
11068  if test "$3"; then
11069    as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
11070    $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
11071  fi
11072  $as_echo "$as_me: error: $1" >&2
11073  as_fn_exit $as_status
11074} # as_fn_error
11075
11076
11077# as_fn_set_status STATUS
11078# -----------------------
11079# Set $? to STATUS, without forking.
11080as_fn_set_status ()
11081{
11082  return $1
11083} # as_fn_set_status
11084
11085# as_fn_exit STATUS
11086# -----------------
11087# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
11088as_fn_exit ()
11089{
11090  set +e
11091  as_fn_set_status $1
11092  exit $1
11093} # as_fn_exit
11094
11095# as_fn_unset VAR
11096# ---------------
11097# Portably unset VAR.
11098as_fn_unset ()
11099{
11100  { eval $1=; unset $1;}
11101}
11102as_unset=as_fn_unset
11103# as_fn_append VAR VALUE
11104# ----------------------
11105# Append the text in VALUE to the end of the definition contained in VAR. Take
11106# advantage of any shell optimizations that allow amortized linear growth over
11107# repeated appends, instead of the typical quadratic growth present in naive
11108# implementations.
11109if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
11110  eval 'as_fn_append ()
11111  {
11112    eval $1+=\$2
11113  }'
11114else
11115  as_fn_append ()
11116  {
11117    eval $1=\$$1\$2
11118  }
11119fi # as_fn_append
11120
11121# as_fn_arith ARG...
11122# ------------------
11123# Perform arithmetic evaluation on the ARGs, and store the result in the
11124# global $as_val. Take advantage of shells that can avoid forks. The arguments
11125# must be portable across $(()) and expr.
11126if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
11127  eval 'as_fn_arith ()
11128  {
11129    as_val=$(( $* ))
11130  }'
11131else
11132  as_fn_arith ()
11133  {
11134    as_val=`expr "$@" || test $? -eq 1`
11135  }
11136fi # as_fn_arith
11137
11138
11139if expr a : '\(a\)' >/dev/null 2>&1 &&
11140   test "X`expr 00001 : '.*\(...\)'`" = X001; then
11141  as_expr=expr
11142else
11143  as_expr=false
11144fi
11145
11146if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
11147  as_basename=basename
11148else
11149  as_basename=false
11150fi
11151
11152if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
11153  as_dirname=dirname
11154else
11155  as_dirname=false
11156fi
11157
11158as_me=`$as_basename -- "$0" ||
11159$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
11160	 X"$0" : 'X\(//\)$' \| \
11161	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
11162$as_echo X/"$0" |
11163    sed '/^.*\/\([^/][^/]*\)\/*$/{
11164	    s//\1/
11165	    q
11166	  }
11167	  /^X\/\(\/\/\)$/{
11168	    s//\1/
11169	    q
11170	  }
11171	  /^X\/\(\/\).*/{
11172	    s//\1/
11173	    q
11174	  }
11175	  s/.*/./; q'`
11176
11177# Avoid depending upon Character Ranges.
11178as_cr_letters='abcdefghijklmnopqrstuvwxyz'
11179as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
11180as_cr_Letters=$as_cr_letters$as_cr_LETTERS
11181as_cr_digits='0123456789'
11182as_cr_alnum=$as_cr_Letters$as_cr_digits
11183
11184ECHO_C= ECHO_N= ECHO_T=
11185case `echo -n x` in #(((((
11186-n*)
11187  case `echo 'xy\c'` in
11188  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
11189  xy)  ECHO_C='\c';;
11190  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
11191       ECHO_T='	';;
11192  esac;;
11193*)
11194  ECHO_N='-n';;
11195esac
11196
11197rm -f conf$$ conf$$.exe conf$$.file
11198if test -d conf$$.dir; then
11199  rm -f conf$$.dir/conf$$.file
11200else
11201  rm -f conf$$.dir
11202  mkdir conf$$.dir 2>/dev/null
11203fi
11204if (echo >conf$$.file) 2>/dev/null; then
11205  if ln -s conf$$.file conf$$ 2>/dev/null; then
11206    as_ln_s='ln -s'
11207    # ... but there are two gotchas:
11208    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
11209    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
11210    # In both cases, we have to default to `cp -p'.
11211    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
11212      as_ln_s='cp -p'
11213  elif ln conf$$.file conf$$ 2>/dev/null; then
11214    as_ln_s=ln
11215  else
11216    as_ln_s='cp -p'
11217  fi
11218else
11219  as_ln_s='cp -p'
11220fi
11221rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
11222rmdir conf$$.dir 2>/dev/null
11223
11224
11225# as_fn_mkdir_p
11226# -------------
11227# Create "$as_dir" as a directory, including parents if necessary.
11228as_fn_mkdir_p ()
11229{
11230
11231  case $as_dir in #(
11232  -*) as_dir=./$as_dir;;
11233  esac
11234  test -d "$as_dir" || eval $as_mkdir_p || {
11235    as_dirs=
11236    while :; do
11237      case $as_dir in #(
11238      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
11239      *) as_qdir=$as_dir;;
11240      esac
11241      as_dirs="'$as_qdir' $as_dirs"
11242      as_dir=`$as_dirname -- "$as_dir" ||
11243$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11244	 X"$as_dir" : 'X\(//\)[^/]' \| \
11245	 X"$as_dir" : 'X\(//\)$' \| \
11246	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
11247$as_echo X"$as_dir" |
11248    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
11249	    s//\1/
11250	    q
11251	  }
11252	  /^X\(\/\/\)[^/].*/{
11253	    s//\1/
11254	    q
11255	  }
11256	  /^X\(\/\/\)$/{
11257	    s//\1/
11258	    q
11259	  }
11260	  /^X\(\/\).*/{
11261	    s//\1/
11262	    q
11263	  }
11264	  s/.*/./; q'`
11265      test -d "$as_dir" && break
11266    done
11267    test -z "$as_dirs" || eval "mkdir $as_dirs"
11268  } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
11269
11270
11271} # as_fn_mkdir_p
11272if mkdir -p . 2>/dev/null; then
11273  as_mkdir_p='mkdir -p "$as_dir"'
11274else
11275  test -d ./-p && rmdir ./-p
11276  as_mkdir_p=false
11277fi
11278
11279if test -x / >/dev/null 2>&1; then
11280  as_test_x='test -x'
11281else
11282  if ls -dL / >/dev/null 2>&1; then
11283    as_ls_L_option=L
11284  else
11285    as_ls_L_option=
11286  fi
11287  as_test_x='
11288    eval sh -c '\''
11289      if test -d "$1"; then
11290	test -d "$1/.";
11291      else
11292	case $1 in #(
11293	-*)set "./$1";;
11294	esac;
11295	case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
11296	???[sx]*):;;*)false;;esac;fi
11297    '\'' sh
11298  '
11299fi
11300as_executable_p=$as_test_x
11301
11302# Sed expression to map a string onto a valid CPP name.
11303as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
11304
11305# Sed expression to map a string onto a valid variable name.
11306as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
11307
11308
11309exec 6>&1
11310## ----------------------------------- ##
11311## Main body of $CONFIG_STATUS script. ##
11312## ----------------------------------- ##
11313_ASEOF
11314test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
11315
11316cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11317# Save the log message, to keep $0 and so on meaningful, and to
11318# report actual input values of CONFIG_FILES etc. instead of their
11319# values after options handling.
11320ac_log="
11321This file was extended by LTO plugin for ld $as_me 0.1, which was
11322generated by GNU Autoconf 2.64.  Invocation command line was
11323
11324  CONFIG_FILES    = $CONFIG_FILES
11325  CONFIG_HEADERS  = $CONFIG_HEADERS
11326  CONFIG_LINKS    = $CONFIG_LINKS
11327  CONFIG_COMMANDS = $CONFIG_COMMANDS
11328  $ $0 $@
11329
11330on `(hostname || uname -n) 2>/dev/null | sed 1q`
11331"
11332
11333_ACEOF
11334
11335case $ac_config_files in *"
11336"*) set x $ac_config_files; shift; ac_config_files=$*;;
11337esac
11338
11339
11340
11341cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11342# Files that config.status was made for.
11343config_files="$ac_config_files"
11344config_commands="$ac_config_commands"
11345
11346_ACEOF
11347
11348cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11349ac_cs_usage="\
11350\`$as_me' instantiates files and other configuration actions
11351from templates according to the current configuration.  Unless the files
11352and actions are specified as TAGs, all are instantiated by default.
11353
11354Usage: $0 [OPTION]... [TAG]...
11355
11356  -h, --help       print this help, then exit
11357  -V, --version    print version number and configuration settings, then exit
11358  -q, --quiet, --silent
11359                   do not print progress messages
11360  -d, --debug      don't remove temporary files
11361      --recheck    update $as_me by reconfiguring in the same conditions
11362      --file=FILE[:TEMPLATE]
11363                   instantiate the configuration file FILE
11364
11365Configuration files:
11366$config_files
11367
11368Configuration commands:
11369$config_commands
11370
11371Report bugs to the package provider."
11372
11373_ACEOF
11374cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11375ac_cs_version="\\
11376LTO plugin for ld config.status 0.1
11377configured by $0, generated by GNU Autoconf 2.64,
11378  with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
11379
11380Copyright (C) 2009 Free Software Foundation, Inc.
11381This config.status script is free software; the Free Software Foundation
11382gives unlimited permission to copy, distribute and modify it."
11383
11384ac_pwd='$ac_pwd'
11385srcdir='$srcdir'
11386INSTALL='$INSTALL'
11387MKDIR_P='$MKDIR_P'
11388AWK='$AWK'
11389test -n "\$AWK" || AWK=awk
11390_ACEOF
11391
11392cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11393# The default lists apply if the user does not specify any file.
11394ac_need_defaults=:
11395while test $# != 0
11396do
11397  case $1 in
11398  --*=*)
11399    ac_option=`expr "X$1" : 'X\([^=]*\)='`
11400    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
11401    ac_shift=:
11402    ;;
11403  *)
11404    ac_option=$1
11405    ac_optarg=$2
11406    ac_shift=shift
11407    ;;
11408  esac
11409
11410  case $ac_option in
11411  # Handling of the options.
11412  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
11413    ac_cs_recheck=: ;;
11414  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
11415    $as_echo "$ac_cs_version"; exit ;;
11416  --debug | --debu | --deb | --de | --d | -d )
11417    debug=: ;;
11418  --file | --fil | --fi | --f )
11419    $ac_shift
11420    case $ac_optarg in
11421    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
11422    esac
11423    as_fn_append CONFIG_FILES " '$ac_optarg'"
11424    ac_need_defaults=false;;
11425  --he | --h |  --help | --hel | -h )
11426    $as_echo "$ac_cs_usage"; exit ;;
11427  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
11428  | -silent | --silent | --silen | --sile | --sil | --si | --s)
11429    ac_cs_silent=: ;;
11430
11431  # This is an error.
11432  -*) as_fn_error "unrecognized option: \`$1'
11433Try \`$0 --help' for more information." ;;
11434
11435  *) as_fn_append ac_config_targets " $1"
11436     ac_need_defaults=false ;;
11437
11438  esac
11439  shift
11440done
11441
11442ac_configure_extra_args=
11443
11444if $ac_cs_silent; then
11445  exec 6>/dev/null
11446  ac_configure_extra_args="$ac_configure_extra_args --silent"
11447fi
11448
11449_ACEOF
11450cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11451if \$ac_cs_recheck; then
11452  set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
11453  shift
11454  \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
11455  CONFIG_SHELL='$SHELL'
11456  export CONFIG_SHELL
11457  exec "\$@"
11458fi
11459
11460_ACEOF
11461cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11462exec 5>>config.log
11463{
11464  echo
11465  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
11466## Running $as_me. ##
11467_ASBOX
11468  $as_echo "$ac_log"
11469} >&5
11470
11471_ACEOF
11472cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11473#
11474# INIT-COMMANDS
11475#
11476AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
11477
11478
11479# The HP-UX ksh and POSIX shell print the target directory to stdout
11480# if CDPATH is set.
11481(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
11482
11483sed_quote_subst='$sed_quote_subst'
11484double_quote_subst='$double_quote_subst'
11485delay_variable_subst='$delay_variable_subst'
11486macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
11487macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
11488enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
11489enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
11490pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
11491enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
11492SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
11493ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
11494host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
11495host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
11496host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
11497build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
11498build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
11499build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
11500SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
11501Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
11502GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
11503EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
11504FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
11505LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
11506NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
11507LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
11508max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
11509ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
11510exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
11511lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
11512lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
11513lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
11514reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
11515reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
11516OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
11517deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
11518file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
11519AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
11520AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
11521STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
11522RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
11523old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
11524old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
11525old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
11526lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
11527CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
11528CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
11529compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
11530GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
11531lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
11532lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
11533lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
11534lt_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"`'
11535objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
11536MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
11537lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
11538lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
11539lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
11540lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
11541lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
11542need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
11543DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
11544NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
11545LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
11546OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
11547OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
11548libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
11549shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
11550extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
11551archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
11552enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
11553export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
11554whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
11555compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
11556old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
11557old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
11558archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
11559archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
11560module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
11561module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
11562with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
11563allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
11564no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
11565hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
11566hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
11567hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
11568hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
11569hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
11570hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
11571hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
11572hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
11573inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
11574link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
11575fix_srcfile_path='`$ECHO "$fix_srcfile_path" | $SED "$delay_single_quote_subst"`'
11576always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
11577export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
11578exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
11579include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
11580prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
11581file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
11582variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
11583need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
11584need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
11585version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
11586runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
11587shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
11588shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
11589libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
11590library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
11591soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
11592install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
11593postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
11594postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
11595finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
11596finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
11597hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
11598sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
11599sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
11600hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
11601enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
11602enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
11603enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
11604old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
11605striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
11606
11607LTCC='$LTCC'
11608LTCFLAGS='$LTCFLAGS'
11609compiler='$compiler_DEFAULT'
11610
11611# A function that is used when there is no print builtin or printf.
11612func_fallback_echo ()
11613{
11614  eval 'cat <<_LTECHO_EOF
11615\$1
11616_LTECHO_EOF'
11617}
11618
11619# Quote evaled strings.
11620for var in SHELL \
11621ECHO \
11622SED \
11623GREP \
11624EGREP \
11625FGREP \
11626LD \
11627NM \
11628LN_S \
11629lt_SP2NL \
11630lt_NL2SP \
11631reload_flag \
11632OBJDUMP \
11633deplibs_check_method \
11634file_magic_cmd \
11635AR \
11636AR_FLAGS \
11637STRIP \
11638RANLIB \
11639CC \
11640CFLAGS \
11641compiler \
11642lt_cv_sys_global_symbol_pipe \
11643lt_cv_sys_global_symbol_to_cdecl \
11644lt_cv_sys_global_symbol_to_c_name_address \
11645lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
11646lt_prog_compiler_no_builtin_flag \
11647lt_prog_compiler_wl \
11648lt_prog_compiler_pic \
11649lt_prog_compiler_static \
11650lt_cv_prog_compiler_c_o \
11651need_locks \
11652DSYMUTIL \
11653NMEDIT \
11654LIPO \
11655OTOOL \
11656OTOOL64 \
11657shrext_cmds \
11658export_dynamic_flag_spec \
11659whole_archive_flag_spec \
11660compiler_needs_object \
11661with_gnu_ld \
11662allow_undefined_flag \
11663no_undefined_flag \
11664hardcode_libdir_flag_spec \
11665hardcode_libdir_flag_spec_ld \
11666hardcode_libdir_separator \
11667fix_srcfile_path \
11668exclude_expsyms \
11669include_expsyms \
11670file_list_spec \
11671variables_saved_for_relink \
11672libname_spec \
11673library_names_spec \
11674soname_spec \
11675install_override_mode \
11676finish_eval \
11677old_striplib \
11678striplib; do
11679    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
11680    *[\\\\\\\`\\"\\\$]*)
11681      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
11682      ;;
11683    *)
11684      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
11685      ;;
11686    esac
11687done
11688
11689# Double-quote double-evaled strings.
11690for var in reload_cmds \
11691old_postinstall_cmds \
11692old_postuninstall_cmds \
11693old_archive_cmds \
11694extract_expsyms_cmds \
11695old_archive_from_new_cmds \
11696old_archive_from_expsyms_cmds \
11697archive_cmds \
11698archive_expsym_cmds \
11699module_cmds \
11700module_expsym_cmds \
11701export_symbols_cmds \
11702prelink_cmds \
11703postinstall_cmds \
11704postuninstall_cmds \
11705finish_cmds \
11706sys_lib_search_path_spec \
11707sys_lib_dlsearch_path_spec; do
11708    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
11709    *[\\\\\\\`\\"\\\$]*)
11710      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
11711      ;;
11712    *)
11713      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
11714      ;;
11715    esac
11716done
11717
11718ac_aux_dir='$ac_aux_dir'
11719xsi_shell='$xsi_shell'
11720lt_shell_append='$lt_shell_append'
11721
11722# See if we are running on zsh, and set the options which allow our
11723# commands through without removal of \ escapes INIT.
11724if test -n "\${ZSH_VERSION+set}" ; then
11725   setopt NO_GLOB_SUBST
11726fi
11727
11728
11729    PACKAGE='$PACKAGE'
11730    VERSION='$VERSION'
11731    TIMESTAMP='$TIMESTAMP'
11732    RM='$RM'
11733    ofile='$ofile'
11734
11735
11736
11737
11738_ACEOF
11739
11740cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11741
11742# Handling of arguments.
11743for ac_config_target in $ac_config_targets
11744do
11745  case $ac_config_target in
11746    "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
11747    "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
11748    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
11749
11750  *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
11751  esac
11752done
11753
11754
11755# If the user did not use the arguments to specify the items to instantiate,
11756# then the envvar interface is used.  Set only those that are not.
11757# We use the long form for the default assignment because of an extremely
11758# bizarre bug on SunOS 4.1.3.
11759if $ac_need_defaults; then
11760  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
11761  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
11762fi
11763
11764# Have a temporary directory for convenience.  Make it in the build tree
11765# simply because there is no reason against having it here, and in addition,
11766# creating and moving files from /tmp can sometimes cause problems.
11767# Hook for its removal unless debugging.
11768# Note that there is a small window in which the directory will not be cleaned:
11769# after its creation but before its name has been assigned to `$tmp'.
11770$debug ||
11771{
11772  tmp=
11773  trap 'exit_status=$?
11774  { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
11775' 0
11776  trap 'as_fn_exit 1' 1 2 13 15
11777}
11778# Create a (secure) tmp directory for tmp files.
11779
11780{
11781  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
11782  test -n "$tmp" && test -d "$tmp"
11783}  ||
11784{
11785  tmp=./conf$$-$RANDOM
11786  (umask 077 && mkdir "$tmp")
11787} || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
11788
11789# Set up the scripts for CONFIG_FILES section.
11790# No need to generate them if there are no CONFIG_FILES.
11791# This happens for instance with `./config.status config.h'.
11792if test -n "$CONFIG_FILES"; then
11793
11794
11795ac_cr=`echo X | tr X '\015'`
11796# On cygwin, bash can eat \r inside `` if the user requested igncr.
11797# But we know of no other shell where ac_cr would be empty at this
11798# point, so we can use a bashism as a fallback.
11799if test "x$ac_cr" = x; then
11800  eval ac_cr=\$\'\\r\'
11801fi
11802ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
11803if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
11804  ac_cs_awk_cr='\r'
11805else
11806  ac_cs_awk_cr=$ac_cr
11807fi
11808
11809echo 'BEGIN {' >"$tmp/subs1.awk" &&
11810_ACEOF
11811
11812
11813{
11814  echo "cat >conf$$subs.awk <<_ACEOF" &&
11815  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
11816  echo "_ACEOF"
11817} >conf$$subs.sh ||
11818  as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
11819ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
11820ac_delim='%!_!# '
11821for ac_last_try in false false false false false :; do
11822  . ./conf$$subs.sh ||
11823    as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
11824
11825  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
11826  if test $ac_delim_n = $ac_delim_num; then
11827    break
11828  elif $ac_last_try; then
11829    as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
11830  else
11831    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
11832  fi
11833done
11834rm -f conf$$subs.sh
11835
11836cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11837cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
11838_ACEOF
11839sed -n '
11840h
11841s/^/S["/; s/!.*/"]=/
11842p
11843g
11844s/^[^!]*!//
11845:repl
11846t repl
11847s/'"$ac_delim"'$//
11848t delim
11849:nl
11850h
11851s/\(.\{148\}\).*/\1/
11852t more1
11853s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
11854p
11855n
11856b repl
11857:more1
11858s/["\\]/\\&/g; s/^/"/; s/$/"\\/
11859p
11860g
11861s/.\{148\}//
11862t nl
11863:delim
11864h
11865s/\(.\{148\}\).*/\1/
11866t more2
11867s/["\\]/\\&/g; s/^/"/; s/$/"/
11868p
11869b
11870:more2
11871s/["\\]/\\&/g; s/^/"/; s/$/"\\/
11872p
11873g
11874s/.\{148\}//
11875t delim
11876' <conf$$subs.awk | sed '
11877/^[^""]/{
11878  N
11879  s/\n//
11880}
11881' >>$CONFIG_STATUS || ac_write_fail=1
11882rm -f conf$$subs.awk
11883cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11884_ACAWK
11885cat >>"\$tmp/subs1.awk" <<_ACAWK &&
11886  for (key in S) S_is_set[key] = 1
11887  FS = ""
11888
11889}
11890{
11891  line = $ 0
11892  nfields = split(line, field, "@")
11893  substed = 0
11894  len = length(field[1])
11895  for (i = 2; i < nfields; i++) {
11896    key = field[i]
11897    keylen = length(key)
11898    if (S_is_set[key]) {
11899      value = S[key]
11900      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
11901      len += length(value) + length(field[++i])
11902      substed = 1
11903    } else
11904      len += 1 + keylen
11905  }
11906
11907  print line
11908}
11909
11910_ACAWK
11911_ACEOF
11912cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11913if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
11914  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
11915else
11916  cat
11917fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
11918  || as_fn_error "could not setup config files machinery" "$LINENO" 5
11919_ACEOF
11920
11921# VPATH may cause trouble with some makes, so we remove $(srcdir),
11922# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
11923# trailing colons and then remove the whole line if VPATH becomes empty
11924# (actually we leave an empty line to preserve line numbers).
11925if test "x$srcdir" = x.; then
11926  ac_vpsub='/^[	 ]*VPATH[	 ]*=/{
11927s/:*\$(srcdir):*/:/
11928s/:*\${srcdir}:*/:/
11929s/:*@srcdir@:*/:/
11930s/^\([^=]*=[	 ]*\):*/\1/
11931s/:*$//
11932s/^[^=]*=[	 ]*$//
11933}'
11934fi
11935
11936cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11937fi # test -n "$CONFIG_FILES"
11938
11939
11940eval set X "  :F $CONFIG_FILES      :C $CONFIG_COMMANDS"
11941shift
11942for ac_tag
11943do
11944  case $ac_tag in
11945  :[FHLC]) ac_mode=$ac_tag; continue;;
11946  esac
11947  case $ac_mode$ac_tag in
11948  :[FHL]*:*);;
11949  :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
11950  :[FH]-) ac_tag=-:-;;
11951  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
11952  esac
11953  ac_save_IFS=$IFS
11954  IFS=:
11955  set x $ac_tag
11956  IFS=$ac_save_IFS
11957  shift
11958  ac_file=$1
11959  shift
11960
11961  case $ac_mode in
11962  :L) ac_source=$1;;
11963  :[FH])
11964    ac_file_inputs=
11965    for ac_f
11966    do
11967      case $ac_f in
11968      -) ac_f="$tmp/stdin";;
11969      *) # Look for the file first in the build tree, then in the source tree
11970	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
11971	 # because $ac_f cannot contain `:'.
11972	 test -f "$ac_f" ||
11973	   case $ac_f in
11974	   [\\/$]*) false;;
11975	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
11976	   esac ||
11977	   as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
11978      esac
11979      case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
11980      as_fn_append ac_file_inputs " '$ac_f'"
11981    done
11982
11983    # Let's still pretend it is `configure' which instantiates (i.e., don't
11984    # use $as_me), people would be surprised to read:
11985    #    /* config.h.  Generated by config.status.  */
11986    configure_input='Generated from '`
11987	  $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
11988	`' by configure.'
11989    if test x"$ac_file" != x-; then
11990      configure_input="$ac_file.  $configure_input"
11991      { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
11992$as_echo "$as_me: creating $ac_file" >&6;}
11993    fi
11994    # Neutralize special characters interpreted by sed in replacement strings.
11995    case $configure_input in #(
11996    *\&* | *\|* | *\\* )
11997       ac_sed_conf_input=`$as_echo "$configure_input" |
11998       sed 's/[\\\\&|]/\\\\&/g'`;; #(
11999    *) ac_sed_conf_input=$configure_input;;
12000    esac
12001
12002    case $ac_tag in
12003    *:-:* | *:-) cat >"$tmp/stdin" \
12004      || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
12005    esac
12006    ;;
12007  esac
12008
12009  ac_dir=`$as_dirname -- "$ac_file" ||
12010$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12011	 X"$ac_file" : 'X\(//\)[^/]' \| \
12012	 X"$ac_file" : 'X\(//\)$' \| \
12013	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
12014$as_echo X"$ac_file" |
12015    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12016	    s//\1/
12017	    q
12018	  }
12019	  /^X\(\/\/\)[^/].*/{
12020	    s//\1/
12021	    q
12022	  }
12023	  /^X\(\/\/\)$/{
12024	    s//\1/
12025	    q
12026	  }
12027	  /^X\(\/\).*/{
12028	    s//\1/
12029	    q
12030	  }
12031	  s/.*/./; q'`
12032  as_dir="$ac_dir"; as_fn_mkdir_p
12033  ac_builddir=.
12034
12035case "$ac_dir" in
12036.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
12037*)
12038  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
12039  # A ".." for each directory in $ac_dir_suffix.
12040  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
12041  case $ac_top_builddir_sub in
12042  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
12043  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
12044  esac ;;
12045esac
12046ac_abs_top_builddir=$ac_pwd
12047ac_abs_builddir=$ac_pwd$ac_dir_suffix
12048# for backward compatibility:
12049ac_top_builddir=$ac_top_build_prefix
12050
12051case $srcdir in
12052  .)  # We are building in place.
12053    ac_srcdir=.
12054    ac_top_srcdir=$ac_top_builddir_sub
12055    ac_abs_top_srcdir=$ac_pwd ;;
12056  [\\/]* | ?:[\\/]* )  # Absolute name.
12057    ac_srcdir=$srcdir$ac_dir_suffix;
12058    ac_top_srcdir=$srcdir
12059    ac_abs_top_srcdir=$srcdir ;;
12060  *) # Relative name.
12061    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
12062    ac_top_srcdir=$ac_top_build_prefix$srcdir
12063    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
12064esac
12065ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
12066
12067
12068  case $ac_mode in
12069  :F)
12070  #
12071  # CONFIG_FILE
12072  #
12073
12074  case $INSTALL in
12075  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
12076  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
12077  esac
12078  ac_MKDIR_P=$MKDIR_P
12079  case $MKDIR_P in
12080  [\\/$]* | ?:[\\/]* ) ;;
12081  */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
12082  esac
12083_ACEOF
12084
12085cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12086# If the template does not know about datarootdir, expand it.
12087# FIXME: This hack should be removed a few years after 2.60.
12088ac_datarootdir_hack=; ac_datarootdir_seen=
12089ac_sed_dataroot='
12090/datarootdir/ {
12091  p
12092  q
12093}
12094/@datadir@/p
12095/@docdir@/p
12096/@infodir@/p
12097/@localedir@/p
12098/@mandir@/p'
12099case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
12100*datarootdir*) ac_datarootdir_seen=yes;;
12101*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
12102  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
12103$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
12104_ACEOF
12105cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12106  ac_datarootdir_hack='
12107  s&@datadir@&$datadir&g
12108  s&@docdir@&$docdir&g
12109  s&@infodir@&$infodir&g
12110  s&@localedir@&$localedir&g
12111  s&@mandir@&$mandir&g
12112  s&\\\${datarootdir}&$datarootdir&g' ;;
12113esac
12114_ACEOF
12115
12116# Neutralize VPATH when `$srcdir' = `.'.
12117# Shell code in configure.ac might set extrasub.
12118# FIXME: do we really want to maintain this feature?
12119cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12120ac_sed_extra="$ac_vpsub
12121$extrasub
12122_ACEOF
12123cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12124:t
12125/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
12126s|@configure_input@|$ac_sed_conf_input|;t t
12127s&@top_builddir@&$ac_top_builddir_sub&;t t
12128s&@top_build_prefix@&$ac_top_build_prefix&;t t
12129s&@srcdir@&$ac_srcdir&;t t
12130s&@abs_srcdir@&$ac_abs_srcdir&;t t
12131s&@top_srcdir@&$ac_top_srcdir&;t t
12132s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
12133s&@builddir@&$ac_builddir&;t t
12134s&@abs_builddir@&$ac_abs_builddir&;t t
12135s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
12136s&@INSTALL@&$ac_INSTALL&;t t
12137s&@MKDIR_P@&$ac_MKDIR_P&;t t
12138$ac_datarootdir_hack
12139"
12140eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
12141  || as_fn_error "could not create $ac_file" "$LINENO" 5
12142
12143test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
12144  { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
12145  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
12146  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
12147which seems to be undefined.  Please make sure it is defined." >&5
12148$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
12149which seems to be undefined.  Please make sure it is defined." >&2;}
12150
12151  rm -f "$tmp/stdin"
12152  case $ac_file in
12153  -) cat "$tmp/out" && rm -f "$tmp/out";;
12154  *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
12155  esac \
12156  || as_fn_error "could not create $ac_file" "$LINENO" 5
12157 ;;
12158
12159
12160  :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
12161$as_echo "$as_me: executing $ac_file commands" >&6;}
12162 ;;
12163  esac
12164
12165
12166  case $ac_file$ac_mode in
12167    "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
12168  # Autoconf 2.62 quotes --file arguments for eval, but not when files
12169  # are listed without --file.  Let's play safe and only enable the eval
12170  # if we detect the quoting.
12171  case $CONFIG_FILES in
12172  *\'*) eval set x "$CONFIG_FILES" ;;
12173  *)   set x $CONFIG_FILES ;;
12174  esac
12175  shift
12176  for mf
12177  do
12178    # Strip MF so we end up with the name of the file.
12179    mf=`echo "$mf" | sed -e 's/:.*$//'`
12180    # Check whether this is an Automake generated Makefile or not.
12181    # We used to match only the files named `Makefile.in', but
12182    # some people rename them; so instead we look at the file content.
12183    # Grep'ing the first line is not enough: some people post-process
12184    # each Makefile.in and add a new line on top of each file to say so.
12185    # Grep'ing the whole file is not good either: AIX grep has a line
12186    # limit of 2048, but all sed's we know have understand at least 4000.
12187    if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
12188      dirpart=`$as_dirname -- "$mf" ||
12189$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12190	 X"$mf" : 'X\(//\)[^/]' \| \
12191	 X"$mf" : 'X\(//\)$' \| \
12192	 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
12193$as_echo X"$mf" |
12194    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12195	    s//\1/
12196	    q
12197	  }
12198	  /^X\(\/\/\)[^/].*/{
12199	    s//\1/
12200	    q
12201	  }
12202	  /^X\(\/\/\)$/{
12203	    s//\1/
12204	    q
12205	  }
12206	  /^X\(\/\).*/{
12207	    s//\1/
12208	    q
12209	  }
12210	  s/.*/./; q'`
12211    else
12212      continue
12213    fi
12214    # Extract the definition of DEPDIR, am__include, and am__quote
12215    # from the Makefile without running `make'.
12216    DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
12217    test -z "$DEPDIR" && continue
12218    am__include=`sed -n 's/^am__include = //p' < "$mf"`
12219    test -z "am__include" && continue
12220    am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
12221    # When using ansi2knr, U may be empty or an underscore; expand it
12222    U=`sed -n 's/^U = //p' < "$mf"`
12223    # Find all dependency output files, they are included files with
12224    # $(DEPDIR) in their names.  We invoke sed twice because it is the
12225    # simplest approach to changing $(DEPDIR) to its actual value in the
12226    # expansion.
12227    for file in `sed -n "
12228      s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
12229	 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
12230      # Make sure the directory exists.
12231      test -f "$dirpart/$file" && continue
12232      fdir=`$as_dirname -- "$file" ||
12233$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12234	 X"$file" : 'X\(//\)[^/]' \| \
12235	 X"$file" : 'X\(//\)$' \| \
12236	 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
12237$as_echo X"$file" |
12238    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12239	    s//\1/
12240	    q
12241	  }
12242	  /^X\(\/\/\)[^/].*/{
12243	    s//\1/
12244	    q
12245	  }
12246	  /^X\(\/\/\)$/{
12247	    s//\1/
12248	    q
12249	  }
12250	  /^X\(\/\).*/{
12251	    s//\1/
12252	    q
12253	  }
12254	  s/.*/./; q'`
12255      as_dir=$dirpart/$fdir; as_fn_mkdir_p
12256      # echo "creating $dirpart/$file"
12257      echo '# dummy' > "$dirpart/$file"
12258    done
12259  done
12260}
12261 ;;
12262    "libtool":C)
12263
12264    # See if we are running on zsh, and set the options which allow our
12265    # commands through without removal of \ escapes.
12266    if test -n "${ZSH_VERSION+set}" ; then
12267      setopt NO_GLOB_SUBST
12268    fi
12269
12270    cfgfile="${ofile}T"
12271    trap "$RM \"$cfgfile\"; exit 1" 1 2 15
12272    $RM "$cfgfile"
12273
12274    cat <<_LT_EOF >> "$cfgfile"
12275#! $SHELL
12276
12277# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
12278# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
12279# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
12280# NOTE: Changes made to this file will be lost: look at ltmain.sh.
12281#
12282#   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
12283#                 2006, 2007, 2008, 2009 Free Software Foundation, Inc.
12284#   Written by Gordon Matzigkeit, 1996
12285#
12286#   This file is part of GNU Libtool.
12287#
12288# GNU Libtool is free software; you can redistribute it and/or
12289# modify it under the terms of the GNU General Public License as
12290# published by the Free Software Foundation; either version 2 of
12291# the License, or (at your option) any later version.
12292#
12293# As a special exception to the GNU General Public License,
12294# if you distribute this file as part of a program or library that
12295# is built using GNU Libtool, you may include this file under the
12296# same distribution terms that you use for the rest of that program.
12297#
12298# GNU Libtool is distributed in the hope that it will be useful,
12299# but WITHOUT ANY WARRANTY; without even the implied warranty of
12300# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
12301# GNU General Public License for more details.
12302#
12303# You should have received a copy of the GNU General Public License
12304# along with GNU Libtool; see the file COPYING.  If not, a copy
12305# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
12306# obtained by writing to the Free Software Foundation, Inc.,
12307# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
12308
12309
12310# The names of the tagged configurations supported by this script.
12311available_tags=""
12312
12313# ### BEGIN LIBTOOL CONFIG
12314
12315# Which release of libtool.m4 was used?
12316macro_version=$macro_version
12317macro_revision=$macro_revision
12318
12319# Whether or not to build shared libraries.
12320build_libtool_libs=$enable_shared
12321
12322# Whether or not to build static libraries.
12323build_old_libs=$enable_static
12324
12325# What type of objects to build.
12326pic_mode=$pic_mode
12327
12328# Whether or not to optimize for fast installation.
12329fast_install=$enable_fast_install
12330
12331# Shell to use when invoking shell scripts.
12332SHELL=$lt_SHELL
12333
12334# An echo program that protects backslashes.
12335ECHO=$lt_ECHO
12336
12337# The host system.
12338host_alias=$host_alias
12339host=$host
12340host_os=$host_os
12341
12342# The build system.
12343build_alias=$build_alias
12344build=$build
12345build_os=$build_os
12346
12347# A sed program that does not truncate output.
12348SED=$lt_SED
12349
12350# Sed that helps us avoid accidentally triggering echo(1) options like -n.
12351Xsed="\$SED -e 1s/^X//"
12352
12353# A grep program that handles long lines.
12354GREP=$lt_GREP
12355
12356# An ERE matcher.
12357EGREP=$lt_EGREP
12358
12359# A literal string matcher.
12360FGREP=$lt_FGREP
12361
12362# A BSD- or MS-compatible name lister.
12363NM=$lt_NM
12364
12365# Whether we need soft or hard links.
12366LN_S=$lt_LN_S
12367
12368# What is the maximum length of a command?
12369max_cmd_len=$max_cmd_len
12370
12371# Object file suffix (normally "o").
12372objext=$ac_objext
12373
12374# Executable file suffix (normally "").
12375exeext=$exeext
12376
12377# whether the shell understands "unset".
12378lt_unset=$lt_unset
12379
12380# turn spaces into newlines.
12381SP2NL=$lt_lt_SP2NL
12382
12383# turn newlines into spaces.
12384NL2SP=$lt_lt_NL2SP
12385
12386# An object symbol dumper.
12387OBJDUMP=$lt_OBJDUMP
12388
12389# Method to check whether dependent libraries are shared objects.
12390deplibs_check_method=$lt_deplibs_check_method
12391
12392# Command to use when deplibs_check_method == "file_magic".
12393file_magic_cmd=$lt_file_magic_cmd
12394
12395# The archiver.
12396AR=$lt_AR
12397AR_FLAGS=$lt_AR_FLAGS
12398
12399# A symbol stripping program.
12400STRIP=$lt_STRIP
12401
12402# Commands used to install an old-style archive.
12403RANLIB=$lt_RANLIB
12404old_postinstall_cmds=$lt_old_postinstall_cmds
12405old_postuninstall_cmds=$lt_old_postuninstall_cmds
12406
12407# Whether to use a lock for old archive extraction.
12408lock_old_archive_extraction=$lock_old_archive_extraction
12409
12410# A C compiler.
12411LTCC=$lt_CC
12412
12413# LTCC compiler flags.
12414LTCFLAGS=$lt_CFLAGS
12415
12416# Take the output of nm and produce a listing of raw symbols and C names.
12417global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
12418
12419# Transform the output of nm in a proper C declaration.
12420global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
12421
12422# Transform the output of nm in a C name address pair.
12423global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
12424
12425# Transform the output of nm in a C name address pair when lib prefix is needed.
12426global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
12427
12428# The name of the directory that contains temporary libtool files.
12429objdir=$objdir
12430
12431# Used to examine libraries when file_magic_cmd begins with "file".
12432MAGIC_CMD=$MAGIC_CMD
12433
12434# Must we lock files when doing compilation?
12435need_locks=$lt_need_locks
12436
12437# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
12438DSYMUTIL=$lt_DSYMUTIL
12439
12440# Tool to change global to local symbols on Mac OS X.
12441NMEDIT=$lt_NMEDIT
12442
12443# Tool to manipulate fat objects and archives on Mac OS X.
12444LIPO=$lt_LIPO
12445
12446# ldd/readelf like tool for Mach-O binaries on Mac OS X.
12447OTOOL=$lt_OTOOL
12448
12449# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
12450OTOOL64=$lt_OTOOL64
12451
12452# Old archive suffix (normally "a").
12453libext=$libext
12454
12455# Shared library suffix (normally ".so").
12456shrext_cmds=$lt_shrext_cmds
12457
12458# The commands to extract the exported symbol list from a shared archive.
12459extract_expsyms_cmds=$lt_extract_expsyms_cmds
12460
12461# Variables whose values should be saved in libtool wrapper scripts and
12462# restored at link time.
12463variables_saved_for_relink=$lt_variables_saved_for_relink
12464
12465# Do we need the "lib" prefix for modules?
12466need_lib_prefix=$need_lib_prefix
12467
12468# Do we need a version for libraries?
12469need_version=$need_version
12470
12471# Library versioning type.
12472version_type=$version_type
12473
12474# Shared library runtime path variable.
12475runpath_var=$runpath_var
12476
12477# Shared library path variable.
12478shlibpath_var=$shlibpath_var
12479
12480# Is shlibpath searched before the hard-coded library search path?
12481shlibpath_overrides_runpath=$shlibpath_overrides_runpath
12482
12483# Format of library name prefix.
12484libname_spec=$lt_libname_spec
12485
12486# List of archive names.  First name is the real one, the rest are links.
12487# The last name is the one that the linker finds with -lNAME
12488library_names_spec=$lt_library_names_spec
12489
12490# The coded name of the library, if different from the real name.
12491soname_spec=$lt_soname_spec
12492
12493# Permission mode override for installation of shared libraries.
12494install_override_mode=$lt_install_override_mode
12495
12496# Command to use after installation of a shared archive.
12497postinstall_cmds=$lt_postinstall_cmds
12498
12499# Command to use after uninstallation of a shared archive.
12500postuninstall_cmds=$lt_postuninstall_cmds
12501
12502# Commands used to finish a libtool library installation in a directory.
12503finish_cmds=$lt_finish_cmds
12504
12505# As "finish_cmds", except a single script fragment to be evaled but
12506# not shown.
12507finish_eval=$lt_finish_eval
12508
12509# Whether we should hardcode library paths into libraries.
12510hardcode_into_libs=$hardcode_into_libs
12511
12512# Compile-time system search path for libraries.
12513sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
12514
12515# Run-time system search path for libraries.
12516sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
12517
12518# Whether dlopen is supported.
12519dlopen_support=$enable_dlopen
12520
12521# Whether dlopen of programs is supported.
12522dlopen_self=$enable_dlopen_self
12523
12524# Whether dlopen of statically linked programs is supported.
12525dlopen_self_static=$enable_dlopen_self_static
12526
12527# Commands to strip libraries.
12528old_striplib=$lt_old_striplib
12529striplib=$lt_striplib
12530
12531
12532# The linker used to build libraries.
12533LD=$lt_LD
12534
12535# How to create reloadable object files.
12536reload_flag=$lt_reload_flag
12537reload_cmds=$lt_reload_cmds
12538
12539# Commands used to build an old-style archive.
12540old_archive_cmds=$lt_old_archive_cmds
12541
12542# A language specific compiler.
12543CC=$lt_compiler
12544
12545# Is the compiler the GNU compiler?
12546with_gcc=$GCC
12547
12548# Compiler flag to turn off builtin functions.
12549no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
12550
12551# How to pass a linker flag through the compiler.
12552wl=$lt_lt_prog_compiler_wl
12553
12554# Additional compiler flags for building library objects.
12555pic_flag=$lt_lt_prog_compiler_pic
12556
12557# Compiler flag to prevent dynamic linking.
12558link_static_flag=$lt_lt_prog_compiler_static
12559
12560# Does compiler simultaneously support -c and -o options?
12561compiler_c_o=$lt_lt_cv_prog_compiler_c_o
12562
12563# Whether or not to add -lc for building shared libraries.
12564build_libtool_need_lc=$archive_cmds_need_lc
12565
12566# Whether or not to disallow shared libs when runtime libs are static.
12567allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
12568
12569# Compiler flag to allow reflexive dlopens.
12570export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
12571
12572# Compiler flag to generate shared objects directly from archives.
12573whole_archive_flag_spec=$lt_whole_archive_flag_spec
12574
12575# Whether the compiler copes with passing no objects directly.
12576compiler_needs_object=$lt_compiler_needs_object
12577
12578# Create an old-style archive from a shared archive.
12579old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
12580
12581# Create a temporary old-style archive to link instead of a shared archive.
12582old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
12583
12584# Commands used to build a shared archive.
12585archive_cmds=$lt_archive_cmds
12586archive_expsym_cmds=$lt_archive_expsym_cmds
12587
12588# Commands used to build a loadable module if different from building
12589# a shared archive.
12590module_cmds=$lt_module_cmds
12591module_expsym_cmds=$lt_module_expsym_cmds
12592
12593# Whether we are building with GNU ld or not.
12594with_gnu_ld=$lt_with_gnu_ld
12595
12596# Flag that allows shared libraries with undefined symbols to be built.
12597allow_undefined_flag=$lt_allow_undefined_flag
12598
12599# Flag that enforces no undefined symbols.
12600no_undefined_flag=$lt_no_undefined_flag
12601
12602# Flag to hardcode \$libdir into a binary during linking.
12603# This must work even if \$libdir does not exist
12604hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
12605
12606# If ld is used when linking, flag to hardcode \$libdir into a binary
12607# during linking.  This must work even if \$libdir does not exist.
12608hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
12609
12610# Whether we need a single "-rpath" flag with a separated argument.
12611hardcode_libdir_separator=$lt_hardcode_libdir_separator
12612
12613# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
12614# DIR into the resulting binary.
12615hardcode_direct=$hardcode_direct
12616
12617# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
12618# DIR into the resulting binary and the resulting library dependency is
12619# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
12620# library is relocated.
12621hardcode_direct_absolute=$hardcode_direct_absolute
12622
12623# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
12624# into the resulting binary.
12625hardcode_minus_L=$hardcode_minus_L
12626
12627# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
12628# into the resulting binary.
12629hardcode_shlibpath_var=$hardcode_shlibpath_var
12630
12631# Set to "yes" if building a shared library automatically hardcodes DIR
12632# into the library and all subsequent libraries and executables linked
12633# against it.
12634hardcode_automatic=$hardcode_automatic
12635
12636# Set to yes if linker adds runtime paths of dependent libraries
12637# to runtime path list.
12638inherit_rpath=$inherit_rpath
12639
12640# Whether libtool must link a program against all its dependency libraries.
12641link_all_deplibs=$link_all_deplibs
12642
12643# Fix the shell variable \$srcfile for the compiler.
12644fix_srcfile_path=$lt_fix_srcfile_path
12645
12646# Set to "yes" if exported symbols are required.
12647always_export_symbols=$always_export_symbols
12648
12649# The commands to list exported symbols.
12650export_symbols_cmds=$lt_export_symbols_cmds
12651
12652# Symbols that should not be listed in the preloaded symbols.
12653exclude_expsyms=$lt_exclude_expsyms
12654
12655# Symbols that must always be exported.
12656include_expsyms=$lt_include_expsyms
12657
12658# Commands necessary for linking programs (against libraries) with templates.
12659prelink_cmds=$lt_prelink_cmds
12660
12661# Specify filename containing input files.
12662file_list_spec=$lt_file_list_spec
12663
12664# How to hardcode a shared library path into an executable.
12665hardcode_action=$hardcode_action
12666
12667# ### END LIBTOOL CONFIG
12668
12669_LT_EOF
12670
12671  case $host_os in
12672  aix3*)
12673    cat <<\_LT_EOF >> "$cfgfile"
12674# AIX sometimes has problems with the GCC collect2 program.  For some
12675# reason, if we set the COLLECT_NAMES environment variable, the problems
12676# vanish in a puff of smoke.
12677if test "X${COLLECT_NAMES+set}" != Xset; then
12678  COLLECT_NAMES=
12679  export COLLECT_NAMES
12680fi
12681_LT_EOF
12682    ;;
12683  esac
12684
12685
12686ltmain="$ac_aux_dir/ltmain.sh"
12687
12688
12689  # We use sed instead of cat because bash on DJGPP gets confused if
12690  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
12691  # text mode, it properly converts lines to CR/LF.  This bash problem
12692  # is reportedly fixed, but why not run on old versions too?
12693  sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
12694    || (rm -f "$cfgfile"; exit 1)
12695
12696  case $xsi_shell in
12697  yes)
12698    cat << \_LT_EOF >> "$cfgfile"
12699
12700# func_dirname file append nondir_replacement
12701# Compute the dirname of FILE.  If nonempty, add APPEND to the result,
12702# otherwise set result to NONDIR_REPLACEMENT.
12703func_dirname ()
12704{
12705  case ${1} in
12706    */*) func_dirname_result="${1%/*}${2}" ;;
12707    *  ) func_dirname_result="${3}" ;;
12708  esac
12709}
12710
12711# func_basename file
12712func_basename ()
12713{
12714  func_basename_result="${1##*/}"
12715}
12716
12717# func_dirname_and_basename file append nondir_replacement
12718# perform func_basename and func_dirname in a single function
12719# call:
12720#   dirname:  Compute the dirname of FILE.  If nonempty,
12721#             add APPEND to the result, otherwise set result
12722#             to NONDIR_REPLACEMENT.
12723#             value returned in "$func_dirname_result"
12724#   basename: Compute filename of FILE.
12725#             value retuned in "$func_basename_result"
12726# Implementation must be kept synchronized with func_dirname
12727# and func_basename. For efficiency, we do not delegate to
12728# those functions but instead duplicate the functionality here.
12729func_dirname_and_basename ()
12730{
12731  case ${1} in
12732    */*) func_dirname_result="${1%/*}${2}" ;;
12733    *  ) func_dirname_result="${3}" ;;
12734  esac
12735  func_basename_result="${1##*/}"
12736}
12737
12738# func_stripname prefix suffix name
12739# strip PREFIX and SUFFIX off of NAME.
12740# PREFIX and SUFFIX must not contain globbing or regex special
12741# characters, hashes, percent signs, but SUFFIX may contain a leading
12742# dot (in which case that matches only a dot).
12743func_stripname ()
12744{
12745  # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
12746  # positional parameters, so assign one to ordinary parameter first.
12747  func_stripname_result=${3}
12748  func_stripname_result=${func_stripname_result#"${1}"}
12749  func_stripname_result=${func_stripname_result%"${2}"}
12750}
12751
12752# func_opt_split
12753func_opt_split ()
12754{
12755  func_opt_split_opt=${1%%=*}
12756  func_opt_split_arg=${1#*=}
12757}
12758
12759# func_lo2o object
12760func_lo2o ()
12761{
12762  case ${1} in
12763    *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
12764    *)    func_lo2o_result=${1} ;;
12765  esac
12766}
12767
12768# func_xform libobj-or-source
12769func_xform ()
12770{
12771  func_xform_result=${1%.*}.lo
12772}
12773
12774# func_arith arithmetic-term...
12775func_arith ()
12776{
12777  func_arith_result=$(( $* ))
12778}
12779
12780# func_len string
12781# STRING may not start with a hyphen.
12782func_len ()
12783{
12784  func_len_result=${#1}
12785}
12786
12787_LT_EOF
12788    ;;
12789  *) # Bourne compatible functions.
12790    cat << \_LT_EOF >> "$cfgfile"
12791
12792# func_dirname file append nondir_replacement
12793# Compute the dirname of FILE.  If nonempty, add APPEND to the result,
12794# otherwise set result to NONDIR_REPLACEMENT.
12795func_dirname ()
12796{
12797  # Extract subdirectory from the argument.
12798  func_dirname_result=`$ECHO "${1}" | $SED "$dirname"`
12799  if test "X$func_dirname_result" = "X${1}"; then
12800    func_dirname_result="${3}"
12801  else
12802    func_dirname_result="$func_dirname_result${2}"
12803  fi
12804}
12805
12806# func_basename file
12807func_basename ()
12808{
12809  func_basename_result=`$ECHO "${1}" | $SED "$basename"`
12810}
12811
12812
12813# func_stripname prefix suffix name
12814# strip PREFIX and SUFFIX off of NAME.
12815# PREFIX and SUFFIX must not contain globbing or regex special
12816# characters, hashes, percent signs, but SUFFIX may contain a leading
12817# dot (in which case that matches only a dot).
12818# func_strip_suffix prefix name
12819func_stripname ()
12820{
12821  case ${2} in
12822    .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
12823    *)  func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
12824  esac
12825}
12826
12827# sed scripts:
12828my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
12829my_sed_long_arg='1s/^-[^=]*=//'
12830
12831# func_opt_split
12832func_opt_split ()
12833{
12834  func_opt_split_opt=`$ECHO "${1}" | $SED "$my_sed_long_opt"`
12835  func_opt_split_arg=`$ECHO "${1}" | $SED "$my_sed_long_arg"`
12836}
12837
12838# func_lo2o object
12839func_lo2o ()
12840{
12841  func_lo2o_result=`$ECHO "${1}" | $SED "$lo2o"`
12842}
12843
12844# func_xform libobj-or-source
12845func_xform ()
12846{
12847  func_xform_result=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'`
12848}
12849
12850# func_arith arithmetic-term...
12851func_arith ()
12852{
12853  func_arith_result=`expr "$@"`
12854}
12855
12856# func_len string
12857# STRING may not start with a hyphen.
12858func_len ()
12859{
12860  func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
12861}
12862
12863_LT_EOF
12864esac
12865
12866case $lt_shell_append in
12867  yes)
12868    cat << \_LT_EOF >> "$cfgfile"
12869
12870# func_append var value
12871# Append VALUE to the end of shell variable VAR.
12872func_append ()
12873{
12874  eval "$1+=\$2"
12875}
12876_LT_EOF
12877    ;;
12878  *)
12879    cat << \_LT_EOF >> "$cfgfile"
12880
12881# func_append var value
12882# Append VALUE to the end of shell variable VAR.
12883func_append ()
12884{
12885  eval "$1=\$$1\$2"
12886}
12887
12888_LT_EOF
12889    ;;
12890  esac
12891
12892
12893  sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
12894    || (rm -f "$cfgfile"; exit 1)
12895
12896  mv -f "$cfgfile" "$ofile" ||
12897    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
12898  chmod +x "$ofile"
12899
12900 ;;
12901
12902  esac
12903done # for ac_tag
12904
12905
12906as_fn_exit 0
12907_ACEOF
12908ac_clean_files=$ac_clean_files_save
12909
12910test $ac_write_fail = 0 ||
12911  as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
12912
12913
12914# configure is writing to config.log, and then calls config.status.
12915# config.status does its own redirection, appending to config.log.
12916# Unfortunately, on DOS this fails, as config.log is still kept open
12917# by configure, so config.status won't be able to write to it; its
12918# output is simply discarded.  So we exec the FD to /dev/null,
12919# effectively closing config.log, so it can be properly (re)opened and
12920# appended to by config.status.  When coming back to configure, we
12921# need to make the FD available again.
12922if test "$no_create" != yes; then
12923  ac_cs_success=:
12924  ac_config_status_args=
12925  test "$silent" = yes &&
12926    ac_config_status_args="$ac_config_status_args --quiet"
12927  exec 5>/dev/null
12928  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
12929  exec 5>>config.log
12930  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
12931  # would make configure fail if this is the last instruction.
12932  $ac_cs_success || as_fn_exit $?
12933fi
12934if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
12935  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
12936$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
12937fi
12938
12939