1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.64.
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=
558PACKAGE_TARNAME=
559PACKAGE_VERSION=
560PACKAGE_STRING=
561PACKAGE_BUGREPORT=
562PACKAGE_URL=
563
564ac_unique_file="zlib.h"
565# Factoring default headers for most tests.
566ac_includes_default="\
567#include <stdio.h>
568#ifdef HAVE_SYS_TYPES_H
569# include <sys/types.h>
570#endif
571#ifdef HAVE_SYS_STAT_H
572# include <sys/stat.h>
573#endif
574#ifdef STDC_HEADERS
575# include <stdlib.h>
576# include <stddef.h>
577#else
578# ifdef HAVE_STDLIB_H
579#  include <stdlib.h>
580# endif
581#endif
582#ifdef HAVE_STRING_H
583# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
584#  include <memory.h>
585# endif
586# include <string.h>
587#endif
588#ifdef HAVE_STRINGS_H
589# include <strings.h>
590#endif
591#ifdef HAVE_INTTYPES_H
592# include <inttypes.h>
593#endif
594#ifdef HAVE_STDINT_H
595# include <stdint.h>
596#endif
597#ifdef HAVE_UNISTD_H
598# include <unistd.h>
599#endif"
600
601ac_subst_vars='am__EXEEXT_FALSE
602am__EXEEXT_TRUE
603LTLIBOBJS
604LIBOBJS
605PICFLAG
606TARGET_LIBRARY_FALSE
607TARGET_LIBRARY_TRUE
608toolexeclibdir
609toolexecdir
610target_all
611CPP
612OTOOL64
613OTOOL
614LIPO
615NMEDIT
616DSYMUTIL
617RANLIB
618AR
619OBJDUMP
620LN_S
621NM
622ac_ct_DUMPBIN
623DUMPBIN
624LD
625FGREP
626EGREP
627GREP
628SED
629LIBTOOL
630am__fastdepCC_FALSE
631am__fastdepCC_TRUE
632CCDEPMODE
633am__nodep
634AMDEPBACKSLASH
635AMDEP_FALSE
636AMDEP_TRUE
637am__quote
638am__include
639DEPDIR
640OBJEXT
641EXEEXT
642ac_ct_CC
643CPPFLAGS
644LDFLAGS
645CFLAGS
646CC
647COMPPATH
648MAINT
649MAINTAINER_MODE_FALSE
650MAINTAINER_MODE_TRUE
651am__untar
652am__tar
653AMTAR
654am__leading_dot
655SET_MAKE
656AWK
657mkdir_p
658MKDIR_P
659INSTALL_STRIP_PROGRAM
660STRIP
661install_sh
662MAKEINFO
663AUTOHEADER
664AUTOMAKE
665AUTOCONF
666ACLOCAL
667VERSION
668PACKAGE
669CYGPATH_W
670am__isrc
671INSTALL_DATA
672INSTALL_SCRIPT
673INSTALL_PROGRAM
674mkinstalldirs
675target_os
676target_vendor
677target_cpu
678target
679host_os
680host_vendor
681host_cpu
682host
683build_os
684build_vendor
685build_cpu
686build
687multi_basedir
688target_alias
689host_alias
690build_alias
691LIBS
692ECHO_T
693ECHO_N
694ECHO_C
695DEFS
696mandir
697localedir
698libdir
699psdir
700pdfdir
701dvidir
702htmldir
703infodir
704docdir
705oldincludedir
706includedir
707localstatedir
708sharedstatedir
709sysconfdir
710datadir
711datarootdir
712libexecdir
713sbindir
714bindir
715program_transform_name
716prefix
717exec_prefix
718PACKAGE_URL
719PACKAGE_BUGREPORT
720PACKAGE_STRING
721PACKAGE_VERSION
722PACKAGE_TARNAME
723PACKAGE_NAME
724PATH_SEPARATOR
725SHELL'
726ac_subst_files=''
727ac_user_opts='
728enable_option_checking
729enable_multilib
730enable_maintainer_mode
731with_target_subdir
732with_cross_host
733with_system_zlib
734enable_dependency_tracking
735enable_shared
736enable_static
737with_pic
738enable_fast_install
739with_gnu_ld
740enable_libtool_lock
741enable_host_shared
742'
743      ac_precious_vars='build_alias
744host_alias
745target_alias
746CPP
747CPPFLAGS'
748
749
750# Initialize some variables set by options.
751ac_init_help=
752ac_init_version=false
753ac_unrecognized_opts=
754ac_unrecognized_sep=
755# The variables have the same names as the options, with
756# dashes changed to underlines.
757cache_file=/dev/null
758exec_prefix=NONE
759no_create=
760no_recursion=
761prefix=NONE
762program_prefix=NONE
763program_suffix=NONE
764program_transform_name=s,x,x,
765silent=
766site=
767srcdir=
768verbose=
769x_includes=NONE
770x_libraries=NONE
771
772# Installation directory options.
773# These are left unexpanded so users can "make install exec_prefix=/foo"
774# and all the variables that are supposed to be based on exec_prefix
775# by default will actually change.
776# Use braces instead of parens because sh, perl, etc. also accept them.
777# (The list follows the same order as the GNU Coding Standards.)
778bindir='${exec_prefix}/bin'
779sbindir='${exec_prefix}/sbin'
780libexecdir='${exec_prefix}/libexec'
781datarootdir='${prefix}/share'
782datadir='${datarootdir}'
783sysconfdir='${prefix}/etc'
784sharedstatedir='${prefix}/com'
785localstatedir='${prefix}/var'
786includedir='${prefix}/include'
787oldincludedir='/usr/include'
788docdir='${datarootdir}/doc/${PACKAGE}'
789infodir='${datarootdir}/info'
790htmldir='${docdir}'
791dvidir='${docdir}'
792pdfdir='${docdir}'
793psdir='${docdir}'
794libdir='${exec_prefix}/lib'
795localedir='${datarootdir}/locale'
796mandir='${datarootdir}/man'
797
798ac_prev=
799ac_dashdash=
800for ac_option
801do
802  # If the previous option needs an argument, assign it.
803  if test -n "$ac_prev"; then
804    eval $ac_prev=\$ac_option
805    ac_prev=
806    continue
807  fi
808
809  case $ac_option in
810  *=*)	ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
811  *)	ac_optarg=yes ;;
812  esac
813
814  # Accept the important Cygnus configure options, so we can diagnose typos.
815
816  case $ac_dashdash$ac_option in
817  --)
818    ac_dashdash=yes ;;
819
820  -bindir | --bindir | --bindi | --bind | --bin | --bi)
821    ac_prev=bindir ;;
822  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
823    bindir=$ac_optarg ;;
824
825  -build | --build | --buil | --bui | --bu)
826    ac_prev=build_alias ;;
827  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
828    build_alias=$ac_optarg ;;
829
830  -cache-file | --cache-file | --cache-fil | --cache-fi \
831  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
832    ac_prev=cache_file ;;
833  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
834  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
835    cache_file=$ac_optarg ;;
836
837  --config-cache | -C)
838    cache_file=config.cache ;;
839
840  -datadir | --datadir | --datadi | --datad)
841    ac_prev=datadir ;;
842  -datadir=* | --datadir=* | --datadi=* | --datad=*)
843    datadir=$ac_optarg ;;
844
845  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
846  | --dataroo | --dataro | --datar)
847    ac_prev=datarootdir ;;
848  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
849  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
850    datarootdir=$ac_optarg ;;
851
852  -disable-* | --disable-*)
853    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
854    # Reject names that are not valid shell variable names.
855    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
856      as_fn_error "invalid feature name: $ac_useropt"
857    ac_useropt_orig=$ac_useropt
858    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
859    case $ac_user_opts in
860      *"
861"enable_$ac_useropt"
862"*) ;;
863      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
864	 ac_unrecognized_sep=', ';;
865    esac
866    eval enable_$ac_useropt=no ;;
867
868  -docdir | --docdir | --docdi | --doc | --do)
869    ac_prev=docdir ;;
870  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
871    docdir=$ac_optarg ;;
872
873  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
874    ac_prev=dvidir ;;
875  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
876    dvidir=$ac_optarg ;;
877
878  -enable-* | --enable-*)
879    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
880    # Reject names that are not valid shell variable names.
881    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
882      as_fn_error "invalid feature name: $ac_useropt"
883    ac_useropt_orig=$ac_useropt
884    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
885    case $ac_user_opts in
886      *"
887"enable_$ac_useropt"
888"*) ;;
889      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
890	 ac_unrecognized_sep=', ';;
891    esac
892    eval enable_$ac_useropt=\$ac_optarg ;;
893
894  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
895  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
896  | --exec | --exe | --ex)
897    ac_prev=exec_prefix ;;
898  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
899  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
900  | --exec=* | --exe=* | --ex=*)
901    exec_prefix=$ac_optarg ;;
902
903  -gas | --gas | --ga | --g)
904    # Obsolete; use --with-gas.
905    with_gas=yes ;;
906
907  -help | --help | --hel | --he | -h)
908    ac_init_help=long ;;
909  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
910    ac_init_help=recursive ;;
911  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
912    ac_init_help=short ;;
913
914  -host | --host | --hos | --ho)
915    ac_prev=host_alias ;;
916  -host=* | --host=* | --hos=* | --ho=*)
917    host_alias=$ac_optarg ;;
918
919  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
920    ac_prev=htmldir ;;
921  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
922  | --ht=*)
923    htmldir=$ac_optarg ;;
924
925  -includedir | --includedir | --includedi | --included | --include \
926  | --includ | --inclu | --incl | --inc)
927    ac_prev=includedir ;;
928  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
929  | --includ=* | --inclu=* | --incl=* | --inc=*)
930    includedir=$ac_optarg ;;
931
932  -infodir | --infodir | --infodi | --infod | --info | --inf)
933    ac_prev=infodir ;;
934  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
935    infodir=$ac_optarg ;;
936
937  -libdir | --libdir | --libdi | --libd)
938    ac_prev=libdir ;;
939  -libdir=* | --libdir=* | --libdi=* | --libd=*)
940    libdir=$ac_optarg ;;
941
942  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
943  | --libexe | --libex | --libe)
944    ac_prev=libexecdir ;;
945  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
946  | --libexe=* | --libex=* | --libe=*)
947    libexecdir=$ac_optarg ;;
948
949  -localedir | --localedir | --localedi | --localed | --locale)
950    ac_prev=localedir ;;
951  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
952    localedir=$ac_optarg ;;
953
954  -localstatedir | --localstatedir | --localstatedi | --localstated \
955  | --localstate | --localstat | --localsta | --localst | --locals)
956    ac_prev=localstatedir ;;
957  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
958  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
959    localstatedir=$ac_optarg ;;
960
961  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
962    ac_prev=mandir ;;
963  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
964    mandir=$ac_optarg ;;
965
966  -nfp | --nfp | --nf)
967    # Obsolete; use --without-fp.
968    with_fp=no ;;
969
970  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
971  | --no-cr | --no-c | -n)
972    no_create=yes ;;
973
974  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
975  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
976    no_recursion=yes ;;
977
978  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
979  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
980  | --oldin | --oldi | --old | --ol | --o)
981    ac_prev=oldincludedir ;;
982  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
983  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
984  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
985    oldincludedir=$ac_optarg ;;
986
987  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
988    ac_prev=prefix ;;
989  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
990    prefix=$ac_optarg ;;
991
992  -program-prefix | --program-prefix | --program-prefi | --program-pref \
993  | --program-pre | --program-pr | --program-p)
994    ac_prev=program_prefix ;;
995  -program-prefix=* | --program-prefix=* | --program-prefi=* \
996  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
997    program_prefix=$ac_optarg ;;
998
999  -program-suffix | --program-suffix | --program-suffi | --program-suff \
1000  | --program-suf | --program-su | --program-s)
1001    ac_prev=program_suffix ;;
1002  -program-suffix=* | --program-suffix=* | --program-suffi=* \
1003  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1004    program_suffix=$ac_optarg ;;
1005
1006  -program-transform-name | --program-transform-name \
1007  | --program-transform-nam | --program-transform-na \
1008  | --program-transform-n | --program-transform- \
1009  | --program-transform | --program-transfor \
1010  | --program-transfo | --program-transf \
1011  | --program-trans | --program-tran \
1012  | --progr-tra | --program-tr | --program-t)
1013    ac_prev=program_transform_name ;;
1014  -program-transform-name=* | --program-transform-name=* \
1015  | --program-transform-nam=* | --program-transform-na=* \
1016  | --program-transform-n=* | --program-transform-=* \
1017  | --program-transform=* | --program-transfor=* \
1018  | --program-transfo=* | --program-transf=* \
1019  | --program-trans=* | --program-tran=* \
1020  | --progr-tra=* | --program-tr=* | --program-t=*)
1021    program_transform_name=$ac_optarg ;;
1022
1023  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1024    ac_prev=pdfdir ;;
1025  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1026    pdfdir=$ac_optarg ;;
1027
1028  -psdir | --psdir | --psdi | --psd | --ps)
1029    ac_prev=psdir ;;
1030  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1031    psdir=$ac_optarg ;;
1032
1033  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1034  | -silent | --silent | --silen | --sile | --sil)
1035    silent=yes ;;
1036
1037  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1038    ac_prev=sbindir ;;
1039  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1040  | --sbi=* | --sb=*)
1041    sbindir=$ac_optarg ;;
1042
1043  -sharedstatedir | --sharedstatedir | --sharedstatedi \
1044  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1045  | --sharedst | --shareds | --shared | --share | --shar \
1046  | --sha | --sh)
1047    ac_prev=sharedstatedir ;;
1048  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1049  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1050  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1051  | --sha=* | --sh=*)
1052    sharedstatedir=$ac_optarg ;;
1053
1054  -site | --site | --sit)
1055    ac_prev=site ;;
1056  -site=* | --site=* | --sit=*)
1057    site=$ac_optarg ;;
1058
1059  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1060    ac_prev=srcdir ;;
1061  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1062    srcdir=$ac_optarg ;;
1063
1064  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1065  | --syscon | --sysco | --sysc | --sys | --sy)
1066    ac_prev=sysconfdir ;;
1067  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1068  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1069    sysconfdir=$ac_optarg ;;
1070
1071  -target | --target | --targe | --targ | --tar | --ta | --t)
1072    ac_prev=target_alias ;;
1073  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1074    target_alias=$ac_optarg ;;
1075
1076  -v | -verbose | --verbose | --verbos | --verbo | --verb)
1077    verbose=yes ;;
1078
1079  -version | --version | --versio | --versi | --vers | -V)
1080    ac_init_version=: ;;
1081
1082  -with-* | --with-*)
1083    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1084    # Reject names that are not valid shell variable names.
1085    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1086      as_fn_error "invalid package name: $ac_useropt"
1087    ac_useropt_orig=$ac_useropt
1088    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1089    case $ac_user_opts in
1090      *"
1091"with_$ac_useropt"
1092"*) ;;
1093      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1094	 ac_unrecognized_sep=', ';;
1095    esac
1096    eval with_$ac_useropt=\$ac_optarg ;;
1097
1098  -without-* | --without-*)
1099    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1100    # Reject names that are not valid shell variable names.
1101    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1102      as_fn_error "invalid package name: $ac_useropt"
1103    ac_useropt_orig=$ac_useropt
1104    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1105    case $ac_user_opts in
1106      *"
1107"with_$ac_useropt"
1108"*) ;;
1109      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1110	 ac_unrecognized_sep=', ';;
1111    esac
1112    eval with_$ac_useropt=no ;;
1113
1114  --x)
1115    # Obsolete; use --with-x.
1116    with_x=yes ;;
1117
1118  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1119  | --x-incl | --x-inc | --x-in | --x-i)
1120    ac_prev=x_includes ;;
1121  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1122  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1123    x_includes=$ac_optarg ;;
1124
1125  -x-libraries | --x-libraries | --x-librarie | --x-librari \
1126  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1127    ac_prev=x_libraries ;;
1128  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1129  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1130    x_libraries=$ac_optarg ;;
1131
1132  -*) as_fn_error "unrecognized option: \`$ac_option'
1133Try \`$0 --help' for more information."
1134    ;;
1135
1136  *=*)
1137    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1138    # Reject names that are not valid shell variable names.
1139    case $ac_envvar in #(
1140      '' | [0-9]* | *[!_$as_cr_alnum]* )
1141      as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1142    esac
1143    eval $ac_envvar=\$ac_optarg
1144    export $ac_envvar ;;
1145
1146  *)
1147    # FIXME: should be removed in autoconf 3.0.
1148    $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1149    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1150      $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1151    : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1152    ;;
1153
1154  esac
1155done
1156
1157if test -n "$ac_prev"; then
1158  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1159  as_fn_error "missing argument to $ac_option"
1160fi
1161
1162if test -n "$ac_unrecognized_opts"; then
1163  case $enable_option_checking in
1164    no) ;;
1165    fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1166    *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1167  esac
1168fi
1169
1170# Check all directory arguments for consistency.
1171for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
1172		datadir sysconfdir sharedstatedir localstatedir includedir \
1173		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1174		libdir localedir mandir
1175do
1176  eval ac_val=\$$ac_var
1177  # Remove trailing slashes.
1178  case $ac_val in
1179    */ )
1180      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1181      eval $ac_var=\$ac_val;;
1182  esac
1183  # Be sure to have absolute directory names.
1184  case $ac_val in
1185    [\\/$]* | ?:[\\/]* )  continue;;
1186    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1187  esac
1188  as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1189done
1190
1191# There might be people who depend on the old broken behavior: `$host'
1192# used to hold the argument of --host etc.
1193# FIXME: To remove some day.
1194build=$build_alias
1195host=$host_alias
1196target=$target_alias
1197
1198# FIXME: To remove some day.
1199if test "x$host_alias" != x; then
1200  if test "x$build_alias" = x; then
1201    cross_compiling=maybe
1202    $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1203    If a cross compiler is detected then cross compile mode will be used." >&2
1204  elif test "x$build_alias" != "x$host_alias"; then
1205    cross_compiling=yes
1206  fi
1207fi
1208
1209ac_tool_prefix=
1210test -n "$host_alias" && ac_tool_prefix=$host_alias-
1211
1212test "$silent" = yes && exec 6>/dev/null
1213
1214
1215ac_pwd=`pwd` && test -n "$ac_pwd" &&
1216ac_ls_di=`ls -di .` &&
1217ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1218  as_fn_error "working directory cannot be determined"
1219test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1220  as_fn_error "pwd does not report name of working directory"
1221
1222
1223# Find the source files, if location was not specified.
1224if test -z "$srcdir"; then
1225  ac_srcdir_defaulted=yes
1226  # Try the directory containing this script, then the parent directory.
1227  ac_confdir=`$as_dirname -- "$as_myself" ||
1228$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1229	 X"$as_myself" : 'X\(//\)[^/]' \| \
1230	 X"$as_myself" : 'X\(//\)$' \| \
1231	 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1232$as_echo X"$as_myself" |
1233    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1234	    s//\1/
1235	    q
1236	  }
1237	  /^X\(\/\/\)[^/].*/{
1238	    s//\1/
1239	    q
1240	  }
1241	  /^X\(\/\/\)$/{
1242	    s//\1/
1243	    q
1244	  }
1245	  /^X\(\/\).*/{
1246	    s//\1/
1247	    q
1248	  }
1249	  s/.*/./; q'`
1250  srcdir=$ac_confdir
1251  if test ! -r "$srcdir/$ac_unique_file"; then
1252    srcdir=..
1253  fi
1254else
1255  ac_srcdir_defaulted=no
1256fi
1257if test ! -r "$srcdir/$ac_unique_file"; then
1258  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1259  as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1260fi
1261ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1262ac_abs_confdir=`(
1263	cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1264	pwd)`
1265# When building in place, set srcdir=.
1266if test "$ac_abs_confdir" = "$ac_pwd"; then
1267  srcdir=.
1268fi
1269# Remove unnecessary trailing slashes from srcdir.
1270# Double slashes in file names in object file debugging info
1271# mess up M-x gdb in Emacs.
1272case $srcdir in
1273*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1274esac
1275for ac_var in $ac_precious_vars; do
1276  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1277  eval ac_env_${ac_var}_value=\$${ac_var}
1278  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1279  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1280done
1281
1282#
1283# Report the --help message.
1284#
1285if test "$ac_init_help" = "long"; then
1286  # Omit some internal or obsolete options to make the list less imposing.
1287  # This message is too long to be a string in the A/UX 3.1 sh.
1288  cat <<_ACEOF
1289\`configure' configures this package to adapt to many kinds of systems.
1290
1291Usage: $0 [OPTION]... [VAR=VALUE]...
1292
1293To assign environment variables (e.g., CC, CFLAGS...), specify them as
1294VAR=VALUE.  See below for descriptions of some of the useful variables.
1295
1296Defaults for the options are specified in brackets.
1297
1298Configuration:
1299  -h, --help              display this help and exit
1300      --help=short        display options specific to this package
1301      --help=recursive    display the short help of all the included packages
1302  -V, --version           display version information and exit
1303  -q, --quiet, --silent   do not print \`checking...' messages
1304      --cache-file=FILE   cache test results in FILE [disabled]
1305  -C, --config-cache      alias for \`--cache-file=config.cache'
1306  -n, --no-create         do not create output files
1307      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1308
1309Installation directories:
1310  --prefix=PREFIX         install architecture-independent files in PREFIX
1311                          [$ac_default_prefix]
1312  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1313                          [PREFIX]
1314
1315By default, \`make install' will install all the files in
1316\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1317an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1318for instance \`--prefix=\$HOME'.
1319
1320For better control, use the options below.
1321
1322Fine tuning of the installation directories:
1323  --bindir=DIR            user executables [EPREFIX/bin]
1324  --sbindir=DIR           system admin executables [EPREFIX/sbin]
1325  --libexecdir=DIR        program executables [EPREFIX/libexec]
1326  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1327  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1328  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1329  --libdir=DIR            object code libraries [EPREFIX/lib]
1330  --includedir=DIR        C header files [PREFIX/include]
1331  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1332  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1333  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1334  --infodir=DIR           info documentation [DATAROOTDIR/info]
1335  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1336  --mandir=DIR            man documentation [DATAROOTDIR/man]
1337  --docdir=DIR            documentation root [DATAROOTDIR/doc/PACKAGE]
1338  --htmldir=DIR           html documentation [DOCDIR]
1339  --dvidir=DIR            dvi documentation [DOCDIR]
1340  --pdfdir=DIR            pdf documentation [DOCDIR]
1341  --psdir=DIR             ps documentation [DOCDIR]
1342_ACEOF
1343
1344  cat <<\_ACEOF
1345
1346Program names:
1347  --program-prefix=PREFIX            prepend PREFIX to installed program names
1348  --program-suffix=SUFFIX            append SUFFIX to installed program names
1349  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1350
1351System types:
1352  --build=BUILD     configure for building on BUILD [guessed]
1353  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1354  --target=TARGET   configure for building compilers for TARGET [HOST]
1355_ACEOF
1356fi
1357
1358if test -n "$ac_init_help"; then
1359
1360  cat <<\_ACEOF
1361
1362Optional Features:
1363  --disable-option-checking  ignore unrecognized --enable/--with options
1364  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1365  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1366  --enable-multilib       build many library versions (default)
1367  --enable-maintainer-mode  enable make rules and dependencies not useful
1368			  (and sometimes confusing) to the casual installer
1369  --disable-dependency-tracking  speeds up one-time build
1370  --enable-dependency-tracking   do not reject slow dependency extractors
1371  --enable-shared[=PKGS]  build shared libraries [default=yes]
1372  --enable-static[=PKGS]  build static libraries [default=yes]
1373  --enable-fast-install[=PKGS]
1374                          optimize for fast installation [default=yes]
1375  --disable-libtool-lock  avoid locking (might break parallel builds)
1376  --enable-host-shared    build host code as shared libraries
1377
1378Optional Packages:
1379  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1380  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1381  --with-target-subdir=SUBDIR
1382                          configuring in a subdirectory
1383  --with-cross-host=HOST  configuring with a cross compiler
1384  --with-system-zlib      use installed libz
1385  --with-pic              try to use only PIC/non-PIC objects [default=use
1386                          both]
1387  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1388
1389Some influential environment variables:
1390  CC          C compiler command
1391  CFLAGS      C compiler flags
1392  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1393              nonstandard directory <lib dir>
1394  LIBS        libraries to pass to the linker, e.g. -l<library>
1395  CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1396              you have headers in a nonstandard directory <include dir>
1397  CPP         C preprocessor
1398
1399Use these variables to override the choices made by `configure' or to help
1400it to find libraries and programs with nonstandard names/locations.
1401
1402Report bugs to the package provider.
1403_ACEOF
1404ac_status=$?
1405fi
1406
1407if test "$ac_init_help" = "recursive"; then
1408  # If there are subdirs, report their specific --help.
1409  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1410    test -d "$ac_dir" ||
1411      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1412      continue
1413    ac_builddir=.
1414
1415case "$ac_dir" in
1416.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1417*)
1418  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1419  # A ".." for each directory in $ac_dir_suffix.
1420  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1421  case $ac_top_builddir_sub in
1422  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1423  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1424  esac ;;
1425esac
1426ac_abs_top_builddir=$ac_pwd
1427ac_abs_builddir=$ac_pwd$ac_dir_suffix
1428# for backward compatibility:
1429ac_top_builddir=$ac_top_build_prefix
1430
1431case $srcdir in
1432  .)  # We are building in place.
1433    ac_srcdir=.
1434    ac_top_srcdir=$ac_top_builddir_sub
1435    ac_abs_top_srcdir=$ac_pwd ;;
1436  [\\/]* | ?:[\\/]* )  # Absolute name.
1437    ac_srcdir=$srcdir$ac_dir_suffix;
1438    ac_top_srcdir=$srcdir
1439    ac_abs_top_srcdir=$srcdir ;;
1440  *) # Relative name.
1441    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1442    ac_top_srcdir=$ac_top_build_prefix$srcdir
1443    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1444esac
1445ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1446
1447    cd "$ac_dir" || { ac_status=$?; continue; }
1448    # Check for guested configure.
1449    if test -f "$ac_srcdir/configure.gnu"; then
1450      echo &&
1451      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1452    elif test -f "$ac_srcdir/configure"; then
1453      echo &&
1454      $SHELL "$ac_srcdir/configure" --help=recursive
1455    else
1456      $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1457    fi || ac_status=$?
1458    cd "$ac_pwd" || { ac_status=$?; break; }
1459  done
1460fi
1461
1462test -n "$ac_init_help" && exit $ac_status
1463if $ac_init_version; then
1464  cat <<\_ACEOF
1465configure
1466generated by GNU Autoconf 2.64
1467
1468Copyright (C) 2009 Free Software Foundation, Inc.
1469This configure script is free software; the Free Software Foundation
1470gives unlimited permission to copy, distribute and modify it.
1471_ACEOF
1472  exit
1473fi
1474
1475## ------------------------ ##
1476## Autoconf initialization. ##
1477## ------------------------ ##
1478
1479# ac_fn_c_try_compile LINENO
1480# --------------------------
1481# Try to compile conftest.$ac_ext, and return whether this succeeded.
1482ac_fn_c_try_compile ()
1483{
1484  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1485  rm -f conftest.$ac_objext
1486  if { { ac_try="$ac_compile"
1487case "(($ac_try" in
1488  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1489  *) ac_try_echo=$ac_try;;
1490esac
1491eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1492$as_echo "$ac_try_echo"; } >&5
1493  (eval "$ac_compile") 2>conftest.err
1494  ac_status=$?
1495  if test -s conftest.err; then
1496    grep -v '^ *+' conftest.err >conftest.er1
1497    cat conftest.er1 >&5
1498    mv -f conftest.er1 conftest.err
1499  fi
1500  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1501  test $ac_status = 0; } && {
1502	 test -z "$ac_c_werror_flag" ||
1503	 test ! -s conftest.err
1504       } && test -s conftest.$ac_objext; then :
1505  ac_retval=0
1506else
1507  $as_echo "$as_me: failed program was:" >&5
1508sed 's/^/| /' conftest.$ac_ext >&5
1509
1510	ac_retval=1
1511fi
1512  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1513  return $ac_retval
1514
1515} # ac_fn_c_try_compile
1516
1517# ac_fn_c_try_link LINENO
1518# -----------------------
1519# Try to link conftest.$ac_ext, and return whether this succeeded.
1520ac_fn_c_try_link ()
1521{
1522  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1523  rm -f conftest.$ac_objext conftest$ac_exeext
1524  if { { ac_try="$ac_link"
1525case "(($ac_try" in
1526  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1527  *) ac_try_echo=$ac_try;;
1528esac
1529eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1530$as_echo "$ac_try_echo"; } >&5
1531  (eval "$ac_link") 2>conftest.err
1532  ac_status=$?
1533  if test -s conftest.err; then
1534    grep -v '^ *+' conftest.err >conftest.er1
1535    cat conftest.er1 >&5
1536    mv -f conftest.er1 conftest.err
1537  fi
1538  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1539  test $ac_status = 0; } && {
1540	 test -z "$ac_c_werror_flag" ||
1541	 test ! -s conftest.err
1542       } && test -s conftest$ac_exeext && {
1543	 test "$cross_compiling" = yes ||
1544	 $as_test_x conftest$ac_exeext
1545       }; then :
1546  ac_retval=0
1547else
1548  $as_echo "$as_me: failed program was:" >&5
1549sed 's/^/| /' conftest.$ac_ext >&5
1550
1551	ac_retval=1
1552fi
1553  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1554  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1555  # interfere with the next link command; also delete a directory that is
1556  # left behind by Apple's compiler.  We do this before executing the actions.
1557  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1558  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1559  return $ac_retval
1560
1561} # ac_fn_c_try_link
1562
1563# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1564# -------------------------------------------------------
1565# Tests whether HEADER exists and can be compiled using the include files in
1566# INCLUDES, setting the cache variable VAR accordingly.
1567ac_fn_c_check_header_compile ()
1568{
1569  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1570  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1571$as_echo_n "checking for $2... " >&6; }
1572if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1573  $as_echo_n "(cached) " >&6
1574else
1575  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1576/* end confdefs.h.  */
1577$4
1578#include <$2>
1579_ACEOF
1580if ac_fn_c_try_compile "$LINENO"; then :
1581  eval "$3=yes"
1582else
1583  eval "$3=no"
1584fi
1585rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1586fi
1587eval ac_res=\$$3
1588	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1589$as_echo "$ac_res" >&6; }
1590  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1591
1592} # ac_fn_c_check_header_compile
1593
1594# ac_fn_c_try_cpp LINENO
1595# ----------------------
1596# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1597ac_fn_c_try_cpp ()
1598{
1599  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1600  if { { ac_try="$ac_cpp conftest.$ac_ext"
1601case "(($ac_try" in
1602  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1603  *) ac_try_echo=$ac_try;;
1604esac
1605eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1606$as_echo "$ac_try_echo"; } >&5
1607  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1608  ac_status=$?
1609  if test -s conftest.err; then
1610    grep -v '^ *+' conftest.err >conftest.er1
1611    cat conftest.er1 >&5
1612    mv -f conftest.er1 conftest.err
1613  fi
1614  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1615  test $ac_status = 0; } >/dev/null && {
1616	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1617	 test ! -s conftest.err
1618       }; then :
1619  ac_retval=0
1620else
1621  $as_echo "$as_me: failed program was:" >&5
1622sed 's/^/| /' conftest.$ac_ext >&5
1623
1624    ac_retval=1
1625fi
1626  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1627  return $ac_retval
1628
1629} # ac_fn_c_try_cpp
1630
1631# ac_fn_c_try_run LINENO
1632# ----------------------
1633# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1634# that executables *can* be run.
1635ac_fn_c_try_run ()
1636{
1637  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1638  if { { ac_try="$ac_link"
1639case "(($ac_try" in
1640  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1641  *) ac_try_echo=$ac_try;;
1642esac
1643eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1644$as_echo "$ac_try_echo"; } >&5
1645  (eval "$ac_link") 2>&5
1646  ac_status=$?
1647  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1648  test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1649  { { case "(($ac_try" in
1650  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1651  *) ac_try_echo=$ac_try;;
1652esac
1653eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1654$as_echo "$ac_try_echo"; } >&5
1655  (eval "$ac_try") 2>&5
1656  ac_status=$?
1657  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1658  test $ac_status = 0; }; }; then :
1659  ac_retval=0
1660else
1661  $as_echo "$as_me: program exited with status $ac_status" >&5
1662       $as_echo "$as_me: failed program was:" >&5
1663sed 's/^/| /' conftest.$ac_ext >&5
1664
1665       ac_retval=$ac_status
1666fi
1667  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1668  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1669  return $ac_retval
1670
1671} # ac_fn_c_try_run
1672
1673# ac_fn_c_check_func LINENO FUNC VAR
1674# ----------------------------------
1675# Tests whether FUNC exists, setting the cache variable VAR accordingly
1676ac_fn_c_check_func ()
1677{
1678  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1679  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1680$as_echo_n "checking for $2... " >&6; }
1681if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1682  $as_echo_n "(cached) " >&6
1683else
1684  if test x$gcc_no_link = xyes; then
1685  as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1686fi
1687cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1688/* end confdefs.h.  */
1689/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1690   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
1691#define $2 innocuous_$2
1692
1693/* System header to define __stub macros and hopefully few prototypes,
1694    which can conflict with char $2 (); below.
1695    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1696    <limits.h> exists even on freestanding compilers.  */
1697
1698#ifdef __STDC__
1699# include <limits.h>
1700#else
1701# include <assert.h>
1702#endif
1703
1704#undef $2
1705
1706/* Override any GCC internal prototype to avoid an error.
1707   Use char because int might match the return type of a GCC
1708   builtin and then its argument prototype would still apply.  */
1709#ifdef __cplusplus
1710extern "C"
1711#endif
1712char $2 ();
1713/* The GNU C library defines this for functions which it implements
1714    to always fail with ENOSYS.  Some functions are actually named
1715    something starting with __ and the normal name is an alias.  */
1716#if defined __stub_$2 || defined __stub___$2
1717choke me
1718#endif
1719
1720int
1721main ()
1722{
1723return $2 ();
1724  ;
1725  return 0;
1726}
1727_ACEOF
1728if ac_fn_c_try_link "$LINENO"; then :
1729  eval "$3=yes"
1730else
1731  eval "$3=no"
1732fi
1733rm -f core conftest.err conftest.$ac_objext \
1734    conftest$ac_exeext conftest.$ac_ext
1735fi
1736eval ac_res=\$$3
1737	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1738$as_echo "$ac_res" >&6; }
1739  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1740
1741} # ac_fn_c_check_func
1742
1743# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1744# -------------------------------------------------------
1745# Tests whether HEADER exists, giving a warning if it cannot be compiled using
1746# the include files in INCLUDES and setting the cache variable VAR
1747# accordingly.
1748ac_fn_c_check_header_mongrel ()
1749{
1750  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1751  if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1752  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1753$as_echo_n "checking for $2... " >&6; }
1754if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1755  $as_echo_n "(cached) " >&6
1756fi
1757eval ac_res=\$$3
1758	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1759$as_echo "$ac_res" >&6; }
1760else
1761  # Is the header compilable?
1762{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1763$as_echo_n "checking $2 usability... " >&6; }
1764cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1765/* end confdefs.h.  */
1766$4
1767#include <$2>
1768_ACEOF
1769if ac_fn_c_try_compile "$LINENO"; then :
1770  ac_header_compiler=yes
1771else
1772  ac_header_compiler=no
1773fi
1774rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1775{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1776$as_echo "$ac_header_compiler" >&6; }
1777
1778# Is the header present?
1779{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1780$as_echo_n "checking $2 presence... " >&6; }
1781cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1782/* end confdefs.h.  */
1783#include <$2>
1784_ACEOF
1785if ac_fn_c_try_cpp "$LINENO"; then :
1786  ac_header_preproc=yes
1787else
1788  ac_header_preproc=no
1789fi
1790rm -f conftest.err conftest.$ac_ext
1791{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1792$as_echo "$ac_header_preproc" >&6; }
1793
1794# So?  What about this header?
1795case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1796  yes:no: )
1797    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1798$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1799    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1800$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1801    ;;
1802  no:yes:* )
1803    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1804$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1805    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
1806$as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
1807    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1808$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1809    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
1810$as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
1811    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1812$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1813    ;;
1814esac
1815  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1816$as_echo_n "checking for $2... " >&6; }
1817if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1818  $as_echo_n "(cached) " >&6
1819else
1820  eval "$3=\$ac_header_compiler"
1821fi
1822eval ac_res=\$$3
1823	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1824$as_echo "$ac_res" >&6; }
1825fi
1826  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1827
1828} # ac_fn_c_check_header_mongrel
1829cat >config.log <<_ACEOF
1830This file contains any messages produced by compilers while
1831running configure, to aid debugging if configure makes a mistake.
1832
1833It was created by $as_me, which was
1834generated by GNU Autoconf 2.64.  Invocation command line was
1835
1836  $ $0 $@
1837
1838_ACEOF
1839exec 5>>config.log
1840{
1841cat <<_ASUNAME
1842## --------- ##
1843## Platform. ##
1844## --------- ##
1845
1846hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1847uname -m = `(uname -m) 2>/dev/null || echo unknown`
1848uname -r = `(uname -r) 2>/dev/null || echo unknown`
1849uname -s = `(uname -s) 2>/dev/null || echo unknown`
1850uname -v = `(uname -v) 2>/dev/null || echo unknown`
1851
1852/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1853/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1854
1855/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1856/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1857/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1858/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1859/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1860/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1861/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1862
1863_ASUNAME
1864
1865as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1866for as_dir in $PATH
1867do
1868  IFS=$as_save_IFS
1869  test -z "$as_dir" && as_dir=.
1870    $as_echo "PATH: $as_dir"
1871  done
1872IFS=$as_save_IFS
1873
1874} >&5
1875
1876cat >&5 <<_ACEOF
1877
1878
1879## ----------- ##
1880## Core tests. ##
1881## ----------- ##
1882
1883_ACEOF
1884
1885
1886# Keep a trace of the command line.
1887# Strip out --no-create and --no-recursion so they do not pile up.
1888# Strip out --silent because we don't want to record it for future runs.
1889# Also quote any args containing shell meta-characters.
1890# Make two passes to allow for proper duplicate-argument suppression.
1891ac_configure_args=
1892ac_configure_args0=
1893ac_configure_args1=
1894ac_must_keep_next=false
1895for ac_pass in 1 2
1896do
1897  for ac_arg
1898  do
1899    case $ac_arg in
1900    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1901    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1902    | -silent | --silent | --silen | --sile | --sil)
1903      continue ;;
1904    *\'*)
1905      ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1906    esac
1907    case $ac_pass in
1908    1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1909    2)
1910      as_fn_append ac_configure_args1 " '$ac_arg'"
1911      if test $ac_must_keep_next = true; then
1912	ac_must_keep_next=false # Got value, back to normal.
1913      else
1914	case $ac_arg in
1915	  *=* | --config-cache | -C | -disable-* | --disable-* \
1916	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1917	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1918	  | -with-* | --with-* | -without-* | --without-* | --x)
1919	    case "$ac_configure_args0 " in
1920	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1921	    esac
1922	    ;;
1923	  -* ) ac_must_keep_next=true ;;
1924	esac
1925      fi
1926      as_fn_append ac_configure_args " '$ac_arg'"
1927      ;;
1928    esac
1929  done
1930done
1931{ ac_configure_args0=; unset ac_configure_args0;}
1932{ ac_configure_args1=; unset ac_configure_args1;}
1933
1934# When interrupted or exit'd, cleanup temporary files, and complete
1935# config.log.  We remove comments because anyway the quotes in there
1936# would cause problems or look ugly.
1937# WARNING: Use '\'' to represent an apostrophe within the trap.
1938# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1939trap 'exit_status=$?
1940  # Save into config.log some information that might help in debugging.
1941  {
1942    echo
1943
1944    cat <<\_ASBOX
1945## ---------------- ##
1946## Cache variables. ##
1947## ---------------- ##
1948_ASBOX
1949    echo
1950    # The following way of writing the cache mishandles newlines in values,
1951(
1952  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1953    eval ac_val=\$$ac_var
1954    case $ac_val in #(
1955    *${as_nl}*)
1956      case $ac_var in #(
1957      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
1958$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1959      esac
1960      case $ac_var in #(
1961      _ | IFS | as_nl) ;; #(
1962      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1963      *) { eval $ac_var=; unset $ac_var;} ;;
1964      esac ;;
1965    esac
1966  done
1967  (set) 2>&1 |
1968    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1969    *${as_nl}ac_space=\ *)
1970      sed -n \
1971	"s/'\''/'\''\\\\'\'''\''/g;
1972	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1973      ;; #(
1974    *)
1975      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1976      ;;
1977    esac |
1978    sort
1979)
1980    echo
1981
1982    cat <<\_ASBOX
1983## ----------------- ##
1984## Output variables. ##
1985## ----------------- ##
1986_ASBOX
1987    echo
1988    for ac_var in $ac_subst_vars
1989    do
1990      eval ac_val=\$$ac_var
1991      case $ac_val in
1992      *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1993      esac
1994      $as_echo "$ac_var='\''$ac_val'\''"
1995    done | sort
1996    echo
1997
1998    if test -n "$ac_subst_files"; then
1999      cat <<\_ASBOX
2000## ------------------- ##
2001## File substitutions. ##
2002## ------------------- ##
2003_ASBOX
2004      echo
2005      for ac_var in $ac_subst_files
2006      do
2007	eval ac_val=\$$ac_var
2008	case $ac_val in
2009	*\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2010	esac
2011	$as_echo "$ac_var='\''$ac_val'\''"
2012      done | sort
2013      echo
2014    fi
2015
2016    if test -s confdefs.h; then
2017      cat <<\_ASBOX
2018## ----------- ##
2019## confdefs.h. ##
2020## ----------- ##
2021_ASBOX
2022      echo
2023      cat confdefs.h
2024      echo
2025    fi
2026    test "$ac_signal" != 0 &&
2027      $as_echo "$as_me: caught signal $ac_signal"
2028    $as_echo "$as_me: exit $exit_status"
2029  } >&5
2030  rm -f core *.core core.conftest.* &&
2031    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2032    exit $exit_status
2033' 0
2034for ac_signal in 1 2 13 15; do
2035  trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2036done
2037ac_signal=0
2038
2039# confdefs.h avoids OS command line length limits that DEFS can exceed.
2040rm -f -r conftest* confdefs.h
2041
2042$as_echo "/* confdefs.h */" > confdefs.h
2043
2044# Predefined preprocessor variables.
2045
2046cat >>confdefs.h <<_ACEOF
2047#define PACKAGE_NAME "$PACKAGE_NAME"
2048_ACEOF
2049
2050cat >>confdefs.h <<_ACEOF
2051#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2052_ACEOF
2053
2054cat >>confdefs.h <<_ACEOF
2055#define PACKAGE_VERSION "$PACKAGE_VERSION"
2056_ACEOF
2057
2058cat >>confdefs.h <<_ACEOF
2059#define PACKAGE_STRING "$PACKAGE_STRING"
2060_ACEOF
2061
2062cat >>confdefs.h <<_ACEOF
2063#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2064_ACEOF
2065
2066cat >>confdefs.h <<_ACEOF
2067#define PACKAGE_URL "$PACKAGE_URL"
2068_ACEOF
2069
2070
2071# Let the site file select an alternate cache file if it wants to.
2072# Prefer an explicitly selected file to automatically selected ones.
2073ac_site_file1=NONE
2074ac_site_file2=NONE
2075if test -n "$CONFIG_SITE"; then
2076  ac_site_file1=$CONFIG_SITE
2077elif test "x$prefix" != xNONE; then
2078  ac_site_file1=$prefix/share/config.site
2079  ac_site_file2=$prefix/etc/config.site
2080else
2081  ac_site_file1=$ac_default_prefix/share/config.site
2082  ac_site_file2=$ac_default_prefix/etc/config.site
2083fi
2084for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2085do
2086  test "x$ac_site_file" = xNONE && continue
2087  if test -r "$ac_site_file"; then
2088    { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2089$as_echo "$as_me: loading site script $ac_site_file" >&6;}
2090    sed 's/^/| /' "$ac_site_file" >&5
2091    . "$ac_site_file"
2092  fi
2093done
2094
2095if test -r "$cache_file"; then
2096  # Some versions of bash will fail to source /dev/null (special
2097  # files actually), so we avoid doing that.
2098  if test -f "$cache_file"; then
2099    { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2100$as_echo "$as_me: loading cache $cache_file" >&6;}
2101    case $cache_file in
2102      [\\/]* | ?:[\\/]* ) . "$cache_file";;
2103      *)                      . "./$cache_file";;
2104    esac
2105  fi
2106else
2107  { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2108$as_echo "$as_me: creating cache $cache_file" >&6;}
2109  >$cache_file
2110fi
2111
2112# Check that the precious variables saved in the cache have kept the same
2113# value.
2114ac_cache_corrupted=false
2115for ac_var in $ac_precious_vars; do
2116  eval ac_old_set=\$ac_cv_env_${ac_var}_set
2117  eval ac_new_set=\$ac_env_${ac_var}_set
2118  eval ac_old_val=\$ac_cv_env_${ac_var}_value
2119  eval ac_new_val=\$ac_env_${ac_var}_value
2120  case $ac_old_set,$ac_new_set in
2121    set,)
2122      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2123$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2124      ac_cache_corrupted=: ;;
2125    ,set)
2126      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2127$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2128      ac_cache_corrupted=: ;;
2129    ,);;
2130    *)
2131      if test "x$ac_old_val" != "x$ac_new_val"; then
2132	# differences in whitespace do not lead to failure.
2133	ac_old_val_w=`echo x $ac_old_val`
2134	ac_new_val_w=`echo x $ac_new_val`
2135	if test "$ac_old_val_w" != "$ac_new_val_w"; then
2136	  { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2137$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2138	  ac_cache_corrupted=:
2139	else
2140	  { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2141$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2142	  eval $ac_var=\$ac_old_val
2143	fi
2144	{ $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2145$as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2146	{ $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2147$as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2148      fi;;
2149  esac
2150  # Pass precious variables to config.status.
2151  if test "$ac_new_set" = set; then
2152    case $ac_new_val in
2153    *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2154    *) ac_arg=$ac_var=$ac_new_val ;;
2155    esac
2156    case " $ac_configure_args " in
2157      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2158      *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2159    esac
2160  fi
2161done
2162if $ac_cache_corrupted; then
2163  { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2164$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2165  { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2166$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2167  as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2168fi
2169## -------------------- ##
2170## Main body of script. ##
2171## -------------------- ##
2172
2173ac_ext=c
2174ac_cpp='$CPP $CPPFLAGS'
2175ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2176ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2177ac_compiler_gnu=$ac_cv_c_compiler_gnu
2178
2179
2180
2181
2182
2183
2184
2185# Default to --enable-multilib
2186# Check whether --enable-multilib was given.
2187if test "${enable_multilib+set}" = set; then :
2188  enableval=$enable_multilib; case "$enableval" in
2189  yes) multilib=yes ;;
2190  no)  multilib=no ;;
2191  *)   as_fn_error "bad value $enableval for multilib option" "$LINENO" 5 ;;
2192 esac
2193else
2194  multilib=yes
2195fi
2196
2197
2198# We may get other options which we leave undocumented:
2199# --with-target-subdir, --with-multisrctop, --with-multisubdir
2200# See config-ml.in if you want the gory details.
2201
2202if test "$srcdir" = "."; then
2203  if test "$with_target_subdir" != "."; then
2204    multi_basedir="$srcdir/$with_multisrctop../.."
2205  else
2206    multi_basedir="$srcdir/$with_multisrctop.."
2207  fi
2208else
2209  multi_basedir="$srcdir/.."
2210fi
2211
2212
2213# Even if the default multilib is not a cross compilation,
2214# it may be that some of the other multilibs are.
2215if test $cross_compiling = no && test $multilib = yes \
2216   && test "x${with_multisubdir}" != x ; then
2217   cross_compiling=maybe
2218fi
2219
2220ac_config_commands="$ac_config_commands default-1"
2221
2222
2223ac_aux_dir=
2224for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2225  for ac_t in install-sh install.sh shtool; do
2226    if test -f "$ac_dir/$ac_t"; then
2227      ac_aux_dir=$ac_dir
2228      ac_install_sh="$ac_aux_dir/$ac_t -c"
2229      break 2
2230    fi
2231  done
2232done
2233if test -z "$ac_aux_dir"; then
2234  as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2235fi
2236
2237# These three variables are undocumented and unsupported,
2238# and are intended to be withdrawn in a future Autoconf release.
2239# They can cause serious problems if a builder's source tree is in a directory
2240# whose full name contains unusual characters.
2241ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2242ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2243ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2244
2245
2246# Make sure we can run config.sub.
2247$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2248  as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2249
2250{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2251$as_echo_n "checking build system type... " >&6; }
2252if test "${ac_cv_build+set}" = set; then :
2253  $as_echo_n "(cached) " >&6
2254else
2255  ac_build_alias=$build_alias
2256test "x$ac_build_alias" = x &&
2257  ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2258test "x$ac_build_alias" = x &&
2259  as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
2260ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2261  as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2262
2263fi
2264{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2265$as_echo "$ac_cv_build" >&6; }
2266case $ac_cv_build in
2267*-*-*) ;;
2268*) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
2269esac
2270build=$ac_cv_build
2271ac_save_IFS=$IFS; IFS='-'
2272set x $ac_cv_build
2273shift
2274build_cpu=$1
2275build_vendor=$2
2276shift; shift
2277# Remember, the first character of IFS is used to create $*,
2278# except with old shells:
2279build_os=$*
2280IFS=$ac_save_IFS
2281case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2282
2283
2284{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2285$as_echo_n "checking host system type... " >&6; }
2286if test "${ac_cv_host+set}" = set; then :
2287  $as_echo_n "(cached) " >&6
2288else
2289  if test "x$host_alias" = x; then
2290  ac_cv_host=$ac_cv_build
2291else
2292  ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2293    as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2294fi
2295
2296fi
2297{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2298$as_echo "$ac_cv_host" >&6; }
2299case $ac_cv_host in
2300*-*-*) ;;
2301*) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
2302esac
2303host=$ac_cv_host
2304ac_save_IFS=$IFS; IFS='-'
2305set x $ac_cv_host
2306shift
2307host_cpu=$1
2308host_vendor=$2
2309shift; shift
2310# Remember, the first character of IFS is used to create $*,
2311# except with old shells:
2312host_os=$*
2313IFS=$ac_save_IFS
2314case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2315
2316
2317{ $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2318$as_echo_n "checking target system type... " >&6; }
2319if test "${ac_cv_target+set}" = set; then :
2320  $as_echo_n "(cached) " >&6
2321else
2322  if test "x$target_alias" = x; then
2323  ac_cv_target=$ac_cv_host
2324else
2325  ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2326    as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2327fi
2328
2329fi
2330{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2331$as_echo "$ac_cv_target" >&6; }
2332case $ac_cv_target in
2333*-*-*) ;;
2334*) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
2335esac
2336target=$ac_cv_target
2337ac_save_IFS=$IFS; IFS='-'
2338set x $ac_cv_target
2339shift
2340target_cpu=$1
2341target_vendor=$2
2342shift; shift
2343# Remember, the first character of IFS is used to create $*,
2344# except with old shells:
2345target_os=$*
2346IFS=$ac_save_IFS
2347case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2348
2349
2350# The aliases save the names the user supplied, while $host etc.
2351# will get canonicalized.
2352test -n "$target_alias" &&
2353  test "$program_prefix$program_suffix$program_transform_name" = \
2354    NONENONEs,x,x, &&
2355  program_prefix=${target_alias}-
2356
2357
2358# This works around an automake problem.
2359mkinstalldirs="`cd $ac_aux_dir && ${PWDCMD-pwd}`/mkinstalldirs"
2360
2361
2362am__api_version='1.11'
2363
2364# Find a good install program.  We prefer a C program (faster),
2365# so one script is as good as another.  But avoid the broken or
2366# incompatible versions:
2367# SysV /etc/install, /usr/sbin/install
2368# SunOS /usr/etc/install
2369# IRIX /sbin/install
2370# AIX /bin/install
2371# AmigaOS /C/install, which installs bootblocks on floppy discs
2372# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2373# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2374# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2375# OS/2's system install, which has a completely different semantic
2376# ./install, which can be erroneously created by make from ./install.sh.
2377# Reject install programs that cannot install multiple files.
2378{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2379$as_echo_n "checking for a BSD-compatible install... " >&6; }
2380if test -z "$INSTALL"; then
2381if test "${ac_cv_path_install+set}" = set; then :
2382  $as_echo_n "(cached) " >&6
2383else
2384  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2385for as_dir in $PATH
2386do
2387  IFS=$as_save_IFS
2388  test -z "$as_dir" && as_dir=.
2389    # Account for people who put trailing slashes in PATH elements.
2390case $as_dir/ in #((
2391  ./ | .// | /[cC]/* | \
2392  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2393  ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2394  /usr/ucb/* ) ;;
2395  *)
2396    # OSF1 and SCO ODT 3.0 have their own names for install.
2397    # Don't use installbsd from OSF since it installs stuff as root
2398    # by default.
2399    for ac_prog in ginstall scoinst install; do
2400      for ac_exec_ext in '' $ac_executable_extensions; do
2401	if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2402	  if test $ac_prog = install &&
2403	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2404	    # AIX install.  It has an incompatible calling convention.
2405	    :
2406	  elif test $ac_prog = install &&
2407	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2408	    # program-specific install script used by HP pwplus--don't use.
2409	    :
2410	  else
2411	    rm -rf conftest.one conftest.two conftest.dir
2412	    echo one > conftest.one
2413	    echo two > conftest.two
2414	    mkdir conftest.dir
2415	    if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2416	      test -s conftest.one && test -s conftest.two &&
2417	      test -s conftest.dir/conftest.one &&
2418	      test -s conftest.dir/conftest.two
2419	    then
2420	      ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2421	      break 3
2422	    fi
2423	  fi
2424	fi
2425      done
2426    done
2427    ;;
2428esac
2429
2430  done
2431IFS=$as_save_IFS
2432
2433rm -rf conftest.one conftest.two conftest.dir
2434
2435fi
2436  if test "${ac_cv_path_install+set}" = set; then
2437    INSTALL=$ac_cv_path_install
2438  else
2439    # As a last resort, use the slow shell script.  Don't cache a
2440    # value for INSTALL within a source directory, because that will
2441    # break other packages using the cache if that directory is
2442    # removed, or if the value is a relative name.
2443    INSTALL=$ac_install_sh
2444  fi
2445fi
2446{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2447$as_echo "$INSTALL" >&6; }
2448
2449# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2450# It thinks the first close brace ends the variable substitution.
2451test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2452
2453test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2454
2455test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2456
2457{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2458$as_echo_n "checking whether build environment is sane... " >&6; }
2459# Just in case
2460sleep 1
2461echo timestamp > conftest.file
2462# Reject unsafe characters in $srcdir or the absolute working directory
2463# name.  Accept space and tab only in the latter.
2464am_lf='
2465'
2466case `pwd` in
2467  *[\\\"\#\$\&\'\`$am_lf]*)
2468    as_fn_error "unsafe absolute working directory name" "$LINENO" 5;;
2469esac
2470case $srcdir in
2471  *[\\\"\#\$\&\'\`$am_lf\ \	]*)
2472    as_fn_error "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
2473esac
2474
2475# Do `set' in a subshell so we don't clobber the current shell's
2476# arguments.  Must try -L first in case configure is actually a
2477# symlink; some systems play weird games with the mod time of symlinks
2478# (eg FreeBSD returns the mod time of the symlink's containing
2479# directory).
2480if (
2481   set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2482   if test "$*" = "X"; then
2483      # -L didn't work.
2484      set X `ls -t "$srcdir/configure" conftest.file`
2485   fi
2486   rm -f conftest.file
2487   if test "$*" != "X $srcdir/configure conftest.file" \
2488      && test "$*" != "X conftest.file $srcdir/configure"; then
2489
2490      # If neither matched, then we have a broken ls.  This can happen
2491      # if, for instance, CONFIG_SHELL is bash and it inherits a
2492      # broken ls alias from the environment.  This has actually
2493      # happened.  Such a system could not be considered "sane".
2494      as_fn_error "ls -t appears to fail.  Make sure there is not a broken
2495alias in your environment" "$LINENO" 5
2496   fi
2497
2498   test "$2" = conftest.file
2499   )
2500then
2501   # Ok.
2502   :
2503else
2504   as_fn_error "newly created file is older than distributed files!
2505Check your system clock" "$LINENO" 5
2506fi
2507{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2508$as_echo "yes" >&6; }
2509test "$program_prefix" != NONE &&
2510  program_transform_name="s&^&$program_prefix&;$program_transform_name"
2511# Use a double $ so make ignores it.
2512test "$program_suffix" != NONE &&
2513  program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2514# Double any \ or $.
2515# By default was `s,x,x', remove it if useless.
2516ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2517program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2518
2519# expand $ac_aux_dir to an absolute path
2520am_aux_dir=`cd $ac_aux_dir && pwd`
2521
2522if test x"${MISSING+set}" != xset; then
2523  case $am_aux_dir in
2524  *\ * | *\	*)
2525    MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2526  *)
2527    MISSING="\${SHELL} $am_aux_dir/missing" ;;
2528  esac
2529fi
2530# Use eval to expand $SHELL
2531if eval "$MISSING --run true"; then
2532  am_missing_run="$MISSING --run "
2533else
2534  am_missing_run=
2535  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
2536$as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2537fi
2538
2539if test x"${install_sh}" != xset; then
2540  case $am_aux_dir in
2541  *\ * | *\	*)
2542    install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2543  *)
2544    install_sh="\${SHELL} $am_aux_dir/install-sh"
2545  esac
2546fi
2547
2548# Installed binaries are usually stripped using `strip' when the user
2549# run `make install-strip'.  However `strip' might not be the right
2550# tool to use in cross-compilation environments, therefore Automake
2551# will honor the `STRIP' environment variable to overrule this program.
2552if test "$cross_compiling" != no; then
2553  if test -n "$ac_tool_prefix"; then
2554  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2555set dummy ${ac_tool_prefix}strip; ac_word=$2
2556{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2557$as_echo_n "checking for $ac_word... " >&6; }
2558if test "${ac_cv_prog_STRIP+set}" = set; then :
2559  $as_echo_n "(cached) " >&6
2560else
2561  if test -n "$STRIP"; then
2562  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2563else
2564as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2565for as_dir in $PATH
2566do
2567  IFS=$as_save_IFS
2568  test -z "$as_dir" && as_dir=.
2569    for ac_exec_ext in '' $ac_executable_extensions; do
2570  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2571    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2572    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2573    break 2
2574  fi
2575done
2576  done
2577IFS=$as_save_IFS
2578
2579fi
2580fi
2581STRIP=$ac_cv_prog_STRIP
2582if test -n "$STRIP"; then
2583  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2584$as_echo "$STRIP" >&6; }
2585else
2586  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2587$as_echo "no" >&6; }
2588fi
2589
2590
2591fi
2592if test -z "$ac_cv_prog_STRIP"; then
2593  ac_ct_STRIP=$STRIP
2594  # Extract the first word of "strip", so it can be a program name with args.
2595set dummy strip; ac_word=$2
2596{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2597$as_echo_n "checking for $ac_word... " >&6; }
2598if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
2599  $as_echo_n "(cached) " >&6
2600else
2601  if test -n "$ac_ct_STRIP"; then
2602  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2603else
2604as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2605for as_dir in $PATH
2606do
2607  IFS=$as_save_IFS
2608  test -z "$as_dir" && as_dir=.
2609    for ac_exec_ext in '' $ac_executable_extensions; do
2610  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2611    ac_cv_prog_ac_ct_STRIP="strip"
2612    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2613    break 2
2614  fi
2615done
2616  done
2617IFS=$as_save_IFS
2618
2619fi
2620fi
2621ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2622if test -n "$ac_ct_STRIP"; then
2623  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2624$as_echo "$ac_ct_STRIP" >&6; }
2625else
2626  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2627$as_echo "no" >&6; }
2628fi
2629
2630  if test "x$ac_ct_STRIP" = x; then
2631    STRIP=":"
2632  else
2633    case $cross_compiling:$ac_tool_warned in
2634yes:)
2635{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2636$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2637ac_tool_warned=yes ;;
2638esac
2639    STRIP=$ac_ct_STRIP
2640  fi
2641else
2642  STRIP="$ac_cv_prog_STRIP"
2643fi
2644
2645fi
2646INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2647
2648{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2649$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2650if test -z "$MKDIR_P"; then
2651  if test "${ac_cv_path_mkdir+set}" = set; then :
2652  $as_echo_n "(cached) " >&6
2653else
2654  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2655for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2656do
2657  IFS=$as_save_IFS
2658  test -z "$as_dir" && as_dir=.
2659    for ac_prog in mkdir gmkdir; do
2660	 for ac_exec_ext in '' $ac_executable_extensions; do
2661	   { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2662	   case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2663	     'mkdir (GNU coreutils) '* | \
2664	     'mkdir (coreutils) '* | \
2665	     'mkdir (fileutils) '4.1*)
2666	       ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2667	       break 3;;
2668	   esac
2669	 done
2670       done
2671  done
2672IFS=$as_save_IFS
2673
2674fi
2675
2676  if test "${ac_cv_path_mkdir+set}" = set; then
2677    MKDIR_P="$ac_cv_path_mkdir -p"
2678  else
2679    # As a last resort, use the slow shell script.  Don't cache a
2680    # value for MKDIR_P within a source directory, because that will
2681    # break other packages using the cache if that directory is
2682    # removed, or if the value is a relative name.
2683    test -d ./--version && rmdir ./--version
2684    MKDIR_P="$ac_install_sh -d"
2685  fi
2686fi
2687{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2688$as_echo "$MKDIR_P" >&6; }
2689
2690mkdir_p="$MKDIR_P"
2691case $mkdir_p in
2692  [\\/$]* | ?:[\\/]*) ;;
2693  */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2694esac
2695
2696for ac_prog in gawk mawk nawk awk
2697do
2698  # Extract the first word of "$ac_prog", so it can be a program name with args.
2699set dummy $ac_prog; ac_word=$2
2700{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2701$as_echo_n "checking for $ac_word... " >&6; }
2702if test "${ac_cv_prog_AWK+set}" = set; then :
2703  $as_echo_n "(cached) " >&6
2704else
2705  if test -n "$AWK"; then
2706  ac_cv_prog_AWK="$AWK" # Let the user override the test.
2707else
2708as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2709for as_dir in $PATH
2710do
2711  IFS=$as_save_IFS
2712  test -z "$as_dir" && as_dir=.
2713    for ac_exec_ext in '' $ac_executable_extensions; do
2714  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2715    ac_cv_prog_AWK="$ac_prog"
2716    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2717    break 2
2718  fi
2719done
2720  done
2721IFS=$as_save_IFS
2722
2723fi
2724fi
2725AWK=$ac_cv_prog_AWK
2726if test -n "$AWK"; then
2727  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2728$as_echo "$AWK" >&6; }
2729else
2730  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2731$as_echo "no" >&6; }
2732fi
2733
2734
2735  test -n "$AWK" && break
2736done
2737
2738{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2739$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2740set x ${MAKE-make}
2741ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2742if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
2743  $as_echo_n "(cached) " >&6
2744else
2745  cat >conftest.make <<\_ACEOF
2746SHELL = /bin/sh
2747all:
2748	@echo '@@@%%%=$(MAKE)=@@@%%%'
2749_ACEOF
2750# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2751case `${MAKE-make} -f conftest.make 2>/dev/null` in
2752  *@@@%%%=?*=@@@%%%*)
2753    eval ac_cv_prog_make_${ac_make}_set=yes;;
2754  *)
2755    eval ac_cv_prog_make_${ac_make}_set=no;;
2756esac
2757rm -f conftest.make
2758fi
2759if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2760  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2761$as_echo "yes" >&6; }
2762  SET_MAKE=
2763else
2764  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2765$as_echo "no" >&6; }
2766  SET_MAKE="MAKE=${MAKE-make}"
2767fi
2768
2769rm -rf .tst 2>/dev/null
2770mkdir .tst 2>/dev/null
2771if test -d .tst; then
2772  am__leading_dot=.
2773else
2774  am__leading_dot=_
2775fi
2776rmdir .tst 2>/dev/null
2777
2778if test "`cd $srcdir && pwd`" != "`pwd`"; then
2779  # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2780  # is not polluted with repeated "-I."
2781  am__isrc=' -I$(srcdir)'
2782  # test to see if srcdir already configured
2783  if test -f $srcdir/config.status; then
2784    as_fn_error "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2785  fi
2786fi
2787
2788# test whether we have cygpath
2789if test -z "$CYGPATH_W"; then
2790  if (cygpath --version) >/dev/null 2>/dev/null; then
2791    CYGPATH_W='cygpath -w'
2792  else
2793    CYGPATH_W=echo
2794  fi
2795fi
2796
2797
2798# Define the identity of the package.
2799 PACKAGE=zlib
2800 VERSION=1.1.4
2801
2802
2803cat >>confdefs.h <<_ACEOF
2804#define PACKAGE "$PACKAGE"
2805_ACEOF
2806
2807
2808cat >>confdefs.h <<_ACEOF
2809#define VERSION "$VERSION"
2810_ACEOF
2811
2812# Some tools Automake needs.
2813
2814ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2815
2816
2817AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2818
2819
2820AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2821
2822
2823AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2824
2825
2826MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2827
2828# We need awk for the "check" target.  The system "awk" is bad on
2829# some platforms.
2830# Always define AMTAR for backward compatibility.  Yes, it's still used
2831# in the wild :-(  We should find a proper way to deprecate it ...
2832AMTAR='$${TAR-tar}'
2833
2834am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
2835
2836
2837
2838
2839
2840
2841
2842{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
2843$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
2844    # Check whether --enable-maintainer-mode was given.
2845if test "${enable_maintainer_mode+set}" = set; then :
2846  enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2847else
2848  USE_MAINTAINER_MODE=no
2849fi
2850
2851  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
2852$as_echo "$USE_MAINTAINER_MODE" >&6; }
2853   if test $USE_MAINTAINER_MODE = yes; then
2854  MAINTAINER_MODE_TRUE=
2855  MAINTAINER_MODE_FALSE='#'
2856else
2857  MAINTAINER_MODE_TRUE='#'
2858  MAINTAINER_MODE_FALSE=
2859fi
2860
2861  MAINT=$MAINTAINER_MODE_TRUE
2862
2863
2864
2865
2866# Check whether --with-target-subdir was given.
2867if test "${with_target_subdir+set}" = set; then :
2868  withval=$with_target_subdir;
2869fi
2870
2871
2872if test -z "$with_target_subdir" || test "$with_target_subdir" = "."; then
2873   COMPPATH=.
2874else
2875   COMPPATH=..
2876fi
2877
2878
2879
2880# Check whether --with-cross-host was given.
2881if test "${with_cross_host+set}" = set; then :
2882  withval=$with_cross_host;
2883fi
2884
2885
2886# Check whether --enable-multilib was given.
2887if test "${enable_multilib+set}" = set; then :
2888  enableval=$enable_multilib; case "${enableval}" in
2889  yes) multilib=yes ;;
2890  no)  multilib=no ;;
2891  *)   as_fn_error "bad value ${enableval} for multilib option" "$LINENO" 5 ;;
2892 esac
2893else
2894  test -z "$with_target_subdir" && multilib=no || multilib=yes
2895fi
2896
2897
2898# Check whether --with-system-zlib was given.
2899if test "${with_system_zlib+set}" = set; then :
2900  withval=$with_system_zlib;
2901fi
2902
2903
2904# Make sure we don't test executables when making cross-tools.
2905
2906
2907# The same as in boehm-gc and libstdc++. Have to borrow it from there.
2908# We must force CC to /not/ be precious variables; otherwise
2909# the wrong, non-multilib-adjusted value will be used in multilibs.
2910# As a side effect, we have to subst CFLAGS ourselves.
2911
2912
2913
2914ac_ext=c
2915ac_cpp='$CPP $CPPFLAGS'
2916ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2917ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2918ac_compiler_gnu=$ac_cv_c_compiler_gnu
2919if test -n "$ac_tool_prefix"; then
2920  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2921set dummy ${ac_tool_prefix}gcc; ac_word=$2
2922{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2923$as_echo_n "checking for $ac_word... " >&6; }
2924if test "${ac_cv_prog_CC+set}" = set; then :
2925  $as_echo_n "(cached) " >&6
2926else
2927  if test -n "$CC"; then
2928  ac_cv_prog_CC="$CC" # Let the user override the test.
2929else
2930as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2931for as_dir in $PATH
2932do
2933  IFS=$as_save_IFS
2934  test -z "$as_dir" && as_dir=.
2935    for ac_exec_ext in '' $ac_executable_extensions; do
2936  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2937    ac_cv_prog_CC="${ac_tool_prefix}gcc"
2938    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2939    break 2
2940  fi
2941done
2942  done
2943IFS=$as_save_IFS
2944
2945fi
2946fi
2947CC=$ac_cv_prog_CC
2948if test -n "$CC"; then
2949  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2950$as_echo "$CC" >&6; }
2951else
2952  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2953$as_echo "no" >&6; }
2954fi
2955
2956
2957fi
2958if test -z "$ac_cv_prog_CC"; then
2959  ac_ct_CC=$CC
2960  # Extract the first word of "gcc", so it can be a program name with args.
2961set dummy gcc; ac_word=$2
2962{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2963$as_echo_n "checking for $ac_word... " >&6; }
2964if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
2965  $as_echo_n "(cached) " >&6
2966else
2967  if test -n "$ac_ct_CC"; then
2968  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2969else
2970as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2971for as_dir in $PATH
2972do
2973  IFS=$as_save_IFS
2974  test -z "$as_dir" && as_dir=.
2975    for ac_exec_ext in '' $ac_executable_extensions; do
2976  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2977    ac_cv_prog_ac_ct_CC="gcc"
2978    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2979    break 2
2980  fi
2981done
2982  done
2983IFS=$as_save_IFS
2984
2985fi
2986fi
2987ac_ct_CC=$ac_cv_prog_ac_ct_CC
2988if test -n "$ac_ct_CC"; then
2989  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2990$as_echo "$ac_ct_CC" >&6; }
2991else
2992  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2993$as_echo "no" >&6; }
2994fi
2995
2996  if test "x$ac_ct_CC" = x; then
2997    CC=""
2998  else
2999    case $cross_compiling:$ac_tool_warned in
3000yes:)
3001{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3002$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3003ac_tool_warned=yes ;;
3004esac
3005    CC=$ac_ct_CC
3006  fi
3007else
3008  CC="$ac_cv_prog_CC"
3009fi
3010
3011if test -z "$CC"; then
3012          if test -n "$ac_tool_prefix"; then
3013    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3014set dummy ${ac_tool_prefix}cc; ac_word=$2
3015{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3016$as_echo_n "checking for $ac_word... " >&6; }
3017if test "${ac_cv_prog_CC+set}" = set; then :
3018  $as_echo_n "(cached) " >&6
3019else
3020  if test -n "$CC"; then
3021  ac_cv_prog_CC="$CC" # Let the user override the test.
3022else
3023as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3024for as_dir in $PATH
3025do
3026  IFS=$as_save_IFS
3027  test -z "$as_dir" && as_dir=.
3028    for ac_exec_ext in '' $ac_executable_extensions; do
3029  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3030    ac_cv_prog_CC="${ac_tool_prefix}cc"
3031    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3032    break 2
3033  fi
3034done
3035  done
3036IFS=$as_save_IFS
3037
3038fi
3039fi
3040CC=$ac_cv_prog_CC
3041if test -n "$CC"; then
3042  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3043$as_echo "$CC" >&6; }
3044else
3045  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3046$as_echo "no" >&6; }
3047fi
3048
3049
3050  fi
3051fi
3052if test -z "$CC"; then
3053  # Extract the first word of "cc", so it can be a program name with args.
3054set dummy cc; ac_word=$2
3055{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3056$as_echo_n "checking for $ac_word... " >&6; }
3057if test "${ac_cv_prog_CC+set}" = set; then :
3058  $as_echo_n "(cached) " >&6
3059else
3060  if test -n "$CC"; then
3061  ac_cv_prog_CC="$CC" # Let the user override the test.
3062else
3063  ac_prog_rejected=no
3064as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3065for as_dir in $PATH
3066do
3067  IFS=$as_save_IFS
3068  test -z "$as_dir" && as_dir=.
3069    for ac_exec_ext in '' $ac_executable_extensions; do
3070  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3071    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3072       ac_prog_rejected=yes
3073       continue
3074     fi
3075    ac_cv_prog_CC="cc"
3076    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3077    break 2
3078  fi
3079done
3080  done
3081IFS=$as_save_IFS
3082
3083if test $ac_prog_rejected = yes; then
3084  # We found a bogon in the path, so make sure we never use it.
3085  set dummy $ac_cv_prog_CC
3086  shift
3087  if test $# != 0; then
3088    # We chose a different compiler from the bogus one.
3089    # However, it has the same basename, so the bogon will be chosen
3090    # first if we set CC to just the basename; use the full file name.
3091    shift
3092    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3093  fi
3094fi
3095fi
3096fi
3097CC=$ac_cv_prog_CC
3098if test -n "$CC"; then
3099  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3100$as_echo "$CC" >&6; }
3101else
3102  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3103$as_echo "no" >&6; }
3104fi
3105
3106
3107fi
3108if test -z "$CC"; then
3109  if test -n "$ac_tool_prefix"; then
3110  for ac_prog in cl.exe
3111  do
3112    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3113set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3114{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3115$as_echo_n "checking for $ac_word... " >&6; }
3116if test "${ac_cv_prog_CC+set}" = set; then :
3117  $as_echo_n "(cached) " >&6
3118else
3119  if test -n "$CC"; then
3120  ac_cv_prog_CC="$CC" # Let the user override the test.
3121else
3122as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3123for as_dir in $PATH
3124do
3125  IFS=$as_save_IFS
3126  test -z "$as_dir" && as_dir=.
3127    for ac_exec_ext in '' $ac_executable_extensions; do
3128  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3129    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3130    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3131    break 2
3132  fi
3133done
3134  done
3135IFS=$as_save_IFS
3136
3137fi
3138fi
3139CC=$ac_cv_prog_CC
3140if test -n "$CC"; then
3141  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3142$as_echo "$CC" >&6; }
3143else
3144  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3145$as_echo "no" >&6; }
3146fi
3147
3148
3149    test -n "$CC" && break
3150  done
3151fi
3152if test -z "$CC"; then
3153  ac_ct_CC=$CC
3154  for ac_prog in cl.exe
3155do
3156  # Extract the first word of "$ac_prog", so it can be a program name with args.
3157set dummy $ac_prog; ac_word=$2
3158{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3159$as_echo_n "checking for $ac_word... " >&6; }
3160if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3161  $as_echo_n "(cached) " >&6
3162else
3163  if test -n "$ac_ct_CC"; then
3164  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3165else
3166as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3167for as_dir in $PATH
3168do
3169  IFS=$as_save_IFS
3170  test -z "$as_dir" && as_dir=.
3171    for ac_exec_ext in '' $ac_executable_extensions; do
3172  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3173    ac_cv_prog_ac_ct_CC="$ac_prog"
3174    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3175    break 2
3176  fi
3177done
3178  done
3179IFS=$as_save_IFS
3180
3181fi
3182fi
3183ac_ct_CC=$ac_cv_prog_ac_ct_CC
3184if test -n "$ac_ct_CC"; then
3185  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3186$as_echo "$ac_ct_CC" >&6; }
3187else
3188  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3189$as_echo "no" >&6; }
3190fi
3191
3192
3193  test -n "$ac_ct_CC" && break
3194done
3195
3196  if test "x$ac_ct_CC" = x; then
3197    CC=""
3198  else
3199    case $cross_compiling:$ac_tool_warned in
3200yes:)
3201{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3202$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3203ac_tool_warned=yes ;;
3204esac
3205    CC=$ac_ct_CC
3206  fi
3207fi
3208
3209fi
3210
3211
3212test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3213$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3214as_fn_error "no acceptable C compiler found in \$PATH
3215See \`config.log' for more details." "$LINENO" 5; }
3216
3217# Provide some information about the compiler.
3218$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3219set X $ac_compile
3220ac_compiler=$2
3221for ac_option in --version -v -V -qversion; do
3222  { { ac_try="$ac_compiler $ac_option >&5"
3223case "(($ac_try" in
3224  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3225  *) ac_try_echo=$ac_try;;
3226esac
3227eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3228$as_echo "$ac_try_echo"; } >&5
3229  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3230  ac_status=$?
3231  if test -s conftest.err; then
3232    sed '10a\
3233... rest of stderr output deleted ...
3234         10q' conftest.err >conftest.er1
3235    cat conftest.er1 >&5
3236    rm -f conftest.er1 conftest.err
3237  fi
3238  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3239  test $ac_status = 0; }
3240done
3241
3242cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3243/* end confdefs.h.  */
3244
3245int
3246main ()
3247{
3248
3249  ;
3250  return 0;
3251}
3252_ACEOF
3253# FIXME: Cleanup?
3254if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
3255  (eval $ac_link) 2>&5
3256  ac_status=$?
3257  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3258  test $ac_status = 0; }; then :
3259  gcc_no_link=no
3260else
3261  gcc_no_link=yes
3262fi
3263if test x$gcc_no_link = xyes; then
3264  # Setting cross_compile will disable run tests; it will
3265  # also disable AC_CHECK_FILE but that's generally
3266  # correct if we can't link.
3267  cross_compiling=yes
3268  EXEEXT=
3269else
3270  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3271/* end confdefs.h.  */
3272
3273int
3274main ()
3275{
3276
3277  ;
3278  return 0;
3279}
3280_ACEOF
3281ac_clean_files_save=$ac_clean_files
3282ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
3283# Try to create an executable without -o first, disregard a.out.
3284# It will help us diagnose broken compilers, and finding out an intuition
3285# of exeext.
3286{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3287$as_echo_n "checking for C compiler default output file name... " >&6; }
3288ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3289
3290# The possible output files:
3291ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3292
3293ac_rmfiles=
3294for ac_file in $ac_files
3295do
3296  case $ac_file in
3297    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3298    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3299  esac
3300done
3301rm -f $ac_rmfiles
3302
3303if { { ac_try="$ac_link_default"
3304case "(($ac_try" in
3305  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3306  *) ac_try_echo=$ac_try;;
3307esac
3308eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3309$as_echo "$ac_try_echo"; } >&5
3310  (eval "$ac_link_default") 2>&5
3311  ac_status=$?
3312  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3313  test $ac_status = 0; }; then :
3314  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3315# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3316# in a Makefile.  We should not override ac_cv_exeext if it was cached,
3317# so that the user can short-circuit this test for compilers unknown to
3318# Autoconf.
3319for ac_file in $ac_files ''
3320do
3321  test -f "$ac_file" || continue
3322  case $ac_file in
3323    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3324	;;
3325    [ab].out )
3326	# We found the default executable, but exeext='' is most
3327	# certainly right.
3328	break;;
3329    *.* )
3330	if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3331	then :; else
3332	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3333	fi
3334	# We set ac_cv_exeext here because the later test for it is not
3335	# safe: cross compilers may not add the suffix if given an `-o'
3336	# argument, so we may need to know it at that point already.
3337	# Even if this section looks crufty: it has the advantage of
3338	# actually working.
3339	break;;
3340    * )
3341	break;;
3342  esac
3343done
3344test "$ac_cv_exeext" = no && ac_cv_exeext=
3345
3346else
3347  ac_file=''
3348fi
3349{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3350$as_echo "$ac_file" >&6; }
3351if test -z "$ac_file"; then :
3352  $as_echo "$as_me: failed program was:" >&5
3353sed 's/^/| /' conftest.$ac_ext >&5
3354
3355{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3356$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3357{ as_fn_set_status 77
3358as_fn_error "C compiler cannot create executables
3359See \`config.log' for more details." "$LINENO" 5; }; }
3360fi
3361ac_exeext=$ac_cv_exeext
3362
3363# Check that the compiler produces executables we can run.  If not, either
3364# the compiler is broken, or we cross compile.
3365{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3366$as_echo_n "checking whether the C compiler works... " >&6; }
3367# If not cross compiling, check that we can run a simple program.
3368if test "$cross_compiling" != yes; then
3369  if { ac_try='./$ac_file'
3370  { { case "(($ac_try" in
3371  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3372  *) ac_try_echo=$ac_try;;
3373esac
3374eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3375$as_echo "$ac_try_echo"; } >&5
3376  (eval "$ac_try") 2>&5
3377  ac_status=$?
3378  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3379  test $ac_status = 0; }; }; then
3380    cross_compiling=no
3381  else
3382    if test "$cross_compiling" = maybe; then
3383	cross_compiling=yes
3384    else
3385	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3386$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3387as_fn_error "cannot run C compiled programs.
3388If you meant to cross compile, use \`--host'.
3389See \`config.log' for more details." "$LINENO" 5; }
3390    fi
3391  fi
3392fi
3393{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3394$as_echo "yes" >&6; }
3395
3396rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
3397ac_clean_files=$ac_clean_files_save
3398# Check that the compiler produces executables we can run.  If not, either
3399# the compiler is broken, or we cross compile.
3400{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3401$as_echo_n "checking whether we are cross compiling... " >&6; }
3402{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3403$as_echo "$cross_compiling" >&6; }
3404
3405{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3406$as_echo_n "checking for suffix of executables... " >&6; }
3407if { { ac_try="$ac_link"
3408case "(($ac_try" in
3409  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3410  *) ac_try_echo=$ac_try;;
3411esac
3412eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3413$as_echo "$ac_try_echo"; } >&5
3414  (eval "$ac_link") 2>&5
3415  ac_status=$?
3416  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3417  test $ac_status = 0; }; then :
3418  # If both `conftest.exe' and `conftest' are `present' (well, observable)
3419# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3420# work properly (i.e., refer to `conftest.exe'), while it won't with
3421# `rm'.
3422for ac_file in conftest.exe conftest conftest.*; do
3423  test -f "$ac_file" || continue
3424  case $ac_file in
3425    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3426    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3427	  break;;
3428    * ) break;;
3429  esac
3430done
3431else
3432  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3433$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3434as_fn_error "cannot compute suffix of executables: cannot compile and link
3435See \`config.log' for more details." "$LINENO" 5; }
3436fi
3437rm -f conftest$ac_cv_exeext
3438{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3439$as_echo "$ac_cv_exeext" >&6; }
3440
3441rm -f conftest.$ac_ext
3442EXEEXT=$ac_cv_exeext
3443ac_exeext=$EXEEXT
3444fi
3445{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3446$as_echo_n "checking for suffix of object files... " >&6; }
3447if test "${ac_cv_objext+set}" = set; then :
3448  $as_echo_n "(cached) " >&6
3449else
3450  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3451/* end confdefs.h.  */
3452
3453int
3454main ()
3455{
3456
3457  ;
3458  return 0;
3459}
3460_ACEOF
3461rm -f conftest.o conftest.obj
3462if { { ac_try="$ac_compile"
3463case "(($ac_try" in
3464  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3465  *) ac_try_echo=$ac_try;;
3466esac
3467eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3468$as_echo "$ac_try_echo"; } >&5
3469  (eval "$ac_compile") 2>&5
3470  ac_status=$?
3471  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3472  test $ac_status = 0; }; then :
3473  for ac_file in conftest.o conftest.obj conftest.*; do
3474  test -f "$ac_file" || continue;
3475  case $ac_file in
3476    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3477    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3478       break;;
3479  esac
3480done
3481else
3482  $as_echo "$as_me: failed program was:" >&5
3483sed 's/^/| /' conftest.$ac_ext >&5
3484
3485{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3486$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3487as_fn_error "cannot compute suffix of object files: cannot compile
3488See \`config.log' for more details." "$LINENO" 5; }
3489fi
3490rm -f conftest.$ac_cv_objext conftest.$ac_ext
3491fi
3492{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3493$as_echo "$ac_cv_objext" >&6; }
3494OBJEXT=$ac_cv_objext
3495ac_objext=$OBJEXT
3496{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3497$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3498if test "${ac_cv_c_compiler_gnu+set}" = set; then :
3499  $as_echo_n "(cached) " >&6
3500else
3501  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3502/* end confdefs.h.  */
3503
3504int
3505main ()
3506{
3507#ifndef __GNUC__
3508       choke me
3509#endif
3510
3511  ;
3512  return 0;
3513}
3514_ACEOF
3515if ac_fn_c_try_compile "$LINENO"; then :
3516  ac_compiler_gnu=yes
3517else
3518  ac_compiler_gnu=no
3519fi
3520rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3521ac_cv_c_compiler_gnu=$ac_compiler_gnu
3522
3523fi
3524{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3525$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3526if test $ac_compiler_gnu = yes; then
3527  GCC=yes
3528else
3529  GCC=
3530fi
3531ac_test_CFLAGS=${CFLAGS+set}
3532ac_save_CFLAGS=$CFLAGS
3533{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3534$as_echo_n "checking whether $CC accepts -g... " >&6; }
3535if test "${ac_cv_prog_cc_g+set}" = set; then :
3536  $as_echo_n "(cached) " >&6
3537else
3538  ac_save_c_werror_flag=$ac_c_werror_flag
3539   ac_c_werror_flag=yes
3540   ac_cv_prog_cc_g=no
3541   CFLAGS="-g"
3542   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3543/* end confdefs.h.  */
3544
3545int
3546main ()
3547{
3548
3549  ;
3550  return 0;
3551}
3552_ACEOF
3553if ac_fn_c_try_compile "$LINENO"; then :
3554  ac_cv_prog_cc_g=yes
3555else
3556  CFLAGS=""
3557      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3558/* end confdefs.h.  */
3559
3560int
3561main ()
3562{
3563
3564  ;
3565  return 0;
3566}
3567_ACEOF
3568if ac_fn_c_try_compile "$LINENO"; then :
3569
3570else
3571  ac_c_werror_flag=$ac_save_c_werror_flag
3572	 CFLAGS="-g"
3573	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3574/* end confdefs.h.  */
3575
3576int
3577main ()
3578{
3579
3580  ;
3581  return 0;
3582}
3583_ACEOF
3584if ac_fn_c_try_compile "$LINENO"; then :
3585  ac_cv_prog_cc_g=yes
3586fi
3587rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3588fi
3589rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3590fi
3591rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3592   ac_c_werror_flag=$ac_save_c_werror_flag
3593fi
3594{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3595$as_echo "$ac_cv_prog_cc_g" >&6; }
3596if test "$ac_test_CFLAGS" = set; then
3597  CFLAGS=$ac_save_CFLAGS
3598elif test $ac_cv_prog_cc_g = yes; then
3599  if test "$GCC" = yes; then
3600    CFLAGS="-g -O2"
3601  else
3602    CFLAGS="-g"
3603  fi
3604else
3605  if test "$GCC" = yes; then
3606    CFLAGS="-O2"
3607  else
3608    CFLAGS=
3609  fi
3610fi
3611{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3612$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3613if test "${ac_cv_prog_cc_c89+set}" = set; then :
3614  $as_echo_n "(cached) " >&6
3615else
3616  ac_cv_prog_cc_c89=no
3617ac_save_CC=$CC
3618cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3619/* end confdefs.h.  */
3620#include <stdarg.h>
3621#include <stdio.h>
3622#include <sys/types.h>
3623#include <sys/stat.h>
3624/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3625struct buf { int x; };
3626FILE * (*rcsopen) (struct buf *, struct stat *, int);
3627static char *e (p, i)
3628     char **p;
3629     int i;
3630{
3631  return p[i];
3632}
3633static char *f (char * (*g) (char **, int), char **p, ...)
3634{
3635  char *s;
3636  va_list v;
3637  va_start (v,p);
3638  s = g (p, va_arg (v,int));
3639  va_end (v);
3640  return s;
3641}
3642
3643/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3644   function prototypes and stuff, but not '\xHH' hex character constants.
3645   These don't provoke an error unfortunately, instead are silently treated
3646   as 'x'.  The following induces an error, until -std is added to get
3647   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3648   array size at least.  It's necessary to write '\x00'==0 to get something
3649   that's true only with -std.  */
3650int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3651
3652/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3653   inside strings and character constants.  */
3654#define FOO(x) 'x'
3655int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3656
3657int test (int i, double x);
3658struct s1 {int (*f) (int a);};
3659struct s2 {int (*f) (double a);};
3660int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3661int argc;
3662char **argv;
3663int
3664main ()
3665{
3666return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3667  ;
3668  return 0;
3669}
3670_ACEOF
3671for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3672	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3673do
3674  CC="$ac_save_CC $ac_arg"
3675  if ac_fn_c_try_compile "$LINENO"; then :
3676  ac_cv_prog_cc_c89=$ac_arg
3677fi
3678rm -f core conftest.err conftest.$ac_objext
3679  test "x$ac_cv_prog_cc_c89" != "xno" && break
3680done
3681rm -f conftest.$ac_ext
3682CC=$ac_save_CC
3683
3684fi
3685# AC_CACHE_VAL
3686case "x$ac_cv_prog_cc_c89" in
3687  x)
3688    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3689$as_echo "none needed" >&6; } ;;
3690  xno)
3691    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3692$as_echo "unsupported" >&6; } ;;
3693  *)
3694    CC="$CC $ac_cv_prog_cc_c89"
3695    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3696$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3697esac
3698if test "x$ac_cv_prog_cc_c89" != xno; then :
3699
3700fi
3701
3702ac_ext=c
3703ac_cpp='$CPP $CPPFLAGS'
3704ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3705ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3706ac_compiler_gnu=$ac_cv_c_compiler_gnu
3707DEPDIR="${am__leading_dot}deps"
3708
3709ac_config_commands="$ac_config_commands depfiles"
3710
3711
3712am_make=${MAKE-make}
3713cat > confinc << 'END'
3714am__doit:
3715	@echo this is the am__doit target
3716.PHONY: am__doit
3717END
3718# If we don't find an include directive, just comment out the code.
3719{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3720$as_echo_n "checking for style of include used by $am_make... " >&6; }
3721am__include="#"
3722am__quote=
3723_am_result=none
3724# First try GNU make style include.
3725echo "include confinc" > confmf
3726# Ignore all kinds of additional output from `make'.
3727case `$am_make -s -f confmf 2> /dev/null` in #(
3728*the\ am__doit\ target*)
3729  am__include=include
3730  am__quote=
3731  _am_result=GNU
3732  ;;
3733esac
3734# Now try BSD make style include.
3735if test "$am__include" = "#"; then
3736   echo '.include "confinc"' > confmf
3737   case `$am_make -s -f confmf 2> /dev/null` in #(
3738   *the\ am__doit\ target*)
3739     am__include=.include
3740     am__quote="\""
3741     _am_result=BSD
3742     ;;
3743   esac
3744fi
3745
3746
3747{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3748$as_echo "$_am_result" >&6; }
3749rm -f confinc confmf
3750
3751# Check whether --enable-dependency-tracking was given.
3752if test "${enable_dependency_tracking+set}" = set; then :
3753  enableval=$enable_dependency_tracking;
3754fi
3755
3756if test "x$enable_dependency_tracking" != xno; then
3757  am_depcomp="$ac_aux_dir/depcomp"
3758  AMDEPBACKSLASH='\'
3759  am__nodep='_no'
3760fi
3761 if test "x$enable_dependency_tracking" != xno; then
3762  AMDEP_TRUE=
3763  AMDEP_FALSE='#'
3764else
3765  AMDEP_TRUE='#'
3766  AMDEP_FALSE=
3767fi
3768
3769
3770
3771depcc="$CC"   am_compiler_list=
3772
3773{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3774$as_echo_n "checking dependency style of $depcc... " >&6; }
3775if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
3776  $as_echo_n "(cached) " >&6
3777else
3778  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3779  # We make a subdir and do the tests there.  Otherwise we can end up
3780  # making bogus files that we don't know about and never remove.  For
3781  # instance it was reported that on HP-UX the gcc test will end up
3782  # making a dummy file named `D' -- because `-MD' means `put the output
3783  # in D'.
3784  rm -rf conftest.dir
3785  mkdir conftest.dir
3786  # Copy depcomp to subdir because otherwise we won't find it if we're
3787  # using a relative directory.
3788  cp "$am_depcomp" conftest.dir
3789  cd conftest.dir
3790  # We will build objects and dependencies in a subdirectory because
3791  # it helps to detect inapplicable dependency modes.  For instance
3792  # both Tru64's cc and ICC support -MD to output dependencies as a
3793  # side effect of compilation, but ICC will put the dependencies in
3794  # the current directory while Tru64 will put them in the object
3795  # directory.
3796  mkdir sub
3797
3798  am_cv_CC_dependencies_compiler_type=none
3799  if test "$am_compiler_list" = ""; then
3800     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3801  fi
3802  am__universal=false
3803  case " $depcc " in #(
3804     *\ -arch\ *\ -arch\ *) am__universal=true ;;
3805     esac
3806
3807  for depmode in $am_compiler_list; do
3808    # Setup a source with many dependencies, because some compilers
3809    # like to wrap large dependency lists on column 80 (with \), and
3810    # we should not choose a depcomp mode which is confused by this.
3811    #
3812    # We need to recreate these files for each test, as the compiler may
3813    # overwrite some of them when testing with obscure command lines.
3814    # This happens at least with the AIX C compiler.
3815    : > sub/conftest.c
3816    for i in 1 2 3 4 5 6; do
3817      echo '#include "conftst'$i'.h"' >> sub/conftest.c
3818      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3819      # Solaris 8's {/usr,}/bin/sh.
3820      touch sub/conftst$i.h
3821    done
3822    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3823
3824    # We check with `-c' and `-o' for the sake of the "dashmstdout"
3825    # mode.  It turns out that the SunPro C++ compiler does not properly
3826    # handle `-M -o', and we need to detect this.  Also, some Intel
3827    # versions had trouble with output in subdirs
3828    am__obj=sub/conftest.${OBJEXT-o}
3829    am__minus_obj="-o $am__obj"
3830    case $depmode in
3831    gcc)
3832      # This depmode causes a compiler race in universal mode.
3833      test "$am__universal" = false || continue
3834      ;;
3835    nosideeffect)
3836      # after this tag, mechanisms are not by side-effect, so they'll
3837      # only be used when explicitly requested
3838      if test "x$enable_dependency_tracking" = xyes; then
3839	continue
3840      else
3841	break
3842      fi
3843      ;;
3844    msvc7 | msvc7msys | msvisualcpp | msvcmsys)
3845      # This compiler won't grok `-c -o', but also, the minuso test has
3846      # not run yet.  These depmodes are late enough in the game, and
3847      # so weak that their functioning should not be impacted.
3848      am__obj=conftest.${OBJEXT-o}
3849      am__minus_obj=
3850      ;;
3851    none) break ;;
3852    esac
3853    if depmode=$depmode \
3854       source=sub/conftest.c object=$am__obj \
3855       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3856       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3857         >/dev/null 2>conftest.err &&
3858       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3859       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3860       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
3861       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3862      # icc doesn't choke on unknown options, it will just issue warnings
3863      # or remarks (even with -Werror).  So we grep stderr for any message
3864      # that says an option was ignored or not supported.
3865      # When given -MP, icc 7.0 and 7.1 complain thusly:
3866      #   icc: Command line warning: ignoring option '-M'; no argument required
3867      # The diagnosis changed in icc 8.0:
3868      #   icc: Command line remark: option '-MP' not supported
3869      if (grep 'ignoring option' conftest.err ||
3870          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3871        am_cv_CC_dependencies_compiler_type=$depmode
3872        break
3873      fi
3874    fi
3875  done
3876
3877  cd ..
3878  rm -rf conftest.dir
3879else
3880  am_cv_CC_dependencies_compiler_type=none
3881fi
3882
3883fi
3884{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
3885$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
3886CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3887
3888 if
3889  test "x$enable_dependency_tracking" != xno \
3890  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3891  am__fastdepCC_TRUE=
3892  am__fastdepCC_FALSE='#'
3893else
3894  am__fastdepCC_TRUE='#'
3895  am__fastdepCC_FALSE=
3896fi
3897
3898
3899
3900
3901
3902
3903case `pwd` in
3904  *\ * | *\	*)
3905    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
3906$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
3907esac
3908
3909
3910
3911macro_version='2.2.7a'
3912macro_revision='1.3134'
3913
3914
3915
3916
3917
3918
3919
3920
3921
3922
3923
3924
3925
3926ltmain="$ac_aux_dir/ltmain.sh"
3927
3928# Backslashify metacharacters that are still active within
3929# double-quoted strings.
3930sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
3931
3932# Same as above, but do not quote variable references.
3933double_quote_subst='s/\(["`\\]\)/\\\1/g'
3934
3935# Sed substitution to delay expansion of an escaped shell variable in a
3936# double_quote_subst'ed string.
3937delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
3938
3939# Sed substitution to delay expansion of an escaped single quote.
3940delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
3941
3942# Sed substitution to avoid accidental globbing in evaled expressions
3943no_glob_subst='s/\*/\\\*/g'
3944
3945ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
3946ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
3947ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
3948
3949{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
3950$as_echo_n "checking how to print strings... " >&6; }
3951# Test print first, because it will be a builtin if present.
3952if test "X`print -r -- -n 2>/dev/null`" = X-n && \
3953   test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
3954  ECHO='print -r --'
3955elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
3956  ECHO='printf %s\n'
3957else
3958  # Use this function as a fallback that always works.
3959  func_fallback_echo ()
3960  {
3961    eval 'cat <<_LTECHO_EOF
3962$1
3963_LTECHO_EOF'
3964  }
3965  ECHO='func_fallback_echo'
3966fi
3967
3968# func_echo_all arg...
3969# Invoke $ECHO with all args, space-separated.
3970func_echo_all ()
3971{
3972    $ECHO ""
3973}
3974
3975case "$ECHO" in
3976  printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
3977$as_echo "printf" >&6; } ;;
3978  print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
3979$as_echo "print -r" >&6; } ;;
3980  *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
3981$as_echo "cat" >&6; } ;;
3982esac
3983
3984
3985
3986
3987
3988
3989
3990
3991
3992
3993
3994
3995
3996
3997{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
3998$as_echo_n "checking for a sed that does not truncate output... " >&6; }
3999if test "${ac_cv_path_SED+set}" = set; then :
4000  $as_echo_n "(cached) " >&6
4001else
4002            ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4003     for ac_i in 1 2 3 4 5 6 7; do
4004       ac_script="$ac_script$as_nl$ac_script"
4005     done
4006     echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4007     { ac_script=; unset ac_script;}
4008     if test -z "$SED"; then
4009  ac_path_SED_found=false
4010  # Loop through the user's path and test for each of PROGNAME-LIST
4011  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4012for as_dir in $PATH
4013do
4014  IFS=$as_save_IFS
4015  test -z "$as_dir" && as_dir=.
4016    for ac_prog in sed gsed; do
4017    for ac_exec_ext in '' $ac_executable_extensions; do
4018      ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4019      { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
4020# Check for GNU ac_path_SED and select it if it is found.
4021  # Check for GNU $ac_path_SED
4022case `"$ac_path_SED" --version 2>&1` in
4023*GNU*)
4024  ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4025*)
4026  ac_count=0
4027  $as_echo_n 0123456789 >"conftest.in"
4028  while :
4029  do
4030    cat "conftest.in" "conftest.in" >"conftest.tmp"
4031    mv "conftest.tmp" "conftest.in"
4032    cp "conftest.in" "conftest.nl"
4033    $as_echo '' >> "conftest.nl"
4034    "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4035    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4036    as_fn_arith $ac_count + 1 && ac_count=$as_val
4037    if test $ac_count -gt ${ac_path_SED_max-0}; then
4038      # Best one so far, save it but keep looking for a better one
4039      ac_cv_path_SED="$ac_path_SED"
4040      ac_path_SED_max=$ac_count
4041    fi
4042    # 10*(2^10) chars as input seems more than enough
4043    test $ac_count -gt 10 && break
4044  done
4045  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4046esac
4047
4048      $ac_path_SED_found && break 3
4049    done
4050  done
4051  done
4052IFS=$as_save_IFS
4053  if test -z "$ac_cv_path_SED"; then
4054    as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
4055  fi
4056else
4057  ac_cv_path_SED=$SED
4058fi
4059
4060fi
4061{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4062$as_echo "$ac_cv_path_SED" >&6; }
4063 SED="$ac_cv_path_SED"
4064  rm -f conftest.sed
4065
4066test -z "$SED" && SED=sed
4067Xsed="$SED -e 1s/^X//"
4068
4069
4070
4071
4072
4073
4074
4075
4076
4077
4078
4079{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4080$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4081if test "${ac_cv_path_GREP+set}" = set; then :
4082  $as_echo_n "(cached) " >&6
4083else
4084  if test -z "$GREP"; then
4085  ac_path_GREP_found=false
4086  # Loop through the user's path and test for each of PROGNAME-LIST
4087  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4088for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4089do
4090  IFS=$as_save_IFS
4091  test -z "$as_dir" && as_dir=.
4092    for ac_prog in grep ggrep; do
4093    for ac_exec_ext in '' $ac_executable_extensions; do
4094      ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4095      { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4096# Check for GNU ac_path_GREP and select it if it is found.
4097  # Check for GNU $ac_path_GREP
4098case `"$ac_path_GREP" --version 2>&1` in
4099*GNU*)
4100  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4101*)
4102  ac_count=0
4103  $as_echo_n 0123456789 >"conftest.in"
4104  while :
4105  do
4106    cat "conftest.in" "conftest.in" >"conftest.tmp"
4107    mv "conftest.tmp" "conftest.in"
4108    cp "conftest.in" "conftest.nl"
4109    $as_echo 'GREP' >> "conftest.nl"
4110    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4111    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4112    as_fn_arith $ac_count + 1 && ac_count=$as_val
4113    if test $ac_count -gt ${ac_path_GREP_max-0}; then
4114      # Best one so far, save it but keep looking for a better one
4115      ac_cv_path_GREP="$ac_path_GREP"
4116      ac_path_GREP_max=$ac_count
4117    fi
4118    # 10*(2^10) chars as input seems more than enough
4119    test $ac_count -gt 10 && break
4120  done
4121  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4122esac
4123
4124      $ac_path_GREP_found && break 3
4125    done
4126  done
4127  done
4128IFS=$as_save_IFS
4129  if test -z "$ac_cv_path_GREP"; then
4130    as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4131  fi
4132else
4133  ac_cv_path_GREP=$GREP
4134fi
4135
4136fi
4137{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4138$as_echo "$ac_cv_path_GREP" >&6; }
4139 GREP="$ac_cv_path_GREP"
4140
4141
4142{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4143$as_echo_n "checking for egrep... " >&6; }
4144if test "${ac_cv_path_EGREP+set}" = set; then :
4145  $as_echo_n "(cached) " >&6
4146else
4147  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4148   then ac_cv_path_EGREP="$GREP -E"
4149   else
4150     if test -z "$EGREP"; then
4151  ac_path_EGREP_found=false
4152  # Loop through the user's path and test for each of PROGNAME-LIST
4153  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4154for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4155do
4156  IFS=$as_save_IFS
4157  test -z "$as_dir" && as_dir=.
4158    for ac_prog in egrep; do
4159    for ac_exec_ext in '' $ac_executable_extensions; do
4160      ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4161      { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4162# Check for GNU ac_path_EGREP and select it if it is found.
4163  # Check for GNU $ac_path_EGREP
4164case `"$ac_path_EGREP" --version 2>&1` in
4165*GNU*)
4166  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4167*)
4168  ac_count=0
4169  $as_echo_n 0123456789 >"conftest.in"
4170  while :
4171  do
4172    cat "conftest.in" "conftest.in" >"conftest.tmp"
4173    mv "conftest.tmp" "conftest.in"
4174    cp "conftest.in" "conftest.nl"
4175    $as_echo 'EGREP' >> "conftest.nl"
4176    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4177    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4178    as_fn_arith $ac_count + 1 && ac_count=$as_val
4179    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4180      # Best one so far, save it but keep looking for a better one
4181      ac_cv_path_EGREP="$ac_path_EGREP"
4182      ac_path_EGREP_max=$ac_count
4183    fi
4184    # 10*(2^10) chars as input seems more than enough
4185    test $ac_count -gt 10 && break
4186  done
4187  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4188esac
4189
4190      $ac_path_EGREP_found && break 3
4191    done
4192  done
4193  done
4194IFS=$as_save_IFS
4195  if test -z "$ac_cv_path_EGREP"; then
4196    as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4197  fi
4198else
4199  ac_cv_path_EGREP=$EGREP
4200fi
4201
4202   fi
4203fi
4204{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4205$as_echo "$ac_cv_path_EGREP" >&6; }
4206 EGREP="$ac_cv_path_EGREP"
4207
4208
4209{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4210$as_echo_n "checking for fgrep... " >&6; }
4211if test "${ac_cv_path_FGREP+set}" = set; then :
4212  $as_echo_n "(cached) " >&6
4213else
4214  if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4215   then ac_cv_path_FGREP="$GREP -F"
4216   else
4217     if test -z "$FGREP"; then
4218  ac_path_FGREP_found=false
4219  # Loop through the user's path and test for each of PROGNAME-LIST
4220  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4221for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4222do
4223  IFS=$as_save_IFS
4224  test -z "$as_dir" && as_dir=.
4225    for ac_prog in fgrep; do
4226    for ac_exec_ext in '' $ac_executable_extensions; do
4227      ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4228      { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
4229# Check for GNU ac_path_FGREP and select it if it is found.
4230  # Check for GNU $ac_path_FGREP
4231case `"$ac_path_FGREP" --version 2>&1` in
4232*GNU*)
4233  ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4234*)
4235  ac_count=0
4236  $as_echo_n 0123456789 >"conftest.in"
4237  while :
4238  do
4239    cat "conftest.in" "conftest.in" >"conftest.tmp"
4240    mv "conftest.tmp" "conftest.in"
4241    cp "conftest.in" "conftest.nl"
4242    $as_echo 'FGREP' >> "conftest.nl"
4243    "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4244    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4245    as_fn_arith $ac_count + 1 && ac_count=$as_val
4246    if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4247      # Best one so far, save it but keep looking for a better one
4248      ac_cv_path_FGREP="$ac_path_FGREP"
4249      ac_path_FGREP_max=$ac_count
4250    fi
4251    # 10*(2^10) chars as input seems more than enough
4252    test $ac_count -gt 10 && break
4253  done
4254  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4255esac
4256
4257      $ac_path_FGREP_found && break 3
4258    done
4259  done
4260  done
4261IFS=$as_save_IFS
4262  if test -z "$ac_cv_path_FGREP"; then
4263    as_fn_error "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4264  fi
4265else
4266  ac_cv_path_FGREP=$FGREP
4267fi
4268
4269   fi
4270fi
4271{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
4272$as_echo "$ac_cv_path_FGREP" >&6; }
4273 FGREP="$ac_cv_path_FGREP"
4274
4275
4276test -z "$GREP" && GREP=grep
4277
4278
4279
4280
4281
4282
4283
4284
4285
4286
4287
4288
4289
4290
4291
4292
4293
4294
4295
4296# Check whether --with-gnu-ld was given.
4297if test "${with_gnu_ld+set}" = set; then :
4298  withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4299else
4300  with_gnu_ld=no
4301fi
4302
4303ac_prog=ld
4304if test "$GCC" = yes; then
4305  # Check if gcc -print-prog-name=ld gives a path.
4306  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
4307$as_echo_n "checking for ld used by $CC... " >&6; }
4308  case $host in
4309  *-*-mingw*)
4310    # gcc leaves a trailing carriage return which upsets mingw
4311    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4312  *)
4313    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4314  esac
4315  case $ac_prog in
4316    # Accept absolute paths.
4317    [\\/]* | ?:[\\/]*)
4318      re_direlt='/[^/][^/]*/\.\./'
4319      # Canonicalize the pathname of ld
4320      ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4321      while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4322	ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4323      done
4324      test -z "$LD" && LD="$ac_prog"
4325      ;;
4326  "")
4327    # If it fails, then pretend we aren't using GCC.
4328    ac_prog=ld
4329    ;;
4330  *)
4331    # If it is relative, then search for the first ld in PATH.
4332    with_gnu_ld=unknown
4333    ;;
4334  esac
4335elif test "$with_gnu_ld" = yes; then
4336  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
4337$as_echo_n "checking for GNU ld... " >&6; }
4338else
4339  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
4340$as_echo_n "checking for non-GNU ld... " >&6; }
4341fi
4342if test "${lt_cv_path_LD+set}" = set; then :
4343  $as_echo_n "(cached) " >&6
4344else
4345  if test -z "$LD"; then
4346  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4347  for ac_dir in $PATH; do
4348    IFS="$lt_save_ifs"
4349    test -z "$ac_dir" && ac_dir=.
4350    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4351      lt_cv_path_LD="$ac_dir/$ac_prog"
4352      # Check to see if the program is GNU ld.  I'd rather use --version,
4353      # but apparently some variants of GNU ld only accept -v.
4354      # Break only if it was the GNU/non-GNU ld that we prefer.
4355      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4356      *GNU* | *'with BFD'*)
4357	test "$with_gnu_ld" != no && break
4358	;;
4359      *)
4360	test "$with_gnu_ld" != yes && break
4361	;;
4362      esac
4363    fi
4364  done
4365  IFS="$lt_save_ifs"
4366else
4367  lt_cv_path_LD="$LD" # Let the user override the test with a path.
4368fi
4369fi
4370
4371LD="$lt_cv_path_LD"
4372if test -n "$LD"; then
4373  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
4374$as_echo "$LD" >&6; }
4375else
4376  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4377$as_echo "no" >&6; }
4378fi
4379test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
4380{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
4381$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4382if test "${lt_cv_prog_gnu_ld+set}" = set; then :
4383  $as_echo_n "(cached) " >&6
4384else
4385  # I'd rather use --version here, but apparently some GNU lds only accept -v.
4386case `$LD -v 2>&1 </dev/null` in
4387*GNU* | *'with BFD'*)
4388  lt_cv_prog_gnu_ld=yes
4389  ;;
4390*)
4391  lt_cv_prog_gnu_ld=no
4392  ;;
4393esac
4394fi
4395{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
4396$as_echo "$lt_cv_prog_gnu_ld" >&6; }
4397with_gnu_ld=$lt_cv_prog_gnu_ld
4398
4399
4400
4401
4402
4403
4404
4405
4406
4407{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
4408$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
4409if test "${lt_cv_path_NM+set}" = set; then :
4410  $as_echo_n "(cached) " >&6
4411else
4412  if test -n "$NM"; then
4413  # Let the user override the test.
4414  lt_cv_path_NM="$NM"
4415else
4416  lt_nm_to_check="${ac_tool_prefix}nm"
4417  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4418    lt_nm_to_check="$lt_nm_to_check nm"
4419  fi
4420  for lt_tmp_nm in $lt_nm_to_check; do
4421    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4422    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4423      IFS="$lt_save_ifs"
4424      test -z "$ac_dir" && ac_dir=.
4425      tmp_nm="$ac_dir/$lt_tmp_nm"
4426      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4427	# Check to see if the nm accepts a BSD-compat flag.
4428	# Adding the `sed 1q' prevents false positives on HP-UX, which says:
4429	#   nm: unknown option "B" ignored
4430	# Tru64's nm complains that /dev/null is an invalid object file
4431	case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4432	*/dev/null* | *'Invalid file or object type'*)
4433	  lt_cv_path_NM="$tmp_nm -B"
4434	  break
4435	  ;;
4436	*)
4437	  case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4438	  */dev/null*)
4439	    lt_cv_path_NM="$tmp_nm -p"
4440	    break
4441	    ;;
4442	  *)
4443	    lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4444	    continue # so that we can try to find one that supports BSD flags
4445	    ;;
4446	  esac
4447	  ;;
4448	esac
4449      fi
4450    done
4451    IFS="$lt_save_ifs"
4452  done
4453  : ${lt_cv_path_NM=no}
4454fi
4455fi
4456{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
4457$as_echo "$lt_cv_path_NM" >&6; }
4458if test "$lt_cv_path_NM" != "no"; then
4459  NM="$lt_cv_path_NM"
4460else
4461  # Didn't find any BSD compatible name lister, look for dumpbin.
4462  if test -n "$DUMPBIN"; then :
4463    # Let the user override the test.
4464  else
4465    if test -n "$ac_tool_prefix"; then
4466  for ac_prog in dumpbin "link -dump"
4467  do
4468    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4469set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4470{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4471$as_echo_n "checking for $ac_word... " >&6; }
4472if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
4473  $as_echo_n "(cached) " >&6
4474else
4475  if test -n "$DUMPBIN"; then
4476  ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
4477else
4478as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4479for as_dir in $PATH
4480do
4481  IFS=$as_save_IFS
4482  test -z "$as_dir" && as_dir=.
4483    for ac_exec_ext in '' $ac_executable_extensions; do
4484  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4485    ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
4486    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4487    break 2
4488  fi
4489done
4490  done
4491IFS=$as_save_IFS
4492
4493fi
4494fi
4495DUMPBIN=$ac_cv_prog_DUMPBIN
4496if test -n "$DUMPBIN"; then
4497  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
4498$as_echo "$DUMPBIN" >&6; }
4499else
4500  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4501$as_echo "no" >&6; }
4502fi
4503
4504
4505    test -n "$DUMPBIN" && break
4506  done
4507fi
4508if test -z "$DUMPBIN"; then
4509  ac_ct_DUMPBIN=$DUMPBIN
4510  for ac_prog in dumpbin "link -dump"
4511do
4512  # Extract the first word of "$ac_prog", so it can be a program name with args.
4513set dummy $ac_prog; ac_word=$2
4514{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4515$as_echo_n "checking for $ac_word... " >&6; }
4516if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
4517  $as_echo_n "(cached) " >&6
4518else
4519  if test -n "$ac_ct_DUMPBIN"; then
4520  ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
4521else
4522as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4523for as_dir in $PATH
4524do
4525  IFS=$as_save_IFS
4526  test -z "$as_dir" && as_dir=.
4527    for ac_exec_ext in '' $ac_executable_extensions; do
4528  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4529    ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
4530    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4531    break 2
4532  fi
4533done
4534  done
4535IFS=$as_save_IFS
4536
4537fi
4538fi
4539ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
4540if test -n "$ac_ct_DUMPBIN"; then
4541  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
4542$as_echo "$ac_ct_DUMPBIN" >&6; }
4543else
4544  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4545$as_echo "no" >&6; }
4546fi
4547
4548
4549  test -n "$ac_ct_DUMPBIN" && break
4550done
4551
4552  if test "x$ac_ct_DUMPBIN" = x; then
4553    DUMPBIN=":"
4554  else
4555    case $cross_compiling:$ac_tool_warned in
4556yes:)
4557{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4558$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4559ac_tool_warned=yes ;;
4560esac
4561    DUMPBIN=$ac_ct_DUMPBIN
4562  fi
4563fi
4564
4565    case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
4566    *COFF*)
4567      DUMPBIN="$DUMPBIN -symbols"
4568      ;;
4569    *)
4570      DUMPBIN=:
4571      ;;
4572    esac
4573  fi
4574
4575  if test "$DUMPBIN" != ":"; then
4576    NM="$DUMPBIN"
4577  fi
4578fi
4579test -z "$NM" && NM=nm
4580
4581
4582
4583
4584
4585
4586{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
4587$as_echo_n "checking the name lister ($NM) interface... " >&6; }
4588if test "${lt_cv_nm_interface+set}" = set; then :
4589  $as_echo_n "(cached) " >&6
4590else
4591  lt_cv_nm_interface="BSD nm"
4592  echo "int some_variable = 0;" > conftest.$ac_ext
4593  (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
4594  (eval "$ac_compile" 2>conftest.err)
4595  cat conftest.err >&5
4596  (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
4597  (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
4598  cat conftest.err >&5
4599  (eval echo "\"\$as_me:$LINENO: output\"" >&5)
4600  cat conftest.out >&5
4601  if $GREP 'External.*some_variable' conftest.out > /dev/null; then
4602    lt_cv_nm_interface="MS dumpbin"
4603  fi
4604  rm -f conftest*
4605fi
4606{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
4607$as_echo "$lt_cv_nm_interface" >&6; }
4608
4609{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
4610$as_echo_n "checking whether ln -s works... " >&6; }
4611LN_S=$as_ln_s
4612if test "$LN_S" = "ln -s"; then
4613  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4614$as_echo "yes" >&6; }
4615else
4616  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
4617$as_echo "no, using $LN_S" >&6; }
4618fi
4619
4620# find the maximum length of command line arguments
4621{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
4622$as_echo_n "checking the maximum length of command line arguments... " >&6; }
4623if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
4624  $as_echo_n "(cached) " >&6
4625else
4626    i=0
4627  teststring="ABCD"
4628
4629  case $build_os in
4630  msdosdjgpp*)
4631    # On DJGPP, this test can blow up pretty badly due to problems in libc
4632    # (any single argument exceeding 2000 bytes causes a buffer overrun
4633    # during glob expansion).  Even if it were fixed, the result of this
4634    # check would be larger than it should be.
4635    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
4636    ;;
4637
4638  gnu*)
4639    # Under GNU Hurd, this test is not required because there is
4640    # no limit to the length of command line arguments.
4641    # Libtool will interpret -1 as no limit whatsoever
4642    lt_cv_sys_max_cmd_len=-1;
4643    ;;
4644
4645  cygwin* | mingw* | cegcc*)
4646    # On Win9x/ME, this test blows up -- it succeeds, but takes
4647    # about 5 minutes as the teststring grows exponentially.
4648    # Worse, since 9x/ME are not pre-emptively multitasking,
4649    # you end up with a "frozen" computer, even though with patience
4650    # the test eventually succeeds (with a max line length of 256k).
4651    # Instead, let's just punt: use the minimum linelength reported by
4652    # all of the supported platforms: 8192 (on NT/2K/XP).
4653    lt_cv_sys_max_cmd_len=8192;
4654    ;;
4655
4656  mint*)
4657    # On MiNT this can take a long time and run out of memory.
4658    lt_cv_sys_max_cmd_len=8192;
4659    ;;
4660
4661  amigaos*)
4662    # On AmigaOS with pdksh, this test takes hours, literally.
4663    # So we just punt and use a minimum line length of 8192.
4664    lt_cv_sys_max_cmd_len=8192;
4665    ;;
4666
4667  netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
4668    # This has been around since 386BSD, at least.  Likely further.
4669    if test -x /sbin/sysctl; then
4670      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
4671    elif test -x /usr/sbin/sysctl; then
4672      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
4673    else
4674      lt_cv_sys_max_cmd_len=65536	# usable default for all BSDs
4675    fi
4676    # And add a safety zone
4677    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4678    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4679    ;;
4680
4681  interix*)
4682    # We know the value 262144 and hardcode it with a safety zone (like BSD)
4683    lt_cv_sys_max_cmd_len=196608
4684    ;;
4685
4686  osf*)
4687    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
4688    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
4689    # nice to cause kernel panics so lets avoid the loop below.
4690    # First set a reasonable default.
4691    lt_cv_sys_max_cmd_len=16384
4692    #
4693    if test -x /sbin/sysconfig; then
4694      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
4695        *1*) lt_cv_sys_max_cmd_len=-1 ;;
4696      esac
4697    fi
4698    ;;
4699  sco3.2v5*)
4700    lt_cv_sys_max_cmd_len=102400
4701    ;;
4702  sysv5* | sco5v6* | sysv4.2uw2*)
4703    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
4704    if test -n "$kargmax"; then
4705      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[	 ]//'`
4706    else
4707      lt_cv_sys_max_cmd_len=32768
4708    fi
4709    ;;
4710  *)
4711    lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
4712    if test -n "$lt_cv_sys_max_cmd_len"; then
4713      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4714      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4715    else
4716      # Make teststring a little bigger before we do anything with it.
4717      # a 1K string should be a reasonable start.
4718      for i in 1 2 3 4 5 6 7 8 ; do
4719        teststring=$teststring$teststring
4720      done
4721      SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
4722      # If test is not a shell built-in, we'll probably end up computing a
4723      # maximum length that is only half of the actual maximum length, but
4724      # we can't tell.
4725      while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
4726	         = "X$teststring$teststring"; } >/dev/null 2>&1 &&
4727	      test $i != 17 # 1/2 MB should be enough
4728      do
4729        i=`expr $i + 1`
4730        teststring=$teststring$teststring
4731      done
4732      # Only check the string length outside the loop.
4733      lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
4734      teststring=
4735      # Add a significant safety factor because C++ compilers can tack on
4736      # massive amounts of additional arguments before passing them to the
4737      # linker.  It appears as though 1/2 is a usable value.
4738      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
4739    fi
4740    ;;
4741  esac
4742
4743fi
4744
4745if test -n $lt_cv_sys_max_cmd_len ; then
4746  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
4747$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
4748else
4749  { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
4750$as_echo "none" >&6; }
4751fi
4752max_cmd_len=$lt_cv_sys_max_cmd_len
4753
4754
4755
4756
4757
4758
4759: ${CP="cp -f"}
4760: ${MV="mv -f"}
4761: ${RM="rm -f"}
4762
4763{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
4764$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
4765# Try some XSI features
4766xsi_shell=no
4767( _lt_dummy="a/b/c"
4768  test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
4769      = c,a/b,, \
4770    && eval 'test $(( 1 + 1 )) -eq 2 \
4771    && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
4772  && xsi_shell=yes
4773{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
4774$as_echo "$xsi_shell" >&6; }
4775
4776
4777{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
4778$as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
4779lt_shell_append=no
4780( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
4781    >/dev/null 2>&1 \
4782  && lt_shell_append=yes
4783{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
4784$as_echo "$lt_shell_append" >&6; }
4785
4786
4787if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
4788  lt_unset=unset
4789else
4790  lt_unset=false
4791fi
4792
4793
4794
4795
4796
4797# test EBCDIC or ASCII
4798case `echo X|tr X '\101'` in
4799 A) # ASCII based system
4800    # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
4801  lt_SP2NL='tr \040 \012'
4802  lt_NL2SP='tr \015\012 \040\040'
4803  ;;
4804 *) # EBCDIC based system
4805  lt_SP2NL='tr \100 \n'
4806  lt_NL2SP='tr \r\n \100\100'
4807  ;;
4808esac
4809
4810
4811
4812
4813
4814
4815
4816
4817
4818{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
4819$as_echo_n "checking for $LD option to reload object files... " >&6; }
4820if test "${lt_cv_ld_reload_flag+set}" = set; then :
4821  $as_echo_n "(cached) " >&6
4822else
4823  lt_cv_ld_reload_flag='-r'
4824fi
4825{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
4826$as_echo "$lt_cv_ld_reload_flag" >&6; }
4827reload_flag=$lt_cv_ld_reload_flag
4828case $reload_flag in
4829"" | " "*) ;;
4830*) reload_flag=" $reload_flag" ;;
4831esac
4832reload_cmds='$LD$reload_flag -o $output$reload_objs'
4833case $host_os in
4834  darwin*)
4835    if test "$GCC" = yes; then
4836      reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
4837    else
4838      reload_cmds='$LD$reload_flag -o $output$reload_objs'
4839    fi
4840    ;;
4841esac
4842
4843
4844
4845
4846
4847
4848
4849
4850
4851if test -n "$ac_tool_prefix"; then
4852  # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
4853set dummy ${ac_tool_prefix}objdump; ac_word=$2
4854{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4855$as_echo_n "checking for $ac_word... " >&6; }
4856if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
4857  $as_echo_n "(cached) " >&6
4858else
4859  if test -n "$OBJDUMP"; then
4860  ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
4861else
4862as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4863for as_dir in $PATH
4864do
4865  IFS=$as_save_IFS
4866  test -z "$as_dir" && as_dir=.
4867    for ac_exec_ext in '' $ac_executable_extensions; do
4868  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4869    ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
4870    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4871    break 2
4872  fi
4873done
4874  done
4875IFS=$as_save_IFS
4876
4877fi
4878fi
4879OBJDUMP=$ac_cv_prog_OBJDUMP
4880if test -n "$OBJDUMP"; then
4881  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
4882$as_echo "$OBJDUMP" >&6; }
4883else
4884  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4885$as_echo "no" >&6; }
4886fi
4887
4888
4889fi
4890if test -z "$ac_cv_prog_OBJDUMP"; then
4891  ac_ct_OBJDUMP=$OBJDUMP
4892  # Extract the first word of "objdump", so it can be a program name with args.
4893set dummy objdump; ac_word=$2
4894{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4895$as_echo_n "checking for $ac_word... " >&6; }
4896if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
4897  $as_echo_n "(cached) " >&6
4898else
4899  if test -n "$ac_ct_OBJDUMP"; then
4900  ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
4901else
4902as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4903for as_dir in $PATH
4904do
4905  IFS=$as_save_IFS
4906  test -z "$as_dir" && as_dir=.
4907    for ac_exec_ext in '' $ac_executable_extensions; do
4908  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4909    ac_cv_prog_ac_ct_OBJDUMP="objdump"
4910    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4911    break 2
4912  fi
4913done
4914  done
4915IFS=$as_save_IFS
4916
4917fi
4918fi
4919ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
4920if test -n "$ac_ct_OBJDUMP"; then
4921  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
4922$as_echo "$ac_ct_OBJDUMP" >&6; }
4923else
4924  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4925$as_echo "no" >&6; }
4926fi
4927
4928  if test "x$ac_ct_OBJDUMP" = x; then
4929    OBJDUMP="false"
4930  else
4931    case $cross_compiling:$ac_tool_warned in
4932yes:)
4933{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4934$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4935ac_tool_warned=yes ;;
4936esac
4937    OBJDUMP=$ac_ct_OBJDUMP
4938  fi
4939else
4940  OBJDUMP="$ac_cv_prog_OBJDUMP"
4941fi
4942
4943test -z "$OBJDUMP" && OBJDUMP=objdump
4944
4945
4946
4947
4948
4949
4950
4951
4952
4953{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
4954$as_echo_n "checking how to recognize dependent libraries... " >&6; }
4955if test "${lt_cv_deplibs_check_method+set}" = set; then :
4956  $as_echo_n "(cached) " >&6
4957else
4958  lt_cv_file_magic_cmd='$MAGIC_CMD'
4959lt_cv_file_magic_test_file=
4960lt_cv_deplibs_check_method='unknown'
4961# Need to set the preceding variable on all platforms that support
4962# interlibrary dependencies.
4963# 'none' -- dependencies not supported.
4964# `unknown' -- same as none, but documents that we really don't know.
4965# 'pass_all' -- all dependencies passed with no checks.
4966# 'test_compile' -- check by making test program.
4967# 'file_magic [[regex]]' -- check by looking for files in library path
4968# which responds to the $file_magic_cmd with a given extended regex.
4969# If you have `file' or equivalent on your system and you're not sure
4970# whether `pass_all' will *always* work, you probably want this one.
4971
4972case $host_os in
4973aix[4-9]*)
4974  lt_cv_deplibs_check_method=pass_all
4975  ;;
4976
4977beos*)
4978  lt_cv_deplibs_check_method=pass_all
4979  ;;
4980
4981bsdi[45]*)
4982  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4983  lt_cv_file_magic_cmd='/usr/bin/file -L'
4984  lt_cv_file_magic_test_file=/shlib/libc.so
4985  ;;
4986
4987cygwin*)
4988  # func_win32_libid is a shell function defined in ltmain.sh
4989  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4990  lt_cv_file_magic_cmd='func_win32_libid'
4991  ;;
4992
4993mingw* | pw32*)
4994  # Base MSYS/MinGW do not provide the 'file' command needed by
4995  # func_win32_libid shell function, so use a weaker test based on 'objdump',
4996  # unless we find 'file', for example because we are cross-compiling.
4997  # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
4998  if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
4999    lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5000    lt_cv_file_magic_cmd='func_win32_libid'
5001  else
5002    lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
5003    lt_cv_file_magic_cmd='$OBJDUMP -f'
5004  fi
5005  ;;
5006
5007cegcc*)
5008  # use the weaker test based on 'objdump'. See mingw*.
5009  lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5010  lt_cv_file_magic_cmd='$OBJDUMP -f'
5011  ;;
5012
5013darwin* | rhapsody*)
5014  lt_cv_deplibs_check_method=pass_all
5015  ;;
5016
5017freebsd* | dragonfly*)
5018  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5019    case $host_cpu in
5020    i*86 )
5021      # Not sure whether the presence of OpenBSD here was a mistake.
5022      # Let's accept both of them until this is cleared up.
5023      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5024      lt_cv_file_magic_cmd=/usr/bin/file
5025      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5026      ;;
5027    esac
5028  else
5029    lt_cv_deplibs_check_method=pass_all
5030  fi
5031  ;;
5032
5033gnu*)
5034  lt_cv_deplibs_check_method=pass_all
5035  ;;
5036
5037haiku*)
5038  lt_cv_deplibs_check_method=pass_all
5039  ;;
5040
5041hpux10.20* | hpux11*)
5042  lt_cv_file_magic_cmd=/usr/bin/file
5043  case $host_cpu in
5044  ia64*)
5045    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5046    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5047    ;;
5048  hppa*64*)
5049    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]'
5050    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5051    ;;
5052  *)
5053    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
5054    lt_cv_file_magic_test_file=/usr/lib/libc.sl
5055    ;;
5056  esac
5057  ;;
5058
5059interix[3-9]*)
5060  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5061  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5062  ;;
5063
5064irix5* | irix6* | nonstopux*)
5065  case $LD in
5066  *-32|*"-32 ") libmagic=32-bit;;
5067  *-n32|*"-n32 ") libmagic=N32;;
5068  *-64|*"-64 ") libmagic=64-bit;;
5069  *) libmagic=never-match;;
5070  esac
5071  lt_cv_deplibs_check_method=pass_all
5072  ;;
5073
5074# This must be Linux ELF.
5075linux* | k*bsd*-gnu | kopensolaris*-gnu)
5076  lt_cv_deplibs_check_method=pass_all
5077  ;;
5078
5079netbsd*)
5080  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5081    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5082  else
5083    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5084  fi
5085  ;;
5086
5087newos6*)
5088  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5089  lt_cv_file_magic_cmd=/usr/bin/file
5090  lt_cv_file_magic_test_file=/usr/lib/libnls.so
5091  ;;
5092
5093*nto* | *qnx*)
5094  lt_cv_deplibs_check_method=pass_all
5095  ;;
5096
5097openbsd*)
5098  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5099    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5100  else
5101    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5102  fi
5103  ;;
5104
5105osf3* | osf4* | osf5*)
5106  lt_cv_deplibs_check_method=pass_all
5107  ;;
5108
5109rdos*)
5110  lt_cv_deplibs_check_method=pass_all
5111  ;;
5112
5113solaris*)
5114  lt_cv_deplibs_check_method=pass_all
5115  ;;
5116
5117sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5118  lt_cv_deplibs_check_method=pass_all
5119  ;;
5120
5121sysv4 | sysv4.3*)
5122  case $host_vendor in
5123  motorola)
5124    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]'
5125    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5126    ;;
5127  ncr)
5128    lt_cv_deplibs_check_method=pass_all
5129    ;;
5130  sequent)
5131    lt_cv_file_magic_cmd='/bin/file'
5132    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5133    ;;
5134  sni)
5135    lt_cv_file_magic_cmd='/bin/file'
5136    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5137    lt_cv_file_magic_test_file=/lib/libc.so
5138    ;;
5139  siemens)
5140    lt_cv_deplibs_check_method=pass_all
5141    ;;
5142  pc)
5143    lt_cv_deplibs_check_method=pass_all
5144    ;;
5145  esac
5146  ;;
5147
5148tpf*)
5149  lt_cv_deplibs_check_method=pass_all
5150  ;;
5151esac
5152
5153fi
5154{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
5155$as_echo "$lt_cv_deplibs_check_method" >&6; }
5156file_magic_cmd=$lt_cv_file_magic_cmd
5157deplibs_check_method=$lt_cv_deplibs_check_method
5158test -z "$deplibs_check_method" && deplibs_check_method=unknown
5159
5160
5161
5162
5163
5164
5165
5166
5167
5168
5169
5170
5171if test -n "$ac_tool_prefix"; then
5172  # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5173set dummy ${ac_tool_prefix}ar; ac_word=$2
5174{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5175$as_echo_n "checking for $ac_word... " >&6; }
5176if test "${ac_cv_prog_AR+set}" = set; then :
5177  $as_echo_n "(cached) " >&6
5178else
5179  if test -n "$AR"; then
5180  ac_cv_prog_AR="$AR" # Let the user override the test.
5181else
5182as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5183for as_dir in $PATH
5184do
5185  IFS=$as_save_IFS
5186  test -z "$as_dir" && as_dir=.
5187    for ac_exec_ext in '' $ac_executable_extensions; do
5188  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5189    ac_cv_prog_AR="${ac_tool_prefix}ar"
5190    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5191    break 2
5192  fi
5193done
5194  done
5195IFS=$as_save_IFS
5196
5197fi
5198fi
5199AR=$ac_cv_prog_AR
5200if test -n "$AR"; then
5201  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5202$as_echo "$AR" >&6; }
5203else
5204  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5205$as_echo "no" >&6; }
5206fi
5207
5208
5209fi
5210if test -z "$ac_cv_prog_AR"; then
5211  ac_ct_AR=$AR
5212  # Extract the first word of "ar", so it can be a program name with args.
5213set dummy ar; ac_word=$2
5214{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5215$as_echo_n "checking for $ac_word... " >&6; }
5216if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
5217  $as_echo_n "(cached) " >&6
5218else
5219  if test -n "$ac_ct_AR"; then
5220  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5221else
5222as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5223for as_dir in $PATH
5224do
5225  IFS=$as_save_IFS
5226  test -z "$as_dir" && as_dir=.
5227    for ac_exec_ext in '' $ac_executable_extensions; do
5228  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5229    ac_cv_prog_ac_ct_AR="ar"
5230    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5231    break 2
5232  fi
5233done
5234  done
5235IFS=$as_save_IFS
5236
5237fi
5238fi
5239ac_ct_AR=$ac_cv_prog_ac_ct_AR
5240if test -n "$ac_ct_AR"; then
5241  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5242$as_echo "$ac_ct_AR" >&6; }
5243else
5244  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5245$as_echo "no" >&6; }
5246fi
5247
5248  if test "x$ac_ct_AR" = x; then
5249    AR="false"
5250  else
5251    case $cross_compiling:$ac_tool_warned in
5252yes:)
5253{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5254$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5255ac_tool_warned=yes ;;
5256esac
5257    AR=$ac_ct_AR
5258  fi
5259else
5260  AR="$ac_cv_prog_AR"
5261fi
5262
5263test -z "$AR" && AR=ar
5264test -z "$AR_FLAGS" && AR_FLAGS=cru
5265
5266
5267
5268
5269
5270
5271
5272
5273
5274
5275
5276if test -n "$ac_tool_prefix"; then
5277  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5278set dummy ${ac_tool_prefix}strip; ac_word=$2
5279{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5280$as_echo_n "checking for $ac_word... " >&6; }
5281if test "${ac_cv_prog_STRIP+set}" = set; then :
5282  $as_echo_n "(cached) " >&6
5283else
5284  if test -n "$STRIP"; then
5285  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5286else
5287as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5288for as_dir in $PATH
5289do
5290  IFS=$as_save_IFS
5291  test -z "$as_dir" && as_dir=.
5292    for ac_exec_ext in '' $ac_executable_extensions; do
5293  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5294    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5295    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5296    break 2
5297  fi
5298done
5299  done
5300IFS=$as_save_IFS
5301
5302fi
5303fi
5304STRIP=$ac_cv_prog_STRIP
5305if test -n "$STRIP"; then
5306  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
5307$as_echo "$STRIP" >&6; }
5308else
5309  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5310$as_echo "no" >&6; }
5311fi
5312
5313
5314fi
5315if test -z "$ac_cv_prog_STRIP"; then
5316  ac_ct_STRIP=$STRIP
5317  # Extract the first word of "strip", so it can be a program name with args.
5318set dummy strip; ac_word=$2
5319{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5320$as_echo_n "checking for $ac_word... " >&6; }
5321if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
5322  $as_echo_n "(cached) " >&6
5323else
5324  if test -n "$ac_ct_STRIP"; then
5325  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5326else
5327as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5328for as_dir in $PATH
5329do
5330  IFS=$as_save_IFS
5331  test -z "$as_dir" && as_dir=.
5332    for ac_exec_ext in '' $ac_executable_extensions; do
5333  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5334    ac_cv_prog_ac_ct_STRIP="strip"
5335    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5336    break 2
5337  fi
5338done
5339  done
5340IFS=$as_save_IFS
5341
5342fi
5343fi
5344ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5345if test -n "$ac_ct_STRIP"; then
5346  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
5347$as_echo "$ac_ct_STRIP" >&6; }
5348else
5349  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5350$as_echo "no" >&6; }
5351fi
5352
5353  if test "x$ac_ct_STRIP" = x; then
5354    STRIP=":"
5355  else
5356    case $cross_compiling:$ac_tool_warned in
5357yes:)
5358{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5359$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5360ac_tool_warned=yes ;;
5361esac
5362    STRIP=$ac_ct_STRIP
5363  fi
5364else
5365  STRIP="$ac_cv_prog_STRIP"
5366fi
5367
5368test -z "$STRIP" && STRIP=:
5369
5370
5371
5372
5373
5374
5375if test -n "$ac_tool_prefix"; then
5376  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5377set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5378{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5379$as_echo_n "checking for $ac_word... " >&6; }
5380if test "${ac_cv_prog_RANLIB+set}" = set; then :
5381  $as_echo_n "(cached) " >&6
5382else
5383  if test -n "$RANLIB"; then
5384  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5385else
5386as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5387for as_dir in $PATH
5388do
5389  IFS=$as_save_IFS
5390  test -z "$as_dir" && as_dir=.
5391    for ac_exec_ext in '' $ac_executable_extensions; do
5392  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5393    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5394    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5395    break 2
5396  fi
5397done
5398  done
5399IFS=$as_save_IFS
5400
5401fi
5402fi
5403RANLIB=$ac_cv_prog_RANLIB
5404if test -n "$RANLIB"; then
5405  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5406$as_echo "$RANLIB" >&6; }
5407else
5408  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5409$as_echo "no" >&6; }
5410fi
5411
5412
5413fi
5414if test -z "$ac_cv_prog_RANLIB"; then
5415  ac_ct_RANLIB=$RANLIB
5416  # Extract the first word of "ranlib", so it can be a program name with args.
5417set dummy ranlib; ac_word=$2
5418{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5419$as_echo_n "checking for $ac_word... " >&6; }
5420if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
5421  $as_echo_n "(cached) " >&6
5422else
5423  if test -n "$ac_ct_RANLIB"; then
5424  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5425else
5426as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5427for as_dir in $PATH
5428do
5429  IFS=$as_save_IFS
5430  test -z "$as_dir" && as_dir=.
5431    for ac_exec_ext in '' $ac_executable_extensions; do
5432  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5433    ac_cv_prog_ac_ct_RANLIB="ranlib"
5434    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5435    break 2
5436  fi
5437done
5438  done
5439IFS=$as_save_IFS
5440
5441fi
5442fi
5443ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5444if test -n "$ac_ct_RANLIB"; then
5445  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5446$as_echo "$ac_ct_RANLIB" >&6; }
5447else
5448  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5449$as_echo "no" >&6; }
5450fi
5451
5452  if test "x$ac_ct_RANLIB" = x; then
5453    RANLIB=":"
5454  else
5455    case $cross_compiling:$ac_tool_warned in
5456yes:)
5457{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5458$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5459ac_tool_warned=yes ;;
5460esac
5461    RANLIB=$ac_ct_RANLIB
5462  fi
5463else
5464  RANLIB="$ac_cv_prog_RANLIB"
5465fi
5466
5467test -z "$RANLIB" && RANLIB=:
5468
5469
5470
5471
5472
5473
5474# Determine commands to create old-style static archives.
5475old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
5476old_postinstall_cmds='chmod 644 $oldlib'
5477old_postuninstall_cmds=
5478
5479if test -n "$RANLIB"; then
5480  case $host_os in
5481  openbsd*)
5482    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
5483    ;;
5484  *)
5485    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
5486    ;;
5487  esac
5488  old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
5489fi
5490
5491case $host_os in
5492  darwin*)
5493    lock_old_archive_extraction=yes ;;
5494  *)
5495    lock_old_archive_extraction=no ;;
5496esac
5497
5498
5499
5500
5501
5502
5503
5504
5505
5506
5507
5508
5509
5510
5511
5512
5513
5514
5515
5516
5517
5518
5519
5520
5521
5522
5523
5524
5525
5526
5527
5528
5529
5530
5531
5532
5533
5534
5535
5536# If no C compiler was specified, use CC.
5537LTCC=${LTCC-"$CC"}
5538
5539# If no C compiler flags were specified, use CFLAGS.
5540LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
5541
5542# Allow CC to be a program name with arguments.
5543compiler=$CC
5544
5545
5546# Check for command to grab the raw symbol name followed by C symbol from nm.
5547{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
5548$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
5549if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
5550  $as_echo_n "(cached) " >&6
5551else
5552
5553# These are sane defaults that work on at least a few old systems.
5554# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
5555
5556# Character class describing NM global symbol codes.
5557symcode='[BCDEGRST]'
5558
5559# Regexp to match symbols that can be accessed directly from C.
5560sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5561
5562# Define system-specific variables.
5563case $host_os in
5564aix*)
5565  symcode='[BCDT]'
5566  ;;
5567cygwin* | mingw* | pw32* | cegcc*)
5568  symcode='[ABCDGISTW]'
5569  ;;
5570hpux*)
5571  if test "$host_cpu" = ia64; then
5572    symcode='[ABCDEGRST]'
5573  fi
5574  ;;
5575irix* | nonstopux*)
5576  symcode='[BCDEGRST]'
5577  ;;
5578osf*)
5579  symcode='[BCDEGQRST]'
5580  ;;
5581solaris*)
5582  symcode='[BDRT]'
5583  ;;
5584sco3.2v5*)
5585  symcode='[DT]'
5586  ;;
5587sysv4.2uw2*)
5588  symcode='[DT]'
5589  ;;
5590sysv5* | sco5v6* | unixware* | OpenUNIX*)
5591  symcode='[ABDT]'
5592  ;;
5593sysv4)
5594  symcode='[DFNSTU]'
5595  ;;
5596esac
5597
5598# If we're using GNU nm, then use its standard symbol codes.
5599case `$NM -V 2>&1` in
5600*GNU* | *'with BFD'*)
5601  symcode='[ABCDGIRSTW]' ;;
5602esac
5603
5604# Transform an extracted symbol line into a proper C declaration.
5605# Some systems (esp. on ia64) link data and code symbols differently,
5606# so use this general approach.
5607lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5608
5609# Transform an extracted symbol line into symbol name and symbol address
5610lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'"
5611lt_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'"
5612
5613# Handle CRLF in mingw tool chain
5614opt_cr=
5615case $build_os in
5616mingw*)
5617  opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5618  ;;
5619esac
5620
5621# Try without a prefix underscore, then with it.
5622for ac_symprfx in "" "_"; do
5623
5624  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
5625  symxfrm="\\1 $ac_symprfx\\2 \\2"
5626
5627  # Write the raw and C identifiers.
5628  if test "$lt_cv_nm_interface" = "MS dumpbin"; then
5629    # Fake it for dumpbin and say T for any non-static function
5630    # and D for any global variable.
5631    # Also find C++ and __fastcall symbols from MSVC++,
5632    # which start with @ or ?.
5633    lt_cv_sys_global_symbol_pipe="$AWK '"\
5634"     {last_section=section; section=\$ 3};"\
5635"     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
5636"     \$ 0!~/External *\|/{next};"\
5637"     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
5638"     {if(hide[section]) next};"\
5639"     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
5640"     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
5641"     s[1]~/^[@?]/{print s[1], s[1]; next};"\
5642"     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
5643"     ' prfx=^$ac_symprfx"
5644  else
5645    lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[	 ]\($symcode$symcode*\)[	 ][	 ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
5646  fi
5647
5648  # Check to see that the pipe works correctly.
5649  pipe_works=no
5650
5651  rm -f conftest*
5652  cat > conftest.$ac_ext <<_LT_EOF
5653#ifdef __cplusplus
5654extern "C" {
5655#endif
5656char nm_test_var;
5657void nm_test_func(void);
5658void nm_test_func(void){}
5659#ifdef __cplusplus
5660}
5661#endif
5662int main(){nm_test_var='a';nm_test_func();return(0);}
5663_LT_EOF
5664
5665  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5666  (eval $ac_compile) 2>&5
5667  ac_status=$?
5668  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5669  test $ac_status = 0; }; then
5670    # Now try to grab the symbols.
5671    nlist=conftest.nm
5672    if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
5673  (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
5674  ac_status=$?
5675  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5676  test $ac_status = 0; } && test -s "$nlist"; then
5677      # Try sorting and uniquifying the output.
5678      if sort "$nlist" | uniq > "$nlist"T; then
5679	mv -f "$nlist"T "$nlist"
5680      else
5681	rm -f "$nlist"T
5682      fi
5683
5684      # Make sure that we snagged all the symbols we need.
5685      if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
5686	if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
5687	  cat <<_LT_EOF > conftest.$ac_ext
5688#ifdef __cplusplus
5689extern "C" {
5690#endif
5691
5692_LT_EOF
5693	  # Now generate the symbol file.
5694	  eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
5695
5696	  cat <<_LT_EOF >> conftest.$ac_ext
5697
5698/* The mapping between symbol names and symbols.  */
5699const struct {
5700  const char *name;
5701  void       *address;
5702}
5703lt__PROGRAM__LTX_preloaded_symbols[] =
5704{
5705  { "@PROGRAM@", (void *) 0 },
5706_LT_EOF
5707	  $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
5708	  cat <<\_LT_EOF >> conftest.$ac_ext
5709  {0, (void *) 0}
5710};
5711
5712/* This works around a problem in FreeBSD linker */
5713#ifdef FREEBSD_WORKAROUND
5714static const void *lt_preloaded_setup() {
5715  return lt__PROGRAM__LTX_preloaded_symbols;
5716}
5717#endif
5718
5719#ifdef __cplusplus
5720}
5721#endif
5722_LT_EOF
5723	  # Now try linking the two files.
5724	  mv conftest.$ac_objext conftstm.$ac_objext
5725	  lt_save_LIBS="$LIBS"
5726	  lt_save_CFLAGS="$CFLAGS"
5727	  LIBS="conftstm.$ac_objext"
5728	  CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
5729	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
5730  (eval $ac_link) 2>&5
5731  ac_status=$?
5732  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5733  test $ac_status = 0; } && test -s conftest${ac_exeext}; then
5734	    pipe_works=yes
5735	  fi
5736	  LIBS="$lt_save_LIBS"
5737	  CFLAGS="$lt_save_CFLAGS"
5738	else
5739	  echo "cannot find nm_test_func in $nlist" >&5
5740	fi
5741      else
5742	echo "cannot find nm_test_var in $nlist" >&5
5743      fi
5744    else
5745      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
5746    fi
5747  else
5748    echo "$progname: failed program was:" >&5
5749    cat conftest.$ac_ext >&5
5750  fi
5751  rm -rf conftest* conftst*
5752
5753  # Do not use the global_symbol_pipe unless it works.
5754  if test "$pipe_works" = yes; then
5755    break
5756  else
5757    lt_cv_sys_global_symbol_pipe=
5758  fi
5759done
5760
5761fi
5762
5763if test -z "$lt_cv_sys_global_symbol_pipe"; then
5764  lt_cv_sys_global_symbol_to_cdecl=
5765fi
5766if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
5767  { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
5768$as_echo "failed" >&6; }
5769else
5770  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
5771$as_echo "ok" >&6; }
5772fi
5773
5774
5775
5776
5777
5778
5779
5780
5781
5782
5783
5784
5785
5786
5787
5788
5789
5790
5791
5792
5793
5794
5795
5796# Check whether --enable-libtool-lock was given.
5797if test "${enable_libtool_lock+set}" = set; then :
5798  enableval=$enable_libtool_lock;
5799fi
5800
5801test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
5802
5803# Some flags need to be propagated to the compiler or linker for good
5804# libtool support.
5805case $host in
5806ia64-*-hpux*)
5807  # Find out which ABI we are using.
5808  echo 'int i;' > conftest.$ac_ext
5809  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5810  (eval $ac_compile) 2>&5
5811  ac_status=$?
5812  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5813  test $ac_status = 0; }; then
5814    case `/usr/bin/file conftest.$ac_objext` in
5815      *ELF-32*)
5816	HPUX_IA64_MODE="32"
5817	;;
5818      *ELF-64*)
5819	HPUX_IA64_MODE="64"
5820	;;
5821    esac
5822  fi
5823  rm -rf conftest*
5824  ;;
5825*-*-irix6*)
5826  # Find out which ABI we are using.
5827  echo '#line '$LINENO' "configure"' > conftest.$ac_ext
5828  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5829  (eval $ac_compile) 2>&5
5830  ac_status=$?
5831  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5832  test $ac_status = 0; }; then
5833    if test "$lt_cv_prog_gnu_ld" = yes; then
5834      case `/usr/bin/file conftest.$ac_objext` in
5835	*32-bit*)
5836	  LD="${LD-ld} -melf32bsmip"
5837	  ;;
5838	*N32*)
5839	  LD="${LD-ld} -melf32bmipn32"
5840	  ;;
5841	*64-bit*)
5842	  LD="${LD-ld} -melf64bmip"
5843	;;
5844      esac
5845    else
5846      case `/usr/bin/file conftest.$ac_objext` in
5847	*32-bit*)
5848	  LD="${LD-ld} -32"
5849	  ;;
5850	*N32*)
5851	  LD="${LD-ld} -n32"
5852	  ;;
5853	*64-bit*)
5854	  LD="${LD-ld} -64"
5855	  ;;
5856      esac
5857    fi
5858  fi
5859  rm -rf conftest*
5860  ;;
5861
5862x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
5863s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
5864  # Find out which ABI we are using.
5865  echo 'int i;' > conftest.$ac_ext
5866  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5867  (eval $ac_compile) 2>&5
5868  ac_status=$?
5869  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5870  test $ac_status = 0; }; then
5871    case `/usr/bin/file conftest.o` in
5872      *32-bit*)
5873	case $host in
5874	  x86_64-*kfreebsd*-gnu)
5875	    LD="${LD-ld} -m elf_i386_fbsd"
5876	    ;;
5877	  x86_64-*linux*)
5878	    case `/usr/bin/file conftest.o` in
5879	      *x86-64*)
5880		LD="${LD-ld} -m elf32_x86_64"
5881		;;
5882	      *)
5883		LD="${LD-ld} -m elf_i386"
5884		;;
5885	    esac
5886	    ;;
5887	  powerpc64le-*linux*)
5888	    LD="${LD-ld} -m elf32lppclinux"
5889	    ;;
5890	  powerpc64-*linux*)
5891	    LD="${LD-ld} -m elf32ppclinux"
5892	    ;;
5893	  s390x-*linux*)
5894	    LD="${LD-ld} -m elf_s390"
5895	    ;;
5896	  sparc64-*linux*)
5897	    LD="${LD-ld} -m elf32_sparc"
5898	    ;;
5899	esac
5900	;;
5901      *64-bit*)
5902	case $host in
5903	  x86_64-*kfreebsd*-gnu)
5904	    LD="${LD-ld} -m elf_x86_64_fbsd"
5905	    ;;
5906	  x86_64-*linux*)
5907	    LD="${LD-ld} -m elf_x86_64"
5908	    ;;
5909	  powerpcle-*linux*)
5910	    LD="${LD-ld} -m elf64lppc"
5911	    ;;
5912	  powerpc-*linux*)
5913	    LD="${LD-ld} -m elf64ppc"
5914	    ;;
5915	  s390*-*linux*|s390*-*tpf*)
5916	    LD="${LD-ld} -m elf64_s390"
5917	    ;;
5918	  sparc*-*linux*)
5919	    LD="${LD-ld} -m elf64_sparc"
5920	    ;;
5921	esac
5922	;;
5923    esac
5924  fi
5925  rm -rf conftest*
5926  ;;
5927
5928*-*-sco3.2v5*)
5929  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
5930  SAVE_CFLAGS="$CFLAGS"
5931  CFLAGS="$CFLAGS -belf"
5932  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
5933$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
5934if test "${lt_cv_cc_needs_belf+set}" = set; then :
5935  $as_echo_n "(cached) " >&6
5936else
5937  ac_ext=c
5938ac_cpp='$CPP $CPPFLAGS'
5939ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5940ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5941ac_compiler_gnu=$ac_cv_c_compiler_gnu
5942
5943     if test x$gcc_no_link = xyes; then
5944  as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
5945fi
5946cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5947/* end confdefs.h.  */
5948
5949int
5950main ()
5951{
5952
5953  ;
5954  return 0;
5955}
5956_ACEOF
5957if ac_fn_c_try_link "$LINENO"; then :
5958  lt_cv_cc_needs_belf=yes
5959else
5960  lt_cv_cc_needs_belf=no
5961fi
5962rm -f core conftest.err conftest.$ac_objext \
5963    conftest$ac_exeext conftest.$ac_ext
5964     ac_ext=c
5965ac_cpp='$CPP $CPPFLAGS'
5966ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5967ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5968ac_compiler_gnu=$ac_cv_c_compiler_gnu
5969
5970fi
5971{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
5972$as_echo "$lt_cv_cc_needs_belf" >&6; }
5973  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
5974    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
5975    CFLAGS="$SAVE_CFLAGS"
5976  fi
5977  ;;
5978sparc*-*solaris*)
5979  # Find out which ABI we are using.
5980  echo 'int i;' > conftest.$ac_ext
5981  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5982  (eval $ac_compile) 2>&5
5983  ac_status=$?
5984  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5985  test $ac_status = 0; }; then
5986    case `/usr/bin/file conftest.o` in
5987    *64-bit*)
5988      case $lt_cv_prog_gnu_ld in
5989      yes*) LD="${LD-ld} -m elf64_sparc" ;;
5990      *)
5991	if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
5992	  LD="${LD-ld} -64"
5993	fi
5994	;;
5995      esac
5996      ;;
5997    esac
5998  fi
5999  rm -rf conftest*
6000  ;;
6001esac
6002
6003need_locks="$enable_libtool_lock"
6004
6005
6006  case $host_os in
6007    rhapsody* | darwin*)
6008    if test -n "$ac_tool_prefix"; then
6009  # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
6010set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
6011{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6012$as_echo_n "checking for $ac_word... " >&6; }
6013if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
6014  $as_echo_n "(cached) " >&6
6015else
6016  if test -n "$DSYMUTIL"; then
6017  ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
6018else
6019as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6020for as_dir in $PATH
6021do
6022  IFS=$as_save_IFS
6023  test -z "$as_dir" && as_dir=.
6024    for ac_exec_ext in '' $ac_executable_extensions; do
6025  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6026    ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
6027    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6028    break 2
6029  fi
6030done
6031  done
6032IFS=$as_save_IFS
6033
6034fi
6035fi
6036DSYMUTIL=$ac_cv_prog_DSYMUTIL
6037if test -n "$DSYMUTIL"; then
6038  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
6039$as_echo "$DSYMUTIL" >&6; }
6040else
6041  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6042$as_echo "no" >&6; }
6043fi
6044
6045
6046fi
6047if test -z "$ac_cv_prog_DSYMUTIL"; then
6048  ac_ct_DSYMUTIL=$DSYMUTIL
6049  # Extract the first word of "dsymutil", so it can be a program name with args.
6050set dummy dsymutil; ac_word=$2
6051{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6052$as_echo_n "checking for $ac_word... " >&6; }
6053if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
6054  $as_echo_n "(cached) " >&6
6055else
6056  if test -n "$ac_ct_DSYMUTIL"; then
6057  ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
6058else
6059as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6060for as_dir in $PATH
6061do
6062  IFS=$as_save_IFS
6063  test -z "$as_dir" && as_dir=.
6064    for ac_exec_ext in '' $ac_executable_extensions; do
6065  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6066    ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
6067    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6068    break 2
6069  fi
6070done
6071  done
6072IFS=$as_save_IFS
6073
6074fi
6075fi
6076ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
6077if test -n "$ac_ct_DSYMUTIL"; then
6078  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
6079$as_echo "$ac_ct_DSYMUTIL" >&6; }
6080else
6081  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6082$as_echo "no" >&6; }
6083fi
6084
6085  if test "x$ac_ct_DSYMUTIL" = x; then
6086    DSYMUTIL=":"
6087  else
6088    case $cross_compiling:$ac_tool_warned in
6089yes:)
6090{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6091$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6092ac_tool_warned=yes ;;
6093esac
6094    DSYMUTIL=$ac_ct_DSYMUTIL
6095  fi
6096else
6097  DSYMUTIL="$ac_cv_prog_DSYMUTIL"
6098fi
6099
6100    if test -n "$ac_tool_prefix"; then
6101  # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
6102set dummy ${ac_tool_prefix}nmedit; ac_word=$2
6103{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6104$as_echo_n "checking for $ac_word... " >&6; }
6105if test "${ac_cv_prog_NMEDIT+set}" = set; then :
6106  $as_echo_n "(cached) " >&6
6107else
6108  if test -n "$NMEDIT"; then
6109  ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
6110else
6111as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6112for as_dir in $PATH
6113do
6114  IFS=$as_save_IFS
6115  test -z "$as_dir" && as_dir=.
6116    for ac_exec_ext in '' $ac_executable_extensions; do
6117  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6118    ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
6119    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6120    break 2
6121  fi
6122done
6123  done
6124IFS=$as_save_IFS
6125
6126fi
6127fi
6128NMEDIT=$ac_cv_prog_NMEDIT
6129if test -n "$NMEDIT"; then
6130  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
6131$as_echo "$NMEDIT" >&6; }
6132else
6133  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6134$as_echo "no" >&6; }
6135fi
6136
6137
6138fi
6139if test -z "$ac_cv_prog_NMEDIT"; then
6140  ac_ct_NMEDIT=$NMEDIT
6141  # Extract the first word of "nmedit", so it can be a program name with args.
6142set dummy nmedit; ac_word=$2
6143{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6144$as_echo_n "checking for $ac_word... " >&6; }
6145if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
6146  $as_echo_n "(cached) " >&6
6147else
6148  if test -n "$ac_ct_NMEDIT"; then
6149  ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
6150else
6151as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6152for as_dir in $PATH
6153do
6154  IFS=$as_save_IFS
6155  test -z "$as_dir" && as_dir=.
6156    for ac_exec_ext in '' $ac_executable_extensions; do
6157  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6158    ac_cv_prog_ac_ct_NMEDIT="nmedit"
6159    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6160    break 2
6161  fi
6162done
6163  done
6164IFS=$as_save_IFS
6165
6166fi
6167fi
6168ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
6169if test -n "$ac_ct_NMEDIT"; then
6170  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
6171$as_echo "$ac_ct_NMEDIT" >&6; }
6172else
6173  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6174$as_echo "no" >&6; }
6175fi
6176
6177  if test "x$ac_ct_NMEDIT" = x; then
6178    NMEDIT=":"
6179  else
6180    case $cross_compiling:$ac_tool_warned in
6181yes:)
6182{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6183$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6184ac_tool_warned=yes ;;
6185esac
6186    NMEDIT=$ac_ct_NMEDIT
6187  fi
6188else
6189  NMEDIT="$ac_cv_prog_NMEDIT"
6190fi
6191
6192    if test -n "$ac_tool_prefix"; then
6193  # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
6194set dummy ${ac_tool_prefix}lipo; ac_word=$2
6195{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6196$as_echo_n "checking for $ac_word... " >&6; }
6197if test "${ac_cv_prog_LIPO+set}" = set; then :
6198  $as_echo_n "(cached) " >&6
6199else
6200  if test -n "$LIPO"; then
6201  ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
6202else
6203as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6204for as_dir in $PATH
6205do
6206  IFS=$as_save_IFS
6207  test -z "$as_dir" && as_dir=.
6208    for ac_exec_ext in '' $ac_executable_extensions; do
6209  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6210    ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
6211    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6212    break 2
6213  fi
6214done
6215  done
6216IFS=$as_save_IFS
6217
6218fi
6219fi
6220LIPO=$ac_cv_prog_LIPO
6221if test -n "$LIPO"; then
6222  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
6223$as_echo "$LIPO" >&6; }
6224else
6225  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6226$as_echo "no" >&6; }
6227fi
6228
6229
6230fi
6231if test -z "$ac_cv_prog_LIPO"; then
6232  ac_ct_LIPO=$LIPO
6233  # Extract the first word of "lipo", so it can be a program name with args.
6234set dummy lipo; ac_word=$2
6235{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6236$as_echo_n "checking for $ac_word... " >&6; }
6237if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
6238  $as_echo_n "(cached) " >&6
6239else
6240  if test -n "$ac_ct_LIPO"; then
6241  ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
6242else
6243as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6244for as_dir in $PATH
6245do
6246  IFS=$as_save_IFS
6247  test -z "$as_dir" && as_dir=.
6248    for ac_exec_ext in '' $ac_executable_extensions; do
6249  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6250    ac_cv_prog_ac_ct_LIPO="lipo"
6251    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6252    break 2
6253  fi
6254done
6255  done
6256IFS=$as_save_IFS
6257
6258fi
6259fi
6260ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
6261if test -n "$ac_ct_LIPO"; then
6262  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
6263$as_echo "$ac_ct_LIPO" >&6; }
6264else
6265  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6266$as_echo "no" >&6; }
6267fi
6268
6269  if test "x$ac_ct_LIPO" = x; then
6270    LIPO=":"
6271  else
6272    case $cross_compiling:$ac_tool_warned in
6273yes:)
6274{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6275$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6276ac_tool_warned=yes ;;
6277esac
6278    LIPO=$ac_ct_LIPO
6279  fi
6280else
6281  LIPO="$ac_cv_prog_LIPO"
6282fi
6283
6284    if test -n "$ac_tool_prefix"; then
6285  # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
6286set dummy ${ac_tool_prefix}otool; ac_word=$2
6287{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6288$as_echo_n "checking for $ac_word... " >&6; }
6289if test "${ac_cv_prog_OTOOL+set}" = set; then :
6290  $as_echo_n "(cached) " >&6
6291else
6292  if test -n "$OTOOL"; then
6293  ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
6294else
6295as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6296for as_dir in $PATH
6297do
6298  IFS=$as_save_IFS
6299  test -z "$as_dir" && as_dir=.
6300    for ac_exec_ext in '' $ac_executable_extensions; do
6301  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6302    ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
6303    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6304    break 2
6305  fi
6306done
6307  done
6308IFS=$as_save_IFS
6309
6310fi
6311fi
6312OTOOL=$ac_cv_prog_OTOOL
6313if test -n "$OTOOL"; then
6314  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
6315$as_echo "$OTOOL" >&6; }
6316else
6317  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6318$as_echo "no" >&6; }
6319fi
6320
6321
6322fi
6323if test -z "$ac_cv_prog_OTOOL"; then
6324  ac_ct_OTOOL=$OTOOL
6325  # Extract the first word of "otool", so it can be a program name with args.
6326set dummy otool; ac_word=$2
6327{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6328$as_echo_n "checking for $ac_word... " >&6; }
6329if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
6330  $as_echo_n "(cached) " >&6
6331else
6332  if test -n "$ac_ct_OTOOL"; then
6333  ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
6334else
6335as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6336for as_dir in $PATH
6337do
6338  IFS=$as_save_IFS
6339  test -z "$as_dir" && as_dir=.
6340    for ac_exec_ext in '' $ac_executable_extensions; do
6341  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6342    ac_cv_prog_ac_ct_OTOOL="otool"
6343    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6344    break 2
6345  fi
6346done
6347  done
6348IFS=$as_save_IFS
6349
6350fi
6351fi
6352ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
6353if test -n "$ac_ct_OTOOL"; then
6354  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
6355$as_echo "$ac_ct_OTOOL" >&6; }
6356else
6357  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6358$as_echo "no" >&6; }
6359fi
6360
6361  if test "x$ac_ct_OTOOL" = x; then
6362    OTOOL=":"
6363  else
6364    case $cross_compiling:$ac_tool_warned in
6365yes:)
6366{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6367$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6368ac_tool_warned=yes ;;
6369esac
6370    OTOOL=$ac_ct_OTOOL
6371  fi
6372else
6373  OTOOL="$ac_cv_prog_OTOOL"
6374fi
6375
6376    if test -n "$ac_tool_prefix"; then
6377  # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
6378set dummy ${ac_tool_prefix}otool64; ac_word=$2
6379{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6380$as_echo_n "checking for $ac_word... " >&6; }
6381if test "${ac_cv_prog_OTOOL64+set}" = set; then :
6382  $as_echo_n "(cached) " >&6
6383else
6384  if test -n "$OTOOL64"; then
6385  ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
6386else
6387as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6388for as_dir in $PATH
6389do
6390  IFS=$as_save_IFS
6391  test -z "$as_dir" && as_dir=.
6392    for ac_exec_ext in '' $ac_executable_extensions; do
6393  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6394    ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
6395    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6396    break 2
6397  fi
6398done
6399  done
6400IFS=$as_save_IFS
6401
6402fi
6403fi
6404OTOOL64=$ac_cv_prog_OTOOL64
6405if test -n "$OTOOL64"; then
6406  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
6407$as_echo "$OTOOL64" >&6; }
6408else
6409  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6410$as_echo "no" >&6; }
6411fi
6412
6413
6414fi
6415if test -z "$ac_cv_prog_OTOOL64"; then
6416  ac_ct_OTOOL64=$OTOOL64
6417  # Extract the first word of "otool64", so it can be a program name with args.
6418set dummy otool64; ac_word=$2
6419{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6420$as_echo_n "checking for $ac_word... " >&6; }
6421if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
6422  $as_echo_n "(cached) " >&6
6423else
6424  if test -n "$ac_ct_OTOOL64"; then
6425  ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
6426else
6427as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6428for as_dir in $PATH
6429do
6430  IFS=$as_save_IFS
6431  test -z "$as_dir" && as_dir=.
6432    for ac_exec_ext in '' $ac_executable_extensions; do
6433  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6434    ac_cv_prog_ac_ct_OTOOL64="otool64"
6435    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6436    break 2
6437  fi
6438done
6439  done
6440IFS=$as_save_IFS
6441
6442fi
6443fi
6444ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
6445if test -n "$ac_ct_OTOOL64"; then
6446  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
6447$as_echo "$ac_ct_OTOOL64" >&6; }
6448else
6449  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6450$as_echo "no" >&6; }
6451fi
6452
6453  if test "x$ac_ct_OTOOL64" = x; then
6454    OTOOL64=":"
6455  else
6456    case $cross_compiling:$ac_tool_warned in
6457yes:)
6458{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6459$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6460ac_tool_warned=yes ;;
6461esac
6462    OTOOL64=$ac_ct_OTOOL64
6463  fi
6464else
6465  OTOOL64="$ac_cv_prog_OTOOL64"
6466fi
6467
6468
6469
6470
6471
6472
6473
6474
6475
6476
6477
6478
6479
6480
6481
6482
6483
6484
6485
6486
6487
6488
6489
6490
6491
6492
6493
6494    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
6495$as_echo_n "checking for -single_module linker flag... " >&6; }
6496if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
6497  $as_echo_n "(cached) " >&6
6498else
6499  lt_cv_apple_cc_single_mod=no
6500      if test -z "${LT_MULTI_MODULE}"; then
6501	# By default we will add the -single_module flag. You can override
6502	# by either setting the environment variable LT_MULTI_MODULE
6503	# non-empty at configure time, or by adding -multi_module to the
6504	# link flags.
6505	rm -rf libconftest.dylib*
6506	echo "int foo(void){return 1;}" > conftest.c
6507	echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6508-dynamiclib -Wl,-single_module conftest.c" >&5
6509	$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6510	  -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
6511        _lt_result=$?
6512	if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
6513	  lt_cv_apple_cc_single_mod=yes
6514	else
6515	  cat conftest.err >&5
6516	fi
6517	rm -rf libconftest.dylib*
6518	rm -f conftest.*
6519      fi
6520fi
6521{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
6522$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
6523    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
6524$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
6525if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
6526  $as_echo_n "(cached) " >&6
6527else
6528  lt_cv_ld_exported_symbols_list=no
6529      save_LDFLAGS=$LDFLAGS
6530      echo "_main" > conftest.sym
6531      LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
6532      if test x$gcc_no_link = xyes; then
6533  as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
6534fi
6535cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6536/* end confdefs.h.  */
6537
6538int
6539main ()
6540{
6541
6542  ;
6543  return 0;
6544}
6545_ACEOF
6546if ac_fn_c_try_link "$LINENO"; then :
6547  lt_cv_ld_exported_symbols_list=yes
6548else
6549  lt_cv_ld_exported_symbols_list=no
6550fi
6551rm -f core conftest.err conftest.$ac_objext \
6552    conftest$ac_exeext conftest.$ac_ext
6553	LDFLAGS="$save_LDFLAGS"
6554
6555fi
6556{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
6557$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
6558    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
6559$as_echo_n "checking for -force_load linker flag... " >&6; }
6560if test "${lt_cv_ld_force_load+set}" = set; then :
6561  $as_echo_n "(cached) " >&6
6562else
6563  lt_cv_ld_force_load=no
6564      cat > conftest.c << _LT_EOF
6565int forced_loaded() { return 2;}
6566_LT_EOF
6567      echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
6568      $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
6569      echo "$AR cru libconftest.a conftest.o" >&5
6570      $AR cru libconftest.a conftest.o 2>&5
6571      cat > conftest.c << _LT_EOF
6572int main() { return 0;}
6573_LT_EOF
6574      echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
6575      $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
6576      _lt_result=$?
6577      if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
6578	lt_cv_ld_force_load=yes
6579      else
6580	cat conftest.err >&5
6581      fi
6582        rm -f conftest.err libconftest.a conftest conftest.c
6583        rm -rf conftest.dSYM
6584
6585fi
6586{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
6587$as_echo "$lt_cv_ld_force_load" >&6; }
6588    case $host_os in
6589    rhapsody* | darwin1.[012])
6590      _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
6591    darwin1.*)
6592      _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
6593    darwin*) # darwin 5.x on
6594      # if running on 10.5 or later, the deployment target defaults
6595      # to the OS version, if on x86, and 10.4, the deployment
6596      # target defaults to 10.4. Don't you love it?
6597      case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
6598	10.0,*86*-darwin8*|10.0,*-darwin[91]*)
6599	  _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
6600	10.[012][,.]*)
6601	  _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
6602	10.*)
6603	  _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
6604      esac
6605    ;;
6606  esac
6607    if test "$lt_cv_apple_cc_single_mod" = "yes"; then
6608      _lt_dar_single_mod='$single_module'
6609    fi
6610    if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
6611      _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
6612    else
6613      _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
6614    fi
6615    if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
6616      _lt_dsymutil='~$DSYMUTIL $lib || :'
6617    else
6618      _lt_dsymutil=
6619    fi
6620    ;;
6621  esac
6622
6623ac_ext=c
6624ac_cpp='$CPP $CPPFLAGS'
6625ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6626ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6627ac_compiler_gnu=$ac_cv_c_compiler_gnu
6628{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
6629$as_echo_n "checking how to run the C preprocessor... " >&6; }
6630# On Suns, sometimes $CPP names a directory.
6631if test -n "$CPP" && test -d "$CPP"; then
6632  CPP=
6633fi
6634if test -z "$CPP"; then
6635  if test "${ac_cv_prog_CPP+set}" = set; then :
6636  $as_echo_n "(cached) " >&6
6637else
6638      # Double quotes because CPP needs to be expanded
6639    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
6640    do
6641      ac_preproc_ok=false
6642for ac_c_preproc_warn_flag in '' yes
6643do
6644  # Use a header file that comes with gcc, so configuring glibc
6645  # with a fresh cross-compiler works.
6646  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6647  # <limits.h> exists even on freestanding compilers.
6648  # On the NeXT, cc -E runs the code through the compiler's parser,
6649  # not just through cpp. "Syntax error" is here to catch this case.
6650  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6651/* end confdefs.h.  */
6652#ifdef __STDC__
6653# include <limits.h>
6654#else
6655# include <assert.h>
6656#endif
6657		     Syntax error
6658_ACEOF
6659if ac_fn_c_try_cpp "$LINENO"; then :
6660
6661else
6662  # Broken: fails on valid input.
6663continue
6664fi
6665rm -f conftest.err conftest.$ac_ext
6666
6667  # OK, works on sane cases.  Now check whether nonexistent headers
6668  # can be detected and how.
6669  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6670/* end confdefs.h.  */
6671#include <ac_nonexistent.h>
6672_ACEOF
6673if ac_fn_c_try_cpp "$LINENO"; then :
6674  # Broken: success on invalid input.
6675continue
6676else
6677  # Passes both tests.
6678ac_preproc_ok=:
6679break
6680fi
6681rm -f conftest.err conftest.$ac_ext
6682
6683done
6684# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6685rm -f conftest.err conftest.$ac_ext
6686if $ac_preproc_ok; then :
6687  break
6688fi
6689
6690    done
6691    ac_cv_prog_CPP=$CPP
6692
6693fi
6694  CPP=$ac_cv_prog_CPP
6695else
6696  ac_cv_prog_CPP=$CPP
6697fi
6698{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
6699$as_echo "$CPP" >&6; }
6700ac_preproc_ok=false
6701for ac_c_preproc_warn_flag in '' yes
6702do
6703  # Use a header file that comes with gcc, so configuring glibc
6704  # with a fresh cross-compiler works.
6705  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6706  # <limits.h> exists even on freestanding compilers.
6707  # On the NeXT, cc -E runs the code through the compiler's parser,
6708  # not just through cpp. "Syntax error" is here to catch this case.
6709  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6710/* end confdefs.h.  */
6711#ifdef __STDC__
6712# include <limits.h>
6713#else
6714# include <assert.h>
6715#endif
6716		     Syntax error
6717_ACEOF
6718if ac_fn_c_try_cpp "$LINENO"; then :
6719
6720else
6721  # Broken: fails on valid input.
6722continue
6723fi
6724rm -f conftest.err conftest.$ac_ext
6725
6726  # OK, works on sane cases.  Now check whether nonexistent headers
6727  # can be detected and how.
6728  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6729/* end confdefs.h.  */
6730#include <ac_nonexistent.h>
6731_ACEOF
6732if ac_fn_c_try_cpp "$LINENO"; then :
6733  # Broken: success on invalid input.
6734continue
6735else
6736  # Passes both tests.
6737ac_preproc_ok=:
6738break
6739fi
6740rm -f conftest.err conftest.$ac_ext
6741
6742done
6743# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6744rm -f conftest.err conftest.$ac_ext
6745if $ac_preproc_ok; then :
6746
6747else
6748  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6749$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6750as_fn_error "C preprocessor \"$CPP\" fails sanity check
6751See \`config.log' for more details." "$LINENO" 5; }
6752fi
6753
6754ac_ext=c
6755ac_cpp='$CPP $CPPFLAGS'
6756ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6757ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6758ac_compiler_gnu=$ac_cv_c_compiler_gnu
6759
6760
6761{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
6762$as_echo_n "checking for ANSI C header files... " >&6; }
6763if test "${ac_cv_header_stdc+set}" = set; then :
6764  $as_echo_n "(cached) " >&6
6765else
6766  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6767/* end confdefs.h.  */
6768#include <stdlib.h>
6769#include <stdarg.h>
6770#include <string.h>
6771#include <float.h>
6772
6773int
6774main ()
6775{
6776
6777  ;
6778  return 0;
6779}
6780_ACEOF
6781if ac_fn_c_try_compile "$LINENO"; then :
6782  ac_cv_header_stdc=yes
6783else
6784  ac_cv_header_stdc=no
6785fi
6786rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6787
6788if test $ac_cv_header_stdc = yes; then
6789  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6790  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6791/* end confdefs.h.  */
6792#include <string.h>
6793
6794_ACEOF
6795if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6796  $EGREP "memchr" >/dev/null 2>&1; then :
6797
6798else
6799  ac_cv_header_stdc=no
6800fi
6801rm -f conftest*
6802
6803fi
6804
6805if test $ac_cv_header_stdc = yes; then
6806  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6807  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6808/* end confdefs.h.  */
6809#include <stdlib.h>
6810
6811_ACEOF
6812if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6813  $EGREP "free" >/dev/null 2>&1; then :
6814
6815else
6816  ac_cv_header_stdc=no
6817fi
6818rm -f conftest*
6819
6820fi
6821
6822if test $ac_cv_header_stdc = yes; then
6823  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6824  if test "$cross_compiling" = yes; then :
6825  :
6826else
6827  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6828/* end confdefs.h.  */
6829#include <ctype.h>
6830#include <stdlib.h>
6831#if ((' ' & 0x0FF) == 0x020)
6832# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6833# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6834#else
6835# define ISLOWER(c) \
6836		   (('a' <= (c) && (c) <= 'i') \
6837		     || ('j' <= (c) && (c) <= 'r') \
6838		     || ('s' <= (c) && (c) <= 'z'))
6839# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6840#endif
6841
6842#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6843int
6844main ()
6845{
6846  int i;
6847  for (i = 0; i < 256; i++)
6848    if (XOR (islower (i), ISLOWER (i))
6849	|| toupper (i) != TOUPPER (i))
6850      return 2;
6851  return 0;
6852}
6853_ACEOF
6854if ac_fn_c_try_run "$LINENO"; then :
6855
6856else
6857  ac_cv_header_stdc=no
6858fi
6859rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6860  conftest.$ac_objext conftest.beam conftest.$ac_ext
6861fi
6862
6863fi
6864fi
6865{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
6866$as_echo "$ac_cv_header_stdc" >&6; }
6867if test $ac_cv_header_stdc = yes; then
6868
6869$as_echo "#define STDC_HEADERS 1" >>confdefs.h
6870
6871fi
6872
6873# On IRIX 5.3, sys/types and inttypes.h are conflicting.
6874for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6875		  inttypes.h stdint.h unistd.h
6876do :
6877  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6878ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
6879"
6880eval as_val=\$$as_ac_Header
6881   if test "x$as_val" = x""yes; then :
6882  cat >>confdefs.h <<_ACEOF
6883#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6884_ACEOF
6885
6886fi
6887
6888done
6889
6890
6891for ac_header in dlfcn.h
6892do :
6893  ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
6894"
6895if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
6896  cat >>confdefs.h <<_ACEOF
6897#define HAVE_DLFCN_H 1
6898_ACEOF
6899
6900fi
6901
6902done
6903
6904
6905
6906
6907
6908# Set options
6909
6910
6911
6912        enable_dlopen=no
6913
6914
6915  enable_win32_dll=no
6916
6917
6918            # Check whether --enable-shared was given.
6919if test "${enable_shared+set}" = set; then :
6920  enableval=$enable_shared; p=${PACKAGE-default}
6921    case $enableval in
6922    yes) enable_shared=yes ;;
6923    no) enable_shared=no ;;
6924    *)
6925      enable_shared=no
6926      # Look at the argument we got.  We use all the common list separators.
6927      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
6928      for pkg in $enableval; do
6929	IFS="$lt_save_ifs"
6930	if test "X$pkg" = "X$p"; then
6931	  enable_shared=yes
6932	fi
6933      done
6934      IFS="$lt_save_ifs"
6935      ;;
6936    esac
6937else
6938  enable_shared=yes
6939fi
6940
6941
6942
6943
6944
6945
6946
6947
6948
6949  # Check whether --enable-static was given.
6950if test "${enable_static+set}" = set; then :
6951  enableval=$enable_static; p=${PACKAGE-default}
6952    case $enableval in
6953    yes) enable_static=yes ;;
6954    no) enable_static=no ;;
6955    *)
6956     enable_static=no
6957      # Look at the argument we got.  We use all the common list separators.
6958      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
6959      for pkg in $enableval; do
6960	IFS="$lt_save_ifs"
6961	if test "X$pkg" = "X$p"; then
6962	  enable_static=yes
6963	fi
6964      done
6965      IFS="$lt_save_ifs"
6966      ;;
6967    esac
6968else
6969  enable_static=yes
6970fi
6971
6972
6973
6974
6975
6976
6977
6978
6979
6980
6981# Check whether --with-pic was given.
6982if test "${with_pic+set}" = set; then :
6983  withval=$with_pic; pic_mode="$withval"
6984else
6985  pic_mode=default
6986fi
6987
6988
6989test -z "$pic_mode" && pic_mode=default
6990
6991
6992
6993
6994
6995
6996
6997  # Check whether --enable-fast-install was given.
6998if test "${enable_fast_install+set}" = set; then :
6999  enableval=$enable_fast_install; p=${PACKAGE-default}
7000    case $enableval in
7001    yes) enable_fast_install=yes ;;
7002    no) enable_fast_install=no ;;
7003    *)
7004      enable_fast_install=no
7005      # Look at the argument we got.  We use all the common list separators.
7006      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7007      for pkg in $enableval; do
7008	IFS="$lt_save_ifs"
7009	if test "X$pkg" = "X$p"; then
7010	  enable_fast_install=yes
7011	fi
7012      done
7013      IFS="$lt_save_ifs"
7014      ;;
7015    esac
7016else
7017  enable_fast_install=yes
7018fi
7019
7020
7021
7022
7023
7024
7025
7026
7027
7028
7029
7030# This can be used to rebuild libtool when needed
7031LIBTOOL_DEPS="$ltmain"
7032
7033# Always use our own libtool.
7034LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7035
7036
7037
7038
7039
7040
7041
7042
7043
7044
7045
7046
7047
7048
7049
7050
7051
7052
7053
7054
7055
7056
7057
7058
7059
7060
7061test -z "$LN_S" && LN_S="ln -s"
7062
7063
7064
7065
7066
7067
7068
7069
7070
7071
7072
7073
7074
7075
7076if test -n "${ZSH_VERSION+set}" ; then
7077   setopt NO_GLOB_SUBST
7078fi
7079
7080{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
7081$as_echo_n "checking for objdir... " >&6; }
7082if test "${lt_cv_objdir+set}" = set; then :
7083  $as_echo_n "(cached) " >&6
7084else
7085  rm -f .libs 2>/dev/null
7086mkdir .libs 2>/dev/null
7087if test -d .libs; then
7088  lt_cv_objdir=.libs
7089else
7090  # MS-DOS does not allow filenames that begin with a dot.
7091  lt_cv_objdir=_libs
7092fi
7093rmdir .libs 2>/dev/null
7094fi
7095{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
7096$as_echo "$lt_cv_objdir" >&6; }
7097objdir=$lt_cv_objdir
7098
7099
7100
7101
7102
7103cat >>confdefs.h <<_ACEOF
7104#define LT_OBJDIR "$lt_cv_objdir/"
7105_ACEOF
7106
7107
7108
7109
7110case $host_os in
7111aix3*)
7112  # AIX sometimes has problems with the GCC collect2 program.  For some
7113  # reason, if we set the COLLECT_NAMES environment variable, the problems
7114  # vanish in a puff of smoke.
7115  if test "X${COLLECT_NAMES+set}" != Xset; then
7116    COLLECT_NAMES=
7117    export COLLECT_NAMES
7118  fi
7119  ;;
7120esac
7121
7122# Global variables:
7123ofile=libtool
7124can_build_shared=yes
7125
7126# All known linkers require a `.a' archive for static linking (except MSVC,
7127# which needs '.lib').
7128libext=a
7129
7130with_gnu_ld="$lt_cv_prog_gnu_ld"
7131
7132old_CC="$CC"
7133old_CFLAGS="$CFLAGS"
7134
7135# Set sane defaults for various variables
7136test -z "$CC" && CC=cc
7137test -z "$LTCC" && LTCC=$CC
7138test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7139test -z "$LD" && LD=ld
7140test -z "$ac_objext" && ac_objext=o
7141
7142for cc_temp in $compiler""; do
7143  case $cc_temp in
7144    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7145    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7146    \-*) ;;
7147    *) break;;
7148  esac
7149done
7150cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
7151
7152
7153# Only perform the check for file, if the check method requires it
7154test -z "$MAGIC_CMD" && MAGIC_CMD=file
7155case $deplibs_check_method in
7156file_magic*)
7157  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7158    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
7159$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
7160if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
7161  $as_echo_n "(cached) " >&6
7162else
7163  case $MAGIC_CMD in
7164[\\/*] |  ?:[\\/]*)
7165  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7166  ;;
7167*)
7168  lt_save_MAGIC_CMD="$MAGIC_CMD"
7169  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7170  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7171  for ac_dir in $ac_dummy; do
7172    IFS="$lt_save_ifs"
7173    test -z "$ac_dir" && ac_dir=.
7174    if test -f $ac_dir/${ac_tool_prefix}file; then
7175      lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7176      if test -n "$file_magic_test_file"; then
7177	case $deplibs_check_method in
7178	"file_magic "*)
7179	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7180	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7181	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7182	    $EGREP "$file_magic_regex" > /dev/null; then
7183	    :
7184	  else
7185	    cat <<_LT_EOF 1>&2
7186
7187*** Warning: the command libtool uses to detect shared libraries,
7188*** $file_magic_cmd, produces output that libtool cannot recognize.
7189*** The result is that libtool may fail to recognize shared libraries
7190*** as such.  This will affect the creation of libtool libraries that
7191*** depend on shared libraries, but programs linked with such libtool
7192*** libraries will work regardless of this problem.  Nevertheless, you
7193*** may want to report the problem to your system manager and/or to
7194*** bug-libtool@gnu.org
7195
7196_LT_EOF
7197	  fi ;;
7198	esac
7199      fi
7200      break
7201    fi
7202  done
7203  IFS="$lt_save_ifs"
7204  MAGIC_CMD="$lt_save_MAGIC_CMD"
7205  ;;
7206esac
7207fi
7208
7209MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7210if test -n "$MAGIC_CMD"; then
7211  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7212$as_echo "$MAGIC_CMD" >&6; }
7213else
7214  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7215$as_echo "no" >&6; }
7216fi
7217
7218
7219
7220
7221
7222if test -z "$lt_cv_path_MAGIC_CMD"; then
7223  if test -n "$ac_tool_prefix"; then
7224    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
7225$as_echo_n "checking for file... " >&6; }
7226if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
7227  $as_echo_n "(cached) " >&6
7228else
7229  case $MAGIC_CMD in
7230[\\/*] |  ?:[\\/]*)
7231  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7232  ;;
7233*)
7234  lt_save_MAGIC_CMD="$MAGIC_CMD"
7235  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7236  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7237  for ac_dir in $ac_dummy; do
7238    IFS="$lt_save_ifs"
7239    test -z "$ac_dir" && ac_dir=.
7240    if test -f $ac_dir/file; then
7241      lt_cv_path_MAGIC_CMD="$ac_dir/file"
7242      if test -n "$file_magic_test_file"; then
7243	case $deplibs_check_method in
7244	"file_magic "*)
7245	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7246	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7247	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7248	    $EGREP "$file_magic_regex" > /dev/null; then
7249	    :
7250	  else
7251	    cat <<_LT_EOF 1>&2
7252
7253*** Warning: the command libtool uses to detect shared libraries,
7254*** $file_magic_cmd, produces output that libtool cannot recognize.
7255*** The result is that libtool may fail to recognize shared libraries
7256*** as such.  This will affect the creation of libtool libraries that
7257*** depend on shared libraries, but programs linked with such libtool
7258*** libraries will work regardless of this problem.  Nevertheless, you
7259*** may want to report the problem to your system manager and/or to
7260*** bug-libtool@gnu.org
7261
7262_LT_EOF
7263	  fi ;;
7264	esac
7265      fi
7266      break
7267    fi
7268  done
7269  IFS="$lt_save_ifs"
7270  MAGIC_CMD="$lt_save_MAGIC_CMD"
7271  ;;
7272esac
7273fi
7274
7275MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7276if test -n "$MAGIC_CMD"; then
7277  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7278$as_echo "$MAGIC_CMD" >&6; }
7279else
7280  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7281$as_echo "no" >&6; }
7282fi
7283
7284
7285  else
7286    MAGIC_CMD=:
7287  fi
7288fi
7289
7290  fi
7291  ;;
7292esac
7293
7294# Use C for the default configuration in the libtool script
7295
7296lt_save_CC="$CC"
7297ac_ext=c
7298ac_cpp='$CPP $CPPFLAGS'
7299ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7300ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7301ac_compiler_gnu=$ac_cv_c_compiler_gnu
7302
7303
7304# Source file extension for C test sources.
7305ac_ext=c
7306
7307# Object file extension for compiled C test sources.
7308objext=o
7309objext=$objext
7310
7311# Code to be used in simple compile tests
7312lt_simple_compile_test_code="int some_variable = 0;"
7313
7314# Code to be used in simple link tests
7315lt_simple_link_test_code='int main(){return(0);}'
7316
7317
7318
7319
7320
7321
7322
7323# If no C compiler was specified, use CC.
7324LTCC=${LTCC-"$CC"}
7325
7326# If no C compiler flags were specified, use CFLAGS.
7327LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7328
7329# Allow CC to be a program name with arguments.
7330compiler=$CC
7331
7332# Save the default compiler, since it gets overwritten when the other
7333# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
7334compiler_DEFAULT=$CC
7335
7336# save warnings/boilerplate of simple test code
7337ac_outfile=conftest.$ac_objext
7338echo "$lt_simple_compile_test_code" >conftest.$ac_ext
7339eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7340_lt_compiler_boilerplate=`cat conftest.err`
7341$RM conftest*
7342
7343ac_outfile=conftest.$ac_objext
7344echo "$lt_simple_link_test_code" >conftest.$ac_ext
7345eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7346_lt_linker_boilerplate=`cat conftest.err`
7347$RM -r conftest*
7348
7349
7350## CAVEAT EMPTOR:
7351## There is no encapsulation within the following macros, do not change
7352## the running order or otherwise move them around unless you know exactly
7353## what you are doing...
7354if test -n "$compiler"; then
7355
7356lt_prog_compiler_no_builtin_flag=
7357
7358if test "$GCC" = yes; then
7359  case $cc_basename in
7360  nvcc*)
7361    lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
7362  *)
7363    lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
7364  esac
7365
7366  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7367$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
7368if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
7369  $as_echo_n "(cached) " >&6
7370else
7371  lt_cv_prog_compiler_rtti_exceptions=no
7372   ac_outfile=conftest.$ac_objext
7373   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7374   lt_compiler_flag="-fno-rtti -fno-exceptions"
7375   # Insert the option either (1) after the last *FLAGS variable, or
7376   # (2) before a word containing "conftest.", or (3) at the end.
7377   # Note that $ac_compile itself does not contain backslashes and begins
7378   # with a dollar sign (not a hyphen), so the echo should work correctly.
7379   # The option is referenced via a variable to avoid confusing sed.
7380   lt_compile=`echo "$ac_compile" | $SED \
7381   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7382   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7383   -e 's:$: $lt_compiler_flag:'`
7384   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
7385   (eval "$lt_compile" 2>conftest.err)
7386   ac_status=$?
7387   cat conftest.err >&5
7388   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7389   if (exit $ac_status) && test -s "$ac_outfile"; then
7390     # The compiler can only warn and ignore the option if not recognized
7391     # So say no if there are warnings other than the usual output.
7392     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
7393     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7394     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7395       lt_cv_prog_compiler_rtti_exceptions=yes
7396     fi
7397   fi
7398   $RM conftest*
7399
7400fi
7401{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7402$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
7403
7404if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7405    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7406else
7407    :
7408fi
7409
7410fi
7411
7412
7413
7414
7415
7416
7417  lt_prog_compiler_wl=
7418lt_prog_compiler_pic=
7419lt_prog_compiler_static=
7420
7421{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
7422$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
7423
7424  if test "$GCC" = yes; then
7425    lt_prog_compiler_wl='-Wl,'
7426    lt_prog_compiler_static='-static'
7427
7428    case $host_os in
7429      aix*)
7430      # All AIX code is PIC.
7431      if test "$host_cpu" = ia64; then
7432	# AIX 5 now supports IA64 processor
7433	lt_prog_compiler_static='-Bstatic'
7434      fi
7435      lt_prog_compiler_pic='-fPIC'
7436      ;;
7437
7438    amigaos*)
7439      case $host_cpu in
7440      powerpc)
7441            # see comment about AmigaOS4 .so support
7442            lt_prog_compiler_pic='-fPIC'
7443        ;;
7444      m68k)
7445            # FIXME: we need at least 68020 code to build shared libraries, but
7446            # adding the `-m68020' flag to GCC prevents building anything better,
7447            # like `-m68040'.
7448            lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7449        ;;
7450      esac
7451      ;;
7452
7453    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7454      # PIC is the default for these OSes.
7455      ;;
7456
7457    mingw* | cygwin* | pw32* | os2* | cegcc*)
7458      # This hack is so that the source file can tell whether it is being
7459      # built for inclusion in a dll (and should export symbols for example).
7460      # Although the cygwin gcc ignores -fPIC, still need this for old-style
7461      # (--disable-auto-import) libraries
7462      lt_prog_compiler_pic='-DDLL_EXPORT'
7463      ;;
7464
7465    darwin* | rhapsody*)
7466      # PIC is the default on this platform
7467      # Common symbols not allowed in MH_DYLIB files
7468      lt_prog_compiler_pic='-fno-common'
7469      ;;
7470
7471    haiku*)
7472      # PIC is the default for Haiku.
7473      # The "-static" flag exists, but is broken.
7474      lt_prog_compiler_static=
7475      ;;
7476
7477    hpux*)
7478      # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
7479      # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
7480      # sets the default TLS model and affects inlining.
7481      case $host_cpu in
7482      hppa*64*)
7483	# +Z the default
7484	;;
7485      *)
7486	lt_prog_compiler_pic='-fPIC'
7487	;;
7488      esac
7489      ;;
7490
7491    interix[3-9]*)
7492      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7493      # Instead, we relocate shared libraries at runtime.
7494      ;;
7495
7496    msdosdjgpp*)
7497      # Just because we use GCC doesn't mean we suddenly get shared libraries
7498      # on systems that don't support them.
7499      lt_prog_compiler_can_build_shared=no
7500      enable_shared=no
7501      ;;
7502
7503    *nto* | *qnx*)
7504      # QNX uses GNU C++, but need to define -shared option too, otherwise
7505      # it will coredump.
7506      lt_prog_compiler_pic='-fPIC -shared'
7507      ;;
7508
7509    sysv4*MP*)
7510      if test -d /usr/nec; then
7511	lt_prog_compiler_pic=-Kconform_pic
7512      fi
7513      ;;
7514
7515    *)
7516      lt_prog_compiler_pic='-fPIC'
7517      ;;
7518    esac
7519
7520    case $cc_basename in
7521    nvcc*) # Cuda Compiler Driver 2.2
7522      lt_prog_compiler_wl='-Xlinker '
7523      lt_prog_compiler_pic='-Xcompiler -fPIC'
7524      ;;
7525    esac
7526  else
7527    # PORTME Check for flag to pass linker flags through the system compiler.
7528    case $host_os in
7529    aix*)
7530      lt_prog_compiler_wl='-Wl,'
7531      if test "$host_cpu" = ia64; then
7532	# AIX 5 now supports IA64 processor
7533	lt_prog_compiler_static='-Bstatic'
7534      else
7535	lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7536      fi
7537      ;;
7538
7539    mingw* | cygwin* | pw32* | os2* | cegcc*)
7540      # This hack is so that the source file can tell whether it is being
7541      # built for inclusion in a dll (and should export symbols for example).
7542      lt_prog_compiler_pic='-DDLL_EXPORT'
7543      ;;
7544
7545    hpux9* | hpux10* | hpux11*)
7546      lt_prog_compiler_wl='-Wl,'
7547      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7548      # not for PA HP-UX.
7549      case $host_cpu in
7550      hppa*64*|ia64*)
7551	# +Z the default
7552	;;
7553      *)
7554	lt_prog_compiler_pic='+Z'
7555	;;
7556      esac
7557      # Is there a better lt_prog_compiler_static that works with the bundled CC?
7558      lt_prog_compiler_static='${wl}-a ${wl}archive'
7559      ;;
7560
7561    irix5* | irix6* | nonstopux*)
7562      lt_prog_compiler_wl='-Wl,'
7563      # PIC (with -KPIC) is the default.
7564      lt_prog_compiler_static='-non_shared'
7565      ;;
7566
7567    linux* | k*bsd*-gnu | kopensolaris*-gnu)
7568      case $cc_basename in
7569      # old Intel for x86_64 which still supported -KPIC.
7570      ecc*)
7571	lt_prog_compiler_wl='-Wl,'
7572	lt_prog_compiler_pic='-KPIC'
7573	lt_prog_compiler_static='-static'
7574        ;;
7575      # icc used to be incompatible with GCC.
7576      # ICC 10 doesn't accept -KPIC any more.
7577      icc* | ifort*)
7578	lt_prog_compiler_wl='-Wl,'
7579	lt_prog_compiler_pic='-fPIC'
7580	lt_prog_compiler_static='-static'
7581        ;;
7582      # Lahey Fortran 8.1.
7583      lf95*)
7584	lt_prog_compiler_wl='-Wl,'
7585	lt_prog_compiler_pic='--shared'
7586	lt_prog_compiler_static='--static'
7587	;;
7588      pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
7589        # Portland Group compilers (*not* the Pentium gcc compiler,
7590	# which looks to be a dead project)
7591	lt_prog_compiler_wl='-Wl,'
7592	lt_prog_compiler_pic='-fpic'
7593	lt_prog_compiler_static='-Bstatic'
7594        ;;
7595      ccc*)
7596        lt_prog_compiler_wl='-Wl,'
7597        # All Alpha code is PIC.
7598        lt_prog_compiler_static='-non_shared'
7599        ;;
7600      xl* | bgxl* | bgf* | mpixl*)
7601	# IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
7602	lt_prog_compiler_wl='-Wl,'
7603	lt_prog_compiler_pic='-qpic'
7604	lt_prog_compiler_static='-qstaticlink'
7605	;;
7606      *)
7607	case `$CC -V 2>&1 | sed 5q` in
7608	*Sun\ F* | *Sun*Fortran*)
7609	  # Sun Fortran 8.3 passes all unrecognized flags to the linker
7610	  lt_prog_compiler_pic='-KPIC'
7611	  lt_prog_compiler_static='-Bstatic'
7612	  lt_prog_compiler_wl=''
7613	  ;;
7614	*Sun\ C*)
7615	  # Sun C 5.9
7616	  lt_prog_compiler_pic='-KPIC'
7617	  lt_prog_compiler_static='-Bstatic'
7618	  lt_prog_compiler_wl='-Wl,'
7619	  ;;
7620	esac
7621	;;
7622      esac
7623      ;;
7624
7625    newsos6)
7626      lt_prog_compiler_pic='-KPIC'
7627      lt_prog_compiler_static='-Bstatic'
7628      ;;
7629
7630    *nto* | *qnx*)
7631      # QNX uses GNU C++, but need to define -shared option too, otherwise
7632      # it will coredump.
7633      lt_prog_compiler_pic='-fPIC -shared'
7634      ;;
7635
7636    osf3* | osf4* | osf5*)
7637      lt_prog_compiler_wl='-Wl,'
7638      # All OSF/1 code is PIC.
7639      lt_prog_compiler_static='-non_shared'
7640      ;;
7641
7642    rdos*)
7643      lt_prog_compiler_static='-non_shared'
7644      ;;
7645
7646    solaris*)
7647      lt_prog_compiler_pic='-KPIC'
7648      lt_prog_compiler_static='-Bstatic'
7649      case $cc_basename in
7650      f77* | f90* | f95*)
7651	lt_prog_compiler_wl='-Qoption ld ';;
7652      *)
7653	lt_prog_compiler_wl='-Wl,';;
7654      esac
7655      ;;
7656
7657    sunos4*)
7658      lt_prog_compiler_wl='-Qoption ld '
7659      lt_prog_compiler_pic='-PIC'
7660      lt_prog_compiler_static='-Bstatic'
7661      ;;
7662
7663    sysv4 | sysv4.2uw2* | sysv4.3*)
7664      lt_prog_compiler_wl='-Wl,'
7665      lt_prog_compiler_pic='-KPIC'
7666      lt_prog_compiler_static='-Bstatic'
7667      ;;
7668
7669    sysv4*MP*)
7670      if test -d /usr/nec ;then
7671	lt_prog_compiler_pic='-Kconform_pic'
7672	lt_prog_compiler_static='-Bstatic'
7673      fi
7674      ;;
7675
7676    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
7677      lt_prog_compiler_wl='-Wl,'
7678      lt_prog_compiler_pic='-KPIC'
7679      lt_prog_compiler_static='-Bstatic'
7680      ;;
7681
7682    unicos*)
7683      lt_prog_compiler_wl='-Wl,'
7684      lt_prog_compiler_can_build_shared=no
7685      ;;
7686
7687    uts4*)
7688      lt_prog_compiler_pic='-pic'
7689      lt_prog_compiler_static='-Bstatic'
7690      ;;
7691
7692    *)
7693      lt_prog_compiler_can_build_shared=no
7694      ;;
7695    esac
7696  fi
7697
7698case $host_os in
7699  # For platforms which do not support PIC, -DPIC is meaningless:
7700  *djgpp*)
7701    lt_prog_compiler_pic=
7702    ;;
7703  *)
7704    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
7705    ;;
7706esac
7707{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
7708$as_echo "$lt_prog_compiler_pic" >&6; }
7709
7710
7711
7712
7713
7714
7715#
7716# Check to make sure the PIC flag actually works.
7717#
7718if test -n "$lt_prog_compiler_pic"; then
7719  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
7720$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
7721if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
7722  $as_echo_n "(cached) " >&6
7723else
7724  lt_cv_prog_compiler_pic_works=no
7725   ac_outfile=conftest.$ac_objext
7726   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7727   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
7728   # Insert the option either (1) after the last *FLAGS variable, or
7729   # (2) before a word containing "conftest.", or (3) at the end.
7730   # Note that $ac_compile itself does not contain backslashes and begins
7731   # with a dollar sign (not a hyphen), so the echo should work correctly.
7732   # The option is referenced via a variable to avoid confusing sed.
7733   lt_compile=`echo "$ac_compile" | $SED \
7734   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7735   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7736   -e 's:$: $lt_compiler_flag:'`
7737   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
7738   (eval "$lt_compile" 2>conftest.err)
7739   ac_status=$?
7740   cat conftest.err >&5
7741   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7742   if (exit $ac_status) && test -s "$ac_outfile"; then
7743     # The compiler can only warn and ignore the option if not recognized
7744     # So say no if there are warnings other than the usual output.
7745     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
7746     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7747     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7748       lt_cv_prog_compiler_pic_works=yes
7749     fi
7750   fi
7751   $RM conftest*
7752
7753fi
7754{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
7755$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
7756
7757if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
7758    case $lt_prog_compiler_pic in
7759     "" | " "*) ;;
7760     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
7761     esac
7762else
7763    lt_prog_compiler_pic=
7764     lt_prog_compiler_can_build_shared=no
7765fi
7766
7767fi
7768
7769
7770
7771
7772
7773
7774#
7775# Check to make sure the static flag actually works.
7776#
7777wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
7778{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
7779$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
7780if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
7781  $as_echo_n "(cached) " >&6
7782else
7783  lt_cv_prog_compiler_static_works=no
7784   save_LDFLAGS="$LDFLAGS"
7785   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
7786   echo "$lt_simple_link_test_code" > conftest.$ac_ext
7787   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
7788     # The linker can only warn and ignore the option if not recognized
7789     # So say no if there are warnings
7790     if test -s conftest.err; then
7791       # Append any errors to the config.log.
7792       cat conftest.err 1>&5
7793       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
7794       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7795       if diff conftest.exp conftest.er2 >/dev/null; then
7796         lt_cv_prog_compiler_static_works=yes
7797       fi
7798     else
7799       lt_cv_prog_compiler_static_works=yes
7800     fi
7801   fi
7802   $RM -r conftest*
7803   LDFLAGS="$save_LDFLAGS"
7804
7805fi
7806{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
7807$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
7808
7809if test x"$lt_cv_prog_compiler_static_works" = xyes; then
7810    :
7811else
7812    lt_prog_compiler_static=
7813fi
7814
7815
7816
7817
7818
7819
7820
7821  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
7822$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
7823if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
7824  $as_echo_n "(cached) " >&6
7825else
7826  lt_cv_prog_compiler_c_o=no
7827   $RM -r conftest 2>/dev/null
7828   mkdir conftest
7829   cd conftest
7830   mkdir out
7831   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7832
7833   lt_compiler_flag="-o out/conftest2.$ac_objext"
7834   # Insert the option either (1) after the last *FLAGS variable, or
7835   # (2) before a word containing "conftest.", or (3) at the end.
7836   # Note that $ac_compile itself does not contain backslashes and begins
7837   # with a dollar sign (not a hyphen), so the echo should work correctly.
7838   lt_compile=`echo "$ac_compile" | $SED \
7839   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7840   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7841   -e 's:$: $lt_compiler_flag:'`
7842   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
7843   (eval "$lt_compile" 2>out/conftest.err)
7844   ac_status=$?
7845   cat out/conftest.err >&5
7846   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7847   if (exit $ac_status) && test -s out/conftest2.$ac_objext
7848   then
7849     # The compiler can only warn and ignore the option if not recognized
7850     # So say no if there are warnings
7851     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
7852     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7853     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7854       lt_cv_prog_compiler_c_o=yes
7855     fi
7856   fi
7857   chmod u+w . 2>&5
7858   $RM conftest*
7859   # SGI C++ compiler will create directory out/ii_files/ for
7860   # template instantiation
7861   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
7862   $RM out/* && rmdir out
7863   cd ..
7864   $RM -r conftest
7865   $RM conftest*
7866
7867fi
7868{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
7869$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
7870
7871
7872
7873
7874
7875
7876  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
7877$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
7878if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
7879  $as_echo_n "(cached) " >&6
7880else
7881  lt_cv_prog_compiler_c_o=no
7882   $RM -r conftest 2>/dev/null
7883   mkdir conftest
7884   cd conftest
7885   mkdir out
7886   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7887
7888   lt_compiler_flag="-o out/conftest2.$ac_objext"
7889   # Insert the option either (1) after the last *FLAGS variable, or
7890   # (2) before a word containing "conftest.", or (3) at the end.
7891   # Note that $ac_compile itself does not contain backslashes and begins
7892   # with a dollar sign (not a hyphen), so the echo should work correctly.
7893   lt_compile=`echo "$ac_compile" | $SED \
7894   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7895   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7896   -e 's:$: $lt_compiler_flag:'`
7897   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
7898   (eval "$lt_compile" 2>out/conftest.err)
7899   ac_status=$?
7900   cat out/conftest.err >&5
7901   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7902   if (exit $ac_status) && test -s out/conftest2.$ac_objext
7903   then
7904     # The compiler can only warn and ignore the option if not recognized
7905     # So say no if there are warnings
7906     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
7907     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7908     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7909       lt_cv_prog_compiler_c_o=yes
7910     fi
7911   fi
7912   chmod u+w . 2>&5
7913   $RM conftest*
7914   # SGI C++ compiler will create directory out/ii_files/ for
7915   # template instantiation
7916   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
7917   $RM out/* && rmdir out
7918   cd ..
7919   $RM -r conftest
7920   $RM conftest*
7921
7922fi
7923{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
7924$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
7925
7926
7927
7928
7929hard_links="nottested"
7930if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
7931  # do not overwrite the value of need_locks provided by the user
7932  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
7933$as_echo_n "checking if we can lock with hard links... " >&6; }
7934  hard_links=yes
7935  $RM conftest*
7936  ln conftest.a conftest.b 2>/dev/null && hard_links=no
7937  touch conftest.a
7938  ln conftest.a conftest.b 2>&5 || hard_links=no
7939  ln conftest.a conftest.b 2>/dev/null && hard_links=no
7940  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
7941$as_echo "$hard_links" >&6; }
7942  if test "$hard_links" = no; then
7943    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
7944$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
7945    need_locks=warn
7946  fi
7947else
7948  need_locks=no
7949fi
7950
7951
7952
7953
7954
7955
7956  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
7957$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
7958
7959  runpath_var=
7960  allow_undefined_flag=
7961  always_export_symbols=no
7962  archive_cmds=
7963  archive_expsym_cmds=
7964  compiler_needs_object=no
7965  enable_shared_with_static_runtimes=no
7966  export_dynamic_flag_spec=
7967  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
7968  hardcode_automatic=no
7969  hardcode_direct=no
7970  hardcode_direct_absolute=no
7971  hardcode_libdir_flag_spec=
7972  hardcode_libdir_flag_spec_ld=
7973  hardcode_libdir_separator=
7974  hardcode_minus_L=no
7975  hardcode_shlibpath_var=unsupported
7976  inherit_rpath=no
7977  link_all_deplibs=unknown
7978  module_cmds=
7979  module_expsym_cmds=
7980  old_archive_from_new_cmds=
7981  old_archive_from_expsyms_cmds=
7982  thread_safe_flag_spec=
7983  whole_archive_flag_spec=
7984  # include_expsyms should be a list of space-separated symbols to be *always*
7985  # included in the symbol list
7986  include_expsyms=
7987  # exclude_expsyms can be an extended regexp of symbols to exclude
7988  # it will be wrapped by ` (' and `)$', so one must not match beginning or
7989  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
7990  # as well as any symbol that contains `d'.
7991  exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
7992  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
7993  # platforms (ab)use it in PIC code, but their linkers get confused if
7994  # the symbol is explicitly referenced.  Since portable code cannot
7995  # rely on this symbol name, it's probably fine to never include it in
7996  # preloaded symbol tables.
7997  # Exclude shared library initialization/finalization symbols.
7998  extract_expsyms_cmds=
7999
8000  case $host_os in
8001  cygwin* | mingw* | pw32* | cegcc*)
8002    # FIXME: the MSVC++ port hasn't been tested in a loooong time
8003    # When not using gcc, we currently assume that we are using
8004    # Microsoft Visual C++.
8005    if test "$GCC" != yes; then
8006      with_gnu_ld=no
8007    fi
8008    ;;
8009  interix*)
8010    # we just hope/assume this is gcc and not c89 (= MSVC++)
8011    with_gnu_ld=yes
8012    ;;
8013  openbsd*)
8014    with_gnu_ld=no
8015    ;;
8016  esac
8017
8018  ld_shlibs=yes
8019
8020  # On some targets, GNU ld is compatible enough with the native linker
8021  # that we're better off using the native interface for both.
8022  lt_use_gnu_ld_interface=no
8023  if test "$with_gnu_ld" = yes; then
8024    case $host_os in
8025      aix*)
8026	# The AIX port of GNU ld has always aspired to compatibility
8027	# with the native linker.  However, as the warning in the GNU ld
8028	# block says, versions before 2.19.5* couldn't really create working
8029	# shared libraries, regardless of the interface used.
8030	case `$LD -v 2>&1` in
8031	  *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
8032	  *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
8033	  *\ \(GNU\ Binutils\)\ [3-9]*) ;;
8034	  *)
8035	    lt_use_gnu_ld_interface=yes
8036	    ;;
8037	esac
8038	;;
8039      *)
8040	lt_use_gnu_ld_interface=yes
8041	;;
8042    esac
8043  fi
8044
8045  if test "$lt_use_gnu_ld_interface" = yes; then
8046    # If archive_cmds runs LD, not CC, wlarc should be empty
8047    wlarc='${wl}'
8048
8049    # Set some defaults for GNU ld with shared library support. These
8050    # are reset later if shared libraries are not supported. Putting them
8051    # here allows them to be overridden if necessary.
8052    runpath_var=LD_RUN_PATH
8053    hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8054    export_dynamic_flag_spec='${wl}--export-dynamic'
8055    # ancient GNU ld didn't support --whole-archive et. al.
8056    if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
8057      whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8058    else
8059      whole_archive_flag_spec=
8060    fi
8061    supports_anon_versioning=no
8062    case `$LD -v 2>&1` in
8063      *GNU\ gold*) supports_anon_versioning=yes ;;
8064      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8065      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8066      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8067      *\ 2.11.*) ;; # other 2.11 versions
8068      *) supports_anon_versioning=yes ;;
8069    esac
8070
8071    # See if GNU ld supports shared libraries.
8072    case $host_os in
8073    aix[3-9]*)
8074      # On AIX/PPC, the GNU linker is very broken
8075      if test "$host_cpu" != ia64; then
8076	ld_shlibs=no
8077	cat <<_LT_EOF 1>&2
8078
8079*** Warning: the GNU linker, at least up to release 2.19, is reported
8080*** to be unable to reliably create shared libraries on AIX.
8081*** Therefore, libtool is disabling shared libraries support.  If you
8082*** really care for shared libraries, you may want to install binutils
8083*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
8084*** You will then need to restart the configuration process.
8085
8086_LT_EOF
8087      fi
8088      ;;
8089
8090    amigaos*)
8091      case $host_cpu in
8092      powerpc)
8093            # see comment about AmigaOS4 .so support
8094            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8095            archive_expsym_cmds=''
8096        ;;
8097      m68k)
8098            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)'
8099            hardcode_libdir_flag_spec='-L$libdir'
8100            hardcode_minus_L=yes
8101        ;;
8102      esac
8103      ;;
8104
8105    beos*)
8106      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8107	allow_undefined_flag=unsupported
8108	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8109	# support --undefined.  This deserves some investigation.  FIXME
8110	archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8111      else
8112	ld_shlibs=no
8113      fi
8114      ;;
8115
8116    cygwin* | mingw* | pw32* | cegcc*)
8117      # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8118      # as there is no search path for DLLs.
8119      hardcode_libdir_flag_spec='-L$libdir'
8120      export_dynamic_flag_spec='${wl}--export-all-symbols'
8121      allow_undefined_flag=unsupported
8122      always_export_symbols=no
8123      enable_shared_with_static_runtimes=yes
8124      export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
8125
8126      if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
8127        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8128	# If the export-symbols file already is a .def file (1st line
8129	# is EXPORTS), use it as is; otherwise, prepend...
8130	archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8131	  cp $export_symbols $output_objdir/$soname.def;
8132	else
8133	  echo EXPORTS > $output_objdir/$soname.def;
8134	  cat $export_symbols >> $output_objdir/$soname.def;
8135	fi~
8136	$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8137      else
8138	ld_shlibs=no
8139      fi
8140      ;;
8141
8142    haiku*)
8143      archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8144      link_all_deplibs=yes
8145      ;;
8146
8147    interix[3-9]*)
8148      hardcode_direct=no
8149      hardcode_shlibpath_var=no
8150      hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8151      export_dynamic_flag_spec='${wl}-E'
8152      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8153      # Instead, shared libraries are loaded at an image base (0x10000000 by
8154      # default) and relocated if they conflict, which is a slow very memory
8155      # consuming and fragmenting process.  To avoid this, we pick a random,
8156      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8157      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
8158      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8159      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'
8160      ;;
8161
8162    gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
8163      tmp_diet=no
8164      if test "$host_os" = linux-dietlibc; then
8165	case $cc_basename in
8166	  diet\ *) tmp_diet=yes;;	# linux-dietlibc with static linking (!diet-dyn)
8167	esac
8168      fi
8169      if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
8170	 && test "$tmp_diet" = no
8171      then
8172	tmp_addflag=' $pic_flag'
8173	tmp_sharedflag='-shared'
8174	case $cc_basename,$host_cpu in
8175        pgcc*)				# Portland Group C compiler
8176	  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'
8177	  tmp_addflag=' $pic_flag'
8178	  ;;
8179	pgf77* | pgf90* | pgf95* | pgfortran*)
8180					# Portland Group f77 and f90 compilers
8181	  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'
8182	  tmp_addflag=' $pic_flag -Mnomain' ;;
8183	ecc*,ia64* | icc*,ia64*)	# Intel C compiler on ia64
8184	  tmp_addflag=' -i_dynamic' ;;
8185	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
8186	  tmp_addflag=' -i_dynamic -nofor_main' ;;
8187	ifc* | ifort*)			# Intel Fortran compiler
8188	  tmp_addflag=' -nofor_main' ;;
8189	lf95*)				# Lahey Fortran 8.1
8190	  whole_archive_flag_spec=
8191	  tmp_sharedflag='--shared' ;;
8192	xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
8193	  tmp_sharedflag='-qmkshrobj'
8194	  tmp_addflag= ;;
8195	nvcc*)	# Cuda Compiler Driver 2.2
8196	  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'
8197	  compiler_needs_object=yes
8198	  ;;
8199	esac
8200	case `$CC -V 2>&1 | sed 5q` in
8201	*Sun\ C*)			# Sun C 5.9
8202	  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'
8203	  compiler_needs_object=yes
8204	  tmp_sharedflag='-G' ;;
8205	*Sun\ F*)			# Sun Fortran 8.3
8206	  tmp_sharedflag='-G' ;;
8207	esac
8208	archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8209
8210        if test "x$supports_anon_versioning" = xyes; then
8211          archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8212	    cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8213	    echo "local: *; };" >> $output_objdir/$libname.ver~
8214	    $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8215        fi
8216
8217	case $cc_basename in
8218	xlf* | bgf* | bgxlf* | mpixlf*)
8219	  # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
8220	  whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
8221	  hardcode_libdir_flag_spec=
8222	  hardcode_libdir_flag_spec_ld='-rpath $libdir'
8223	  archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
8224	  if test "x$supports_anon_versioning" = xyes; then
8225	    archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8226	      cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8227	      echo "local: *; };" >> $output_objdir/$libname.ver~
8228	      $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
8229	  fi
8230	  ;;
8231	esac
8232      else
8233        ld_shlibs=no
8234      fi
8235      ;;
8236
8237    netbsd*)
8238      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8239	archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8240	wlarc=
8241      else
8242	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8243	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8244      fi
8245      ;;
8246
8247    solaris*)
8248      if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
8249	ld_shlibs=no
8250	cat <<_LT_EOF 1>&2
8251
8252*** Warning: The releases 2.8.* of the GNU linker cannot reliably
8253*** create shared libraries on Solaris systems.  Therefore, libtool
8254*** is disabling shared libraries support.  We urge you to upgrade GNU
8255*** binutils to release 2.9.1 or newer.  Another option is to modify
8256*** your PATH or compiler configuration so that the native linker is
8257*** used, and then restart.
8258
8259_LT_EOF
8260      elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8261	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8262	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8263      else
8264	ld_shlibs=no
8265      fi
8266      ;;
8267
8268    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8269      case `$LD -v 2>&1` in
8270        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8271	ld_shlibs=no
8272	cat <<_LT_EOF 1>&2
8273
8274*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8275*** reliably create shared libraries on SCO systems.  Therefore, libtool
8276*** is disabling shared libraries support.  We urge you to upgrade GNU
8277*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
8278*** your PATH or compiler configuration so that the native linker is
8279*** used, and then restart.
8280
8281_LT_EOF
8282	;;
8283	*)
8284	  # For security reasons, it is highly recommended that you always
8285	  # use absolute paths for naming shared libraries, and exclude the
8286	  # DT_RUNPATH tag from executables and libraries.  But doing so
8287	  # requires that you compile everything twice, which is a pain.
8288	  if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8289	    hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8290	    archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8291	    archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8292	  else
8293	    ld_shlibs=no
8294	  fi
8295	;;
8296      esac
8297      ;;
8298
8299    sunos4*)
8300      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8301      wlarc=
8302      hardcode_direct=yes
8303      hardcode_shlibpath_var=no
8304      ;;
8305
8306    *)
8307      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8308	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8309	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8310      else
8311	ld_shlibs=no
8312      fi
8313      ;;
8314    esac
8315
8316    if test "$ld_shlibs" = no; then
8317      runpath_var=
8318      hardcode_libdir_flag_spec=
8319      export_dynamic_flag_spec=
8320      whole_archive_flag_spec=
8321    fi
8322  else
8323    # PORTME fill in a description of your system's linker (not GNU ld)
8324    case $host_os in
8325    aix3*)
8326      allow_undefined_flag=unsupported
8327      always_export_symbols=yes
8328      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'
8329      # Note: this linker hardcodes the directories in LIBPATH if there
8330      # are no directories specified by -L.
8331      hardcode_minus_L=yes
8332      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8333	# Neither direct hardcoding nor static linking is supported with a
8334	# broken collect2.
8335	hardcode_direct=unsupported
8336      fi
8337      ;;
8338
8339    aix[4-9]*)
8340      if test "$host_cpu" = ia64; then
8341	# On IA64, the linker does run time linking by default, so we don't
8342	# have to do anything special.
8343	aix_use_runtimelinking=no
8344	exp_sym_flag='-Bexport'
8345	no_entry_flag=""
8346      else
8347	# If we're using GNU nm, then we don't want the "-C" option.
8348	# -C means demangle to AIX nm, but means don't demangle with GNU nm
8349	# Also, AIX nm treats weak defined symbols like other global
8350	# defined symbols, whereas GNU nm marks them as "W".
8351	if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
8352	  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'
8353	else
8354	  export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "L")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
8355	fi
8356	aix_use_runtimelinking=no
8357
8358	# Test if we are trying to use run time linking or normal
8359	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
8360	# need to do runtime linking.
8361	case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
8362	  for ld_flag in $LDFLAGS; do
8363	  if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8364	    aix_use_runtimelinking=yes
8365	    break
8366	  fi
8367	  done
8368	  ;;
8369	esac
8370
8371	exp_sym_flag='-bexport'
8372	no_entry_flag='-bnoentry'
8373      fi
8374
8375      # When large executables or shared objects are built, AIX ld can
8376      # have problems creating the table of contents.  If linking a library
8377      # or program results in "error TOC overflow" add -mminimal-toc to
8378      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
8379      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8380
8381      archive_cmds=''
8382      hardcode_direct=yes
8383      hardcode_direct_absolute=yes
8384      hardcode_libdir_separator=':'
8385      link_all_deplibs=yes
8386      file_list_spec='${wl}-f,'
8387
8388      if test "$GCC" = yes; then
8389	case $host_os in aix4.[012]|aix4.[012].*)
8390	# We only want to do this on AIX 4.2 and lower, the check
8391	# below for broken collect2 doesn't work under 4.3+
8392	  collect2name=`${CC} -print-prog-name=collect2`
8393	  if test -f "$collect2name" &&
8394	   strings "$collect2name" | $GREP resolve_lib_name >/dev/null
8395	  then
8396	  # We have reworked collect2
8397	  :
8398	  else
8399	  # We have old collect2
8400	  hardcode_direct=unsupported
8401	  # It fails to find uninstalled libraries when the uninstalled
8402	  # path is not listed in the libpath.  Setting hardcode_minus_L
8403	  # to unsupported forces relinking
8404	  hardcode_minus_L=yes
8405	  hardcode_libdir_flag_spec='-L$libdir'
8406	  hardcode_libdir_separator=
8407	  fi
8408	  ;;
8409	esac
8410	shared_flag='-shared'
8411	if test "$aix_use_runtimelinking" = yes; then
8412	  shared_flag="$shared_flag "'${wl}-G'
8413	fi
8414      else
8415	# not using gcc
8416	if test "$host_cpu" = ia64; then
8417	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8418	# chokes on -Wl,-G. The following line is correct:
8419	  shared_flag='-G'
8420	else
8421	  if test "$aix_use_runtimelinking" = yes; then
8422	    shared_flag='${wl}-G'
8423	  else
8424	    shared_flag='${wl}-bM:SRE'
8425	  fi
8426	fi
8427      fi
8428
8429      export_dynamic_flag_spec='${wl}-bexpall'
8430      # It seems that -bexpall does not export symbols beginning with
8431      # underscore (_), so it is better to generate a list of symbols to export.
8432      always_export_symbols=yes
8433      if test "$aix_use_runtimelinking" = yes; then
8434	# Warning - without using the other runtime loading flags (-brtl),
8435	# -berok will link without error, but may produce a broken library.
8436	allow_undefined_flag='-berok'
8437        # Determine the default libpath from the value encoded in an
8438        # empty executable.
8439        if test x$gcc_no_link = xyes; then
8440  as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
8441fi
8442cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8443/* end confdefs.h.  */
8444
8445int
8446main ()
8447{
8448
8449  ;
8450  return 0;
8451}
8452_ACEOF
8453if ac_fn_c_try_link "$LINENO"; then :
8454
8455lt_aix_libpath_sed='
8456    /Import File Strings/,/^$/ {
8457	/^0/ {
8458	    s/^0  *\(.*\)$/\1/
8459	    p
8460	}
8461    }'
8462aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8463# Check for a 64-bit object if we didn't find anything.
8464if test -z "$aix_libpath"; then
8465  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8466fi
8467fi
8468rm -f core conftest.err conftest.$ac_objext \
8469    conftest$ac_exeext conftest.$ac_ext
8470if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8471
8472        hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8473        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"
8474      else
8475	if test "$host_cpu" = ia64; then
8476	  hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8477	  allow_undefined_flag="-z nodefs"
8478	  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"
8479	else
8480	 # Determine the default libpath from the value encoded in an
8481	 # empty executable.
8482	 if test x$gcc_no_link = xyes; then
8483  as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
8484fi
8485cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8486/* end confdefs.h.  */
8487
8488int
8489main ()
8490{
8491
8492  ;
8493  return 0;
8494}
8495_ACEOF
8496if ac_fn_c_try_link "$LINENO"; then :
8497
8498lt_aix_libpath_sed='
8499    /Import File Strings/,/^$/ {
8500	/^0/ {
8501	    s/^0  *\(.*\)$/\1/
8502	    p
8503	}
8504    }'
8505aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8506# Check for a 64-bit object if we didn't find anything.
8507if test -z "$aix_libpath"; then
8508  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8509fi
8510fi
8511rm -f core conftest.err conftest.$ac_objext \
8512    conftest$ac_exeext conftest.$ac_ext
8513if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8514
8515	 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8516	  # Warning - without using the other run time loading flags,
8517	  # -berok will link without error, but may produce a broken library.
8518	  no_undefined_flag=' ${wl}-bernotok'
8519	  allow_undefined_flag=' ${wl}-berok'
8520	  if test "$with_gnu_ld" = yes; then
8521	    # We only use this code for GNU lds that support --whole-archive.
8522	    whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
8523	  else
8524	    # Exported symbols can be pulled into shared objects from archives
8525	    whole_archive_flag_spec='$convenience'
8526	  fi
8527	  archive_cmds_need_lc=yes
8528	  # This is similar to how AIX traditionally builds its shared libraries.
8529	  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'
8530	fi
8531      fi
8532      ;;
8533
8534    amigaos*)
8535      case $host_cpu in
8536      powerpc)
8537            # see comment about AmigaOS4 .so support
8538            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8539            archive_expsym_cmds=''
8540        ;;
8541      m68k)
8542            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)'
8543            hardcode_libdir_flag_spec='-L$libdir'
8544            hardcode_minus_L=yes
8545        ;;
8546      esac
8547      ;;
8548
8549    bsdi[45]*)
8550      export_dynamic_flag_spec=-rdynamic
8551      ;;
8552
8553    cygwin* | mingw* | pw32* | cegcc*)
8554      # When not using gcc, we currently assume that we are using
8555      # Microsoft Visual C++.
8556      # hardcode_libdir_flag_spec is actually meaningless, as there is
8557      # no search path for DLLs.
8558      hardcode_libdir_flag_spec=' '
8559      allow_undefined_flag=unsupported
8560      # Tell ltmain to make .lib files, not .a files.
8561      libext=lib
8562      # Tell ltmain to make .dll files, not .so files.
8563      shrext_cmds=".dll"
8564      # FIXME: Setting linknames here is a bad hack.
8565      archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
8566      # The linker will automatically build a .lib file if we build a DLL.
8567      old_archive_from_new_cmds='true'
8568      # FIXME: Should let the user specify the lib program.
8569      old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
8570      fix_srcfile_path='`cygpath -w "$srcfile"`'
8571      enable_shared_with_static_runtimes=yes
8572      ;;
8573
8574    darwin* | rhapsody*)
8575
8576
8577  archive_cmds_need_lc=no
8578  hardcode_direct=no
8579  hardcode_automatic=yes
8580  hardcode_shlibpath_var=unsupported
8581  if test "$lt_cv_ld_force_load" = "yes"; then
8582    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\"`'
8583  else
8584    whole_archive_flag_spec=''
8585  fi
8586  link_all_deplibs=yes
8587  allow_undefined_flag="$_lt_dar_allow_undefined"
8588  case $cc_basename in
8589     ifort*) _lt_dar_can_shared=yes ;;
8590     *) _lt_dar_can_shared=$GCC ;;
8591  esac
8592  if test "$_lt_dar_can_shared" = "yes"; then
8593    output_verbose_link_cmd=func_echo_all
8594    archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
8595    module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
8596    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}"
8597    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}"
8598
8599  else
8600  ld_shlibs=no
8601  fi
8602
8603      ;;
8604
8605    dgux*)
8606      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8607      hardcode_libdir_flag_spec='-L$libdir'
8608      hardcode_shlibpath_var=no
8609      ;;
8610
8611    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
8612    # support.  Future versions do this automatically, but an explicit c++rt0.o
8613    # does not break anything, and helps significantly (at the cost of a little
8614    # extra space).
8615    freebsd2.2*)
8616      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
8617      hardcode_libdir_flag_spec='-R$libdir'
8618      hardcode_direct=yes
8619      hardcode_shlibpath_var=no
8620      ;;
8621
8622    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
8623    freebsd2.*)
8624      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8625      hardcode_direct=yes
8626      hardcode_minus_L=yes
8627      hardcode_shlibpath_var=no
8628      ;;
8629
8630    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
8631    freebsd* | dragonfly*)
8632      archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
8633      hardcode_libdir_flag_spec='-R$libdir'
8634      hardcode_direct=yes
8635      hardcode_shlibpath_var=no
8636      ;;
8637
8638    hpux9*)
8639      if test "$GCC" = yes; then
8640	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'
8641      else
8642	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'
8643      fi
8644      hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8645      hardcode_libdir_separator=:
8646      hardcode_direct=yes
8647
8648      # hardcode_minus_L: Not really in the search PATH,
8649      # but as the default location of the library.
8650      hardcode_minus_L=yes
8651      export_dynamic_flag_spec='${wl}-E'
8652      ;;
8653
8654    hpux10*)
8655      if test "$GCC" = yes && test "$with_gnu_ld" = no; then
8656	archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8657      else
8658	archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8659      fi
8660      if test "$with_gnu_ld" = no; then
8661	hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8662	hardcode_libdir_flag_spec_ld='+b $libdir'
8663	hardcode_libdir_separator=:
8664	hardcode_direct=yes
8665	hardcode_direct_absolute=yes
8666	export_dynamic_flag_spec='${wl}-E'
8667	# hardcode_minus_L: Not really in the search PATH,
8668	# but as the default location of the library.
8669	hardcode_minus_L=yes
8670      fi
8671      ;;
8672
8673    hpux11*)
8674      if test "$GCC" = yes && test "$with_gnu_ld" = no; then
8675	case $host_cpu in
8676	hppa*64*)
8677	  archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8678	  ;;
8679	ia64*)
8680	  archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8681	  ;;
8682	*)
8683	  archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8684	  ;;
8685	esac
8686      else
8687	case $host_cpu in
8688	hppa*64*)
8689	  archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8690	  ;;
8691	ia64*)
8692	  archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8693	  ;;
8694	*)
8695
8696	  # Older versions of the 11.00 compiler do not understand -b yet
8697	  # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
8698	  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
8699$as_echo_n "checking if $CC understands -b... " >&6; }
8700if test "${lt_cv_prog_compiler__b+set}" = set; then :
8701  $as_echo_n "(cached) " >&6
8702else
8703  lt_cv_prog_compiler__b=no
8704   save_LDFLAGS="$LDFLAGS"
8705   LDFLAGS="$LDFLAGS -b"
8706   echo "$lt_simple_link_test_code" > conftest.$ac_ext
8707   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8708     # The linker can only warn and ignore the option if not recognized
8709     # So say no if there are warnings
8710     if test -s conftest.err; then
8711       # Append any errors to the config.log.
8712       cat conftest.err 1>&5
8713       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
8714       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8715       if diff conftest.exp conftest.er2 >/dev/null; then
8716         lt_cv_prog_compiler__b=yes
8717       fi
8718     else
8719       lt_cv_prog_compiler__b=yes
8720     fi
8721   fi
8722   $RM -r conftest*
8723   LDFLAGS="$save_LDFLAGS"
8724
8725fi
8726{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
8727$as_echo "$lt_cv_prog_compiler__b" >&6; }
8728
8729if test x"$lt_cv_prog_compiler__b" = xyes; then
8730    archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8731else
8732    archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8733fi
8734
8735	  ;;
8736	esac
8737      fi
8738      if test "$with_gnu_ld" = no; then
8739	hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8740	hardcode_libdir_separator=:
8741
8742	case $host_cpu in
8743	hppa*64*|ia64*)
8744	  hardcode_direct=no
8745	  hardcode_shlibpath_var=no
8746	  ;;
8747	*)
8748	  hardcode_direct=yes
8749	  hardcode_direct_absolute=yes
8750	  export_dynamic_flag_spec='${wl}-E'
8751
8752	  # hardcode_minus_L: Not really in the search PATH,
8753	  # but as the default location of the library.
8754	  hardcode_minus_L=yes
8755	  ;;
8756	esac
8757      fi
8758      ;;
8759
8760    irix5* | irix6* | nonstopux*)
8761      if test "$GCC" = yes; then
8762	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'
8763	# Try to use the -exported_symbol ld option, if it does not
8764	# work, assume that -exports_file does not work either and
8765	# implicitly export all symbols.
8766        save_LDFLAGS="$LDFLAGS"
8767        LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
8768        if test x$gcc_no_link = xyes; then
8769  as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
8770fi
8771cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8772/* end confdefs.h.  */
8773int foo(void) {}
8774_ACEOF
8775if ac_fn_c_try_link "$LINENO"; then :
8776  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'
8777
8778fi
8779rm -f core conftest.err conftest.$ac_objext \
8780    conftest$ac_exeext conftest.$ac_ext
8781        LDFLAGS="$save_LDFLAGS"
8782      else
8783	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'
8784	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'
8785      fi
8786      archive_cmds_need_lc='no'
8787      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8788      hardcode_libdir_separator=:
8789      inherit_rpath=yes
8790      link_all_deplibs=yes
8791      ;;
8792
8793    netbsd*)
8794      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8795	archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
8796      else
8797	archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
8798      fi
8799      hardcode_libdir_flag_spec='-R$libdir'
8800      hardcode_direct=yes
8801      hardcode_shlibpath_var=no
8802      ;;
8803
8804    newsos6)
8805      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8806      hardcode_direct=yes
8807      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8808      hardcode_libdir_separator=:
8809      hardcode_shlibpath_var=no
8810      ;;
8811
8812    *nto* | *qnx*)
8813      ;;
8814
8815    openbsd*)
8816      if test -f /usr/libexec/ld.so; then
8817	hardcode_direct=yes
8818	hardcode_shlibpath_var=no
8819	hardcode_direct_absolute=yes
8820	if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8821	  archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8822	  archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
8823	  hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8824	  export_dynamic_flag_spec='${wl}-E'
8825	else
8826	  case $host_os in
8827	   openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
8828	     archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8829	     hardcode_libdir_flag_spec='-R$libdir'
8830	     ;;
8831	   *)
8832	     archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8833	     hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8834	     ;;
8835	  esac
8836	fi
8837      else
8838	ld_shlibs=no
8839      fi
8840      ;;
8841
8842    os2*)
8843      hardcode_libdir_flag_spec='-L$libdir'
8844      hardcode_minus_L=yes
8845      allow_undefined_flag=unsupported
8846      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'
8847      old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
8848      ;;
8849
8850    osf3*)
8851      if test "$GCC" = yes; then
8852	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8853	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'
8854      else
8855	allow_undefined_flag=' -expect_unresolved \*'
8856	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'
8857      fi
8858      archive_cmds_need_lc='no'
8859      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8860      hardcode_libdir_separator=:
8861      ;;
8862
8863    osf4* | osf5*)	# as osf3* with the addition of -msym flag
8864      if test "$GCC" = yes; then
8865	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8866	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'
8867	hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8868      else
8869	allow_undefined_flag=' -expect_unresolved \*'
8870	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'
8871	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~
8872	$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'
8873
8874	# Both c and cxx compiler support -rpath directly
8875	hardcode_libdir_flag_spec='-rpath $libdir'
8876      fi
8877      archive_cmds_need_lc='no'
8878      hardcode_libdir_separator=:
8879      ;;
8880
8881    solaris*)
8882      no_undefined_flag=' -z defs'
8883      if test "$GCC" = yes; then
8884	wlarc='${wl}'
8885	archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8886	archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
8887	  $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
8888      else
8889	case `$CC -V 2>&1` in
8890	*"Compilers 5.0"*)
8891	  wlarc=''
8892	  archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8893	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
8894	  $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
8895	  ;;
8896	*)
8897	  wlarc='${wl}'
8898	  archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
8899	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
8900	  $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
8901	  ;;
8902	esac
8903      fi
8904      hardcode_libdir_flag_spec='-R$libdir'
8905      hardcode_shlibpath_var=no
8906      case $host_os in
8907      solaris2.[0-5] | solaris2.[0-5].*) ;;
8908      *)
8909	# The compiler driver will combine and reorder linker options,
8910	# but understands `-z linker_flag'.  GCC discards it without `$wl',
8911	# but is careful enough not to reorder.
8912	# Supported since Solaris 2.6 (maybe 2.5.1?)
8913	if test "$GCC" = yes; then
8914	  whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
8915	else
8916	  whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
8917	fi
8918	;;
8919      esac
8920      link_all_deplibs=yes
8921      ;;
8922
8923    sunos4*)
8924      if test "x$host_vendor" = xsequent; then
8925	# Use $CC to link under sequent, because it throws in some extra .o
8926	# files that make .init and .fini sections work.
8927	archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
8928      else
8929	archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
8930      fi
8931      hardcode_libdir_flag_spec='-L$libdir'
8932      hardcode_direct=yes
8933      hardcode_minus_L=yes
8934      hardcode_shlibpath_var=no
8935      ;;
8936
8937    sysv4)
8938      case $host_vendor in
8939	sni)
8940	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8941	  hardcode_direct=yes # is this really true???
8942	;;
8943	siemens)
8944	  ## LD is ld it makes a PLAMLIB
8945	  ## CC just makes a GrossModule.
8946	  archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
8947	  reload_cmds='$CC -r -o $output$reload_objs'
8948	  hardcode_direct=no
8949        ;;
8950	motorola)
8951	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8952	  hardcode_direct=no #Motorola manual says yes, but my tests say they lie
8953	;;
8954      esac
8955      runpath_var='LD_RUN_PATH'
8956      hardcode_shlibpath_var=no
8957      ;;
8958
8959    sysv4.3*)
8960      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8961      hardcode_shlibpath_var=no
8962      export_dynamic_flag_spec='-Bexport'
8963      ;;
8964
8965    sysv4*MP*)
8966      if test -d /usr/nec; then
8967	archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8968	hardcode_shlibpath_var=no
8969	runpath_var=LD_RUN_PATH
8970	hardcode_runpath_var=yes
8971	ld_shlibs=yes
8972      fi
8973      ;;
8974
8975    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
8976      no_undefined_flag='${wl}-z,text'
8977      archive_cmds_need_lc=no
8978      hardcode_shlibpath_var=no
8979      runpath_var='LD_RUN_PATH'
8980
8981      if test "$GCC" = yes; then
8982	archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8983	archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8984      else
8985	archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8986	archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8987      fi
8988      ;;
8989
8990    sysv5* | sco3.2v5* | sco5v6*)
8991      # Note: We can NOT use -z defs as we might desire, because we do not
8992      # link with -lc, and that would cause any symbols used from libc to
8993      # always be unresolved, which means just about no library would
8994      # ever link correctly.  If we're not using GNU ld we use -z text
8995      # though, which does catch some bad symbols but isn't as heavy-handed
8996      # as -z defs.
8997      no_undefined_flag='${wl}-z,text'
8998      allow_undefined_flag='${wl}-z,nodefs'
8999      archive_cmds_need_lc=no
9000      hardcode_shlibpath_var=no
9001      hardcode_libdir_flag_spec='${wl}-R,$libdir'
9002      hardcode_libdir_separator=':'
9003      link_all_deplibs=yes
9004      export_dynamic_flag_spec='${wl}-Bexport'
9005      runpath_var='LD_RUN_PATH'
9006
9007      if test "$GCC" = yes; then
9008	archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9009	archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9010      else
9011	archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9012	archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9013      fi
9014      ;;
9015
9016    uts4*)
9017      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9018      hardcode_libdir_flag_spec='-L$libdir'
9019      hardcode_shlibpath_var=no
9020      ;;
9021
9022    *)
9023      ld_shlibs=no
9024      ;;
9025    esac
9026
9027    if test x$host_vendor = xsni; then
9028      case $host in
9029      sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9030	export_dynamic_flag_spec='${wl}-Blargedynsym'
9031	;;
9032      esac
9033    fi
9034  fi
9035
9036{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
9037$as_echo "$ld_shlibs" >&6; }
9038test "$ld_shlibs" = no && can_build_shared=no
9039
9040with_gnu_ld=$with_gnu_ld
9041
9042
9043
9044
9045
9046
9047
9048
9049
9050
9051
9052
9053
9054
9055
9056#
9057# Do we need to explicitly link libc?
9058#
9059case "x$archive_cmds_need_lc" in
9060x|xyes)
9061  # Assume -lc should be added
9062  archive_cmds_need_lc=yes
9063
9064  if test "$enable_shared" = yes && test "$GCC" = yes; then
9065    case $archive_cmds in
9066    *'~'*)
9067      # FIXME: we may have to deal with multi-command sequences.
9068      ;;
9069    '$CC '*)
9070      # Test whether the compiler implicitly links with -lc since on some
9071      # systems, -lgcc has to come before -lc. If gcc already passes -lc
9072      # to ld, don't add -lc before -lgcc.
9073      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
9074$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
9075if test "${lt_cv_archive_cmds_need_lc+set}" = set; then :
9076  $as_echo_n "(cached) " >&6
9077else
9078  $RM conftest*
9079	echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9080
9081	if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9082  (eval $ac_compile) 2>&5
9083  ac_status=$?
9084  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9085  test $ac_status = 0; } 2>conftest.err; then
9086	  soname=conftest
9087	  lib=conftest
9088	  libobjs=conftest.$ac_objext
9089	  deplibs=
9090	  wl=$lt_prog_compiler_wl
9091	  pic_flag=$lt_prog_compiler_pic
9092	  compiler_flags=-v
9093	  linker_flags=-v
9094	  verstring=
9095	  output_objdir=.
9096	  libname=conftest
9097	  lt_save_allow_undefined_flag=$allow_undefined_flag
9098	  allow_undefined_flag=
9099	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
9100  (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
9101  ac_status=$?
9102  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9103  test $ac_status = 0; }
9104	  then
9105	    lt_cv_archive_cmds_need_lc=no
9106	  else
9107	    lt_cv_archive_cmds_need_lc=yes
9108	  fi
9109	  allow_undefined_flag=$lt_save_allow_undefined_flag
9110	else
9111	  cat conftest.err 1>&5
9112	fi
9113	$RM conftest*
9114
9115fi
9116{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
9117$as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
9118      archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
9119      ;;
9120    esac
9121  fi
9122  ;;
9123esac
9124
9125
9126
9127
9128
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  { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
9282$as_echo_n "checking dynamic linker characteristics... " >&6; }
9283
9284if test "$GCC" = yes; then
9285  case $host_os in
9286    darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
9287    *) lt_awk_arg="/^libraries:/" ;;
9288  esac
9289  case $host_os in
9290    mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
9291    *) lt_sed_strip_eq="s,=/,/,g" ;;
9292  esac
9293  lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
9294  case $lt_search_path_spec in
9295  *\;*)
9296    # if the path contains ";" then we assume it to be the separator
9297    # otherwise default to the standard path separator (i.e. ":") - it is
9298    # assumed that no part of a normal pathname contains ";" but that should
9299    # okay in the real world where ";" in dirpaths is itself problematic.
9300    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
9301    ;;
9302  *)
9303    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
9304    ;;
9305  esac
9306  # Ok, now we have the path, separated by spaces, we can step through it
9307  # and add multilib dir if necessary.
9308  lt_tmp_lt_search_path_spec=
9309  lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
9310  for lt_sys_path in $lt_search_path_spec; do
9311    if test -d "$lt_sys_path/$lt_multi_os_dir"; then
9312      lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
9313    else
9314      test -d "$lt_sys_path" && \
9315	lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
9316    fi
9317  done
9318  lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
9319BEGIN {RS=" "; FS="/|\n";} {
9320  lt_foo="";
9321  lt_count=0;
9322  for (lt_i = NF; lt_i > 0; lt_i--) {
9323    if ($lt_i != "" && $lt_i != ".") {
9324      if ($lt_i == "..") {
9325        lt_count++;
9326      } else {
9327        if (lt_count == 0) {
9328          lt_foo="/" $lt_i lt_foo;
9329        } else {
9330          lt_count--;
9331        }
9332      }
9333    }
9334  }
9335  if (lt_foo != "") { lt_freq[lt_foo]++; }
9336  if (lt_freq[lt_foo] == 1) { print lt_foo; }
9337}'`
9338  # AWK program above erroneously prepends '/' to C:/dos/paths
9339  # for these hosts.
9340  case $host_os in
9341    mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
9342      $SED 's,/\([A-Za-z]:\),\1,g'` ;;
9343  esac
9344  sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
9345else
9346  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9347fi
9348library_names_spec=
9349libname_spec='lib$name'
9350soname_spec=
9351shrext_cmds=".so"
9352postinstall_cmds=
9353postuninstall_cmds=
9354finish_cmds=
9355finish_eval=
9356shlibpath_var=
9357shlibpath_overrides_runpath=unknown
9358version_type=none
9359dynamic_linker="$host_os ld.so"
9360sys_lib_dlsearch_path_spec="/lib /usr/lib"
9361need_lib_prefix=unknown
9362hardcode_into_libs=no
9363
9364# when you set need_version to no, make sure it does not cause -set_version
9365# flags to be left without arguments
9366need_version=unknown
9367
9368case $host_os in
9369aix3*)
9370  version_type=linux
9371  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9372  shlibpath_var=LIBPATH
9373
9374  # AIX 3 has no versioning support, so we append a major version to the name.
9375  soname_spec='${libname}${release}${shared_ext}$major'
9376  ;;
9377
9378aix[4-9]*)
9379  version_type=linux
9380  need_lib_prefix=no
9381  need_version=no
9382  hardcode_into_libs=yes
9383  if test "$host_cpu" = ia64; then
9384    # AIX 5 supports IA64
9385    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9386    shlibpath_var=LD_LIBRARY_PATH
9387  else
9388    # With GCC up to 2.95.x, collect2 would create an import file
9389    # for dependence libraries.  The import file would start with
9390    # the line `#! .'.  This would cause the generated library to
9391    # depend on `.', always an invalid library.  This was fixed in
9392    # development snapshots of GCC prior to 3.0.
9393    case $host_os in
9394      aix4 | aix4.[01] | aix4.[01].*)
9395      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9396	   echo ' yes '
9397	   echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
9398	:
9399      else
9400	can_build_shared=no
9401      fi
9402      ;;
9403    esac
9404    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9405    # soname into executable. Probably we can add versioning support to
9406    # collect2, so additional links can be useful in future.
9407    if test "$aix_use_runtimelinking" = yes; then
9408      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9409      # instead of lib<name>.a to let people know that these are not
9410      # typical AIX shared libraries.
9411      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9412    else
9413      # We preserve .a as extension for shared libraries through AIX4.2
9414      # and later when we are not doing run time linking.
9415      library_names_spec='${libname}${release}.a $libname.a'
9416      soname_spec='${libname}${release}${shared_ext}$major'
9417    fi
9418    shlibpath_var=LIBPATH
9419  fi
9420  ;;
9421
9422amigaos*)
9423  case $host_cpu in
9424  powerpc)
9425    # Since July 2007 AmigaOS4 officially supports .so libraries.
9426    # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
9427    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9428    ;;
9429  m68k)
9430    library_names_spec='$libname.ixlibrary $libname.a'
9431    # Create ${libname}_ixlibrary.a entries in /sys/libs.
9432    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'
9433    ;;
9434  esac
9435  ;;
9436
9437beos*)
9438  library_names_spec='${libname}${shared_ext}'
9439  dynamic_linker="$host_os ld.so"
9440  shlibpath_var=LIBRARY_PATH
9441  ;;
9442
9443bsdi[45]*)
9444  version_type=linux
9445  need_version=no
9446  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9447  soname_spec='${libname}${release}${shared_ext}$major'
9448  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9449  shlibpath_var=LD_LIBRARY_PATH
9450  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9451  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9452  # the default ld.so.conf also contains /usr/contrib/lib and
9453  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9454  # libtool to hard-code these into programs
9455  ;;
9456
9457cygwin* | mingw* | pw32* | cegcc*)
9458  version_type=windows
9459  shrext_cmds=".dll"
9460  need_version=no
9461  need_lib_prefix=no
9462
9463  case $GCC,$host_os in
9464  yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
9465    library_names_spec='$libname.dll.a'
9466    # DLL is installed to $(libdir)/../bin by postinstall_cmds
9467    postinstall_cmds='base_file=`basename \${file}`~
9468      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
9469      dldir=$destdir/`dirname \$dlpath`~
9470      test -d \$dldir || mkdir -p \$dldir~
9471      $install_prog $dir/$dlname \$dldir/$dlname~
9472      chmod a+x \$dldir/$dlname~
9473      if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
9474        eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
9475      fi'
9476    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9477      dlpath=$dir/\$dldll~
9478       $RM \$dlpath'
9479    shlibpath_overrides_runpath=yes
9480
9481    case $host_os in
9482    cygwin*)
9483      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9484      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9485
9486      sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
9487      ;;
9488    mingw* | cegcc*)
9489      # MinGW DLLs use traditional 'lib' prefix
9490      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9491      ;;
9492    pw32*)
9493      # pw32 DLLs use 'pw' prefix rather than 'lib'
9494      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9495      ;;
9496    esac
9497    ;;
9498
9499  *)
9500    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9501    ;;
9502  esac
9503  dynamic_linker='Win32 ld.exe'
9504  # FIXME: first we should search . and the directory the executable is in
9505  shlibpath_var=PATH
9506  ;;
9507
9508darwin* | rhapsody*)
9509  dynamic_linker="$host_os dyld"
9510  version_type=darwin
9511  need_lib_prefix=no
9512  need_version=no
9513  library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9514  soname_spec='${libname}${release}${major}$shared_ext'
9515  shlibpath_overrides_runpath=yes
9516  shlibpath_var=DYLD_LIBRARY_PATH
9517  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
9518
9519  sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
9520  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9521  ;;
9522
9523dgux*)
9524  version_type=linux
9525  need_lib_prefix=no
9526  need_version=no
9527  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9528  soname_spec='${libname}${release}${shared_ext}$major'
9529  shlibpath_var=LD_LIBRARY_PATH
9530  ;;
9531
9532freebsd* | dragonfly*)
9533  # DragonFly does not have aout.  When/if they implement a new
9534  # versioning mechanism, adjust this.
9535  if test -x /usr/bin/objformat; then
9536    objformat=`/usr/bin/objformat`
9537  else
9538    case $host_os in
9539    freebsd[23].*) objformat=aout ;;
9540    *) objformat=elf ;;
9541    esac
9542  fi
9543  version_type=freebsd-$objformat
9544  case $version_type in
9545    freebsd-elf*)
9546      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9547      need_version=no
9548      need_lib_prefix=no
9549      ;;
9550    freebsd-*)
9551      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9552      need_version=yes
9553      ;;
9554  esac
9555  shlibpath_var=LD_LIBRARY_PATH
9556  case $host_os in
9557  freebsd2.*)
9558    shlibpath_overrides_runpath=yes
9559    ;;
9560  freebsd3.[01]* | freebsdelf3.[01]*)
9561    shlibpath_overrides_runpath=yes
9562    hardcode_into_libs=yes
9563    ;;
9564  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9565  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9566    shlibpath_overrides_runpath=no
9567    hardcode_into_libs=yes
9568    ;;
9569  *) # from 4.6 on, and DragonFly
9570    shlibpath_overrides_runpath=yes
9571    hardcode_into_libs=yes
9572    ;;
9573  esac
9574  ;;
9575
9576gnu*)
9577  version_type=linux
9578  need_lib_prefix=no
9579  need_version=no
9580  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9581  soname_spec='${libname}${release}${shared_ext}$major'
9582  shlibpath_var=LD_LIBRARY_PATH
9583  hardcode_into_libs=yes
9584  ;;
9585
9586haiku*)
9587  version_type=linux
9588  need_lib_prefix=no
9589  need_version=no
9590  dynamic_linker="$host_os runtime_loader"
9591  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9592  soname_spec='${libname}${release}${shared_ext}$major'
9593  shlibpath_var=LIBRARY_PATH
9594  shlibpath_overrides_runpath=yes
9595  sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
9596  hardcode_into_libs=yes
9597  ;;
9598
9599hpux9* | hpux10* | hpux11*)
9600  # Give a soname corresponding to the major version so that dld.sl refuses to
9601  # link against other versions.
9602  version_type=sunos
9603  need_lib_prefix=no
9604  need_version=no
9605  case $host_cpu in
9606  ia64*)
9607    shrext_cmds='.so'
9608    hardcode_into_libs=yes
9609    dynamic_linker="$host_os dld.so"
9610    shlibpath_var=LD_LIBRARY_PATH
9611    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9612    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9613    soname_spec='${libname}${release}${shared_ext}$major'
9614    if test "X$HPUX_IA64_MODE" = X32; then
9615      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9616    else
9617      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9618    fi
9619    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9620    ;;
9621  hppa*64*)
9622    shrext_cmds='.sl'
9623    hardcode_into_libs=yes
9624    dynamic_linker="$host_os dld.sl"
9625    shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9626    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9627    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9628    soname_spec='${libname}${release}${shared_ext}$major'
9629    sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9630    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9631    ;;
9632  *)
9633    shrext_cmds='.sl'
9634    dynamic_linker="$host_os dld.sl"
9635    shlibpath_var=SHLIB_PATH
9636    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9637    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9638    soname_spec='${libname}${release}${shared_ext}$major'
9639    ;;
9640  esac
9641  # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
9642  postinstall_cmds='chmod 555 $lib'
9643  # or fails outright, so override atomically:
9644  install_override_mode=555
9645  ;;
9646
9647interix[3-9]*)
9648  version_type=linux
9649  need_lib_prefix=no
9650  need_version=no
9651  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9652  soname_spec='${libname}${release}${shared_ext}$major'
9653  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9654  shlibpath_var=LD_LIBRARY_PATH
9655  shlibpath_overrides_runpath=no
9656  hardcode_into_libs=yes
9657  ;;
9658
9659irix5* | irix6* | nonstopux*)
9660  case $host_os in
9661    nonstopux*) version_type=nonstopux ;;
9662    *)
9663	if test "$lt_cv_prog_gnu_ld" = yes; then
9664		version_type=linux
9665	else
9666		version_type=irix
9667	fi ;;
9668  esac
9669  need_lib_prefix=no
9670  need_version=no
9671  soname_spec='${libname}${release}${shared_ext}$major'
9672  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9673  case $host_os in
9674  irix5* | nonstopux*)
9675    libsuff= shlibsuff=
9676    ;;
9677  *)
9678    case $LD in # libtool.m4 will add one of these switches to LD
9679    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9680      libsuff= shlibsuff= libmagic=32-bit;;
9681    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9682      libsuff=32 shlibsuff=N32 libmagic=N32;;
9683    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9684      libsuff=64 shlibsuff=64 libmagic=64-bit;;
9685    *) libsuff= shlibsuff= libmagic=never-match;;
9686    esac
9687    ;;
9688  esac
9689  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9690  shlibpath_overrides_runpath=no
9691  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9692  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9693  hardcode_into_libs=yes
9694  ;;
9695
9696# No shared lib support for Linux oldld, aout, or coff.
9697linux*oldld* | linux*aout* | linux*coff*)
9698  dynamic_linker=no
9699  ;;
9700
9701# This must be Linux ELF.
9702linux* | k*bsd*-gnu | kopensolaris*-gnu)
9703  version_type=linux
9704  need_lib_prefix=no
9705  need_version=no
9706  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9707  soname_spec='${libname}${release}${shared_ext}$major'
9708  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9709  shlibpath_var=LD_LIBRARY_PATH
9710  shlibpath_overrides_runpath=no
9711
9712  # Some binutils ld are patched to set DT_RUNPATH
9713  if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
9714  $as_echo_n "(cached) " >&6
9715else
9716  lt_cv_shlibpath_overrides_runpath=no
9717    save_LDFLAGS=$LDFLAGS
9718    save_libdir=$libdir
9719    eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
9720	 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
9721    if test x$gcc_no_link = xyes; then
9722  as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
9723fi
9724cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9725/* end confdefs.h.  */
9726
9727int
9728main ()
9729{
9730
9731  ;
9732  return 0;
9733}
9734_ACEOF
9735if ac_fn_c_try_link "$LINENO"; then :
9736  if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
9737  lt_cv_shlibpath_overrides_runpath=yes
9738fi
9739fi
9740rm -f core conftest.err conftest.$ac_objext \
9741    conftest$ac_exeext conftest.$ac_ext
9742    LDFLAGS=$save_LDFLAGS
9743    libdir=$save_libdir
9744
9745fi
9746
9747  shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
9748
9749  # This implies no fast_install, which is unacceptable.
9750  # Some rework will be needed to allow for fast_install
9751  # before this can be enabled.
9752  hardcode_into_libs=yes
9753
9754  # Append ld.so.conf contents to the search path
9755  if test -f /etc/ld.so.conf; then
9756    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' ' '`
9757    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9758  fi
9759
9760  # We used to test for /lib/ld.so.1 and disable shared libraries on
9761  # powerpc, because MkLinux only supported shared libraries with the
9762  # GNU dynamic linker.  Since this was broken with cross compilers,
9763  # most powerpc-linux boxes support dynamic linking these days and
9764  # people can always --disable-shared, the test was removed, and we
9765  # assume the GNU/Linux dynamic linker is in use.
9766  dynamic_linker='GNU/Linux ld.so'
9767  ;;
9768
9769netbsd*)
9770  version_type=sunos
9771  need_lib_prefix=no
9772  need_version=no
9773  if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9774    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9775    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9776    dynamic_linker='NetBSD (a.out) ld.so'
9777  else
9778    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9779    soname_spec='${libname}${release}${shared_ext}$major'
9780    dynamic_linker='NetBSD ld.elf_so'
9781  fi
9782  shlibpath_var=LD_LIBRARY_PATH
9783  shlibpath_overrides_runpath=yes
9784  hardcode_into_libs=yes
9785  ;;
9786
9787newsos6)
9788  version_type=linux
9789  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9790  shlibpath_var=LD_LIBRARY_PATH
9791  shlibpath_overrides_runpath=yes
9792  ;;
9793
9794*nto* | *qnx*)
9795  version_type=qnx
9796  need_lib_prefix=no
9797  need_version=no
9798  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9799  soname_spec='${libname}${release}${shared_ext}$major'
9800  shlibpath_var=LD_LIBRARY_PATH
9801  shlibpath_overrides_runpath=no
9802  hardcode_into_libs=yes
9803  dynamic_linker='ldqnx.so'
9804  ;;
9805
9806openbsd*)
9807  version_type=sunos
9808  sys_lib_dlsearch_path_spec="/usr/lib"
9809  need_lib_prefix=no
9810  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9811  case $host_os in
9812    openbsd3.3 | openbsd3.3.*)	need_version=yes ;;
9813    *)				need_version=no  ;;
9814  esac
9815  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9816  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9817  shlibpath_var=LD_LIBRARY_PATH
9818  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9819    case $host_os in
9820      openbsd2.[89] | openbsd2.[89].*)
9821	shlibpath_overrides_runpath=no
9822	;;
9823      *)
9824	shlibpath_overrides_runpath=yes
9825	;;
9826      esac
9827  else
9828    shlibpath_overrides_runpath=yes
9829  fi
9830  ;;
9831
9832os2*)
9833  libname_spec='$name'
9834  shrext_cmds=".dll"
9835  need_lib_prefix=no
9836  library_names_spec='$libname${shared_ext} $libname.a'
9837  dynamic_linker='OS/2 ld.exe'
9838  shlibpath_var=LIBPATH
9839  ;;
9840
9841osf3* | osf4* | osf5*)
9842  version_type=osf
9843  need_lib_prefix=no
9844  need_version=no
9845  soname_spec='${libname}${release}${shared_ext}$major'
9846  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9847  shlibpath_var=LD_LIBRARY_PATH
9848  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9849  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9850  ;;
9851
9852rdos*)
9853  dynamic_linker=no
9854  ;;
9855
9856solaris*)
9857  version_type=linux
9858  need_lib_prefix=no
9859  need_version=no
9860  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9861  soname_spec='${libname}${release}${shared_ext}$major'
9862  shlibpath_var=LD_LIBRARY_PATH
9863  shlibpath_overrides_runpath=yes
9864  hardcode_into_libs=yes
9865  # ldd complains unless libraries are executable
9866  postinstall_cmds='chmod +x $lib'
9867  ;;
9868
9869sunos4*)
9870  version_type=sunos
9871  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9872  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9873  shlibpath_var=LD_LIBRARY_PATH
9874  shlibpath_overrides_runpath=yes
9875  if test "$with_gnu_ld" = yes; then
9876    need_lib_prefix=no
9877  fi
9878  need_version=yes
9879  ;;
9880
9881sysv4 | sysv4.3*)
9882  version_type=linux
9883  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9884  soname_spec='${libname}${release}${shared_ext}$major'
9885  shlibpath_var=LD_LIBRARY_PATH
9886  case $host_vendor in
9887    sni)
9888      shlibpath_overrides_runpath=no
9889      need_lib_prefix=no
9890      runpath_var=LD_RUN_PATH
9891      ;;
9892    siemens)
9893      need_lib_prefix=no
9894      ;;
9895    motorola)
9896      need_lib_prefix=no
9897      need_version=no
9898      shlibpath_overrides_runpath=no
9899      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9900      ;;
9901  esac
9902  ;;
9903
9904sysv4*MP*)
9905  if test -d /usr/nec ;then
9906    version_type=linux
9907    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9908    soname_spec='$libname${shared_ext}.$major'
9909    shlibpath_var=LD_LIBRARY_PATH
9910  fi
9911  ;;
9912
9913sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9914  version_type=freebsd-elf
9915  need_lib_prefix=no
9916  need_version=no
9917  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9918  soname_spec='${libname}${release}${shared_ext}$major'
9919  shlibpath_var=LD_LIBRARY_PATH
9920  shlibpath_overrides_runpath=yes
9921  hardcode_into_libs=yes
9922  if test "$with_gnu_ld" = yes; then
9923    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9924  else
9925    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9926    case $host_os in
9927      sco3.2v5*)
9928        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9929	;;
9930    esac
9931  fi
9932  sys_lib_dlsearch_path_spec='/usr/lib'
9933  ;;
9934
9935tpf*)
9936  # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
9937  version_type=linux
9938  need_lib_prefix=no
9939  need_version=no
9940  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9941  shlibpath_var=LD_LIBRARY_PATH
9942  shlibpath_overrides_runpath=no
9943  hardcode_into_libs=yes
9944  ;;
9945
9946uts4*)
9947  version_type=linux
9948  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9949  soname_spec='${libname}${release}${shared_ext}$major'
9950  shlibpath_var=LD_LIBRARY_PATH
9951  ;;
9952
9953*)
9954  dynamic_linker=no
9955  ;;
9956esac
9957{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
9958$as_echo "$dynamic_linker" >&6; }
9959test "$dynamic_linker" = no && can_build_shared=no
9960
9961variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9962if test "$GCC" = yes; then
9963  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9964fi
9965
9966if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
9967  sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
9968fi
9969if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
9970  sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
9971fi
9972
9973
9974
9975
9976
9977
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  { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
10065$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
10066hardcode_action=
10067if test -n "$hardcode_libdir_flag_spec" ||
10068   test -n "$runpath_var" ||
10069   test "X$hardcode_automatic" = "Xyes" ; then
10070
10071  # We can hardcode non-existent directories.
10072  if test "$hardcode_direct" != no &&
10073     # If the only mechanism to avoid hardcoding is shlibpath_var, we
10074     # have to relink, otherwise we might link with an installed library
10075     # when we should be linking with a yet-to-be-installed one
10076     ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
10077     test "$hardcode_minus_L" != no; then
10078    # Linking always hardcodes the temporary library directory.
10079    hardcode_action=relink
10080  else
10081    # We can link without hardcoding, and we can hardcode nonexisting dirs.
10082    hardcode_action=immediate
10083  fi
10084else
10085  # We cannot hardcode anything, or else we can only hardcode existing
10086  # directories.
10087  hardcode_action=unsupported
10088fi
10089{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
10090$as_echo "$hardcode_action" >&6; }
10091
10092if test "$hardcode_action" = relink ||
10093   test "$inherit_rpath" = yes; then
10094  # Fast installation is not supported
10095  enable_fast_install=no
10096elif test "$shlibpath_overrides_runpath" = yes ||
10097     test "$enable_shared" = no; then
10098  # Fast installation is not necessary
10099  enable_fast_install=needless
10100fi
10101
10102
10103
10104
10105
10106
10107  if test "x$enable_dlopen" != xyes; then
10108  enable_dlopen=unknown
10109  enable_dlopen_self=unknown
10110  enable_dlopen_self_static=unknown
10111else
10112  lt_cv_dlopen=no
10113  lt_cv_dlopen_libs=
10114
10115  case $host_os in
10116  beos*)
10117    lt_cv_dlopen="load_add_on"
10118    lt_cv_dlopen_libs=
10119    lt_cv_dlopen_self=yes
10120    ;;
10121
10122  mingw* | pw32* | cegcc*)
10123    lt_cv_dlopen="LoadLibrary"
10124    lt_cv_dlopen_libs=
10125    ;;
10126
10127  cygwin*)
10128    lt_cv_dlopen="dlopen"
10129    lt_cv_dlopen_libs=
10130    ;;
10131
10132  darwin*)
10133  # if libdl is installed we need to link against it
10134    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10135$as_echo_n "checking for dlopen in -ldl... " >&6; }
10136if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
10137  $as_echo_n "(cached) " >&6
10138else
10139  ac_check_lib_save_LIBS=$LIBS
10140LIBS="-ldl  $LIBS"
10141if test x$gcc_no_link = xyes; then
10142  as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
10143fi
10144cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10145/* end confdefs.h.  */
10146
10147/* Override any GCC internal prototype to avoid an error.
10148   Use char because int might match the return type of a GCC
10149   builtin and then its argument prototype would still apply.  */
10150#ifdef __cplusplus
10151extern "C"
10152#endif
10153char dlopen ();
10154int
10155main ()
10156{
10157return dlopen ();
10158  ;
10159  return 0;
10160}
10161_ACEOF
10162if ac_fn_c_try_link "$LINENO"; then :
10163  ac_cv_lib_dl_dlopen=yes
10164else
10165  ac_cv_lib_dl_dlopen=no
10166fi
10167rm -f core conftest.err conftest.$ac_objext \
10168    conftest$ac_exeext conftest.$ac_ext
10169LIBS=$ac_check_lib_save_LIBS
10170fi
10171{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10172$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10173if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
10174  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10175else
10176
10177    lt_cv_dlopen="dyld"
10178    lt_cv_dlopen_libs=
10179    lt_cv_dlopen_self=yes
10180
10181fi
10182
10183    ;;
10184
10185  *)
10186    ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
10187if test "x$ac_cv_func_shl_load" = x""yes; then :
10188  lt_cv_dlopen="shl_load"
10189else
10190  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
10191$as_echo_n "checking for shl_load in -ldld... " >&6; }
10192if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
10193  $as_echo_n "(cached) " >&6
10194else
10195  ac_check_lib_save_LIBS=$LIBS
10196LIBS="-ldld  $LIBS"
10197if test x$gcc_no_link = xyes; then
10198  as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
10199fi
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"
10243if test x$gcc_no_link = xyes; then
10244  as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
10245fi
10246cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10247/* end confdefs.h.  */
10248
10249/* Override any GCC internal prototype to avoid an error.
10250   Use char because int might match the return type of a GCC
10251   builtin and then its argument prototype would still apply.  */
10252#ifdef __cplusplus
10253extern "C"
10254#endif
10255char dlopen ();
10256int
10257main ()
10258{
10259return dlopen ();
10260  ;
10261  return 0;
10262}
10263_ACEOF
10264if ac_fn_c_try_link "$LINENO"; then :
10265  ac_cv_lib_dl_dlopen=yes
10266else
10267  ac_cv_lib_dl_dlopen=no
10268fi
10269rm -f core conftest.err conftest.$ac_objext \
10270    conftest$ac_exeext conftest.$ac_ext
10271LIBS=$ac_check_lib_save_LIBS
10272fi
10273{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10274$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10275if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
10276  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10277else
10278  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
10279$as_echo_n "checking for dlopen in -lsvld... " >&6; }
10280if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
10281  $as_echo_n "(cached) " >&6
10282else
10283  ac_check_lib_save_LIBS=$LIBS
10284LIBS="-lsvld  $LIBS"
10285if test x$gcc_no_link = xyes; then
10286  as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
10287fi
10288cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10289/* end confdefs.h.  */
10290
10291/* Override any GCC internal prototype to avoid an error.
10292   Use char because int might match the return type of a GCC
10293   builtin and then its argument prototype would still apply.  */
10294#ifdef __cplusplus
10295extern "C"
10296#endif
10297char dlopen ();
10298int
10299main ()
10300{
10301return dlopen ();
10302  ;
10303  return 0;
10304}
10305_ACEOF
10306if ac_fn_c_try_link "$LINENO"; then :
10307  ac_cv_lib_svld_dlopen=yes
10308else
10309  ac_cv_lib_svld_dlopen=no
10310fi
10311rm -f core conftest.err conftest.$ac_objext \
10312    conftest$ac_exeext conftest.$ac_ext
10313LIBS=$ac_check_lib_save_LIBS
10314fi
10315{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
10316$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
10317if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
10318  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10319else
10320  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
10321$as_echo_n "checking for dld_link in -ldld... " >&6; }
10322if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
10323  $as_echo_n "(cached) " >&6
10324else
10325  ac_check_lib_save_LIBS=$LIBS
10326LIBS="-ldld  $LIBS"
10327if test x$gcc_no_link = xyes; then
10328  as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
10329fi
10330cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10331/* end confdefs.h.  */
10332
10333/* Override any GCC internal prototype to avoid an error.
10334   Use char because int might match the return type of a GCC
10335   builtin and then its argument prototype would still apply.  */
10336#ifdef __cplusplus
10337extern "C"
10338#endif
10339char dld_link ();
10340int
10341main ()
10342{
10343return dld_link ();
10344  ;
10345  return 0;
10346}
10347_ACEOF
10348if ac_fn_c_try_link "$LINENO"; then :
10349  ac_cv_lib_dld_dld_link=yes
10350else
10351  ac_cv_lib_dld_dld_link=no
10352fi
10353rm -f core conftest.err conftest.$ac_objext \
10354    conftest$ac_exeext conftest.$ac_ext
10355LIBS=$ac_check_lib_save_LIBS
10356fi
10357{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
10358$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
10359if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
10360  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
10361fi
10362
10363
10364fi
10365
10366
10367fi
10368
10369
10370fi
10371
10372
10373fi
10374
10375
10376fi
10377
10378    ;;
10379  esac
10380
10381  if test "x$lt_cv_dlopen" != xno; then
10382    enable_dlopen=yes
10383  else
10384    enable_dlopen=no
10385  fi
10386
10387  case $lt_cv_dlopen in
10388  dlopen)
10389    save_CPPFLAGS="$CPPFLAGS"
10390    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10391
10392    save_LDFLAGS="$LDFLAGS"
10393    wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10394
10395    save_LIBS="$LIBS"
10396    LIBS="$lt_cv_dlopen_libs $LIBS"
10397
10398    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
10399$as_echo_n "checking whether a program can dlopen itself... " >&6; }
10400if test "${lt_cv_dlopen_self+set}" = set; then :
10401  $as_echo_n "(cached) " >&6
10402else
10403  	  if test "$cross_compiling" = yes; then :
10404  lt_cv_dlopen_self=cross
10405else
10406  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10407  lt_status=$lt_dlunknown
10408  cat > conftest.$ac_ext <<_LT_EOF
10409#line 10409 "configure"
10410#include "confdefs.h"
10411
10412#if HAVE_DLFCN_H
10413#include <dlfcn.h>
10414#endif
10415
10416#include <stdio.h>
10417
10418#ifdef RTLD_GLOBAL
10419#  define LT_DLGLOBAL		RTLD_GLOBAL
10420#else
10421#  ifdef DL_GLOBAL
10422#    define LT_DLGLOBAL		DL_GLOBAL
10423#  else
10424#    define LT_DLGLOBAL		0
10425#  endif
10426#endif
10427
10428/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10429   find out it does not work in some platform. */
10430#ifndef LT_DLLAZY_OR_NOW
10431#  ifdef RTLD_LAZY
10432#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
10433#  else
10434#    ifdef DL_LAZY
10435#      define LT_DLLAZY_OR_NOW		DL_LAZY
10436#    else
10437#      ifdef RTLD_NOW
10438#        define LT_DLLAZY_OR_NOW	RTLD_NOW
10439#      else
10440#        ifdef DL_NOW
10441#          define LT_DLLAZY_OR_NOW	DL_NOW
10442#        else
10443#          define LT_DLLAZY_OR_NOW	0
10444#        endif
10445#      endif
10446#    endif
10447#  endif
10448#endif
10449
10450/* When -fvisbility=hidden is used, assume the code has been annotated
10451   correspondingly for the symbols needed.  */
10452#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
10453void fnord () __attribute__((visibility("default")));
10454#endif
10455
10456void fnord () { int i=42; }
10457int main ()
10458{
10459  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10460  int status = $lt_dlunknown;
10461
10462  if (self)
10463    {
10464      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
10465      else
10466        {
10467	  if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
10468          else puts (dlerror ());
10469	}
10470      /* dlclose (self); */
10471    }
10472  else
10473    puts (dlerror ());
10474
10475  return status;
10476}
10477_LT_EOF
10478  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
10479  (eval $ac_link) 2>&5
10480  ac_status=$?
10481  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10482  test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
10483    (./conftest; exit; ) >&5 2>/dev/null
10484    lt_status=$?
10485    case x$lt_status in
10486      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
10487      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
10488      x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
10489    esac
10490  else :
10491    # compilation failed
10492    lt_cv_dlopen_self=no
10493  fi
10494fi
10495rm -fr conftest*
10496
10497
10498fi
10499{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
10500$as_echo "$lt_cv_dlopen_self" >&6; }
10501
10502    if test "x$lt_cv_dlopen_self" = xyes; then
10503      wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
10504      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
10505$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
10506if test "${lt_cv_dlopen_self_static+set}" = set; then :
10507  $as_echo_n "(cached) " >&6
10508else
10509  	  if test "$cross_compiling" = yes; then :
10510  lt_cv_dlopen_self_static=cross
10511else
10512  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10513  lt_status=$lt_dlunknown
10514  cat > conftest.$ac_ext <<_LT_EOF
10515#line 10515 "configure"
10516#include "confdefs.h"
10517
10518#if HAVE_DLFCN_H
10519#include <dlfcn.h>
10520#endif
10521
10522#include <stdio.h>
10523
10524#ifdef RTLD_GLOBAL
10525#  define LT_DLGLOBAL		RTLD_GLOBAL
10526#else
10527#  ifdef DL_GLOBAL
10528#    define LT_DLGLOBAL		DL_GLOBAL
10529#  else
10530#    define LT_DLGLOBAL		0
10531#  endif
10532#endif
10533
10534/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10535   find out it does not work in some platform. */
10536#ifndef LT_DLLAZY_OR_NOW
10537#  ifdef RTLD_LAZY
10538#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
10539#  else
10540#    ifdef DL_LAZY
10541#      define LT_DLLAZY_OR_NOW		DL_LAZY
10542#    else
10543#      ifdef RTLD_NOW
10544#        define LT_DLLAZY_OR_NOW	RTLD_NOW
10545#      else
10546#        ifdef DL_NOW
10547#          define LT_DLLAZY_OR_NOW	DL_NOW
10548#        else
10549#          define LT_DLLAZY_OR_NOW	0
10550#        endif
10551#      endif
10552#    endif
10553#  endif
10554#endif
10555
10556/* When -fvisbility=hidden is used, assume the code has been annotated
10557   correspondingly for the symbols needed.  */
10558#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
10559void fnord () __attribute__((visibility("default")));
10560#endif
10561
10562void fnord () { int i=42; }
10563int main ()
10564{
10565  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10566  int status = $lt_dlunknown;
10567
10568  if (self)
10569    {
10570      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
10571      else
10572        {
10573	  if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
10574          else puts (dlerror ());
10575	}
10576      /* dlclose (self); */
10577    }
10578  else
10579    puts (dlerror ());
10580
10581  return status;
10582}
10583_LT_EOF
10584  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
10585  (eval $ac_link) 2>&5
10586  ac_status=$?
10587  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10588  test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
10589    (./conftest; exit; ) >&5 2>/dev/null
10590    lt_status=$?
10591    case x$lt_status in
10592      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
10593      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
10594      x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
10595    esac
10596  else :
10597    # compilation failed
10598    lt_cv_dlopen_self_static=no
10599  fi
10600fi
10601rm -fr conftest*
10602
10603
10604fi
10605{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
10606$as_echo "$lt_cv_dlopen_self_static" >&6; }
10607    fi
10608
10609    CPPFLAGS="$save_CPPFLAGS"
10610    LDFLAGS="$save_LDFLAGS"
10611    LIBS="$save_LIBS"
10612    ;;
10613  esac
10614
10615  case $lt_cv_dlopen_self in
10616  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
10617  *) enable_dlopen_self=unknown ;;
10618  esac
10619
10620  case $lt_cv_dlopen_self_static in
10621  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
10622  *) enable_dlopen_self_static=unknown ;;
10623  esac
10624fi
10625
10626
10627
10628
10629
10630
10631
10632
10633
10634
10635
10636
10637
10638
10639
10640
10641
10642striplib=
10643old_striplib=
10644{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
10645$as_echo_n "checking whether stripping libraries is possible... " >&6; }
10646if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
10647  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
10648  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
10649  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10650$as_echo "yes" >&6; }
10651else
10652# FIXME - insert some real tests, host_os isn't really good enough
10653  case $host_os in
10654  darwin*)
10655    if test -n "$STRIP" ; then
10656      striplib="$STRIP -x"
10657      old_striplib="$STRIP -S"
10658      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10659$as_echo "yes" >&6; }
10660    else
10661      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10662$as_echo "no" >&6; }
10663    fi
10664    ;;
10665  *)
10666    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10667$as_echo "no" >&6; }
10668    ;;
10669  esac
10670fi
10671
10672
10673
10674
10675
10676
10677
10678
10679
10680
10681
10682
10683  # Report which library types will actually be built
10684  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
10685$as_echo_n "checking if libtool supports shared libraries... " >&6; }
10686  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
10687$as_echo "$can_build_shared" >&6; }
10688
10689  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
10690$as_echo_n "checking whether to build shared libraries... " >&6; }
10691  test "$can_build_shared" = "no" && enable_shared=no
10692
10693  # On AIX, shared libraries and static libraries use the same namespace, and
10694  # are all built from PIC.
10695  case $host_os in
10696  aix3*)
10697    test "$enable_shared" = yes && enable_static=no
10698    if test -n "$RANLIB"; then
10699      archive_cmds="$archive_cmds~\$RANLIB \$lib"
10700      postinstall_cmds='$RANLIB $lib'
10701    fi
10702    ;;
10703
10704  aix[4-9]*)
10705    if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
10706      test "$enable_shared" = yes && enable_static=no
10707    fi
10708    ;;
10709  esac
10710  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
10711$as_echo "$enable_shared" >&6; }
10712
10713  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
10714$as_echo_n "checking whether to build static libraries... " >&6; }
10715  # Make sure either enable_shared or enable_static is yes.
10716  test "$enable_shared" = yes || enable_static=yes
10717  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
10718$as_echo "$enable_static" >&6; }
10719
10720
10721
10722
10723fi
10724ac_ext=c
10725ac_cpp='$CPP $CPPFLAGS'
10726ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10727ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10728ac_compiler_gnu=$ac_cv_c_compiler_gnu
10729
10730CC="$lt_save_CC"
10731
10732
10733
10734
10735
10736
10737
10738
10739
10740
10741
10742
10743
10744        ac_config_commands="$ac_config_commands libtool"
10745
10746
10747
10748
10749# Only expand once:
10750
10751
10752
10753# Find CPP now so that any conditional tests below won't do it and
10754# thereby make the resulting definitions conditional.
10755ac_ext=c
10756ac_cpp='$CPP $CPPFLAGS'
10757ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10758ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10759ac_compiler_gnu=$ac_cv_c_compiler_gnu
10760{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
10761$as_echo_n "checking how to run the C preprocessor... " >&6; }
10762# On Suns, sometimes $CPP names a directory.
10763if test -n "$CPP" && test -d "$CPP"; then
10764  CPP=
10765fi
10766if test -z "$CPP"; then
10767  if test "${ac_cv_prog_CPP+set}" = set; then :
10768  $as_echo_n "(cached) " >&6
10769else
10770      # Double quotes because CPP needs to be expanded
10771    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
10772    do
10773      ac_preproc_ok=false
10774for ac_c_preproc_warn_flag in '' yes
10775do
10776  # Use a header file that comes with gcc, so configuring glibc
10777  # with a fresh cross-compiler works.
10778  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10779  # <limits.h> exists even on freestanding compilers.
10780  # On the NeXT, cc -E runs the code through the compiler's parser,
10781  # not just through cpp. "Syntax error" is here to catch this case.
10782  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10783/* end confdefs.h.  */
10784#ifdef __STDC__
10785# include <limits.h>
10786#else
10787# include <assert.h>
10788#endif
10789		     Syntax error
10790_ACEOF
10791if ac_fn_c_try_cpp "$LINENO"; then :
10792
10793else
10794  # Broken: fails on valid input.
10795continue
10796fi
10797rm -f conftest.err conftest.$ac_ext
10798
10799  # OK, works on sane cases.  Now check whether nonexistent headers
10800  # can be detected and how.
10801  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10802/* end confdefs.h.  */
10803#include <ac_nonexistent.h>
10804_ACEOF
10805if ac_fn_c_try_cpp "$LINENO"; then :
10806  # Broken: success on invalid input.
10807continue
10808else
10809  # Passes both tests.
10810ac_preproc_ok=:
10811break
10812fi
10813rm -f conftest.err conftest.$ac_ext
10814
10815done
10816# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
10817rm -f conftest.err conftest.$ac_ext
10818if $ac_preproc_ok; then :
10819  break
10820fi
10821
10822    done
10823    ac_cv_prog_CPP=$CPP
10824
10825fi
10826  CPP=$ac_cv_prog_CPP
10827else
10828  ac_cv_prog_CPP=$CPP
10829fi
10830{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
10831$as_echo "$CPP" >&6; }
10832ac_preproc_ok=false
10833for ac_c_preproc_warn_flag in '' yes
10834do
10835  # Use a header file that comes with gcc, so configuring glibc
10836  # with a fresh cross-compiler works.
10837  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10838  # <limits.h> exists even on freestanding compilers.
10839  # On the NeXT, cc -E runs the code through the compiler's parser,
10840  # not just through cpp. "Syntax error" is here to catch this case.
10841  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10842/* end confdefs.h.  */
10843#ifdef __STDC__
10844# include <limits.h>
10845#else
10846# include <assert.h>
10847#endif
10848		     Syntax error
10849_ACEOF
10850if ac_fn_c_try_cpp "$LINENO"; then :
10851
10852else
10853  # Broken: fails on valid input.
10854continue
10855fi
10856rm -f conftest.err conftest.$ac_ext
10857
10858  # OK, works on sane cases.  Now check whether nonexistent headers
10859  # can be detected and how.
10860  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10861/* end confdefs.h.  */
10862#include <ac_nonexistent.h>
10863_ACEOF
10864if ac_fn_c_try_cpp "$LINENO"; then :
10865  # Broken: success on invalid input.
10866continue
10867else
10868  # Passes both tests.
10869ac_preproc_ok=:
10870break
10871fi
10872rm -f conftest.err conftest.$ac_ext
10873
10874done
10875# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
10876rm -f conftest.err conftest.$ac_ext
10877if $ac_preproc_ok; then :
10878
10879else
10880  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
10881$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
10882as_fn_error "C preprocessor \"$CPP\" fails sanity check
10883See \`config.log' for more details." "$LINENO" 5; }
10884fi
10885
10886ac_ext=c
10887ac_cpp='$CPP $CPPFLAGS'
10888ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10889ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10890ac_compiler_gnu=$ac_cv_c_compiler_gnu
10891
10892
10893if test -n "$with_cross_host"; then
10894   # We are being configured with a cross compiler.  AC_REPLACE_FUNCS
10895   # may not work correctly, because the compiler may not be able to
10896   # link executables.
10897
10898   # We assume newlib.  This lets us hard-code the functions we know
10899   # we'll have.
10900   $as_echo "#define HAVE_MEMCPY 1" >>confdefs.h
10901
10902   $as_echo "#define HAVE_STRERROR 1" >>confdefs.h
10903
10904
10905   # We ignore --with-system-zlib in this case.
10906   target_all=libzgcj.la
10907else
10908   if test x$gcc_no_link = xyes; then
10909  if test "x${ac_cv_func_mmap_fixed_mapped+set}" != xset; then
10910    ac_cv_func_mmap_fixed_mapped=no
10911  fi
10912fi
10913if test "x${ac_cv_func_mmap_fixed_mapped}" != xno; then
10914  for ac_header in stdlib.h unistd.h
10915do :
10916  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10917ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
10918eval as_val=\$$as_ac_Header
10919   if test "x$as_val" = x""yes; then :
10920  cat >>confdefs.h <<_ACEOF
10921#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10922_ACEOF
10923
10924fi
10925
10926done
10927
10928for ac_func in getpagesize
10929do :
10930  ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
10931if test "x$ac_cv_func_getpagesize" = x""yes; then :
10932  cat >>confdefs.h <<_ACEOF
10933#define HAVE_GETPAGESIZE 1
10934_ACEOF
10935
10936fi
10937done
10938
10939{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
10940$as_echo_n "checking for working mmap... " >&6; }
10941if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then :
10942  $as_echo_n "(cached) " >&6
10943else
10944  if test "$cross_compiling" = yes; then :
10945  ac_cv_func_mmap_fixed_mapped=no
10946else
10947  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10948/* end confdefs.h.  */
10949$ac_includes_default
10950/* malloc might have been renamed as rpl_malloc. */
10951#undef malloc
10952
10953/* Thanks to Mike Haertel and Jim Avera for this test.
10954   Here is a matrix of mmap possibilities:
10955	mmap private not fixed
10956	mmap private fixed at somewhere currently unmapped
10957	mmap private fixed at somewhere already mapped
10958	mmap shared not fixed
10959	mmap shared fixed at somewhere currently unmapped
10960	mmap shared fixed at somewhere already mapped
10961   For private mappings, we should verify that changes cannot be read()
10962   back from the file, nor mmap's back from the file at a different
10963   address.  (There have been systems where private was not correctly
10964   implemented like the infamous i386 svr4.0, and systems where the
10965   VM page cache was not coherent with the file system buffer cache
10966   like early versions of FreeBSD and possibly contemporary NetBSD.)
10967   For shared mappings, we should conversely verify that changes get
10968   propagated back to all the places they're supposed to be.
10969
10970   Grep wants private fixed already mapped.
10971   The main things grep needs to know about mmap are:
10972   * does it exist and is it safe to write into the mmap'd area
10973   * how to use it (BSD variants)  */
10974
10975#include <fcntl.h>
10976#include <sys/mman.h>
10977
10978#if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
10979char *malloc ();
10980#endif
10981
10982/* This mess was copied from the GNU getpagesize.h.  */
10983#ifndef HAVE_GETPAGESIZE
10984/* Assume that all systems that can run configure have sys/param.h.  */
10985# ifndef HAVE_SYS_PARAM_H
10986#  define HAVE_SYS_PARAM_H 1
10987# endif
10988
10989# ifdef _SC_PAGESIZE
10990#  define getpagesize() sysconf(_SC_PAGESIZE)
10991# else /* no _SC_PAGESIZE */
10992#  ifdef HAVE_SYS_PARAM_H
10993#   include <sys/param.h>
10994#   ifdef EXEC_PAGESIZE
10995#    define getpagesize() EXEC_PAGESIZE
10996#   else /* no EXEC_PAGESIZE */
10997#    ifdef NBPG
10998#     define getpagesize() NBPG * CLSIZE
10999#     ifndef CLSIZE
11000#      define CLSIZE 1
11001#     endif /* no CLSIZE */
11002#    else /* no NBPG */
11003#     ifdef NBPC
11004#      define getpagesize() NBPC
11005#     else /* no NBPC */
11006#      ifdef PAGESIZE
11007#       define getpagesize() PAGESIZE
11008#      endif /* PAGESIZE */
11009#     endif /* no NBPC */
11010#    endif /* no NBPG */
11011#   endif /* no EXEC_PAGESIZE */
11012#  else /* no HAVE_SYS_PARAM_H */
11013#   define getpagesize() 8192	/* punt totally */
11014#  endif /* no HAVE_SYS_PARAM_H */
11015# endif /* no _SC_PAGESIZE */
11016
11017#endif /* no HAVE_GETPAGESIZE */
11018
11019int
11020main ()
11021{
11022  char *data, *data2, *data3;
11023  int i, pagesize;
11024  int fd;
11025
11026  pagesize = getpagesize ();
11027
11028  /* First, make a file with some known garbage in it. */
11029  data = (char *) malloc (pagesize);
11030  if (!data)
11031    return 1;
11032  for (i = 0; i < pagesize; ++i)
11033    *(data + i) = rand ();
11034  umask (0);
11035  fd = creat ("conftest.mmap", 0600);
11036  if (fd < 0)
11037    return 1;
11038  if (write (fd, data, pagesize) != pagesize)
11039    return 1;
11040  close (fd);
11041
11042  /* Next, try to mmap the file at a fixed address which already has
11043     something else allocated at it.  If we can, also make sure that
11044     we see the same garbage.  */
11045  fd = open ("conftest.mmap", O_RDWR);
11046  if (fd < 0)
11047    return 1;
11048  data2 = (char *) malloc (2 * pagesize);
11049  if (!data2)
11050    return 1;
11051  data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
11052  if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
11053		     MAP_PRIVATE | MAP_FIXED, fd, 0L))
11054    return 1;
11055  for (i = 0; i < pagesize; ++i)
11056    if (*(data + i) != *(data2 + i))
11057      return 1;
11058
11059  /* Finally, make sure that changes to the mapped area do not
11060     percolate back to the file as seen by read().  (This is a bug on
11061     some variants of i386 svr4.0.)  */
11062  for (i = 0; i < pagesize; ++i)
11063    *(data2 + i) = *(data2 + i) + 1;
11064  data3 = (char *) malloc (pagesize);
11065  if (!data3)
11066    return 1;
11067  if (read (fd, data3, pagesize) != pagesize)
11068    return 1;
11069  for (i = 0; i < pagesize; ++i)
11070    if (*(data + i) != *(data3 + i))
11071      return 1;
11072  close (fd);
11073  return 0;
11074}
11075_ACEOF
11076if ac_fn_c_try_run "$LINENO"; then :
11077  ac_cv_func_mmap_fixed_mapped=yes
11078else
11079  ac_cv_func_mmap_fixed_mapped=no
11080fi
11081rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11082  conftest.$ac_objext conftest.beam conftest.$ac_ext
11083fi
11084
11085fi
11086{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
11087$as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
11088if test $ac_cv_func_mmap_fixed_mapped = yes; then
11089
11090$as_echo "#define HAVE_MMAP 1" >>confdefs.h
11091
11092fi
11093rm -f conftest.mmap
11094
11095fi
11096   for ac_func in memcpy strerror
11097do :
11098  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11099ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
11100eval as_val=\$$as_ac_var
11101   if test "x$as_val" = x""yes; then :
11102  cat >>confdefs.h <<_ACEOF
11103#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
11104_ACEOF
11105
11106fi
11107done
11108
11109
11110   if test "$with_system_zlib" = yes; then
11111      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for deflate in -lz" >&5
11112$as_echo_n "checking for deflate in -lz... " >&6; }
11113if test "${ac_cv_lib_z_deflate+set}" = set; then :
11114  $as_echo_n "(cached) " >&6
11115else
11116  ac_check_lib_save_LIBS=$LIBS
11117LIBS="-lz  $LIBS"
11118if test x$gcc_no_link = xyes; then
11119  as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
11120fi
11121cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11122/* end confdefs.h.  */
11123
11124/* Override any GCC internal prototype to avoid an error.
11125   Use char because int might match the return type of a GCC
11126   builtin and then its argument prototype would still apply.  */
11127#ifdef __cplusplus
11128extern "C"
11129#endif
11130char deflate ();
11131int
11132main ()
11133{
11134return deflate ();
11135  ;
11136  return 0;
11137}
11138_ACEOF
11139if ac_fn_c_try_link "$LINENO"; then :
11140  ac_cv_lib_z_deflate=yes
11141else
11142  ac_cv_lib_z_deflate=no
11143fi
11144rm -f core conftest.err conftest.$ac_objext \
11145    conftest$ac_exeext conftest.$ac_ext
11146LIBS=$ac_check_lib_save_LIBS
11147fi
11148{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_deflate" >&5
11149$as_echo "$ac_cv_lib_z_deflate" >&6; }
11150if test "x$ac_cv_lib_z_deflate" = x""yes; then :
11151  target_all=
11152else
11153  target_all=libzgcj.la
11154fi
11155
11156   else
11157      target_all=libzgcj.la
11158   fi
11159fi
11160
11161
11162
11163for ac_header in unistd.h
11164do :
11165  ac_fn_c_check_header_mongrel "$LINENO" "unistd.h" "ac_cv_header_unistd_h" "$ac_includes_default"
11166if test "x$ac_cv_header_unistd_h" = x""yes; then :
11167  cat >>confdefs.h <<_ACEOF
11168#define HAVE_UNISTD_H 1
11169_ACEOF
11170
11171fi
11172
11173done
11174
11175
11176if test -n "$with_cross_host" &&
11177   test x"$with_cross_host" != x"no"; then
11178  toolexecdir='$(exec_prefix)/$(target_alias)'
11179  toolexeclibdir='$(toolexecdir)/lib'
11180else
11181  toolexecdir='$(libdir)/gcc-lib/$(target_alias)'
11182  toolexeclibdir='$(libdir)'
11183fi
11184if test "$GCC" = yes && $CC -print-multi-os-directory > /dev/null 2>&1; then
11185  multiosdir=/`$CC -print-multi-os-directory`
11186  case $multiosdir in
11187    /.) multiosdir= ;; # Avoid trailing /.
11188  esac
11189else
11190  multiosdir=
11191fi
11192toolexeclibdir=${toolexeclibdir}${multiosdir}
11193
11194
11195
11196 if test -n "$with_target_subdir"; then
11197  TARGET_LIBRARY_TRUE=
11198  TARGET_LIBRARY_FALSE='#'
11199else
11200  TARGET_LIBRARY_TRUE='#'
11201  TARGET_LIBRARY_FALSE=
11202fi
11203
11204
11205if test "${multilib}" = "yes"; then
11206  multilib_arg="--enable-multilib"
11207else
11208  multilib_arg=
11209fi
11210
11211# Check whether --enable-host-shared was given.
11212if test "${enable_host_shared+set}" = set; then :
11213  enableval=$enable_host_shared; PICFLAG=-fPIC
11214else
11215  PICFLAG=
11216fi
11217
11218
11219
11220ac_config_files="$ac_config_files Makefile"
11221
11222cat >confcache <<\_ACEOF
11223# This file is a shell script that caches the results of configure
11224# tests run on this system so they can be shared between configure
11225# scripts and configure runs, see configure's option --config-cache.
11226# It is not useful on other systems.  If it contains results you don't
11227# want to keep, you may remove or edit it.
11228#
11229# config.status only pays attention to the cache file if you give it
11230# the --recheck option to rerun configure.
11231#
11232# `ac_cv_env_foo' variables (set or unset) will be overridden when
11233# loading this file, other *unset* `ac_cv_foo' will be assigned the
11234# following values.
11235
11236_ACEOF
11237
11238# The following way of writing the cache mishandles newlines in values,
11239# but we know of no workaround that is simple, portable, and efficient.
11240# So, we kill variables containing newlines.
11241# Ultrix sh set writes to stderr and can't be redirected directly,
11242# and sets the high bit in the cache file unless we assign to the vars.
11243(
11244  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
11245    eval ac_val=\$$ac_var
11246    case $ac_val in #(
11247    *${as_nl}*)
11248      case $ac_var in #(
11249      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
11250$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
11251      esac
11252      case $ac_var in #(
11253      _ | IFS | as_nl) ;; #(
11254      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
11255      *) { eval $ac_var=; unset $ac_var;} ;;
11256      esac ;;
11257    esac
11258  done
11259
11260  (set) 2>&1 |
11261    case $as_nl`(ac_space=' '; set) 2>&1` in #(
11262    *${as_nl}ac_space=\ *)
11263      # `set' does not quote correctly, so add quotes: double-quote
11264      # substitution turns \\\\ into \\, and sed turns \\ into \.
11265      sed -n \
11266	"s/'/'\\\\''/g;
11267	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
11268      ;; #(
11269    *)
11270      # `set' quotes correctly as required by POSIX, so do not add quotes.
11271      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
11272      ;;
11273    esac |
11274    sort
11275) |
11276  sed '
11277     /^ac_cv_env_/b end
11278     t clear
11279     :clear
11280     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
11281     t end
11282     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
11283     :end' >>confcache
11284if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
11285  if test -w "$cache_file"; then
11286    test "x$cache_file" != "x/dev/null" &&
11287      { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
11288$as_echo "$as_me: updating cache $cache_file" >&6;}
11289    cat confcache >$cache_file
11290  else
11291    { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
11292$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
11293  fi
11294fi
11295rm -f confcache
11296
11297test "x$prefix" = xNONE && prefix=$ac_default_prefix
11298# Let make expand exec_prefix.
11299test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
11300
11301# Transform confdefs.h into DEFS.
11302# Protect against shell expansion while executing Makefile rules.
11303# Protect against Makefile macro expansion.
11304#
11305# If the first sed substitution is executed (which looks for macros that
11306# take arguments), then branch to the quote section.  Otherwise,
11307# look for a macro that doesn't take arguments.
11308ac_script='
11309:mline
11310/\\$/{
11311 N
11312 s,\\\n,,
11313 b mline
11314}
11315t clear
11316:clear
11317s/^[	 ]*#[	 ]*define[	 ][	 ]*\([^	 (][^	 (]*([^)]*)\)[	 ]*\(.*\)/-D\1=\2/g
11318t quote
11319s/^[	 ]*#[	 ]*define[	 ][	 ]*\([^	 ][^	 ]*\)[	 ]*\(.*\)/-D\1=\2/g
11320t quote
11321b any
11322:quote
11323s/[	 `~#$^&*(){}\\|;'\''"<>?]/\\&/g
11324s/\[/\\&/g
11325s/\]/\\&/g
11326s/\$/$$/g
11327H
11328:any
11329${
11330	g
11331	s/^\n//
11332	s/\n/ /g
11333	p
11334}
11335'
11336DEFS=`sed -n "$ac_script" confdefs.h`
11337
11338
11339ac_libobjs=
11340ac_ltlibobjs=
11341for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
11342  # 1. Remove the extension, and $U if already installed.
11343  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
11344  ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
11345  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
11346  #    will be set to the directory where LIBOBJS objects are built.
11347  as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
11348  as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
11349done
11350LIBOBJS=$ac_libobjs
11351
11352LTLIBOBJS=$ac_ltlibobjs
11353
11354
11355 if test -n "$EXEEXT"; then
11356  am__EXEEXT_TRUE=
11357  am__EXEEXT_FALSE='#'
11358else
11359  am__EXEEXT_TRUE='#'
11360  am__EXEEXT_FALSE=
11361fi
11362
11363if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
11364  as_fn_error "conditional \"MAINTAINER_MODE\" was never defined.
11365Usually this means the macro was only invoked conditionally." "$LINENO" 5
11366fi
11367if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
11368  as_fn_error "conditional \"AMDEP\" was never defined.
11369Usually this means the macro was only invoked conditionally." "$LINENO" 5
11370fi
11371if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
11372  as_fn_error "conditional \"am__fastdepCC\" was never defined.
11373Usually this means the macro was only invoked conditionally." "$LINENO" 5
11374fi
11375if test -z "${TARGET_LIBRARY_TRUE}" && test -z "${TARGET_LIBRARY_FALSE}"; then
11376  as_fn_error "conditional \"TARGET_LIBRARY\" was never defined.
11377Usually this means the macro was only invoked conditionally." "$LINENO" 5
11378fi
11379
11380: ${CONFIG_STATUS=./config.status}
11381ac_write_fail=0
11382ac_clean_files_save=$ac_clean_files
11383ac_clean_files="$ac_clean_files $CONFIG_STATUS"
11384{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
11385$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
11386as_write_fail=0
11387cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
11388#! $SHELL
11389# Generated by $as_me.
11390# Run this file to recreate the current configuration.
11391# Compiler output produced by configure, useful for debugging
11392# configure, is in config.log if it exists.
11393
11394debug=false
11395ac_cs_recheck=false
11396ac_cs_silent=false
11397
11398SHELL=\${CONFIG_SHELL-$SHELL}
11399export SHELL
11400_ASEOF
11401cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
11402## -------------------- ##
11403## M4sh Initialization. ##
11404## -------------------- ##
11405
11406# Be more Bourne compatible
11407DUALCASE=1; export DUALCASE # for MKS sh
11408if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
11409  emulate sh
11410  NULLCMD=:
11411  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
11412  # is contrary to our usage.  Disable this feature.
11413  alias -g '${1+"$@"}'='"$@"'
11414  setopt NO_GLOB_SUBST
11415else
11416  case `(set -o) 2>/dev/null` in #(
11417  *posix*) :
11418    set -o posix ;; #(
11419  *) :
11420     ;;
11421esac
11422fi
11423
11424
11425as_nl='
11426'
11427export as_nl
11428# Printing a long string crashes Solaris 7 /usr/bin/printf.
11429as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
11430as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
11431as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
11432# Prefer a ksh shell builtin over an external printf program on Solaris,
11433# but without wasting forks for bash or zsh.
11434if test -z "$BASH_VERSION$ZSH_VERSION" \
11435    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
11436  as_echo='print -r --'
11437  as_echo_n='print -rn --'
11438elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
11439  as_echo='printf %s\n'
11440  as_echo_n='printf %s'
11441else
11442  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
11443    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
11444    as_echo_n='/usr/ucb/echo -n'
11445  else
11446    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
11447    as_echo_n_body='eval
11448      arg=$1;
11449      case $arg in #(
11450      *"$as_nl"*)
11451	expr "X$arg" : "X\\(.*\\)$as_nl";
11452	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
11453      esac;
11454      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
11455    '
11456    export as_echo_n_body
11457    as_echo_n='sh -c $as_echo_n_body as_echo'
11458  fi
11459  export as_echo_body
11460  as_echo='sh -c $as_echo_body as_echo'
11461fi
11462
11463# The user is always right.
11464if test "${PATH_SEPARATOR+set}" != set; then
11465  PATH_SEPARATOR=:
11466  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
11467    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
11468      PATH_SEPARATOR=';'
11469  }
11470fi
11471
11472
11473# IFS
11474# We need space, tab and new line, in precisely that order.  Quoting is
11475# there to prevent editors from complaining about space-tab.
11476# (If _AS_PATH_WALK were called with IFS unset, it would disable word
11477# splitting by setting IFS to empty value.)
11478IFS=" ""	$as_nl"
11479
11480# Find who we are.  Look in the path if we contain no directory separator.
11481case $0 in #((
11482  *[\\/]* ) as_myself=$0 ;;
11483  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11484for as_dir in $PATH
11485do
11486  IFS=$as_save_IFS
11487  test -z "$as_dir" && as_dir=.
11488    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
11489  done
11490IFS=$as_save_IFS
11491
11492     ;;
11493esac
11494# We did not find ourselves, most probably we were run as `sh COMMAND'
11495# in which case we are not to be found in the path.
11496if test "x$as_myself" = x; then
11497  as_myself=$0
11498fi
11499if test ! -f "$as_myself"; then
11500  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
11501  exit 1
11502fi
11503
11504# Unset variables that we do not need and which cause bugs (e.g. in
11505# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
11506# suppresses any "Segmentation fault" message there.  '((' could
11507# trigger a bug in pdksh 5.2.14.
11508for as_var in BASH_ENV ENV MAIL MAILPATH
11509do eval test x\${$as_var+set} = xset \
11510  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
11511done
11512PS1='$ '
11513PS2='> '
11514PS4='+ '
11515
11516# NLS nuisances.
11517LC_ALL=C
11518export LC_ALL
11519LANGUAGE=C
11520export LANGUAGE
11521
11522# CDPATH.
11523(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
11524
11525
11526# as_fn_error ERROR [LINENO LOG_FD]
11527# ---------------------------------
11528# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
11529# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
11530# script with status $?, using 1 if that was 0.
11531as_fn_error ()
11532{
11533  as_status=$?; test $as_status -eq 0 && as_status=1
11534  if test "$3"; then
11535    as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
11536    $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
11537  fi
11538  $as_echo "$as_me: error: $1" >&2
11539  as_fn_exit $as_status
11540} # as_fn_error
11541
11542
11543# as_fn_set_status STATUS
11544# -----------------------
11545# Set $? to STATUS, without forking.
11546as_fn_set_status ()
11547{
11548  return $1
11549} # as_fn_set_status
11550
11551# as_fn_exit STATUS
11552# -----------------
11553# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
11554as_fn_exit ()
11555{
11556  set +e
11557  as_fn_set_status $1
11558  exit $1
11559} # as_fn_exit
11560
11561# as_fn_unset VAR
11562# ---------------
11563# Portably unset VAR.
11564as_fn_unset ()
11565{
11566  { eval $1=; unset $1;}
11567}
11568as_unset=as_fn_unset
11569# as_fn_append VAR VALUE
11570# ----------------------
11571# Append the text in VALUE to the end of the definition contained in VAR. Take
11572# advantage of any shell optimizations that allow amortized linear growth over
11573# repeated appends, instead of the typical quadratic growth present in naive
11574# implementations.
11575if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
11576  eval 'as_fn_append ()
11577  {
11578    eval $1+=\$2
11579  }'
11580else
11581  as_fn_append ()
11582  {
11583    eval $1=\$$1\$2
11584  }
11585fi # as_fn_append
11586
11587# as_fn_arith ARG...
11588# ------------------
11589# Perform arithmetic evaluation on the ARGs, and store the result in the
11590# global $as_val. Take advantage of shells that can avoid forks. The arguments
11591# must be portable across $(()) and expr.
11592if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
11593  eval 'as_fn_arith ()
11594  {
11595    as_val=$(( $* ))
11596  }'
11597else
11598  as_fn_arith ()
11599  {
11600    as_val=`expr "$@" || test $? -eq 1`
11601  }
11602fi # as_fn_arith
11603
11604
11605if expr a : '\(a\)' >/dev/null 2>&1 &&
11606   test "X`expr 00001 : '.*\(...\)'`" = X001; then
11607  as_expr=expr
11608else
11609  as_expr=false
11610fi
11611
11612if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
11613  as_basename=basename
11614else
11615  as_basename=false
11616fi
11617
11618if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
11619  as_dirname=dirname
11620else
11621  as_dirname=false
11622fi
11623
11624as_me=`$as_basename -- "$0" ||
11625$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
11626	 X"$0" : 'X\(//\)$' \| \
11627	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
11628$as_echo X/"$0" |
11629    sed '/^.*\/\([^/][^/]*\)\/*$/{
11630	    s//\1/
11631	    q
11632	  }
11633	  /^X\/\(\/\/\)$/{
11634	    s//\1/
11635	    q
11636	  }
11637	  /^X\/\(\/\).*/{
11638	    s//\1/
11639	    q
11640	  }
11641	  s/.*/./; q'`
11642
11643# Avoid depending upon Character Ranges.
11644as_cr_letters='abcdefghijklmnopqrstuvwxyz'
11645as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
11646as_cr_Letters=$as_cr_letters$as_cr_LETTERS
11647as_cr_digits='0123456789'
11648as_cr_alnum=$as_cr_Letters$as_cr_digits
11649
11650ECHO_C= ECHO_N= ECHO_T=
11651case `echo -n x` in #(((((
11652-n*)
11653  case `echo 'xy\c'` in
11654  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
11655  xy)  ECHO_C='\c';;
11656  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
11657       ECHO_T='	';;
11658  esac;;
11659*)
11660  ECHO_N='-n';;
11661esac
11662
11663rm -f conf$$ conf$$.exe conf$$.file
11664if test -d conf$$.dir; then
11665  rm -f conf$$.dir/conf$$.file
11666else
11667  rm -f conf$$.dir
11668  mkdir conf$$.dir 2>/dev/null
11669fi
11670if (echo >conf$$.file) 2>/dev/null; then
11671  if ln -s conf$$.file conf$$ 2>/dev/null; then
11672    as_ln_s='ln -s'
11673    # ... but there are two gotchas:
11674    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
11675    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
11676    # In both cases, we have to default to `cp -p'.
11677    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
11678      as_ln_s='cp -p'
11679  elif ln conf$$.file conf$$ 2>/dev/null; then
11680    as_ln_s=ln
11681  else
11682    as_ln_s='cp -p'
11683  fi
11684else
11685  as_ln_s='cp -p'
11686fi
11687rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
11688rmdir conf$$.dir 2>/dev/null
11689
11690
11691# as_fn_mkdir_p
11692# -------------
11693# Create "$as_dir" as a directory, including parents if necessary.
11694as_fn_mkdir_p ()
11695{
11696
11697  case $as_dir in #(
11698  -*) as_dir=./$as_dir;;
11699  esac
11700  test -d "$as_dir" || eval $as_mkdir_p || {
11701    as_dirs=
11702    while :; do
11703      case $as_dir in #(
11704      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
11705      *) as_qdir=$as_dir;;
11706      esac
11707      as_dirs="'$as_qdir' $as_dirs"
11708      as_dir=`$as_dirname -- "$as_dir" ||
11709$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11710	 X"$as_dir" : 'X\(//\)[^/]' \| \
11711	 X"$as_dir" : 'X\(//\)$' \| \
11712	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
11713$as_echo X"$as_dir" |
11714    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
11715	    s//\1/
11716	    q
11717	  }
11718	  /^X\(\/\/\)[^/].*/{
11719	    s//\1/
11720	    q
11721	  }
11722	  /^X\(\/\/\)$/{
11723	    s//\1/
11724	    q
11725	  }
11726	  /^X\(\/\).*/{
11727	    s//\1/
11728	    q
11729	  }
11730	  s/.*/./; q'`
11731      test -d "$as_dir" && break
11732    done
11733    test -z "$as_dirs" || eval "mkdir $as_dirs"
11734  } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
11735
11736
11737} # as_fn_mkdir_p
11738if mkdir -p . 2>/dev/null; then
11739  as_mkdir_p='mkdir -p "$as_dir"'
11740else
11741  test -d ./-p && rmdir ./-p
11742  as_mkdir_p=false
11743fi
11744
11745if test -x / >/dev/null 2>&1; then
11746  as_test_x='test -x'
11747else
11748  if ls -dL / >/dev/null 2>&1; then
11749    as_ls_L_option=L
11750  else
11751    as_ls_L_option=
11752  fi
11753  as_test_x='
11754    eval sh -c '\''
11755      if test -d "$1"; then
11756	test -d "$1/.";
11757      else
11758	case $1 in #(
11759	-*)set "./$1";;
11760	esac;
11761	case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
11762	???[sx]*):;;*)false;;esac;fi
11763    '\'' sh
11764  '
11765fi
11766as_executable_p=$as_test_x
11767
11768# Sed expression to map a string onto a valid CPP name.
11769as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
11770
11771# Sed expression to map a string onto a valid variable name.
11772as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
11773
11774
11775exec 6>&1
11776## ----------------------------------- ##
11777## Main body of $CONFIG_STATUS script. ##
11778## ----------------------------------- ##
11779_ASEOF
11780test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
11781
11782cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11783# Save the log message, to keep $0 and so on meaningful, and to
11784# report actual input values of CONFIG_FILES etc. instead of their
11785# values after options handling.
11786ac_log="
11787This file was extended by $as_me, which was
11788generated by GNU Autoconf 2.64.  Invocation command line was
11789
11790  CONFIG_FILES    = $CONFIG_FILES
11791  CONFIG_HEADERS  = $CONFIG_HEADERS
11792  CONFIG_LINKS    = $CONFIG_LINKS
11793  CONFIG_COMMANDS = $CONFIG_COMMANDS
11794  $ $0 $@
11795
11796on `(hostname || uname -n) 2>/dev/null | sed 1q`
11797"
11798
11799_ACEOF
11800
11801case $ac_config_files in *"
11802"*) set x $ac_config_files; shift; ac_config_files=$*;;
11803esac
11804
11805
11806
11807cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11808# Files that config.status was made for.
11809config_files="$ac_config_files"
11810config_commands="$ac_config_commands"
11811
11812_ACEOF
11813
11814cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11815ac_cs_usage="\
11816\`$as_me' instantiates files and other configuration actions
11817from templates according to the current configuration.  Unless the files
11818and actions are specified as TAGs, all are instantiated by default.
11819
11820Usage: $0 [OPTION]... [TAG]...
11821
11822  -h, --help       print this help, then exit
11823  -V, --version    print version number and configuration settings, then exit
11824  -q, --quiet, --silent
11825                   do not print progress messages
11826  -d, --debug      don't remove temporary files
11827      --recheck    update $as_me by reconfiguring in the same conditions
11828      --file=FILE[:TEMPLATE]
11829                   instantiate the configuration file FILE
11830
11831Configuration files:
11832$config_files
11833
11834Configuration commands:
11835$config_commands
11836
11837Report bugs to the package provider."
11838
11839_ACEOF
11840cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11841ac_cs_version="\\
11842config.status
11843configured by $0, generated by GNU Autoconf 2.64,
11844  with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
11845
11846Copyright (C) 2009 Free Software Foundation, Inc.
11847This config.status script is free software; the Free Software Foundation
11848gives unlimited permission to copy, distribute and modify it."
11849
11850ac_pwd='$ac_pwd'
11851srcdir='$srcdir'
11852INSTALL='$INSTALL'
11853MKDIR_P='$MKDIR_P'
11854AWK='$AWK'
11855test -n "\$AWK" || AWK=awk
11856_ACEOF
11857
11858cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11859# The default lists apply if the user does not specify any file.
11860ac_need_defaults=:
11861while test $# != 0
11862do
11863  case $1 in
11864  --*=*)
11865    ac_option=`expr "X$1" : 'X\([^=]*\)='`
11866    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
11867    ac_shift=:
11868    ;;
11869  *)
11870    ac_option=$1
11871    ac_optarg=$2
11872    ac_shift=shift
11873    ;;
11874  esac
11875
11876  case $ac_option in
11877  # Handling of the options.
11878  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
11879    ac_cs_recheck=: ;;
11880  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
11881    $as_echo "$ac_cs_version"; exit ;;
11882  --debug | --debu | --deb | --de | --d | -d )
11883    debug=: ;;
11884  --file | --fil | --fi | --f )
11885    $ac_shift
11886    case $ac_optarg in
11887    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
11888    esac
11889    as_fn_append CONFIG_FILES " '$ac_optarg'"
11890    ac_need_defaults=false;;
11891  --he | --h |  --help | --hel | -h )
11892    $as_echo "$ac_cs_usage"; exit ;;
11893  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
11894  | -silent | --silent | --silen | --sile | --sil | --si | --s)
11895    ac_cs_silent=: ;;
11896
11897  # This is an error.
11898  -*) as_fn_error "unrecognized option: \`$1'
11899Try \`$0 --help' for more information." ;;
11900
11901  *) as_fn_append ac_config_targets " $1"
11902     ac_need_defaults=false ;;
11903
11904  esac
11905  shift
11906done
11907
11908ac_configure_extra_args=
11909
11910if $ac_cs_silent; then
11911  exec 6>/dev/null
11912  ac_configure_extra_args="$ac_configure_extra_args --silent"
11913fi
11914
11915_ACEOF
11916cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11917if \$ac_cs_recheck; then
11918  set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
11919  shift
11920  \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
11921  CONFIG_SHELL='$SHELL'
11922  export CONFIG_SHELL
11923  exec "\$@"
11924fi
11925
11926_ACEOF
11927cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11928exec 5>>config.log
11929{
11930  echo
11931  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
11932## Running $as_me. ##
11933_ASBOX
11934  $as_echo "$ac_log"
11935} >&5
11936
11937_ACEOF
11938cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11939#
11940# INIT-COMMANDS
11941#
11942
11943srcdir="$srcdir"
11944host="$host"
11945target="$target"
11946with_multisubdir="$with_multisubdir"
11947with_multisrctop="$with_multisrctop"
11948with_target_subdir="$with_target_subdir"
11949ac_configure_args="${multilib_arg} ${ac_configure_args}"
11950multi_basedir="$multi_basedir"
11951CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
11952CC="$CC"
11953CXX="$CXX"
11954GFORTRAN="$GFORTRAN"
11955AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
11956
11957
11958# The HP-UX ksh and POSIX shell print the target directory to stdout
11959# if CDPATH is set.
11960(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
11961
11962sed_quote_subst='$sed_quote_subst'
11963double_quote_subst='$double_quote_subst'
11964delay_variable_subst='$delay_variable_subst'
11965macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
11966macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
11967enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
11968enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
11969pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
11970enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
11971SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
11972ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
11973host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
11974host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
11975host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
11976build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
11977build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
11978build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
11979SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
11980Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
11981GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
11982EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
11983FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
11984LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
11985NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
11986LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
11987max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
11988ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
11989exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
11990lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
11991lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
11992lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
11993reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
11994reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
11995OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
11996deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
11997file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
11998AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
11999AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
12000STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
12001RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
12002old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
12003old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
12004old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
12005lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
12006CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
12007CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
12008compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
12009GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
12010lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
12011lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
12012lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
12013lt_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"`'
12014objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
12015MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
12016lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
12017lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
12018lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
12019lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
12020lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
12021need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
12022DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
12023NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
12024LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
12025OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
12026OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
12027libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
12028shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
12029extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
12030archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
12031enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
12032export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
12033whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
12034compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
12035old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
12036old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
12037archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
12038archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
12039module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
12040module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
12041with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
12042allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
12043no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
12044hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
12045hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
12046hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
12047hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
12048hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
12049hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
12050hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
12051hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
12052inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
12053link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
12054fix_srcfile_path='`$ECHO "$fix_srcfile_path" | $SED "$delay_single_quote_subst"`'
12055always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
12056export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
12057exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
12058include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
12059prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
12060file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
12061variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
12062need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
12063need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
12064version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
12065runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
12066shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
12067shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
12068libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
12069library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
12070soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
12071install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
12072postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
12073postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
12074finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
12075finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
12076hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
12077sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
12078sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
12079hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
12080enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
12081enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
12082enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
12083old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
12084striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
12085
12086LTCC='$LTCC'
12087LTCFLAGS='$LTCFLAGS'
12088compiler='$compiler_DEFAULT'
12089
12090# A function that is used when there is no print builtin or printf.
12091func_fallback_echo ()
12092{
12093  eval 'cat <<_LTECHO_EOF
12094\$1
12095_LTECHO_EOF'
12096}
12097
12098# Quote evaled strings.
12099for var in SHELL \
12100ECHO \
12101SED \
12102GREP \
12103EGREP \
12104FGREP \
12105LD \
12106NM \
12107LN_S \
12108lt_SP2NL \
12109lt_NL2SP \
12110reload_flag \
12111OBJDUMP \
12112deplibs_check_method \
12113file_magic_cmd \
12114AR \
12115AR_FLAGS \
12116STRIP \
12117RANLIB \
12118CC \
12119CFLAGS \
12120compiler \
12121lt_cv_sys_global_symbol_pipe \
12122lt_cv_sys_global_symbol_to_cdecl \
12123lt_cv_sys_global_symbol_to_c_name_address \
12124lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
12125lt_prog_compiler_no_builtin_flag \
12126lt_prog_compiler_wl \
12127lt_prog_compiler_pic \
12128lt_prog_compiler_static \
12129lt_cv_prog_compiler_c_o \
12130need_locks \
12131DSYMUTIL \
12132NMEDIT \
12133LIPO \
12134OTOOL \
12135OTOOL64 \
12136shrext_cmds \
12137export_dynamic_flag_spec \
12138whole_archive_flag_spec \
12139compiler_needs_object \
12140with_gnu_ld \
12141allow_undefined_flag \
12142no_undefined_flag \
12143hardcode_libdir_flag_spec \
12144hardcode_libdir_flag_spec_ld \
12145hardcode_libdir_separator \
12146fix_srcfile_path \
12147exclude_expsyms \
12148include_expsyms \
12149file_list_spec \
12150variables_saved_for_relink \
12151libname_spec \
12152library_names_spec \
12153soname_spec \
12154install_override_mode \
12155finish_eval \
12156old_striplib \
12157striplib; do
12158    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
12159    *[\\\\\\\`\\"\\\$]*)
12160      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
12161      ;;
12162    *)
12163      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
12164      ;;
12165    esac
12166done
12167
12168# Double-quote double-evaled strings.
12169for var in reload_cmds \
12170old_postinstall_cmds \
12171old_postuninstall_cmds \
12172old_archive_cmds \
12173extract_expsyms_cmds \
12174old_archive_from_new_cmds \
12175old_archive_from_expsyms_cmds \
12176archive_cmds \
12177archive_expsym_cmds \
12178module_cmds \
12179module_expsym_cmds \
12180export_symbols_cmds \
12181prelink_cmds \
12182postinstall_cmds \
12183postuninstall_cmds \
12184finish_cmds \
12185sys_lib_search_path_spec \
12186sys_lib_dlsearch_path_spec; do
12187    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
12188    *[\\\\\\\`\\"\\\$]*)
12189      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
12190      ;;
12191    *)
12192      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
12193      ;;
12194    esac
12195done
12196
12197ac_aux_dir='$ac_aux_dir'
12198xsi_shell='$xsi_shell'
12199lt_shell_append='$lt_shell_append'
12200
12201# See if we are running on zsh, and set the options which allow our
12202# commands through without removal of \ escapes INIT.
12203if test -n "\${ZSH_VERSION+set}" ; then
12204   setopt NO_GLOB_SUBST
12205fi
12206
12207
12208    PACKAGE='$PACKAGE'
12209    VERSION='$VERSION'
12210    TIMESTAMP='$TIMESTAMP'
12211    RM='$RM'
12212    ofile='$ofile'
12213
12214
12215
12216
12217_ACEOF
12218
12219cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12220
12221# Handling of arguments.
12222for ac_config_target in $ac_config_targets
12223do
12224  case $ac_config_target in
12225    "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
12226    "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
12227    "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
12228    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
12229
12230  *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
12231  esac
12232done
12233
12234
12235# If the user did not use the arguments to specify the items to instantiate,
12236# then the envvar interface is used.  Set only those that are not.
12237# We use the long form for the default assignment because of an extremely
12238# bizarre bug on SunOS 4.1.3.
12239if $ac_need_defaults; then
12240  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
12241  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
12242fi
12243
12244# Have a temporary directory for convenience.  Make it in the build tree
12245# simply because there is no reason against having it here, and in addition,
12246# creating and moving files from /tmp can sometimes cause problems.
12247# Hook for its removal unless debugging.
12248# Note that there is a small window in which the directory will not be cleaned:
12249# after its creation but before its name has been assigned to `$tmp'.
12250$debug ||
12251{
12252  tmp=
12253  trap 'exit_status=$?
12254  { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
12255' 0
12256  trap 'as_fn_exit 1' 1 2 13 15
12257}
12258# Create a (secure) tmp directory for tmp files.
12259
12260{
12261  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
12262  test -n "$tmp" && test -d "$tmp"
12263}  ||
12264{
12265  tmp=./conf$$-$RANDOM
12266  (umask 077 && mkdir "$tmp")
12267} || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
12268
12269# Set up the scripts for CONFIG_FILES section.
12270# No need to generate them if there are no CONFIG_FILES.
12271# This happens for instance with `./config.status config.h'.
12272if test -n "$CONFIG_FILES"; then
12273
12274
12275ac_cr=`echo X | tr X '\015'`
12276# On cygwin, bash can eat \r inside `` if the user requested igncr.
12277# But we know of no other shell where ac_cr would be empty at this
12278# point, so we can use a bashism as a fallback.
12279if test "x$ac_cr" = x; then
12280  eval ac_cr=\$\'\\r\'
12281fi
12282ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
12283if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
12284  ac_cs_awk_cr='\r'
12285else
12286  ac_cs_awk_cr=$ac_cr
12287fi
12288
12289echo 'BEGIN {' >"$tmp/subs1.awk" &&
12290_ACEOF
12291
12292
12293{
12294  echo "cat >conf$$subs.awk <<_ACEOF" &&
12295  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
12296  echo "_ACEOF"
12297} >conf$$subs.sh ||
12298  as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
12299ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
12300ac_delim='%!_!# '
12301for ac_last_try in false false false false false :; do
12302  . ./conf$$subs.sh ||
12303    as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
12304
12305  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
12306  if test $ac_delim_n = $ac_delim_num; then
12307    break
12308  elif $ac_last_try; then
12309    as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
12310  else
12311    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
12312  fi
12313done
12314rm -f conf$$subs.sh
12315
12316cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12317cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
12318_ACEOF
12319sed -n '
12320h
12321s/^/S["/; s/!.*/"]=/
12322p
12323g
12324s/^[^!]*!//
12325:repl
12326t repl
12327s/'"$ac_delim"'$//
12328t delim
12329:nl
12330h
12331s/\(.\{148\}\).*/\1/
12332t more1
12333s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
12334p
12335n
12336b repl
12337:more1
12338s/["\\]/\\&/g; s/^/"/; s/$/"\\/
12339p
12340g
12341s/.\{148\}//
12342t nl
12343:delim
12344h
12345s/\(.\{148\}\).*/\1/
12346t more2
12347s/["\\]/\\&/g; s/^/"/; s/$/"/
12348p
12349b
12350:more2
12351s/["\\]/\\&/g; s/^/"/; s/$/"\\/
12352p
12353g
12354s/.\{148\}//
12355t delim
12356' <conf$$subs.awk | sed '
12357/^[^""]/{
12358  N
12359  s/\n//
12360}
12361' >>$CONFIG_STATUS || ac_write_fail=1
12362rm -f conf$$subs.awk
12363cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12364_ACAWK
12365cat >>"\$tmp/subs1.awk" <<_ACAWK &&
12366  for (key in S) S_is_set[key] = 1
12367  FS = ""
12368
12369}
12370{
12371  line = $ 0
12372  nfields = split(line, field, "@")
12373  substed = 0
12374  len = length(field[1])
12375  for (i = 2; i < nfields; i++) {
12376    key = field[i]
12377    keylen = length(key)
12378    if (S_is_set[key]) {
12379      value = S[key]
12380      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
12381      len += length(value) + length(field[++i])
12382      substed = 1
12383    } else
12384      len += 1 + keylen
12385  }
12386
12387  print line
12388}
12389
12390_ACAWK
12391_ACEOF
12392cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12393if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
12394  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
12395else
12396  cat
12397fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
12398  || as_fn_error "could not setup config files machinery" "$LINENO" 5
12399_ACEOF
12400
12401# VPATH may cause trouble with some makes, so we remove $(srcdir),
12402# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
12403# trailing colons and then remove the whole line if VPATH becomes empty
12404# (actually we leave an empty line to preserve line numbers).
12405if test "x$srcdir" = x.; then
12406  ac_vpsub='/^[	 ]*VPATH[	 ]*=/{
12407s/:*\$(srcdir):*/:/
12408s/:*\${srcdir}:*/:/
12409s/:*@srcdir@:*/:/
12410s/^\([^=]*=[	 ]*\):*/\1/
12411s/:*$//
12412s/^[^=]*=[	 ]*$//
12413}'
12414fi
12415
12416cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12417fi # test -n "$CONFIG_FILES"
12418
12419
12420eval set X "  :F $CONFIG_FILES      :C $CONFIG_COMMANDS"
12421shift
12422for ac_tag
12423do
12424  case $ac_tag in
12425  :[FHLC]) ac_mode=$ac_tag; continue;;
12426  esac
12427  case $ac_mode$ac_tag in
12428  :[FHL]*:*);;
12429  :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
12430  :[FH]-) ac_tag=-:-;;
12431  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
12432  esac
12433  ac_save_IFS=$IFS
12434  IFS=:
12435  set x $ac_tag
12436  IFS=$ac_save_IFS
12437  shift
12438  ac_file=$1
12439  shift
12440
12441  case $ac_mode in
12442  :L) ac_source=$1;;
12443  :[FH])
12444    ac_file_inputs=
12445    for ac_f
12446    do
12447      case $ac_f in
12448      -) ac_f="$tmp/stdin";;
12449      *) # Look for the file first in the build tree, then in the source tree
12450	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
12451	 # because $ac_f cannot contain `:'.
12452	 test -f "$ac_f" ||
12453	   case $ac_f in
12454	   [\\/$]*) false;;
12455	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
12456	   esac ||
12457	   as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
12458      esac
12459      case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
12460      as_fn_append ac_file_inputs " '$ac_f'"
12461    done
12462
12463    # Let's still pretend it is `configure' which instantiates (i.e., don't
12464    # use $as_me), people would be surprised to read:
12465    #    /* config.h.  Generated by config.status.  */
12466    configure_input='Generated from '`
12467	  $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
12468	`' by configure.'
12469    if test x"$ac_file" != x-; then
12470      configure_input="$ac_file.  $configure_input"
12471      { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
12472$as_echo "$as_me: creating $ac_file" >&6;}
12473    fi
12474    # Neutralize special characters interpreted by sed in replacement strings.
12475    case $configure_input in #(
12476    *\&* | *\|* | *\\* )
12477       ac_sed_conf_input=`$as_echo "$configure_input" |
12478       sed 's/[\\\\&|]/\\\\&/g'`;; #(
12479    *) ac_sed_conf_input=$configure_input;;
12480    esac
12481
12482    case $ac_tag in
12483    *:-:* | *:-) cat >"$tmp/stdin" \
12484      || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
12485    esac
12486    ;;
12487  esac
12488
12489  ac_dir=`$as_dirname -- "$ac_file" ||
12490$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12491	 X"$ac_file" : 'X\(//\)[^/]' \| \
12492	 X"$ac_file" : 'X\(//\)$' \| \
12493	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
12494$as_echo X"$ac_file" |
12495    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12496	    s//\1/
12497	    q
12498	  }
12499	  /^X\(\/\/\)[^/].*/{
12500	    s//\1/
12501	    q
12502	  }
12503	  /^X\(\/\/\)$/{
12504	    s//\1/
12505	    q
12506	  }
12507	  /^X\(\/\).*/{
12508	    s//\1/
12509	    q
12510	  }
12511	  s/.*/./; q'`
12512  as_dir="$ac_dir"; as_fn_mkdir_p
12513  ac_builddir=.
12514
12515case "$ac_dir" in
12516.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
12517*)
12518  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
12519  # A ".." for each directory in $ac_dir_suffix.
12520  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
12521  case $ac_top_builddir_sub in
12522  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
12523  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
12524  esac ;;
12525esac
12526ac_abs_top_builddir=$ac_pwd
12527ac_abs_builddir=$ac_pwd$ac_dir_suffix
12528# for backward compatibility:
12529ac_top_builddir=$ac_top_build_prefix
12530
12531case $srcdir in
12532  .)  # We are building in place.
12533    ac_srcdir=.
12534    ac_top_srcdir=$ac_top_builddir_sub
12535    ac_abs_top_srcdir=$ac_pwd ;;
12536  [\\/]* | ?:[\\/]* )  # Absolute name.
12537    ac_srcdir=$srcdir$ac_dir_suffix;
12538    ac_top_srcdir=$srcdir
12539    ac_abs_top_srcdir=$srcdir ;;
12540  *) # Relative name.
12541    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
12542    ac_top_srcdir=$ac_top_build_prefix$srcdir
12543    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
12544esac
12545ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
12546
12547
12548  case $ac_mode in
12549  :F)
12550  #
12551  # CONFIG_FILE
12552  #
12553
12554  case $INSTALL in
12555  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
12556  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
12557  esac
12558  ac_MKDIR_P=$MKDIR_P
12559  case $MKDIR_P in
12560  [\\/$]* | ?:[\\/]* ) ;;
12561  */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
12562  esac
12563_ACEOF
12564
12565cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12566# If the template does not know about datarootdir, expand it.
12567# FIXME: This hack should be removed a few years after 2.60.
12568ac_datarootdir_hack=; ac_datarootdir_seen=
12569ac_sed_dataroot='
12570/datarootdir/ {
12571  p
12572  q
12573}
12574/@datadir@/p
12575/@docdir@/p
12576/@infodir@/p
12577/@localedir@/p
12578/@mandir@/p'
12579case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
12580*datarootdir*) ac_datarootdir_seen=yes;;
12581*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
12582  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
12583$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
12584_ACEOF
12585cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12586  ac_datarootdir_hack='
12587  s&@datadir@&$datadir&g
12588  s&@docdir@&$docdir&g
12589  s&@infodir@&$infodir&g
12590  s&@localedir@&$localedir&g
12591  s&@mandir@&$mandir&g
12592  s&\\\${datarootdir}&$datarootdir&g' ;;
12593esac
12594_ACEOF
12595
12596# Neutralize VPATH when `$srcdir' = `.'.
12597# Shell code in configure.ac might set extrasub.
12598# FIXME: do we really want to maintain this feature?
12599cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12600ac_sed_extra="$ac_vpsub
12601$extrasub
12602_ACEOF
12603cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12604:t
12605/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
12606s|@configure_input@|$ac_sed_conf_input|;t t
12607s&@top_builddir@&$ac_top_builddir_sub&;t t
12608s&@top_build_prefix@&$ac_top_build_prefix&;t t
12609s&@srcdir@&$ac_srcdir&;t t
12610s&@abs_srcdir@&$ac_abs_srcdir&;t t
12611s&@top_srcdir@&$ac_top_srcdir&;t t
12612s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
12613s&@builddir@&$ac_builddir&;t t
12614s&@abs_builddir@&$ac_abs_builddir&;t t
12615s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
12616s&@INSTALL@&$ac_INSTALL&;t t
12617s&@MKDIR_P@&$ac_MKDIR_P&;t t
12618$ac_datarootdir_hack
12619"
12620eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
12621  || as_fn_error "could not create $ac_file" "$LINENO" 5
12622
12623test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
12624  { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
12625  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
12626  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
12627which seems to be undefined.  Please make sure it is defined." >&5
12628$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
12629which seems to be undefined.  Please make sure it is defined." >&2;}
12630
12631  rm -f "$tmp/stdin"
12632  case $ac_file in
12633  -) cat "$tmp/out" && rm -f "$tmp/out";;
12634  *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
12635  esac \
12636  || as_fn_error "could not create $ac_file" "$LINENO" 5
12637 ;;
12638
12639
12640  :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
12641$as_echo "$as_me: executing $ac_file commands" >&6;}
12642 ;;
12643  esac
12644
12645
12646  case $ac_file$ac_mode in
12647    "default-1":C)
12648# Only add multilib support code if we just rebuilt the top-level
12649# Makefile.
12650case " $CONFIG_FILES " in
12651 *" Makefile "*)
12652   ac_file=Makefile . ${multi_basedir}/config-ml.in
12653   ;;
12654esac ;;
12655    "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
12656  # Autoconf 2.62 quotes --file arguments for eval, but not when files
12657  # are listed without --file.  Let's play safe and only enable the eval
12658  # if we detect the quoting.
12659  case $CONFIG_FILES in
12660  *\'*) eval set x "$CONFIG_FILES" ;;
12661  *)   set x $CONFIG_FILES ;;
12662  esac
12663  shift
12664  for mf
12665  do
12666    # Strip MF so we end up with the name of the file.
12667    mf=`echo "$mf" | sed -e 's/:.*$//'`
12668    # Check whether this is an Automake generated Makefile or not.
12669    # We used to match only the files named `Makefile.in', but
12670    # some people rename them; so instead we look at the file content.
12671    # Grep'ing the first line is not enough: some people post-process
12672    # each Makefile.in and add a new line on top of each file to say so.
12673    # Grep'ing the whole file is not good either: AIX grep has a line
12674    # limit of 2048, but all sed's we know have understand at least 4000.
12675    if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
12676      dirpart=`$as_dirname -- "$mf" ||
12677$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12678	 X"$mf" : 'X\(//\)[^/]' \| \
12679	 X"$mf" : 'X\(//\)$' \| \
12680	 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
12681$as_echo X"$mf" |
12682    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12683	    s//\1/
12684	    q
12685	  }
12686	  /^X\(\/\/\)[^/].*/{
12687	    s//\1/
12688	    q
12689	  }
12690	  /^X\(\/\/\)$/{
12691	    s//\1/
12692	    q
12693	  }
12694	  /^X\(\/\).*/{
12695	    s//\1/
12696	    q
12697	  }
12698	  s/.*/./; q'`
12699    else
12700      continue
12701    fi
12702    # Extract the definition of DEPDIR, am__include, and am__quote
12703    # from the Makefile without running `make'.
12704    DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
12705    test -z "$DEPDIR" && continue
12706    am__include=`sed -n 's/^am__include = //p' < "$mf"`
12707    test -z "am__include" && continue
12708    am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
12709    # When using ansi2knr, U may be empty or an underscore; expand it
12710    U=`sed -n 's/^U = //p' < "$mf"`
12711    # Find all dependency output files, they are included files with
12712    # $(DEPDIR) in their names.  We invoke sed twice because it is the
12713    # simplest approach to changing $(DEPDIR) to its actual value in the
12714    # expansion.
12715    for file in `sed -n "
12716      s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
12717	 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
12718      # Make sure the directory exists.
12719      test -f "$dirpart/$file" && continue
12720      fdir=`$as_dirname -- "$file" ||
12721$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12722	 X"$file" : 'X\(//\)[^/]' \| \
12723	 X"$file" : 'X\(//\)$' \| \
12724	 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
12725$as_echo X"$file" |
12726    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12727	    s//\1/
12728	    q
12729	  }
12730	  /^X\(\/\/\)[^/].*/{
12731	    s//\1/
12732	    q
12733	  }
12734	  /^X\(\/\/\)$/{
12735	    s//\1/
12736	    q
12737	  }
12738	  /^X\(\/\).*/{
12739	    s//\1/
12740	    q
12741	  }
12742	  s/.*/./; q'`
12743      as_dir=$dirpart/$fdir; as_fn_mkdir_p
12744      # echo "creating $dirpart/$file"
12745      echo '# dummy' > "$dirpart/$file"
12746    done
12747  done
12748}
12749 ;;
12750    "libtool":C)
12751
12752    # See if we are running on zsh, and set the options which allow our
12753    # commands through without removal of \ escapes.
12754    if test -n "${ZSH_VERSION+set}" ; then
12755      setopt NO_GLOB_SUBST
12756    fi
12757
12758    cfgfile="${ofile}T"
12759    trap "$RM \"$cfgfile\"; exit 1" 1 2 15
12760    $RM "$cfgfile"
12761
12762    cat <<_LT_EOF >> "$cfgfile"
12763#! $SHELL
12764
12765# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
12766# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
12767# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
12768# NOTE: Changes made to this file will be lost: look at ltmain.sh.
12769#
12770#   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
12771#                 2006, 2007, 2008, 2009 Free Software Foundation, Inc.
12772#   Written by Gordon Matzigkeit, 1996
12773#
12774#   This file is part of GNU Libtool.
12775#
12776# GNU Libtool is free software; you can redistribute it and/or
12777# modify it under the terms of the GNU General Public License as
12778# published by the Free Software Foundation; either version 2 of
12779# the License, or (at your option) any later version.
12780#
12781# As a special exception to the GNU General Public License,
12782# if you distribute this file as part of a program or library that
12783# is built using GNU Libtool, you may include this file under the
12784# same distribution terms that you use for the rest of that program.
12785#
12786# GNU Libtool is distributed in the hope that it will be useful,
12787# but WITHOUT ANY WARRANTY; without even the implied warranty of
12788# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
12789# GNU General Public License for more details.
12790#
12791# You should have received a copy of the GNU General Public License
12792# along with GNU Libtool; see the file COPYING.  If not, a copy
12793# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
12794# obtained by writing to the Free Software Foundation, Inc.,
12795# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
12796
12797
12798# The names of the tagged configurations supported by this script.
12799available_tags=""
12800
12801# ### BEGIN LIBTOOL CONFIG
12802
12803# Which release of libtool.m4 was used?
12804macro_version=$macro_version
12805macro_revision=$macro_revision
12806
12807# Whether or not to build shared libraries.
12808build_libtool_libs=$enable_shared
12809
12810# Whether or not to build static libraries.
12811build_old_libs=$enable_static
12812
12813# What type of objects to build.
12814pic_mode=$pic_mode
12815
12816# Whether or not to optimize for fast installation.
12817fast_install=$enable_fast_install
12818
12819# Shell to use when invoking shell scripts.
12820SHELL=$lt_SHELL
12821
12822# An echo program that protects backslashes.
12823ECHO=$lt_ECHO
12824
12825# The host system.
12826host_alias=$host_alias
12827host=$host
12828host_os=$host_os
12829
12830# The build system.
12831build_alias=$build_alias
12832build=$build
12833build_os=$build_os
12834
12835# A sed program that does not truncate output.
12836SED=$lt_SED
12837
12838# Sed that helps us avoid accidentally triggering echo(1) options like -n.
12839Xsed="\$SED -e 1s/^X//"
12840
12841# A grep program that handles long lines.
12842GREP=$lt_GREP
12843
12844# An ERE matcher.
12845EGREP=$lt_EGREP
12846
12847# A literal string matcher.
12848FGREP=$lt_FGREP
12849
12850# A BSD- or MS-compatible name lister.
12851NM=$lt_NM
12852
12853# Whether we need soft or hard links.
12854LN_S=$lt_LN_S
12855
12856# What is the maximum length of a command?
12857max_cmd_len=$max_cmd_len
12858
12859# Object file suffix (normally "o").
12860objext=$ac_objext
12861
12862# Executable file suffix (normally "").
12863exeext=$exeext
12864
12865# whether the shell understands "unset".
12866lt_unset=$lt_unset
12867
12868# turn spaces into newlines.
12869SP2NL=$lt_lt_SP2NL
12870
12871# turn newlines into spaces.
12872NL2SP=$lt_lt_NL2SP
12873
12874# An object symbol dumper.
12875OBJDUMP=$lt_OBJDUMP
12876
12877# Method to check whether dependent libraries are shared objects.
12878deplibs_check_method=$lt_deplibs_check_method
12879
12880# Command to use when deplibs_check_method == "file_magic".
12881file_magic_cmd=$lt_file_magic_cmd
12882
12883# The archiver.
12884AR=$lt_AR
12885AR_FLAGS=$lt_AR_FLAGS
12886
12887# A symbol stripping program.
12888STRIP=$lt_STRIP
12889
12890# Commands used to install an old-style archive.
12891RANLIB=$lt_RANLIB
12892old_postinstall_cmds=$lt_old_postinstall_cmds
12893old_postuninstall_cmds=$lt_old_postuninstall_cmds
12894
12895# Whether to use a lock for old archive extraction.
12896lock_old_archive_extraction=$lock_old_archive_extraction
12897
12898# A C compiler.
12899LTCC=$lt_CC
12900
12901# LTCC compiler flags.
12902LTCFLAGS=$lt_CFLAGS
12903
12904# Take the output of nm and produce a listing of raw symbols and C names.
12905global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
12906
12907# Transform the output of nm in a proper C declaration.
12908global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
12909
12910# Transform the output of nm in a C name address pair.
12911global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
12912
12913# Transform the output of nm in a C name address pair when lib prefix is needed.
12914global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
12915
12916# The name of the directory that contains temporary libtool files.
12917objdir=$objdir
12918
12919# Used to examine libraries when file_magic_cmd begins with "file".
12920MAGIC_CMD=$MAGIC_CMD
12921
12922# Must we lock files when doing compilation?
12923need_locks=$lt_need_locks
12924
12925# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
12926DSYMUTIL=$lt_DSYMUTIL
12927
12928# Tool to change global to local symbols on Mac OS X.
12929NMEDIT=$lt_NMEDIT
12930
12931# Tool to manipulate fat objects and archives on Mac OS X.
12932LIPO=$lt_LIPO
12933
12934# ldd/readelf like tool for Mach-O binaries on Mac OS X.
12935OTOOL=$lt_OTOOL
12936
12937# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
12938OTOOL64=$lt_OTOOL64
12939
12940# Old archive suffix (normally "a").
12941libext=$libext
12942
12943# Shared library suffix (normally ".so").
12944shrext_cmds=$lt_shrext_cmds
12945
12946# The commands to extract the exported symbol list from a shared archive.
12947extract_expsyms_cmds=$lt_extract_expsyms_cmds
12948
12949# Variables whose values should be saved in libtool wrapper scripts and
12950# restored at link time.
12951variables_saved_for_relink=$lt_variables_saved_for_relink
12952
12953# Do we need the "lib" prefix for modules?
12954need_lib_prefix=$need_lib_prefix
12955
12956# Do we need a version for libraries?
12957need_version=$need_version
12958
12959# Library versioning type.
12960version_type=$version_type
12961
12962# Shared library runtime path variable.
12963runpath_var=$runpath_var
12964
12965# Shared library path variable.
12966shlibpath_var=$shlibpath_var
12967
12968# Is shlibpath searched before the hard-coded library search path?
12969shlibpath_overrides_runpath=$shlibpath_overrides_runpath
12970
12971# Format of library name prefix.
12972libname_spec=$lt_libname_spec
12973
12974# List of archive names.  First name is the real one, the rest are links.
12975# The last name is the one that the linker finds with -lNAME
12976library_names_spec=$lt_library_names_spec
12977
12978# The coded name of the library, if different from the real name.
12979soname_spec=$lt_soname_spec
12980
12981# Permission mode override for installation of shared libraries.
12982install_override_mode=$lt_install_override_mode
12983
12984# Command to use after installation of a shared archive.
12985postinstall_cmds=$lt_postinstall_cmds
12986
12987# Command to use after uninstallation of a shared archive.
12988postuninstall_cmds=$lt_postuninstall_cmds
12989
12990# Commands used to finish a libtool library installation in a directory.
12991finish_cmds=$lt_finish_cmds
12992
12993# As "finish_cmds", except a single script fragment to be evaled but
12994# not shown.
12995finish_eval=$lt_finish_eval
12996
12997# Whether we should hardcode library paths into libraries.
12998hardcode_into_libs=$hardcode_into_libs
12999
13000# Compile-time system search path for libraries.
13001sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
13002
13003# Run-time system search path for libraries.
13004sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
13005
13006# Whether dlopen is supported.
13007dlopen_support=$enable_dlopen
13008
13009# Whether dlopen of programs is supported.
13010dlopen_self=$enable_dlopen_self
13011
13012# Whether dlopen of statically linked programs is supported.
13013dlopen_self_static=$enable_dlopen_self_static
13014
13015# Commands to strip libraries.
13016old_striplib=$lt_old_striplib
13017striplib=$lt_striplib
13018
13019
13020# The linker used to build libraries.
13021LD=$lt_LD
13022
13023# How to create reloadable object files.
13024reload_flag=$lt_reload_flag
13025reload_cmds=$lt_reload_cmds
13026
13027# Commands used to build an old-style archive.
13028old_archive_cmds=$lt_old_archive_cmds
13029
13030# A language specific compiler.
13031CC=$lt_compiler
13032
13033# Is the compiler the GNU compiler?
13034with_gcc=$GCC
13035
13036# Compiler flag to turn off builtin functions.
13037no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
13038
13039# How to pass a linker flag through the compiler.
13040wl=$lt_lt_prog_compiler_wl
13041
13042# Additional compiler flags for building library objects.
13043pic_flag=$lt_lt_prog_compiler_pic
13044
13045# Compiler flag to prevent dynamic linking.
13046link_static_flag=$lt_lt_prog_compiler_static
13047
13048# Does compiler simultaneously support -c and -o options?
13049compiler_c_o=$lt_lt_cv_prog_compiler_c_o
13050
13051# Whether or not to add -lc for building shared libraries.
13052build_libtool_need_lc=$archive_cmds_need_lc
13053
13054# Whether or not to disallow shared libs when runtime libs are static.
13055allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
13056
13057# Compiler flag to allow reflexive dlopens.
13058export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
13059
13060# Compiler flag to generate shared objects directly from archives.
13061whole_archive_flag_spec=$lt_whole_archive_flag_spec
13062
13063# Whether the compiler copes with passing no objects directly.
13064compiler_needs_object=$lt_compiler_needs_object
13065
13066# Create an old-style archive from a shared archive.
13067old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
13068
13069# Create a temporary old-style archive to link instead of a shared archive.
13070old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
13071
13072# Commands used to build a shared archive.
13073archive_cmds=$lt_archive_cmds
13074archive_expsym_cmds=$lt_archive_expsym_cmds
13075
13076# Commands used to build a loadable module if different from building
13077# a shared archive.
13078module_cmds=$lt_module_cmds
13079module_expsym_cmds=$lt_module_expsym_cmds
13080
13081# Whether we are building with GNU ld or not.
13082with_gnu_ld=$lt_with_gnu_ld
13083
13084# Flag that allows shared libraries with undefined symbols to be built.
13085allow_undefined_flag=$lt_allow_undefined_flag
13086
13087# Flag that enforces no undefined symbols.
13088no_undefined_flag=$lt_no_undefined_flag
13089
13090# Flag to hardcode \$libdir into a binary during linking.
13091# This must work even if \$libdir does not exist
13092hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
13093
13094# If ld is used when linking, flag to hardcode \$libdir into a binary
13095# during linking.  This must work even if \$libdir does not exist.
13096hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
13097
13098# Whether we need a single "-rpath" flag with a separated argument.
13099hardcode_libdir_separator=$lt_hardcode_libdir_separator
13100
13101# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
13102# DIR into the resulting binary.
13103hardcode_direct=$hardcode_direct
13104
13105# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
13106# DIR into the resulting binary and the resulting library dependency is
13107# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
13108# library is relocated.
13109hardcode_direct_absolute=$hardcode_direct_absolute
13110
13111# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
13112# into the resulting binary.
13113hardcode_minus_L=$hardcode_minus_L
13114
13115# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
13116# into the resulting binary.
13117hardcode_shlibpath_var=$hardcode_shlibpath_var
13118
13119# Set to "yes" if building a shared library automatically hardcodes DIR
13120# into the library and all subsequent libraries and executables linked
13121# against it.
13122hardcode_automatic=$hardcode_automatic
13123
13124# Set to yes if linker adds runtime paths of dependent libraries
13125# to runtime path list.
13126inherit_rpath=$inherit_rpath
13127
13128# Whether libtool must link a program against all its dependency libraries.
13129link_all_deplibs=$link_all_deplibs
13130
13131# Fix the shell variable \$srcfile for the compiler.
13132fix_srcfile_path=$lt_fix_srcfile_path
13133
13134# Set to "yes" if exported symbols are required.
13135always_export_symbols=$always_export_symbols
13136
13137# The commands to list exported symbols.
13138export_symbols_cmds=$lt_export_symbols_cmds
13139
13140# Symbols that should not be listed in the preloaded symbols.
13141exclude_expsyms=$lt_exclude_expsyms
13142
13143# Symbols that must always be exported.
13144include_expsyms=$lt_include_expsyms
13145
13146# Commands necessary for linking programs (against libraries) with templates.
13147prelink_cmds=$lt_prelink_cmds
13148
13149# Specify filename containing input files.
13150file_list_spec=$lt_file_list_spec
13151
13152# How to hardcode a shared library path into an executable.
13153hardcode_action=$hardcode_action
13154
13155# ### END LIBTOOL CONFIG
13156
13157_LT_EOF
13158
13159  case $host_os in
13160  aix3*)
13161    cat <<\_LT_EOF >> "$cfgfile"
13162# AIX sometimes has problems with the GCC collect2 program.  For some
13163# reason, if we set the COLLECT_NAMES environment variable, the problems
13164# vanish in a puff of smoke.
13165if test "X${COLLECT_NAMES+set}" != Xset; then
13166  COLLECT_NAMES=
13167  export COLLECT_NAMES
13168fi
13169_LT_EOF
13170    ;;
13171  esac
13172
13173
13174ltmain="$ac_aux_dir/ltmain.sh"
13175
13176
13177  # We use sed instead of cat because bash on DJGPP gets confused if
13178  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
13179  # text mode, it properly converts lines to CR/LF.  This bash problem
13180  # is reportedly fixed, but why not run on old versions too?
13181  sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
13182    || (rm -f "$cfgfile"; exit 1)
13183
13184  case $xsi_shell in
13185  yes)
13186    cat << \_LT_EOF >> "$cfgfile"
13187
13188# func_dirname file append nondir_replacement
13189# Compute the dirname of FILE.  If nonempty, add APPEND to the result,
13190# otherwise set result to NONDIR_REPLACEMENT.
13191func_dirname ()
13192{
13193  case ${1} in
13194    */*) func_dirname_result="${1%/*}${2}" ;;
13195    *  ) func_dirname_result="${3}" ;;
13196  esac
13197}
13198
13199# func_basename file
13200func_basename ()
13201{
13202  func_basename_result="${1##*/}"
13203}
13204
13205# func_dirname_and_basename file append nondir_replacement
13206# perform func_basename and func_dirname in a single function
13207# call:
13208#   dirname:  Compute the dirname of FILE.  If nonempty,
13209#             add APPEND to the result, otherwise set result
13210#             to NONDIR_REPLACEMENT.
13211#             value returned in "$func_dirname_result"
13212#   basename: Compute filename of FILE.
13213#             value retuned in "$func_basename_result"
13214# Implementation must be kept synchronized with func_dirname
13215# and func_basename. For efficiency, we do not delegate to
13216# those functions but instead duplicate the functionality here.
13217func_dirname_and_basename ()
13218{
13219  case ${1} in
13220    */*) func_dirname_result="${1%/*}${2}" ;;
13221    *  ) func_dirname_result="${3}" ;;
13222  esac
13223  func_basename_result="${1##*/}"
13224}
13225
13226# func_stripname prefix suffix name
13227# strip PREFIX and SUFFIX off of NAME.
13228# PREFIX and SUFFIX must not contain globbing or regex special
13229# characters, hashes, percent signs, but SUFFIX may contain a leading
13230# dot (in which case that matches only a dot).
13231func_stripname ()
13232{
13233  # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
13234  # positional parameters, so assign one to ordinary parameter first.
13235  func_stripname_result=${3}
13236  func_stripname_result=${func_stripname_result#"${1}"}
13237  func_stripname_result=${func_stripname_result%"${2}"}
13238}
13239
13240# func_opt_split
13241func_opt_split ()
13242{
13243  func_opt_split_opt=${1%%=*}
13244  func_opt_split_arg=${1#*=}
13245}
13246
13247# func_lo2o object
13248func_lo2o ()
13249{
13250  case ${1} in
13251    *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
13252    *)    func_lo2o_result=${1} ;;
13253  esac
13254}
13255
13256# func_xform libobj-or-source
13257func_xform ()
13258{
13259  func_xform_result=${1%.*}.lo
13260}
13261
13262# func_arith arithmetic-term...
13263func_arith ()
13264{
13265  func_arith_result=$(( $* ))
13266}
13267
13268# func_len string
13269# STRING may not start with a hyphen.
13270func_len ()
13271{
13272  func_len_result=${#1}
13273}
13274
13275_LT_EOF
13276    ;;
13277  *) # Bourne compatible functions.
13278    cat << \_LT_EOF >> "$cfgfile"
13279
13280# func_dirname file append nondir_replacement
13281# Compute the dirname of FILE.  If nonempty, add APPEND to the result,
13282# otherwise set result to NONDIR_REPLACEMENT.
13283func_dirname ()
13284{
13285  # Extract subdirectory from the argument.
13286  func_dirname_result=`$ECHO "${1}" | $SED "$dirname"`
13287  if test "X$func_dirname_result" = "X${1}"; then
13288    func_dirname_result="${3}"
13289  else
13290    func_dirname_result="$func_dirname_result${2}"
13291  fi
13292}
13293
13294# func_basename file
13295func_basename ()
13296{
13297  func_basename_result=`$ECHO "${1}" | $SED "$basename"`
13298}
13299
13300
13301# func_stripname prefix suffix name
13302# strip PREFIX and SUFFIX off of NAME.
13303# PREFIX and SUFFIX must not contain globbing or regex special
13304# characters, hashes, percent signs, but SUFFIX may contain a leading
13305# dot (in which case that matches only a dot).
13306# func_strip_suffix prefix name
13307func_stripname ()
13308{
13309  case ${2} in
13310    .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
13311    *)  func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
13312  esac
13313}
13314
13315# sed scripts:
13316my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
13317my_sed_long_arg='1s/^-[^=]*=//'
13318
13319# func_opt_split
13320func_opt_split ()
13321{
13322  func_opt_split_opt=`$ECHO "${1}" | $SED "$my_sed_long_opt"`
13323  func_opt_split_arg=`$ECHO "${1}" | $SED "$my_sed_long_arg"`
13324}
13325
13326# func_lo2o object
13327func_lo2o ()
13328{
13329  func_lo2o_result=`$ECHO "${1}" | $SED "$lo2o"`
13330}
13331
13332# func_xform libobj-or-source
13333func_xform ()
13334{
13335  func_xform_result=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'`
13336}
13337
13338# func_arith arithmetic-term...
13339func_arith ()
13340{
13341  func_arith_result=`expr "$@"`
13342}
13343
13344# func_len string
13345# STRING may not start with a hyphen.
13346func_len ()
13347{
13348  func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
13349}
13350
13351_LT_EOF
13352esac
13353
13354case $lt_shell_append in
13355  yes)
13356    cat << \_LT_EOF >> "$cfgfile"
13357
13358# func_append var value
13359# Append VALUE to the end of shell variable VAR.
13360func_append ()
13361{
13362  eval "$1+=\$2"
13363}
13364_LT_EOF
13365    ;;
13366  *)
13367    cat << \_LT_EOF >> "$cfgfile"
13368
13369# func_append var value
13370# Append VALUE to the end of shell variable VAR.
13371func_append ()
13372{
13373  eval "$1=\$$1\$2"
13374}
13375
13376_LT_EOF
13377    ;;
13378  esac
13379
13380
13381  sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
13382    || (rm -f "$cfgfile"; exit 1)
13383
13384  mv -f "$cfgfile" "$ofile" ||
13385    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
13386  chmod +x "$ofile"
13387
13388 ;;
13389
13390  esac
13391done # for ac_tag
13392
13393
13394as_fn_exit 0
13395_ACEOF
13396ac_clean_files=$ac_clean_files_save
13397
13398test $ac_write_fail = 0 ||
13399  as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
13400
13401
13402# configure is writing to config.log, and then calls config.status.
13403# config.status does its own redirection, appending to config.log.
13404# Unfortunately, on DOS this fails, as config.log is still kept open
13405# by configure, so config.status won't be able to write to it; its
13406# output is simply discarded.  So we exec the FD to /dev/null,
13407# effectively closing config.log, so it can be properly (re)opened and
13408# appended to by config.status.  When coming back to configure, we
13409# need to make the FD available again.
13410if test "$no_create" != yes; then
13411  ac_cs_success=:
13412  ac_config_status_args=
13413  test "$silent" = yes &&
13414    ac_config_status_args="$ac_config_status_args --quiet"
13415  exec 5>/dev/null
13416  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
13417  exec 5>>config.log
13418  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
13419  # would make configure fail if this is the last instruction.
13420  $ac_cs_success || as_fn_exit $?
13421fi
13422if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
13423  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
13424$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
13425fi
13426
13427