1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.64 for LTO plugin for ld 0.1.
4#
5# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
6# 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software
7# Foundation, Inc.
8#
9# This configure script is free software; the Free Software Foundation
10# gives unlimited permission to copy, distribute and modify it.
11## -------------------- ##
12## M4sh Initialization. ##
13## -------------------- ##
14
15# Be more Bourne compatible
16DUALCASE=1; export DUALCASE # for MKS sh
17if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
18  emulate sh
19  NULLCMD=:
20  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
21  # is contrary to our usage.  Disable this feature.
22  alias -g '${1+"$@"}'='"$@"'
23  setopt NO_GLOB_SUBST
24else
25  case `(set -o) 2>/dev/null` in #(
26  *posix*) :
27    set -o posix ;; #(
28  *) :
29     ;;
30esac
31fi
32
33
34as_nl='
35'
36export as_nl
37# Printing a long string crashes Solaris 7 /usr/bin/printf.
38as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
39as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
40as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
41# Prefer a ksh shell builtin over an external printf program on Solaris,
42# but without wasting forks for bash or zsh.
43if test -z "$BASH_VERSION$ZSH_VERSION" \
44    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
45  as_echo='print -r --'
46  as_echo_n='print -rn --'
47elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
48  as_echo='printf %s\n'
49  as_echo_n='printf %s'
50else
51  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
52    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
53    as_echo_n='/usr/ucb/echo -n'
54  else
55    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
56    as_echo_n_body='eval
57      arg=$1;
58      case $arg in #(
59      *"$as_nl"*)
60	expr "X$arg" : "X\\(.*\\)$as_nl";
61	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
62      esac;
63      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
64    '
65    export as_echo_n_body
66    as_echo_n='sh -c $as_echo_n_body as_echo'
67  fi
68  export as_echo_body
69  as_echo='sh -c $as_echo_body as_echo'
70fi
71
72# The user is always right.
73if test "${PATH_SEPARATOR+set}" != set; then
74  PATH_SEPARATOR=:
75  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
76    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
77      PATH_SEPARATOR=';'
78  }
79fi
80
81
82# IFS
83# We need space, tab and new line, in precisely that order.  Quoting is
84# there to prevent editors from complaining about space-tab.
85# (If _AS_PATH_WALK were called with IFS unset, it would disable word
86# splitting by setting IFS to empty value.)
87IFS=" ""	$as_nl"
88
89# Find who we are.  Look in the path if we contain no directory separator.
90case $0 in #((
91  *[\\/]* ) as_myself=$0 ;;
92  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
93for as_dir in $PATH
94do
95  IFS=$as_save_IFS
96  test -z "$as_dir" && as_dir=.
97    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
98  done
99IFS=$as_save_IFS
100
101     ;;
102esac
103# We did not find ourselves, most probably we were run as `sh COMMAND'
104# in which case we are not to be found in the path.
105if test "x$as_myself" = x; then
106  as_myself=$0
107fi
108if test ! -f "$as_myself"; then
109  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
110  exit 1
111fi
112
113# Unset variables that we do not need and which cause bugs (e.g. in
114# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
115# suppresses any "Segmentation fault" message there.  '((' could
116# trigger a bug in pdksh 5.2.14.
117for as_var in BASH_ENV ENV MAIL MAILPATH
118do eval test x\${$as_var+set} = xset \
119  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
120done
121PS1='$ '
122PS2='> '
123PS4='+ '
124
125# NLS nuisances.
126LC_ALL=C
127export LC_ALL
128LANGUAGE=C
129export LANGUAGE
130
131# CDPATH.
132(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
133
134if test "x$CONFIG_SHELL" = x; then
135  as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
136  emulate sh
137  NULLCMD=:
138  # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
139  # is contrary to our usage.  Disable this feature.
140  alias -g '\${1+\"\$@\"}'='\"\$@\"'
141  setopt NO_GLOB_SUBST
142else
143  case \`(set -o) 2>/dev/null\` in #(
144  *posix*) :
145    set -o posix ;; #(
146  *) :
147     ;;
148esac
149fi
150"
151  as_required="as_fn_return () { (exit \$1); }
152as_fn_success () { as_fn_return 0; }
153as_fn_failure () { as_fn_return 1; }
154as_fn_ret_success () { return 0; }
155as_fn_ret_failure () { return 1; }
156
157exitcode=0
158as_fn_success || { exitcode=1; echo as_fn_success failed.; }
159as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
160as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
161as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
162if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
163
164else
165  exitcode=1; echo positional parameters were not saved.
166fi
167test x\$exitcode = x0 || exit 1"
168  as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
169  as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
170  eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
171  test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
172
173  test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
174    ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
175    ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
176    ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
177    PATH=/empty FPATH=/empty; export PATH FPATH
178    test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
179      || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1
180test \$(( 1 + 1 )) = 2 || exit 1"
181  if (eval "$as_required") 2>/dev/null; then :
182  as_have_required=yes
183else
184  as_have_required=no
185fi
186  if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
187
188else
189  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
190as_found=false
191for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
192do
193  IFS=$as_save_IFS
194  test -z "$as_dir" && as_dir=.
195  as_found=:
196  case $as_dir in #(
197	 /*)
198	   for as_base in sh bash ksh sh5; do
199	     # Try only shells that exist, to save several forks.
200	     as_shell=$as_dir/$as_base
201	     if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
202		    { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
203  CONFIG_SHELL=$as_shell as_have_required=yes
204		   if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
205  break 2
206fi
207fi
208	   done;;
209       esac
210  as_found=false
211done
212$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
213	      { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
214  CONFIG_SHELL=$SHELL as_have_required=yes
215fi; }
216IFS=$as_save_IFS
217
218
219      if test "x$CONFIG_SHELL" != x; then :
220  # We cannot yet assume a decent shell, so we have to provide a
221	# neutralization value for shells without unset; and this also
222	# works around shells that cannot unset nonexistent variables.
223	BASH_ENV=/dev/null
224	ENV=/dev/null
225	(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
226	export CONFIG_SHELL
227	exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
228fi
229
230    if test x$as_have_required = xno; then :
231  $as_echo "$0: This script requires a shell more modern than all"
232  $as_echo "$0: the shells that I found on your system."
233  if test x${ZSH_VERSION+set} = xset ; then
234    $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
235    $as_echo "$0: be upgraded to zsh 4.3.4 or later."
236  else
237    $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
238$0: including any error possibly output before this
239$0: message. Then install a modern shell, or manually run
240$0: the script under such a shell if you do have one."
241  fi
242  exit 1
243fi
244fi
245fi
246SHELL=${CONFIG_SHELL-/bin/sh}
247export SHELL
248# Unset more variables known to interfere with behavior of common tools.
249CLICOLOR_FORCE= GREP_OPTIONS=
250unset CLICOLOR_FORCE GREP_OPTIONS
251
252## --------------------- ##
253## M4sh Shell Functions. ##
254## --------------------- ##
255# as_fn_unset VAR
256# ---------------
257# Portably unset VAR.
258as_fn_unset ()
259{
260  { eval $1=; unset $1;}
261}
262as_unset=as_fn_unset
263
264# as_fn_set_status STATUS
265# -----------------------
266# Set $? to STATUS, without forking.
267as_fn_set_status ()
268{
269  return $1
270} # as_fn_set_status
271
272# as_fn_exit STATUS
273# -----------------
274# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
275as_fn_exit ()
276{
277  set +e
278  as_fn_set_status $1
279  exit $1
280} # as_fn_exit
281
282# as_fn_mkdir_p
283# -------------
284# Create "$as_dir" as a directory, including parents if necessary.
285as_fn_mkdir_p ()
286{
287
288  case $as_dir in #(
289  -*) as_dir=./$as_dir;;
290  esac
291  test -d "$as_dir" || eval $as_mkdir_p || {
292    as_dirs=
293    while :; do
294      case $as_dir in #(
295      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
296      *) as_qdir=$as_dir;;
297      esac
298      as_dirs="'$as_qdir' $as_dirs"
299      as_dir=`$as_dirname -- "$as_dir" ||
300$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
301	 X"$as_dir" : 'X\(//\)[^/]' \| \
302	 X"$as_dir" : 'X\(//\)$' \| \
303	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
304$as_echo X"$as_dir" |
305    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
306	    s//\1/
307	    q
308	  }
309	  /^X\(\/\/\)[^/].*/{
310	    s//\1/
311	    q
312	  }
313	  /^X\(\/\/\)$/{
314	    s//\1/
315	    q
316	  }
317	  /^X\(\/\).*/{
318	    s//\1/
319	    q
320	  }
321	  s/.*/./; q'`
322      test -d "$as_dir" && break
323    done
324    test -z "$as_dirs" || eval "mkdir $as_dirs"
325  } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
326
327
328} # as_fn_mkdir_p
329# as_fn_append VAR VALUE
330# ----------------------
331# Append the text in VALUE to the end of the definition contained in VAR. Take
332# advantage of any shell optimizations that allow amortized linear growth over
333# repeated appends, instead of the typical quadratic growth present in naive
334# implementations.
335if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
336  eval 'as_fn_append ()
337  {
338    eval $1+=\$2
339  }'
340else
341  as_fn_append ()
342  {
343    eval $1=\$$1\$2
344  }
345fi # as_fn_append
346
347# as_fn_arith ARG...
348# ------------------
349# Perform arithmetic evaluation on the ARGs, and store the result in the
350# global $as_val. Take advantage of shells that can avoid forks. The arguments
351# must be portable across $(()) and expr.
352if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
353  eval 'as_fn_arith ()
354  {
355    as_val=$(( $* ))
356  }'
357else
358  as_fn_arith ()
359  {
360    as_val=`expr "$@" || test $? -eq 1`
361  }
362fi # as_fn_arith
363
364
365# as_fn_error ERROR [LINENO LOG_FD]
366# ---------------------------------
367# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
368# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
369# script with status $?, using 1 if that was 0.
370as_fn_error ()
371{
372  as_status=$?; test $as_status -eq 0 && as_status=1
373  if test "$3"; then
374    as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
375    $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
376  fi
377  $as_echo "$as_me: error: $1" >&2
378  as_fn_exit $as_status
379} # as_fn_error
380
381if expr a : '\(a\)' >/dev/null 2>&1 &&
382   test "X`expr 00001 : '.*\(...\)'`" = X001; then
383  as_expr=expr
384else
385  as_expr=false
386fi
387
388if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
389  as_basename=basename
390else
391  as_basename=false
392fi
393
394if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
395  as_dirname=dirname
396else
397  as_dirname=false
398fi
399
400as_me=`$as_basename -- "$0" ||
401$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
402	 X"$0" : 'X\(//\)$' \| \
403	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
404$as_echo X/"$0" |
405    sed '/^.*\/\([^/][^/]*\)\/*$/{
406	    s//\1/
407	    q
408	  }
409	  /^X\/\(\/\/\)$/{
410	    s//\1/
411	    q
412	  }
413	  /^X\/\(\/\).*/{
414	    s//\1/
415	    q
416	  }
417	  s/.*/./; q'`
418
419# Avoid depending upon Character Ranges.
420as_cr_letters='abcdefghijklmnopqrstuvwxyz'
421as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
422as_cr_Letters=$as_cr_letters$as_cr_LETTERS
423as_cr_digits='0123456789'
424as_cr_alnum=$as_cr_Letters$as_cr_digits
425
426
427  as_lineno_1=$LINENO as_lineno_1a=$LINENO
428  as_lineno_2=$LINENO as_lineno_2a=$LINENO
429  eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
430  test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
431  # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
432  sed -n '
433    p
434    /[$]LINENO/=
435  ' <$as_myself |
436    sed '
437      s/[$]LINENO.*/&-/
438      t lineno
439      b
440      :lineno
441      N
442      :loop
443      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
444      t loop
445      s/-\n.*//
446    ' >$as_me.lineno &&
447  chmod +x "$as_me.lineno" ||
448    { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
449
450  # Don't try to exec as it changes $[0], causing all sort of problems
451  # (the dirname of $[0] is not the place where we might find the
452  # original and so on.  Autoconf is especially sensitive to this).
453  . "./$as_me.lineno"
454  # Exit status is that of the last command.
455  exit
456}
457
458ECHO_C= ECHO_N= ECHO_T=
459case `echo -n x` in #(((((
460-n*)
461  case `echo 'xy\c'` in
462  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
463  xy)  ECHO_C='\c';;
464  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
465       ECHO_T='	';;
466  esac;;
467*)
468  ECHO_N='-n';;
469esac
470
471rm -f conf$$ conf$$.exe conf$$.file
472if test -d conf$$.dir; then
473  rm -f conf$$.dir/conf$$.file
474else
475  rm -f conf$$.dir
476  mkdir conf$$.dir 2>/dev/null
477fi
478if (echo >conf$$.file) 2>/dev/null; then
479  if ln -s conf$$.file conf$$ 2>/dev/null; then
480    as_ln_s='ln -s'
481    # ... but there are two gotchas:
482    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
483    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
484    # In both cases, we have to default to `cp -p'.
485    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
486      as_ln_s='cp -p'
487  elif ln conf$$.file conf$$ 2>/dev/null; then
488    as_ln_s=ln
489  else
490    as_ln_s='cp -p'
491  fi
492else
493  as_ln_s='cp -p'
494fi
495rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
496rmdir conf$$.dir 2>/dev/null
497
498if mkdir -p . 2>/dev/null; then
499  as_mkdir_p='mkdir -p "$as_dir"'
500else
501  test -d ./-p && rmdir ./-p
502  as_mkdir_p=false
503fi
504
505if test -x / >/dev/null 2>&1; then
506  as_test_x='test -x'
507else
508  if ls -dL / >/dev/null 2>&1; then
509    as_ls_L_option=L
510  else
511    as_ls_L_option=
512  fi
513  as_test_x='
514    eval sh -c '\''
515      if test -d "$1"; then
516	test -d "$1/.";
517      else
518	case $1 in #(
519	-*)set "./$1";;
520	esac;
521	case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
522	???[sx]*):;;*)false;;esac;fi
523    '\'' sh
524  '
525fi
526as_executable_p=$as_test_x
527
528# Sed expression to map a string onto a valid CPP name.
529as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
530
531# Sed expression to map a string onto a valid variable name.
532as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
533
534SHELL=${CONFIG_SHELL-/bin/sh}
535
536
537exec 7<&0 </dev/null 6>&1
538
539# Name of the host.
540# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
541# so uname gets run too.
542ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
543
544#
545# Initializations.
546#
547ac_default_prefix=/usr/local
548ac_clean_files=
549ac_config_libobj_dir=.
550LIBOBJS=
551cross_compiling=no
552subdirs=
553MFLAGS=
554MAKEFLAGS=
555
556# Identity of this package.
557PACKAGE_NAME='LTO plugin for ld'
558PACKAGE_TARNAME='lto-plugin'
559PACKAGE_VERSION='0.1'
560PACKAGE_STRING='LTO plugin for ld 0.1'
561PACKAGE_BUGREPORT=''
562PACKAGE_URL=''
563
564# Factoring default headers for most tests.
565ac_includes_default="\
566#include <stdio.h>
567#ifdef HAVE_SYS_TYPES_H
568# include <sys/types.h>
569#endif
570#ifdef HAVE_SYS_STAT_H
571# include <sys/stat.h>
572#endif
573#ifdef STDC_HEADERS
574# include <stdlib.h>
575# include <stddef.h>
576#else
577# ifdef HAVE_STDLIB_H
578#  include <stdlib.h>
579# endif
580#endif
581#ifdef HAVE_STRING_H
582# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
583#  include <memory.h>
584# endif
585# include <string.h>
586#endif
587#ifdef HAVE_STRINGS_H
588# include <strings.h>
589#endif
590#ifdef HAVE_INTTYPES_H
591# include <inttypes.h>
592#endif
593#ifdef HAVE_STDINT_H
594# include <stdint.h>
595#endif
596#ifdef HAVE_UNISTD_H
597# include <unistd.h>
598#endif"
599
600ac_subst_vars='am__EXEEXT_FALSE
601am__EXEEXT_TRUE
602LTLIBOBJS
603LIBOBJS
604target_noncanonical
605lt_host_flags
606CPP
607OTOOL64
608OTOOL
609LIPO
610NMEDIT
611DSYMUTIL
612RANLIB
613AR
614OBJDUMP
615LN_S
616NM
617ac_ct_DUMPBIN
618DUMPBIN
619LD
620FGREP
621EGREP
622GREP
623SED
624LIBTOOL
625real_target_noncanonical
626accel_dir_suffix
627gcc_build_dir
628ac_lto_plugin_ldflags
629ac_lto_plugin_warn_cflags
630am__fastdepCC_FALSE
631am__fastdepCC_TRUE
632CCDEPMODE
633AMDEPBACKSLASH
634AMDEP_FALSE
635AMDEP_TRUE
636am__quote
637am__include
638DEPDIR
639OBJEXT
640EXEEXT
641ac_ct_CC
642CPPFLAGS
643LDFLAGS
644CFLAGS
645CC
646with_libiberty
647MAINT
648MAINTAINER_MODE_FALSE
649MAINTAINER_MODE_TRUE
650am__untar
651am__tar
652AMTAR
653am__leading_dot
654SET_MAKE
655AWK
656mkdir_p
657MKDIR_P
658INSTALL_STRIP_PROGRAM
659STRIP
660install_sh
661MAKEINFO
662AUTOHEADER
663AUTOMAKE
664AUTOCONF
665ACLOCAL
666VERSION
667PACKAGE
668CYGPATH_W
669am__isrc
670INSTALL_DATA
671INSTALL_SCRIPT
672INSTALL_PROGRAM
673target_subdir
674host_subdir
675build_subdir
676build_libsubdir
677target_os
678target_vendor
679target_cpu
680target
681host_os
682host_vendor
683host_cpu
684host
685build_os
686build_vendor
687build_cpu
688build
689target_alias
690host_alias
691build_alias
692LIBS
693ECHO_T
694ECHO_N
695ECHO_C
696DEFS
697mandir
698localedir
699libdir
700psdir
701pdfdir
702dvidir
703htmldir
704infodir
705docdir
706oldincludedir
707includedir
708localstatedir
709sharedstatedir
710sysconfdir
711datadir
712datarootdir
713libexecdir
714sbindir
715bindir
716program_transform_name
717prefix
718exec_prefix
719PACKAGE_URL
720PACKAGE_BUGREPORT
721PACKAGE_STRING
722PACKAGE_VERSION
723PACKAGE_TARNAME
724PACKAGE_NAME
725PATH_SEPARATOR
726SHELL'
727ac_subst_files=''
728ac_user_opts='
729enable_option_checking
730with_build_libsubdir
731enable_maintainer_mode
732with_libiberty
733enable_dependency_tracking
734enable_largefile
735enable_shared
736enable_static
737with_pic
738enable_fast_install
739with_gnu_ld
740enable_libtool_lock
741'
742      ac_precious_vars='build_alias
743host_alias
744target_alias
745CC
746CFLAGS
747LDFLAGS
748LIBS
749CPPFLAGS
750CPP'
751
752
753# Initialize some variables set by options.
754ac_init_help=
755ac_init_version=false
756ac_unrecognized_opts=
757ac_unrecognized_sep=
758# The variables have the same names as the options, with
759# dashes changed to underlines.
760cache_file=/dev/null
761exec_prefix=NONE
762no_create=
763no_recursion=
764prefix=NONE
765program_prefix=NONE
766program_suffix=NONE
767program_transform_name=s,x,x,
768silent=
769site=
770srcdir=
771verbose=
772x_includes=NONE
773x_libraries=NONE
774
775# Installation directory options.
776# These are left unexpanded so users can "make install exec_prefix=/foo"
777# and all the variables that are supposed to be based on exec_prefix
778# by default will actually change.
779# Use braces instead of parens because sh, perl, etc. also accept them.
780# (The list follows the same order as the GNU Coding Standards.)
781bindir='${exec_prefix}/bin'
782sbindir='${exec_prefix}/sbin'
783libexecdir='${exec_prefix}/libexec'
784datarootdir='${prefix}/share'
785datadir='${datarootdir}'
786sysconfdir='${prefix}/etc'
787sharedstatedir='${prefix}/com'
788localstatedir='${prefix}/var'
789includedir='${prefix}/include'
790oldincludedir='/usr/include'
791docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
792infodir='${datarootdir}/info'
793htmldir='${docdir}'
794dvidir='${docdir}'
795pdfdir='${docdir}'
796psdir='${docdir}'
797libdir='${exec_prefix}/lib'
798localedir='${datarootdir}/locale'
799mandir='${datarootdir}/man'
800
801ac_prev=
802ac_dashdash=
803for ac_option
804do
805  # If the previous option needs an argument, assign it.
806  if test -n "$ac_prev"; then
807    eval $ac_prev=\$ac_option
808    ac_prev=
809    continue
810  fi
811
812  case $ac_option in
813  *=*)	ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
814  *)	ac_optarg=yes ;;
815  esac
816
817  # Accept the important Cygnus configure options, so we can diagnose typos.
818
819  case $ac_dashdash$ac_option in
820  --)
821    ac_dashdash=yes ;;
822
823  -bindir | --bindir | --bindi | --bind | --bin | --bi)
824    ac_prev=bindir ;;
825  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
826    bindir=$ac_optarg ;;
827
828  -build | --build | --buil | --bui | --bu)
829    ac_prev=build_alias ;;
830  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
831    build_alias=$ac_optarg ;;
832
833  -cache-file | --cache-file | --cache-fil | --cache-fi \
834  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
835    ac_prev=cache_file ;;
836  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
837  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
838    cache_file=$ac_optarg ;;
839
840  --config-cache | -C)
841    cache_file=config.cache ;;
842
843  -datadir | --datadir | --datadi | --datad)
844    ac_prev=datadir ;;
845  -datadir=* | --datadir=* | --datadi=* | --datad=*)
846    datadir=$ac_optarg ;;
847
848  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
849  | --dataroo | --dataro | --datar)
850    ac_prev=datarootdir ;;
851  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
852  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
853    datarootdir=$ac_optarg ;;
854
855  -disable-* | --disable-*)
856    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
857    # Reject names that are not valid shell variable names.
858    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
859      as_fn_error "invalid feature name: $ac_useropt"
860    ac_useropt_orig=$ac_useropt
861    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
862    case $ac_user_opts in
863      *"
864"enable_$ac_useropt"
865"*) ;;
866      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
867	 ac_unrecognized_sep=', ';;
868    esac
869    eval enable_$ac_useropt=no ;;
870
871  -docdir | --docdir | --docdi | --doc | --do)
872    ac_prev=docdir ;;
873  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
874    docdir=$ac_optarg ;;
875
876  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
877    ac_prev=dvidir ;;
878  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
879    dvidir=$ac_optarg ;;
880
881  -enable-* | --enable-*)
882    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
883    # Reject names that are not valid shell variable names.
884    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
885      as_fn_error "invalid feature name: $ac_useropt"
886    ac_useropt_orig=$ac_useropt
887    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
888    case $ac_user_opts in
889      *"
890"enable_$ac_useropt"
891"*) ;;
892      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
893	 ac_unrecognized_sep=', ';;
894    esac
895    eval enable_$ac_useropt=\$ac_optarg ;;
896
897  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
898  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
899  | --exec | --exe | --ex)
900    ac_prev=exec_prefix ;;
901  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
902  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
903  | --exec=* | --exe=* | --ex=*)
904    exec_prefix=$ac_optarg ;;
905
906  -gas | --gas | --ga | --g)
907    # Obsolete; use --with-gas.
908    with_gas=yes ;;
909
910  -help | --help | --hel | --he | -h)
911    ac_init_help=long ;;
912  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
913    ac_init_help=recursive ;;
914  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
915    ac_init_help=short ;;
916
917  -host | --host | --hos | --ho)
918    ac_prev=host_alias ;;
919  -host=* | --host=* | --hos=* | --ho=*)
920    host_alias=$ac_optarg ;;
921
922  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
923    ac_prev=htmldir ;;
924  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
925  | --ht=*)
926    htmldir=$ac_optarg ;;
927
928  -includedir | --includedir | --includedi | --included | --include \
929  | --includ | --inclu | --incl | --inc)
930    ac_prev=includedir ;;
931  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
932  | --includ=* | --inclu=* | --incl=* | --inc=*)
933    includedir=$ac_optarg ;;
934
935  -infodir | --infodir | --infodi | --infod | --info | --inf)
936    ac_prev=infodir ;;
937  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
938    infodir=$ac_optarg ;;
939
940  -libdir | --libdir | --libdi | --libd)
941    ac_prev=libdir ;;
942  -libdir=* | --libdir=* | --libdi=* | --libd=*)
943    libdir=$ac_optarg ;;
944
945  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
946  | --libexe | --libex | --libe)
947    ac_prev=libexecdir ;;
948  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
949  | --libexe=* | --libex=* | --libe=*)
950    libexecdir=$ac_optarg ;;
951
952  -localedir | --localedir | --localedi | --localed | --locale)
953    ac_prev=localedir ;;
954  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
955    localedir=$ac_optarg ;;
956
957  -localstatedir | --localstatedir | --localstatedi | --localstated \
958  | --localstate | --localstat | --localsta | --localst | --locals)
959    ac_prev=localstatedir ;;
960  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
961  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
962    localstatedir=$ac_optarg ;;
963
964  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
965    ac_prev=mandir ;;
966  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
967    mandir=$ac_optarg ;;
968
969  -nfp | --nfp | --nf)
970    # Obsolete; use --without-fp.
971    with_fp=no ;;
972
973  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
974  | --no-cr | --no-c | -n)
975    no_create=yes ;;
976
977  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
978  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
979    no_recursion=yes ;;
980
981  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
982  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
983  | --oldin | --oldi | --old | --ol | --o)
984    ac_prev=oldincludedir ;;
985  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
986  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
987  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
988    oldincludedir=$ac_optarg ;;
989
990  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
991    ac_prev=prefix ;;
992  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
993    prefix=$ac_optarg ;;
994
995  -program-prefix | --program-prefix | --program-prefi | --program-pref \
996  | --program-pre | --program-pr | --program-p)
997    ac_prev=program_prefix ;;
998  -program-prefix=* | --program-prefix=* | --program-prefi=* \
999  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1000    program_prefix=$ac_optarg ;;
1001
1002  -program-suffix | --program-suffix | --program-suffi | --program-suff \
1003  | --program-suf | --program-su | --program-s)
1004    ac_prev=program_suffix ;;
1005  -program-suffix=* | --program-suffix=* | --program-suffi=* \
1006  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1007    program_suffix=$ac_optarg ;;
1008
1009  -program-transform-name | --program-transform-name \
1010  | --program-transform-nam | --program-transform-na \
1011  | --program-transform-n | --program-transform- \
1012  | --program-transform | --program-transfor \
1013  | --program-transfo | --program-transf \
1014  | --program-trans | --program-tran \
1015  | --progr-tra | --program-tr | --program-t)
1016    ac_prev=program_transform_name ;;
1017  -program-transform-name=* | --program-transform-name=* \
1018  | --program-transform-nam=* | --program-transform-na=* \
1019  | --program-transform-n=* | --program-transform-=* \
1020  | --program-transform=* | --program-transfor=* \
1021  | --program-transfo=* | --program-transf=* \
1022  | --program-trans=* | --program-tran=* \
1023  | --progr-tra=* | --program-tr=* | --program-t=*)
1024    program_transform_name=$ac_optarg ;;
1025
1026  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1027    ac_prev=pdfdir ;;
1028  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1029    pdfdir=$ac_optarg ;;
1030
1031  -psdir | --psdir | --psdi | --psd | --ps)
1032    ac_prev=psdir ;;
1033  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1034    psdir=$ac_optarg ;;
1035
1036  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1037  | -silent | --silent | --silen | --sile | --sil)
1038    silent=yes ;;
1039
1040  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1041    ac_prev=sbindir ;;
1042  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1043  | --sbi=* | --sb=*)
1044    sbindir=$ac_optarg ;;
1045
1046  -sharedstatedir | --sharedstatedir | --sharedstatedi \
1047  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1048  | --sharedst | --shareds | --shared | --share | --shar \
1049  | --sha | --sh)
1050    ac_prev=sharedstatedir ;;
1051  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1052  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1053  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1054  | --sha=* | --sh=*)
1055    sharedstatedir=$ac_optarg ;;
1056
1057  -site | --site | --sit)
1058    ac_prev=site ;;
1059  -site=* | --site=* | --sit=*)
1060    site=$ac_optarg ;;
1061
1062  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1063    ac_prev=srcdir ;;
1064  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1065    srcdir=$ac_optarg ;;
1066
1067  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1068  | --syscon | --sysco | --sysc | --sys | --sy)
1069    ac_prev=sysconfdir ;;
1070  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1071  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1072    sysconfdir=$ac_optarg ;;
1073
1074  -target | --target | --targe | --targ | --tar | --ta | --t)
1075    ac_prev=target_alias ;;
1076  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1077    target_alias=$ac_optarg ;;
1078
1079  -v | -verbose | --verbose | --verbos | --verbo | --verb)
1080    verbose=yes ;;
1081
1082  -version | --version | --versio | --versi | --vers | -V)
1083    ac_init_version=: ;;
1084
1085  -with-* | --with-*)
1086    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1087    # Reject names that are not valid shell variable names.
1088    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1089      as_fn_error "invalid package name: $ac_useropt"
1090    ac_useropt_orig=$ac_useropt
1091    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1092    case $ac_user_opts in
1093      *"
1094"with_$ac_useropt"
1095"*) ;;
1096      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1097	 ac_unrecognized_sep=', ';;
1098    esac
1099    eval with_$ac_useropt=\$ac_optarg ;;
1100
1101  -without-* | --without-*)
1102    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1103    # Reject names that are not valid shell variable names.
1104    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1105      as_fn_error "invalid package name: $ac_useropt"
1106    ac_useropt_orig=$ac_useropt
1107    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1108    case $ac_user_opts in
1109      *"
1110"with_$ac_useropt"
1111"*) ;;
1112      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1113	 ac_unrecognized_sep=', ';;
1114    esac
1115    eval with_$ac_useropt=no ;;
1116
1117  --x)
1118    # Obsolete; use --with-x.
1119    with_x=yes ;;
1120
1121  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1122  | --x-incl | --x-inc | --x-in | --x-i)
1123    ac_prev=x_includes ;;
1124  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1125  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1126    x_includes=$ac_optarg ;;
1127
1128  -x-libraries | --x-libraries | --x-librarie | --x-librari \
1129  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1130    ac_prev=x_libraries ;;
1131  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1132  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1133    x_libraries=$ac_optarg ;;
1134
1135  -*) as_fn_error "unrecognized option: \`$ac_option'
1136Try \`$0 --help' for more information."
1137    ;;
1138
1139  *=*)
1140    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1141    # Reject names that are not valid shell variable names.
1142    case $ac_envvar in #(
1143      '' | [0-9]* | *[!_$as_cr_alnum]* )
1144      as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1145    esac
1146    eval $ac_envvar=\$ac_optarg
1147    export $ac_envvar ;;
1148
1149  *)
1150    # FIXME: should be removed in autoconf 3.0.
1151    $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1152    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1153      $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1154    : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1155    ;;
1156
1157  esac
1158done
1159
1160if test -n "$ac_prev"; then
1161  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1162  as_fn_error "missing argument to $ac_option"
1163fi
1164
1165if test -n "$ac_unrecognized_opts"; then
1166  case $enable_option_checking in
1167    no) ;;
1168    fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1169    *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1170  esac
1171fi
1172
1173# Check all directory arguments for consistency.
1174for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
1175		datadir sysconfdir sharedstatedir localstatedir includedir \
1176		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1177		libdir localedir mandir
1178do
1179  eval ac_val=\$$ac_var
1180  # Remove trailing slashes.
1181  case $ac_val in
1182    */ )
1183      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1184      eval $ac_var=\$ac_val;;
1185  esac
1186  # Be sure to have absolute directory names.
1187  case $ac_val in
1188    [\\/$]* | ?:[\\/]* )  continue;;
1189    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1190  esac
1191  as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1192done
1193
1194# There might be people who depend on the old broken behavior: `$host'
1195# used to hold the argument of --host etc.
1196# FIXME: To remove some day.
1197build=$build_alias
1198host=$host_alias
1199target=$target_alias
1200
1201# FIXME: To remove some day.
1202if test "x$host_alias" != x; then
1203  if test "x$build_alias" = x; then
1204    cross_compiling=maybe
1205    $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1206    If a cross compiler is detected then cross compile mode will be used." >&2
1207  elif test "x$build_alias" != "x$host_alias"; then
1208    cross_compiling=yes
1209  fi
1210fi
1211
1212ac_tool_prefix=
1213test -n "$host_alias" && ac_tool_prefix=$host_alias-
1214
1215test "$silent" = yes && exec 6>/dev/null
1216
1217
1218ac_pwd=`pwd` && test -n "$ac_pwd" &&
1219ac_ls_di=`ls -di .` &&
1220ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1221  as_fn_error "working directory cannot be determined"
1222test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1223  as_fn_error "pwd does not report name of working directory"
1224
1225
1226# Find the source files, if location was not specified.
1227if test -z "$srcdir"; then
1228  ac_srcdir_defaulted=yes
1229  # Try the directory containing this script, then the parent directory.
1230  ac_confdir=`$as_dirname -- "$as_myself" ||
1231$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1232	 X"$as_myself" : 'X\(//\)[^/]' \| \
1233	 X"$as_myself" : 'X\(//\)$' \| \
1234	 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1235$as_echo X"$as_myself" |
1236    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1237	    s//\1/
1238	    q
1239	  }
1240	  /^X\(\/\/\)[^/].*/{
1241	    s//\1/
1242	    q
1243	  }
1244	  /^X\(\/\/\)$/{
1245	    s//\1/
1246	    q
1247	  }
1248	  /^X\(\/\).*/{
1249	    s//\1/
1250	    q
1251	  }
1252	  s/.*/./; q'`
1253  srcdir=$ac_confdir
1254  if test ! -r "$srcdir/$ac_unique_file"; then
1255    srcdir=..
1256  fi
1257else
1258  ac_srcdir_defaulted=no
1259fi
1260if test ! -r "$srcdir/$ac_unique_file"; then
1261  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1262  as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1263fi
1264ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1265ac_abs_confdir=`(
1266	cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1267	pwd)`
1268# When building in place, set srcdir=.
1269if test "$ac_abs_confdir" = "$ac_pwd"; then
1270  srcdir=.
1271fi
1272# Remove unnecessary trailing slashes from srcdir.
1273# Double slashes in file names in object file debugging info
1274# mess up M-x gdb in Emacs.
1275case $srcdir in
1276*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1277esac
1278for ac_var in $ac_precious_vars; do
1279  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1280  eval ac_env_${ac_var}_value=\$${ac_var}
1281  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1282  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1283done
1284
1285#
1286# Report the --help message.
1287#
1288if test "$ac_init_help" = "long"; then
1289  # Omit some internal or obsolete options to make the list less imposing.
1290  # This message is too long to be a string in the A/UX 3.1 sh.
1291  cat <<_ACEOF
1292\`configure' configures LTO plugin for ld 0.1 to adapt to many kinds of systems.
1293
1294Usage: $0 [OPTION]... [VAR=VALUE]...
1295
1296To assign environment variables (e.g., CC, CFLAGS...), specify them as
1297VAR=VALUE.  See below for descriptions of some of the useful variables.
1298
1299Defaults for the options are specified in brackets.
1300
1301Configuration:
1302  -h, --help              display this help and exit
1303      --help=short        display options specific to this package
1304      --help=recursive    display the short help of all the included packages
1305  -V, --version           display version information and exit
1306  -q, --quiet, --silent   do not print \`checking...' messages
1307      --cache-file=FILE   cache test results in FILE [disabled]
1308  -C, --config-cache      alias for \`--cache-file=config.cache'
1309  -n, --no-create         do not create output files
1310      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1311
1312Installation directories:
1313  --prefix=PREFIX         install architecture-independent files in PREFIX
1314                          [$ac_default_prefix]
1315  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1316                          [PREFIX]
1317
1318By default, \`make install' will install all the files in
1319\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1320an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1321for instance \`--prefix=\$HOME'.
1322
1323For better control, use the options below.
1324
1325Fine tuning of the installation directories:
1326  --bindir=DIR            user executables [EPREFIX/bin]
1327  --sbindir=DIR           system admin executables [EPREFIX/sbin]
1328  --libexecdir=DIR        program executables [EPREFIX/libexec]
1329  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1330  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1331  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1332  --libdir=DIR            object code libraries [EPREFIX/lib]
1333  --includedir=DIR        C header files [PREFIX/include]
1334  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1335  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1336  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1337  --infodir=DIR           info documentation [DATAROOTDIR/info]
1338  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1339  --mandir=DIR            man documentation [DATAROOTDIR/man]
1340  --docdir=DIR            documentation root [DATAROOTDIR/doc/lto-plugin]
1341  --htmldir=DIR           html documentation [DOCDIR]
1342  --dvidir=DIR            dvi documentation [DOCDIR]
1343  --pdfdir=DIR            pdf documentation [DOCDIR]
1344  --psdir=DIR             ps documentation [DOCDIR]
1345_ACEOF
1346
1347  cat <<\_ACEOF
1348
1349Program names:
1350  --program-prefix=PREFIX            prepend PREFIX to installed program names
1351  --program-suffix=SUFFIX            append SUFFIX to installed program names
1352  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1353
1354System types:
1355  --build=BUILD     configure for building on BUILD [guessed]
1356  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1357  --target=TARGET   configure for building compilers for TARGET [HOST]
1358_ACEOF
1359fi
1360
1361if test -n "$ac_init_help"; then
1362  case $ac_init_help in
1363     short | recursive ) echo "Configuration of LTO plugin for ld 0.1:";;
1364   esac
1365  cat <<\_ACEOF
1366
1367Optional Features:
1368  --disable-option-checking  ignore unrecognized --enable/--with options
1369  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1370  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1371  --enable-maintainer-mode  enable make rules and dependencies not useful
1372			  (and sometimes confusing) to the casual installer
1373  --disable-dependency-tracking  speeds up one-time build
1374  --enable-dependency-tracking   do not reject slow dependency extractors
1375  --disable-largefile     omit support for large files
1376  --enable-shared[=PKGS]  build shared libraries [default=yes]
1377  --enable-static[=PKGS]  build static libraries [default=yes]
1378  --enable-fast-install[=PKGS]
1379                          optimize for fast installation [default=yes]
1380  --disable-libtool-lock  avoid locking (might break parallel builds)
1381
1382Optional Packages:
1383  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1384  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1385  --with-build-libsubdir=DIR  Directory where to find libraries for build system
1386  --with-libiberty=PATH   specify the directory where to find libiberty
1387                          [../libiberty]
1388  --with-pic              try to use only PIC/non-PIC objects [default=use
1389                          both]
1390  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1391
1392Some influential environment variables:
1393  CC          C compiler command
1394  CFLAGS      C compiler flags
1395  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1396              nonstandard directory <lib dir>
1397  LIBS        libraries to pass to the linker, e.g. -l<library>
1398  CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1399              you have headers in a nonstandard directory <include dir>
1400  CPP         C preprocessor
1401
1402Use these variables to override the choices made by `configure' or to help
1403it to find libraries and programs with nonstandard names/locations.
1404
1405Report bugs to the package provider.
1406_ACEOF
1407ac_status=$?
1408fi
1409
1410if test "$ac_init_help" = "recursive"; then
1411  # If there are subdirs, report their specific --help.
1412  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1413    test -d "$ac_dir" ||
1414      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1415      continue
1416    ac_builddir=.
1417
1418case "$ac_dir" in
1419.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1420*)
1421  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1422  # A ".." for each directory in $ac_dir_suffix.
1423  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1424  case $ac_top_builddir_sub in
1425  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1426  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1427  esac ;;
1428esac
1429ac_abs_top_builddir=$ac_pwd
1430ac_abs_builddir=$ac_pwd$ac_dir_suffix
1431# for backward compatibility:
1432ac_top_builddir=$ac_top_build_prefix
1433
1434case $srcdir in
1435  .)  # We are building in place.
1436    ac_srcdir=.
1437    ac_top_srcdir=$ac_top_builddir_sub
1438    ac_abs_top_srcdir=$ac_pwd ;;
1439  [\\/]* | ?:[\\/]* )  # Absolute name.
1440    ac_srcdir=$srcdir$ac_dir_suffix;
1441    ac_top_srcdir=$srcdir
1442    ac_abs_top_srcdir=$srcdir ;;
1443  *) # Relative name.
1444    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1445    ac_top_srcdir=$ac_top_build_prefix$srcdir
1446    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1447esac
1448ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1449
1450    cd "$ac_dir" || { ac_status=$?; continue; }
1451    # Check for guested configure.
1452    if test -f "$ac_srcdir/configure.gnu"; then
1453      echo &&
1454      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1455    elif test -f "$ac_srcdir/configure"; then
1456      echo &&
1457      $SHELL "$ac_srcdir/configure" --help=recursive
1458    else
1459      $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1460    fi || ac_status=$?
1461    cd "$ac_pwd" || { ac_status=$?; break; }
1462  done
1463fi
1464
1465test -n "$ac_init_help" && exit $ac_status
1466if $ac_init_version; then
1467  cat <<\_ACEOF
1468LTO plugin for ld configure 0.1
1469generated by GNU Autoconf 2.64
1470
1471Copyright (C) 2009 Free Software Foundation, Inc.
1472This configure script is free software; the Free Software Foundation
1473gives unlimited permission to copy, distribute and modify it.
1474_ACEOF
1475  exit
1476fi
1477
1478## ------------------------ ##
1479## Autoconf initialization. ##
1480## ------------------------ ##
1481
1482# ac_fn_c_try_compile LINENO
1483# --------------------------
1484# Try to compile conftest.$ac_ext, and return whether this succeeded.
1485ac_fn_c_try_compile ()
1486{
1487  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1488  rm -f conftest.$ac_objext
1489  if { { ac_try="$ac_compile"
1490case "(($ac_try" in
1491  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1492  *) ac_try_echo=$ac_try;;
1493esac
1494eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1495$as_echo "$ac_try_echo"; } >&5
1496  (eval "$ac_compile") 2>conftest.err
1497  ac_status=$?
1498  if test -s conftest.err; then
1499    grep -v '^ *+' conftest.err >conftest.er1
1500    cat conftest.er1 >&5
1501    mv -f conftest.er1 conftest.err
1502  fi
1503  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1504  test $ac_status = 0; } && {
1505	 test -z "$ac_c_werror_flag" ||
1506	 test ! -s conftest.err
1507       } && test -s conftest.$ac_objext; then :
1508  ac_retval=0
1509else
1510  $as_echo "$as_me: failed program was:" >&5
1511sed 's/^/| /' conftest.$ac_ext >&5
1512
1513	ac_retval=1
1514fi
1515  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1516  return $ac_retval
1517
1518} # ac_fn_c_try_compile
1519
1520# ac_fn_c_try_link LINENO
1521# -----------------------
1522# Try to link conftest.$ac_ext, and return whether this succeeded.
1523ac_fn_c_try_link ()
1524{
1525  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1526  rm -f conftest.$ac_objext conftest$ac_exeext
1527  if { { ac_try="$ac_link"
1528case "(($ac_try" in
1529  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1530  *) ac_try_echo=$ac_try;;
1531esac
1532eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1533$as_echo "$ac_try_echo"; } >&5
1534  (eval "$ac_link") 2>conftest.err
1535  ac_status=$?
1536  if test -s conftest.err; then
1537    grep -v '^ *+' conftest.err >conftest.er1
1538    cat conftest.er1 >&5
1539    mv -f conftest.er1 conftest.err
1540  fi
1541  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1542  test $ac_status = 0; } && {
1543	 test -z "$ac_c_werror_flag" ||
1544	 test ! -s conftest.err
1545       } && test -s conftest$ac_exeext && {
1546	 test "$cross_compiling" = yes ||
1547	 $as_test_x conftest$ac_exeext
1548       }; then :
1549  ac_retval=0
1550else
1551  $as_echo "$as_me: failed program was:" >&5
1552sed 's/^/| /' conftest.$ac_ext >&5
1553
1554	ac_retval=1
1555fi
1556  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1557  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1558  # interfere with the next link command; also delete a directory that is
1559  # left behind by Apple's compiler.  We do this before executing the actions.
1560  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1561  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1562  return $ac_retval
1563
1564} # ac_fn_c_try_link
1565
1566# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1567# -------------------------------------------------------
1568# Tests whether HEADER exists and can be compiled using the include files in
1569# INCLUDES, setting the cache variable VAR accordingly.
1570ac_fn_c_check_header_compile ()
1571{
1572  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1573  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1574$as_echo_n "checking for $2... " >&6; }
1575if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1576  $as_echo_n "(cached) " >&6
1577else
1578  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1579/* end confdefs.h.  */
1580$4
1581#include <$2>
1582_ACEOF
1583if ac_fn_c_try_compile "$LINENO"; then :
1584  eval "$3=yes"
1585else
1586  eval "$3=no"
1587fi
1588rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1589fi
1590eval ac_res=\$$3
1591	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1592$as_echo "$ac_res" >&6; }
1593  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1594
1595} # ac_fn_c_check_header_compile
1596
1597# ac_fn_c_try_cpp LINENO
1598# ----------------------
1599# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1600ac_fn_c_try_cpp ()
1601{
1602  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1603  if { { ac_try="$ac_cpp conftest.$ac_ext"
1604case "(($ac_try" in
1605  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1606  *) ac_try_echo=$ac_try;;
1607esac
1608eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1609$as_echo "$ac_try_echo"; } >&5
1610  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1611  ac_status=$?
1612  if test -s conftest.err; then
1613    grep -v '^ *+' conftest.err >conftest.er1
1614    cat conftest.er1 >&5
1615    mv -f conftest.er1 conftest.err
1616  fi
1617  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1618  test $ac_status = 0; } >/dev/null && {
1619	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1620	 test ! -s conftest.err
1621       }; then :
1622  ac_retval=0
1623else
1624  $as_echo "$as_me: failed program was:" >&5
1625sed 's/^/| /' conftest.$ac_ext >&5
1626
1627    ac_retval=1
1628fi
1629  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1630  return $ac_retval
1631
1632} # ac_fn_c_try_cpp
1633
1634# ac_fn_c_try_run LINENO
1635# ----------------------
1636# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1637# that executables *can* be run.
1638ac_fn_c_try_run ()
1639{
1640  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1641  if { { ac_try="$ac_link"
1642case "(($ac_try" in
1643  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1644  *) ac_try_echo=$ac_try;;
1645esac
1646eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1647$as_echo "$ac_try_echo"; } >&5
1648  (eval "$ac_link") 2>&5
1649  ac_status=$?
1650  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1651  test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1652  { { case "(($ac_try" in
1653  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1654  *) ac_try_echo=$ac_try;;
1655esac
1656eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1657$as_echo "$ac_try_echo"; } >&5
1658  (eval "$ac_try") 2>&5
1659  ac_status=$?
1660  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1661  test $ac_status = 0; }; }; then :
1662  ac_retval=0
1663else
1664  $as_echo "$as_me: program exited with status $ac_status" >&5
1665       $as_echo "$as_me: failed program was:" >&5
1666sed 's/^/| /' conftest.$ac_ext >&5
1667
1668       ac_retval=$ac_status
1669fi
1670  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1671  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1672  return $ac_retval
1673
1674} # ac_fn_c_try_run
1675
1676# ac_fn_c_check_func LINENO FUNC VAR
1677# ----------------------------------
1678# Tests whether FUNC exists, setting the cache variable VAR accordingly
1679ac_fn_c_check_func ()
1680{
1681  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1682  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1683$as_echo_n "checking for $2... " >&6; }
1684if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1685  $as_echo_n "(cached) " >&6
1686else
1687  cat 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_find_intX_t LINENO BITS VAR
1744# -----------------------------------
1745# Finds a signed integer type with width BITS, setting cache variable VAR
1746# accordingly.
1747ac_fn_c_find_intX_t ()
1748{
1749  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1750  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int$2_t" >&5
1751$as_echo_n "checking for int$2_t... " >&6; }
1752if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1753  $as_echo_n "(cached) " >&6
1754else
1755  eval "$3=no"
1756     for ac_type in int$2_t 'int' 'long int' \
1757	 'long long int' 'short int' 'signed char'; do
1758       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1759/* end confdefs.h.  */
1760$ac_includes_default
1761int
1762main ()
1763{
1764static int test_array [1 - 2 * !(0 < ($ac_type) (((($ac_type) 1 << ($2 - 2)) - 1) * 2 + 1))];
1765test_array [0] = 0
1766
1767  ;
1768  return 0;
1769}
1770_ACEOF
1771if ac_fn_c_try_compile "$LINENO"; then :
1772  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1773/* end confdefs.h.  */
1774$ac_includes_default
1775int
1776main ()
1777{
1778static int test_array [1 - 2 * !(($ac_type) (((($ac_type) 1 << ($2 - 2)) - 1) * 2 + 1)
1779		 < ($ac_type) (((($ac_type) 1 << ($2 - 2)) - 1) * 2 + 2))];
1780test_array [0] = 0
1781
1782  ;
1783  return 0;
1784}
1785_ACEOF
1786if ac_fn_c_try_compile "$LINENO"; then :
1787
1788else
1789  case $ac_type in #(
1790  int$2_t) :
1791    eval "$3=yes" ;; #(
1792  *) :
1793    eval "$3=\$ac_type" ;;
1794esac
1795fi
1796rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1797fi
1798rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1799       eval as_val=\$$3
1800   if test "x$as_val" = x""no; then :
1801
1802else
1803  break
1804fi
1805     done
1806fi
1807eval ac_res=\$$3
1808	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1809$as_echo "$ac_res" >&6; }
1810  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1811
1812} # ac_fn_c_find_intX_t
1813
1814# ac_fn_c_find_uintX_t LINENO BITS VAR
1815# ------------------------------------
1816# Finds an unsigned integer type with width BITS, setting cache variable VAR
1817# accordingly.
1818ac_fn_c_find_uintX_t ()
1819{
1820  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1821  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint$2_t" >&5
1822$as_echo_n "checking for uint$2_t... " >&6; }
1823if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1824  $as_echo_n "(cached) " >&6
1825else
1826  eval "$3=no"
1827     for ac_type in uint$2_t 'unsigned int' 'unsigned long int' \
1828	 'unsigned long long int' 'unsigned short int' 'unsigned char'; do
1829       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1830/* end confdefs.h.  */
1831$ac_includes_default
1832int
1833main ()
1834{
1835static int test_array [1 - 2 * !(($ac_type) -1 >> ($2 - 1) == 1)];
1836test_array [0] = 0
1837
1838  ;
1839  return 0;
1840}
1841_ACEOF
1842if ac_fn_c_try_compile "$LINENO"; then :
1843  case $ac_type in #(
1844  uint$2_t) :
1845    eval "$3=yes" ;; #(
1846  *) :
1847    eval "$3=\$ac_type" ;;
1848esac
1849fi
1850rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1851       eval as_val=\$$3
1852   if test "x$as_val" = x""no; then :
1853
1854else
1855  break
1856fi
1857     done
1858fi
1859eval ac_res=\$$3
1860	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1861$as_echo "$ac_res" >&6; }
1862  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1863
1864} # ac_fn_c_find_uintX_t
1865cat >config.log <<_ACEOF
1866This file contains any messages produced by compilers while
1867running configure, to aid debugging if configure makes a mistake.
1868
1869It was created by LTO plugin for ld $as_me 0.1, which was
1870generated by GNU Autoconf 2.64.  Invocation command line was
1871
1872  $ $0 $@
1873
1874_ACEOF
1875exec 5>>config.log
1876{
1877cat <<_ASUNAME
1878## --------- ##
1879## Platform. ##
1880## --------- ##
1881
1882hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1883uname -m = `(uname -m) 2>/dev/null || echo unknown`
1884uname -r = `(uname -r) 2>/dev/null || echo unknown`
1885uname -s = `(uname -s) 2>/dev/null || echo unknown`
1886uname -v = `(uname -v) 2>/dev/null || echo unknown`
1887
1888/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1889/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1890
1891/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1892/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1893/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1894/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1895/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1896/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1897/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1898
1899_ASUNAME
1900
1901as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1902for as_dir in $PATH
1903do
1904  IFS=$as_save_IFS
1905  test -z "$as_dir" && as_dir=.
1906    $as_echo "PATH: $as_dir"
1907  done
1908IFS=$as_save_IFS
1909
1910} >&5
1911
1912cat >&5 <<_ACEOF
1913
1914
1915## ----------- ##
1916## Core tests. ##
1917## ----------- ##
1918
1919_ACEOF
1920
1921
1922# Keep a trace of the command line.
1923# Strip out --no-create and --no-recursion so they do not pile up.
1924# Strip out --silent because we don't want to record it for future runs.
1925# Also quote any args containing shell meta-characters.
1926# Make two passes to allow for proper duplicate-argument suppression.
1927ac_configure_args=
1928ac_configure_args0=
1929ac_configure_args1=
1930ac_must_keep_next=false
1931for ac_pass in 1 2
1932do
1933  for ac_arg
1934  do
1935    case $ac_arg in
1936    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1937    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1938    | -silent | --silent | --silen | --sile | --sil)
1939      continue ;;
1940    *\'*)
1941      ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1942    esac
1943    case $ac_pass in
1944    1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1945    2)
1946      as_fn_append ac_configure_args1 " '$ac_arg'"
1947      if test $ac_must_keep_next = true; then
1948	ac_must_keep_next=false # Got value, back to normal.
1949      else
1950	case $ac_arg in
1951	  *=* | --config-cache | -C | -disable-* | --disable-* \
1952	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1953	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1954	  | -with-* | --with-* | -without-* | --without-* | --x)
1955	    case "$ac_configure_args0 " in
1956	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1957	    esac
1958	    ;;
1959	  -* ) ac_must_keep_next=true ;;
1960	esac
1961      fi
1962      as_fn_append ac_configure_args " '$ac_arg'"
1963      ;;
1964    esac
1965  done
1966done
1967{ ac_configure_args0=; unset ac_configure_args0;}
1968{ ac_configure_args1=; unset ac_configure_args1;}
1969
1970# When interrupted or exit'd, cleanup temporary files, and complete
1971# config.log.  We remove comments because anyway the quotes in there
1972# would cause problems or look ugly.
1973# WARNING: Use '\'' to represent an apostrophe within the trap.
1974# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1975trap 'exit_status=$?
1976  # Save into config.log some information that might help in debugging.
1977  {
1978    echo
1979
1980    cat <<\_ASBOX
1981## ---------------- ##
1982## Cache variables. ##
1983## ---------------- ##
1984_ASBOX
1985    echo
1986    # The following way of writing the cache mishandles newlines in values,
1987(
1988  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1989    eval ac_val=\$$ac_var
1990    case $ac_val in #(
1991    *${as_nl}*)
1992      case $ac_var in #(
1993      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
1994$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1995      esac
1996      case $ac_var in #(
1997      _ | IFS | as_nl) ;; #(
1998      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1999      *) { eval $ac_var=; unset $ac_var;} ;;
2000      esac ;;
2001    esac
2002  done
2003  (set) 2>&1 |
2004    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2005    *${as_nl}ac_space=\ *)
2006      sed -n \
2007	"s/'\''/'\''\\\\'\'''\''/g;
2008	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2009      ;; #(
2010    *)
2011      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2012      ;;
2013    esac |
2014    sort
2015)
2016    echo
2017
2018    cat <<\_ASBOX
2019## ----------------- ##
2020## Output variables. ##
2021## ----------------- ##
2022_ASBOX
2023    echo
2024    for ac_var in $ac_subst_vars
2025    do
2026      eval ac_val=\$$ac_var
2027      case $ac_val in
2028      *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2029      esac
2030      $as_echo "$ac_var='\''$ac_val'\''"
2031    done | sort
2032    echo
2033
2034    if test -n "$ac_subst_files"; then
2035      cat <<\_ASBOX
2036## ------------------- ##
2037## File substitutions. ##
2038## ------------------- ##
2039_ASBOX
2040      echo
2041      for ac_var in $ac_subst_files
2042      do
2043	eval ac_val=\$$ac_var
2044	case $ac_val in
2045	*\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2046	esac
2047	$as_echo "$ac_var='\''$ac_val'\''"
2048      done | sort
2049      echo
2050    fi
2051
2052    if test -s confdefs.h; then
2053      cat <<\_ASBOX
2054## ----------- ##
2055## confdefs.h. ##
2056## ----------- ##
2057_ASBOX
2058      echo
2059      cat confdefs.h
2060      echo
2061    fi
2062    test "$ac_signal" != 0 &&
2063      $as_echo "$as_me: caught signal $ac_signal"
2064    $as_echo "$as_me: exit $exit_status"
2065  } >&5
2066  rm -f core *.core core.conftest.* &&
2067    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2068    exit $exit_status
2069' 0
2070for ac_signal in 1 2 13 15; do
2071  trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2072done
2073ac_signal=0
2074
2075# confdefs.h avoids OS command line length limits that DEFS can exceed.
2076rm -f -r conftest* confdefs.h
2077
2078$as_echo "/* confdefs.h */" > confdefs.h
2079
2080# Predefined preprocessor variables.
2081
2082cat >>confdefs.h <<_ACEOF
2083#define PACKAGE_NAME "$PACKAGE_NAME"
2084_ACEOF
2085
2086cat >>confdefs.h <<_ACEOF
2087#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2088_ACEOF
2089
2090cat >>confdefs.h <<_ACEOF
2091#define PACKAGE_VERSION "$PACKAGE_VERSION"
2092_ACEOF
2093
2094cat >>confdefs.h <<_ACEOF
2095#define PACKAGE_STRING "$PACKAGE_STRING"
2096_ACEOF
2097
2098cat >>confdefs.h <<_ACEOF
2099#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2100_ACEOF
2101
2102cat >>confdefs.h <<_ACEOF
2103#define PACKAGE_URL "$PACKAGE_URL"
2104_ACEOF
2105
2106
2107# Let the site file select an alternate cache file if it wants to.
2108# Prefer an explicitly selected file to automatically selected ones.
2109ac_site_file1=NONE
2110ac_site_file2=NONE
2111if test -n "$CONFIG_SITE"; then
2112  ac_site_file1=$CONFIG_SITE
2113elif test "x$prefix" != xNONE; then
2114  ac_site_file1=$prefix/share/config.site
2115  ac_site_file2=$prefix/etc/config.site
2116else
2117  ac_site_file1=$ac_default_prefix/share/config.site
2118  ac_site_file2=$ac_default_prefix/etc/config.site
2119fi
2120for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2121do
2122  test "x$ac_site_file" = xNONE && continue
2123  if test -r "$ac_site_file"; then
2124    { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2125$as_echo "$as_me: loading site script $ac_site_file" >&6;}
2126    sed 's/^/| /' "$ac_site_file" >&5
2127    . "$ac_site_file"
2128  fi
2129done
2130
2131if test -r "$cache_file"; then
2132  # Some versions of bash will fail to source /dev/null (special
2133  # files actually), so we avoid doing that.
2134  if test -f "$cache_file"; then
2135    { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2136$as_echo "$as_me: loading cache $cache_file" >&6;}
2137    case $cache_file in
2138      [\\/]* | ?:[\\/]* ) . "$cache_file";;
2139      *)                      . "./$cache_file";;
2140    esac
2141  fi
2142else
2143  { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2144$as_echo "$as_me: creating cache $cache_file" >&6;}
2145  >$cache_file
2146fi
2147
2148# Check that the precious variables saved in the cache have kept the same
2149# value.
2150ac_cache_corrupted=false
2151for ac_var in $ac_precious_vars; do
2152  eval ac_old_set=\$ac_cv_env_${ac_var}_set
2153  eval ac_new_set=\$ac_env_${ac_var}_set
2154  eval ac_old_val=\$ac_cv_env_${ac_var}_value
2155  eval ac_new_val=\$ac_env_${ac_var}_value
2156  case $ac_old_set,$ac_new_set in
2157    set,)
2158      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2159$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2160      ac_cache_corrupted=: ;;
2161    ,set)
2162      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2163$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2164      ac_cache_corrupted=: ;;
2165    ,);;
2166    *)
2167      if test "x$ac_old_val" != "x$ac_new_val"; then
2168	# differences in whitespace do not lead to failure.
2169	ac_old_val_w=`echo x $ac_old_val`
2170	ac_new_val_w=`echo x $ac_new_val`
2171	if test "$ac_old_val_w" != "$ac_new_val_w"; then
2172	  { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2173$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2174	  ac_cache_corrupted=:
2175	else
2176	  { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2177$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2178	  eval $ac_var=\$ac_old_val
2179	fi
2180	{ $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2181$as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2182	{ $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2183$as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2184      fi;;
2185  esac
2186  # Pass precious variables to config.status.
2187  if test "$ac_new_set" = set; then
2188    case $ac_new_val in
2189    *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2190    *) ac_arg=$ac_var=$ac_new_val ;;
2191    esac
2192    case " $ac_configure_args " in
2193      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2194      *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2195    esac
2196  fi
2197done
2198if $ac_cache_corrupted; then
2199  { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2200$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2201  { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2202$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2203  as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2204fi
2205## -------------------- ##
2206## Main body of script. ##
2207## -------------------- ##
2208
2209ac_ext=c
2210ac_cpp='$CPP $CPPFLAGS'
2211ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2212ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2213ac_compiler_gnu=$ac_cv_c_compiler_gnu
2214
2215
2216
2217
2218
2219ac_aux_dir=
2220for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2221  for ac_t in install-sh install.sh shtool; do
2222    if test -f "$ac_dir/$ac_t"; then
2223      ac_aux_dir=$ac_dir
2224      ac_install_sh="$ac_aux_dir/$ac_t -c"
2225      break 2
2226    fi
2227  done
2228done
2229if test -z "$ac_aux_dir"; then
2230  as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2231fi
2232
2233# These three variables are undocumented and unsupported,
2234# and are intended to be withdrawn in a future Autoconf release.
2235# They can cause serious problems if a builder's source tree is in a directory
2236# whose full name contains unusual characters.
2237ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2238ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2239ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2240
2241
2242# Make sure we can run config.sub.
2243$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2244  as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2245
2246{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2247$as_echo_n "checking build system type... " >&6; }
2248if test "${ac_cv_build+set}" = set; then :
2249  $as_echo_n "(cached) " >&6
2250else
2251  ac_build_alias=$build_alias
2252test "x$ac_build_alias" = x &&
2253  ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2254test "x$ac_build_alias" = x &&
2255  as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
2256ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2257  as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2258
2259fi
2260{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2261$as_echo "$ac_cv_build" >&6; }
2262case $ac_cv_build in
2263*-*-*) ;;
2264*) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
2265esac
2266build=$ac_cv_build
2267ac_save_IFS=$IFS; IFS='-'
2268set x $ac_cv_build
2269shift
2270build_cpu=$1
2271build_vendor=$2
2272shift; shift
2273# Remember, the first character of IFS is used to create $*,
2274# except with old shells:
2275build_os=$*
2276IFS=$ac_save_IFS
2277case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2278
2279
2280{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2281$as_echo_n "checking host system type... " >&6; }
2282if test "${ac_cv_host+set}" = set; then :
2283  $as_echo_n "(cached) " >&6
2284else
2285  if test "x$host_alias" = x; then
2286  ac_cv_host=$ac_cv_build
2287else
2288  ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2289    as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2290fi
2291
2292fi
2293{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2294$as_echo "$ac_cv_host" >&6; }
2295case $ac_cv_host in
2296*-*-*) ;;
2297*) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
2298esac
2299host=$ac_cv_host
2300ac_save_IFS=$IFS; IFS='-'
2301set x $ac_cv_host
2302shift
2303host_cpu=$1
2304host_vendor=$2
2305shift; shift
2306# Remember, the first character of IFS is used to create $*,
2307# except with old shells:
2308host_os=$*
2309IFS=$ac_save_IFS
2310case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2311
2312
2313{ $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2314$as_echo_n "checking target system type... " >&6; }
2315if test "${ac_cv_target+set}" = set; then :
2316  $as_echo_n "(cached) " >&6
2317else
2318  if test "x$target_alias" = x; then
2319  ac_cv_target=$ac_cv_host
2320else
2321  ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2322    as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2323fi
2324
2325fi
2326{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2327$as_echo "$ac_cv_target" >&6; }
2328case $ac_cv_target in
2329*-*-*) ;;
2330*) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
2331esac
2332target=$ac_cv_target
2333ac_save_IFS=$IFS; IFS='-'
2334set x $ac_cv_target
2335shift
2336target_cpu=$1
2337target_vendor=$2
2338shift; shift
2339# Remember, the first character of IFS is used to create $*,
2340# except with old shells:
2341target_os=$*
2342IFS=$ac_save_IFS
2343case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2344
2345
2346# The aliases save the names the user supplied, while $host etc.
2347# will get canonicalized.
2348test -n "$target_alias" &&
2349  test "$program_prefix$program_suffix$program_transform_name" = \
2350    NONENONEs,x,x, &&
2351  program_prefix=${target_alias}-
2352
2353 case ${build_alias} in
2354  "") build_noncanonical=${build} ;;
2355  *) build_noncanonical=${build_alias} ;;
2356esac
2357
2358 case ${host_alias} in
2359  "") host_noncanonical=${build_noncanonical} ;;
2360  *) host_noncanonical=${host_alias} ;;
2361esac
2362
2363 case ${target_alias} in
2364  "") target_noncanonical=${host_noncanonical} ;;
2365  *) target_noncanonical=${target_alias} ;;
2366esac
2367
2368
2369# post-stage1 host modules use a different CC_FOR_BUILD so, in order to
2370# have matching libraries, they should use host libraries: Makefile.tpl
2371# arranges to pass --with-build-libsubdir=$(HOST_SUBDIR).
2372# However, they still use the build modules, because the corresponding
2373# host modules (e.g. bison) are only built for the host when bootstrap
2374# finishes. So:
2375# - build_subdir is where we find build modules, and never changes.
2376# - build_libsubdir is where we find build libraries, and can be overridden.
2377
2378# Prefix 'build-' so this never conflicts with target_subdir.
2379build_subdir="build-${build_noncanonical}"
2380
2381# Check whether --with-build-libsubdir was given.
2382if test "${with_build_libsubdir+set}" = set; then :
2383  withval=$with_build_libsubdir; build_libsubdir="$withval"
2384else
2385  build_libsubdir="$build_subdir"
2386fi
2387
2388# --srcdir=. covers the toplevel, while "test -d" covers the subdirectories
2389if ( test $srcdir = . && test -d gcc ) \
2390   || test -d $srcdir/../host-${host_noncanonical}; then
2391  host_subdir="host-${host_noncanonical}"
2392else
2393  host_subdir=.
2394fi
2395# No prefix.
2396target_subdir=${target_noncanonical}
2397
2398am__api_version='1.11'
2399
2400# Find a good install program.  We prefer a C program (faster),
2401# so one script is as good as another.  But avoid the broken or
2402# incompatible versions:
2403# SysV /etc/install, /usr/sbin/install
2404# SunOS /usr/etc/install
2405# IRIX /sbin/install
2406# AIX /bin/install
2407# AmigaOS /C/install, which installs bootblocks on floppy discs
2408# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2409# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2410# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2411# OS/2's system install, which has a completely different semantic
2412# ./install, which can be erroneously created by make from ./install.sh.
2413# Reject install programs that cannot install multiple files.
2414{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2415$as_echo_n "checking for a BSD-compatible install... " >&6; }
2416if test -z "$INSTALL"; then
2417if test "${ac_cv_path_install+set}" = set; then :
2418  $as_echo_n "(cached) " >&6
2419else
2420  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2421for as_dir in $PATH
2422do
2423  IFS=$as_save_IFS
2424  test -z "$as_dir" && as_dir=.
2425    # Account for people who put trailing slashes in PATH elements.
2426case $as_dir/ in #((
2427  ./ | .// | /[cC]/* | \
2428  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2429  ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2430  /usr/ucb/* ) ;;
2431  *)
2432    # OSF1 and SCO ODT 3.0 have their own names for install.
2433    # Don't use installbsd from OSF since it installs stuff as root
2434    # by default.
2435    for ac_prog in ginstall scoinst install; do
2436      for ac_exec_ext in '' $ac_executable_extensions; do
2437	if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2438	  if test $ac_prog = install &&
2439	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2440	    # AIX install.  It has an incompatible calling convention.
2441	    :
2442	  elif test $ac_prog = install &&
2443	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2444	    # program-specific install script used by HP pwplus--don't use.
2445	    :
2446	  else
2447	    rm -rf conftest.one conftest.two conftest.dir
2448	    echo one > conftest.one
2449	    echo two > conftest.two
2450	    mkdir conftest.dir
2451	    if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2452	      test -s conftest.one && test -s conftest.two &&
2453	      test -s conftest.dir/conftest.one &&
2454	      test -s conftest.dir/conftest.two
2455	    then
2456	      ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2457	      break 3
2458	    fi
2459	  fi
2460	fi
2461      done
2462    done
2463    ;;
2464esac
2465
2466  done
2467IFS=$as_save_IFS
2468
2469rm -rf conftest.one conftest.two conftest.dir
2470
2471fi
2472  if test "${ac_cv_path_install+set}" = set; then
2473    INSTALL=$ac_cv_path_install
2474  else
2475    # As a last resort, use the slow shell script.  Don't cache a
2476    # value for INSTALL within a source directory, because that will
2477    # break other packages using the cache if that directory is
2478    # removed, or if the value is a relative name.
2479    INSTALL=$ac_install_sh
2480  fi
2481fi
2482{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2483$as_echo "$INSTALL" >&6; }
2484
2485# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2486# It thinks the first close brace ends the variable substitution.
2487test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2488
2489test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2490
2491test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2492
2493{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2494$as_echo_n "checking whether build environment is sane... " >&6; }
2495# Just in case
2496sleep 1
2497echo timestamp > conftest.file
2498# Reject unsafe characters in $srcdir or the absolute working directory
2499# name.  Accept space and tab only in the latter.
2500am_lf='
2501'
2502case `pwd` in
2503  *[\\\"\#\$\&\'\`$am_lf]*)
2504    as_fn_error "unsafe absolute working directory name" "$LINENO" 5;;
2505esac
2506case $srcdir in
2507  *[\\\"\#\$\&\'\`$am_lf\ \	]*)
2508    as_fn_error "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
2509esac
2510
2511# Do `set' in a subshell so we don't clobber the current shell's
2512# arguments.  Must try -L first in case configure is actually a
2513# symlink; some systems play weird games with the mod time of symlinks
2514# (eg FreeBSD returns the mod time of the symlink's containing
2515# directory).
2516if (
2517   set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2518   if test "$*" = "X"; then
2519      # -L didn't work.
2520      set X `ls -t "$srcdir/configure" conftest.file`
2521   fi
2522   rm -f conftest.file
2523   if test "$*" != "X $srcdir/configure conftest.file" \
2524      && test "$*" != "X conftest.file $srcdir/configure"; then
2525
2526      # If neither matched, then we have a broken ls.  This can happen
2527      # if, for instance, CONFIG_SHELL is bash and it inherits a
2528      # broken ls alias from the environment.  This has actually
2529      # happened.  Such a system could not be considered "sane".
2530      as_fn_error "ls -t appears to fail.  Make sure there is not a broken
2531alias in your environment" "$LINENO" 5
2532   fi
2533
2534   test "$2" = conftest.file
2535   )
2536then
2537   # Ok.
2538   :
2539else
2540   as_fn_error "newly created file is older than distributed files!
2541Check your system clock" "$LINENO" 5
2542fi
2543{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2544$as_echo "yes" >&6; }
2545test "$program_prefix" != NONE &&
2546  program_transform_name="s&^&$program_prefix&;$program_transform_name"
2547# Use a double $ so make ignores it.
2548test "$program_suffix" != NONE &&
2549  program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2550# Double any \ or $.
2551# By default was `s,x,x', remove it if useless.
2552ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2553program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2554
2555# expand $ac_aux_dir to an absolute path
2556am_aux_dir=`cd $ac_aux_dir && pwd`
2557
2558if test x"${MISSING+set}" != xset; then
2559  case $am_aux_dir in
2560  *\ * | *\	*)
2561    MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2562  *)
2563    MISSING="\${SHELL} $am_aux_dir/missing" ;;
2564  esac
2565fi
2566# Use eval to expand $SHELL
2567if eval "$MISSING --run true"; then
2568  am_missing_run="$MISSING --run "
2569else
2570  am_missing_run=
2571  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
2572$as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2573fi
2574
2575if test x"${install_sh}" != xset; then
2576  case $am_aux_dir in
2577  *\ * | *\	*)
2578    install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2579  *)
2580    install_sh="\${SHELL} $am_aux_dir/install-sh"
2581  esac
2582fi
2583
2584# Installed binaries are usually stripped using `strip' when the user
2585# run `make install-strip'.  However `strip' might not be the right
2586# tool to use in cross-compilation environments, therefore Automake
2587# will honor the `STRIP' environment variable to overrule this program.
2588if test "$cross_compiling" != no; then
2589  if test -n "$ac_tool_prefix"; then
2590  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2591set dummy ${ac_tool_prefix}strip; ac_word=$2
2592{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2593$as_echo_n "checking for $ac_word... " >&6; }
2594if test "${ac_cv_prog_STRIP+set}" = set; then :
2595  $as_echo_n "(cached) " >&6
2596else
2597  if test -n "$STRIP"; then
2598  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2599else
2600as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2601for as_dir in $PATH
2602do
2603  IFS=$as_save_IFS
2604  test -z "$as_dir" && as_dir=.
2605    for ac_exec_ext in '' $ac_executable_extensions; do
2606  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2607    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2608    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2609    break 2
2610  fi
2611done
2612  done
2613IFS=$as_save_IFS
2614
2615fi
2616fi
2617STRIP=$ac_cv_prog_STRIP
2618if test -n "$STRIP"; then
2619  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2620$as_echo "$STRIP" >&6; }
2621else
2622  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2623$as_echo "no" >&6; }
2624fi
2625
2626
2627fi
2628if test -z "$ac_cv_prog_STRIP"; then
2629  ac_ct_STRIP=$STRIP
2630  # Extract the first word of "strip", so it can be a program name with args.
2631set dummy strip; ac_word=$2
2632{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2633$as_echo_n "checking for $ac_word... " >&6; }
2634if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
2635  $as_echo_n "(cached) " >&6
2636else
2637  if test -n "$ac_ct_STRIP"; then
2638  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2639else
2640as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2641for as_dir in $PATH
2642do
2643  IFS=$as_save_IFS
2644  test -z "$as_dir" && as_dir=.
2645    for ac_exec_ext in '' $ac_executable_extensions; do
2646  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2647    ac_cv_prog_ac_ct_STRIP="strip"
2648    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2649    break 2
2650  fi
2651done
2652  done
2653IFS=$as_save_IFS
2654
2655fi
2656fi
2657ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2658if test -n "$ac_ct_STRIP"; then
2659  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2660$as_echo "$ac_ct_STRIP" >&6; }
2661else
2662  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2663$as_echo "no" >&6; }
2664fi
2665
2666  if test "x$ac_ct_STRIP" = x; then
2667    STRIP=":"
2668  else
2669    case $cross_compiling:$ac_tool_warned in
2670yes:)
2671{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2672$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2673ac_tool_warned=yes ;;
2674esac
2675    STRIP=$ac_ct_STRIP
2676  fi
2677else
2678  STRIP="$ac_cv_prog_STRIP"
2679fi
2680
2681fi
2682INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2683
2684{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2685$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2686if test -z "$MKDIR_P"; then
2687  if test "${ac_cv_path_mkdir+set}" = set; then :
2688  $as_echo_n "(cached) " >&6
2689else
2690  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2691for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2692do
2693  IFS=$as_save_IFS
2694  test -z "$as_dir" && as_dir=.
2695    for ac_prog in mkdir gmkdir; do
2696	 for ac_exec_ext in '' $ac_executable_extensions; do
2697	   { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2698	   case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2699	     'mkdir (GNU coreutils) '* | \
2700	     'mkdir (coreutils) '* | \
2701	     'mkdir (fileutils) '4.1*)
2702	       ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2703	       break 3;;
2704	   esac
2705	 done
2706       done
2707  done
2708IFS=$as_save_IFS
2709
2710fi
2711
2712  if test "${ac_cv_path_mkdir+set}" = set; then
2713    MKDIR_P="$ac_cv_path_mkdir -p"
2714  else
2715    # As a last resort, use the slow shell script.  Don't cache a
2716    # value for MKDIR_P within a source directory, because that will
2717    # break other packages using the cache if that directory is
2718    # removed, or if the value is a relative name.
2719    test -d ./--version && rmdir ./--version
2720    MKDIR_P="$ac_install_sh -d"
2721  fi
2722fi
2723{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2724$as_echo "$MKDIR_P" >&6; }
2725
2726mkdir_p="$MKDIR_P"
2727case $mkdir_p in
2728  [\\/$]* | ?:[\\/]*) ;;
2729  */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2730esac
2731
2732for ac_prog in gawk mawk nawk awk
2733do
2734  # Extract the first word of "$ac_prog", so it can be a program name with args.
2735set dummy $ac_prog; ac_word=$2
2736{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2737$as_echo_n "checking for $ac_word... " >&6; }
2738if test "${ac_cv_prog_AWK+set}" = set; then :
2739  $as_echo_n "(cached) " >&6
2740else
2741  if test -n "$AWK"; then
2742  ac_cv_prog_AWK="$AWK" # Let the user override the test.
2743else
2744as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2745for as_dir in $PATH
2746do
2747  IFS=$as_save_IFS
2748  test -z "$as_dir" && as_dir=.
2749    for ac_exec_ext in '' $ac_executable_extensions; do
2750  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2751    ac_cv_prog_AWK="$ac_prog"
2752    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2753    break 2
2754  fi
2755done
2756  done
2757IFS=$as_save_IFS
2758
2759fi
2760fi
2761AWK=$ac_cv_prog_AWK
2762if test -n "$AWK"; then
2763  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2764$as_echo "$AWK" >&6; }
2765else
2766  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2767$as_echo "no" >&6; }
2768fi
2769
2770
2771  test -n "$AWK" && break
2772done
2773
2774{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2775$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2776set x ${MAKE-make}
2777ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2778if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
2779  $as_echo_n "(cached) " >&6
2780else
2781  cat >conftest.make <<\_ACEOF
2782SHELL = /bin/sh
2783all:
2784	@echo '@@@%%%=$(MAKE)=@@@%%%'
2785_ACEOF
2786# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2787case `${MAKE-make} -f conftest.make 2>/dev/null` in
2788  *@@@%%%=?*=@@@%%%*)
2789    eval ac_cv_prog_make_${ac_make}_set=yes;;
2790  *)
2791    eval ac_cv_prog_make_${ac_make}_set=no;;
2792esac
2793rm -f conftest.make
2794fi
2795if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2796  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2797$as_echo "yes" >&6; }
2798  SET_MAKE=
2799else
2800  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2801$as_echo "no" >&6; }
2802  SET_MAKE="MAKE=${MAKE-make}"
2803fi
2804
2805rm -rf .tst 2>/dev/null
2806mkdir .tst 2>/dev/null
2807if test -d .tst; then
2808  am__leading_dot=.
2809else
2810  am__leading_dot=_
2811fi
2812rmdir .tst 2>/dev/null
2813
2814if test "`cd $srcdir && pwd`" != "`pwd`"; then
2815  # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2816  # is not polluted with repeated "-I."
2817  am__isrc=' -I$(srcdir)'
2818  # test to see if srcdir already configured
2819  if test -f $srcdir/config.status; then
2820    as_fn_error "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2821  fi
2822fi
2823
2824# test whether we have cygpath
2825if test -z "$CYGPATH_W"; then
2826  if (cygpath --version) >/dev/null 2>/dev/null; then
2827    CYGPATH_W='cygpath -w'
2828  else
2829    CYGPATH_W=echo
2830  fi
2831fi
2832
2833
2834# Define the identity of the package.
2835 PACKAGE='lto-plugin'
2836 VERSION='0.1'
2837
2838
2839cat >>confdefs.h <<_ACEOF
2840#define PACKAGE "$PACKAGE"
2841_ACEOF
2842
2843
2844cat >>confdefs.h <<_ACEOF
2845#define VERSION "$VERSION"
2846_ACEOF
2847
2848# Some tools Automake needs.
2849
2850ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2851
2852
2853AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2854
2855
2856AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2857
2858
2859AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2860
2861
2862MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2863
2864# We need awk for the "check" target.  The system "awk" is bad on
2865# some platforms.
2866# Always define AMTAR for backward compatibility.
2867
2868AMTAR=${AMTAR-"${am_missing_run}tar"}
2869
2870am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2871
2872
2873
2874
2875
2876
2877{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
2878$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
2879    # Check whether --enable-maintainer-mode was given.
2880if test "${enable_maintainer_mode+set}" = set; then :
2881  enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2882else
2883  USE_MAINTAINER_MODE=no
2884fi
2885
2886  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
2887$as_echo "$USE_MAINTAINER_MODE" >&6; }
2888   if test $USE_MAINTAINER_MODE = yes; then
2889  MAINTAINER_MODE_TRUE=
2890  MAINTAINER_MODE_FALSE='#'
2891else
2892  MAINTAINER_MODE_TRUE='#'
2893  MAINTAINER_MODE_FALSE=
2894fi
2895
2896  MAINT=$MAINTAINER_MODE_TRUE
2897
2898
2899
2900# Check whether --with-libiberty was given.
2901if test "${with_libiberty+set}" = set; then :
2902  withval=$with_libiberty;
2903else
2904  with_libiberty=../libiberty
2905fi
2906
2907
2908ac_ext=c
2909ac_cpp='$CPP $CPPFLAGS'
2910ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2911ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2912ac_compiler_gnu=$ac_cv_c_compiler_gnu
2913if test -n "$ac_tool_prefix"; then
2914  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2915set dummy ${ac_tool_prefix}gcc; ac_word=$2
2916{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2917$as_echo_n "checking for $ac_word... " >&6; }
2918if test "${ac_cv_prog_CC+set}" = set; then :
2919  $as_echo_n "(cached) " >&6
2920else
2921  if test -n "$CC"; then
2922  ac_cv_prog_CC="$CC" # Let the user override the test.
2923else
2924as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2925for as_dir in $PATH
2926do
2927  IFS=$as_save_IFS
2928  test -z "$as_dir" && as_dir=.
2929    for ac_exec_ext in '' $ac_executable_extensions; do
2930  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2931    ac_cv_prog_CC="${ac_tool_prefix}gcc"
2932    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2933    break 2
2934  fi
2935done
2936  done
2937IFS=$as_save_IFS
2938
2939fi
2940fi
2941CC=$ac_cv_prog_CC
2942if test -n "$CC"; then
2943  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2944$as_echo "$CC" >&6; }
2945else
2946  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2947$as_echo "no" >&6; }
2948fi
2949
2950
2951fi
2952if test -z "$ac_cv_prog_CC"; then
2953  ac_ct_CC=$CC
2954  # Extract the first word of "gcc", so it can be a program name with args.
2955set dummy gcc; ac_word=$2
2956{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2957$as_echo_n "checking for $ac_word... " >&6; }
2958if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
2959  $as_echo_n "(cached) " >&6
2960else
2961  if test -n "$ac_ct_CC"; then
2962  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2963else
2964as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2965for as_dir in $PATH
2966do
2967  IFS=$as_save_IFS
2968  test -z "$as_dir" && as_dir=.
2969    for ac_exec_ext in '' $ac_executable_extensions; do
2970  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2971    ac_cv_prog_ac_ct_CC="gcc"
2972    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2973    break 2
2974  fi
2975done
2976  done
2977IFS=$as_save_IFS
2978
2979fi
2980fi
2981ac_ct_CC=$ac_cv_prog_ac_ct_CC
2982if test -n "$ac_ct_CC"; then
2983  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2984$as_echo "$ac_ct_CC" >&6; }
2985else
2986  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2987$as_echo "no" >&6; }
2988fi
2989
2990  if test "x$ac_ct_CC" = x; then
2991    CC=""
2992  else
2993    case $cross_compiling:$ac_tool_warned in
2994yes:)
2995{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2996$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2997ac_tool_warned=yes ;;
2998esac
2999    CC=$ac_ct_CC
3000  fi
3001else
3002  CC="$ac_cv_prog_CC"
3003fi
3004
3005if test -z "$CC"; then
3006          if test -n "$ac_tool_prefix"; then
3007    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3008set dummy ${ac_tool_prefix}cc; ac_word=$2
3009{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3010$as_echo_n "checking for $ac_word... " >&6; }
3011if test "${ac_cv_prog_CC+set}" = set; then :
3012  $as_echo_n "(cached) " >&6
3013else
3014  if test -n "$CC"; then
3015  ac_cv_prog_CC="$CC" # Let the user override the test.
3016else
3017as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3018for as_dir in $PATH
3019do
3020  IFS=$as_save_IFS
3021  test -z "$as_dir" && as_dir=.
3022    for ac_exec_ext in '' $ac_executable_extensions; do
3023  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3024    ac_cv_prog_CC="${ac_tool_prefix}cc"
3025    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3026    break 2
3027  fi
3028done
3029  done
3030IFS=$as_save_IFS
3031
3032fi
3033fi
3034CC=$ac_cv_prog_CC
3035if test -n "$CC"; then
3036  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3037$as_echo "$CC" >&6; }
3038else
3039  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3040$as_echo "no" >&6; }
3041fi
3042
3043
3044  fi
3045fi
3046if test -z "$CC"; then
3047  # Extract the first word of "cc", so it can be a program name with args.
3048set dummy cc; ac_word=$2
3049{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3050$as_echo_n "checking for $ac_word... " >&6; }
3051if test "${ac_cv_prog_CC+set}" = set; then :
3052  $as_echo_n "(cached) " >&6
3053else
3054  if test -n "$CC"; then
3055  ac_cv_prog_CC="$CC" # Let the user override the test.
3056else
3057  ac_prog_rejected=no
3058as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3059for as_dir in $PATH
3060do
3061  IFS=$as_save_IFS
3062  test -z "$as_dir" && as_dir=.
3063    for ac_exec_ext in '' $ac_executable_extensions; do
3064  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3065    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3066       ac_prog_rejected=yes
3067       continue
3068     fi
3069    ac_cv_prog_CC="cc"
3070    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3071    break 2
3072  fi
3073done
3074  done
3075IFS=$as_save_IFS
3076
3077if test $ac_prog_rejected = yes; then
3078  # We found a bogon in the path, so make sure we never use it.
3079  set dummy $ac_cv_prog_CC
3080  shift
3081  if test $# != 0; then
3082    # We chose a different compiler from the bogus one.
3083    # However, it has the same basename, so the bogon will be chosen
3084    # first if we set CC to just the basename; use the full file name.
3085    shift
3086    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3087  fi
3088fi
3089fi
3090fi
3091CC=$ac_cv_prog_CC
3092if test -n "$CC"; then
3093  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3094$as_echo "$CC" >&6; }
3095else
3096  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3097$as_echo "no" >&6; }
3098fi
3099
3100
3101fi
3102if test -z "$CC"; then
3103  if test -n "$ac_tool_prefix"; then
3104  for ac_prog in cl.exe
3105  do
3106    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3107set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3108{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3109$as_echo_n "checking for $ac_word... " >&6; }
3110if test "${ac_cv_prog_CC+set}" = set; then :
3111  $as_echo_n "(cached) " >&6
3112else
3113  if test -n "$CC"; then
3114  ac_cv_prog_CC="$CC" # Let the user override the test.
3115else
3116as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3117for as_dir in $PATH
3118do
3119  IFS=$as_save_IFS
3120  test -z "$as_dir" && as_dir=.
3121    for ac_exec_ext in '' $ac_executable_extensions; do
3122  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3123    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3124    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3125    break 2
3126  fi
3127done
3128  done
3129IFS=$as_save_IFS
3130
3131fi
3132fi
3133CC=$ac_cv_prog_CC
3134if test -n "$CC"; then
3135  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3136$as_echo "$CC" >&6; }
3137else
3138  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3139$as_echo "no" >&6; }
3140fi
3141
3142
3143    test -n "$CC" && break
3144  done
3145fi
3146if test -z "$CC"; then
3147  ac_ct_CC=$CC
3148  for ac_prog in cl.exe
3149do
3150  # Extract the first word of "$ac_prog", so it can be a program name with args.
3151set dummy $ac_prog; ac_word=$2
3152{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3153$as_echo_n "checking for $ac_word... " >&6; }
3154if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3155  $as_echo_n "(cached) " >&6
3156else
3157  if test -n "$ac_ct_CC"; then
3158  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3159else
3160as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3161for as_dir in $PATH
3162do
3163  IFS=$as_save_IFS
3164  test -z "$as_dir" && as_dir=.
3165    for ac_exec_ext in '' $ac_executable_extensions; do
3166  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3167    ac_cv_prog_ac_ct_CC="$ac_prog"
3168    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3169    break 2
3170  fi
3171done
3172  done
3173IFS=$as_save_IFS
3174
3175fi
3176fi
3177ac_ct_CC=$ac_cv_prog_ac_ct_CC
3178if test -n "$ac_ct_CC"; then
3179  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3180$as_echo "$ac_ct_CC" >&6; }
3181else
3182  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3183$as_echo "no" >&6; }
3184fi
3185
3186
3187  test -n "$ac_ct_CC" && break
3188done
3189
3190  if test "x$ac_ct_CC" = x; then
3191    CC=""
3192  else
3193    case $cross_compiling:$ac_tool_warned in
3194yes:)
3195{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3196$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3197ac_tool_warned=yes ;;
3198esac
3199    CC=$ac_ct_CC
3200  fi
3201fi
3202
3203fi
3204
3205
3206test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3207$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3208as_fn_error "no acceptable C compiler found in \$PATH
3209See \`config.log' for more details." "$LINENO" 5; }
3210
3211# Provide some information about the compiler.
3212$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3213set X $ac_compile
3214ac_compiler=$2
3215for ac_option in --version -v -V -qversion; do
3216  { { ac_try="$ac_compiler $ac_option >&5"
3217case "(($ac_try" in
3218  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3219  *) ac_try_echo=$ac_try;;
3220esac
3221eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3222$as_echo "$ac_try_echo"; } >&5
3223  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3224  ac_status=$?
3225  if test -s conftest.err; then
3226    sed '10a\
3227... rest of stderr output deleted ...
3228         10q' conftest.err >conftest.er1
3229    cat conftest.er1 >&5
3230    rm -f conftest.er1 conftest.err
3231  fi
3232  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3233  test $ac_status = 0; }
3234done
3235
3236cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3237/* end confdefs.h.  */
3238
3239int
3240main ()
3241{
3242
3243  ;
3244  return 0;
3245}
3246_ACEOF
3247ac_clean_files_save=$ac_clean_files
3248ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
3249# Try to create an executable without -o first, disregard a.out.
3250# It will help us diagnose broken compilers, and finding out an intuition
3251# of exeext.
3252{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3253$as_echo_n "checking for C compiler default output file name... " >&6; }
3254ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3255
3256# The possible output files:
3257ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3258
3259ac_rmfiles=
3260for ac_file in $ac_files
3261do
3262  case $ac_file in
3263    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3264    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3265  esac
3266done
3267rm -f $ac_rmfiles
3268
3269if { { ac_try="$ac_link_default"
3270case "(($ac_try" in
3271  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3272  *) ac_try_echo=$ac_try;;
3273esac
3274eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3275$as_echo "$ac_try_echo"; } >&5
3276  (eval "$ac_link_default") 2>&5
3277  ac_status=$?
3278  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3279  test $ac_status = 0; }; then :
3280  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3281# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3282# in a Makefile.  We should not override ac_cv_exeext if it was cached,
3283# so that the user can short-circuit this test for compilers unknown to
3284# Autoconf.
3285for ac_file in $ac_files ''
3286do
3287  test -f "$ac_file" || continue
3288  case $ac_file in
3289    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3290	;;
3291    [ab].out )
3292	# We found the default executable, but exeext='' is most
3293	# certainly right.
3294	break;;
3295    *.* )
3296	if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3297	then :; else
3298	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3299	fi
3300	# We set ac_cv_exeext here because the later test for it is not
3301	# safe: cross compilers may not add the suffix if given an `-o'
3302	# argument, so we may need to know it at that point already.
3303	# Even if this section looks crufty: it has the advantage of
3304	# actually working.
3305	break;;
3306    * )
3307	break;;
3308  esac
3309done
3310test "$ac_cv_exeext" = no && ac_cv_exeext=
3311
3312else
3313  ac_file=''
3314fi
3315{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3316$as_echo "$ac_file" >&6; }
3317if test -z "$ac_file"; then :
3318  $as_echo "$as_me: failed program was:" >&5
3319sed 's/^/| /' conftest.$ac_ext >&5
3320
3321{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3322$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3323{ as_fn_set_status 77
3324as_fn_error "C compiler cannot create executables
3325See \`config.log' for more details." "$LINENO" 5; }; }
3326fi
3327ac_exeext=$ac_cv_exeext
3328
3329# Check that the compiler produces executables we can run.  If not, either
3330# the compiler is broken, or we cross compile.
3331{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3332$as_echo_n "checking whether the C compiler works... " >&6; }
3333# If not cross compiling, check that we can run a simple program.
3334if test "$cross_compiling" != yes; then
3335  if { ac_try='./$ac_file'
3336  { { case "(($ac_try" in
3337  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3338  *) ac_try_echo=$ac_try;;
3339esac
3340eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3341$as_echo "$ac_try_echo"; } >&5
3342  (eval "$ac_try") 2>&5
3343  ac_status=$?
3344  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3345  test $ac_status = 0; }; }; then
3346    cross_compiling=no
3347  else
3348    if test "$cross_compiling" = maybe; then
3349	cross_compiling=yes
3350    else
3351	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3352$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3353as_fn_error "cannot run C compiled programs.
3354If you meant to cross compile, use \`--host'.
3355See \`config.log' for more details." "$LINENO" 5; }
3356    fi
3357  fi
3358fi
3359{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3360$as_echo "yes" >&6; }
3361
3362rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
3363ac_clean_files=$ac_clean_files_save
3364# Check that the compiler produces executables we can run.  If not, either
3365# the compiler is broken, or we cross compile.
3366{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3367$as_echo_n "checking whether we are cross compiling... " >&6; }
3368{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3369$as_echo "$cross_compiling" >&6; }
3370
3371{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3372$as_echo_n "checking for suffix of executables... " >&6; }
3373if { { ac_try="$ac_link"
3374case "(($ac_try" in
3375  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3376  *) ac_try_echo=$ac_try;;
3377esac
3378eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3379$as_echo "$ac_try_echo"; } >&5
3380  (eval "$ac_link") 2>&5
3381  ac_status=$?
3382  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3383  test $ac_status = 0; }; then :
3384  # If both `conftest.exe' and `conftest' are `present' (well, observable)
3385# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3386# work properly (i.e., refer to `conftest.exe'), while it won't with
3387# `rm'.
3388for ac_file in conftest.exe conftest conftest.*; do
3389  test -f "$ac_file" || continue
3390  case $ac_file in
3391    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3392    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3393	  break;;
3394    * ) break;;
3395  esac
3396done
3397else
3398  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3399$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3400as_fn_error "cannot compute suffix of executables: cannot compile and link
3401See \`config.log' for more details." "$LINENO" 5; }
3402fi
3403rm -f conftest$ac_cv_exeext
3404{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3405$as_echo "$ac_cv_exeext" >&6; }
3406
3407rm -f conftest.$ac_ext
3408EXEEXT=$ac_cv_exeext
3409ac_exeext=$EXEEXT
3410{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3411$as_echo_n "checking for suffix of object files... " >&6; }
3412if test "${ac_cv_objext+set}" = set; then :
3413  $as_echo_n "(cached) " >&6
3414else
3415  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3416/* end confdefs.h.  */
3417
3418int
3419main ()
3420{
3421
3422  ;
3423  return 0;
3424}
3425_ACEOF
3426rm -f conftest.o conftest.obj
3427if { { ac_try="$ac_compile"
3428case "(($ac_try" in
3429  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3430  *) ac_try_echo=$ac_try;;
3431esac
3432eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3433$as_echo "$ac_try_echo"; } >&5
3434  (eval "$ac_compile") 2>&5
3435  ac_status=$?
3436  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3437  test $ac_status = 0; }; then :
3438  for ac_file in conftest.o conftest.obj conftest.*; do
3439  test -f "$ac_file" || continue;
3440  case $ac_file in
3441    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3442    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3443       break;;
3444  esac
3445done
3446else
3447  $as_echo "$as_me: failed program was:" >&5
3448sed 's/^/| /' conftest.$ac_ext >&5
3449
3450{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3451$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3452as_fn_error "cannot compute suffix of object files: cannot compile
3453See \`config.log' for more details." "$LINENO" 5; }
3454fi
3455rm -f conftest.$ac_cv_objext conftest.$ac_ext
3456fi
3457{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3458$as_echo "$ac_cv_objext" >&6; }
3459OBJEXT=$ac_cv_objext
3460ac_objext=$OBJEXT
3461{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3462$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3463if test "${ac_cv_c_compiler_gnu+set}" = set; then :
3464  $as_echo_n "(cached) " >&6
3465else
3466  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3467/* end confdefs.h.  */
3468
3469int
3470main ()
3471{
3472#ifndef __GNUC__
3473       choke me
3474#endif
3475
3476  ;
3477  return 0;
3478}
3479_ACEOF
3480if ac_fn_c_try_compile "$LINENO"; then :
3481  ac_compiler_gnu=yes
3482else
3483  ac_compiler_gnu=no
3484fi
3485rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3486ac_cv_c_compiler_gnu=$ac_compiler_gnu
3487
3488fi
3489{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3490$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3491if test $ac_compiler_gnu = yes; then
3492  GCC=yes
3493else
3494  GCC=
3495fi
3496ac_test_CFLAGS=${CFLAGS+set}
3497ac_save_CFLAGS=$CFLAGS
3498{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3499$as_echo_n "checking whether $CC accepts -g... " >&6; }
3500if test "${ac_cv_prog_cc_g+set}" = set; then :
3501  $as_echo_n "(cached) " >&6
3502else
3503  ac_save_c_werror_flag=$ac_c_werror_flag
3504   ac_c_werror_flag=yes
3505   ac_cv_prog_cc_g=no
3506   CFLAGS="-g"
3507   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3508/* end confdefs.h.  */
3509
3510int
3511main ()
3512{
3513
3514  ;
3515  return 0;
3516}
3517_ACEOF
3518if ac_fn_c_try_compile "$LINENO"; then :
3519  ac_cv_prog_cc_g=yes
3520else
3521  CFLAGS=""
3522      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3523/* end confdefs.h.  */
3524
3525int
3526main ()
3527{
3528
3529  ;
3530  return 0;
3531}
3532_ACEOF
3533if ac_fn_c_try_compile "$LINENO"; then :
3534
3535else
3536  ac_c_werror_flag=$ac_save_c_werror_flag
3537	 CFLAGS="-g"
3538	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3539/* end confdefs.h.  */
3540
3541int
3542main ()
3543{
3544
3545  ;
3546  return 0;
3547}
3548_ACEOF
3549if ac_fn_c_try_compile "$LINENO"; then :
3550  ac_cv_prog_cc_g=yes
3551fi
3552rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3553fi
3554rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3555fi
3556rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3557   ac_c_werror_flag=$ac_save_c_werror_flag
3558fi
3559{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3560$as_echo "$ac_cv_prog_cc_g" >&6; }
3561if test "$ac_test_CFLAGS" = set; then
3562  CFLAGS=$ac_save_CFLAGS
3563elif test $ac_cv_prog_cc_g = yes; then
3564  if test "$GCC" = yes; then
3565    CFLAGS="-g -O2"
3566  else
3567    CFLAGS="-g"
3568  fi
3569else
3570  if test "$GCC" = yes; then
3571    CFLAGS="-O2"
3572  else
3573    CFLAGS=
3574  fi
3575fi
3576{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3577$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3578if test "${ac_cv_prog_cc_c89+set}" = set; then :
3579  $as_echo_n "(cached) " >&6
3580else
3581  ac_cv_prog_cc_c89=no
3582ac_save_CC=$CC
3583cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3584/* end confdefs.h.  */
3585#include <stdarg.h>
3586#include <stdio.h>
3587#include <sys/types.h>
3588#include <sys/stat.h>
3589/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3590struct buf { int x; };
3591FILE * (*rcsopen) (struct buf *, struct stat *, int);
3592static char *e (p, i)
3593     char **p;
3594     int i;
3595{
3596  return p[i];
3597}
3598static char *f (char * (*g) (char **, int), char **p, ...)
3599{
3600  char *s;
3601  va_list v;
3602  va_start (v,p);
3603  s = g (p, va_arg (v,int));
3604  va_end (v);
3605  return s;
3606}
3607
3608/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3609   function prototypes and stuff, but not '\xHH' hex character constants.
3610   These don't provoke an error unfortunately, instead are silently treated
3611   as 'x'.  The following induces an error, until -std is added to get
3612   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3613   array size at least.  It's necessary to write '\x00'==0 to get something
3614   that's true only with -std.  */
3615int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3616
3617/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3618   inside strings and character constants.  */
3619#define FOO(x) 'x'
3620int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3621
3622int test (int i, double x);
3623struct s1 {int (*f) (int a);};
3624struct s2 {int (*f) (double a);};
3625int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3626int argc;
3627char **argv;
3628int
3629main ()
3630{
3631return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3632  ;
3633  return 0;
3634}
3635_ACEOF
3636for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3637	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3638do
3639  CC="$ac_save_CC $ac_arg"
3640  if ac_fn_c_try_compile "$LINENO"; then :
3641  ac_cv_prog_cc_c89=$ac_arg
3642fi
3643rm -f core conftest.err conftest.$ac_objext
3644  test "x$ac_cv_prog_cc_c89" != "xno" && break
3645done
3646rm -f conftest.$ac_ext
3647CC=$ac_save_CC
3648
3649fi
3650# AC_CACHE_VAL
3651case "x$ac_cv_prog_cc_c89" in
3652  x)
3653    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3654$as_echo "none needed" >&6; } ;;
3655  xno)
3656    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3657$as_echo "unsupported" >&6; } ;;
3658  *)
3659    CC="$CC $ac_cv_prog_cc_c89"
3660    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3661$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3662esac
3663if test "x$ac_cv_prog_cc_c89" != xno; then :
3664
3665fi
3666
3667ac_ext=c
3668ac_cpp='$CPP $CPPFLAGS'
3669ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3670ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3671ac_compiler_gnu=$ac_cv_c_compiler_gnu
3672DEPDIR="${am__leading_dot}deps"
3673
3674ac_config_commands="$ac_config_commands depfiles"
3675
3676
3677am_make=${MAKE-make}
3678cat > confinc << 'END'
3679am__doit:
3680	@echo this is the am__doit target
3681.PHONY: am__doit
3682END
3683# If we don't find an include directive, just comment out the code.
3684{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3685$as_echo_n "checking for style of include used by $am_make... " >&6; }
3686am__include="#"
3687am__quote=
3688_am_result=none
3689# First try GNU make style include.
3690echo "include confinc" > confmf
3691# Ignore all kinds of additional output from `make'.
3692case `$am_make -s -f confmf 2> /dev/null` in #(
3693*the\ am__doit\ target*)
3694  am__include=include
3695  am__quote=
3696  _am_result=GNU
3697  ;;
3698esac
3699# Now try BSD make style include.
3700if test "$am__include" = "#"; then
3701   echo '.include "confinc"' > confmf
3702   case `$am_make -s -f confmf 2> /dev/null` in #(
3703   *the\ am__doit\ target*)
3704     am__include=.include
3705     am__quote="\""
3706     _am_result=BSD
3707     ;;
3708   esac
3709fi
3710
3711
3712{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3713$as_echo "$_am_result" >&6; }
3714rm -f confinc confmf
3715
3716# Check whether --enable-dependency-tracking was given.
3717if test "${enable_dependency_tracking+set}" = set; then :
3718  enableval=$enable_dependency_tracking;
3719fi
3720
3721if test "x$enable_dependency_tracking" != xno; then
3722  am_depcomp="$ac_aux_dir/depcomp"
3723  AMDEPBACKSLASH='\'
3724fi
3725 if test "x$enable_dependency_tracking" != xno; then
3726  AMDEP_TRUE=
3727  AMDEP_FALSE='#'
3728else
3729  AMDEP_TRUE='#'
3730  AMDEP_FALSE=
3731fi
3732
3733
3734
3735depcc="$CC"   am_compiler_list=
3736
3737{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3738$as_echo_n "checking dependency style of $depcc... " >&6; }
3739if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
3740  $as_echo_n "(cached) " >&6
3741else
3742  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3743  # We make a subdir and do the tests there.  Otherwise we can end up
3744  # making bogus files that we don't know about and never remove.  For
3745  # instance it was reported that on HP-UX the gcc test will end up
3746  # making a dummy file named `D' -- because `-MD' means `put the output
3747  # in D'.
3748  mkdir conftest.dir
3749  # Copy depcomp to subdir because otherwise we won't find it if we're
3750  # using a relative directory.
3751  cp "$am_depcomp" conftest.dir
3752  cd conftest.dir
3753  # We will build objects and dependencies in a subdirectory because
3754  # it helps to detect inapplicable dependency modes.  For instance
3755  # both Tru64's cc and ICC support -MD to output dependencies as a
3756  # side effect of compilation, but ICC will put the dependencies in
3757  # the current directory while Tru64 will put them in the object
3758  # directory.
3759  mkdir sub
3760
3761  am_cv_CC_dependencies_compiler_type=none
3762  if test "$am_compiler_list" = ""; then
3763     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3764  fi
3765  am__universal=false
3766  case " $depcc " in #(
3767     *\ -arch\ *\ -arch\ *) am__universal=true ;;
3768     esac
3769
3770  for depmode in $am_compiler_list; do
3771    # Setup a source with many dependencies, because some compilers
3772    # like to wrap large dependency lists on column 80 (with \), and
3773    # we should not choose a depcomp mode which is confused by this.
3774    #
3775    # We need to recreate these files for each test, as the compiler may
3776    # overwrite some of them when testing with obscure command lines.
3777    # This happens at least with the AIX C compiler.
3778    : > sub/conftest.c
3779    for i in 1 2 3 4 5 6; do
3780      echo '#include "conftst'$i'.h"' >> sub/conftest.c
3781      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3782      # Solaris 8's {/usr,}/bin/sh.
3783      touch sub/conftst$i.h
3784    done
3785    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3786
3787    # We check with `-c' and `-o' for the sake of the "dashmstdout"
3788    # mode.  It turns out that the SunPro C++ compiler does not properly
3789    # handle `-M -o', and we need to detect this.  Also, some Intel
3790    # versions had trouble with output in subdirs
3791    am__obj=sub/conftest.${OBJEXT-o}
3792    am__minus_obj="-o $am__obj"
3793    case $depmode in
3794    gcc)
3795      # This depmode causes a compiler race in universal mode.
3796      test "$am__universal" = false || continue
3797      ;;
3798    nosideeffect)
3799      # after this tag, mechanisms are not by side-effect, so they'll
3800      # only be used when explicitly requested
3801      if test "x$enable_dependency_tracking" = xyes; then
3802	continue
3803      else
3804	break
3805      fi
3806      ;;
3807    msvisualcpp | msvcmsys)
3808      # This compiler won't grok `-c -o', but also, the minuso test has
3809      # not run yet.  These depmodes are late enough in the game, and
3810      # so weak that their functioning should not be impacted.
3811      am__obj=conftest.${OBJEXT-o}
3812      am__minus_obj=
3813      ;;
3814    none) break ;;
3815    esac
3816    if depmode=$depmode \
3817       source=sub/conftest.c object=$am__obj \
3818       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3819       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3820         >/dev/null 2>conftest.err &&
3821       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3822       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3823       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
3824       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3825      # icc doesn't choke on unknown options, it will just issue warnings
3826      # or remarks (even with -Werror).  So we grep stderr for any message
3827      # that says an option was ignored or not supported.
3828      # When given -MP, icc 7.0 and 7.1 complain thusly:
3829      #   icc: Command line warning: ignoring option '-M'; no argument required
3830      # The diagnosis changed in icc 8.0:
3831      #   icc: Command line remark: option '-MP' not supported
3832      if (grep 'ignoring option' conftest.err ||
3833          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3834        am_cv_CC_dependencies_compiler_type=$depmode
3835        break
3836      fi
3837    fi
3838  done
3839
3840  cd ..
3841  rm -rf conftest.dir
3842else
3843  am_cv_CC_dependencies_compiler_type=none
3844fi
3845
3846fi
3847{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
3848$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
3849CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3850
3851 if
3852  test "x$enable_dependency_tracking" != xno \
3853  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3854  am__fastdepCC_TRUE=
3855  am__fastdepCC_FALSE='#'
3856else
3857  am__fastdepCC_TRUE='#'
3858  am__fastdepCC_FALSE=
3859fi
3860
3861
3862
3863# Check whether --enable-largefile was given.
3864if test "${enable_largefile+set}" = set; then :
3865  enableval=$enable_largefile;
3866fi
3867
3868if test "$enable_largefile" != no; then
3869
3870  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
3871$as_echo_n "checking for special C compiler options needed for large files... " >&6; }
3872if test "${ac_cv_sys_largefile_CC+set}" = set; then :
3873  $as_echo_n "(cached) " >&6
3874else
3875  ac_cv_sys_largefile_CC=no
3876     if test "$GCC" != yes; then
3877       ac_save_CC=$CC
3878       while :; do
3879	 # IRIX 6.2 and later do not support large files by default,
3880	 # so use the C compiler's -n32 option if that helps.
3881	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3882/* end confdefs.h.  */
3883#include <sys/types.h>
3884 /* Check that off_t can represent 2**63 - 1 correctly.
3885    We can't simply define LARGE_OFF_T to be 9223372036854775807,
3886    since some C++ compilers masquerading as C compilers
3887    incorrectly reject 9223372036854775807.  */
3888#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
3889  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
3890		       && LARGE_OFF_T % 2147483647 == 1)
3891		      ? 1 : -1];
3892int
3893main ()
3894{
3895
3896  ;
3897  return 0;
3898}
3899_ACEOF
3900	 if ac_fn_c_try_compile "$LINENO"; then :
3901  break
3902fi
3903rm -f core conftest.err conftest.$ac_objext
3904	 CC="$CC -n32"
3905	 if ac_fn_c_try_compile "$LINENO"; then :
3906  ac_cv_sys_largefile_CC=' -n32'; break
3907fi
3908rm -f core conftest.err conftest.$ac_objext
3909	 break
3910       done
3911       CC=$ac_save_CC
3912       rm -f conftest.$ac_ext
3913    fi
3914fi
3915{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
3916$as_echo "$ac_cv_sys_largefile_CC" >&6; }
3917  if test "$ac_cv_sys_largefile_CC" != no; then
3918    CC=$CC$ac_cv_sys_largefile_CC
3919  fi
3920
3921  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
3922$as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
3923if test "${ac_cv_sys_file_offset_bits+set}" = set; then :
3924  $as_echo_n "(cached) " >&6
3925else
3926  while :; do
3927  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3928/* end confdefs.h.  */
3929#include <sys/types.h>
3930 /* Check that off_t can represent 2**63 - 1 correctly.
3931    We can't simply define LARGE_OFF_T to be 9223372036854775807,
3932    since some C++ compilers masquerading as C compilers
3933    incorrectly reject 9223372036854775807.  */
3934#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
3935  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
3936		       && LARGE_OFF_T % 2147483647 == 1)
3937		      ? 1 : -1];
3938int
3939main ()
3940{
3941
3942  ;
3943  return 0;
3944}
3945_ACEOF
3946if ac_fn_c_try_compile "$LINENO"; then :
3947  ac_cv_sys_file_offset_bits=no; break
3948fi
3949rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3950  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3951/* end confdefs.h.  */
3952#define _FILE_OFFSET_BITS 64
3953#include <sys/types.h>
3954 /* Check that off_t can represent 2**63 - 1 correctly.
3955    We can't simply define LARGE_OFF_T to be 9223372036854775807,
3956    since some C++ compilers masquerading as C compilers
3957    incorrectly reject 9223372036854775807.  */
3958#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
3959  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
3960		       && LARGE_OFF_T % 2147483647 == 1)
3961		      ? 1 : -1];
3962int
3963main ()
3964{
3965
3966  ;
3967  return 0;
3968}
3969_ACEOF
3970if ac_fn_c_try_compile "$LINENO"; then :
3971  ac_cv_sys_file_offset_bits=64; break
3972fi
3973rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3974  ac_cv_sys_file_offset_bits=unknown
3975  break
3976done
3977fi
3978{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
3979$as_echo "$ac_cv_sys_file_offset_bits" >&6; }
3980case $ac_cv_sys_file_offset_bits in #(
3981  no | unknown) ;;
3982  *)
3983cat >>confdefs.h <<_ACEOF
3984#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
3985_ACEOF
3986;;
3987esac
3988rm -rf conftest*
3989  if test $ac_cv_sys_file_offset_bits = unknown; then
3990    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
3991$as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
3992if test "${ac_cv_sys_large_files+set}" = set; then :
3993  $as_echo_n "(cached) " >&6
3994else
3995  while :; do
3996  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3997/* end confdefs.h.  */
3998#include <sys/types.h>
3999 /* Check that off_t can represent 2**63 - 1 correctly.
4000    We can't simply define LARGE_OFF_T to be 9223372036854775807,
4001    since some C++ compilers masquerading as C compilers
4002    incorrectly reject 9223372036854775807.  */
4003#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4004  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4005		       && LARGE_OFF_T % 2147483647 == 1)
4006		      ? 1 : -1];
4007int
4008main ()
4009{
4010
4011  ;
4012  return 0;
4013}
4014_ACEOF
4015if ac_fn_c_try_compile "$LINENO"; then :
4016  ac_cv_sys_large_files=no; break
4017fi
4018rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4019  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4020/* end confdefs.h.  */
4021#define _LARGE_FILES 1
4022#include <sys/types.h>
4023 /* Check that off_t can represent 2**63 - 1 correctly.
4024    We can't simply define LARGE_OFF_T to be 9223372036854775807,
4025    since some C++ compilers masquerading as C compilers
4026    incorrectly reject 9223372036854775807.  */
4027#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4028  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4029		       && LARGE_OFF_T % 2147483647 == 1)
4030		      ? 1 : -1];
4031int
4032main ()
4033{
4034
4035  ;
4036  return 0;
4037}
4038_ACEOF
4039if ac_fn_c_try_compile "$LINENO"; then :
4040  ac_cv_sys_large_files=1; break
4041fi
4042rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4043  ac_cv_sys_large_files=unknown
4044  break
4045done
4046fi
4047{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
4048$as_echo "$ac_cv_sys_large_files" >&6; }
4049case $ac_cv_sys_large_files in #(
4050  no | unknown) ;;
4051  *)
4052cat >>confdefs.h <<_ACEOF
4053#define _LARGE_FILES $ac_cv_sys_large_files
4054_ACEOF
4055;;
4056esac
4057rm -rf conftest*
4058  fi
4059fi
4060
4061ac_lto_plugin_warn_cflags=
4062save_CFLAGS="$CFLAGS"
4063for real_option in -Wall; do
4064  # Do the check with the no- prefix removed since gcc silently
4065  # accepts any -Wno-* option on purpose
4066  case $real_option in
4067    -Wno-*) option=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
4068    *) option=$real_option ;;
4069  esac
4070  as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
4071
4072  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
4073$as_echo_n "checking whether $CC supports $option... " >&6; }
4074if { as_var=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
4075  $as_echo_n "(cached) " >&6
4076else
4077  CFLAGS="$option"
4078    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4079/* end confdefs.h.  */
4080
4081int
4082main ()
4083{
4084
4085  ;
4086  return 0;
4087}
4088_ACEOF
4089if ac_fn_c_try_compile "$LINENO"; then :
4090  eval "$as_acx_Woption=yes"
4091else
4092  eval "$as_acx_Woption=no"
4093fi
4094rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4095
4096fi
4097eval ac_res=\$$as_acx_Woption
4098	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
4099$as_echo "$ac_res" >&6; }
4100  if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
4101  ac_lto_plugin_warn_cflags="$ac_lto_plugin_warn_cflags${ac_lto_plugin_warn_cflags:+ }$real_option"
4102fi
4103  done
4104CFLAGS="$save_CFLAGS"
4105
4106
4107# Check whether -static-libgcc is supported.
4108saved_LDFLAGS="$LDFLAGS"
4109LDFLAGS="$LDFLAGS -static-libgcc"
4110{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for -static-libgcc" >&5
4111$as_echo_n "checking for -static-libgcc... " >&6; }
4112cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4113/* end confdefs.h.  */
4114
4115  int main() {}
4116_ACEOF
4117if ac_fn_c_try_link "$LINENO"; then :
4118  have_static_libgcc=yes
4119else
4120  have_static_libgcc=no
4121fi
4122rm -f core conftest.err conftest.$ac_objext \
4123    conftest$ac_exeext conftest.$ac_ext
4124{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_static_libgcc" >&5
4125$as_echo "$have_static_libgcc" >&6; };
4126LDFLAGS="$saved_LDFLAGS"
4127# Need -Wc to get it through libtool.
4128if test "x$have_static_libgcc" = xyes; then
4129   ac_lto_plugin_ldflags="-Wc,-static-libgcc"
4130fi
4131
4132
4133if test x"$host_subdir" = x.; then
4134   gcc_build_dir=../gcc
4135else
4136   gcc_build_dir=../../$host_subdir/gcc
4137fi
4138
4139
4140# Used for constructing correct paths for offload compilers.
4141accel_dir_suffix=
4142real_target_noncanonical=${target_noncanonical}
4143if test x"$enable_as_accelerator_for" != x; then
4144  accel_dir_suffix=/accel/${target_noncanonical}
4145  real_target_noncanonical=${enable_as_accelerator_for}
4146fi
4147
4148
4149
4150case `pwd` in
4151  *\ * | *\	*)
4152    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
4153$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
4154esac
4155
4156
4157
4158macro_version='2.2.7a'
4159macro_revision='1.3134'
4160
4161
4162
4163
4164
4165
4166
4167
4168
4169
4170
4171
4172
4173ltmain="$ac_aux_dir/ltmain.sh"
4174
4175# Backslashify metacharacters that are still active within
4176# double-quoted strings.
4177sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
4178
4179# Same as above, but do not quote variable references.
4180double_quote_subst='s/\(["`\\]\)/\\\1/g'
4181
4182# Sed substitution to delay expansion of an escaped shell variable in a
4183# double_quote_subst'ed string.
4184delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
4185
4186# Sed substitution to delay expansion of an escaped single quote.
4187delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
4188
4189# Sed substitution to avoid accidental globbing in evaled expressions
4190no_glob_subst='s/\*/\\\*/g'
4191
4192ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
4193ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
4194ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
4195
4196{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
4197$as_echo_n "checking how to print strings... " >&6; }
4198# Test print first, because it will be a builtin if present.
4199if test "X`print -r -- -n 2>/dev/null`" = X-n && \
4200   test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
4201  ECHO='print -r --'
4202elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
4203  ECHO='printf %s\n'
4204else
4205  # Use this function as a fallback that always works.
4206  func_fallback_echo ()
4207  {
4208    eval 'cat <<_LTECHO_EOF
4209$1
4210_LTECHO_EOF'
4211  }
4212  ECHO='func_fallback_echo'
4213fi
4214
4215# func_echo_all arg...
4216# Invoke $ECHO with all args, space-separated.
4217func_echo_all ()
4218{
4219    $ECHO ""
4220}
4221
4222case "$ECHO" in
4223  printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
4224$as_echo "printf" >&6; } ;;
4225  print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
4226$as_echo "print -r" >&6; } ;;
4227  *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
4228$as_echo "cat" >&6; } ;;
4229esac
4230
4231
4232
4233
4234
4235
4236
4237
4238
4239
4240
4241
4242
4243
4244{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4245$as_echo_n "checking for a sed that does not truncate output... " >&6; }
4246if test "${ac_cv_path_SED+set}" = set; then :
4247  $as_echo_n "(cached) " >&6
4248else
4249            ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4250     for ac_i in 1 2 3 4 5 6 7; do
4251       ac_script="$ac_script$as_nl$ac_script"
4252     done
4253     echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4254     { ac_script=; unset ac_script;}
4255     if test -z "$SED"; then
4256  ac_path_SED_found=false
4257  # Loop through the user's path and test for each of PROGNAME-LIST
4258  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4259for as_dir in $PATH
4260do
4261  IFS=$as_save_IFS
4262  test -z "$as_dir" && as_dir=.
4263    for ac_prog in sed gsed; do
4264    for ac_exec_ext in '' $ac_executable_extensions; do
4265      ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4266      { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
4267# Check for GNU ac_path_SED and select it if it is found.
4268  # Check for GNU $ac_path_SED
4269case `"$ac_path_SED" --version 2>&1` in
4270*GNU*)
4271  ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4272*)
4273  ac_count=0
4274  $as_echo_n 0123456789 >"conftest.in"
4275  while :
4276  do
4277    cat "conftest.in" "conftest.in" >"conftest.tmp"
4278    mv "conftest.tmp" "conftest.in"
4279    cp "conftest.in" "conftest.nl"
4280    $as_echo '' >> "conftest.nl"
4281    "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4282    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4283    as_fn_arith $ac_count + 1 && ac_count=$as_val
4284    if test $ac_count -gt ${ac_path_SED_max-0}; then
4285      # Best one so far, save it but keep looking for a better one
4286      ac_cv_path_SED="$ac_path_SED"
4287      ac_path_SED_max=$ac_count
4288    fi
4289    # 10*(2^10) chars as input seems more than enough
4290    test $ac_count -gt 10 && break
4291  done
4292  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4293esac
4294
4295      $ac_path_SED_found && break 3
4296    done
4297  done
4298  done
4299IFS=$as_save_IFS
4300  if test -z "$ac_cv_path_SED"; then
4301    as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
4302  fi
4303else
4304  ac_cv_path_SED=$SED
4305fi
4306
4307fi
4308{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4309$as_echo "$ac_cv_path_SED" >&6; }
4310 SED="$ac_cv_path_SED"
4311  rm -f conftest.sed
4312
4313test -z "$SED" && SED=sed
4314Xsed="$SED -e 1s/^X//"
4315
4316
4317
4318
4319
4320
4321
4322
4323
4324
4325
4326{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4327$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4328if test "${ac_cv_path_GREP+set}" = set; then :
4329  $as_echo_n "(cached) " >&6
4330else
4331  if test -z "$GREP"; then
4332  ac_path_GREP_found=false
4333  # Loop through the user's path and test for each of PROGNAME-LIST
4334  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4335for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4336do
4337  IFS=$as_save_IFS
4338  test -z "$as_dir" && as_dir=.
4339    for ac_prog in grep ggrep; do
4340    for ac_exec_ext in '' $ac_executable_extensions; do
4341      ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4342      { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4343# Check for GNU ac_path_GREP and select it if it is found.
4344  # Check for GNU $ac_path_GREP
4345case `"$ac_path_GREP" --version 2>&1` in
4346*GNU*)
4347  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4348*)
4349  ac_count=0
4350  $as_echo_n 0123456789 >"conftest.in"
4351  while :
4352  do
4353    cat "conftest.in" "conftest.in" >"conftest.tmp"
4354    mv "conftest.tmp" "conftest.in"
4355    cp "conftest.in" "conftest.nl"
4356    $as_echo 'GREP' >> "conftest.nl"
4357    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4358    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4359    as_fn_arith $ac_count + 1 && ac_count=$as_val
4360    if test $ac_count -gt ${ac_path_GREP_max-0}; then
4361      # Best one so far, save it but keep looking for a better one
4362      ac_cv_path_GREP="$ac_path_GREP"
4363      ac_path_GREP_max=$ac_count
4364    fi
4365    # 10*(2^10) chars as input seems more than enough
4366    test $ac_count -gt 10 && break
4367  done
4368  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4369esac
4370
4371      $ac_path_GREP_found && break 3
4372    done
4373  done
4374  done
4375IFS=$as_save_IFS
4376  if test -z "$ac_cv_path_GREP"; then
4377    as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4378  fi
4379else
4380  ac_cv_path_GREP=$GREP
4381fi
4382
4383fi
4384{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4385$as_echo "$ac_cv_path_GREP" >&6; }
4386 GREP="$ac_cv_path_GREP"
4387
4388
4389{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4390$as_echo_n "checking for egrep... " >&6; }
4391if test "${ac_cv_path_EGREP+set}" = set; then :
4392  $as_echo_n "(cached) " >&6
4393else
4394  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4395   then ac_cv_path_EGREP="$GREP -E"
4396   else
4397     if test -z "$EGREP"; then
4398  ac_path_EGREP_found=false
4399  # Loop through the user's path and test for each of PROGNAME-LIST
4400  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4401for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4402do
4403  IFS=$as_save_IFS
4404  test -z "$as_dir" && as_dir=.
4405    for ac_prog in egrep; do
4406    for ac_exec_ext in '' $ac_executable_extensions; do
4407      ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4408      { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4409# Check for GNU ac_path_EGREP and select it if it is found.
4410  # Check for GNU $ac_path_EGREP
4411case `"$ac_path_EGREP" --version 2>&1` in
4412*GNU*)
4413  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4414*)
4415  ac_count=0
4416  $as_echo_n 0123456789 >"conftest.in"
4417  while :
4418  do
4419    cat "conftest.in" "conftest.in" >"conftest.tmp"
4420    mv "conftest.tmp" "conftest.in"
4421    cp "conftest.in" "conftest.nl"
4422    $as_echo 'EGREP' >> "conftest.nl"
4423    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4424    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4425    as_fn_arith $ac_count + 1 && ac_count=$as_val
4426    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4427      # Best one so far, save it but keep looking for a better one
4428      ac_cv_path_EGREP="$ac_path_EGREP"
4429      ac_path_EGREP_max=$ac_count
4430    fi
4431    # 10*(2^10) chars as input seems more than enough
4432    test $ac_count -gt 10 && break
4433  done
4434  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4435esac
4436
4437      $ac_path_EGREP_found && break 3
4438    done
4439  done
4440  done
4441IFS=$as_save_IFS
4442  if test -z "$ac_cv_path_EGREP"; then
4443    as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4444  fi
4445else
4446  ac_cv_path_EGREP=$EGREP
4447fi
4448
4449   fi
4450fi
4451{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4452$as_echo "$ac_cv_path_EGREP" >&6; }
4453 EGREP="$ac_cv_path_EGREP"
4454
4455
4456{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4457$as_echo_n "checking for fgrep... " >&6; }
4458if test "${ac_cv_path_FGREP+set}" = set; then :
4459  $as_echo_n "(cached) " >&6
4460else
4461  if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4462   then ac_cv_path_FGREP="$GREP -F"
4463   else
4464     if test -z "$FGREP"; then
4465  ac_path_FGREP_found=false
4466  # Loop through the user's path and test for each of PROGNAME-LIST
4467  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4468for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4469do
4470  IFS=$as_save_IFS
4471  test -z "$as_dir" && as_dir=.
4472    for ac_prog in fgrep; do
4473    for ac_exec_ext in '' $ac_executable_extensions; do
4474      ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4475      { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
4476# Check for GNU ac_path_FGREP and select it if it is found.
4477  # Check for GNU $ac_path_FGREP
4478case `"$ac_path_FGREP" --version 2>&1` in
4479*GNU*)
4480  ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4481*)
4482  ac_count=0
4483  $as_echo_n 0123456789 >"conftest.in"
4484  while :
4485  do
4486    cat "conftest.in" "conftest.in" >"conftest.tmp"
4487    mv "conftest.tmp" "conftest.in"
4488    cp "conftest.in" "conftest.nl"
4489    $as_echo 'FGREP' >> "conftest.nl"
4490    "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4491    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4492    as_fn_arith $ac_count + 1 && ac_count=$as_val
4493    if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4494      # Best one so far, save it but keep looking for a better one
4495      ac_cv_path_FGREP="$ac_path_FGREP"
4496      ac_path_FGREP_max=$ac_count
4497    fi
4498    # 10*(2^10) chars as input seems more than enough
4499    test $ac_count -gt 10 && break
4500  done
4501  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4502esac
4503
4504      $ac_path_FGREP_found && break 3
4505    done
4506  done
4507  done
4508IFS=$as_save_IFS
4509  if test -z "$ac_cv_path_FGREP"; then
4510    as_fn_error "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4511  fi
4512else
4513  ac_cv_path_FGREP=$FGREP
4514fi
4515
4516   fi
4517fi
4518{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
4519$as_echo "$ac_cv_path_FGREP" >&6; }
4520 FGREP="$ac_cv_path_FGREP"
4521
4522
4523test -z "$GREP" && GREP=grep
4524
4525
4526
4527
4528
4529
4530
4531
4532
4533
4534
4535
4536
4537
4538
4539
4540
4541
4542
4543# Check whether --with-gnu-ld was given.
4544if test "${with_gnu_ld+set}" = set; then :
4545  withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4546else
4547  with_gnu_ld=no
4548fi
4549
4550ac_prog=ld
4551if test "$GCC" = yes; then
4552  # Check if gcc -print-prog-name=ld gives a path.
4553  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
4554$as_echo_n "checking for ld used by $CC... " >&6; }
4555  case $host in
4556  *-*-mingw*)
4557    # gcc leaves a trailing carriage return which upsets mingw
4558    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4559  *)
4560    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4561  esac
4562  case $ac_prog in
4563    # Accept absolute paths.
4564    [\\/]* | ?:[\\/]*)
4565      re_direlt='/[^/][^/]*/\.\./'
4566      # Canonicalize the pathname of ld
4567      ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4568      while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4569	ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4570      done
4571      test -z "$LD" && LD="$ac_prog"
4572      ;;
4573  "")
4574    # If it fails, then pretend we aren't using GCC.
4575    ac_prog=ld
4576    ;;
4577  *)
4578    # If it is relative, then search for the first ld in PATH.
4579    with_gnu_ld=unknown
4580    ;;
4581  esac
4582elif test "$with_gnu_ld" = yes; then
4583  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
4584$as_echo_n "checking for GNU ld... " >&6; }
4585else
4586  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
4587$as_echo_n "checking for non-GNU ld... " >&6; }
4588fi
4589if test "${lt_cv_path_LD+set}" = set; then :
4590  $as_echo_n "(cached) " >&6
4591else
4592  if test -z "$LD"; then
4593  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4594  for ac_dir in $PATH; do
4595    IFS="$lt_save_ifs"
4596    test -z "$ac_dir" && ac_dir=.
4597    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4598      lt_cv_path_LD="$ac_dir/$ac_prog"
4599      # Check to see if the program is GNU ld.  I'd rather use --version,
4600      # but apparently some variants of GNU ld only accept -v.
4601      # Break only if it was the GNU/non-GNU ld that we prefer.
4602      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4603      *GNU* | *'with BFD'*)
4604	test "$with_gnu_ld" != no && break
4605	;;
4606      *)
4607	test "$with_gnu_ld" != yes && break
4608	;;
4609      esac
4610    fi
4611  done
4612  IFS="$lt_save_ifs"
4613else
4614  lt_cv_path_LD="$LD" # Let the user override the test with a path.
4615fi
4616fi
4617
4618LD="$lt_cv_path_LD"
4619if test -n "$LD"; then
4620  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
4621$as_echo "$LD" >&6; }
4622else
4623  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4624$as_echo "no" >&6; }
4625fi
4626test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
4627{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
4628$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4629if test "${lt_cv_prog_gnu_ld+set}" = set; then :
4630  $as_echo_n "(cached) " >&6
4631else
4632  # I'd rather use --version here, but apparently some GNU lds only accept -v.
4633case `$LD -v 2>&1 </dev/null` in
4634*GNU* | *'with BFD'*)
4635  lt_cv_prog_gnu_ld=yes
4636  ;;
4637*)
4638  lt_cv_prog_gnu_ld=no
4639  ;;
4640esac
4641fi
4642{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
4643$as_echo "$lt_cv_prog_gnu_ld" >&6; }
4644with_gnu_ld=$lt_cv_prog_gnu_ld
4645
4646
4647
4648
4649
4650
4651
4652
4653
4654{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
4655$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
4656if test "${lt_cv_path_NM+set}" = set; then :
4657  $as_echo_n "(cached) " >&6
4658else
4659  if test -n "$NM"; then
4660  # Let the user override the test.
4661  lt_cv_path_NM="$NM"
4662else
4663  lt_nm_to_check="${ac_tool_prefix}nm"
4664  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4665    lt_nm_to_check="$lt_nm_to_check nm"
4666  fi
4667  for lt_tmp_nm in $lt_nm_to_check; do
4668    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4669    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4670      IFS="$lt_save_ifs"
4671      test -z "$ac_dir" && ac_dir=.
4672      tmp_nm="$ac_dir/$lt_tmp_nm"
4673      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4674	# Check to see if the nm accepts a BSD-compat flag.
4675	# Adding the `sed 1q' prevents false positives on HP-UX, which says:
4676	#   nm: unknown option "B" ignored
4677	# Tru64's nm complains that /dev/null is an invalid object file
4678	case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4679	*/dev/null* | *'Invalid file or object type'*)
4680	  lt_cv_path_NM="$tmp_nm -B"
4681	  break
4682	  ;;
4683	*)
4684	  case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4685	  */dev/null*)
4686	    lt_cv_path_NM="$tmp_nm -p"
4687	    break
4688	    ;;
4689	  *)
4690	    lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4691	    continue # so that we can try to find one that supports BSD flags
4692	    ;;
4693	  esac
4694	  ;;
4695	esac
4696      fi
4697    done
4698    IFS="$lt_save_ifs"
4699  done
4700  : ${lt_cv_path_NM=no}
4701fi
4702fi
4703{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
4704$as_echo "$lt_cv_path_NM" >&6; }
4705if test "$lt_cv_path_NM" != "no"; then
4706  NM="$lt_cv_path_NM"
4707else
4708  # Didn't find any BSD compatible name lister, look for dumpbin.
4709  if test -n "$DUMPBIN"; then :
4710    # Let the user override the test.
4711  else
4712    if test -n "$ac_tool_prefix"; then
4713  for ac_prog in dumpbin "link -dump"
4714  do
4715    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4716set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4717{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4718$as_echo_n "checking for $ac_word... " >&6; }
4719if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
4720  $as_echo_n "(cached) " >&6
4721else
4722  if test -n "$DUMPBIN"; then
4723  ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
4724else
4725as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4726for as_dir in $PATH
4727do
4728  IFS=$as_save_IFS
4729  test -z "$as_dir" && as_dir=.
4730    for ac_exec_ext in '' $ac_executable_extensions; do
4731  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4732    ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
4733    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4734    break 2
4735  fi
4736done
4737  done
4738IFS=$as_save_IFS
4739
4740fi
4741fi
4742DUMPBIN=$ac_cv_prog_DUMPBIN
4743if test -n "$DUMPBIN"; then
4744  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
4745$as_echo "$DUMPBIN" >&6; }
4746else
4747  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4748$as_echo "no" >&6; }
4749fi
4750
4751
4752    test -n "$DUMPBIN" && break
4753  done
4754fi
4755if test -z "$DUMPBIN"; then
4756  ac_ct_DUMPBIN=$DUMPBIN
4757  for ac_prog in dumpbin "link -dump"
4758do
4759  # Extract the first word of "$ac_prog", so it can be a program name with args.
4760set dummy $ac_prog; ac_word=$2
4761{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4762$as_echo_n "checking for $ac_word... " >&6; }
4763if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
4764  $as_echo_n "(cached) " >&6
4765else
4766  if test -n "$ac_ct_DUMPBIN"; then
4767  ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
4768else
4769as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4770for as_dir in $PATH
4771do
4772  IFS=$as_save_IFS
4773  test -z "$as_dir" && as_dir=.
4774    for ac_exec_ext in '' $ac_executable_extensions; do
4775  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4776    ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
4777    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4778    break 2
4779  fi
4780done
4781  done
4782IFS=$as_save_IFS
4783
4784fi
4785fi
4786ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
4787if test -n "$ac_ct_DUMPBIN"; then
4788  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
4789$as_echo "$ac_ct_DUMPBIN" >&6; }
4790else
4791  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4792$as_echo "no" >&6; }
4793fi
4794
4795
4796  test -n "$ac_ct_DUMPBIN" && break
4797done
4798
4799  if test "x$ac_ct_DUMPBIN" = x; then
4800    DUMPBIN=":"
4801  else
4802    case $cross_compiling:$ac_tool_warned in
4803yes:)
4804{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4805$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4806ac_tool_warned=yes ;;
4807esac
4808    DUMPBIN=$ac_ct_DUMPBIN
4809  fi
4810fi
4811
4812    case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
4813    *COFF*)
4814      DUMPBIN="$DUMPBIN -symbols"
4815      ;;
4816    *)
4817      DUMPBIN=:
4818      ;;
4819    esac
4820  fi
4821
4822  if test "$DUMPBIN" != ":"; then
4823    NM="$DUMPBIN"
4824  fi
4825fi
4826test -z "$NM" && NM=nm
4827
4828
4829
4830
4831
4832
4833{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
4834$as_echo_n "checking the name lister ($NM) interface... " >&6; }
4835if test "${lt_cv_nm_interface+set}" = set; then :
4836  $as_echo_n "(cached) " >&6
4837else
4838  lt_cv_nm_interface="BSD nm"
4839  echo "int some_variable = 0;" > conftest.$ac_ext
4840  (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
4841  (eval "$ac_compile" 2>conftest.err)
4842  cat conftest.err >&5
4843  (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
4844  (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
4845  cat conftest.err >&5
4846  (eval echo "\"\$as_me:$LINENO: output\"" >&5)
4847  cat conftest.out >&5
4848  if $GREP 'External.*some_variable' conftest.out > /dev/null; then
4849    lt_cv_nm_interface="MS dumpbin"
4850  fi
4851  rm -f conftest*
4852fi
4853{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
4854$as_echo "$lt_cv_nm_interface" >&6; }
4855
4856{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
4857$as_echo_n "checking whether ln -s works... " >&6; }
4858LN_S=$as_ln_s
4859if test "$LN_S" = "ln -s"; then
4860  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4861$as_echo "yes" >&6; }
4862else
4863  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
4864$as_echo "no, using $LN_S" >&6; }
4865fi
4866
4867# find the maximum length of command line arguments
4868{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
4869$as_echo_n "checking the maximum length of command line arguments... " >&6; }
4870if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
4871  $as_echo_n "(cached) " >&6
4872else
4873    i=0
4874  teststring="ABCD"
4875
4876  case $build_os in
4877  msdosdjgpp*)
4878    # On DJGPP, this test can blow up pretty badly due to problems in libc
4879    # (any single argument exceeding 2000 bytes causes a buffer overrun
4880    # during glob expansion).  Even if it were fixed, the result of this
4881    # check would be larger than it should be.
4882    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
4883    ;;
4884
4885  gnu*)
4886    # Under GNU Hurd, this test is not required because there is
4887    # no limit to the length of command line arguments.
4888    # Libtool will interpret -1 as no limit whatsoever
4889    lt_cv_sys_max_cmd_len=-1;
4890    ;;
4891
4892  cygwin* | mingw* | cegcc*)
4893    # On Win9x/ME, this test blows up -- it succeeds, but takes
4894    # about 5 minutes as the teststring grows exponentially.
4895    # Worse, since 9x/ME are not pre-emptively multitasking,
4896    # you end up with a "frozen" computer, even though with patience
4897    # the test eventually succeeds (with a max line length of 256k).
4898    # Instead, let's just punt: use the minimum linelength reported by
4899    # all of the supported platforms: 8192 (on NT/2K/XP).
4900    lt_cv_sys_max_cmd_len=8192;
4901    ;;
4902
4903  mint*)
4904    # On MiNT this can take a long time and run out of memory.
4905    lt_cv_sys_max_cmd_len=8192;
4906    ;;
4907
4908  amigaos*)
4909    # On AmigaOS with pdksh, this test takes hours, literally.
4910    # So we just punt and use a minimum line length of 8192.
4911    lt_cv_sys_max_cmd_len=8192;
4912    ;;
4913
4914  netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
4915    # This has been around since 386BSD, at least.  Likely further.
4916    if test -x /sbin/sysctl; then
4917      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
4918    elif test -x /usr/sbin/sysctl; then
4919      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
4920    else
4921      lt_cv_sys_max_cmd_len=65536	# usable default for all BSDs
4922    fi
4923    # And add a safety zone
4924    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4925    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4926    ;;
4927
4928  interix*)
4929    # We know the value 262144 and hardcode it with a safety zone (like BSD)
4930    lt_cv_sys_max_cmd_len=196608
4931    ;;
4932
4933  osf*)
4934    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
4935    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
4936    # nice to cause kernel panics so lets avoid the loop below.
4937    # First set a reasonable default.
4938    lt_cv_sys_max_cmd_len=16384
4939    #
4940    if test -x /sbin/sysconfig; then
4941      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
4942        *1*) lt_cv_sys_max_cmd_len=-1 ;;
4943      esac
4944    fi
4945    ;;
4946  sco3.2v5*)
4947    lt_cv_sys_max_cmd_len=102400
4948    ;;
4949  sysv5* | sco5v6* | sysv4.2uw2*)
4950    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
4951    if test -n "$kargmax"; then
4952      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[	 ]//'`
4953    else
4954      lt_cv_sys_max_cmd_len=32768
4955    fi
4956    ;;
4957  *)
4958    lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
4959    if test -n "$lt_cv_sys_max_cmd_len"; then
4960      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4961      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4962    else
4963      # Make teststring a little bigger before we do anything with it.
4964      # a 1K string should be a reasonable start.
4965      for i in 1 2 3 4 5 6 7 8 ; do
4966        teststring=$teststring$teststring
4967      done
4968      SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
4969      # If test is not a shell built-in, we'll probably end up computing a
4970      # maximum length that is only half of the actual maximum length, but
4971      # we can't tell.
4972      while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
4973	         = "X$teststring$teststring"; } >/dev/null 2>&1 &&
4974	      test $i != 17 # 1/2 MB should be enough
4975      do
4976        i=`expr $i + 1`
4977        teststring=$teststring$teststring
4978      done
4979      # Only check the string length outside the loop.
4980      lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
4981      teststring=
4982      # Add a significant safety factor because C++ compilers can tack on
4983      # massive amounts of additional arguments before passing them to the
4984      # linker.  It appears as though 1/2 is a usable value.
4985      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
4986    fi
4987    ;;
4988  esac
4989
4990fi
4991
4992if test -n $lt_cv_sys_max_cmd_len ; then
4993  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
4994$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
4995else
4996  { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
4997$as_echo "none" >&6; }
4998fi
4999max_cmd_len=$lt_cv_sys_max_cmd_len
5000
5001
5002
5003
5004
5005
5006: ${CP="cp -f"}
5007: ${MV="mv -f"}
5008: ${RM="rm -f"}
5009
5010{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
5011$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
5012# Try some XSI features
5013xsi_shell=no
5014( _lt_dummy="a/b/c"
5015  test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
5016      = c,a/b,, \
5017    && eval 'test $(( 1 + 1 )) -eq 2 \
5018    && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
5019  && xsi_shell=yes
5020{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
5021$as_echo "$xsi_shell" >&6; }
5022
5023
5024{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
5025$as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
5026lt_shell_append=no
5027( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
5028    >/dev/null 2>&1 \
5029  && lt_shell_append=yes
5030{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
5031$as_echo "$lt_shell_append" >&6; }
5032
5033
5034if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5035  lt_unset=unset
5036else
5037  lt_unset=false
5038fi
5039
5040
5041
5042
5043
5044# test EBCDIC or ASCII
5045case `echo X|tr X '\101'` in
5046 A) # ASCII based system
5047    # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5048  lt_SP2NL='tr \040 \012'
5049  lt_NL2SP='tr \015\012 \040\040'
5050  ;;
5051 *) # EBCDIC based system
5052  lt_SP2NL='tr \100 \n'
5053  lt_NL2SP='tr \r\n \100\100'
5054  ;;
5055esac
5056
5057
5058
5059
5060
5061
5062
5063
5064
5065{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5066$as_echo_n "checking for $LD option to reload object files... " >&6; }
5067if test "${lt_cv_ld_reload_flag+set}" = set; then :
5068  $as_echo_n "(cached) " >&6
5069else
5070  lt_cv_ld_reload_flag='-r'
5071fi
5072{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5073$as_echo "$lt_cv_ld_reload_flag" >&6; }
5074reload_flag=$lt_cv_ld_reload_flag
5075case $reload_flag in
5076"" | " "*) ;;
5077*) reload_flag=" $reload_flag" ;;
5078esac
5079reload_cmds='$LD$reload_flag -o $output$reload_objs'
5080case $host_os in
5081  darwin*)
5082    if test "$GCC" = yes; then
5083      reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5084    else
5085      reload_cmds='$LD$reload_flag -o $output$reload_objs'
5086    fi
5087    ;;
5088esac
5089
5090
5091
5092
5093
5094
5095
5096
5097
5098if test -n "$ac_tool_prefix"; then
5099  # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5100set dummy ${ac_tool_prefix}objdump; ac_word=$2
5101{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5102$as_echo_n "checking for $ac_word... " >&6; }
5103if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
5104  $as_echo_n "(cached) " >&6
5105else
5106  if test -n "$OBJDUMP"; then
5107  ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5108else
5109as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5110for as_dir in $PATH
5111do
5112  IFS=$as_save_IFS
5113  test -z "$as_dir" && as_dir=.
5114    for ac_exec_ext in '' $ac_executable_extensions; do
5115  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5116    ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5117    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5118    break 2
5119  fi
5120done
5121  done
5122IFS=$as_save_IFS
5123
5124fi
5125fi
5126OBJDUMP=$ac_cv_prog_OBJDUMP
5127if test -n "$OBJDUMP"; then
5128  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5129$as_echo "$OBJDUMP" >&6; }
5130else
5131  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5132$as_echo "no" >&6; }
5133fi
5134
5135
5136fi
5137if test -z "$ac_cv_prog_OBJDUMP"; then
5138  ac_ct_OBJDUMP=$OBJDUMP
5139  # Extract the first word of "objdump", so it can be a program name with args.
5140set dummy objdump; ac_word=$2
5141{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5142$as_echo_n "checking for $ac_word... " >&6; }
5143if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
5144  $as_echo_n "(cached) " >&6
5145else
5146  if test -n "$ac_ct_OBJDUMP"; then
5147  ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5148else
5149as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5150for as_dir in $PATH
5151do
5152  IFS=$as_save_IFS
5153  test -z "$as_dir" && as_dir=.
5154    for ac_exec_ext in '' $ac_executable_extensions; do
5155  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5156    ac_cv_prog_ac_ct_OBJDUMP="objdump"
5157    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5158    break 2
5159  fi
5160done
5161  done
5162IFS=$as_save_IFS
5163
5164fi
5165fi
5166ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5167if test -n "$ac_ct_OBJDUMP"; then
5168  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5169$as_echo "$ac_ct_OBJDUMP" >&6; }
5170else
5171  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5172$as_echo "no" >&6; }
5173fi
5174
5175  if test "x$ac_ct_OBJDUMP" = x; then
5176    OBJDUMP="false"
5177  else
5178    case $cross_compiling:$ac_tool_warned in
5179yes:)
5180{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5181$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5182ac_tool_warned=yes ;;
5183esac
5184    OBJDUMP=$ac_ct_OBJDUMP
5185  fi
5186else
5187  OBJDUMP="$ac_cv_prog_OBJDUMP"
5188fi
5189
5190test -z "$OBJDUMP" && OBJDUMP=objdump
5191
5192
5193
5194
5195
5196
5197
5198
5199
5200{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5201$as_echo_n "checking how to recognize dependent libraries... " >&6; }
5202if test "${lt_cv_deplibs_check_method+set}" = set; then :
5203  $as_echo_n "(cached) " >&6
5204else
5205  lt_cv_file_magic_cmd='$MAGIC_CMD'
5206lt_cv_file_magic_test_file=
5207lt_cv_deplibs_check_method='unknown'
5208# Need to set the preceding variable on all platforms that support
5209# interlibrary dependencies.
5210# 'none' -- dependencies not supported.
5211# `unknown' -- same as none, but documents that we really don't know.
5212# 'pass_all' -- all dependencies passed with no checks.
5213# 'test_compile' -- check by making test program.
5214# 'file_magic [[regex]]' -- check by looking for files in library path
5215# which responds to the $file_magic_cmd with a given extended regex.
5216# If you have `file' or equivalent on your system and you're not sure
5217# whether `pass_all' will *always* work, you probably want this one.
5218
5219case $host_os in
5220aix[4-9]*)
5221  lt_cv_deplibs_check_method=pass_all
5222  ;;
5223
5224beos*)
5225  lt_cv_deplibs_check_method=pass_all
5226  ;;
5227
5228bsdi[45]*)
5229  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5230  lt_cv_file_magic_cmd='/usr/bin/file -L'
5231  lt_cv_file_magic_test_file=/shlib/libc.so
5232  ;;
5233
5234cygwin*)
5235  # func_win32_libid is a shell function defined in ltmain.sh
5236  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5237  lt_cv_file_magic_cmd='func_win32_libid'
5238  ;;
5239
5240mingw* | pw32*)
5241  # Base MSYS/MinGW do not provide the 'file' command needed by
5242  # func_win32_libid shell function, so use a weaker test based on 'objdump',
5243  # unless we find 'file', for example because we are cross-compiling.
5244  # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
5245  if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
5246    lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5247    lt_cv_file_magic_cmd='func_win32_libid'
5248  else
5249    lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
5250    lt_cv_file_magic_cmd='$OBJDUMP -f'
5251  fi
5252  ;;
5253
5254cegcc*)
5255  # use the weaker test based on 'objdump'. See mingw*.
5256  lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5257  lt_cv_file_magic_cmd='$OBJDUMP -f'
5258  ;;
5259
5260darwin* | rhapsody*)
5261  lt_cv_deplibs_check_method=pass_all
5262  ;;
5263
5264freebsd* | dragonfly*)
5265  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5266    case $host_cpu in
5267    i*86 )
5268      # Not sure whether the presence of OpenBSD here was a mistake.
5269      # Let's accept both of them until this is cleared up.
5270      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5271      lt_cv_file_magic_cmd=/usr/bin/file
5272      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5273      ;;
5274    esac
5275  else
5276    lt_cv_deplibs_check_method=pass_all
5277  fi
5278  ;;
5279
5280gnu*)
5281  lt_cv_deplibs_check_method=pass_all
5282  ;;
5283
5284haiku*)
5285  lt_cv_deplibs_check_method=pass_all
5286  ;;
5287
5288hpux10.20* | hpux11*)
5289  lt_cv_file_magic_cmd=/usr/bin/file
5290  case $host_cpu in
5291  ia64*)
5292    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5293    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5294    ;;
5295  hppa*64*)
5296    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]'
5297    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5298    ;;
5299  *)
5300    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
5301    lt_cv_file_magic_test_file=/usr/lib/libc.sl
5302    ;;
5303  esac
5304  ;;
5305
5306interix[3-9]*)
5307  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5308  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5309  ;;
5310
5311irix5* | irix6* | nonstopux*)
5312  case $LD in
5313  *-32|*"-32 ") libmagic=32-bit;;
5314  *-n32|*"-n32 ") libmagic=N32;;
5315  *-64|*"-64 ") libmagic=64-bit;;
5316  *) libmagic=never-match;;
5317  esac
5318  lt_cv_deplibs_check_method=pass_all
5319  ;;
5320
5321# This must be Linux ELF.
5322linux* | k*bsd*-gnu | kopensolaris*-gnu)
5323  lt_cv_deplibs_check_method=pass_all
5324  ;;
5325
5326netbsd*)
5327  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5328    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5329  else
5330    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5331  fi
5332  ;;
5333
5334newos6*)
5335  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5336  lt_cv_file_magic_cmd=/usr/bin/file
5337  lt_cv_file_magic_test_file=/usr/lib/libnls.so
5338  ;;
5339
5340*nto* | *qnx*)
5341  lt_cv_deplibs_check_method=pass_all
5342  ;;
5343
5344openbsd*)
5345  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5346    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5347  else
5348    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5349  fi
5350  ;;
5351
5352osf3* | osf4* | osf5*)
5353  lt_cv_deplibs_check_method=pass_all
5354  ;;
5355
5356rdos*)
5357  lt_cv_deplibs_check_method=pass_all
5358  ;;
5359
5360solaris*)
5361  lt_cv_deplibs_check_method=pass_all
5362  ;;
5363
5364sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5365  lt_cv_deplibs_check_method=pass_all
5366  ;;
5367
5368sysv4 | sysv4.3*)
5369  case $host_vendor in
5370  motorola)
5371    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]'
5372    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5373    ;;
5374  ncr)
5375    lt_cv_deplibs_check_method=pass_all
5376    ;;
5377  sequent)
5378    lt_cv_file_magic_cmd='/bin/file'
5379    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5380    ;;
5381  sni)
5382    lt_cv_file_magic_cmd='/bin/file'
5383    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5384    lt_cv_file_magic_test_file=/lib/libc.so
5385    ;;
5386  siemens)
5387    lt_cv_deplibs_check_method=pass_all
5388    ;;
5389  pc)
5390    lt_cv_deplibs_check_method=pass_all
5391    ;;
5392  esac
5393  ;;
5394
5395tpf*)
5396  lt_cv_deplibs_check_method=pass_all
5397  ;;
5398esac
5399
5400fi
5401{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
5402$as_echo "$lt_cv_deplibs_check_method" >&6; }
5403file_magic_cmd=$lt_cv_file_magic_cmd
5404deplibs_check_method=$lt_cv_deplibs_check_method
5405test -z "$deplibs_check_method" && deplibs_check_method=unknown
5406
5407
5408
5409
5410
5411
5412
5413
5414
5415
5416
5417
5418if test -n "$ac_tool_prefix"; then
5419  # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5420set dummy ${ac_tool_prefix}ar; ac_word=$2
5421{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5422$as_echo_n "checking for $ac_word... " >&6; }
5423if test "${ac_cv_prog_AR+set}" = set; then :
5424  $as_echo_n "(cached) " >&6
5425else
5426  if test -n "$AR"; then
5427  ac_cv_prog_AR="$AR" # Let the user override the test.
5428else
5429as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5430for as_dir in $PATH
5431do
5432  IFS=$as_save_IFS
5433  test -z "$as_dir" && as_dir=.
5434    for ac_exec_ext in '' $ac_executable_extensions; do
5435  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5436    ac_cv_prog_AR="${ac_tool_prefix}ar"
5437    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5438    break 2
5439  fi
5440done
5441  done
5442IFS=$as_save_IFS
5443
5444fi
5445fi
5446AR=$ac_cv_prog_AR
5447if test -n "$AR"; then
5448  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5449$as_echo "$AR" >&6; }
5450else
5451  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5452$as_echo "no" >&6; }
5453fi
5454
5455
5456fi
5457if test -z "$ac_cv_prog_AR"; then
5458  ac_ct_AR=$AR
5459  # Extract the first word of "ar", so it can be a program name with args.
5460set dummy ar; ac_word=$2
5461{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5462$as_echo_n "checking for $ac_word... " >&6; }
5463if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
5464  $as_echo_n "(cached) " >&6
5465else
5466  if test -n "$ac_ct_AR"; then
5467  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5468else
5469as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5470for as_dir in $PATH
5471do
5472  IFS=$as_save_IFS
5473  test -z "$as_dir" && as_dir=.
5474    for ac_exec_ext in '' $ac_executable_extensions; do
5475  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5476    ac_cv_prog_ac_ct_AR="ar"
5477    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5478    break 2
5479  fi
5480done
5481  done
5482IFS=$as_save_IFS
5483
5484fi
5485fi
5486ac_ct_AR=$ac_cv_prog_ac_ct_AR
5487if test -n "$ac_ct_AR"; then
5488  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5489$as_echo "$ac_ct_AR" >&6; }
5490else
5491  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5492$as_echo "no" >&6; }
5493fi
5494
5495  if test "x$ac_ct_AR" = x; then
5496    AR="false"
5497  else
5498    case $cross_compiling:$ac_tool_warned in
5499yes:)
5500{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5501$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5502ac_tool_warned=yes ;;
5503esac
5504    AR=$ac_ct_AR
5505  fi
5506else
5507  AR="$ac_cv_prog_AR"
5508fi
5509
5510test -z "$AR" && AR=ar
5511test -z "$AR_FLAGS" && AR_FLAGS=cru
5512
5513
5514
5515
5516
5517
5518
5519
5520
5521
5522
5523if test -n "$ac_tool_prefix"; then
5524  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5525set dummy ${ac_tool_prefix}strip; ac_word=$2
5526{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5527$as_echo_n "checking for $ac_word... " >&6; }
5528if test "${ac_cv_prog_STRIP+set}" = set; then :
5529  $as_echo_n "(cached) " >&6
5530else
5531  if test -n "$STRIP"; then
5532  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5533else
5534as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5535for as_dir in $PATH
5536do
5537  IFS=$as_save_IFS
5538  test -z "$as_dir" && as_dir=.
5539    for ac_exec_ext in '' $ac_executable_extensions; do
5540  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5541    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5542    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5543    break 2
5544  fi
5545done
5546  done
5547IFS=$as_save_IFS
5548
5549fi
5550fi
5551STRIP=$ac_cv_prog_STRIP
5552if test -n "$STRIP"; then
5553  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
5554$as_echo "$STRIP" >&6; }
5555else
5556  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5557$as_echo "no" >&6; }
5558fi
5559
5560
5561fi
5562if test -z "$ac_cv_prog_STRIP"; then
5563  ac_ct_STRIP=$STRIP
5564  # Extract the first word of "strip", so it can be a program name with args.
5565set dummy strip; ac_word=$2
5566{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5567$as_echo_n "checking for $ac_word... " >&6; }
5568if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
5569  $as_echo_n "(cached) " >&6
5570else
5571  if test -n "$ac_ct_STRIP"; then
5572  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5573else
5574as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5575for as_dir in $PATH
5576do
5577  IFS=$as_save_IFS
5578  test -z "$as_dir" && as_dir=.
5579    for ac_exec_ext in '' $ac_executable_extensions; do
5580  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5581    ac_cv_prog_ac_ct_STRIP="strip"
5582    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5583    break 2
5584  fi
5585done
5586  done
5587IFS=$as_save_IFS
5588
5589fi
5590fi
5591ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5592if test -n "$ac_ct_STRIP"; then
5593  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
5594$as_echo "$ac_ct_STRIP" >&6; }
5595else
5596  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5597$as_echo "no" >&6; }
5598fi
5599
5600  if test "x$ac_ct_STRIP" = x; then
5601    STRIP=":"
5602  else
5603    case $cross_compiling:$ac_tool_warned in
5604yes:)
5605{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5606$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5607ac_tool_warned=yes ;;
5608esac
5609    STRIP=$ac_ct_STRIP
5610  fi
5611else
5612  STRIP="$ac_cv_prog_STRIP"
5613fi
5614
5615test -z "$STRIP" && STRIP=:
5616
5617
5618
5619
5620
5621
5622if test -n "$ac_tool_prefix"; then
5623  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5624set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5625{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5626$as_echo_n "checking for $ac_word... " >&6; }
5627if test "${ac_cv_prog_RANLIB+set}" = set; then :
5628  $as_echo_n "(cached) " >&6
5629else
5630  if test -n "$RANLIB"; then
5631  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5632else
5633as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5634for as_dir in $PATH
5635do
5636  IFS=$as_save_IFS
5637  test -z "$as_dir" && as_dir=.
5638    for ac_exec_ext in '' $ac_executable_extensions; do
5639  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5640    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5641    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5642    break 2
5643  fi
5644done
5645  done
5646IFS=$as_save_IFS
5647
5648fi
5649fi
5650RANLIB=$ac_cv_prog_RANLIB
5651if test -n "$RANLIB"; then
5652  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5653$as_echo "$RANLIB" >&6; }
5654else
5655  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5656$as_echo "no" >&6; }
5657fi
5658
5659
5660fi
5661if test -z "$ac_cv_prog_RANLIB"; then
5662  ac_ct_RANLIB=$RANLIB
5663  # Extract the first word of "ranlib", so it can be a program name with args.
5664set dummy ranlib; ac_word=$2
5665{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5666$as_echo_n "checking for $ac_word... " >&6; }
5667if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
5668  $as_echo_n "(cached) " >&6
5669else
5670  if test -n "$ac_ct_RANLIB"; then
5671  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5672else
5673as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5674for as_dir in $PATH
5675do
5676  IFS=$as_save_IFS
5677  test -z "$as_dir" && as_dir=.
5678    for ac_exec_ext in '' $ac_executable_extensions; do
5679  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5680    ac_cv_prog_ac_ct_RANLIB="ranlib"
5681    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5682    break 2
5683  fi
5684done
5685  done
5686IFS=$as_save_IFS
5687
5688fi
5689fi
5690ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5691if test -n "$ac_ct_RANLIB"; then
5692  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5693$as_echo "$ac_ct_RANLIB" >&6; }
5694else
5695  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5696$as_echo "no" >&6; }
5697fi
5698
5699  if test "x$ac_ct_RANLIB" = x; then
5700    RANLIB=":"
5701  else
5702    case $cross_compiling:$ac_tool_warned in
5703yes:)
5704{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5705$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5706ac_tool_warned=yes ;;
5707esac
5708    RANLIB=$ac_ct_RANLIB
5709  fi
5710else
5711  RANLIB="$ac_cv_prog_RANLIB"
5712fi
5713
5714test -z "$RANLIB" && RANLIB=:
5715
5716
5717
5718
5719
5720
5721# Determine commands to create old-style static archives.
5722old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
5723old_postinstall_cmds='chmod 644 $oldlib'
5724old_postuninstall_cmds=
5725
5726if test -n "$RANLIB"; then
5727  case $host_os in
5728  openbsd*)
5729    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
5730    ;;
5731  *)
5732    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
5733    ;;
5734  esac
5735  old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
5736fi
5737
5738case $host_os in
5739  darwin*)
5740    lock_old_archive_extraction=yes ;;
5741  *)
5742    lock_old_archive_extraction=no ;;
5743esac
5744
5745
5746
5747
5748
5749
5750
5751
5752
5753
5754
5755
5756
5757
5758
5759
5760
5761
5762
5763
5764
5765
5766
5767
5768
5769
5770
5771
5772
5773
5774
5775
5776
5777
5778
5779
5780
5781
5782
5783# If no C compiler was specified, use CC.
5784LTCC=${LTCC-"$CC"}
5785
5786# If no C compiler flags were specified, use CFLAGS.
5787LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
5788
5789# Allow CC to be a program name with arguments.
5790compiler=$CC
5791
5792
5793# Check for command to grab the raw symbol name followed by C symbol from nm.
5794{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
5795$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
5796if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
5797  $as_echo_n "(cached) " >&6
5798else
5799
5800# These are sane defaults that work on at least a few old systems.
5801# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
5802
5803# Character class describing NM global symbol codes.
5804symcode='[BCDEGRST]'
5805
5806# Regexp to match symbols that can be accessed directly from C.
5807sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5808
5809# Define system-specific variables.
5810case $host_os in
5811aix*)
5812  symcode='[BCDT]'
5813  ;;
5814cygwin* | mingw* | pw32* | cegcc*)
5815  symcode='[ABCDGISTW]'
5816  ;;
5817hpux*)
5818  if test "$host_cpu" = ia64; then
5819    symcode='[ABCDEGRST]'
5820  fi
5821  ;;
5822irix* | nonstopux*)
5823  symcode='[BCDEGRST]'
5824  ;;
5825osf*)
5826  symcode='[BCDEGQRST]'
5827  ;;
5828solaris*)
5829  symcode='[BDRT]'
5830  ;;
5831sco3.2v5*)
5832  symcode='[DT]'
5833  ;;
5834sysv4.2uw2*)
5835  symcode='[DT]'
5836  ;;
5837sysv5* | sco5v6* | unixware* | OpenUNIX*)
5838  symcode='[ABDT]'
5839  ;;
5840sysv4)
5841  symcode='[DFNSTU]'
5842  ;;
5843esac
5844
5845# If we're using GNU nm, then use its standard symbol codes.
5846case `$NM -V 2>&1` in
5847*GNU* | *'with BFD'*)
5848  symcode='[ABCDGIRSTW]' ;;
5849esac
5850
5851# Transform an extracted symbol line into a proper C declaration.
5852# Some systems (esp. on ia64) link data and code symbols differently,
5853# so use this general approach.
5854lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5855
5856# Transform an extracted symbol line into symbol name and symbol address
5857lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'"
5858lt_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'"
5859
5860# Handle CRLF in mingw tool chain
5861opt_cr=
5862case $build_os in
5863mingw*)
5864  opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5865  ;;
5866esac
5867
5868# Try without a prefix underscore, then with it.
5869for ac_symprfx in "" "_"; do
5870
5871  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
5872  symxfrm="\\1 $ac_symprfx\\2 \\2"
5873
5874  # Write the raw and C identifiers.
5875  if test "$lt_cv_nm_interface" = "MS dumpbin"; then
5876    # Fake it for dumpbin and say T for any non-static function
5877    # and D for any global variable.
5878    # Also find C++ and __fastcall symbols from MSVC++,
5879    # which start with @ or ?.
5880    lt_cv_sys_global_symbol_pipe="$AWK '"\
5881"     {last_section=section; section=\$ 3};"\
5882"     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
5883"     \$ 0!~/External *\|/{next};"\
5884"     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
5885"     {if(hide[section]) next};"\
5886"     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
5887"     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
5888"     s[1]~/^[@?]/{print s[1], s[1]; next};"\
5889"     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
5890"     ' prfx=^$ac_symprfx"
5891  else
5892    lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[	 ]\($symcode$symcode*\)[	 ][	 ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
5893  fi
5894
5895  # Check to see that the pipe works correctly.
5896  pipe_works=no
5897
5898  rm -f conftest*
5899  cat > conftest.$ac_ext <<_LT_EOF
5900#ifdef __cplusplus
5901extern "C" {
5902#endif
5903char nm_test_var;
5904void nm_test_func(void);
5905void nm_test_func(void){}
5906#ifdef __cplusplus
5907}
5908#endif
5909int main(){nm_test_var='a';nm_test_func();return(0);}
5910_LT_EOF
5911
5912  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5913  (eval $ac_compile) 2>&5
5914  ac_status=$?
5915  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5916  test $ac_status = 0; }; then
5917    # Now try to grab the symbols.
5918    nlist=conftest.nm
5919    if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
5920  (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
5921  ac_status=$?
5922  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5923  test $ac_status = 0; } && test -s "$nlist"; then
5924      # Try sorting and uniquifying the output.
5925      if sort "$nlist" | uniq > "$nlist"T; then
5926	mv -f "$nlist"T "$nlist"
5927      else
5928	rm -f "$nlist"T
5929      fi
5930
5931      # Make sure that we snagged all the symbols we need.
5932      if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
5933	if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
5934	  cat <<_LT_EOF > conftest.$ac_ext
5935#ifdef __cplusplus
5936extern "C" {
5937#endif
5938
5939_LT_EOF
5940	  # Now generate the symbol file.
5941	  eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
5942
5943	  cat <<_LT_EOF >> conftest.$ac_ext
5944
5945/* The mapping between symbol names and symbols.  */
5946const struct {
5947  const char *name;
5948  void       *address;
5949}
5950lt__PROGRAM__LTX_preloaded_symbols[] =
5951{
5952  { "@PROGRAM@", (void *) 0 },
5953_LT_EOF
5954	  $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
5955	  cat <<\_LT_EOF >> conftest.$ac_ext
5956  {0, (void *) 0}
5957};
5958
5959/* This works around a problem in FreeBSD linker */
5960#ifdef FREEBSD_WORKAROUND
5961static const void *lt_preloaded_setup() {
5962  return lt__PROGRAM__LTX_preloaded_symbols;
5963}
5964#endif
5965
5966#ifdef __cplusplus
5967}
5968#endif
5969_LT_EOF
5970	  # Now try linking the two files.
5971	  mv conftest.$ac_objext conftstm.$ac_objext
5972	  lt_save_LIBS="$LIBS"
5973	  lt_save_CFLAGS="$CFLAGS"
5974	  LIBS="conftstm.$ac_objext"
5975	  CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
5976	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
5977  (eval $ac_link) 2>&5
5978  ac_status=$?
5979  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5980  test $ac_status = 0; } && test -s conftest${ac_exeext}; then
5981	    pipe_works=yes
5982	  fi
5983	  LIBS="$lt_save_LIBS"
5984	  CFLAGS="$lt_save_CFLAGS"
5985	else
5986	  echo "cannot find nm_test_func in $nlist" >&5
5987	fi
5988      else
5989	echo "cannot find nm_test_var in $nlist" >&5
5990      fi
5991    else
5992      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
5993    fi
5994  else
5995    echo "$progname: failed program was:" >&5
5996    cat conftest.$ac_ext >&5
5997  fi
5998  rm -rf conftest* conftst*
5999
6000  # Do not use the global_symbol_pipe unless it works.
6001  if test "$pipe_works" = yes; then
6002    break
6003  else
6004    lt_cv_sys_global_symbol_pipe=
6005  fi
6006done
6007
6008fi
6009
6010if test -z "$lt_cv_sys_global_symbol_pipe"; then
6011  lt_cv_sys_global_symbol_to_cdecl=
6012fi
6013if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6014  { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6015$as_echo "failed" >&6; }
6016else
6017  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6018$as_echo "ok" >&6; }
6019fi
6020
6021
6022
6023
6024
6025
6026
6027
6028
6029
6030
6031
6032
6033
6034
6035
6036
6037
6038
6039
6040
6041
6042# Check whether --enable-libtool-lock was given.
6043if test "${enable_libtool_lock+set}" = set; then :
6044  enableval=$enable_libtool_lock;
6045fi
6046
6047test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6048
6049# Some flags need to be propagated to the compiler or linker for good
6050# libtool support.
6051case $host in
6052ia64-*-hpux*)
6053  # Find out which ABI we are using.
6054  echo 'int i;' > conftest.$ac_ext
6055  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6056  (eval $ac_compile) 2>&5
6057  ac_status=$?
6058  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6059  test $ac_status = 0; }; then
6060    case `/usr/bin/file conftest.$ac_objext` in
6061      *ELF-32*)
6062	HPUX_IA64_MODE="32"
6063	;;
6064      *ELF-64*)
6065	HPUX_IA64_MODE="64"
6066	;;
6067    esac
6068  fi
6069  rm -rf conftest*
6070  ;;
6071*-*-irix6*)
6072  # Find out which ABI we are using.
6073  echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6074  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6075  (eval $ac_compile) 2>&5
6076  ac_status=$?
6077  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6078  test $ac_status = 0; }; then
6079    if test "$lt_cv_prog_gnu_ld" = yes; then
6080      case `/usr/bin/file conftest.$ac_objext` in
6081	*32-bit*)
6082	  LD="${LD-ld} -melf32bsmip"
6083	  ;;
6084	*N32*)
6085	  LD="${LD-ld} -melf32bmipn32"
6086	  ;;
6087	*64-bit*)
6088	  LD="${LD-ld} -melf64bmip"
6089	;;
6090      esac
6091    else
6092      case `/usr/bin/file conftest.$ac_objext` in
6093	*32-bit*)
6094	  LD="${LD-ld} -32"
6095	  ;;
6096	*N32*)
6097	  LD="${LD-ld} -n32"
6098	  ;;
6099	*64-bit*)
6100	  LD="${LD-ld} -64"
6101	  ;;
6102      esac
6103    fi
6104  fi
6105  rm -rf conftest*
6106  ;;
6107
6108x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
6109s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6110  # Find out which ABI we are using.
6111  echo 'int i;' > conftest.$ac_ext
6112  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6113  (eval $ac_compile) 2>&5
6114  ac_status=$?
6115  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6116  test $ac_status = 0; }; then
6117    case `/usr/bin/file conftest.o` in
6118      *32-bit*)
6119	case $host in
6120	  x86_64-*kfreebsd*-gnu)
6121	    LD="${LD-ld} -m elf_i386_fbsd"
6122	    ;;
6123	  x86_64-*linux*)
6124	    case `/usr/bin/file conftest.o` in
6125	      *x86-64*)
6126		LD="${LD-ld} -m elf32_x86_64"
6127		;;
6128	      *)
6129		LD="${LD-ld} -m elf_i386"
6130		;;
6131	    esac
6132	    ;;
6133	  powerpc64le-*linux*)
6134	    LD="${LD-ld} -m elf32lppclinux"
6135	    ;;
6136	  powerpc64-*linux*)
6137	    LD="${LD-ld} -m elf32ppclinux"
6138	    ;;
6139	  s390x-*linux*)
6140	    LD="${LD-ld} -m elf_s390"
6141	    ;;
6142	  sparc64-*linux*)
6143	    LD="${LD-ld} -m elf32_sparc"
6144	    ;;
6145	esac
6146	;;
6147      *64-bit*)
6148	case $host in
6149	  x86_64-*kfreebsd*-gnu)
6150	    LD="${LD-ld} -m elf_x86_64_fbsd"
6151	    ;;
6152	  x86_64-*linux*)
6153	    LD="${LD-ld} -m elf_x86_64"
6154	    ;;
6155	  powerpcle-*linux*)
6156	    LD="${LD-ld} -m elf64lppc"
6157	    ;;
6158	  powerpc-*linux*)
6159	    LD="${LD-ld} -m elf64ppc"
6160	    ;;
6161	  s390*-*linux*|s390*-*tpf*)
6162	    LD="${LD-ld} -m elf64_s390"
6163	    ;;
6164	  sparc*-*linux*)
6165	    LD="${LD-ld} -m elf64_sparc"
6166	    ;;
6167	esac
6168	;;
6169    esac
6170  fi
6171  rm -rf conftest*
6172  ;;
6173
6174*-*-sco3.2v5*)
6175  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6176  SAVE_CFLAGS="$CFLAGS"
6177  CFLAGS="$CFLAGS -belf"
6178  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
6179$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
6180if test "${lt_cv_cc_needs_belf+set}" = set; then :
6181  $as_echo_n "(cached) " >&6
6182else
6183  ac_ext=c
6184ac_cpp='$CPP $CPPFLAGS'
6185ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6186ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6187ac_compiler_gnu=$ac_cv_c_compiler_gnu
6188
6189     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6190/* end confdefs.h.  */
6191
6192int
6193main ()
6194{
6195
6196  ;
6197  return 0;
6198}
6199_ACEOF
6200if ac_fn_c_try_link "$LINENO"; then :
6201  lt_cv_cc_needs_belf=yes
6202else
6203  lt_cv_cc_needs_belf=no
6204fi
6205rm -f core conftest.err conftest.$ac_objext \
6206    conftest$ac_exeext conftest.$ac_ext
6207     ac_ext=c
6208ac_cpp='$CPP $CPPFLAGS'
6209ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6210ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6211ac_compiler_gnu=$ac_cv_c_compiler_gnu
6212
6213fi
6214{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
6215$as_echo "$lt_cv_cc_needs_belf" >&6; }
6216  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6217    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6218    CFLAGS="$SAVE_CFLAGS"
6219  fi
6220  ;;
6221sparc*-*solaris*)
6222  # Find out which ABI we are using.
6223  echo 'int i;' > conftest.$ac_ext
6224  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6225  (eval $ac_compile) 2>&5
6226  ac_status=$?
6227  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6228  test $ac_status = 0; }; then
6229    case `/usr/bin/file conftest.o` in
6230    *64-bit*)
6231      case $lt_cv_prog_gnu_ld in
6232      yes*) LD="${LD-ld} -m elf64_sparc" ;;
6233      *)
6234	if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6235	  LD="${LD-ld} -64"
6236	fi
6237	;;
6238      esac
6239      ;;
6240    esac
6241  fi
6242  rm -rf conftest*
6243  ;;
6244esac
6245
6246need_locks="$enable_libtool_lock"
6247
6248
6249  case $host_os in
6250    rhapsody* | darwin*)
6251    if test -n "$ac_tool_prefix"; then
6252  # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
6253set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
6254{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6255$as_echo_n "checking for $ac_word... " >&6; }
6256if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
6257  $as_echo_n "(cached) " >&6
6258else
6259  if test -n "$DSYMUTIL"; then
6260  ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
6261else
6262as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6263for as_dir in $PATH
6264do
6265  IFS=$as_save_IFS
6266  test -z "$as_dir" && as_dir=.
6267    for ac_exec_ext in '' $ac_executable_extensions; do
6268  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6269    ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
6270    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6271    break 2
6272  fi
6273done
6274  done
6275IFS=$as_save_IFS
6276
6277fi
6278fi
6279DSYMUTIL=$ac_cv_prog_DSYMUTIL
6280if test -n "$DSYMUTIL"; then
6281  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
6282$as_echo "$DSYMUTIL" >&6; }
6283else
6284  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6285$as_echo "no" >&6; }
6286fi
6287
6288
6289fi
6290if test -z "$ac_cv_prog_DSYMUTIL"; then
6291  ac_ct_DSYMUTIL=$DSYMUTIL
6292  # Extract the first word of "dsymutil", so it can be a program name with args.
6293set dummy dsymutil; ac_word=$2
6294{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6295$as_echo_n "checking for $ac_word... " >&6; }
6296if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
6297  $as_echo_n "(cached) " >&6
6298else
6299  if test -n "$ac_ct_DSYMUTIL"; then
6300  ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
6301else
6302as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6303for as_dir in $PATH
6304do
6305  IFS=$as_save_IFS
6306  test -z "$as_dir" && as_dir=.
6307    for ac_exec_ext in '' $ac_executable_extensions; do
6308  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6309    ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
6310    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6311    break 2
6312  fi
6313done
6314  done
6315IFS=$as_save_IFS
6316
6317fi
6318fi
6319ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
6320if test -n "$ac_ct_DSYMUTIL"; then
6321  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
6322$as_echo "$ac_ct_DSYMUTIL" >&6; }
6323else
6324  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6325$as_echo "no" >&6; }
6326fi
6327
6328  if test "x$ac_ct_DSYMUTIL" = x; then
6329    DSYMUTIL=":"
6330  else
6331    case $cross_compiling:$ac_tool_warned in
6332yes:)
6333{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6334$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6335ac_tool_warned=yes ;;
6336esac
6337    DSYMUTIL=$ac_ct_DSYMUTIL
6338  fi
6339else
6340  DSYMUTIL="$ac_cv_prog_DSYMUTIL"
6341fi
6342
6343    if test -n "$ac_tool_prefix"; then
6344  # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
6345set dummy ${ac_tool_prefix}nmedit; ac_word=$2
6346{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6347$as_echo_n "checking for $ac_word... " >&6; }
6348if test "${ac_cv_prog_NMEDIT+set}" = set; then :
6349  $as_echo_n "(cached) " >&6
6350else
6351  if test -n "$NMEDIT"; then
6352  ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
6353else
6354as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6355for as_dir in $PATH
6356do
6357  IFS=$as_save_IFS
6358  test -z "$as_dir" && as_dir=.
6359    for ac_exec_ext in '' $ac_executable_extensions; do
6360  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6361    ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
6362    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6363    break 2
6364  fi
6365done
6366  done
6367IFS=$as_save_IFS
6368
6369fi
6370fi
6371NMEDIT=$ac_cv_prog_NMEDIT
6372if test -n "$NMEDIT"; then
6373  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
6374$as_echo "$NMEDIT" >&6; }
6375else
6376  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6377$as_echo "no" >&6; }
6378fi
6379
6380
6381fi
6382if test -z "$ac_cv_prog_NMEDIT"; then
6383  ac_ct_NMEDIT=$NMEDIT
6384  # Extract the first word of "nmedit", so it can be a program name with args.
6385set dummy nmedit; ac_word=$2
6386{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6387$as_echo_n "checking for $ac_word... " >&6; }
6388if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
6389  $as_echo_n "(cached) " >&6
6390else
6391  if test -n "$ac_ct_NMEDIT"; then
6392  ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
6393else
6394as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6395for as_dir in $PATH
6396do
6397  IFS=$as_save_IFS
6398  test -z "$as_dir" && as_dir=.
6399    for ac_exec_ext in '' $ac_executable_extensions; do
6400  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6401    ac_cv_prog_ac_ct_NMEDIT="nmedit"
6402    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6403    break 2
6404  fi
6405done
6406  done
6407IFS=$as_save_IFS
6408
6409fi
6410fi
6411ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
6412if test -n "$ac_ct_NMEDIT"; then
6413  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
6414$as_echo "$ac_ct_NMEDIT" >&6; }
6415else
6416  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6417$as_echo "no" >&6; }
6418fi
6419
6420  if test "x$ac_ct_NMEDIT" = x; then
6421    NMEDIT=":"
6422  else
6423    case $cross_compiling:$ac_tool_warned in
6424yes:)
6425{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6426$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6427ac_tool_warned=yes ;;
6428esac
6429    NMEDIT=$ac_ct_NMEDIT
6430  fi
6431else
6432  NMEDIT="$ac_cv_prog_NMEDIT"
6433fi
6434
6435    if test -n "$ac_tool_prefix"; then
6436  # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
6437set dummy ${ac_tool_prefix}lipo; ac_word=$2
6438{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6439$as_echo_n "checking for $ac_word... " >&6; }
6440if test "${ac_cv_prog_LIPO+set}" = set; then :
6441  $as_echo_n "(cached) " >&6
6442else
6443  if test -n "$LIPO"; then
6444  ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
6445else
6446as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6447for as_dir in $PATH
6448do
6449  IFS=$as_save_IFS
6450  test -z "$as_dir" && as_dir=.
6451    for ac_exec_ext in '' $ac_executable_extensions; do
6452  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6453    ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
6454    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6455    break 2
6456  fi
6457done
6458  done
6459IFS=$as_save_IFS
6460
6461fi
6462fi
6463LIPO=$ac_cv_prog_LIPO
6464if test -n "$LIPO"; then
6465  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
6466$as_echo "$LIPO" >&6; }
6467else
6468  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6469$as_echo "no" >&6; }
6470fi
6471
6472
6473fi
6474if test -z "$ac_cv_prog_LIPO"; then
6475  ac_ct_LIPO=$LIPO
6476  # Extract the first word of "lipo", so it can be a program name with args.
6477set dummy lipo; ac_word=$2
6478{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6479$as_echo_n "checking for $ac_word... " >&6; }
6480if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
6481  $as_echo_n "(cached) " >&6
6482else
6483  if test -n "$ac_ct_LIPO"; then
6484  ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
6485else
6486as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6487for as_dir in $PATH
6488do
6489  IFS=$as_save_IFS
6490  test -z "$as_dir" && as_dir=.
6491    for ac_exec_ext in '' $ac_executable_extensions; do
6492  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6493    ac_cv_prog_ac_ct_LIPO="lipo"
6494    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6495    break 2
6496  fi
6497done
6498  done
6499IFS=$as_save_IFS
6500
6501fi
6502fi
6503ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
6504if test -n "$ac_ct_LIPO"; then
6505  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
6506$as_echo "$ac_ct_LIPO" >&6; }
6507else
6508  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6509$as_echo "no" >&6; }
6510fi
6511
6512  if test "x$ac_ct_LIPO" = x; then
6513    LIPO=":"
6514  else
6515    case $cross_compiling:$ac_tool_warned in
6516yes:)
6517{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6518$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6519ac_tool_warned=yes ;;
6520esac
6521    LIPO=$ac_ct_LIPO
6522  fi
6523else
6524  LIPO="$ac_cv_prog_LIPO"
6525fi
6526
6527    if test -n "$ac_tool_prefix"; then
6528  # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
6529set dummy ${ac_tool_prefix}otool; ac_word=$2
6530{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6531$as_echo_n "checking for $ac_word... " >&6; }
6532if test "${ac_cv_prog_OTOOL+set}" = set; then :
6533  $as_echo_n "(cached) " >&6
6534else
6535  if test -n "$OTOOL"; then
6536  ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
6537else
6538as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6539for as_dir in $PATH
6540do
6541  IFS=$as_save_IFS
6542  test -z "$as_dir" && as_dir=.
6543    for ac_exec_ext in '' $ac_executable_extensions; do
6544  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6545    ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
6546    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6547    break 2
6548  fi
6549done
6550  done
6551IFS=$as_save_IFS
6552
6553fi
6554fi
6555OTOOL=$ac_cv_prog_OTOOL
6556if test -n "$OTOOL"; then
6557  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
6558$as_echo "$OTOOL" >&6; }
6559else
6560  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6561$as_echo "no" >&6; }
6562fi
6563
6564
6565fi
6566if test -z "$ac_cv_prog_OTOOL"; then
6567  ac_ct_OTOOL=$OTOOL
6568  # Extract the first word of "otool", so it can be a program name with args.
6569set dummy otool; ac_word=$2
6570{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6571$as_echo_n "checking for $ac_word... " >&6; }
6572if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
6573  $as_echo_n "(cached) " >&6
6574else
6575  if test -n "$ac_ct_OTOOL"; then
6576  ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
6577else
6578as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6579for as_dir in $PATH
6580do
6581  IFS=$as_save_IFS
6582  test -z "$as_dir" && as_dir=.
6583    for ac_exec_ext in '' $ac_executable_extensions; do
6584  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6585    ac_cv_prog_ac_ct_OTOOL="otool"
6586    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6587    break 2
6588  fi
6589done
6590  done
6591IFS=$as_save_IFS
6592
6593fi
6594fi
6595ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
6596if test -n "$ac_ct_OTOOL"; then
6597  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
6598$as_echo "$ac_ct_OTOOL" >&6; }
6599else
6600  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6601$as_echo "no" >&6; }
6602fi
6603
6604  if test "x$ac_ct_OTOOL" = x; then
6605    OTOOL=":"
6606  else
6607    case $cross_compiling:$ac_tool_warned in
6608yes:)
6609{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6610$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6611ac_tool_warned=yes ;;
6612esac
6613    OTOOL=$ac_ct_OTOOL
6614  fi
6615else
6616  OTOOL="$ac_cv_prog_OTOOL"
6617fi
6618
6619    if test -n "$ac_tool_prefix"; then
6620  # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
6621set dummy ${ac_tool_prefix}otool64; ac_word=$2
6622{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6623$as_echo_n "checking for $ac_word... " >&6; }
6624if test "${ac_cv_prog_OTOOL64+set}" = set; then :
6625  $as_echo_n "(cached) " >&6
6626else
6627  if test -n "$OTOOL64"; then
6628  ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
6629else
6630as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6631for as_dir in $PATH
6632do
6633  IFS=$as_save_IFS
6634  test -z "$as_dir" && as_dir=.
6635    for ac_exec_ext in '' $ac_executable_extensions; do
6636  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6637    ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
6638    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6639    break 2
6640  fi
6641done
6642  done
6643IFS=$as_save_IFS
6644
6645fi
6646fi
6647OTOOL64=$ac_cv_prog_OTOOL64
6648if test -n "$OTOOL64"; then
6649  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
6650$as_echo "$OTOOL64" >&6; }
6651else
6652  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6653$as_echo "no" >&6; }
6654fi
6655
6656
6657fi
6658if test -z "$ac_cv_prog_OTOOL64"; then
6659  ac_ct_OTOOL64=$OTOOL64
6660  # Extract the first word of "otool64", so it can be a program name with args.
6661set dummy otool64; ac_word=$2
6662{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6663$as_echo_n "checking for $ac_word... " >&6; }
6664if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
6665  $as_echo_n "(cached) " >&6
6666else
6667  if test -n "$ac_ct_OTOOL64"; then
6668  ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
6669else
6670as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6671for as_dir in $PATH
6672do
6673  IFS=$as_save_IFS
6674  test -z "$as_dir" && as_dir=.
6675    for ac_exec_ext in '' $ac_executable_extensions; do
6676  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6677    ac_cv_prog_ac_ct_OTOOL64="otool64"
6678    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6679    break 2
6680  fi
6681done
6682  done
6683IFS=$as_save_IFS
6684
6685fi
6686fi
6687ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
6688if test -n "$ac_ct_OTOOL64"; then
6689  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
6690$as_echo "$ac_ct_OTOOL64" >&6; }
6691else
6692  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6693$as_echo "no" >&6; }
6694fi
6695
6696  if test "x$ac_ct_OTOOL64" = x; then
6697    OTOOL64=":"
6698  else
6699    case $cross_compiling:$ac_tool_warned in
6700yes:)
6701{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6702$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6703ac_tool_warned=yes ;;
6704esac
6705    OTOOL64=$ac_ct_OTOOL64
6706  fi
6707else
6708  OTOOL64="$ac_cv_prog_OTOOL64"
6709fi
6710
6711
6712
6713
6714
6715
6716
6717
6718
6719
6720
6721
6722
6723
6724
6725
6726
6727
6728
6729
6730
6731
6732
6733
6734
6735
6736
6737    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
6738$as_echo_n "checking for -single_module linker flag... " >&6; }
6739if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
6740  $as_echo_n "(cached) " >&6
6741else
6742  lt_cv_apple_cc_single_mod=no
6743      if test -z "${LT_MULTI_MODULE}"; then
6744	# By default we will add the -single_module flag. You can override
6745	# by either setting the environment variable LT_MULTI_MODULE
6746	# non-empty at configure time, or by adding -multi_module to the
6747	# link flags.
6748	rm -rf libconftest.dylib*
6749	echo "int foo(void){return 1;}" > conftest.c
6750	echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6751-dynamiclib -Wl,-single_module conftest.c" >&5
6752	$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6753	  -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
6754        _lt_result=$?
6755	if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
6756	  lt_cv_apple_cc_single_mod=yes
6757	else
6758	  cat conftest.err >&5
6759	fi
6760	rm -rf libconftest.dylib*
6761	rm -f conftest.*
6762      fi
6763fi
6764{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
6765$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
6766    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
6767$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
6768if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
6769  $as_echo_n "(cached) " >&6
6770else
6771  lt_cv_ld_exported_symbols_list=no
6772      save_LDFLAGS=$LDFLAGS
6773      echo "_main" > conftest.sym
6774      LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
6775      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6776/* end confdefs.h.  */
6777
6778int
6779main ()
6780{
6781
6782  ;
6783  return 0;
6784}
6785_ACEOF
6786if ac_fn_c_try_link "$LINENO"; then :
6787  lt_cv_ld_exported_symbols_list=yes
6788else
6789  lt_cv_ld_exported_symbols_list=no
6790fi
6791rm -f core conftest.err conftest.$ac_objext \
6792    conftest$ac_exeext conftest.$ac_ext
6793	LDFLAGS="$save_LDFLAGS"
6794
6795fi
6796{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
6797$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
6798    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
6799$as_echo_n "checking for -force_load linker flag... " >&6; }
6800if test "${lt_cv_ld_force_load+set}" = set; then :
6801  $as_echo_n "(cached) " >&6
6802else
6803  lt_cv_ld_force_load=no
6804      cat > conftest.c << _LT_EOF
6805int forced_loaded() { return 2;}
6806_LT_EOF
6807      echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
6808      $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
6809      echo "$AR cru libconftest.a conftest.o" >&5
6810      $AR cru libconftest.a conftest.o 2>&5
6811      cat > conftest.c << _LT_EOF
6812int main() { return 0;}
6813_LT_EOF
6814      echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
6815      $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
6816      _lt_result=$?
6817      if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
6818	lt_cv_ld_force_load=yes
6819      else
6820	cat conftest.err >&5
6821      fi
6822        rm -f conftest.err libconftest.a conftest conftest.c
6823        rm -rf conftest.dSYM
6824
6825fi
6826{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
6827$as_echo "$lt_cv_ld_force_load" >&6; }
6828    case $host_os in
6829    rhapsody* | darwin1.[012])
6830      _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
6831    darwin1.*)
6832      _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
6833    darwin*) # darwin 5.x on
6834      # if running on 10.5 or later, the deployment target defaults
6835      # to the OS version, if on x86, and 10.4, the deployment
6836      # target defaults to 10.4. Don't you love it?
6837      case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
6838	10.0,*86*-darwin8*|10.0,*-darwin[91]*)
6839	  _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
6840	10.[012][,.]*)
6841	  _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
6842	10.*)
6843	  _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
6844      esac
6845    ;;
6846  esac
6847    if test "$lt_cv_apple_cc_single_mod" = "yes"; then
6848      _lt_dar_single_mod='$single_module'
6849    fi
6850    if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
6851      _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
6852    else
6853      _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
6854    fi
6855    if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
6856      _lt_dsymutil='~$DSYMUTIL $lib || :'
6857    else
6858      _lt_dsymutil=
6859    fi
6860    ;;
6861  esac
6862
6863ac_ext=c
6864ac_cpp='$CPP $CPPFLAGS'
6865ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6866ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6867ac_compiler_gnu=$ac_cv_c_compiler_gnu
6868{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
6869$as_echo_n "checking how to run the C preprocessor... " >&6; }
6870# On Suns, sometimes $CPP names a directory.
6871if test -n "$CPP" && test -d "$CPP"; then
6872  CPP=
6873fi
6874if test -z "$CPP"; then
6875  if test "${ac_cv_prog_CPP+set}" = set; then :
6876  $as_echo_n "(cached) " >&6
6877else
6878      # Double quotes because CPP needs to be expanded
6879    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
6880    do
6881      ac_preproc_ok=false
6882for ac_c_preproc_warn_flag in '' yes
6883do
6884  # Use a header file that comes with gcc, so configuring glibc
6885  # with a fresh cross-compiler works.
6886  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6887  # <limits.h> exists even on freestanding compilers.
6888  # On the NeXT, cc -E runs the code through the compiler's parser,
6889  # not just through cpp. "Syntax error" is here to catch this case.
6890  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6891/* end confdefs.h.  */
6892#ifdef __STDC__
6893# include <limits.h>
6894#else
6895# include <assert.h>
6896#endif
6897		     Syntax error
6898_ACEOF
6899if ac_fn_c_try_cpp "$LINENO"; then :
6900
6901else
6902  # Broken: fails on valid input.
6903continue
6904fi
6905rm -f conftest.err conftest.$ac_ext
6906
6907  # OK, works on sane cases.  Now check whether nonexistent headers
6908  # can be detected and how.
6909  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6910/* end confdefs.h.  */
6911#include <ac_nonexistent.h>
6912_ACEOF
6913if ac_fn_c_try_cpp "$LINENO"; then :
6914  # Broken: success on invalid input.
6915continue
6916else
6917  # Passes both tests.
6918ac_preproc_ok=:
6919break
6920fi
6921rm -f conftest.err conftest.$ac_ext
6922
6923done
6924# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6925rm -f conftest.err conftest.$ac_ext
6926if $ac_preproc_ok; then :
6927  break
6928fi
6929
6930    done
6931    ac_cv_prog_CPP=$CPP
6932
6933fi
6934  CPP=$ac_cv_prog_CPP
6935else
6936  ac_cv_prog_CPP=$CPP
6937fi
6938{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
6939$as_echo "$CPP" >&6; }
6940ac_preproc_ok=false
6941for ac_c_preproc_warn_flag in '' yes
6942do
6943  # Use a header file that comes with gcc, so configuring glibc
6944  # with a fresh cross-compiler works.
6945  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6946  # <limits.h> exists even on freestanding compilers.
6947  # On the NeXT, cc -E runs the code through the compiler's parser,
6948  # not just through cpp. "Syntax error" is here to catch this case.
6949  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6950/* end confdefs.h.  */
6951#ifdef __STDC__
6952# include <limits.h>
6953#else
6954# include <assert.h>
6955#endif
6956		     Syntax error
6957_ACEOF
6958if ac_fn_c_try_cpp "$LINENO"; then :
6959
6960else
6961  # Broken: fails on valid input.
6962continue
6963fi
6964rm -f conftest.err conftest.$ac_ext
6965
6966  # OK, works on sane cases.  Now check whether nonexistent headers
6967  # can be detected and how.
6968  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6969/* end confdefs.h.  */
6970#include <ac_nonexistent.h>
6971_ACEOF
6972if ac_fn_c_try_cpp "$LINENO"; then :
6973  # Broken: success on invalid input.
6974continue
6975else
6976  # Passes both tests.
6977ac_preproc_ok=:
6978break
6979fi
6980rm -f conftest.err conftest.$ac_ext
6981
6982done
6983# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6984rm -f conftest.err conftest.$ac_ext
6985if $ac_preproc_ok; then :
6986
6987else
6988  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6989$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6990as_fn_error "C preprocessor \"$CPP\" fails sanity check
6991See \`config.log' for more details." "$LINENO" 5; }
6992fi
6993
6994ac_ext=c
6995ac_cpp='$CPP $CPPFLAGS'
6996ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6997ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6998ac_compiler_gnu=$ac_cv_c_compiler_gnu
6999
7000
7001{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7002$as_echo_n "checking for ANSI C header files... " >&6; }
7003if test "${ac_cv_header_stdc+set}" = set; then :
7004  $as_echo_n "(cached) " >&6
7005else
7006  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7007/* end confdefs.h.  */
7008#include <stdlib.h>
7009#include <stdarg.h>
7010#include <string.h>
7011#include <float.h>
7012
7013int
7014main ()
7015{
7016
7017  ;
7018  return 0;
7019}
7020_ACEOF
7021if ac_fn_c_try_compile "$LINENO"; then :
7022  ac_cv_header_stdc=yes
7023else
7024  ac_cv_header_stdc=no
7025fi
7026rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7027
7028if test $ac_cv_header_stdc = yes; then
7029  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7030  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7031/* end confdefs.h.  */
7032#include <string.h>
7033
7034_ACEOF
7035if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7036  $EGREP "memchr" >/dev/null 2>&1; then :
7037
7038else
7039  ac_cv_header_stdc=no
7040fi
7041rm -f conftest*
7042
7043fi
7044
7045if test $ac_cv_header_stdc = yes; then
7046  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7047  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7048/* end confdefs.h.  */
7049#include <stdlib.h>
7050
7051_ACEOF
7052if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7053  $EGREP "free" >/dev/null 2>&1; then :
7054
7055else
7056  ac_cv_header_stdc=no
7057fi
7058rm -f conftest*
7059
7060fi
7061
7062if test $ac_cv_header_stdc = yes; then
7063  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7064  if test "$cross_compiling" = yes; then :
7065  :
7066else
7067  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7068/* end confdefs.h.  */
7069#include <ctype.h>
7070#include <stdlib.h>
7071#if ((' ' & 0x0FF) == 0x020)
7072# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7073# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7074#else
7075# define ISLOWER(c) \
7076		   (('a' <= (c) && (c) <= 'i') \
7077		     || ('j' <= (c) && (c) <= 'r') \
7078		     || ('s' <= (c) && (c) <= 'z'))
7079# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7080#endif
7081
7082#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7083int
7084main ()
7085{
7086  int i;
7087  for (i = 0; i < 256; i++)
7088    if (XOR (islower (i), ISLOWER (i))
7089	|| toupper (i) != TOUPPER (i))
7090      return 2;
7091  return 0;
7092}
7093_ACEOF
7094if ac_fn_c_try_run "$LINENO"; then :
7095
7096else
7097  ac_cv_header_stdc=no
7098fi
7099rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7100  conftest.$ac_objext conftest.beam conftest.$ac_ext
7101fi
7102
7103fi
7104fi
7105{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
7106$as_echo "$ac_cv_header_stdc" >&6; }
7107if test $ac_cv_header_stdc = yes; then
7108
7109$as_echo "#define STDC_HEADERS 1" >>confdefs.h
7110
7111fi
7112
7113# On IRIX 5.3, sys/types and inttypes.h are conflicting.
7114for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7115		  inttypes.h stdint.h unistd.h
7116do :
7117  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7118ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7119"
7120eval as_val=\$$as_ac_Header
7121   if test "x$as_val" = x""yes; then :
7122  cat >>confdefs.h <<_ACEOF
7123#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7124_ACEOF
7125
7126fi
7127
7128done
7129
7130
7131for ac_header in dlfcn.h
7132do :
7133  ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7134"
7135if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
7136  cat >>confdefs.h <<_ACEOF
7137#define HAVE_DLFCN_H 1
7138_ACEOF
7139
7140fi
7141
7142done
7143
7144
7145
7146
7147
7148# Set options
7149
7150
7151
7152        enable_dlopen=no
7153
7154
7155  enable_win32_dll=no
7156
7157
7158            # Check whether --enable-shared was given.
7159if test "${enable_shared+set}" = set; then :
7160  enableval=$enable_shared; p=${PACKAGE-default}
7161    case $enableval in
7162    yes) enable_shared=yes ;;
7163    no) enable_shared=no ;;
7164    *)
7165      enable_shared=no
7166      # Look at the argument we got.  We use all the common list separators.
7167      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7168      for pkg in $enableval; do
7169	IFS="$lt_save_ifs"
7170	if test "X$pkg" = "X$p"; then
7171	  enable_shared=yes
7172	fi
7173      done
7174      IFS="$lt_save_ifs"
7175      ;;
7176    esac
7177else
7178  enable_shared=yes
7179fi
7180
7181
7182
7183
7184
7185
7186
7187
7188
7189  # Check whether --enable-static was given.
7190if test "${enable_static+set}" = set; then :
7191  enableval=$enable_static; p=${PACKAGE-default}
7192    case $enableval in
7193    yes) enable_static=yes ;;
7194    no) enable_static=no ;;
7195    *)
7196     enable_static=no
7197      # Look at the argument we got.  We use all the common list separators.
7198      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7199      for pkg in $enableval; do
7200	IFS="$lt_save_ifs"
7201	if test "X$pkg" = "X$p"; then
7202	  enable_static=yes
7203	fi
7204      done
7205      IFS="$lt_save_ifs"
7206      ;;
7207    esac
7208else
7209  enable_static=yes
7210fi
7211
7212
7213
7214
7215
7216
7217
7218
7219
7220
7221# Check whether --with-pic was given.
7222if test "${with_pic+set}" = set; then :
7223  withval=$with_pic; pic_mode="$withval"
7224else
7225  pic_mode=default
7226fi
7227
7228
7229test -z "$pic_mode" && pic_mode=default
7230
7231
7232
7233
7234
7235
7236
7237  # Check whether --enable-fast-install was given.
7238if test "${enable_fast_install+set}" = set; then :
7239  enableval=$enable_fast_install; p=${PACKAGE-default}
7240    case $enableval in
7241    yes) enable_fast_install=yes ;;
7242    no) enable_fast_install=no ;;
7243    *)
7244      enable_fast_install=no
7245      # Look at the argument we got.  We use all the common list separators.
7246      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7247      for pkg in $enableval; do
7248	IFS="$lt_save_ifs"
7249	if test "X$pkg" = "X$p"; then
7250	  enable_fast_install=yes
7251	fi
7252      done
7253      IFS="$lt_save_ifs"
7254      ;;
7255    esac
7256else
7257  enable_fast_install=yes
7258fi
7259
7260
7261
7262
7263
7264
7265
7266
7267
7268
7269
7270# This can be used to rebuild libtool when needed
7271LIBTOOL_DEPS="$ltmain"
7272
7273# Always use our own libtool.
7274LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7275
7276
7277
7278
7279
7280
7281
7282
7283
7284
7285
7286
7287
7288
7289
7290
7291
7292
7293
7294
7295
7296
7297
7298
7299
7300
7301test -z "$LN_S" && LN_S="ln -s"
7302
7303
7304
7305
7306
7307
7308
7309
7310
7311
7312
7313
7314
7315
7316if test -n "${ZSH_VERSION+set}" ; then
7317   setopt NO_GLOB_SUBST
7318fi
7319
7320{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
7321$as_echo_n "checking for objdir... " >&6; }
7322if test "${lt_cv_objdir+set}" = set; then :
7323  $as_echo_n "(cached) " >&6
7324else
7325  rm -f .libs 2>/dev/null
7326mkdir .libs 2>/dev/null
7327if test -d .libs; then
7328  lt_cv_objdir=.libs
7329else
7330  # MS-DOS does not allow filenames that begin with a dot.
7331  lt_cv_objdir=_libs
7332fi
7333rmdir .libs 2>/dev/null
7334fi
7335{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
7336$as_echo "$lt_cv_objdir" >&6; }
7337objdir=$lt_cv_objdir
7338
7339
7340
7341
7342
7343cat >>confdefs.h <<_ACEOF
7344#define LT_OBJDIR "$lt_cv_objdir/"
7345_ACEOF
7346
7347
7348
7349
7350case $host_os in
7351aix3*)
7352  # AIX sometimes has problems with the GCC collect2 program.  For some
7353  # reason, if we set the COLLECT_NAMES environment variable, the problems
7354  # vanish in a puff of smoke.
7355  if test "X${COLLECT_NAMES+set}" != Xset; then
7356    COLLECT_NAMES=
7357    export COLLECT_NAMES
7358  fi
7359  ;;
7360esac
7361
7362# Global variables:
7363ofile=libtool
7364can_build_shared=yes
7365
7366# All known linkers require a `.a' archive for static linking (except MSVC,
7367# which needs '.lib').
7368libext=a
7369
7370with_gnu_ld="$lt_cv_prog_gnu_ld"
7371
7372old_CC="$CC"
7373old_CFLAGS="$CFLAGS"
7374
7375# Set sane defaults for various variables
7376test -z "$CC" && CC=cc
7377test -z "$LTCC" && LTCC=$CC
7378test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7379test -z "$LD" && LD=ld
7380test -z "$ac_objext" && ac_objext=o
7381
7382for cc_temp in $compiler""; do
7383  case $cc_temp in
7384    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7385    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7386    \-*) ;;
7387    *) break;;
7388  esac
7389done
7390cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
7391
7392
7393# Only perform the check for file, if the check method requires it
7394test -z "$MAGIC_CMD" && MAGIC_CMD=file
7395case $deplibs_check_method in
7396file_magic*)
7397  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7398    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
7399$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
7400if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
7401  $as_echo_n "(cached) " >&6
7402else
7403  case $MAGIC_CMD in
7404[\\/*] |  ?:[\\/]*)
7405  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7406  ;;
7407*)
7408  lt_save_MAGIC_CMD="$MAGIC_CMD"
7409  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7410  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7411  for ac_dir in $ac_dummy; do
7412    IFS="$lt_save_ifs"
7413    test -z "$ac_dir" && ac_dir=.
7414    if test -f $ac_dir/${ac_tool_prefix}file; then
7415      lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7416      if test -n "$file_magic_test_file"; then
7417	case $deplibs_check_method in
7418	"file_magic "*)
7419	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7420	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7421	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7422	    $EGREP "$file_magic_regex" > /dev/null; then
7423	    :
7424	  else
7425	    cat <<_LT_EOF 1>&2
7426
7427*** Warning: the command libtool uses to detect shared libraries,
7428*** $file_magic_cmd, produces output that libtool cannot recognize.
7429*** The result is that libtool may fail to recognize shared libraries
7430*** as such.  This will affect the creation of libtool libraries that
7431*** depend on shared libraries, but programs linked with such libtool
7432*** libraries will work regardless of this problem.  Nevertheless, you
7433*** may want to report the problem to your system manager and/or to
7434*** bug-libtool@gnu.org
7435
7436_LT_EOF
7437	  fi ;;
7438	esac
7439      fi
7440      break
7441    fi
7442  done
7443  IFS="$lt_save_ifs"
7444  MAGIC_CMD="$lt_save_MAGIC_CMD"
7445  ;;
7446esac
7447fi
7448
7449MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7450if test -n "$MAGIC_CMD"; then
7451  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7452$as_echo "$MAGIC_CMD" >&6; }
7453else
7454  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7455$as_echo "no" >&6; }
7456fi
7457
7458
7459
7460
7461
7462if test -z "$lt_cv_path_MAGIC_CMD"; then
7463  if test -n "$ac_tool_prefix"; then
7464    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
7465$as_echo_n "checking for file... " >&6; }
7466if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
7467  $as_echo_n "(cached) " >&6
7468else
7469  case $MAGIC_CMD in
7470[\\/*] |  ?:[\\/]*)
7471  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7472  ;;
7473*)
7474  lt_save_MAGIC_CMD="$MAGIC_CMD"
7475  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7476  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7477  for ac_dir in $ac_dummy; do
7478    IFS="$lt_save_ifs"
7479    test -z "$ac_dir" && ac_dir=.
7480    if test -f $ac_dir/file; then
7481      lt_cv_path_MAGIC_CMD="$ac_dir/file"
7482      if test -n "$file_magic_test_file"; then
7483	case $deplibs_check_method in
7484	"file_magic "*)
7485	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7486	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7487	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7488	    $EGREP "$file_magic_regex" > /dev/null; then
7489	    :
7490	  else
7491	    cat <<_LT_EOF 1>&2
7492
7493*** Warning: the command libtool uses to detect shared libraries,
7494*** $file_magic_cmd, produces output that libtool cannot recognize.
7495*** The result is that libtool may fail to recognize shared libraries
7496*** as such.  This will affect the creation of libtool libraries that
7497*** depend on shared libraries, but programs linked with such libtool
7498*** libraries will work regardless of this problem.  Nevertheless, you
7499*** may want to report the problem to your system manager and/or to
7500*** bug-libtool@gnu.org
7501
7502_LT_EOF
7503	  fi ;;
7504	esac
7505      fi
7506      break
7507    fi
7508  done
7509  IFS="$lt_save_ifs"
7510  MAGIC_CMD="$lt_save_MAGIC_CMD"
7511  ;;
7512esac
7513fi
7514
7515MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7516if test -n "$MAGIC_CMD"; then
7517  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7518$as_echo "$MAGIC_CMD" >&6; }
7519else
7520  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7521$as_echo "no" >&6; }
7522fi
7523
7524
7525  else
7526    MAGIC_CMD=:
7527  fi
7528fi
7529
7530  fi
7531  ;;
7532esac
7533
7534# Use C for the default configuration in the libtool script
7535
7536lt_save_CC="$CC"
7537ac_ext=c
7538ac_cpp='$CPP $CPPFLAGS'
7539ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7540ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7541ac_compiler_gnu=$ac_cv_c_compiler_gnu
7542
7543
7544# Source file extension for C test sources.
7545ac_ext=c
7546
7547# Object file extension for compiled C test sources.
7548objext=o
7549objext=$objext
7550
7551# Code to be used in simple compile tests
7552lt_simple_compile_test_code="int some_variable = 0;"
7553
7554# Code to be used in simple link tests
7555lt_simple_link_test_code='int main(){return(0);}'
7556
7557
7558
7559
7560
7561
7562
7563# If no C compiler was specified, use CC.
7564LTCC=${LTCC-"$CC"}
7565
7566# If no C compiler flags were specified, use CFLAGS.
7567LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7568
7569# Allow CC to be a program name with arguments.
7570compiler=$CC
7571
7572# Save the default compiler, since it gets overwritten when the other
7573# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
7574compiler_DEFAULT=$CC
7575
7576# save warnings/boilerplate of simple test code
7577ac_outfile=conftest.$ac_objext
7578echo "$lt_simple_compile_test_code" >conftest.$ac_ext
7579eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7580_lt_compiler_boilerplate=`cat conftest.err`
7581$RM conftest*
7582
7583ac_outfile=conftest.$ac_objext
7584echo "$lt_simple_link_test_code" >conftest.$ac_ext
7585eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7586_lt_linker_boilerplate=`cat conftest.err`
7587$RM -r conftest*
7588
7589
7590## CAVEAT EMPTOR:
7591## There is no encapsulation within the following macros, do not change
7592## the running order or otherwise move them around unless you know exactly
7593## what you are doing...
7594if test -n "$compiler"; then
7595
7596lt_prog_compiler_no_builtin_flag=
7597
7598if test "$GCC" = yes; then
7599  case $cc_basename in
7600  nvcc*)
7601    lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
7602  *)
7603    lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
7604  esac
7605
7606  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7607$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
7608if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
7609  $as_echo_n "(cached) " >&6
7610else
7611  lt_cv_prog_compiler_rtti_exceptions=no
7612   ac_outfile=conftest.$ac_objext
7613   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7614   lt_compiler_flag="-fno-rtti -fno-exceptions"
7615   # Insert the option either (1) after the last *FLAGS variable, or
7616   # (2) before a word containing "conftest.", or (3) at the end.
7617   # Note that $ac_compile itself does not contain backslashes and begins
7618   # with a dollar sign (not a hyphen), so the echo should work correctly.
7619   # The option is referenced via a variable to avoid confusing sed.
7620   lt_compile=`echo "$ac_compile" | $SED \
7621   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7622   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7623   -e 's:$: $lt_compiler_flag:'`
7624   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
7625   (eval "$lt_compile" 2>conftest.err)
7626   ac_status=$?
7627   cat conftest.err >&5
7628   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7629   if (exit $ac_status) && test -s "$ac_outfile"; then
7630     # The compiler can only warn and ignore the option if not recognized
7631     # So say no if there are warnings other than the usual output.
7632     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
7633     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7634     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7635       lt_cv_prog_compiler_rtti_exceptions=yes
7636     fi
7637   fi
7638   $RM conftest*
7639
7640fi
7641{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7642$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
7643
7644if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7645    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7646else
7647    :
7648fi
7649
7650fi
7651
7652
7653
7654
7655
7656
7657  lt_prog_compiler_wl=
7658lt_prog_compiler_pic=
7659lt_prog_compiler_static=
7660
7661{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
7662$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
7663
7664  if test "$GCC" = yes; then
7665    lt_prog_compiler_wl='-Wl,'
7666    lt_prog_compiler_static='-static'
7667
7668    case $host_os in
7669      aix*)
7670      # All AIX code is PIC.
7671      if test "$host_cpu" = ia64; then
7672	# AIX 5 now supports IA64 processor
7673	lt_prog_compiler_static='-Bstatic'
7674      fi
7675      lt_prog_compiler_pic='-fPIC'
7676      ;;
7677
7678    amigaos*)
7679      case $host_cpu in
7680      powerpc)
7681            # see comment about AmigaOS4 .so support
7682            lt_prog_compiler_pic='-fPIC'
7683        ;;
7684      m68k)
7685            # FIXME: we need at least 68020 code to build shared libraries, but
7686            # adding the `-m68020' flag to GCC prevents building anything better,
7687            # like `-m68040'.
7688            lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7689        ;;
7690      esac
7691      ;;
7692
7693    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7694      # PIC is the default for these OSes.
7695      ;;
7696
7697    mingw* | cygwin* | pw32* | os2* | cegcc*)
7698      # This hack is so that the source file can tell whether it is being
7699      # built for inclusion in a dll (and should export symbols for example).
7700      # Although the cygwin gcc ignores -fPIC, still need this for old-style
7701      # (--disable-auto-import) libraries
7702      lt_prog_compiler_pic='-DDLL_EXPORT'
7703      ;;
7704
7705    darwin* | rhapsody*)
7706      # PIC is the default on this platform
7707      # Common symbols not allowed in MH_DYLIB files
7708      lt_prog_compiler_pic='-fno-common'
7709      ;;
7710
7711    haiku*)
7712      # PIC is the default for Haiku.
7713      # The "-static" flag exists, but is broken.
7714      lt_prog_compiler_static=
7715      ;;
7716
7717    hpux*)
7718      # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
7719      # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
7720      # sets the default TLS model and affects inlining.
7721      case $host_cpu in
7722      hppa*64*)
7723	# +Z the default
7724	;;
7725      *)
7726	lt_prog_compiler_pic='-fPIC'
7727	;;
7728      esac
7729      ;;
7730
7731    interix[3-9]*)
7732      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7733      # Instead, we relocate shared libraries at runtime.
7734      ;;
7735
7736    msdosdjgpp*)
7737      # Just because we use GCC doesn't mean we suddenly get shared libraries
7738      # on systems that don't support them.
7739      lt_prog_compiler_can_build_shared=no
7740      enable_shared=no
7741      ;;
7742
7743    *nto* | *qnx*)
7744      # QNX uses GNU C++, but need to define -shared option too, otherwise
7745      # it will coredump.
7746      lt_prog_compiler_pic='-fPIC -shared'
7747      ;;
7748
7749    sysv4*MP*)
7750      if test -d /usr/nec; then
7751	lt_prog_compiler_pic=-Kconform_pic
7752      fi
7753      ;;
7754
7755    *)
7756      lt_prog_compiler_pic='-fPIC'
7757      ;;
7758    esac
7759
7760    case $cc_basename in
7761    nvcc*) # Cuda Compiler Driver 2.2
7762      lt_prog_compiler_wl='-Xlinker '
7763      lt_prog_compiler_pic='-Xcompiler -fPIC'
7764      ;;
7765    esac
7766  else
7767    # PORTME Check for flag to pass linker flags through the system compiler.
7768    case $host_os in
7769    aix*)
7770      lt_prog_compiler_wl='-Wl,'
7771      if test "$host_cpu" = ia64; then
7772	# AIX 5 now supports IA64 processor
7773	lt_prog_compiler_static='-Bstatic'
7774      else
7775	lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7776      fi
7777      ;;
7778
7779    mingw* | cygwin* | pw32* | os2* | cegcc*)
7780      # This hack is so that the source file can tell whether it is being
7781      # built for inclusion in a dll (and should export symbols for example).
7782      lt_prog_compiler_pic='-DDLL_EXPORT'
7783      ;;
7784
7785    hpux9* | hpux10* | hpux11*)
7786      lt_prog_compiler_wl='-Wl,'
7787      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7788      # not for PA HP-UX.
7789      case $host_cpu in
7790      hppa*64*|ia64*)
7791	# +Z the default
7792	;;
7793      *)
7794	lt_prog_compiler_pic='+Z'
7795	;;
7796      esac
7797      # Is there a better lt_prog_compiler_static that works with the bundled CC?
7798      lt_prog_compiler_static='${wl}-a ${wl}archive'
7799      ;;
7800
7801    irix5* | irix6* | nonstopux*)
7802      lt_prog_compiler_wl='-Wl,'
7803      # PIC (with -KPIC) is the default.
7804      lt_prog_compiler_static='-non_shared'
7805      ;;
7806
7807    linux* | k*bsd*-gnu | kopensolaris*-gnu)
7808      case $cc_basename in
7809      # old Intel for x86_64 which still supported -KPIC.
7810      ecc*)
7811	lt_prog_compiler_wl='-Wl,'
7812	lt_prog_compiler_pic='-KPIC'
7813	lt_prog_compiler_static='-static'
7814        ;;
7815      # icc used to be incompatible with GCC.
7816      # ICC 10 doesn't accept -KPIC any more.
7817      icc* | ifort*)
7818	lt_prog_compiler_wl='-Wl,'
7819	lt_prog_compiler_pic='-fPIC'
7820	lt_prog_compiler_static='-static'
7821        ;;
7822      # Lahey Fortran 8.1.
7823      lf95*)
7824	lt_prog_compiler_wl='-Wl,'
7825	lt_prog_compiler_pic='--shared'
7826	lt_prog_compiler_static='--static'
7827	;;
7828      pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
7829        # Portland Group compilers (*not* the Pentium gcc compiler,
7830	# which looks to be a dead project)
7831	lt_prog_compiler_wl='-Wl,'
7832	lt_prog_compiler_pic='-fpic'
7833	lt_prog_compiler_static='-Bstatic'
7834        ;;
7835      ccc*)
7836        lt_prog_compiler_wl='-Wl,'
7837        # All Alpha code is PIC.
7838        lt_prog_compiler_static='-non_shared'
7839        ;;
7840      xl* | bgxl* | bgf* | mpixl*)
7841	# IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
7842	lt_prog_compiler_wl='-Wl,'
7843	lt_prog_compiler_pic='-qpic'
7844	lt_prog_compiler_static='-qstaticlink'
7845	;;
7846      *)
7847	case `$CC -V 2>&1 | sed 5q` in
7848	*Sun\ F* | *Sun*Fortran*)
7849	  # Sun Fortran 8.3 passes all unrecognized flags to the linker
7850	  lt_prog_compiler_pic='-KPIC'
7851	  lt_prog_compiler_static='-Bstatic'
7852	  lt_prog_compiler_wl=''
7853	  ;;
7854	*Sun\ C*)
7855	  # Sun C 5.9
7856	  lt_prog_compiler_pic='-KPIC'
7857	  lt_prog_compiler_static='-Bstatic'
7858	  lt_prog_compiler_wl='-Wl,'
7859	  ;;
7860	esac
7861	;;
7862      esac
7863      ;;
7864
7865    newsos6)
7866      lt_prog_compiler_pic='-KPIC'
7867      lt_prog_compiler_static='-Bstatic'
7868      ;;
7869
7870    *nto* | *qnx*)
7871      # QNX uses GNU C++, but need to define -shared option too, otherwise
7872      # it will coredump.
7873      lt_prog_compiler_pic='-fPIC -shared'
7874      ;;
7875
7876    osf3* | osf4* | osf5*)
7877      lt_prog_compiler_wl='-Wl,'
7878      # All OSF/1 code is PIC.
7879      lt_prog_compiler_static='-non_shared'
7880      ;;
7881
7882    rdos*)
7883      lt_prog_compiler_static='-non_shared'
7884      ;;
7885
7886    solaris*)
7887      lt_prog_compiler_pic='-KPIC'
7888      lt_prog_compiler_static='-Bstatic'
7889      case $cc_basename in
7890      f77* | f90* | f95*)
7891	lt_prog_compiler_wl='-Qoption ld ';;
7892      *)
7893	lt_prog_compiler_wl='-Wl,';;
7894      esac
7895      ;;
7896
7897    sunos4*)
7898      lt_prog_compiler_wl='-Qoption ld '
7899      lt_prog_compiler_pic='-PIC'
7900      lt_prog_compiler_static='-Bstatic'
7901      ;;
7902
7903    sysv4 | sysv4.2uw2* | sysv4.3*)
7904      lt_prog_compiler_wl='-Wl,'
7905      lt_prog_compiler_pic='-KPIC'
7906      lt_prog_compiler_static='-Bstatic'
7907      ;;
7908
7909    sysv4*MP*)
7910      if test -d /usr/nec ;then
7911	lt_prog_compiler_pic='-Kconform_pic'
7912	lt_prog_compiler_static='-Bstatic'
7913      fi
7914      ;;
7915
7916    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
7917      lt_prog_compiler_wl='-Wl,'
7918      lt_prog_compiler_pic='-KPIC'
7919      lt_prog_compiler_static='-Bstatic'
7920      ;;
7921
7922    unicos*)
7923      lt_prog_compiler_wl='-Wl,'
7924      lt_prog_compiler_can_build_shared=no
7925      ;;
7926
7927    uts4*)
7928      lt_prog_compiler_pic='-pic'
7929      lt_prog_compiler_static='-Bstatic'
7930      ;;
7931
7932    *)
7933      lt_prog_compiler_can_build_shared=no
7934      ;;
7935    esac
7936  fi
7937
7938case $host_os in
7939  # For platforms which do not support PIC, -DPIC is meaningless:
7940  *djgpp*)
7941    lt_prog_compiler_pic=
7942    ;;
7943  *)
7944    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
7945    ;;
7946esac
7947{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
7948$as_echo "$lt_prog_compiler_pic" >&6; }
7949
7950
7951
7952
7953
7954
7955#
7956# Check to make sure the PIC flag actually works.
7957#
7958if test -n "$lt_prog_compiler_pic"; then
7959  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
7960$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
7961if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
7962  $as_echo_n "(cached) " >&6
7963else
7964  lt_cv_prog_compiler_pic_works=no
7965   ac_outfile=conftest.$ac_objext
7966   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7967   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
7968   # Insert the option either (1) after the last *FLAGS variable, or
7969   # (2) before a word containing "conftest.", or (3) at the end.
7970   # Note that $ac_compile itself does not contain backslashes and begins
7971   # with a dollar sign (not a hyphen), so the echo should work correctly.
7972   # The option is referenced via a variable to avoid confusing sed.
7973   lt_compile=`echo "$ac_compile" | $SED \
7974   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7975   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7976   -e 's:$: $lt_compiler_flag:'`
7977   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
7978   (eval "$lt_compile" 2>conftest.err)
7979   ac_status=$?
7980   cat conftest.err >&5
7981   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7982   if (exit $ac_status) && test -s "$ac_outfile"; then
7983     # The compiler can only warn and ignore the option if not recognized
7984     # So say no if there are warnings other than the usual output.
7985     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
7986     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7987     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7988       lt_cv_prog_compiler_pic_works=yes
7989     fi
7990   fi
7991   $RM conftest*
7992
7993fi
7994{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
7995$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
7996
7997if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
7998    case $lt_prog_compiler_pic in
7999     "" | " "*) ;;
8000     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8001     esac
8002else
8003    lt_prog_compiler_pic=
8004     lt_prog_compiler_can_build_shared=no
8005fi
8006
8007fi
8008
8009
8010
8011
8012
8013
8014#
8015# Check to make sure the static flag actually works.
8016#
8017wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8018{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8019$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8020if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
8021  $as_echo_n "(cached) " >&6
8022else
8023  lt_cv_prog_compiler_static_works=no
8024   save_LDFLAGS="$LDFLAGS"
8025   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8026   echo "$lt_simple_link_test_code" > conftest.$ac_ext
8027   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8028     # The linker can only warn and ignore the option if not recognized
8029     # So say no if there are warnings
8030     if test -s conftest.err; then
8031       # Append any errors to the config.log.
8032       cat conftest.err 1>&5
8033       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
8034       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8035       if diff conftest.exp conftest.er2 >/dev/null; then
8036         lt_cv_prog_compiler_static_works=yes
8037       fi
8038     else
8039       lt_cv_prog_compiler_static_works=yes
8040     fi
8041   fi
8042   $RM -r conftest*
8043   LDFLAGS="$save_LDFLAGS"
8044
8045fi
8046{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8047$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8048
8049if test x"$lt_cv_prog_compiler_static_works" = xyes; then
8050    :
8051else
8052    lt_prog_compiler_static=
8053fi
8054
8055
8056
8057
8058
8059
8060
8061  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8062$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8063if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
8064  $as_echo_n "(cached) " >&6
8065else
8066  lt_cv_prog_compiler_c_o=no
8067   $RM -r conftest 2>/dev/null
8068   mkdir conftest
8069   cd conftest
8070   mkdir out
8071   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8072
8073   lt_compiler_flag="-o out/conftest2.$ac_objext"
8074   # Insert the option either (1) after the last *FLAGS variable, or
8075   # (2) before a word containing "conftest.", or (3) at the end.
8076   # Note that $ac_compile itself does not contain backslashes and begins
8077   # with a dollar sign (not a hyphen), so the echo should work correctly.
8078   lt_compile=`echo "$ac_compile" | $SED \
8079   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8080   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8081   -e 's:$: $lt_compiler_flag:'`
8082   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8083   (eval "$lt_compile" 2>out/conftest.err)
8084   ac_status=$?
8085   cat out/conftest.err >&5
8086   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8087   if (exit $ac_status) && test -s out/conftest2.$ac_objext
8088   then
8089     # The compiler can only warn and ignore the option if not recognized
8090     # So say no if there are warnings
8091     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8092     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8093     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8094       lt_cv_prog_compiler_c_o=yes
8095     fi
8096   fi
8097   chmod u+w . 2>&5
8098   $RM conftest*
8099   # SGI C++ compiler will create directory out/ii_files/ for
8100   # template instantiation
8101   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8102   $RM out/* && rmdir out
8103   cd ..
8104   $RM -r conftest
8105   $RM conftest*
8106
8107fi
8108{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8109$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8110
8111
8112
8113
8114
8115
8116  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8117$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8118if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
8119  $as_echo_n "(cached) " >&6
8120else
8121  lt_cv_prog_compiler_c_o=no
8122   $RM -r conftest 2>/dev/null
8123   mkdir conftest
8124   cd conftest
8125   mkdir out
8126   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8127
8128   lt_compiler_flag="-o out/conftest2.$ac_objext"
8129   # Insert the option either (1) after the last *FLAGS variable, or
8130   # (2) before a word containing "conftest.", or (3) at the end.
8131   # Note that $ac_compile itself does not contain backslashes and begins
8132   # with a dollar sign (not a hyphen), so the echo should work correctly.
8133   lt_compile=`echo "$ac_compile" | $SED \
8134   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8135   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8136   -e 's:$: $lt_compiler_flag:'`
8137   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8138   (eval "$lt_compile" 2>out/conftest.err)
8139   ac_status=$?
8140   cat out/conftest.err >&5
8141   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8142   if (exit $ac_status) && test -s out/conftest2.$ac_objext
8143   then
8144     # The compiler can only warn and ignore the option if not recognized
8145     # So say no if there are warnings
8146     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8147     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8148     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8149       lt_cv_prog_compiler_c_o=yes
8150     fi
8151   fi
8152   chmod u+w . 2>&5
8153   $RM conftest*
8154   # SGI C++ compiler will create directory out/ii_files/ for
8155   # template instantiation
8156   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8157   $RM out/* && rmdir out
8158   cd ..
8159   $RM -r conftest
8160   $RM conftest*
8161
8162fi
8163{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8164$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8165
8166
8167
8168
8169hard_links="nottested"
8170if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8171  # do not overwrite the value of need_locks provided by the user
8172  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
8173$as_echo_n "checking if we can lock with hard links... " >&6; }
8174  hard_links=yes
8175  $RM conftest*
8176  ln conftest.a conftest.b 2>/dev/null && hard_links=no
8177  touch conftest.a
8178  ln conftest.a conftest.b 2>&5 || hard_links=no
8179  ln conftest.a conftest.b 2>/dev/null && hard_links=no
8180  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
8181$as_echo "$hard_links" >&6; }
8182  if test "$hard_links" = no; then
8183    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8184$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8185    need_locks=warn
8186  fi
8187else
8188  need_locks=no
8189fi
8190
8191
8192
8193
8194
8195
8196  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8197$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
8198
8199  runpath_var=
8200  allow_undefined_flag=
8201  always_export_symbols=no
8202  archive_cmds=
8203  archive_expsym_cmds=
8204  compiler_needs_object=no
8205  enable_shared_with_static_runtimes=no
8206  export_dynamic_flag_spec=
8207  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8208  hardcode_automatic=no
8209  hardcode_direct=no
8210  hardcode_direct_absolute=no
8211  hardcode_libdir_flag_spec=
8212  hardcode_libdir_flag_spec_ld=
8213  hardcode_libdir_separator=
8214  hardcode_minus_L=no
8215  hardcode_shlibpath_var=unsupported
8216  inherit_rpath=no
8217  link_all_deplibs=unknown
8218  module_cmds=
8219  module_expsym_cmds=
8220  old_archive_from_new_cmds=
8221  old_archive_from_expsyms_cmds=
8222  thread_safe_flag_spec=
8223  whole_archive_flag_spec=
8224  # include_expsyms should be a list of space-separated symbols to be *always*
8225  # included in the symbol list
8226  include_expsyms=
8227  # exclude_expsyms can be an extended regexp of symbols to exclude
8228  # it will be wrapped by ` (' and `)$', so one must not match beginning or
8229  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8230  # as well as any symbol that contains `d'.
8231  exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8232  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8233  # platforms (ab)use it in PIC code, but their linkers get confused if
8234  # the symbol is explicitly referenced.  Since portable code cannot
8235  # rely on this symbol name, it's probably fine to never include it in
8236  # preloaded symbol tables.
8237  # Exclude shared library initialization/finalization symbols.
8238  extract_expsyms_cmds=
8239
8240  case $host_os in
8241  cygwin* | mingw* | pw32* | cegcc*)
8242    # FIXME: the MSVC++ port hasn't been tested in a loooong time
8243    # When not using gcc, we currently assume that we are using
8244    # Microsoft Visual C++.
8245    if test "$GCC" != yes; then
8246      with_gnu_ld=no
8247    fi
8248    ;;
8249  interix*)
8250    # we just hope/assume this is gcc and not c89 (= MSVC++)
8251    with_gnu_ld=yes
8252    ;;
8253  openbsd*)
8254    with_gnu_ld=no
8255    ;;
8256  esac
8257
8258  ld_shlibs=yes
8259
8260  # On some targets, GNU ld is compatible enough with the native linker
8261  # that we're better off using the native interface for both.
8262  lt_use_gnu_ld_interface=no
8263  if test "$with_gnu_ld" = yes; then
8264    case $host_os in
8265      aix*)
8266	# The AIX port of GNU ld has always aspired to compatibility
8267	# with the native linker.  However, as the warning in the GNU ld
8268	# block says, versions before 2.19.5* couldn't really create working
8269	# shared libraries, regardless of the interface used.
8270	case `$LD -v 2>&1` in
8271	  *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
8272	  *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
8273	  *\ \(GNU\ Binutils\)\ [3-9]*) ;;
8274	  *)
8275	    lt_use_gnu_ld_interface=yes
8276	    ;;
8277	esac
8278	;;
8279      *)
8280	lt_use_gnu_ld_interface=yes
8281	;;
8282    esac
8283  fi
8284
8285  if test "$lt_use_gnu_ld_interface" = yes; then
8286    # If archive_cmds runs LD, not CC, wlarc should be empty
8287    wlarc='${wl}'
8288
8289    # Set some defaults for GNU ld with shared library support. These
8290    # are reset later if shared libraries are not supported. Putting them
8291    # here allows them to be overridden if necessary.
8292    runpath_var=LD_RUN_PATH
8293    hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8294    export_dynamic_flag_spec='${wl}--export-dynamic'
8295    # ancient GNU ld didn't support --whole-archive et. al.
8296    if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
8297      whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8298    else
8299      whole_archive_flag_spec=
8300    fi
8301    supports_anon_versioning=no
8302    case `$LD -v 2>&1` in
8303      *GNU\ gold*) supports_anon_versioning=yes ;;
8304      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8305      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8306      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8307      *\ 2.11.*) ;; # other 2.11 versions
8308      *) supports_anon_versioning=yes ;;
8309    esac
8310
8311    # See if GNU ld supports shared libraries.
8312    case $host_os in
8313    aix[3-9]*)
8314      # On AIX/PPC, the GNU linker is very broken
8315      if test "$host_cpu" != ia64; then
8316	ld_shlibs=no
8317	cat <<_LT_EOF 1>&2
8318
8319*** Warning: the GNU linker, at least up to release 2.19, is reported
8320*** to be unable to reliably create shared libraries on AIX.
8321*** Therefore, libtool is disabling shared libraries support.  If you
8322*** really care for shared libraries, you may want to install binutils
8323*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
8324*** You will then need to restart the configuration process.
8325
8326_LT_EOF
8327      fi
8328      ;;
8329
8330    amigaos*)
8331      case $host_cpu in
8332      powerpc)
8333            # see comment about AmigaOS4 .so support
8334            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8335            archive_expsym_cmds=''
8336        ;;
8337      m68k)
8338            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)'
8339            hardcode_libdir_flag_spec='-L$libdir'
8340            hardcode_minus_L=yes
8341        ;;
8342      esac
8343      ;;
8344
8345    beos*)
8346      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8347	allow_undefined_flag=unsupported
8348	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8349	# support --undefined.  This deserves some investigation.  FIXME
8350	archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8351      else
8352	ld_shlibs=no
8353      fi
8354      ;;
8355
8356    cygwin* | mingw* | pw32* | cegcc*)
8357      # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8358      # as there is no search path for DLLs.
8359      hardcode_libdir_flag_spec='-L$libdir'
8360      export_dynamic_flag_spec='${wl}--export-all-symbols'
8361      allow_undefined_flag=unsupported
8362      always_export_symbols=no
8363      enable_shared_with_static_runtimes=yes
8364      export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
8365
8366      if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
8367        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8368	# If the export-symbols file already is a .def file (1st line
8369	# is EXPORTS), use it as is; otherwise, prepend...
8370	archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8371	  cp $export_symbols $output_objdir/$soname.def;
8372	else
8373	  echo EXPORTS > $output_objdir/$soname.def;
8374	  cat $export_symbols >> $output_objdir/$soname.def;
8375	fi~
8376	$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8377      else
8378	ld_shlibs=no
8379      fi
8380      ;;
8381
8382    haiku*)
8383      archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8384      link_all_deplibs=yes
8385      ;;
8386
8387    interix[3-9]*)
8388      hardcode_direct=no
8389      hardcode_shlibpath_var=no
8390      hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8391      export_dynamic_flag_spec='${wl}-E'
8392      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8393      # Instead, shared libraries are loaded at an image base (0x10000000 by
8394      # default) and relocated if they conflict, which is a slow very memory
8395      # consuming and fragmenting process.  To avoid this, we pick a random,
8396      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8397      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
8398      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8399      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'
8400      ;;
8401
8402    gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
8403      tmp_diet=no
8404      if test "$host_os" = linux-dietlibc; then
8405	case $cc_basename in
8406	  diet\ *) tmp_diet=yes;;	# linux-dietlibc with static linking (!diet-dyn)
8407	esac
8408      fi
8409      if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
8410	 && test "$tmp_diet" = no
8411      then
8412	tmp_addflag=' $pic_flag'
8413	tmp_sharedflag='-shared'
8414	case $cc_basename,$host_cpu in
8415        pgcc*)				# Portland Group C compiler
8416	  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'
8417	  tmp_addflag=' $pic_flag'
8418	  ;;
8419	pgf77* | pgf90* | pgf95* | pgfortran*)
8420					# Portland Group f77 and f90 compilers
8421	  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'
8422	  tmp_addflag=' $pic_flag -Mnomain' ;;
8423	ecc*,ia64* | icc*,ia64*)	# Intel C compiler on ia64
8424	  tmp_addflag=' -i_dynamic' ;;
8425	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
8426	  tmp_addflag=' -i_dynamic -nofor_main' ;;
8427	ifc* | ifort*)			# Intel Fortran compiler
8428	  tmp_addflag=' -nofor_main' ;;
8429	lf95*)				# Lahey Fortran 8.1
8430	  whole_archive_flag_spec=
8431	  tmp_sharedflag='--shared' ;;
8432	xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
8433	  tmp_sharedflag='-qmkshrobj'
8434	  tmp_addflag= ;;
8435	nvcc*)	# Cuda Compiler Driver 2.2
8436	  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'
8437	  compiler_needs_object=yes
8438	  ;;
8439	esac
8440	case `$CC -V 2>&1 | sed 5q` in
8441	*Sun\ C*)			# Sun C 5.9
8442	  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'
8443	  compiler_needs_object=yes
8444	  tmp_sharedflag='-G' ;;
8445	*Sun\ F*)			# Sun Fortran 8.3
8446	  tmp_sharedflag='-G' ;;
8447	esac
8448	archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8449
8450        if test "x$supports_anon_versioning" = xyes; then
8451          archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8452	    cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8453	    echo "local: *; };" >> $output_objdir/$libname.ver~
8454	    $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8455        fi
8456
8457	case $cc_basename in
8458	xlf* | bgf* | bgxlf* | mpixlf*)
8459	  # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
8460	  whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
8461	  hardcode_libdir_flag_spec=
8462	  hardcode_libdir_flag_spec_ld='-rpath $libdir'
8463	  archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
8464	  if test "x$supports_anon_versioning" = xyes; then
8465	    archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8466	      cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8467	      echo "local: *; };" >> $output_objdir/$libname.ver~
8468	      $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
8469	  fi
8470	  ;;
8471	esac
8472      else
8473        ld_shlibs=no
8474      fi
8475      ;;
8476
8477    netbsd*)
8478      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8479	archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8480	wlarc=
8481      else
8482	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8483	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8484      fi
8485      ;;
8486
8487    solaris*)
8488      if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
8489	ld_shlibs=no
8490	cat <<_LT_EOF 1>&2
8491
8492*** Warning: The releases 2.8.* of the GNU linker cannot reliably
8493*** create shared libraries on Solaris systems.  Therefore, libtool
8494*** is disabling shared libraries support.  We urge you to upgrade GNU
8495*** binutils to release 2.9.1 or newer.  Another option is to modify
8496*** your PATH or compiler configuration so that the native linker is
8497*** used, and then restart.
8498
8499_LT_EOF
8500      elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8501	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8502	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8503      else
8504	ld_shlibs=no
8505      fi
8506      ;;
8507
8508    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8509      case `$LD -v 2>&1` in
8510        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8511	ld_shlibs=no
8512	cat <<_LT_EOF 1>&2
8513
8514*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8515*** reliably create shared libraries on SCO systems.  Therefore, libtool
8516*** is disabling shared libraries support.  We urge you to upgrade GNU
8517*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
8518*** your PATH or compiler configuration so that the native linker is
8519*** used, and then restart.
8520
8521_LT_EOF
8522	;;
8523	*)
8524	  # For security reasons, it is highly recommended that you always
8525	  # use absolute paths for naming shared libraries, and exclude the
8526	  # DT_RUNPATH tag from executables and libraries.  But doing so
8527	  # requires that you compile everything twice, which is a pain.
8528	  if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8529	    hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8530	    archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8531	    archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8532	  else
8533	    ld_shlibs=no
8534	  fi
8535	;;
8536      esac
8537      ;;
8538
8539    sunos4*)
8540      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8541      wlarc=
8542      hardcode_direct=yes
8543      hardcode_shlibpath_var=no
8544      ;;
8545
8546    *)
8547      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8548	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8549	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8550      else
8551	ld_shlibs=no
8552      fi
8553      ;;
8554    esac
8555
8556    if test "$ld_shlibs" = no; then
8557      runpath_var=
8558      hardcode_libdir_flag_spec=
8559      export_dynamic_flag_spec=
8560      whole_archive_flag_spec=
8561    fi
8562  else
8563    # PORTME fill in a description of your system's linker (not GNU ld)
8564    case $host_os in
8565    aix3*)
8566      allow_undefined_flag=unsupported
8567      always_export_symbols=yes
8568      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'
8569      # Note: this linker hardcodes the directories in LIBPATH if there
8570      # are no directories specified by -L.
8571      hardcode_minus_L=yes
8572      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8573	# Neither direct hardcoding nor static linking is supported with a
8574	# broken collect2.
8575	hardcode_direct=unsupported
8576      fi
8577      ;;
8578
8579    aix[4-9]*)
8580      if test "$host_cpu" = ia64; then
8581	# On IA64, the linker does run time linking by default, so we don't
8582	# have to do anything special.
8583	aix_use_runtimelinking=no
8584	exp_sym_flag='-Bexport'
8585	no_entry_flag=""
8586      else
8587	# If we're using GNU nm, then we don't want the "-C" option.
8588	# -C means demangle to AIX nm, but means don't demangle with GNU nm
8589	# Also, AIX nm treats weak defined symbols like other global
8590	# defined symbols, whereas GNU nm marks them as "W".
8591	if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
8592	  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'
8593	else
8594	  export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
8595	fi
8596	aix_use_runtimelinking=no
8597
8598	# Test if we are trying to use run time linking or normal
8599	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
8600	# need to do runtime linking.
8601	case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
8602	  for ld_flag in $LDFLAGS; do
8603	  if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8604	    aix_use_runtimelinking=yes
8605	    break
8606	  fi
8607	  done
8608	  ;;
8609	esac
8610
8611	exp_sym_flag='-bexport'
8612	no_entry_flag='-bnoentry'
8613      fi
8614
8615      # When large executables or shared objects are built, AIX ld can
8616      # have problems creating the table of contents.  If linking a library
8617      # or program results in "error TOC overflow" add -mminimal-toc to
8618      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
8619      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8620
8621      archive_cmds=''
8622      hardcode_direct=yes
8623      hardcode_direct_absolute=yes
8624      hardcode_libdir_separator=':'
8625      link_all_deplibs=yes
8626      file_list_spec='${wl}-f,'
8627
8628      if test "$GCC" = yes; then
8629	case $host_os in aix4.[012]|aix4.[012].*)
8630	# We only want to do this on AIX 4.2 and lower, the check
8631	# below for broken collect2 doesn't work under 4.3+
8632	  collect2name=`${CC} -print-prog-name=collect2`
8633	  if test -f "$collect2name" &&
8634	   strings "$collect2name" | $GREP resolve_lib_name >/dev/null
8635	  then
8636	  # We have reworked collect2
8637	  :
8638	  else
8639	  # We have old collect2
8640	  hardcode_direct=unsupported
8641	  # It fails to find uninstalled libraries when the uninstalled
8642	  # path is not listed in the libpath.  Setting hardcode_minus_L
8643	  # to unsupported forces relinking
8644	  hardcode_minus_L=yes
8645	  hardcode_libdir_flag_spec='-L$libdir'
8646	  hardcode_libdir_separator=
8647	  fi
8648	  ;;
8649	esac
8650	shared_flag='-shared'
8651	if test "$aix_use_runtimelinking" = yes; then
8652	  shared_flag="$shared_flag "'${wl}-G'
8653	fi
8654      else
8655	# not using gcc
8656	if test "$host_cpu" = ia64; then
8657	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8658	# chokes on -Wl,-G. The following line is correct:
8659	  shared_flag='-G'
8660	else
8661	  if test "$aix_use_runtimelinking" = yes; then
8662	    shared_flag='${wl}-G'
8663	  else
8664	    shared_flag='${wl}-bM:SRE'
8665	  fi
8666	fi
8667      fi
8668
8669      export_dynamic_flag_spec='${wl}-bexpall'
8670      # It seems that -bexpall does not export symbols beginning with
8671      # underscore (_), so it is better to generate a list of symbols to export.
8672      always_export_symbols=yes
8673      if test "$aix_use_runtimelinking" = yes; then
8674	# Warning - without using the other runtime loading flags (-brtl),
8675	# -berok will link without error, but may produce a broken library.
8676	allow_undefined_flag='-berok'
8677        # Determine the default libpath from the value encoded in an
8678        # empty executable.
8679        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8680/* end confdefs.h.  */
8681
8682int
8683main ()
8684{
8685
8686  ;
8687  return 0;
8688}
8689_ACEOF
8690if ac_fn_c_try_link "$LINENO"; then :
8691
8692lt_aix_libpath_sed='
8693    /Import File Strings/,/^$/ {
8694	/^0/ {
8695	    s/^0  *\(.*\)$/\1/
8696	    p
8697	}
8698    }'
8699aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8700# Check for a 64-bit object if we didn't find anything.
8701if test -z "$aix_libpath"; then
8702  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8703fi
8704fi
8705rm -f core conftest.err conftest.$ac_objext \
8706    conftest$ac_exeext conftest.$ac_ext
8707if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8708
8709        hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8710        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"
8711      else
8712	if test "$host_cpu" = ia64; then
8713	  hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8714	  allow_undefined_flag="-z nodefs"
8715	  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"
8716	else
8717	 # Determine the default libpath from the value encoded in an
8718	 # empty executable.
8719	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8720/* end confdefs.h.  */
8721
8722int
8723main ()
8724{
8725
8726  ;
8727  return 0;
8728}
8729_ACEOF
8730if ac_fn_c_try_link "$LINENO"; then :
8731
8732lt_aix_libpath_sed='
8733    /Import File Strings/,/^$/ {
8734	/^0/ {
8735	    s/^0  *\(.*\)$/\1/
8736	    p
8737	}
8738    }'
8739aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8740# Check for a 64-bit object if we didn't find anything.
8741if test -z "$aix_libpath"; then
8742  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8743fi
8744fi
8745rm -f core conftest.err conftest.$ac_objext \
8746    conftest$ac_exeext conftest.$ac_ext
8747if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8748
8749	 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8750	  # Warning - without using the other run time loading flags,
8751	  # -berok will link without error, but may produce a broken library.
8752	  no_undefined_flag=' ${wl}-bernotok'
8753	  allow_undefined_flag=' ${wl}-berok'
8754	  if test "$with_gnu_ld" = yes; then
8755	    # We only use this code for GNU lds that support --whole-archive.
8756	    whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
8757	  else
8758	    # Exported symbols can be pulled into shared objects from archives
8759	    whole_archive_flag_spec='$convenience'
8760	  fi
8761	  archive_cmds_need_lc=yes
8762	  # This is similar to how AIX traditionally builds its shared libraries.
8763	  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'
8764	fi
8765      fi
8766      ;;
8767
8768    amigaos*)
8769      case $host_cpu in
8770      powerpc)
8771            # see comment about AmigaOS4 .so support
8772            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8773            archive_expsym_cmds=''
8774        ;;
8775      m68k)
8776            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)'
8777            hardcode_libdir_flag_spec='-L$libdir'
8778            hardcode_minus_L=yes
8779        ;;
8780      esac
8781      ;;
8782
8783    bsdi[45]*)
8784      export_dynamic_flag_spec=-rdynamic
8785      ;;
8786
8787    cygwin* | mingw* | pw32* | cegcc*)
8788      # When not using gcc, we currently assume that we are using
8789      # Microsoft Visual C++.
8790      # hardcode_libdir_flag_spec is actually meaningless, as there is
8791      # no search path for DLLs.
8792      hardcode_libdir_flag_spec=' '
8793      allow_undefined_flag=unsupported
8794      # Tell ltmain to make .lib files, not .a files.
8795      libext=lib
8796      # Tell ltmain to make .dll files, not .so files.
8797      shrext_cmds=".dll"
8798      # FIXME: Setting linknames here is a bad hack.
8799      archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
8800      # The linker will automatically build a .lib file if we build a DLL.
8801      old_archive_from_new_cmds='true'
8802      # FIXME: Should let the user specify the lib program.
8803      old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
8804      fix_srcfile_path='`cygpath -w "$srcfile"`'
8805      enable_shared_with_static_runtimes=yes
8806      ;;
8807
8808    darwin* | rhapsody*)
8809
8810
8811  archive_cmds_need_lc=no
8812  hardcode_direct=no
8813  hardcode_automatic=yes
8814  hardcode_shlibpath_var=unsupported
8815  if test "$lt_cv_ld_force_load" = "yes"; then
8816    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\"`'
8817  else
8818    whole_archive_flag_spec=''
8819  fi
8820  link_all_deplibs=yes
8821  allow_undefined_flag="$_lt_dar_allow_undefined"
8822  case $cc_basename in
8823     ifort*) _lt_dar_can_shared=yes ;;
8824     *) _lt_dar_can_shared=$GCC ;;
8825  esac
8826  if test "$_lt_dar_can_shared" = "yes"; then
8827    output_verbose_link_cmd=func_echo_all
8828    archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
8829    module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
8830    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}"
8831    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}"
8832
8833  else
8834  ld_shlibs=no
8835  fi
8836
8837      ;;
8838
8839    dgux*)
8840      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8841      hardcode_libdir_flag_spec='-L$libdir'
8842      hardcode_shlibpath_var=no
8843      ;;
8844
8845    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
8846    # support.  Future versions do this automatically, but an explicit c++rt0.o
8847    # does not break anything, and helps significantly (at the cost of a little
8848    # extra space).
8849    freebsd2.2*)
8850      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
8851      hardcode_libdir_flag_spec='-R$libdir'
8852      hardcode_direct=yes
8853      hardcode_shlibpath_var=no
8854      ;;
8855
8856    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
8857    freebsd2.*)
8858      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8859      hardcode_direct=yes
8860      hardcode_minus_L=yes
8861      hardcode_shlibpath_var=no
8862      ;;
8863
8864    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
8865    freebsd* | dragonfly*)
8866      archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
8867      hardcode_libdir_flag_spec='-R$libdir'
8868      hardcode_direct=yes
8869      hardcode_shlibpath_var=no
8870      ;;
8871
8872    hpux9*)
8873      if test "$GCC" = yes; then
8874	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'
8875      else
8876	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'
8877      fi
8878      hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8879      hardcode_libdir_separator=:
8880      hardcode_direct=yes
8881
8882      # hardcode_minus_L: Not really in the search PATH,
8883      # but as the default location of the library.
8884      hardcode_minus_L=yes
8885      export_dynamic_flag_spec='${wl}-E'
8886      ;;
8887
8888    hpux10*)
8889      if test "$GCC" = yes && test "$with_gnu_ld" = no; then
8890	archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8891      else
8892	archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8893      fi
8894      if test "$with_gnu_ld" = no; then
8895	hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8896	hardcode_libdir_flag_spec_ld='+b $libdir'
8897	hardcode_libdir_separator=:
8898	hardcode_direct=yes
8899	hardcode_direct_absolute=yes
8900	export_dynamic_flag_spec='${wl}-E'
8901	# hardcode_minus_L: Not really in the search PATH,
8902	# but as the default location of the library.
8903	hardcode_minus_L=yes
8904      fi
8905      ;;
8906
8907    hpux11*)
8908      if test "$GCC" = yes && test "$with_gnu_ld" = no; then
8909	case $host_cpu in
8910	hppa*64*)
8911	  archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8912	  ;;
8913	ia64*)
8914	  archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8915	  ;;
8916	*)
8917	  archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8918	  ;;
8919	esac
8920      else
8921	case $host_cpu in
8922	hppa*64*)
8923	  archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8924	  ;;
8925	ia64*)
8926	  archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8927	  ;;
8928	*)
8929
8930	  # Older versions of the 11.00 compiler do not understand -b yet
8931	  # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
8932	  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
8933$as_echo_n "checking if $CC understands -b... " >&6; }
8934if test "${lt_cv_prog_compiler__b+set}" = set; then :
8935  $as_echo_n "(cached) " >&6
8936else
8937  lt_cv_prog_compiler__b=no
8938   save_LDFLAGS="$LDFLAGS"
8939   LDFLAGS="$LDFLAGS -b"
8940   echo "$lt_simple_link_test_code" > conftest.$ac_ext
8941   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8942     # The linker can only warn and ignore the option if not recognized
8943     # So say no if there are warnings
8944     if test -s conftest.err; then
8945       # Append any errors to the config.log.
8946       cat conftest.err 1>&5
8947       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
8948       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8949       if diff conftest.exp conftest.er2 >/dev/null; then
8950         lt_cv_prog_compiler__b=yes
8951       fi
8952     else
8953       lt_cv_prog_compiler__b=yes
8954     fi
8955   fi
8956   $RM -r conftest*
8957   LDFLAGS="$save_LDFLAGS"
8958
8959fi
8960{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
8961$as_echo "$lt_cv_prog_compiler__b" >&6; }
8962
8963if test x"$lt_cv_prog_compiler__b" = xyes; then
8964    archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8965else
8966    archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8967fi
8968
8969	  ;;
8970	esac
8971      fi
8972      if test "$with_gnu_ld" = no; then
8973	hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8974	hardcode_libdir_separator=:
8975
8976	case $host_cpu in
8977	hppa*64*|ia64*)
8978	  hardcode_direct=no
8979	  hardcode_shlibpath_var=no
8980	  ;;
8981	*)
8982	  hardcode_direct=yes
8983	  hardcode_direct_absolute=yes
8984	  export_dynamic_flag_spec='${wl}-E'
8985
8986	  # hardcode_minus_L: Not really in the search PATH,
8987	  # but as the default location of the library.
8988	  hardcode_minus_L=yes
8989	  ;;
8990	esac
8991      fi
8992      ;;
8993
8994    irix5* | irix6* | nonstopux*)
8995      if test "$GCC" = yes; then
8996	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'
8997	# Try to use the -exported_symbol ld option, if it does not
8998	# work, assume that -exports_file does not work either and
8999	# implicitly export all symbols.
9000        save_LDFLAGS="$LDFLAGS"
9001        LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9002        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9003/* end confdefs.h.  */
9004int foo(void) {}
9005_ACEOF
9006if ac_fn_c_try_link "$LINENO"; then :
9007  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'
9008
9009fi
9010rm -f core conftest.err conftest.$ac_objext \
9011    conftest$ac_exeext conftest.$ac_ext
9012        LDFLAGS="$save_LDFLAGS"
9013      else
9014	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'
9015	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'
9016      fi
9017      archive_cmds_need_lc='no'
9018      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9019      hardcode_libdir_separator=:
9020      inherit_rpath=yes
9021      link_all_deplibs=yes
9022      ;;
9023
9024    netbsd*)
9025      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9026	archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
9027      else
9028	archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
9029      fi
9030      hardcode_libdir_flag_spec='-R$libdir'
9031      hardcode_direct=yes
9032      hardcode_shlibpath_var=no
9033      ;;
9034
9035    newsos6)
9036      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9037      hardcode_direct=yes
9038      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9039      hardcode_libdir_separator=:
9040      hardcode_shlibpath_var=no
9041      ;;
9042
9043    *nto* | *qnx*)
9044      ;;
9045
9046    openbsd*)
9047      if test -f /usr/libexec/ld.so; then
9048	hardcode_direct=yes
9049	hardcode_shlibpath_var=no
9050	hardcode_direct_absolute=yes
9051	if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9052	  archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9053	  archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9054	  hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9055	  export_dynamic_flag_spec='${wl}-E'
9056	else
9057	  case $host_os in
9058	   openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9059	     archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9060	     hardcode_libdir_flag_spec='-R$libdir'
9061	     ;;
9062	   *)
9063	     archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9064	     hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9065	     ;;
9066	  esac
9067	fi
9068      else
9069	ld_shlibs=no
9070      fi
9071      ;;
9072
9073    os2*)
9074      hardcode_libdir_flag_spec='-L$libdir'
9075      hardcode_minus_L=yes
9076      allow_undefined_flag=unsupported
9077      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'
9078      old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9079      ;;
9080
9081    osf3*)
9082      if test "$GCC" = yes; then
9083	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9084	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'
9085      else
9086	allow_undefined_flag=' -expect_unresolved \*'
9087	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'
9088      fi
9089      archive_cmds_need_lc='no'
9090      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9091      hardcode_libdir_separator=:
9092      ;;
9093
9094    osf4* | osf5*)	# as osf3* with the addition of -msym flag
9095      if test "$GCC" = yes; then
9096	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9097	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'
9098	hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9099      else
9100	allow_undefined_flag=' -expect_unresolved \*'
9101	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'
9102	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~
9103	$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'
9104
9105	# Both c and cxx compiler support -rpath directly
9106	hardcode_libdir_flag_spec='-rpath $libdir'
9107      fi
9108      archive_cmds_need_lc='no'
9109      hardcode_libdir_separator=:
9110      ;;
9111
9112    solaris*)
9113      no_undefined_flag=' -z defs'
9114      if test "$GCC" = yes; then
9115	wlarc='${wl}'
9116	archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9117	archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9118	  $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9119      else
9120	case `$CC -V 2>&1` in
9121	*"Compilers 5.0"*)
9122	  wlarc=''
9123	  archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9124	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9125	  $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9126	  ;;
9127	*)
9128	  wlarc='${wl}'
9129	  archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9130	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9131	  $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9132	  ;;
9133	esac
9134      fi
9135      hardcode_libdir_flag_spec='-R$libdir'
9136      hardcode_shlibpath_var=no
9137      case $host_os in
9138      solaris2.[0-5] | solaris2.[0-5].*) ;;
9139      *)
9140	# The compiler driver will combine and reorder linker options,
9141	# but understands `-z linker_flag'.  GCC discards it without `$wl',
9142	# but is careful enough not to reorder.
9143	# Supported since Solaris 2.6 (maybe 2.5.1?)
9144	if test "$GCC" = yes; then
9145	  whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9146	else
9147	  whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9148	fi
9149	;;
9150      esac
9151      link_all_deplibs=yes
9152      ;;
9153
9154    sunos4*)
9155      if test "x$host_vendor" = xsequent; then
9156	# Use $CC to link under sequent, because it throws in some extra .o
9157	# files that make .init and .fini sections work.
9158	archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9159      else
9160	archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9161      fi
9162      hardcode_libdir_flag_spec='-L$libdir'
9163      hardcode_direct=yes
9164      hardcode_minus_L=yes
9165      hardcode_shlibpath_var=no
9166      ;;
9167
9168    sysv4)
9169      case $host_vendor in
9170	sni)
9171	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9172	  hardcode_direct=yes # is this really true???
9173	;;
9174	siemens)
9175	  ## LD is ld it makes a PLAMLIB
9176	  ## CC just makes a GrossModule.
9177	  archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9178	  reload_cmds='$CC -r -o $output$reload_objs'
9179	  hardcode_direct=no
9180        ;;
9181	motorola)
9182	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9183	  hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9184	;;
9185      esac
9186      runpath_var='LD_RUN_PATH'
9187      hardcode_shlibpath_var=no
9188      ;;
9189
9190    sysv4.3*)
9191      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9192      hardcode_shlibpath_var=no
9193      export_dynamic_flag_spec='-Bexport'
9194      ;;
9195
9196    sysv4*MP*)
9197      if test -d /usr/nec; then
9198	archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9199	hardcode_shlibpath_var=no
9200	runpath_var=LD_RUN_PATH
9201	hardcode_runpath_var=yes
9202	ld_shlibs=yes
9203      fi
9204      ;;
9205
9206    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
9207      no_undefined_flag='${wl}-z,text'
9208      archive_cmds_need_lc=no
9209      hardcode_shlibpath_var=no
9210      runpath_var='LD_RUN_PATH'
9211
9212      if test "$GCC" = yes; then
9213	archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9214	archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9215      else
9216	archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9217	archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9218      fi
9219      ;;
9220
9221    sysv5* | sco3.2v5* | sco5v6*)
9222      # Note: We can NOT use -z defs as we might desire, because we do not
9223      # link with -lc, and that would cause any symbols used from libc to
9224      # always be unresolved, which means just about no library would
9225      # ever link correctly.  If we're not using GNU ld we use -z text
9226      # though, which does catch some bad symbols but isn't as heavy-handed
9227      # as -z defs.
9228      no_undefined_flag='${wl}-z,text'
9229      allow_undefined_flag='${wl}-z,nodefs'
9230      archive_cmds_need_lc=no
9231      hardcode_shlibpath_var=no
9232      hardcode_libdir_flag_spec='${wl}-R,$libdir'
9233      hardcode_libdir_separator=':'
9234      link_all_deplibs=yes
9235      export_dynamic_flag_spec='${wl}-Bexport'
9236      runpath_var='LD_RUN_PATH'
9237
9238      if test "$GCC" = yes; then
9239	archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9240	archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9241      else
9242	archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9243	archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9244      fi
9245      ;;
9246
9247    uts4*)
9248      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9249      hardcode_libdir_flag_spec='-L$libdir'
9250      hardcode_shlibpath_var=no
9251      ;;
9252
9253    *)
9254      ld_shlibs=no
9255      ;;
9256    esac
9257
9258    if test x$host_vendor = xsni; then
9259      case $host in
9260      sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9261	export_dynamic_flag_spec='${wl}-Blargedynsym'
9262	;;
9263      esac
9264    fi
9265  fi
9266
9267{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
9268$as_echo "$ld_shlibs" >&6; }
9269test "$ld_shlibs" = no && can_build_shared=no
9270
9271with_gnu_ld=$with_gnu_ld
9272
9273
9274
9275
9276
9277
9278
9279
9280
9281
9282
9283
9284
9285
9286
9287#
9288# Do we need to explicitly link libc?
9289#
9290case "x$archive_cmds_need_lc" in
9291x|xyes)
9292  # Assume -lc should be added
9293  archive_cmds_need_lc=yes
9294
9295  if test "$enable_shared" = yes && test "$GCC" = yes; then
9296    case $archive_cmds in
9297    *'~'*)
9298      # FIXME: we may have to deal with multi-command sequences.
9299      ;;
9300    '$CC '*)
9301      # Test whether the compiler implicitly links with -lc since on some
9302      # systems, -lgcc has to come before -lc. If gcc already passes -lc
9303      # to ld, don't add -lc before -lgcc.
9304      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
9305$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
9306if test "${lt_cv_archive_cmds_need_lc+set}" = set; then :
9307  $as_echo_n "(cached) " >&6
9308else
9309  $RM conftest*
9310	echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9311
9312	if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9313  (eval $ac_compile) 2>&5
9314  ac_status=$?
9315  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9316  test $ac_status = 0; } 2>conftest.err; then
9317	  soname=conftest
9318	  lib=conftest
9319	  libobjs=conftest.$ac_objext
9320	  deplibs=
9321	  wl=$lt_prog_compiler_wl
9322	  pic_flag=$lt_prog_compiler_pic
9323	  compiler_flags=-v
9324	  linker_flags=-v
9325	  verstring=
9326	  output_objdir=.
9327	  libname=conftest
9328	  lt_save_allow_undefined_flag=$allow_undefined_flag
9329	  allow_undefined_flag=
9330	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
9331  (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
9332  ac_status=$?
9333  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9334  test $ac_status = 0; }
9335	  then
9336	    lt_cv_archive_cmds_need_lc=no
9337	  else
9338	    lt_cv_archive_cmds_need_lc=yes
9339	  fi
9340	  allow_undefined_flag=$lt_save_allow_undefined_flag
9341	else
9342	  cat conftest.err 1>&5
9343	fi
9344	$RM conftest*
9345
9346fi
9347{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
9348$as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
9349      archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
9350      ;;
9351    esac
9352  fi
9353  ;;
9354esac
9355
9356
9357
9358
9359
9360
9361
9362
9363
9364
9365
9366
9367
9368
9369
9370
9371
9372
9373
9374
9375
9376
9377
9378
9379
9380
9381
9382
9383
9384
9385
9386
9387
9388
9389
9390
9391
9392
9393
9394
9395
9396
9397
9398
9399
9400
9401
9402
9403
9404
9405
9406
9407
9408
9409
9410
9411
9412
9413
9414
9415
9416
9417
9418
9419
9420
9421
9422
9423
9424
9425
9426
9427
9428
9429
9430
9431
9432
9433
9434
9435
9436
9437
9438
9439
9440
9441
9442
9443
9444
9445
9446
9447
9448
9449
9450
9451
9452
9453
9454
9455
9456
9457
9458
9459
9460
9461
9462
9463
9464
9465
9466
9467
9468
9469
9470
9471
9472
9473
9474
9475
9476
9477
9478
9479
9480
9481
9482
9483
9484
9485
9486
9487
9488
9489
9490
9491
9492
9493
9494
9495
9496
9497
9498
9499
9500
9501
9502
9503
9504
9505
9506
9507
9508
9509
9510
9511
9512  { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
9513$as_echo_n "checking dynamic linker characteristics... " >&6; }
9514
9515if test "$GCC" = yes; then
9516  case $host_os in
9517    darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
9518    *) lt_awk_arg="/^libraries:/" ;;
9519  esac
9520  case $host_os in
9521    mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
9522    *) lt_sed_strip_eq="s,=/,/,g" ;;
9523  esac
9524  lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
9525  case $lt_search_path_spec in
9526  *\;*)
9527    # if the path contains ";" then we assume it to be the separator
9528    # otherwise default to the standard path separator (i.e. ":") - it is
9529    # assumed that no part of a normal pathname contains ";" but that should
9530    # okay in the real world where ";" in dirpaths is itself problematic.
9531    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
9532    ;;
9533  *)
9534    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
9535    ;;
9536  esac
9537  # Ok, now we have the path, separated by spaces, we can step through it
9538  # and add multilib dir if necessary.
9539  lt_tmp_lt_search_path_spec=
9540  lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
9541  for lt_sys_path in $lt_search_path_spec; do
9542    if test -d "$lt_sys_path/$lt_multi_os_dir"; then
9543      lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
9544    else
9545      test -d "$lt_sys_path" && \
9546	lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
9547    fi
9548  done
9549  lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
9550BEGIN {RS=" "; FS="/|\n";} {
9551  lt_foo="";
9552  lt_count=0;
9553  for (lt_i = NF; lt_i > 0; lt_i--) {
9554    if ($lt_i != "" && $lt_i != ".") {
9555      if ($lt_i == "..") {
9556        lt_count++;
9557      } else {
9558        if (lt_count == 0) {
9559          lt_foo="/" $lt_i lt_foo;
9560        } else {
9561          lt_count--;
9562        }
9563      }
9564    }
9565  }
9566  if (lt_foo != "") { lt_freq[lt_foo]++; }
9567  if (lt_freq[lt_foo] == 1) { print lt_foo; }
9568}'`
9569  # AWK program above erroneously prepends '/' to C:/dos/paths
9570  # for these hosts.
9571  case $host_os in
9572    mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
9573      $SED 's,/\([A-Za-z]:\),\1,g'` ;;
9574  esac
9575  sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
9576else
9577  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9578fi
9579library_names_spec=
9580libname_spec='lib$name'
9581soname_spec=
9582shrext_cmds=".so"
9583postinstall_cmds=
9584postuninstall_cmds=
9585finish_cmds=
9586finish_eval=
9587shlibpath_var=
9588shlibpath_overrides_runpath=unknown
9589version_type=none
9590dynamic_linker="$host_os ld.so"
9591sys_lib_dlsearch_path_spec="/lib /usr/lib"
9592need_lib_prefix=unknown
9593hardcode_into_libs=no
9594
9595# when you set need_version to no, make sure it does not cause -set_version
9596# flags to be left without arguments
9597need_version=unknown
9598
9599case $host_os in
9600aix3*)
9601  version_type=linux
9602  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9603  shlibpath_var=LIBPATH
9604
9605  # AIX 3 has no versioning support, so we append a major version to the name.
9606  soname_spec='${libname}${release}${shared_ext}$major'
9607  ;;
9608
9609aix[4-9]*)
9610  version_type=linux
9611  need_lib_prefix=no
9612  need_version=no
9613  hardcode_into_libs=yes
9614  if test "$host_cpu" = ia64; then
9615    # AIX 5 supports IA64
9616    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9617    shlibpath_var=LD_LIBRARY_PATH
9618  else
9619    # With GCC up to 2.95.x, collect2 would create an import file
9620    # for dependence libraries.  The import file would start with
9621    # the line `#! .'.  This would cause the generated library to
9622    # depend on `.', always an invalid library.  This was fixed in
9623    # development snapshots of GCC prior to 3.0.
9624    case $host_os in
9625      aix4 | aix4.[01] | aix4.[01].*)
9626      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9627	   echo ' yes '
9628	   echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
9629	:
9630      else
9631	can_build_shared=no
9632      fi
9633      ;;
9634    esac
9635    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9636    # soname into executable. Probably we can add versioning support to
9637    # collect2, so additional links can be useful in future.
9638    if test "$aix_use_runtimelinking" = yes; then
9639      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9640      # instead of lib<name>.a to let people know that these are not
9641      # typical AIX shared libraries.
9642      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9643    else
9644      # We preserve .a as extension for shared libraries through AIX4.2
9645      # and later when we are not doing run time linking.
9646      library_names_spec='${libname}${release}.a $libname.a'
9647      soname_spec='${libname}${release}${shared_ext}$major'
9648    fi
9649    shlibpath_var=LIBPATH
9650  fi
9651  ;;
9652
9653amigaos*)
9654  case $host_cpu in
9655  powerpc)
9656    # Since July 2007 AmigaOS4 officially supports .so libraries.
9657    # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
9658    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9659    ;;
9660  m68k)
9661    library_names_spec='$libname.ixlibrary $libname.a'
9662    # Create ${libname}_ixlibrary.a entries in /sys/libs.
9663    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'
9664    ;;
9665  esac
9666  ;;
9667
9668beos*)
9669  library_names_spec='${libname}${shared_ext}'
9670  dynamic_linker="$host_os ld.so"
9671  shlibpath_var=LIBRARY_PATH
9672  ;;
9673
9674bsdi[45]*)
9675  version_type=linux
9676  need_version=no
9677  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9678  soname_spec='${libname}${release}${shared_ext}$major'
9679  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9680  shlibpath_var=LD_LIBRARY_PATH
9681  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9682  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9683  # the default ld.so.conf also contains /usr/contrib/lib and
9684  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9685  # libtool to hard-code these into programs
9686  ;;
9687
9688cygwin* | mingw* | pw32* | cegcc*)
9689  version_type=windows
9690  shrext_cmds=".dll"
9691  need_version=no
9692  need_lib_prefix=no
9693
9694  case $GCC,$host_os in
9695  yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
9696    library_names_spec='$libname.dll.a'
9697    # DLL is installed to $(libdir)/../bin by postinstall_cmds
9698    postinstall_cmds='base_file=`basename \${file}`~
9699      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
9700      dldir=$destdir/`dirname \$dlpath`~
9701      test -d \$dldir || mkdir -p \$dldir~
9702      $install_prog $dir/$dlname \$dldir/$dlname~
9703      chmod a+x \$dldir/$dlname~
9704      if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
9705        eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
9706      fi'
9707    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9708      dlpath=$dir/\$dldll~
9709       $RM \$dlpath'
9710    shlibpath_overrides_runpath=yes
9711
9712    case $host_os in
9713    cygwin*)
9714      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9715      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9716
9717      sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
9718      ;;
9719    mingw* | cegcc*)
9720      # MinGW DLLs use traditional 'lib' prefix
9721      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9722      ;;
9723    pw32*)
9724      # pw32 DLLs use 'pw' prefix rather than 'lib'
9725      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9726      ;;
9727    esac
9728    ;;
9729
9730  *)
9731    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9732    ;;
9733  esac
9734  dynamic_linker='Win32 ld.exe'
9735  # FIXME: first we should search . and the directory the executable is in
9736  shlibpath_var=PATH
9737  ;;
9738
9739darwin* | rhapsody*)
9740  dynamic_linker="$host_os dyld"
9741  version_type=darwin
9742  need_lib_prefix=no
9743  need_version=no
9744  library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9745  soname_spec='${libname}${release}${major}$shared_ext'
9746  shlibpath_overrides_runpath=yes
9747  shlibpath_var=DYLD_LIBRARY_PATH
9748  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
9749
9750  sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
9751  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9752  ;;
9753
9754dgux*)
9755  version_type=linux
9756  need_lib_prefix=no
9757  need_version=no
9758  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9759  soname_spec='${libname}${release}${shared_ext}$major'
9760  shlibpath_var=LD_LIBRARY_PATH
9761  ;;
9762
9763freebsd* | dragonfly*)
9764  # DragonFly does not have aout.  When/if they implement a new
9765  # versioning mechanism, adjust this.
9766  if test -x /usr/bin/objformat; then
9767    objformat=`/usr/bin/objformat`
9768  else
9769    case $host_os in
9770    freebsd[23].*) objformat=aout ;;
9771    *) objformat=elf ;;
9772    esac
9773  fi
9774  version_type=freebsd-$objformat
9775  case $version_type in
9776    freebsd-elf*)
9777      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9778      need_version=no
9779      need_lib_prefix=no
9780      ;;
9781    freebsd-*)
9782      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9783      need_version=yes
9784      ;;
9785  esac
9786  shlibpath_var=LD_LIBRARY_PATH
9787  case $host_os in
9788  freebsd2.*)
9789    shlibpath_overrides_runpath=yes
9790    ;;
9791  freebsd3.[01]* | freebsdelf3.[01]*)
9792    shlibpath_overrides_runpath=yes
9793    hardcode_into_libs=yes
9794    ;;
9795  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9796  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9797    shlibpath_overrides_runpath=no
9798    hardcode_into_libs=yes
9799    ;;
9800  *) # from 4.6 on, and DragonFly
9801    shlibpath_overrides_runpath=yes
9802    hardcode_into_libs=yes
9803    ;;
9804  esac
9805  ;;
9806
9807gnu*)
9808  version_type=linux
9809  need_lib_prefix=no
9810  need_version=no
9811  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9812  soname_spec='${libname}${release}${shared_ext}$major'
9813  shlibpath_var=LD_LIBRARY_PATH
9814  hardcode_into_libs=yes
9815  ;;
9816
9817haiku*)
9818  version_type=linux
9819  need_lib_prefix=no
9820  need_version=no
9821  dynamic_linker="$host_os runtime_loader"
9822  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9823  soname_spec='${libname}${release}${shared_ext}$major'
9824  shlibpath_var=LIBRARY_PATH
9825  shlibpath_overrides_runpath=yes
9826  sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
9827  hardcode_into_libs=yes
9828  ;;
9829
9830hpux9* | hpux10* | hpux11*)
9831  # Give a soname corresponding to the major version so that dld.sl refuses to
9832  # link against other versions.
9833  version_type=sunos
9834  need_lib_prefix=no
9835  need_version=no
9836  case $host_cpu in
9837  ia64*)
9838    shrext_cmds='.so'
9839    hardcode_into_libs=yes
9840    dynamic_linker="$host_os dld.so"
9841    shlibpath_var=LD_LIBRARY_PATH
9842    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9843    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9844    soname_spec='${libname}${release}${shared_ext}$major'
9845    if test "X$HPUX_IA64_MODE" = X32; then
9846      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9847    else
9848      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9849    fi
9850    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9851    ;;
9852  hppa*64*)
9853    shrext_cmds='.sl'
9854    hardcode_into_libs=yes
9855    dynamic_linker="$host_os dld.sl"
9856    shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9857    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9858    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9859    soname_spec='${libname}${release}${shared_ext}$major'
9860    sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9861    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9862    ;;
9863  *)
9864    shrext_cmds='.sl'
9865    dynamic_linker="$host_os dld.sl"
9866    shlibpath_var=SHLIB_PATH
9867    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9868    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9869    soname_spec='${libname}${release}${shared_ext}$major'
9870    ;;
9871  esac
9872  # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
9873  postinstall_cmds='chmod 555 $lib'
9874  # or fails outright, so override atomically:
9875  install_override_mode=555
9876  ;;
9877
9878interix[3-9]*)
9879  version_type=linux
9880  need_lib_prefix=no
9881  need_version=no
9882  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9883  soname_spec='${libname}${release}${shared_ext}$major'
9884  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9885  shlibpath_var=LD_LIBRARY_PATH
9886  shlibpath_overrides_runpath=no
9887  hardcode_into_libs=yes
9888  ;;
9889
9890irix5* | irix6* | nonstopux*)
9891  case $host_os in
9892    nonstopux*) version_type=nonstopux ;;
9893    *)
9894	if test "$lt_cv_prog_gnu_ld" = yes; then
9895		version_type=linux
9896	else
9897		version_type=irix
9898	fi ;;
9899  esac
9900  need_lib_prefix=no
9901  need_version=no
9902  soname_spec='${libname}${release}${shared_ext}$major'
9903  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9904  case $host_os in
9905  irix5* | nonstopux*)
9906    libsuff= shlibsuff=
9907    ;;
9908  *)
9909    case $LD in # libtool.m4 will add one of these switches to LD
9910    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9911      libsuff= shlibsuff= libmagic=32-bit;;
9912    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9913      libsuff=32 shlibsuff=N32 libmagic=N32;;
9914    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9915      libsuff=64 shlibsuff=64 libmagic=64-bit;;
9916    *) libsuff= shlibsuff= libmagic=never-match;;
9917    esac
9918    ;;
9919  esac
9920  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9921  shlibpath_overrides_runpath=no
9922  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9923  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9924  hardcode_into_libs=yes
9925  ;;
9926
9927# No shared lib support for Linux oldld, aout, or coff.
9928linux*oldld* | linux*aout* | linux*coff*)
9929  dynamic_linker=no
9930  ;;
9931
9932# This must be Linux ELF.
9933linux* | k*bsd*-gnu | kopensolaris*-gnu)
9934  version_type=linux
9935  need_lib_prefix=no
9936  need_version=no
9937  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9938  soname_spec='${libname}${release}${shared_ext}$major'
9939  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9940  shlibpath_var=LD_LIBRARY_PATH
9941  shlibpath_overrides_runpath=no
9942
9943  # Some binutils ld are patched to set DT_RUNPATH
9944  if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
9945  $as_echo_n "(cached) " >&6
9946else
9947  lt_cv_shlibpath_overrides_runpath=no
9948    save_LDFLAGS=$LDFLAGS
9949    save_libdir=$libdir
9950    eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
9951	 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
9952    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9953/* end confdefs.h.  */
9954
9955int
9956main ()
9957{
9958
9959  ;
9960  return 0;
9961}
9962_ACEOF
9963if ac_fn_c_try_link "$LINENO"; then :
9964  if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
9965  lt_cv_shlibpath_overrides_runpath=yes
9966fi
9967fi
9968rm -f core conftest.err conftest.$ac_objext \
9969    conftest$ac_exeext conftest.$ac_ext
9970    LDFLAGS=$save_LDFLAGS
9971    libdir=$save_libdir
9972
9973fi
9974
9975  shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
9976
9977  # This implies no fast_install, which is unacceptable.
9978  # Some rework will be needed to allow for fast_install
9979  # before this can be enabled.
9980  hardcode_into_libs=yes
9981
9982  # Append ld.so.conf contents to the search path
9983  if test -f /etc/ld.so.conf; then
9984    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' ' '`
9985    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9986  fi
9987
9988  # We used to test for /lib/ld.so.1 and disable shared libraries on
9989  # powerpc, because MkLinux only supported shared libraries with the
9990  # GNU dynamic linker.  Since this was broken with cross compilers,
9991  # most powerpc-linux boxes support dynamic linking these days and
9992  # people can always --disable-shared, the test was removed, and we
9993  # assume the GNU/Linux dynamic linker is in use.
9994  dynamic_linker='GNU/Linux ld.so'
9995  ;;
9996
9997netbsd*)
9998  version_type=sunos
9999  need_lib_prefix=no
10000  need_version=no
10001  if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10002    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10003    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10004    dynamic_linker='NetBSD (a.out) ld.so'
10005  else
10006    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10007    soname_spec='${libname}${release}${shared_ext}$major'
10008    dynamic_linker='NetBSD ld.elf_so'
10009  fi
10010  shlibpath_var=LD_LIBRARY_PATH
10011  shlibpath_overrides_runpath=yes
10012  hardcode_into_libs=yes
10013  ;;
10014
10015newsos6)
10016  version_type=linux
10017  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10018  shlibpath_var=LD_LIBRARY_PATH
10019  shlibpath_overrides_runpath=yes
10020  ;;
10021
10022*nto* | *qnx*)
10023  version_type=qnx
10024  need_lib_prefix=no
10025  need_version=no
10026  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10027  soname_spec='${libname}${release}${shared_ext}$major'
10028  shlibpath_var=LD_LIBRARY_PATH
10029  shlibpath_overrides_runpath=no
10030  hardcode_into_libs=yes
10031  dynamic_linker='ldqnx.so'
10032  ;;
10033
10034openbsd*)
10035  version_type=sunos
10036  sys_lib_dlsearch_path_spec="/usr/lib"
10037  need_lib_prefix=no
10038  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10039  case $host_os in
10040    openbsd3.3 | openbsd3.3.*)	need_version=yes ;;
10041    *)				need_version=no  ;;
10042  esac
10043  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10044  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10045  shlibpath_var=LD_LIBRARY_PATH
10046  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10047    case $host_os in
10048      openbsd2.[89] | openbsd2.[89].*)
10049	shlibpath_overrides_runpath=no
10050	;;
10051      *)
10052	shlibpath_overrides_runpath=yes
10053	;;
10054      esac
10055  else
10056    shlibpath_overrides_runpath=yes
10057  fi
10058  ;;
10059
10060os2*)
10061  libname_spec='$name'
10062  shrext_cmds=".dll"
10063  need_lib_prefix=no
10064  library_names_spec='$libname${shared_ext} $libname.a'
10065  dynamic_linker='OS/2 ld.exe'
10066  shlibpath_var=LIBPATH
10067  ;;
10068
10069osf3* | osf4* | osf5*)
10070  version_type=osf
10071  need_lib_prefix=no
10072  need_version=no
10073  soname_spec='${libname}${release}${shared_ext}$major'
10074  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10075  shlibpath_var=LD_LIBRARY_PATH
10076  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10077  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10078  ;;
10079
10080rdos*)
10081  dynamic_linker=no
10082  ;;
10083
10084solaris*)
10085  version_type=linux
10086  need_lib_prefix=no
10087  need_version=no
10088  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10089  soname_spec='${libname}${release}${shared_ext}$major'
10090  shlibpath_var=LD_LIBRARY_PATH
10091  shlibpath_overrides_runpath=yes
10092  hardcode_into_libs=yes
10093  # ldd complains unless libraries are executable
10094  postinstall_cmds='chmod +x $lib'
10095  ;;
10096
10097sunos4*)
10098  version_type=sunos
10099  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10100  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10101  shlibpath_var=LD_LIBRARY_PATH
10102  shlibpath_overrides_runpath=yes
10103  if test "$with_gnu_ld" = yes; then
10104    need_lib_prefix=no
10105  fi
10106  need_version=yes
10107  ;;
10108
10109sysv4 | sysv4.3*)
10110  version_type=linux
10111  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10112  soname_spec='${libname}${release}${shared_ext}$major'
10113  shlibpath_var=LD_LIBRARY_PATH
10114  case $host_vendor in
10115    sni)
10116      shlibpath_overrides_runpath=no
10117      need_lib_prefix=no
10118      runpath_var=LD_RUN_PATH
10119      ;;
10120    siemens)
10121      need_lib_prefix=no
10122      ;;
10123    motorola)
10124      need_lib_prefix=no
10125      need_version=no
10126      shlibpath_overrides_runpath=no
10127      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10128      ;;
10129  esac
10130  ;;
10131
10132sysv4*MP*)
10133  if test -d /usr/nec ;then
10134    version_type=linux
10135    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10136    soname_spec='$libname${shared_ext}.$major'
10137    shlibpath_var=LD_LIBRARY_PATH
10138  fi
10139  ;;
10140
10141sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10142  version_type=freebsd-elf
10143  need_lib_prefix=no
10144  need_version=no
10145  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10146  soname_spec='${libname}${release}${shared_ext}$major'
10147  shlibpath_var=LD_LIBRARY_PATH
10148  shlibpath_overrides_runpath=yes
10149  hardcode_into_libs=yes
10150  if test "$with_gnu_ld" = yes; then
10151    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10152  else
10153    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10154    case $host_os in
10155      sco3.2v5*)
10156        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10157	;;
10158    esac
10159  fi
10160  sys_lib_dlsearch_path_spec='/usr/lib'
10161  ;;
10162
10163tpf*)
10164  # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
10165  version_type=linux
10166  need_lib_prefix=no
10167  need_version=no
10168  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10169  shlibpath_var=LD_LIBRARY_PATH
10170  shlibpath_overrides_runpath=no
10171  hardcode_into_libs=yes
10172  ;;
10173
10174uts4*)
10175  version_type=linux
10176  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10177  soname_spec='${libname}${release}${shared_ext}$major'
10178  shlibpath_var=LD_LIBRARY_PATH
10179  ;;
10180
10181*)
10182  dynamic_linker=no
10183  ;;
10184esac
10185{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
10186$as_echo "$dynamic_linker" >&6; }
10187test "$dynamic_linker" = no && can_build_shared=no
10188
10189variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10190if test "$GCC" = yes; then
10191  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10192fi
10193
10194if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
10195  sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
10196fi
10197if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
10198  sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
10199fi
10200
10201
10202
10203
10204
10205
10206
10207
10208
10209
10210
10211
10212
10213
10214
10215
10216
10217
10218
10219
10220
10221
10222
10223
10224
10225
10226
10227
10228
10229
10230
10231
10232
10233
10234
10235
10236
10237
10238
10239
10240
10241
10242
10243
10244
10245
10246
10247
10248
10249
10250
10251
10252
10253
10254
10255
10256
10257
10258
10259
10260
10261
10262
10263
10264
10265
10266
10267
10268
10269
10270
10271
10272
10273
10274
10275
10276
10277
10278
10279
10280
10281
10282
10283
10284
10285
10286
10287
10288
10289
10290
10291
10292  { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
10293$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
10294hardcode_action=
10295if test -n "$hardcode_libdir_flag_spec" ||
10296   test -n "$runpath_var" ||
10297   test "X$hardcode_automatic" = "Xyes" ; then
10298
10299  # We can hardcode non-existent directories.
10300  if test "$hardcode_direct" != no &&
10301     # If the only mechanism to avoid hardcoding is shlibpath_var, we
10302     # have to relink, otherwise we might link with an installed library
10303     # when we should be linking with a yet-to-be-installed one
10304     ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
10305     test "$hardcode_minus_L" != no; then
10306    # Linking always hardcodes the temporary library directory.
10307    hardcode_action=relink
10308  else
10309    # We can link without hardcoding, and we can hardcode nonexisting dirs.
10310    hardcode_action=immediate
10311  fi
10312else
10313  # We cannot hardcode anything, or else we can only hardcode existing
10314  # directories.
10315  hardcode_action=unsupported
10316fi
10317{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
10318$as_echo "$hardcode_action" >&6; }
10319
10320if test "$hardcode_action" = relink ||
10321   test "$inherit_rpath" = yes; then
10322  # Fast installation is not supported
10323  enable_fast_install=no
10324elif test "$shlibpath_overrides_runpath" = yes ||
10325     test "$enable_shared" = no; then
10326  # Fast installation is not necessary
10327  enable_fast_install=needless
10328fi
10329
10330
10331
10332
10333
10334
10335  if test "x$enable_dlopen" != xyes; then
10336  enable_dlopen=unknown
10337  enable_dlopen_self=unknown
10338  enable_dlopen_self_static=unknown
10339else
10340  lt_cv_dlopen=no
10341  lt_cv_dlopen_libs=
10342
10343  case $host_os in
10344  beos*)
10345    lt_cv_dlopen="load_add_on"
10346    lt_cv_dlopen_libs=
10347    lt_cv_dlopen_self=yes
10348    ;;
10349
10350  mingw* | pw32* | cegcc*)
10351    lt_cv_dlopen="LoadLibrary"
10352    lt_cv_dlopen_libs=
10353    ;;
10354
10355  cygwin*)
10356    lt_cv_dlopen="dlopen"
10357    lt_cv_dlopen_libs=
10358    ;;
10359
10360  darwin*)
10361  # if libdl is installed we need to link against it
10362    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10363$as_echo_n "checking for dlopen in -ldl... " >&6; }
10364if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
10365  $as_echo_n "(cached) " >&6
10366else
10367  ac_check_lib_save_LIBS=$LIBS
10368LIBS="-ldl  $LIBS"
10369cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10370/* end confdefs.h.  */
10371
10372/* Override any GCC internal prototype to avoid an error.
10373   Use char because int might match the return type of a GCC
10374   builtin and then its argument prototype would still apply.  */
10375#ifdef __cplusplus
10376extern "C"
10377#endif
10378char dlopen ();
10379int
10380main ()
10381{
10382return dlopen ();
10383  ;
10384  return 0;
10385}
10386_ACEOF
10387if ac_fn_c_try_link "$LINENO"; then :
10388  ac_cv_lib_dl_dlopen=yes
10389else
10390  ac_cv_lib_dl_dlopen=no
10391fi
10392rm -f core conftest.err conftest.$ac_objext \
10393    conftest$ac_exeext conftest.$ac_ext
10394LIBS=$ac_check_lib_save_LIBS
10395fi
10396{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10397$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10398if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
10399  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10400else
10401
10402    lt_cv_dlopen="dyld"
10403    lt_cv_dlopen_libs=
10404    lt_cv_dlopen_self=yes
10405
10406fi
10407
10408    ;;
10409
10410  *)
10411    ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
10412if test "x$ac_cv_func_shl_load" = x""yes; then :
10413  lt_cv_dlopen="shl_load"
10414else
10415  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
10416$as_echo_n "checking for shl_load in -ldld... " >&6; }
10417if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
10418  $as_echo_n "(cached) " >&6
10419else
10420  ac_check_lib_save_LIBS=$LIBS
10421LIBS="-ldld  $LIBS"
10422cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10423/* end confdefs.h.  */
10424
10425/* Override any GCC internal prototype to avoid an error.
10426   Use char because int might match the return type of a GCC
10427   builtin and then its argument prototype would still apply.  */
10428#ifdef __cplusplus
10429extern "C"
10430#endif
10431char shl_load ();
10432int
10433main ()
10434{
10435return shl_load ();
10436  ;
10437  return 0;
10438}
10439_ACEOF
10440if ac_fn_c_try_link "$LINENO"; then :
10441  ac_cv_lib_dld_shl_load=yes
10442else
10443  ac_cv_lib_dld_shl_load=no
10444fi
10445rm -f core conftest.err conftest.$ac_objext \
10446    conftest$ac_exeext conftest.$ac_ext
10447LIBS=$ac_check_lib_save_LIBS
10448fi
10449{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
10450$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
10451if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
10452  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
10453else
10454  ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
10455if test "x$ac_cv_func_dlopen" = x""yes; then :
10456  lt_cv_dlopen="dlopen"
10457else
10458  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10459$as_echo_n "checking for dlopen in -ldl... " >&6; }
10460if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
10461  $as_echo_n "(cached) " >&6
10462else
10463  ac_check_lib_save_LIBS=$LIBS
10464LIBS="-ldl  $LIBS"
10465cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10466/* end confdefs.h.  */
10467
10468/* Override any GCC internal prototype to avoid an error.
10469   Use char because int might match the return type of a GCC
10470   builtin and then its argument prototype would still apply.  */
10471#ifdef __cplusplus
10472extern "C"
10473#endif
10474char dlopen ();
10475int
10476main ()
10477{
10478return dlopen ();
10479  ;
10480  return 0;
10481}
10482_ACEOF
10483if ac_fn_c_try_link "$LINENO"; then :
10484  ac_cv_lib_dl_dlopen=yes
10485else
10486  ac_cv_lib_dl_dlopen=no
10487fi
10488rm -f core conftest.err conftest.$ac_objext \
10489    conftest$ac_exeext conftest.$ac_ext
10490LIBS=$ac_check_lib_save_LIBS
10491fi
10492{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10493$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10494if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
10495  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10496else
10497  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
10498$as_echo_n "checking for dlopen in -lsvld... " >&6; }
10499if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
10500  $as_echo_n "(cached) " >&6
10501else
10502  ac_check_lib_save_LIBS=$LIBS
10503LIBS="-lsvld  $LIBS"
10504cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10505/* end confdefs.h.  */
10506
10507/* Override any GCC internal prototype to avoid an error.
10508   Use char because int might match the return type of a GCC
10509   builtin and then its argument prototype would still apply.  */
10510#ifdef __cplusplus
10511extern "C"
10512#endif
10513char dlopen ();
10514int
10515main ()
10516{
10517return dlopen ();
10518  ;
10519  return 0;
10520}
10521_ACEOF
10522if ac_fn_c_try_link "$LINENO"; then :
10523  ac_cv_lib_svld_dlopen=yes
10524else
10525  ac_cv_lib_svld_dlopen=no
10526fi
10527rm -f core conftest.err conftest.$ac_objext \
10528    conftest$ac_exeext conftest.$ac_ext
10529LIBS=$ac_check_lib_save_LIBS
10530fi
10531{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
10532$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
10533if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
10534  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10535else
10536  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
10537$as_echo_n "checking for dld_link in -ldld... " >&6; }
10538if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
10539  $as_echo_n "(cached) " >&6
10540else
10541  ac_check_lib_save_LIBS=$LIBS
10542LIBS="-ldld  $LIBS"
10543cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10544/* end confdefs.h.  */
10545
10546/* Override any GCC internal prototype to avoid an error.
10547   Use char because int might match the return type of a GCC
10548   builtin and then its argument prototype would still apply.  */
10549#ifdef __cplusplus
10550extern "C"
10551#endif
10552char dld_link ();
10553int
10554main ()
10555{
10556return dld_link ();
10557  ;
10558  return 0;
10559}
10560_ACEOF
10561if ac_fn_c_try_link "$LINENO"; then :
10562  ac_cv_lib_dld_dld_link=yes
10563else
10564  ac_cv_lib_dld_dld_link=no
10565fi
10566rm -f core conftest.err conftest.$ac_objext \
10567    conftest$ac_exeext conftest.$ac_ext
10568LIBS=$ac_check_lib_save_LIBS
10569fi
10570{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
10571$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
10572if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
10573  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
10574fi
10575
10576
10577fi
10578
10579
10580fi
10581
10582
10583fi
10584
10585
10586fi
10587
10588
10589fi
10590
10591    ;;
10592  esac
10593
10594  if test "x$lt_cv_dlopen" != xno; then
10595    enable_dlopen=yes
10596  else
10597    enable_dlopen=no
10598  fi
10599
10600  case $lt_cv_dlopen in
10601  dlopen)
10602    save_CPPFLAGS="$CPPFLAGS"
10603    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10604
10605    save_LDFLAGS="$LDFLAGS"
10606    wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10607
10608    save_LIBS="$LIBS"
10609    LIBS="$lt_cv_dlopen_libs $LIBS"
10610
10611    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
10612$as_echo_n "checking whether a program can dlopen itself... " >&6; }
10613if test "${lt_cv_dlopen_self+set}" = set; then :
10614  $as_echo_n "(cached) " >&6
10615else
10616  	  if test "$cross_compiling" = yes; then :
10617  lt_cv_dlopen_self=cross
10618else
10619  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10620  lt_status=$lt_dlunknown
10621  cat > conftest.$ac_ext <<_LT_EOF
10622#line 10622 "configure"
10623#include "confdefs.h"
10624
10625#if HAVE_DLFCN_H
10626#include <dlfcn.h>
10627#endif
10628
10629#include <stdio.h>
10630
10631#ifdef RTLD_GLOBAL
10632#  define LT_DLGLOBAL		RTLD_GLOBAL
10633#else
10634#  ifdef DL_GLOBAL
10635#    define LT_DLGLOBAL		DL_GLOBAL
10636#  else
10637#    define LT_DLGLOBAL		0
10638#  endif
10639#endif
10640
10641/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10642   find out it does not work in some platform. */
10643#ifndef LT_DLLAZY_OR_NOW
10644#  ifdef RTLD_LAZY
10645#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
10646#  else
10647#    ifdef DL_LAZY
10648#      define LT_DLLAZY_OR_NOW		DL_LAZY
10649#    else
10650#      ifdef RTLD_NOW
10651#        define LT_DLLAZY_OR_NOW	RTLD_NOW
10652#      else
10653#        ifdef DL_NOW
10654#          define LT_DLLAZY_OR_NOW	DL_NOW
10655#        else
10656#          define LT_DLLAZY_OR_NOW	0
10657#        endif
10658#      endif
10659#    endif
10660#  endif
10661#endif
10662
10663/* When -fvisbility=hidden is used, assume the code has been annotated
10664   correspondingly for the symbols needed.  */
10665#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
10666void fnord () __attribute__((visibility("default")));
10667#endif
10668
10669void fnord () { int i=42; }
10670int main ()
10671{
10672  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10673  int status = $lt_dlunknown;
10674
10675  if (self)
10676    {
10677      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
10678      else
10679        {
10680	  if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
10681          else puts (dlerror ());
10682	}
10683      /* dlclose (self); */
10684    }
10685  else
10686    puts (dlerror ());
10687
10688  return status;
10689}
10690_LT_EOF
10691  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
10692  (eval $ac_link) 2>&5
10693  ac_status=$?
10694  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10695  test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
10696    (./conftest; exit; ) >&5 2>/dev/null
10697    lt_status=$?
10698    case x$lt_status in
10699      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
10700      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
10701      x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
10702    esac
10703  else :
10704    # compilation failed
10705    lt_cv_dlopen_self=no
10706  fi
10707fi
10708rm -fr conftest*
10709
10710
10711fi
10712{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
10713$as_echo "$lt_cv_dlopen_self" >&6; }
10714
10715    if test "x$lt_cv_dlopen_self" = xyes; then
10716      wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
10717      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
10718$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
10719if test "${lt_cv_dlopen_self_static+set}" = set; then :
10720  $as_echo_n "(cached) " >&6
10721else
10722  	  if test "$cross_compiling" = yes; then :
10723  lt_cv_dlopen_self_static=cross
10724else
10725  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10726  lt_status=$lt_dlunknown
10727  cat > conftest.$ac_ext <<_LT_EOF
10728#line 10728 "configure"
10729#include "confdefs.h"
10730
10731#if HAVE_DLFCN_H
10732#include <dlfcn.h>
10733#endif
10734
10735#include <stdio.h>
10736
10737#ifdef RTLD_GLOBAL
10738#  define LT_DLGLOBAL		RTLD_GLOBAL
10739#else
10740#  ifdef DL_GLOBAL
10741#    define LT_DLGLOBAL		DL_GLOBAL
10742#  else
10743#    define LT_DLGLOBAL		0
10744#  endif
10745#endif
10746
10747/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10748   find out it does not work in some platform. */
10749#ifndef LT_DLLAZY_OR_NOW
10750#  ifdef RTLD_LAZY
10751#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
10752#  else
10753#    ifdef DL_LAZY
10754#      define LT_DLLAZY_OR_NOW		DL_LAZY
10755#    else
10756#      ifdef RTLD_NOW
10757#        define LT_DLLAZY_OR_NOW	RTLD_NOW
10758#      else
10759#        ifdef DL_NOW
10760#          define LT_DLLAZY_OR_NOW	DL_NOW
10761#        else
10762#          define LT_DLLAZY_OR_NOW	0
10763#        endif
10764#      endif
10765#    endif
10766#  endif
10767#endif
10768
10769/* When -fvisbility=hidden is used, assume the code has been annotated
10770   correspondingly for the symbols needed.  */
10771#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
10772void fnord () __attribute__((visibility("default")));
10773#endif
10774
10775void fnord () { int i=42; }
10776int main ()
10777{
10778  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10779  int status = $lt_dlunknown;
10780
10781  if (self)
10782    {
10783      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
10784      else
10785        {
10786	  if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
10787          else puts (dlerror ());
10788	}
10789      /* dlclose (self); */
10790    }
10791  else
10792    puts (dlerror ());
10793
10794  return status;
10795}
10796_LT_EOF
10797  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
10798  (eval $ac_link) 2>&5
10799  ac_status=$?
10800  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10801  test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
10802    (./conftest; exit; ) >&5 2>/dev/null
10803    lt_status=$?
10804    case x$lt_status in
10805      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
10806      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
10807      x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
10808    esac
10809  else :
10810    # compilation failed
10811    lt_cv_dlopen_self_static=no
10812  fi
10813fi
10814rm -fr conftest*
10815
10816
10817fi
10818{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
10819$as_echo "$lt_cv_dlopen_self_static" >&6; }
10820    fi
10821
10822    CPPFLAGS="$save_CPPFLAGS"
10823    LDFLAGS="$save_LDFLAGS"
10824    LIBS="$save_LIBS"
10825    ;;
10826  esac
10827
10828  case $lt_cv_dlopen_self in
10829  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
10830  *) enable_dlopen_self=unknown ;;
10831  esac
10832
10833  case $lt_cv_dlopen_self_static in
10834  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
10835  *) enable_dlopen_self_static=unknown ;;
10836  esac
10837fi
10838
10839
10840
10841
10842
10843
10844
10845
10846
10847
10848
10849
10850
10851
10852
10853
10854
10855striplib=
10856old_striplib=
10857{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
10858$as_echo_n "checking whether stripping libraries is possible... " >&6; }
10859if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
10860  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
10861  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
10862  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10863$as_echo "yes" >&6; }
10864else
10865# FIXME - insert some real tests, host_os isn't really good enough
10866  case $host_os in
10867  darwin*)
10868    if test -n "$STRIP" ; then
10869      striplib="$STRIP -x"
10870      old_striplib="$STRIP -S"
10871      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10872$as_echo "yes" >&6; }
10873    else
10874      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10875$as_echo "no" >&6; }
10876    fi
10877    ;;
10878  *)
10879    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10880$as_echo "no" >&6; }
10881    ;;
10882  esac
10883fi
10884
10885
10886
10887
10888
10889
10890
10891
10892
10893
10894
10895
10896  # Report which library types will actually be built
10897  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
10898$as_echo_n "checking if libtool supports shared libraries... " >&6; }
10899  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
10900$as_echo "$can_build_shared" >&6; }
10901
10902  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
10903$as_echo_n "checking whether to build shared libraries... " >&6; }
10904  test "$can_build_shared" = "no" && enable_shared=no
10905
10906  # On AIX, shared libraries and static libraries use the same namespace, and
10907  # are all built from PIC.
10908  case $host_os in
10909  aix3*)
10910    test "$enable_shared" = yes && enable_static=no
10911    if test -n "$RANLIB"; then
10912      archive_cmds="$archive_cmds~\$RANLIB \$lib"
10913      postinstall_cmds='$RANLIB $lib'
10914    fi
10915    ;;
10916
10917  aix[4-9]*)
10918    if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
10919      test "$enable_shared" = yes && enable_static=no
10920    fi
10921    ;;
10922  esac
10923  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
10924$as_echo "$enable_shared" >&6; }
10925
10926  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
10927$as_echo_n "checking whether to build static libraries... " >&6; }
10928  # Make sure either enable_shared or enable_static is yes.
10929  test "$enable_shared" = yes || enable_static=yes
10930  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
10931$as_echo "$enable_static" >&6; }
10932
10933
10934
10935
10936fi
10937ac_ext=c
10938ac_cpp='$CPP $CPPFLAGS'
10939ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10940ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10941ac_compiler_gnu=$ac_cv_c_compiler_gnu
10942
10943CC="$lt_save_CC"
10944
10945
10946
10947
10948
10949
10950
10951
10952
10953
10954
10955
10956
10957        ac_config_commands="$ac_config_commands libtool"
10958
10959
10960
10961
10962# Only expand once:
10963
10964
10965
10966
10967
10968case $host in
10969  *-cygwin* | *-mingw*)
10970    # 'host' will be top-level target in the case of a target lib,
10971    # we must compare to with_cross_host to decide if this is a native
10972    # or cross-compiler and select where to install dlls appropriately.
10973    if test -n "$with_cross_host" &&
10974	test x"$with_cross_host" != x"no"; then
10975      lt_host_flags='-no-undefined -bindir "$(toolexeclibdir)"';
10976    else
10977      lt_host_flags='-no-undefined -bindir "$(bindir)"';
10978    fi
10979    ;;
10980  *)
10981    lt_host_flags=
10982    ;;
10983esac
10984
10985
10986
10987
10988ac_fn_c_find_intX_t "$LINENO" "64" "ac_cv_c_int64_t"
10989case $ac_cv_c_int64_t in #(
10990  no|yes) ;; #(
10991  *)
10992
10993cat >>confdefs.h <<_ACEOF
10994#define int64_t $ac_cv_c_int64_t
10995_ACEOF
10996;;
10997esac
10998
10999ac_fn_c_find_uintX_t "$LINENO" "64" "ac_cv_c_uint64_t"
11000case $ac_cv_c_uint64_t in #(
11001  no|yes) ;; #(
11002  *)
11003
11004$as_echo "#define _UINT64_T 1" >>confdefs.h
11005
11006
11007cat >>confdefs.h <<_ACEOF
11008#define uint64_t $ac_cv_c_uint64_t
11009_ACEOF
11010;;
11011  esac
11012
11013{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
11014$as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
11015if test "${ac_cv_header_sys_wait_h+set}" = set; then :
11016  $as_echo_n "(cached) " >&6
11017else
11018  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11019/* end confdefs.h.  */
11020#include <sys/types.h>
11021#include <sys/wait.h>
11022#ifndef WEXITSTATUS
11023# define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
11024#endif
11025#ifndef WIFEXITED
11026# define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
11027#endif
11028
11029int
11030main ()
11031{
11032  int s;
11033  wait (&s);
11034  s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
11035  ;
11036  return 0;
11037}
11038_ACEOF
11039if ac_fn_c_try_compile "$LINENO"; then :
11040  ac_cv_header_sys_wait_h=yes
11041else
11042  ac_cv_header_sys_wait_h=no
11043fi
11044rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11045fi
11046{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
11047$as_echo "$ac_cv_header_sys_wait_h" >&6; }
11048if test $ac_cv_header_sys_wait_h = yes; then
11049
11050$as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
11051
11052fi
11053
11054ac_config_files="$ac_config_files Makefile"
11055
11056ac_config_headers="$ac_config_headers config.h"
11057
11058cat >confcache <<\_ACEOF
11059# This file is a shell script that caches the results of configure
11060# tests run on this system so they can be shared between configure
11061# scripts and configure runs, see configure's option --config-cache.
11062# It is not useful on other systems.  If it contains results you don't
11063# want to keep, you may remove or edit it.
11064#
11065# config.status only pays attention to the cache file if you give it
11066# the --recheck option to rerun configure.
11067#
11068# `ac_cv_env_foo' variables (set or unset) will be overridden when
11069# loading this file, other *unset* `ac_cv_foo' will be assigned the
11070# following values.
11071
11072_ACEOF
11073
11074# The following way of writing the cache mishandles newlines in values,
11075# but we know of no workaround that is simple, portable, and efficient.
11076# So, we kill variables containing newlines.
11077# Ultrix sh set writes to stderr and can't be redirected directly,
11078# and sets the high bit in the cache file unless we assign to the vars.
11079(
11080  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
11081    eval ac_val=\$$ac_var
11082    case $ac_val in #(
11083    *${as_nl}*)
11084      case $ac_var in #(
11085      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
11086$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
11087      esac
11088      case $ac_var in #(
11089      _ | IFS | as_nl) ;; #(
11090      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
11091      *) { eval $ac_var=; unset $ac_var;} ;;
11092      esac ;;
11093    esac
11094  done
11095
11096  (set) 2>&1 |
11097    case $as_nl`(ac_space=' '; set) 2>&1` in #(
11098    *${as_nl}ac_space=\ *)
11099      # `set' does not quote correctly, so add quotes: double-quote
11100      # substitution turns \\\\ into \\, and sed turns \\ into \.
11101      sed -n \
11102	"s/'/'\\\\''/g;
11103	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
11104      ;; #(
11105    *)
11106      # `set' quotes correctly as required by POSIX, so do not add quotes.
11107      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
11108      ;;
11109    esac |
11110    sort
11111) |
11112  sed '
11113     /^ac_cv_env_/b end
11114     t clear
11115     :clear
11116     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
11117     t end
11118     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
11119     :end' >>confcache
11120if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
11121  if test -w "$cache_file"; then
11122    test "x$cache_file" != "x/dev/null" &&
11123      { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
11124$as_echo "$as_me: updating cache $cache_file" >&6;}
11125    cat confcache >$cache_file
11126  else
11127    { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
11128$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
11129  fi
11130fi
11131rm -f confcache
11132
11133test "x$prefix" = xNONE && prefix=$ac_default_prefix
11134# Let make expand exec_prefix.
11135test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
11136
11137DEFS=-DHAVE_CONFIG_H
11138
11139ac_libobjs=
11140ac_ltlibobjs=
11141for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
11142  # 1. Remove the extension, and $U if already installed.
11143  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
11144  ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
11145  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
11146  #    will be set to the directory where LIBOBJS objects are built.
11147  as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
11148  as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
11149done
11150LIBOBJS=$ac_libobjs
11151
11152LTLIBOBJS=$ac_ltlibobjs
11153
11154
11155 if test -n "$EXEEXT"; then
11156  am__EXEEXT_TRUE=
11157  am__EXEEXT_FALSE='#'
11158else
11159  am__EXEEXT_TRUE='#'
11160  am__EXEEXT_FALSE=
11161fi
11162
11163if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
11164  as_fn_error "conditional \"MAINTAINER_MODE\" was never defined.
11165Usually this means the macro was only invoked conditionally." "$LINENO" 5
11166fi
11167if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
11168  as_fn_error "conditional \"AMDEP\" was never defined.
11169Usually this means the macro was only invoked conditionally." "$LINENO" 5
11170fi
11171if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
11172  as_fn_error "conditional \"am__fastdepCC\" was never defined.
11173Usually this means the macro was only invoked conditionally." "$LINENO" 5
11174fi
11175
11176: ${CONFIG_STATUS=./config.status}
11177ac_write_fail=0
11178ac_clean_files_save=$ac_clean_files
11179ac_clean_files="$ac_clean_files $CONFIG_STATUS"
11180{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
11181$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
11182as_write_fail=0
11183cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
11184#! $SHELL
11185# Generated by $as_me.
11186# Run this file to recreate the current configuration.
11187# Compiler output produced by configure, useful for debugging
11188# configure, is in config.log if it exists.
11189
11190debug=false
11191ac_cs_recheck=false
11192ac_cs_silent=false
11193
11194SHELL=\${CONFIG_SHELL-$SHELL}
11195export SHELL
11196_ASEOF
11197cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
11198## -------------------- ##
11199## M4sh Initialization. ##
11200## -------------------- ##
11201
11202# Be more Bourne compatible
11203DUALCASE=1; export DUALCASE # for MKS sh
11204if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
11205  emulate sh
11206  NULLCMD=:
11207  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
11208  # is contrary to our usage.  Disable this feature.
11209  alias -g '${1+"$@"}'='"$@"'
11210  setopt NO_GLOB_SUBST
11211else
11212  case `(set -o) 2>/dev/null` in #(
11213  *posix*) :
11214    set -o posix ;; #(
11215  *) :
11216     ;;
11217esac
11218fi
11219
11220
11221as_nl='
11222'
11223export as_nl
11224# Printing a long string crashes Solaris 7 /usr/bin/printf.
11225as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
11226as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
11227as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
11228# Prefer a ksh shell builtin over an external printf program on Solaris,
11229# but without wasting forks for bash or zsh.
11230if test -z "$BASH_VERSION$ZSH_VERSION" \
11231    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
11232  as_echo='print -r --'
11233  as_echo_n='print -rn --'
11234elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
11235  as_echo='printf %s\n'
11236  as_echo_n='printf %s'
11237else
11238  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
11239    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
11240    as_echo_n='/usr/ucb/echo -n'
11241  else
11242    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
11243    as_echo_n_body='eval
11244      arg=$1;
11245      case $arg in #(
11246      *"$as_nl"*)
11247	expr "X$arg" : "X\\(.*\\)$as_nl";
11248	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
11249      esac;
11250      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
11251    '
11252    export as_echo_n_body
11253    as_echo_n='sh -c $as_echo_n_body as_echo'
11254  fi
11255  export as_echo_body
11256  as_echo='sh -c $as_echo_body as_echo'
11257fi
11258
11259# The user is always right.
11260if test "${PATH_SEPARATOR+set}" != set; then
11261  PATH_SEPARATOR=:
11262  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
11263    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
11264      PATH_SEPARATOR=';'
11265  }
11266fi
11267
11268
11269# IFS
11270# We need space, tab and new line, in precisely that order.  Quoting is
11271# there to prevent editors from complaining about space-tab.
11272# (If _AS_PATH_WALK were called with IFS unset, it would disable word
11273# splitting by setting IFS to empty value.)
11274IFS=" ""	$as_nl"
11275
11276# Find who we are.  Look in the path if we contain no directory separator.
11277case $0 in #((
11278  *[\\/]* ) as_myself=$0 ;;
11279  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11280for as_dir in $PATH
11281do
11282  IFS=$as_save_IFS
11283  test -z "$as_dir" && as_dir=.
11284    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
11285  done
11286IFS=$as_save_IFS
11287
11288     ;;
11289esac
11290# We did not find ourselves, most probably we were run as `sh COMMAND'
11291# in which case we are not to be found in the path.
11292if test "x$as_myself" = x; then
11293  as_myself=$0
11294fi
11295if test ! -f "$as_myself"; then
11296  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
11297  exit 1
11298fi
11299
11300# Unset variables that we do not need and which cause bugs (e.g. in
11301# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
11302# suppresses any "Segmentation fault" message there.  '((' could
11303# trigger a bug in pdksh 5.2.14.
11304for as_var in BASH_ENV ENV MAIL MAILPATH
11305do eval test x\${$as_var+set} = xset \
11306  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
11307done
11308PS1='$ '
11309PS2='> '
11310PS4='+ '
11311
11312# NLS nuisances.
11313LC_ALL=C
11314export LC_ALL
11315LANGUAGE=C
11316export LANGUAGE
11317
11318# CDPATH.
11319(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
11320
11321
11322# as_fn_error ERROR [LINENO LOG_FD]
11323# ---------------------------------
11324# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
11325# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
11326# script with status $?, using 1 if that was 0.
11327as_fn_error ()
11328{
11329  as_status=$?; test $as_status -eq 0 && as_status=1
11330  if test "$3"; then
11331    as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
11332    $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
11333  fi
11334  $as_echo "$as_me: error: $1" >&2
11335  as_fn_exit $as_status
11336} # as_fn_error
11337
11338
11339# as_fn_set_status STATUS
11340# -----------------------
11341# Set $? to STATUS, without forking.
11342as_fn_set_status ()
11343{
11344  return $1
11345} # as_fn_set_status
11346
11347# as_fn_exit STATUS
11348# -----------------
11349# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
11350as_fn_exit ()
11351{
11352  set +e
11353  as_fn_set_status $1
11354  exit $1
11355} # as_fn_exit
11356
11357# as_fn_unset VAR
11358# ---------------
11359# Portably unset VAR.
11360as_fn_unset ()
11361{
11362  { eval $1=; unset $1;}
11363}
11364as_unset=as_fn_unset
11365# as_fn_append VAR VALUE
11366# ----------------------
11367# Append the text in VALUE to the end of the definition contained in VAR. Take
11368# advantage of any shell optimizations that allow amortized linear growth over
11369# repeated appends, instead of the typical quadratic growth present in naive
11370# implementations.
11371if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
11372  eval 'as_fn_append ()
11373  {
11374    eval $1+=\$2
11375  }'
11376else
11377  as_fn_append ()
11378  {
11379    eval $1=\$$1\$2
11380  }
11381fi # as_fn_append
11382
11383# as_fn_arith ARG...
11384# ------------------
11385# Perform arithmetic evaluation on the ARGs, and store the result in the
11386# global $as_val. Take advantage of shells that can avoid forks. The arguments
11387# must be portable across $(()) and expr.
11388if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
11389  eval 'as_fn_arith ()
11390  {
11391    as_val=$(( $* ))
11392  }'
11393else
11394  as_fn_arith ()
11395  {
11396    as_val=`expr "$@" || test $? -eq 1`
11397  }
11398fi # as_fn_arith
11399
11400
11401if expr a : '\(a\)' >/dev/null 2>&1 &&
11402   test "X`expr 00001 : '.*\(...\)'`" = X001; then
11403  as_expr=expr
11404else
11405  as_expr=false
11406fi
11407
11408if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
11409  as_basename=basename
11410else
11411  as_basename=false
11412fi
11413
11414if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
11415  as_dirname=dirname
11416else
11417  as_dirname=false
11418fi
11419
11420as_me=`$as_basename -- "$0" ||
11421$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
11422	 X"$0" : 'X\(//\)$' \| \
11423	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
11424$as_echo X/"$0" |
11425    sed '/^.*\/\([^/][^/]*\)\/*$/{
11426	    s//\1/
11427	    q
11428	  }
11429	  /^X\/\(\/\/\)$/{
11430	    s//\1/
11431	    q
11432	  }
11433	  /^X\/\(\/\).*/{
11434	    s//\1/
11435	    q
11436	  }
11437	  s/.*/./; q'`
11438
11439# Avoid depending upon Character Ranges.
11440as_cr_letters='abcdefghijklmnopqrstuvwxyz'
11441as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
11442as_cr_Letters=$as_cr_letters$as_cr_LETTERS
11443as_cr_digits='0123456789'
11444as_cr_alnum=$as_cr_Letters$as_cr_digits
11445
11446ECHO_C= ECHO_N= ECHO_T=
11447case `echo -n x` in #(((((
11448-n*)
11449  case `echo 'xy\c'` in
11450  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
11451  xy)  ECHO_C='\c';;
11452  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
11453       ECHO_T='	';;
11454  esac;;
11455*)
11456  ECHO_N='-n';;
11457esac
11458
11459rm -f conf$$ conf$$.exe conf$$.file
11460if test -d conf$$.dir; then
11461  rm -f conf$$.dir/conf$$.file
11462else
11463  rm -f conf$$.dir
11464  mkdir conf$$.dir 2>/dev/null
11465fi
11466if (echo >conf$$.file) 2>/dev/null; then
11467  if ln -s conf$$.file conf$$ 2>/dev/null; then
11468    as_ln_s='ln -s'
11469    # ... but there are two gotchas:
11470    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
11471    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
11472    # In both cases, we have to default to `cp -p'.
11473    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
11474      as_ln_s='cp -p'
11475  elif ln conf$$.file conf$$ 2>/dev/null; then
11476    as_ln_s=ln
11477  else
11478    as_ln_s='cp -p'
11479  fi
11480else
11481  as_ln_s='cp -p'
11482fi
11483rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
11484rmdir conf$$.dir 2>/dev/null
11485
11486
11487# as_fn_mkdir_p
11488# -------------
11489# Create "$as_dir" as a directory, including parents if necessary.
11490as_fn_mkdir_p ()
11491{
11492
11493  case $as_dir in #(
11494  -*) as_dir=./$as_dir;;
11495  esac
11496  test -d "$as_dir" || eval $as_mkdir_p || {
11497    as_dirs=
11498    while :; do
11499      case $as_dir in #(
11500      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
11501      *) as_qdir=$as_dir;;
11502      esac
11503      as_dirs="'$as_qdir' $as_dirs"
11504      as_dir=`$as_dirname -- "$as_dir" ||
11505$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11506	 X"$as_dir" : 'X\(//\)[^/]' \| \
11507	 X"$as_dir" : 'X\(//\)$' \| \
11508	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
11509$as_echo X"$as_dir" |
11510    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
11511	    s//\1/
11512	    q
11513	  }
11514	  /^X\(\/\/\)[^/].*/{
11515	    s//\1/
11516	    q
11517	  }
11518	  /^X\(\/\/\)$/{
11519	    s//\1/
11520	    q
11521	  }
11522	  /^X\(\/\).*/{
11523	    s//\1/
11524	    q
11525	  }
11526	  s/.*/./; q'`
11527      test -d "$as_dir" && break
11528    done
11529    test -z "$as_dirs" || eval "mkdir $as_dirs"
11530  } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
11531
11532
11533} # as_fn_mkdir_p
11534if mkdir -p . 2>/dev/null; then
11535  as_mkdir_p='mkdir -p "$as_dir"'
11536else
11537  test -d ./-p && rmdir ./-p
11538  as_mkdir_p=false
11539fi
11540
11541if test -x / >/dev/null 2>&1; then
11542  as_test_x='test -x'
11543else
11544  if ls -dL / >/dev/null 2>&1; then
11545    as_ls_L_option=L
11546  else
11547    as_ls_L_option=
11548  fi
11549  as_test_x='
11550    eval sh -c '\''
11551      if test -d "$1"; then
11552	test -d "$1/.";
11553      else
11554	case $1 in #(
11555	-*)set "./$1";;
11556	esac;
11557	case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
11558	???[sx]*):;;*)false;;esac;fi
11559    '\'' sh
11560  '
11561fi
11562as_executable_p=$as_test_x
11563
11564# Sed expression to map a string onto a valid CPP name.
11565as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
11566
11567# Sed expression to map a string onto a valid variable name.
11568as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
11569
11570
11571exec 6>&1
11572## ----------------------------------- ##
11573## Main body of $CONFIG_STATUS script. ##
11574## ----------------------------------- ##
11575_ASEOF
11576test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
11577
11578cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11579# Save the log message, to keep $0 and so on meaningful, and to
11580# report actual input values of CONFIG_FILES etc. instead of their
11581# values after options handling.
11582ac_log="
11583This file was extended by LTO plugin for ld $as_me 0.1, which was
11584generated by GNU Autoconf 2.64.  Invocation command line was
11585
11586  CONFIG_FILES    = $CONFIG_FILES
11587  CONFIG_HEADERS  = $CONFIG_HEADERS
11588  CONFIG_LINKS    = $CONFIG_LINKS
11589  CONFIG_COMMANDS = $CONFIG_COMMANDS
11590  $ $0 $@
11591
11592on `(hostname || uname -n) 2>/dev/null | sed 1q`
11593"
11594
11595_ACEOF
11596
11597case $ac_config_files in *"
11598"*) set x $ac_config_files; shift; ac_config_files=$*;;
11599esac
11600
11601case $ac_config_headers in *"
11602"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
11603esac
11604
11605
11606cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11607# Files that config.status was made for.
11608config_files="$ac_config_files"
11609config_headers="$ac_config_headers"
11610config_commands="$ac_config_commands"
11611
11612_ACEOF
11613
11614cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11615ac_cs_usage="\
11616\`$as_me' instantiates files and other configuration actions
11617from templates according to the current configuration.  Unless the files
11618and actions are specified as TAGs, all are instantiated by default.
11619
11620Usage: $0 [OPTION]... [TAG]...
11621
11622  -h, --help       print this help, then exit
11623  -V, --version    print version number and configuration settings, then exit
11624  -q, --quiet, --silent
11625                   do not print progress messages
11626  -d, --debug      don't remove temporary files
11627      --recheck    update $as_me by reconfiguring in the same conditions
11628      --file=FILE[:TEMPLATE]
11629                   instantiate the configuration file FILE
11630      --header=FILE[:TEMPLATE]
11631                   instantiate the configuration header FILE
11632
11633Configuration files:
11634$config_files
11635
11636Configuration headers:
11637$config_headers
11638
11639Configuration commands:
11640$config_commands
11641
11642Report bugs to the package provider."
11643
11644_ACEOF
11645cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11646ac_cs_version="\\
11647LTO plugin for ld config.status 0.1
11648configured by $0, generated by GNU Autoconf 2.64,
11649  with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
11650
11651Copyright (C) 2009 Free Software Foundation, Inc.
11652This config.status script is free software; the Free Software Foundation
11653gives unlimited permission to copy, distribute and modify it."
11654
11655ac_pwd='$ac_pwd'
11656srcdir='$srcdir'
11657INSTALL='$INSTALL'
11658MKDIR_P='$MKDIR_P'
11659AWK='$AWK'
11660test -n "\$AWK" || AWK=awk
11661_ACEOF
11662
11663cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11664# The default lists apply if the user does not specify any file.
11665ac_need_defaults=:
11666while test $# != 0
11667do
11668  case $1 in
11669  --*=*)
11670    ac_option=`expr "X$1" : 'X\([^=]*\)='`
11671    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
11672    ac_shift=:
11673    ;;
11674  *)
11675    ac_option=$1
11676    ac_optarg=$2
11677    ac_shift=shift
11678    ;;
11679  esac
11680
11681  case $ac_option in
11682  # Handling of the options.
11683  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
11684    ac_cs_recheck=: ;;
11685  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
11686    $as_echo "$ac_cs_version"; exit ;;
11687  --debug | --debu | --deb | --de | --d | -d )
11688    debug=: ;;
11689  --file | --fil | --fi | --f )
11690    $ac_shift
11691    case $ac_optarg in
11692    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
11693    esac
11694    as_fn_append CONFIG_FILES " '$ac_optarg'"
11695    ac_need_defaults=false;;
11696  --header | --heade | --head | --hea )
11697    $ac_shift
11698    case $ac_optarg in
11699    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
11700    esac
11701    as_fn_append CONFIG_HEADERS " '$ac_optarg'"
11702    ac_need_defaults=false;;
11703  --he | --h)
11704    # Conflict between --help and --header
11705    as_fn_error "ambiguous option: \`$1'
11706Try \`$0 --help' for more information.";;
11707  --help | --hel | -h )
11708    $as_echo "$ac_cs_usage"; exit ;;
11709  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
11710  | -silent | --silent | --silen | --sile | --sil | --si | --s)
11711    ac_cs_silent=: ;;
11712
11713  # This is an error.
11714  -*) as_fn_error "unrecognized option: \`$1'
11715Try \`$0 --help' for more information." ;;
11716
11717  *) as_fn_append ac_config_targets " $1"
11718     ac_need_defaults=false ;;
11719
11720  esac
11721  shift
11722done
11723
11724ac_configure_extra_args=
11725
11726if $ac_cs_silent; then
11727  exec 6>/dev/null
11728  ac_configure_extra_args="$ac_configure_extra_args --silent"
11729fi
11730
11731_ACEOF
11732cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11733if \$ac_cs_recheck; then
11734  set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
11735  shift
11736  \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
11737  CONFIG_SHELL='$SHELL'
11738  export CONFIG_SHELL
11739  exec "\$@"
11740fi
11741
11742_ACEOF
11743cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11744exec 5>>config.log
11745{
11746  echo
11747  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
11748## Running $as_me. ##
11749_ASBOX
11750  $as_echo "$ac_log"
11751} >&5
11752
11753_ACEOF
11754cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11755#
11756# INIT-COMMANDS
11757#
11758AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
11759
11760
11761# The HP-UX ksh and POSIX shell print the target directory to stdout
11762# if CDPATH is set.
11763(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
11764
11765sed_quote_subst='$sed_quote_subst'
11766double_quote_subst='$double_quote_subst'
11767delay_variable_subst='$delay_variable_subst'
11768macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
11769macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
11770enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
11771enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
11772pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
11773enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
11774SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
11775ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
11776host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
11777host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
11778host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
11779build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
11780build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
11781build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
11782SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
11783Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
11784GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
11785EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
11786FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
11787LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
11788NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
11789LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
11790max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
11791ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
11792exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
11793lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
11794lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
11795lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
11796reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
11797reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
11798OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
11799deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
11800file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
11801AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
11802AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
11803STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
11804RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
11805old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
11806old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
11807old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
11808lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
11809CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
11810CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
11811compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
11812GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
11813lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
11814lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
11815lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
11816lt_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"`'
11817objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
11818MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
11819lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
11820lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
11821lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
11822lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
11823lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
11824need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
11825DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
11826NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
11827LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
11828OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
11829OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
11830libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
11831shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
11832extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
11833archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
11834enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
11835export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
11836whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
11837compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
11838old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
11839old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
11840archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
11841archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
11842module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
11843module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
11844with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
11845allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
11846no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
11847hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
11848hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
11849hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
11850hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
11851hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
11852hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
11853hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
11854hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
11855inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
11856link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
11857fix_srcfile_path='`$ECHO "$fix_srcfile_path" | $SED "$delay_single_quote_subst"`'
11858always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
11859export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
11860exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
11861include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
11862prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
11863file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
11864variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
11865need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
11866need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
11867version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
11868runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
11869shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
11870shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
11871libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
11872library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
11873soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
11874install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
11875postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
11876postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
11877finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
11878finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
11879hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
11880sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
11881sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
11882hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
11883enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
11884enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
11885enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
11886old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
11887striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
11888
11889LTCC='$LTCC'
11890LTCFLAGS='$LTCFLAGS'
11891compiler='$compiler_DEFAULT'
11892
11893# A function that is used when there is no print builtin or printf.
11894func_fallback_echo ()
11895{
11896  eval 'cat <<_LTECHO_EOF
11897\$1
11898_LTECHO_EOF'
11899}
11900
11901# Quote evaled strings.
11902for var in SHELL \
11903ECHO \
11904SED \
11905GREP \
11906EGREP \
11907FGREP \
11908LD \
11909NM \
11910LN_S \
11911lt_SP2NL \
11912lt_NL2SP \
11913reload_flag \
11914OBJDUMP \
11915deplibs_check_method \
11916file_magic_cmd \
11917AR \
11918AR_FLAGS \
11919STRIP \
11920RANLIB \
11921CC \
11922CFLAGS \
11923compiler \
11924lt_cv_sys_global_symbol_pipe \
11925lt_cv_sys_global_symbol_to_cdecl \
11926lt_cv_sys_global_symbol_to_c_name_address \
11927lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
11928lt_prog_compiler_no_builtin_flag \
11929lt_prog_compiler_wl \
11930lt_prog_compiler_pic \
11931lt_prog_compiler_static \
11932lt_cv_prog_compiler_c_o \
11933need_locks \
11934DSYMUTIL \
11935NMEDIT \
11936LIPO \
11937OTOOL \
11938OTOOL64 \
11939shrext_cmds \
11940export_dynamic_flag_spec \
11941whole_archive_flag_spec \
11942compiler_needs_object \
11943with_gnu_ld \
11944allow_undefined_flag \
11945no_undefined_flag \
11946hardcode_libdir_flag_spec \
11947hardcode_libdir_flag_spec_ld \
11948hardcode_libdir_separator \
11949fix_srcfile_path \
11950exclude_expsyms \
11951include_expsyms \
11952file_list_spec \
11953variables_saved_for_relink \
11954libname_spec \
11955library_names_spec \
11956soname_spec \
11957install_override_mode \
11958finish_eval \
11959old_striplib \
11960striplib; do
11961    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
11962    *[\\\\\\\`\\"\\\$]*)
11963      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
11964      ;;
11965    *)
11966      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
11967      ;;
11968    esac
11969done
11970
11971# Double-quote double-evaled strings.
11972for var in reload_cmds \
11973old_postinstall_cmds \
11974old_postuninstall_cmds \
11975old_archive_cmds \
11976extract_expsyms_cmds \
11977old_archive_from_new_cmds \
11978old_archive_from_expsyms_cmds \
11979archive_cmds \
11980archive_expsym_cmds \
11981module_cmds \
11982module_expsym_cmds \
11983export_symbols_cmds \
11984prelink_cmds \
11985postinstall_cmds \
11986postuninstall_cmds \
11987finish_cmds \
11988sys_lib_search_path_spec \
11989sys_lib_dlsearch_path_spec; do
11990    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
11991    *[\\\\\\\`\\"\\\$]*)
11992      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
11993      ;;
11994    *)
11995      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
11996      ;;
11997    esac
11998done
11999
12000ac_aux_dir='$ac_aux_dir'
12001xsi_shell='$xsi_shell'
12002lt_shell_append='$lt_shell_append'
12003
12004# See if we are running on zsh, and set the options which allow our
12005# commands through without removal of \ escapes INIT.
12006if test -n "\${ZSH_VERSION+set}" ; then
12007   setopt NO_GLOB_SUBST
12008fi
12009
12010
12011    PACKAGE='$PACKAGE'
12012    VERSION='$VERSION'
12013    TIMESTAMP='$TIMESTAMP'
12014    RM='$RM'
12015    ofile='$ofile'
12016
12017
12018
12019
12020_ACEOF
12021
12022cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12023
12024# Handling of arguments.
12025for ac_config_target in $ac_config_targets
12026do
12027  case $ac_config_target in
12028    "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
12029    "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
12030    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
12031    "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
12032
12033  *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
12034  esac
12035done
12036
12037
12038# If the user did not use the arguments to specify the items to instantiate,
12039# then the envvar interface is used.  Set only those that are not.
12040# We use the long form for the default assignment because of an extremely
12041# bizarre bug on SunOS 4.1.3.
12042if $ac_need_defaults; then
12043  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
12044  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
12045  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
12046fi
12047
12048# Have a temporary directory for convenience.  Make it in the build tree
12049# simply because there is no reason against having it here, and in addition,
12050# creating and moving files from /tmp can sometimes cause problems.
12051# Hook for its removal unless debugging.
12052# Note that there is a small window in which the directory will not be cleaned:
12053# after its creation but before its name has been assigned to `$tmp'.
12054$debug ||
12055{
12056  tmp=
12057  trap 'exit_status=$?
12058  { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
12059' 0
12060  trap 'as_fn_exit 1' 1 2 13 15
12061}
12062# Create a (secure) tmp directory for tmp files.
12063
12064{
12065  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
12066  test -n "$tmp" && test -d "$tmp"
12067}  ||
12068{
12069  tmp=./conf$$-$RANDOM
12070  (umask 077 && mkdir "$tmp")
12071} || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
12072
12073# Set up the scripts for CONFIG_FILES section.
12074# No need to generate them if there are no CONFIG_FILES.
12075# This happens for instance with `./config.status config.h'.
12076if test -n "$CONFIG_FILES"; then
12077
12078
12079ac_cr=`echo X | tr X '\015'`
12080# On cygwin, bash can eat \r inside `` if the user requested igncr.
12081# But we know of no other shell where ac_cr would be empty at this
12082# point, so we can use a bashism as a fallback.
12083if test "x$ac_cr" = x; then
12084  eval ac_cr=\$\'\\r\'
12085fi
12086ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
12087if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
12088  ac_cs_awk_cr='\r'
12089else
12090  ac_cs_awk_cr=$ac_cr
12091fi
12092
12093echo 'BEGIN {' >"$tmp/subs1.awk" &&
12094_ACEOF
12095
12096
12097{
12098  echo "cat >conf$$subs.awk <<_ACEOF" &&
12099  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
12100  echo "_ACEOF"
12101} >conf$$subs.sh ||
12102  as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
12103ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
12104ac_delim='%!_!# '
12105for ac_last_try in false false false false false :; do
12106  . ./conf$$subs.sh ||
12107    as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
12108
12109  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
12110  if test $ac_delim_n = $ac_delim_num; then
12111    break
12112  elif $ac_last_try; then
12113    as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
12114  else
12115    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
12116  fi
12117done
12118rm -f conf$$subs.sh
12119
12120cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12121cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
12122_ACEOF
12123sed -n '
12124h
12125s/^/S["/; s/!.*/"]=/
12126p
12127g
12128s/^[^!]*!//
12129:repl
12130t repl
12131s/'"$ac_delim"'$//
12132t delim
12133:nl
12134h
12135s/\(.\{148\}\).*/\1/
12136t more1
12137s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
12138p
12139n
12140b repl
12141:more1
12142s/["\\]/\\&/g; s/^/"/; s/$/"\\/
12143p
12144g
12145s/.\{148\}//
12146t nl
12147:delim
12148h
12149s/\(.\{148\}\).*/\1/
12150t more2
12151s/["\\]/\\&/g; s/^/"/; s/$/"/
12152p
12153b
12154:more2
12155s/["\\]/\\&/g; s/^/"/; s/$/"\\/
12156p
12157g
12158s/.\{148\}//
12159t delim
12160' <conf$$subs.awk | sed '
12161/^[^""]/{
12162  N
12163  s/\n//
12164}
12165' >>$CONFIG_STATUS || ac_write_fail=1
12166rm -f conf$$subs.awk
12167cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12168_ACAWK
12169cat >>"\$tmp/subs1.awk" <<_ACAWK &&
12170  for (key in S) S_is_set[key] = 1
12171  FS = ""
12172
12173}
12174{
12175  line = $ 0
12176  nfields = split(line, field, "@")
12177  substed = 0
12178  len = length(field[1])
12179  for (i = 2; i < nfields; i++) {
12180    key = field[i]
12181    keylen = length(key)
12182    if (S_is_set[key]) {
12183      value = S[key]
12184      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
12185      len += length(value) + length(field[++i])
12186      substed = 1
12187    } else
12188      len += 1 + keylen
12189  }
12190
12191  print line
12192}
12193
12194_ACAWK
12195_ACEOF
12196cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12197if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
12198  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
12199else
12200  cat
12201fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
12202  || as_fn_error "could not setup config files machinery" "$LINENO" 5
12203_ACEOF
12204
12205# VPATH may cause trouble with some makes, so we remove $(srcdir),
12206# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
12207# trailing colons and then remove the whole line if VPATH becomes empty
12208# (actually we leave an empty line to preserve line numbers).
12209if test "x$srcdir" = x.; then
12210  ac_vpsub='/^[	 ]*VPATH[	 ]*=/{
12211s/:*\$(srcdir):*/:/
12212s/:*\${srcdir}:*/:/
12213s/:*@srcdir@:*/:/
12214s/^\([^=]*=[	 ]*\):*/\1/
12215s/:*$//
12216s/^[^=]*=[	 ]*$//
12217}'
12218fi
12219
12220cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12221fi # test -n "$CONFIG_FILES"
12222
12223# Set up the scripts for CONFIG_HEADERS section.
12224# No need to generate them if there are no CONFIG_HEADERS.
12225# This happens for instance with `./config.status Makefile'.
12226if test -n "$CONFIG_HEADERS"; then
12227cat >"$tmp/defines.awk" <<\_ACAWK ||
12228BEGIN {
12229_ACEOF
12230
12231# Transform confdefs.h into an awk script `defines.awk', embedded as
12232# here-document in config.status, that substitutes the proper values into
12233# config.h.in to produce config.h.
12234
12235# Create a delimiter string that does not exist in confdefs.h, to ease
12236# handling of long lines.
12237ac_delim='%!_!# '
12238for ac_last_try in false false :; do
12239  ac_t=`sed -n "/$ac_delim/p" confdefs.h`
12240  if test -z "$ac_t"; then
12241    break
12242  elif $ac_last_try; then
12243    as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
12244  else
12245    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
12246  fi
12247done
12248
12249# For the awk script, D is an array of macro values keyed by name,
12250# likewise P contains macro parameters if any.  Preserve backslash
12251# newline sequences.
12252
12253ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
12254sed -n '
12255s/.\{148\}/&'"$ac_delim"'/g
12256t rset
12257:rset
12258s/^[	 ]*#[	 ]*define[	 ][	 ]*/ /
12259t def
12260d
12261:def
12262s/\\$//
12263t bsnl
12264s/["\\]/\\&/g
12265s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
12266D["\1"]=" \3"/p
12267s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2"/p
12268d
12269:bsnl
12270s/["\\]/\\&/g
12271s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
12272D["\1"]=" \3\\\\\\n"\\/p
12273t cont
12274s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
12275t cont
12276d
12277:cont
12278n
12279s/.\{148\}/&'"$ac_delim"'/g
12280t clear
12281:clear
12282s/\\$//
12283t bsnlc
12284s/["\\]/\\&/g; s/^/"/; s/$/"/p
12285d
12286:bsnlc
12287s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
12288b cont
12289' <confdefs.h | sed '
12290s/'"$ac_delim"'/"\\\
12291"/g' >>$CONFIG_STATUS || ac_write_fail=1
12292
12293cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12294  for (key in D) D_is_set[key] = 1
12295  FS = ""
12296}
12297/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
12298  line = \$ 0
12299  split(line, arg, " ")
12300  if (arg[1] == "#") {
12301    defundef = arg[2]
12302    mac1 = arg[3]
12303  } else {
12304    defundef = substr(arg[1], 2)
12305    mac1 = arg[2]
12306  }
12307  split(mac1, mac2, "(") #)
12308  macro = mac2[1]
12309  prefix = substr(line, 1, index(line, defundef) - 1)
12310  if (D_is_set[macro]) {
12311    # Preserve the white space surrounding the "#".
12312    print prefix "define", macro P[macro] D[macro]
12313    next
12314  } else {
12315    # Replace #undef with comments.  This is necessary, for example,
12316    # in the case of _POSIX_SOURCE, which is predefined and required
12317    # on some systems where configure will not decide to define it.
12318    if (defundef == "undef") {
12319      print "/*", prefix defundef, macro, "*/"
12320      next
12321    }
12322  }
12323}
12324{ print }
12325_ACAWK
12326_ACEOF
12327cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12328  as_fn_error "could not setup config headers machinery" "$LINENO" 5
12329fi # test -n "$CONFIG_HEADERS"
12330
12331
12332eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
12333shift
12334for ac_tag
12335do
12336  case $ac_tag in
12337  :[FHLC]) ac_mode=$ac_tag; continue;;
12338  esac
12339  case $ac_mode$ac_tag in
12340  :[FHL]*:*);;
12341  :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
12342  :[FH]-) ac_tag=-:-;;
12343  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
12344  esac
12345  ac_save_IFS=$IFS
12346  IFS=:
12347  set x $ac_tag
12348  IFS=$ac_save_IFS
12349  shift
12350  ac_file=$1
12351  shift
12352
12353  case $ac_mode in
12354  :L) ac_source=$1;;
12355  :[FH])
12356    ac_file_inputs=
12357    for ac_f
12358    do
12359      case $ac_f in
12360      -) ac_f="$tmp/stdin";;
12361      *) # Look for the file first in the build tree, then in the source tree
12362	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
12363	 # because $ac_f cannot contain `:'.
12364	 test -f "$ac_f" ||
12365	   case $ac_f in
12366	   [\\/$]*) false;;
12367	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
12368	   esac ||
12369	   as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
12370      esac
12371      case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
12372      as_fn_append ac_file_inputs " '$ac_f'"
12373    done
12374
12375    # Let's still pretend it is `configure' which instantiates (i.e., don't
12376    # use $as_me), people would be surprised to read:
12377    #    /* config.h.  Generated by config.status.  */
12378    configure_input='Generated from '`
12379	  $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
12380	`' by configure.'
12381    if test x"$ac_file" != x-; then
12382      configure_input="$ac_file.  $configure_input"
12383      { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
12384$as_echo "$as_me: creating $ac_file" >&6;}
12385    fi
12386    # Neutralize special characters interpreted by sed in replacement strings.
12387    case $configure_input in #(
12388    *\&* | *\|* | *\\* )
12389       ac_sed_conf_input=`$as_echo "$configure_input" |
12390       sed 's/[\\\\&|]/\\\\&/g'`;; #(
12391    *) ac_sed_conf_input=$configure_input;;
12392    esac
12393
12394    case $ac_tag in
12395    *:-:* | *:-) cat >"$tmp/stdin" \
12396      || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
12397    esac
12398    ;;
12399  esac
12400
12401  ac_dir=`$as_dirname -- "$ac_file" ||
12402$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12403	 X"$ac_file" : 'X\(//\)[^/]' \| \
12404	 X"$ac_file" : 'X\(//\)$' \| \
12405	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
12406$as_echo X"$ac_file" |
12407    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12408	    s//\1/
12409	    q
12410	  }
12411	  /^X\(\/\/\)[^/].*/{
12412	    s//\1/
12413	    q
12414	  }
12415	  /^X\(\/\/\)$/{
12416	    s//\1/
12417	    q
12418	  }
12419	  /^X\(\/\).*/{
12420	    s//\1/
12421	    q
12422	  }
12423	  s/.*/./; q'`
12424  as_dir="$ac_dir"; as_fn_mkdir_p
12425  ac_builddir=.
12426
12427case "$ac_dir" in
12428.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
12429*)
12430  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
12431  # A ".." for each directory in $ac_dir_suffix.
12432  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
12433  case $ac_top_builddir_sub in
12434  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
12435  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
12436  esac ;;
12437esac
12438ac_abs_top_builddir=$ac_pwd
12439ac_abs_builddir=$ac_pwd$ac_dir_suffix
12440# for backward compatibility:
12441ac_top_builddir=$ac_top_build_prefix
12442
12443case $srcdir in
12444  .)  # We are building in place.
12445    ac_srcdir=.
12446    ac_top_srcdir=$ac_top_builddir_sub
12447    ac_abs_top_srcdir=$ac_pwd ;;
12448  [\\/]* | ?:[\\/]* )  # Absolute name.
12449    ac_srcdir=$srcdir$ac_dir_suffix;
12450    ac_top_srcdir=$srcdir
12451    ac_abs_top_srcdir=$srcdir ;;
12452  *) # Relative name.
12453    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
12454    ac_top_srcdir=$ac_top_build_prefix$srcdir
12455    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
12456esac
12457ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
12458
12459
12460  case $ac_mode in
12461  :F)
12462  #
12463  # CONFIG_FILE
12464  #
12465
12466  case $INSTALL in
12467  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
12468  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
12469  esac
12470  ac_MKDIR_P=$MKDIR_P
12471  case $MKDIR_P in
12472  [\\/$]* | ?:[\\/]* ) ;;
12473  */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
12474  esac
12475_ACEOF
12476
12477cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12478# If the template does not know about datarootdir, expand it.
12479# FIXME: This hack should be removed a few years after 2.60.
12480ac_datarootdir_hack=; ac_datarootdir_seen=
12481ac_sed_dataroot='
12482/datarootdir/ {
12483  p
12484  q
12485}
12486/@datadir@/p
12487/@docdir@/p
12488/@infodir@/p
12489/@localedir@/p
12490/@mandir@/p'
12491case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
12492*datarootdir*) ac_datarootdir_seen=yes;;
12493*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
12494  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
12495$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
12496_ACEOF
12497cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12498  ac_datarootdir_hack='
12499  s&@datadir@&$datadir&g
12500  s&@docdir@&$docdir&g
12501  s&@infodir@&$infodir&g
12502  s&@localedir@&$localedir&g
12503  s&@mandir@&$mandir&g
12504  s&\\\${datarootdir}&$datarootdir&g' ;;
12505esac
12506_ACEOF
12507
12508# Neutralize VPATH when `$srcdir' = `.'.
12509# Shell code in configure.ac might set extrasub.
12510# FIXME: do we really want to maintain this feature?
12511cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12512ac_sed_extra="$ac_vpsub
12513$extrasub
12514_ACEOF
12515cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12516:t
12517/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
12518s|@configure_input@|$ac_sed_conf_input|;t t
12519s&@top_builddir@&$ac_top_builddir_sub&;t t
12520s&@top_build_prefix@&$ac_top_build_prefix&;t t
12521s&@srcdir@&$ac_srcdir&;t t
12522s&@abs_srcdir@&$ac_abs_srcdir&;t t
12523s&@top_srcdir@&$ac_top_srcdir&;t t
12524s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
12525s&@builddir@&$ac_builddir&;t t
12526s&@abs_builddir@&$ac_abs_builddir&;t t
12527s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
12528s&@INSTALL@&$ac_INSTALL&;t t
12529s&@MKDIR_P@&$ac_MKDIR_P&;t t
12530$ac_datarootdir_hack
12531"
12532eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
12533  || as_fn_error "could not create $ac_file" "$LINENO" 5
12534
12535test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
12536  { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
12537  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
12538  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
12539which seems to be undefined.  Please make sure it is defined." >&5
12540$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
12541which seems to be undefined.  Please make sure it is defined." >&2;}
12542
12543  rm -f "$tmp/stdin"
12544  case $ac_file in
12545  -) cat "$tmp/out" && rm -f "$tmp/out";;
12546  *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
12547  esac \
12548  || as_fn_error "could not create $ac_file" "$LINENO" 5
12549 ;;
12550  :H)
12551  #
12552  # CONFIG_HEADER
12553  #
12554  if test x"$ac_file" != x-; then
12555    {
12556      $as_echo "/* $configure_input  */" \
12557      && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
12558    } >"$tmp/config.h" \
12559      || as_fn_error "could not create $ac_file" "$LINENO" 5
12560    if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
12561      { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
12562$as_echo "$as_me: $ac_file is unchanged" >&6;}
12563    else
12564      rm -f "$ac_file"
12565      mv "$tmp/config.h" "$ac_file" \
12566	|| as_fn_error "could not create $ac_file" "$LINENO" 5
12567    fi
12568  else
12569    $as_echo "/* $configure_input  */" \
12570      && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
12571      || as_fn_error "could not create -" "$LINENO" 5
12572  fi
12573# Compute "$ac_file"'s index in $config_headers.
12574_am_arg="$ac_file"
12575_am_stamp_count=1
12576for _am_header in $config_headers :; do
12577  case $_am_header in
12578    $_am_arg | $_am_arg:* )
12579      break ;;
12580    * )
12581      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
12582  esac
12583done
12584echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
12585$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12586	 X"$_am_arg" : 'X\(//\)[^/]' \| \
12587	 X"$_am_arg" : 'X\(//\)$' \| \
12588	 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
12589$as_echo X"$_am_arg" |
12590    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12591	    s//\1/
12592	    q
12593	  }
12594	  /^X\(\/\/\)[^/].*/{
12595	    s//\1/
12596	    q
12597	  }
12598	  /^X\(\/\/\)$/{
12599	    s//\1/
12600	    q
12601	  }
12602	  /^X\(\/\).*/{
12603	    s//\1/
12604	    q
12605	  }
12606	  s/.*/./; q'`/stamp-h$_am_stamp_count
12607 ;;
12608
12609  :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
12610$as_echo "$as_me: executing $ac_file commands" >&6;}
12611 ;;
12612  esac
12613
12614
12615  case $ac_file$ac_mode in
12616    "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
12617  # Autoconf 2.62 quotes --file arguments for eval, but not when files
12618  # are listed without --file.  Let's play safe and only enable the eval
12619  # if we detect the quoting.
12620  case $CONFIG_FILES in
12621  *\'*) eval set x "$CONFIG_FILES" ;;
12622  *)   set x $CONFIG_FILES ;;
12623  esac
12624  shift
12625  for mf
12626  do
12627    # Strip MF so we end up with the name of the file.
12628    mf=`echo "$mf" | sed -e 's/:.*$//'`
12629    # Check whether this is an Automake generated Makefile or not.
12630    # We used to match only the files named `Makefile.in', but
12631    # some people rename them; so instead we look at the file content.
12632    # Grep'ing the first line is not enough: some people post-process
12633    # each Makefile.in and add a new line on top of each file to say so.
12634    # Grep'ing the whole file is not good either: AIX grep has a line
12635    # limit of 2048, but all sed's we know have understand at least 4000.
12636    if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
12637      dirpart=`$as_dirname -- "$mf" ||
12638$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12639	 X"$mf" : 'X\(//\)[^/]' \| \
12640	 X"$mf" : 'X\(//\)$' \| \
12641	 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
12642$as_echo X"$mf" |
12643    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12644	    s//\1/
12645	    q
12646	  }
12647	  /^X\(\/\/\)[^/].*/{
12648	    s//\1/
12649	    q
12650	  }
12651	  /^X\(\/\/\)$/{
12652	    s//\1/
12653	    q
12654	  }
12655	  /^X\(\/\).*/{
12656	    s//\1/
12657	    q
12658	  }
12659	  s/.*/./; q'`
12660    else
12661      continue
12662    fi
12663    # Extract the definition of DEPDIR, am__include, and am__quote
12664    # from the Makefile without running `make'.
12665    DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
12666    test -z "$DEPDIR" && continue
12667    am__include=`sed -n 's/^am__include = //p' < "$mf"`
12668    test -z "am__include" && continue
12669    am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
12670    # When using ansi2knr, U may be empty or an underscore; expand it
12671    U=`sed -n 's/^U = //p' < "$mf"`
12672    # Find all dependency output files, they are included files with
12673    # $(DEPDIR) in their names.  We invoke sed twice because it is the
12674    # simplest approach to changing $(DEPDIR) to its actual value in the
12675    # expansion.
12676    for file in `sed -n "
12677      s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
12678	 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
12679      # Make sure the directory exists.
12680      test -f "$dirpart/$file" && continue
12681      fdir=`$as_dirname -- "$file" ||
12682$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12683	 X"$file" : 'X\(//\)[^/]' \| \
12684	 X"$file" : 'X\(//\)$' \| \
12685	 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
12686$as_echo X"$file" |
12687    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12688	    s//\1/
12689	    q
12690	  }
12691	  /^X\(\/\/\)[^/].*/{
12692	    s//\1/
12693	    q
12694	  }
12695	  /^X\(\/\/\)$/{
12696	    s//\1/
12697	    q
12698	  }
12699	  /^X\(\/\).*/{
12700	    s//\1/
12701	    q
12702	  }
12703	  s/.*/./; q'`
12704      as_dir=$dirpart/$fdir; as_fn_mkdir_p
12705      # echo "creating $dirpart/$file"
12706      echo '# dummy' > "$dirpart/$file"
12707    done
12708  done
12709}
12710 ;;
12711    "libtool":C)
12712
12713    # See if we are running on zsh, and set the options which allow our
12714    # commands through without removal of \ escapes.
12715    if test -n "${ZSH_VERSION+set}" ; then
12716      setopt NO_GLOB_SUBST
12717    fi
12718
12719    cfgfile="${ofile}T"
12720    trap "$RM \"$cfgfile\"; exit 1" 1 2 15
12721    $RM "$cfgfile"
12722
12723    cat <<_LT_EOF >> "$cfgfile"
12724#! $SHELL
12725
12726# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
12727# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
12728# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
12729# NOTE: Changes made to this file will be lost: look at ltmain.sh.
12730#
12731#   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
12732#                 2006, 2007, 2008, 2009 Free Software Foundation, Inc.
12733#   Written by Gordon Matzigkeit, 1996
12734#
12735#   This file is part of GNU Libtool.
12736#
12737# GNU Libtool is free software; you can redistribute it and/or
12738# modify it under the terms of the GNU General Public License as
12739# published by the Free Software Foundation; either version 2 of
12740# the License, or (at your option) any later version.
12741#
12742# As a special exception to the GNU General Public License,
12743# if you distribute this file as part of a program or library that
12744# is built using GNU Libtool, you may include this file under the
12745# same distribution terms that you use for the rest of that program.
12746#
12747# GNU Libtool is distributed in the hope that it will be useful,
12748# but WITHOUT ANY WARRANTY; without even the implied warranty of
12749# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
12750# GNU General Public License for more details.
12751#
12752# You should have received a copy of the GNU General Public License
12753# along with GNU Libtool; see the file COPYING.  If not, a copy
12754# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
12755# obtained by writing to the Free Software Foundation, Inc.,
12756# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
12757
12758
12759# The names of the tagged configurations supported by this script.
12760available_tags=""
12761
12762# ### BEGIN LIBTOOL CONFIG
12763
12764# Which release of libtool.m4 was used?
12765macro_version=$macro_version
12766macro_revision=$macro_revision
12767
12768# Whether or not to build shared libraries.
12769build_libtool_libs=$enable_shared
12770
12771# Whether or not to build static libraries.
12772build_old_libs=$enable_static
12773
12774# What type of objects to build.
12775pic_mode=$pic_mode
12776
12777# Whether or not to optimize for fast installation.
12778fast_install=$enable_fast_install
12779
12780# Shell to use when invoking shell scripts.
12781SHELL=$lt_SHELL
12782
12783# An echo program that protects backslashes.
12784ECHO=$lt_ECHO
12785
12786# The host system.
12787host_alias=$host_alias
12788host=$host
12789host_os=$host_os
12790
12791# The build system.
12792build_alias=$build_alias
12793build=$build
12794build_os=$build_os
12795
12796# A sed program that does not truncate output.
12797SED=$lt_SED
12798
12799# Sed that helps us avoid accidentally triggering echo(1) options like -n.
12800Xsed="\$SED -e 1s/^X//"
12801
12802# A grep program that handles long lines.
12803GREP=$lt_GREP
12804
12805# An ERE matcher.
12806EGREP=$lt_EGREP
12807
12808# A literal string matcher.
12809FGREP=$lt_FGREP
12810
12811# A BSD- or MS-compatible name lister.
12812NM=$lt_NM
12813
12814# Whether we need soft or hard links.
12815LN_S=$lt_LN_S
12816
12817# What is the maximum length of a command?
12818max_cmd_len=$max_cmd_len
12819
12820# Object file suffix (normally "o").
12821objext=$ac_objext
12822
12823# Executable file suffix (normally "").
12824exeext=$exeext
12825
12826# whether the shell understands "unset".
12827lt_unset=$lt_unset
12828
12829# turn spaces into newlines.
12830SP2NL=$lt_lt_SP2NL
12831
12832# turn newlines into spaces.
12833NL2SP=$lt_lt_NL2SP
12834
12835# An object symbol dumper.
12836OBJDUMP=$lt_OBJDUMP
12837
12838# Method to check whether dependent libraries are shared objects.
12839deplibs_check_method=$lt_deplibs_check_method
12840
12841# Command to use when deplibs_check_method == "file_magic".
12842file_magic_cmd=$lt_file_magic_cmd
12843
12844# The archiver.
12845AR=$lt_AR
12846AR_FLAGS=$lt_AR_FLAGS
12847
12848# A symbol stripping program.
12849STRIP=$lt_STRIP
12850
12851# Commands used to install an old-style archive.
12852RANLIB=$lt_RANLIB
12853old_postinstall_cmds=$lt_old_postinstall_cmds
12854old_postuninstall_cmds=$lt_old_postuninstall_cmds
12855
12856# Whether to use a lock for old archive extraction.
12857lock_old_archive_extraction=$lock_old_archive_extraction
12858
12859# A C compiler.
12860LTCC=$lt_CC
12861
12862# LTCC compiler flags.
12863LTCFLAGS=$lt_CFLAGS
12864
12865# Take the output of nm and produce a listing of raw symbols and C names.
12866global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
12867
12868# Transform the output of nm in a proper C declaration.
12869global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
12870
12871# Transform the output of nm in a C name address pair.
12872global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
12873
12874# Transform the output of nm in a C name address pair when lib prefix is needed.
12875global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
12876
12877# The name of the directory that contains temporary libtool files.
12878objdir=$objdir
12879
12880# Used to examine libraries when file_magic_cmd begins with "file".
12881MAGIC_CMD=$MAGIC_CMD
12882
12883# Must we lock files when doing compilation?
12884need_locks=$lt_need_locks
12885
12886# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
12887DSYMUTIL=$lt_DSYMUTIL
12888
12889# Tool to change global to local symbols on Mac OS X.
12890NMEDIT=$lt_NMEDIT
12891
12892# Tool to manipulate fat objects and archives on Mac OS X.
12893LIPO=$lt_LIPO
12894
12895# ldd/readelf like tool for Mach-O binaries on Mac OS X.
12896OTOOL=$lt_OTOOL
12897
12898# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
12899OTOOL64=$lt_OTOOL64
12900
12901# Old archive suffix (normally "a").
12902libext=$libext
12903
12904# Shared library suffix (normally ".so").
12905shrext_cmds=$lt_shrext_cmds
12906
12907# The commands to extract the exported symbol list from a shared archive.
12908extract_expsyms_cmds=$lt_extract_expsyms_cmds
12909
12910# Variables whose values should be saved in libtool wrapper scripts and
12911# restored at link time.
12912variables_saved_for_relink=$lt_variables_saved_for_relink
12913
12914# Do we need the "lib" prefix for modules?
12915need_lib_prefix=$need_lib_prefix
12916
12917# Do we need a version for libraries?
12918need_version=$need_version
12919
12920# Library versioning type.
12921version_type=$version_type
12922
12923# Shared library runtime path variable.
12924runpath_var=$runpath_var
12925
12926# Shared library path variable.
12927shlibpath_var=$shlibpath_var
12928
12929# Is shlibpath searched before the hard-coded library search path?
12930shlibpath_overrides_runpath=$shlibpath_overrides_runpath
12931
12932# Format of library name prefix.
12933libname_spec=$lt_libname_spec
12934
12935# List of archive names.  First name is the real one, the rest are links.
12936# The last name is the one that the linker finds with -lNAME
12937library_names_spec=$lt_library_names_spec
12938
12939# The coded name of the library, if different from the real name.
12940soname_spec=$lt_soname_spec
12941
12942# Permission mode override for installation of shared libraries.
12943install_override_mode=$lt_install_override_mode
12944
12945# Command to use after installation of a shared archive.
12946postinstall_cmds=$lt_postinstall_cmds
12947
12948# Command to use after uninstallation of a shared archive.
12949postuninstall_cmds=$lt_postuninstall_cmds
12950
12951# Commands used to finish a libtool library installation in a directory.
12952finish_cmds=$lt_finish_cmds
12953
12954# As "finish_cmds", except a single script fragment to be evaled but
12955# not shown.
12956finish_eval=$lt_finish_eval
12957
12958# Whether we should hardcode library paths into libraries.
12959hardcode_into_libs=$hardcode_into_libs
12960
12961# Compile-time system search path for libraries.
12962sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
12963
12964# Run-time system search path for libraries.
12965sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
12966
12967# Whether dlopen is supported.
12968dlopen_support=$enable_dlopen
12969
12970# Whether dlopen of programs is supported.
12971dlopen_self=$enable_dlopen_self
12972
12973# Whether dlopen of statically linked programs is supported.
12974dlopen_self_static=$enable_dlopen_self_static
12975
12976# Commands to strip libraries.
12977old_striplib=$lt_old_striplib
12978striplib=$lt_striplib
12979
12980
12981# The linker used to build libraries.
12982LD=$lt_LD
12983
12984# How to create reloadable object files.
12985reload_flag=$lt_reload_flag
12986reload_cmds=$lt_reload_cmds
12987
12988# Commands used to build an old-style archive.
12989old_archive_cmds=$lt_old_archive_cmds
12990
12991# A language specific compiler.
12992CC=$lt_compiler
12993
12994# Is the compiler the GNU compiler?
12995with_gcc=$GCC
12996
12997# Compiler flag to turn off builtin functions.
12998no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
12999
13000# How to pass a linker flag through the compiler.
13001wl=$lt_lt_prog_compiler_wl
13002
13003# Additional compiler flags for building library objects.
13004pic_flag=$lt_lt_prog_compiler_pic
13005
13006# Compiler flag to prevent dynamic linking.
13007link_static_flag=$lt_lt_prog_compiler_static
13008
13009# Does compiler simultaneously support -c and -o options?
13010compiler_c_o=$lt_lt_cv_prog_compiler_c_o
13011
13012# Whether or not to add -lc for building shared libraries.
13013build_libtool_need_lc=$archive_cmds_need_lc
13014
13015# Whether or not to disallow shared libs when runtime libs are static.
13016allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
13017
13018# Compiler flag to allow reflexive dlopens.
13019export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
13020
13021# Compiler flag to generate shared objects directly from archives.
13022whole_archive_flag_spec=$lt_whole_archive_flag_spec
13023
13024# Whether the compiler copes with passing no objects directly.
13025compiler_needs_object=$lt_compiler_needs_object
13026
13027# Create an old-style archive from a shared archive.
13028old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
13029
13030# Create a temporary old-style archive to link instead of a shared archive.
13031old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
13032
13033# Commands used to build a shared archive.
13034archive_cmds=$lt_archive_cmds
13035archive_expsym_cmds=$lt_archive_expsym_cmds
13036
13037# Commands used to build a loadable module if different from building
13038# a shared archive.
13039module_cmds=$lt_module_cmds
13040module_expsym_cmds=$lt_module_expsym_cmds
13041
13042# Whether we are building with GNU ld or not.
13043with_gnu_ld=$lt_with_gnu_ld
13044
13045# Flag that allows shared libraries with undefined symbols to be built.
13046allow_undefined_flag=$lt_allow_undefined_flag
13047
13048# Flag that enforces no undefined symbols.
13049no_undefined_flag=$lt_no_undefined_flag
13050
13051# Flag to hardcode \$libdir into a binary during linking.
13052# This must work even if \$libdir does not exist
13053hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
13054
13055# If ld is used when linking, flag to hardcode \$libdir into a binary
13056# during linking.  This must work even if \$libdir does not exist.
13057hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
13058
13059# Whether we need a single "-rpath" flag with a separated argument.
13060hardcode_libdir_separator=$lt_hardcode_libdir_separator
13061
13062# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
13063# DIR into the resulting binary.
13064hardcode_direct=$hardcode_direct
13065
13066# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
13067# DIR into the resulting binary and the resulting library dependency is
13068# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
13069# library is relocated.
13070hardcode_direct_absolute=$hardcode_direct_absolute
13071
13072# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
13073# into the resulting binary.
13074hardcode_minus_L=$hardcode_minus_L
13075
13076# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
13077# into the resulting binary.
13078hardcode_shlibpath_var=$hardcode_shlibpath_var
13079
13080# Set to "yes" if building a shared library automatically hardcodes DIR
13081# into the library and all subsequent libraries and executables linked
13082# against it.
13083hardcode_automatic=$hardcode_automatic
13084
13085# Set to yes if linker adds runtime paths of dependent libraries
13086# to runtime path list.
13087inherit_rpath=$inherit_rpath
13088
13089# Whether libtool must link a program against all its dependency libraries.
13090link_all_deplibs=$link_all_deplibs
13091
13092# Fix the shell variable \$srcfile for the compiler.
13093fix_srcfile_path=$lt_fix_srcfile_path
13094
13095# Set to "yes" if exported symbols are required.
13096always_export_symbols=$always_export_symbols
13097
13098# The commands to list exported symbols.
13099export_symbols_cmds=$lt_export_symbols_cmds
13100
13101# Symbols that should not be listed in the preloaded symbols.
13102exclude_expsyms=$lt_exclude_expsyms
13103
13104# Symbols that must always be exported.
13105include_expsyms=$lt_include_expsyms
13106
13107# Commands necessary for linking programs (against libraries) with templates.
13108prelink_cmds=$lt_prelink_cmds
13109
13110# Specify filename containing input files.
13111file_list_spec=$lt_file_list_spec
13112
13113# How to hardcode a shared library path into an executable.
13114hardcode_action=$hardcode_action
13115
13116# ### END LIBTOOL CONFIG
13117
13118_LT_EOF
13119
13120  case $host_os in
13121  aix3*)
13122    cat <<\_LT_EOF >> "$cfgfile"
13123# AIX sometimes has problems with the GCC collect2 program.  For some
13124# reason, if we set the COLLECT_NAMES environment variable, the problems
13125# vanish in a puff of smoke.
13126if test "X${COLLECT_NAMES+set}" != Xset; then
13127  COLLECT_NAMES=
13128  export COLLECT_NAMES
13129fi
13130_LT_EOF
13131    ;;
13132  esac
13133
13134
13135ltmain="$ac_aux_dir/ltmain.sh"
13136
13137
13138  # We use sed instead of cat because bash on DJGPP gets confused if
13139  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
13140  # text mode, it properly converts lines to CR/LF.  This bash problem
13141  # is reportedly fixed, but why not run on old versions too?
13142  sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
13143    || (rm -f "$cfgfile"; exit 1)
13144
13145  case $xsi_shell in
13146  yes)
13147    cat << \_LT_EOF >> "$cfgfile"
13148
13149# func_dirname file append nondir_replacement
13150# Compute the dirname of FILE.  If nonempty, add APPEND to the result,
13151# otherwise set result to NONDIR_REPLACEMENT.
13152func_dirname ()
13153{
13154  case ${1} in
13155    */*) func_dirname_result="${1%/*}${2}" ;;
13156    *  ) func_dirname_result="${3}" ;;
13157  esac
13158}
13159
13160# func_basename file
13161func_basename ()
13162{
13163  func_basename_result="${1##*/}"
13164}
13165
13166# func_dirname_and_basename file append nondir_replacement
13167# perform func_basename and func_dirname in a single function
13168# call:
13169#   dirname:  Compute the dirname of FILE.  If nonempty,
13170#             add APPEND to the result, otherwise set result
13171#             to NONDIR_REPLACEMENT.
13172#             value returned in "$func_dirname_result"
13173#   basename: Compute filename of FILE.
13174#             value retuned in "$func_basename_result"
13175# Implementation must be kept synchronized with func_dirname
13176# and func_basename. For efficiency, we do not delegate to
13177# those functions but instead duplicate the functionality here.
13178func_dirname_and_basename ()
13179{
13180  case ${1} in
13181    */*) func_dirname_result="${1%/*}${2}" ;;
13182    *  ) func_dirname_result="${3}" ;;
13183  esac
13184  func_basename_result="${1##*/}"
13185}
13186
13187# func_stripname prefix suffix name
13188# strip PREFIX and SUFFIX off of NAME.
13189# PREFIX and SUFFIX must not contain globbing or regex special
13190# characters, hashes, percent signs, but SUFFIX may contain a leading
13191# dot (in which case that matches only a dot).
13192func_stripname ()
13193{
13194  # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
13195  # positional parameters, so assign one to ordinary parameter first.
13196  func_stripname_result=${3}
13197  func_stripname_result=${func_stripname_result#"${1}"}
13198  func_stripname_result=${func_stripname_result%"${2}"}
13199}
13200
13201# func_opt_split
13202func_opt_split ()
13203{
13204  func_opt_split_opt=${1%%=*}
13205  func_opt_split_arg=${1#*=}
13206}
13207
13208# func_lo2o object
13209func_lo2o ()
13210{
13211  case ${1} in
13212    *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
13213    *)    func_lo2o_result=${1} ;;
13214  esac
13215}
13216
13217# func_xform libobj-or-source
13218func_xform ()
13219{
13220  func_xform_result=${1%.*}.lo
13221}
13222
13223# func_arith arithmetic-term...
13224func_arith ()
13225{
13226  func_arith_result=$(( $* ))
13227}
13228
13229# func_len string
13230# STRING may not start with a hyphen.
13231func_len ()
13232{
13233  func_len_result=${#1}
13234}
13235
13236_LT_EOF
13237    ;;
13238  *) # Bourne compatible functions.
13239    cat << \_LT_EOF >> "$cfgfile"
13240
13241# func_dirname file append nondir_replacement
13242# Compute the dirname of FILE.  If nonempty, add APPEND to the result,
13243# otherwise set result to NONDIR_REPLACEMENT.
13244func_dirname ()
13245{
13246  # Extract subdirectory from the argument.
13247  func_dirname_result=`$ECHO "${1}" | $SED "$dirname"`
13248  if test "X$func_dirname_result" = "X${1}"; then
13249    func_dirname_result="${3}"
13250  else
13251    func_dirname_result="$func_dirname_result${2}"
13252  fi
13253}
13254
13255# func_basename file
13256func_basename ()
13257{
13258  func_basename_result=`$ECHO "${1}" | $SED "$basename"`
13259}
13260
13261
13262# func_stripname prefix suffix name
13263# strip PREFIX and SUFFIX off of NAME.
13264# PREFIX and SUFFIX must not contain globbing or regex special
13265# characters, hashes, percent signs, but SUFFIX may contain a leading
13266# dot (in which case that matches only a dot).
13267# func_strip_suffix prefix name
13268func_stripname ()
13269{
13270  case ${2} in
13271    .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
13272    *)  func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
13273  esac
13274}
13275
13276# sed scripts:
13277my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
13278my_sed_long_arg='1s/^-[^=]*=//'
13279
13280# func_opt_split
13281func_opt_split ()
13282{
13283  func_opt_split_opt=`$ECHO "${1}" | $SED "$my_sed_long_opt"`
13284  func_opt_split_arg=`$ECHO "${1}" | $SED "$my_sed_long_arg"`
13285}
13286
13287# func_lo2o object
13288func_lo2o ()
13289{
13290  func_lo2o_result=`$ECHO "${1}" | $SED "$lo2o"`
13291}
13292
13293# func_xform libobj-or-source
13294func_xform ()
13295{
13296  func_xform_result=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'`
13297}
13298
13299# func_arith arithmetic-term...
13300func_arith ()
13301{
13302  func_arith_result=`expr "$@"`
13303}
13304
13305# func_len string
13306# STRING may not start with a hyphen.
13307func_len ()
13308{
13309  func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
13310}
13311
13312_LT_EOF
13313esac
13314
13315case $lt_shell_append in
13316  yes)
13317    cat << \_LT_EOF >> "$cfgfile"
13318
13319# func_append var value
13320# Append VALUE to the end of shell variable VAR.
13321func_append ()
13322{
13323  eval "$1+=\$2"
13324}
13325_LT_EOF
13326    ;;
13327  *)
13328    cat << \_LT_EOF >> "$cfgfile"
13329
13330# func_append var value
13331# Append VALUE to the end of shell variable VAR.
13332func_append ()
13333{
13334  eval "$1=\$$1\$2"
13335}
13336
13337_LT_EOF
13338    ;;
13339  esac
13340
13341
13342  sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
13343    || (rm -f "$cfgfile"; exit 1)
13344
13345  mv -f "$cfgfile" "$ofile" ||
13346    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
13347  chmod +x "$ofile"
13348
13349 ;;
13350
13351  esac
13352done # for ac_tag
13353
13354
13355as_fn_exit 0
13356_ACEOF
13357ac_clean_files=$ac_clean_files_save
13358
13359test $ac_write_fail = 0 ||
13360  as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
13361
13362
13363# configure is writing to config.log, and then calls config.status.
13364# config.status does its own redirection, appending to config.log.
13365# Unfortunately, on DOS this fails, as config.log is still kept open
13366# by configure, so config.status won't be able to write to it; its
13367# output is simply discarded.  So we exec the FD to /dev/null,
13368# effectively closing config.log, so it can be properly (re)opened and
13369# appended to by config.status.  When coming back to configure, we
13370# need to make the FD available again.
13371if test "$no_create" != yes; then
13372  ac_cs_success=:
13373  ac_config_status_args=
13374  test "$silent" = yes &&
13375    ac_config_status_args="$ac_config_status_args --quiet"
13376  exec 5>/dev/null
13377  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
13378  exec 5>>config.log
13379  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
13380  # would make configure fail if this is the last instruction.
13381  $ac_cs_success || as_fn_exit $?
13382fi
13383if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
13384  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
13385$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
13386fi
13387
13388