1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.68.
4#
5#
6# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
7# 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software
8# Foundation, Inc.
9#
10#
11# This configure script is free software; the Free Software Foundation
12# gives unlimited permission to copy, distribute and modify it.
13## -------------------- ##
14## M4sh Initialization. ##
15## -------------------- ##
16
17# Be more Bourne compatible
18DUALCASE=1; export DUALCASE # for MKS sh
19if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
20  emulate sh
21  NULLCMD=:
22  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23  # is contrary to our usage.  Disable this feature.
24  alias -g '${1+"$@"}'='"$@"'
25  setopt NO_GLOB_SUBST
26else
27  case `(set -o) 2>/dev/null` in #(
28  *posix*) :
29    set -o posix ;; #(
30  *) :
31     ;;
32esac
33fi
34
35
36as_nl='
37'
38export as_nl
39# Printing a long string crashes Solaris 7 /usr/bin/printf.
40as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
42as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
43# Prefer a ksh shell builtin over an external printf program on Solaris,
44# but without wasting forks for bash or zsh.
45if test -z "$BASH_VERSION$ZSH_VERSION" \
46    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
47  as_echo='print -r --'
48  as_echo_n='print -rn --'
49elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
50  as_echo='printf %s\n'
51  as_echo_n='printf %s'
52else
53  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
55    as_echo_n='/usr/ucb/echo -n'
56  else
57    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
58    as_echo_n_body='eval
59      arg=$1;
60      case $arg in #(
61      *"$as_nl"*)
62	expr "X$arg" : "X\\(.*\\)$as_nl";
63	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
64      esac;
65      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
66    '
67    export as_echo_n_body
68    as_echo_n='sh -c $as_echo_n_body as_echo'
69  fi
70  export as_echo_body
71  as_echo='sh -c $as_echo_body as_echo'
72fi
73
74# The user is always right.
75if test "${PATH_SEPARATOR+set}" != set; then
76  PATH_SEPARATOR=:
77  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
79      PATH_SEPARATOR=';'
80  }
81fi
82
83
84# IFS
85# We need space, tab and new line, in precisely that order.  Quoting is
86# there to prevent editors from complaining about space-tab.
87# (If _AS_PATH_WALK were called with IFS unset, it would disable word
88# splitting by setting IFS to empty value.)
89IFS=" ""	$as_nl"
90
91# Find who we are.  Look in the path if we contain no directory separator.
92as_myself=
93case $0 in #((
94  *[\\/]* ) as_myself=$0 ;;
95  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
96for as_dir in $PATH
97do
98  IFS=$as_save_IFS
99  test -z "$as_dir" && as_dir=.
100    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
101  done
102IFS=$as_save_IFS
103
104     ;;
105esac
106# We did not find ourselves, most probably we were run as `sh COMMAND'
107# in which case we are not to be found in the path.
108if test "x$as_myself" = x; then
109  as_myself=$0
110fi
111if test ! -f "$as_myself"; then
112  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
113  exit 1
114fi
115
116# Unset variables that we do not need and which cause bugs (e.g. in
117# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
118# suppresses any "Segmentation fault" message there.  '((' could
119# trigger a bug in pdksh 5.2.14.
120for as_var in BASH_ENV ENV MAIL MAILPATH
121do eval test x\${$as_var+set} = xset \
122  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
123done
124PS1='$ '
125PS2='> '
126PS4='+ '
127
128# NLS nuisances.
129LC_ALL=C
130export LC_ALL
131LANGUAGE=C
132export LANGUAGE
133
134# CDPATH.
135(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
136
137if test "x$CONFIG_SHELL" = x; then
138  as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
139  emulate sh
140  NULLCMD=:
141  # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
142  # is contrary to our usage.  Disable this feature.
143  alias -g '\${1+\"\$@\"}'='\"\$@\"'
144  setopt NO_GLOB_SUBST
145else
146  case \`(set -o) 2>/dev/null\` in #(
147  *posix*) :
148    set -o posix ;; #(
149  *) :
150     ;;
151esac
152fi
153"
154  as_required="as_fn_return () { (exit \$1); }
155as_fn_success () { as_fn_return 0; }
156as_fn_failure () { as_fn_return 1; }
157as_fn_ret_success () { return 0; }
158as_fn_ret_failure () { return 1; }
159
160exitcode=0
161as_fn_success || { exitcode=1; echo as_fn_success failed.; }
162as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
163as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
164as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
165if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
166
167else
168  exitcode=1; echo positional parameters were not saved.
169fi
170test x\$exitcode = x0 || exit 1"
171  as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
172  as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
173  eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
174  test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
175test \$(( 1 + 1 )) = 2 || exit 1
176
177  test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
178    ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
179    ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
180    ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
181    PATH=/empty FPATH=/empty; export PATH FPATH
182    test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
183      || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1"
184  if (eval "$as_required") 2>/dev/null; then :
185  as_have_required=yes
186else
187  as_have_required=no
188fi
189  if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
190
191else
192  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
193as_found=false
194for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
195do
196  IFS=$as_save_IFS
197  test -z "$as_dir" && as_dir=.
198  as_found=:
199  case $as_dir in #(
200	 /*)
201	   for as_base in sh bash ksh sh5; do
202	     # Try only shells that exist, to save several forks.
203	     as_shell=$as_dir/$as_base
204	     if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
205		    { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
206  CONFIG_SHELL=$as_shell as_have_required=yes
207		   if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
208  break 2
209fi
210fi
211	   done;;
212       esac
213  as_found=false
214done
215$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
216	      { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
217  CONFIG_SHELL=$SHELL as_have_required=yes
218fi; }
219IFS=$as_save_IFS
220
221
222      if test "x$CONFIG_SHELL" != x; then :
223  # We cannot yet assume a decent shell, so we have to provide a
224	# neutralization value for shells without unset; and this also
225	# works around shells that cannot unset nonexistent variables.
226	# Preserve -v and -x to the replacement shell.
227	BASH_ENV=/dev/null
228	ENV=/dev/null
229	(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
230	export CONFIG_SHELL
231	case $- in # ((((
232	  *v*x* | *x*v* ) as_opts=-vx ;;
233	  *v* ) as_opts=-v ;;
234	  *x* ) as_opts=-x ;;
235	  * ) as_opts= ;;
236	esac
237	exec "$CONFIG_SHELL" $as_opts "$as_myself" ${1+"$@"}
238fi
239
240    if test x$as_have_required = xno; then :
241  $as_echo "$0: This script requires a shell more modern than all"
242  $as_echo "$0: the shells that I found on your system."
243  if test x${ZSH_VERSION+set} = xset ; then
244    $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
245    $as_echo "$0: be upgraded to zsh 4.3.4 or later."
246  else
247    $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
248$0: including any error possibly output before this
249$0: message. Then install a modern shell, or manually run
250$0: the script under such a shell if you do have one."
251  fi
252  exit 1
253fi
254fi
255fi
256SHELL=${CONFIG_SHELL-/bin/sh}
257export SHELL
258# Unset more variables known to interfere with behavior of common tools.
259CLICOLOR_FORCE= GREP_OPTIONS=
260unset CLICOLOR_FORCE GREP_OPTIONS
261
262## --------------------- ##
263## M4sh Shell Functions. ##
264## --------------------- ##
265# as_fn_unset VAR
266# ---------------
267# Portably unset VAR.
268as_fn_unset ()
269{
270  { eval $1=; unset $1;}
271}
272as_unset=as_fn_unset
273
274# as_fn_set_status STATUS
275# -----------------------
276# Set $? to STATUS, without forking.
277as_fn_set_status ()
278{
279  return $1
280} # as_fn_set_status
281
282# as_fn_exit STATUS
283# -----------------
284# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
285as_fn_exit ()
286{
287  set +e
288  as_fn_set_status $1
289  exit $1
290} # as_fn_exit
291
292# as_fn_mkdir_p
293# -------------
294# Create "$as_dir" as a directory, including parents if necessary.
295as_fn_mkdir_p ()
296{
297
298  case $as_dir in #(
299  -*) as_dir=./$as_dir;;
300  esac
301  test -d "$as_dir" || eval $as_mkdir_p || {
302    as_dirs=
303    while :; do
304      case $as_dir in #(
305      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
306      *) as_qdir=$as_dir;;
307      esac
308      as_dirs="'$as_qdir' $as_dirs"
309      as_dir=`$as_dirname -- "$as_dir" ||
310$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
311	 X"$as_dir" : 'X\(//\)[^/]' \| \
312	 X"$as_dir" : 'X\(//\)$' \| \
313	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
314$as_echo X"$as_dir" |
315    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
316	    s//\1/
317	    q
318	  }
319	  /^X\(\/\/\)[^/].*/{
320	    s//\1/
321	    q
322	  }
323	  /^X\(\/\/\)$/{
324	    s//\1/
325	    q
326	  }
327	  /^X\(\/\).*/{
328	    s//\1/
329	    q
330	  }
331	  s/.*/./; q'`
332      test -d "$as_dir" && break
333    done
334    test -z "$as_dirs" || eval "mkdir $as_dirs"
335  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
336
337
338} # as_fn_mkdir_p
339# as_fn_append VAR VALUE
340# ----------------------
341# Append the text in VALUE to the end of the definition contained in VAR. Take
342# advantage of any shell optimizations that allow amortized linear growth over
343# repeated appends, instead of the typical quadratic growth present in naive
344# implementations.
345if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
346  eval 'as_fn_append ()
347  {
348    eval $1+=\$2
349  }'
350else
351  as_fn_append ()
352  {
353    eval $1=\$$1\$2
354  }
355fi # as_fn_append
356
357# as_fn_arith ARG...
358# ------------------
359# Perform arithmetic evaluation on the ARGs, and store the result in the
360# global $as_val. Take advantage of shells that can avoid forks. The arguments
361# must be portable across $(()) and expr.
362if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
363  eval 'as_fn_arith ()
364  {
365    as_val=$(( $* ))
366  }'
367else
368  as_fn_arith ()
369  {
370    as_val=`expr "$@" || test $? -eq 1`
371  }
372fi # as_fn_arith
373
374
375# as_fn_error STATUS ERROR [LINENO LOG_FD]
376# ----------------------------------------
377# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
378# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
379# script with STATUS, using 1 if that was 0.
380as_fn_error ()
381{
382  as_status=$1; test $as_status -eq 0 && as_status=1
383  if test "$4"; then
384    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
385    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
386  fi
387  $as_echo "$as_me: error: $2" >&2
388  as_fn_exit $as_status
389} # as_fn_error
390
391if expr a : '\(a\)' >/dev/null 2>&1 &&
392   test "X`expr 00001 : '.*\(...\)'`" = X001; then
393  as_expr=expr
394else
395  as_expr=false
396fi
397
398if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
399  as_basename=basename
400else
401  as_basename=false
402fi
403
404if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
405  as_dirname=dirname
406else
407  as_dirname=false
408fi
409
410as_me=`$as_basename -- "$0" ||
411$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
412	 X"$0" : 'X\(//\)$' \| \
413	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
414$as_echo X/"$0" |
415    sed '/^.*\/\([^/][^/]*\)\/*$/{
416	    s//\1/
417	    q
418	  }
419	  /^X\/\(\/\/\)$/{
420	    s//\1/
421	    q
422	  }
423	  /^X\/\(\/\).*/{
424	    s//\1/
425	    q
426	  }
427	  s/.*/./; q'`
428
429# Avoid depending upon Character Ranges.
430as_cr_letters='abcdefghijklmnopqrstuvwxyz'
431as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
432as_cr_Letters=$as_cr_letters$as_cr_LETTERS
433as_cr_digits='0123456789'
434as_cr_alnum=$as_cr_Letters$as_cr_digits
435
436
437  as_lineno_1=$LINENO as_lineno_1a=$LINENO
438  as_lineno_2=$LINENO as_lineno_2a=$LINENO
439  eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
440  test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
441  # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
442  sed -n '
443    p
444    /[$]LINENO/=
445  ' <$as_myself |
446    sed '
447      s/[$]LINENO.*/&-/
448      t lineno
449      b
450      :lineno
451      N
452      :loop
453      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
454      t loop
455      s/-\n.*//
456    ' >$as_me.lineno &&
457  chmod +x "$as_me.lineno" ||
458    { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
459
460  # Don't try to exec as it changes $[0], causing all sort of problems
461  # (the dirname of $[0] is not the place where we might find the
462  # original and so on.  Autoconf is especially sensitive to this).
463  . "./$as_me.lineno"
464  # Exit status is that of the last command.
465  exit
466}
467
468ECHO_C= ECHO_N= ECHO_T=
469case `echo -n x` in #(((((
470-n*)
471  case `echo 'xy\c'` in
472  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
473  xy)  ECHO_C='\c';;
474  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
475       ECHO_T='	';;
476  esac;;
477*)
478  ECHO_N='-n';;
479esac
480
481rm -f conf$$ conf$$.exe conf$$.file
482if test -d conf$$.dir; then
483  rm -f conf$$.dir/conf$$.file
484else
485  rm -f conf$$.dir
486  mkdir conf$$.dir 2>/dev/null
487fi
488if (echo >conf$$.file) 2>/dev/null; then
489  if ln -s conf$$.file conf$$ 2>/dev/null; then
490    as_ln_s='ln -s'
491    # ... but there are two gotchas:
492    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
493    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
494    # In both cases, we have to default to `cp -p'.
495    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
496      as_ln_s='cp -p'
497  elif ln conf$$.file conf$$ 2>/dev/null; then
498    as_ln_s=ln
499  else
500    as_ln_s='cp -p'
501  fi
502else
503  as_ln_s='cp -p'
504fi
505rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
506rmdir conf$$.dir 2>/dev/null
507
508if mkdir -p . 2>/dev/null; then
509  as_mkdir_p='mkdir -p "$as_dir"'
510else
511  test -d ./-p && rmdir ./-p
512  as_mkdir_p=false
513fi
514
515if test -x / >/dev/null 2>&1; then
516  as_test_x='test -x'
517else
518  if ls -dL / >/dev/null 2>&1; then
519    as_ls_L_option=L
520  else
521    as_ls_L_option=
522  fi
523  as_test_x='
524    eval sh -c '\''
525      if test -d "$1"; then
526	test -d "$1/.";
527      else
528	case $1 in #(
529	-*)set "./$1";;
530	esac;
531	case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
532	???[sx]*):;;*)false;;esac;fi
533    '\'' sh
534  '
535fi
536as_executable_p=$as_test_x
537
538# Sed expression to map a string onto a valid CPP name.
539as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
540
541# Sed expression to map a string onto a valid variable name.
542as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
543
544SHELL=${CONFIG_SHELL-/bin/sh}
545
546
547test -n "$DJDIR" || exec 7<&0 </dev/null
548exec 6>&1
549
550# Name of the host.
551# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
552# so uname gets run too.
553ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
554
555#
556# Initializations.
557#
558ac_default_prefix=/usr/local
559ac_clean_files=
560ac_config_libobj_dir=.
561LIBOBJS=
562cross_compiling=no
563subdirs=
564MFLAGS=
565MAKEFLAGS=
566
567# Identity of this package.
568PACKAGE_NAME=
569PACKAGE_TARNAME=
570PACKAGE_VERSION=
571PACKAGE_STRING=
572PACKAGE_BUGREPORT=
573PACKAGE_URL=
574
575ac_unique_file="lib/localcharset.c"
576# Factoring default headers for most tests.
577ac_includes_default="\
578#include <stdio.h>
579#ifdef HAVE_SYS_TYPES_H
580# include <sys/types.h>
581#endif
582#ifdef HAVE_SYS_STAT_H
583# include <sys/stat.h>
584#endif
585#ifdef STDC_HEADERS
586# include <stdlib.h>
587# include <stddef.h>
588#else
589# ifdef HAVE_STDLIB_H
590#  include <stdlib.h>
591# endif
592#endif
593#ifdef HAVE_STRING_H
594# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
595#  include <memory.h>
596# endif
597# include <string.h>
598#endif
599#ifdef HAVE_STRINGS_H
600# include <strings.h>
601#endif
602#ifdef HAVE_INTTYPES_H
603# include <inttypes.h>
604#endif
605#ifdef HAVE_STDINT_H
606# include <stdint.h>
607#endif
608#ifdef HAVE_UNISTD_H
609# include <unistd.h>
610#endif"
611
612ac_subst_vars='LTLIBOBJS
613GLIBC21
614HAVE_VISIBILITY
615CFLAG_VISIBILITY
616OTOOL64
617OTOOL
618LIPO
619NMEDIT
620DSYMUTIL
621MANIFEST_TOOL
622AWK
623RANLIB
624STRIP
625ac_ct_AR
626AR
627LN_S
628NM
629ac_ct_DUMPBIN
630DUMPBIN
631LD
632FGREP
633SED
634LIBTOOL
635OBJDUMP
636DLLTOOL
637AS
638EGREP
639GREP
640LIBOBJS
641RELOCATABLE
642host_os
643host_vendor
644host_cpu
645host
646build_os
647build_vendor
648build_cpu
649build
650INSTALL_DATA
651INSTALL_SCRIPT
652INSTALL_PROGRAM
653CPP
654OBJEXT
655EXEEXT
656ac_ct_CC
657CPPFLAGS
658LDFLAGS
659CFLAGS
660CC
661VERSION
662PACKAGE
663SET_MAKE
664target_alias
665host_alias
666build_alias
667LIBS
668ECHO_T
669ECHO_N
670ECHO_C
671DEFS
672mandir
673localedir
674libdir
675psdir
676pdfdir
677dvidir
678htmldir
679infodir
680docdir
681oldincludedir
682includedir
683localstatedir
684sharedstatedir
685sysconfdir
686datadir
687datarootdir
688libexecdir
689sbindir
690bindir
691program_transform_name
692prefix
693exec_prefix
694PACKAGE_URL
695PACKAGE_BUGREPORT
696PACKAGE_STRING
697PACKAGE_VERSION
698PACKAGE_TARNAME
699PACKAGE_NAME
700PATH_SEPARATOR
701SHELL'
702ac_subst_files=''
703ac_user_opts='
704enable_option_checking
705enable_relocatable
706enable_shared
707enable_static
708with_pic
709enable_fast_install
710with_gnu_ld
711with_sysroot
712enable_libtool_lock
713'
714      ac_precious_vars='build_alias
715host_alias
716target_alias
717CC
718CFLAGS
719LDFLAGS
720LIBS
721CPPFLAGS
722CPP
723CPPFLAGS'
724
725
726# Initialize some variables set by options.
727ac_init_help=
728ac_init_version=false
729ac_unrecognized_opts=
730ac_unrecognized_sep=
731# The variables have the same names as the options, with
732# dashes changed to underlines.
733cache_file=/dev/null
734exec_prefix=NONE
735no_create=
736no_recursion=
737prefix=NONE
738program_prefix=NONE
739program_suffix=NONE
740program_transform_name=s,x,x,
741silent=
742site=
743srcdir=
744verbose=
745x_includes=NONE
746x_libraries=NONE
747
748# Installation directory options.
749# These are left unexpanded so users can "make install exec_prefix=/foo"
750# and all the variables that are supposed to be based on exec_prefix
751# by default will actually change.
752# Use braces instead of parens because sh, perl, etc. also accept them.
753# (The list follows the same order as the GNU Coding Standards.)
754bindir='${exec_prefix}/bin'
755sbindir='${exec_prefix}/sbin'
756libexecdir='${exec_prefix}/libexec'
757datarootdir='${prefix}/share'
758datadir='${datarootdir}'
759sysconfdir='${prefix}/etc'
760sharedstatedir='${prefix}/com'
761localstatedir='${prefix}/var'
762includedir='${prefix}/include'
763oldincludedir='/usr/include'
764docdir='${datarootdir}/doc/${PACKAGE}'
765infodir='${datarootdir}/info'
766htmldir='${docdir}'
767dvidir='${docdir}'
768pdfdir='${docdir}'
769psdir='${docdir}'
770libdir='${exec_prefix}/lib'
771localedir='${datarootdir}/locale'
772mandir='${datarootdir}/man'
773
774ac_prev=
775ac_dashdash=
776for ac_option
777do
778  # If the previous option needs an argument, assign it.
779  if test -n "$ac_prev"; then
780    eval $ac_prev=\$ac_option
781    ac_prev=
782    continue
783  fi
784
785  case $ac_option in
786  *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
787  *=)   ac_optarg= ;;
788  *)    ac_optarg=yes ;;
789  esac
790
791  # Accept the important Cygnus configure options, so we can diagnose typos.
792
793  case $ac_dashdash$ac_option in
794  --)
795    ac_dashdash=yes ;;
796
797  -bindir | --bindir | --bindi | --bind | --bin | --bi)
798    ac_prev=bindir ;;
799  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
800    bindir=$ac_optarg ;;
801
802  -build | --build | --buil | --bui | --bu)
803    ac_prev=build_alias ;;
804  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
805    build_alias=$ac_optarg ;;
806
807  -cache-file | --cache-file | --cache-fil | --cache-fi \
808  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
809    ac_prev=cache_file ;;
810  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
811  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
812    cache_file=$ac_optarg ;;
813
814  --config-cache | -C)
815    cache_file=config.cache ;;
816
817  -datadir | --datadir | --datadi | --datad)
818    ac_prev=datadir ;;
819  -datadir=* | --datadir=* | --datadi=* | --datad=*)
820    datadir=$ac_optarg ;;
821
822  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
823  | --dataroo | --dataro | --datar)
824    ac_prev=datarootdir ;;
825  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
826  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
827    datarootdir=$ac_optarg ;;
828
829  -disable-* | --disable-*)
830    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
831    # Reject names that are not valid shell variable names.
832    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
833      as_fn_error $? "invalid feature name: $ac_useropt"
834    ac_useropt_orig=$ac_useropt
835    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
836    case $ac_user_opts in
837      *"
838"enable_$ac_useropt"
839"*) ;;
840      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
841	 ac_unrecognized_sep=', ';;
842    esac
843    eval enable_$ac_useropt=no ;;
844
845  -docdir | --docdir | --docdi | --doc | --do)
846    ac_prev=docdir ;;
847  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
848    docdir=$ac_optarg ;;
849
850  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
851    ac_prev=dvidir ;;
852  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
853    dvidir=$ac_optarg ;;
854
855  -enable-* | --enable-*)
856    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
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--enable-$ac_useropt_orig"
867	 ac_unrecognized_sep=', ';;
868    esac
869    eval enable_$ac_useropt=\$ac_optarg ;;
870
871  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
872  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
873  | --exec | --exe | --ex)
874    ac_prev=exec_prefix ;;
875  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
876  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
877  | --exec=* | --exe=* | --ex=*)
878    exec_prefix=$ac_optarg ;;
879
880  -gas | --gas | --ga | --g)
881    # Obsolete; use --with-gas.
882    with_gas=yes ;;
883
884  -help | --help | --hel | --he | -h)
885    ac_init_help=long ;;
886  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
887    ac_init_help=recursive ;;
888  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
889    ac_init_help=short ;;
890
891  -host | --host | --hos | --ho)
892    ac_prev=host_alias ;;
893  -host=* | --host=* | --hos=* | --ho=*)
894    host_alias=$ac_optarg ;;
895
896  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
897    ac_prev=htmldir ;;
898  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
899  | --ht=*)
900    htmldir=$ac_optarg ;;
901
902  -includedir | --includedir | --includedi | --included | --include \
903  | --includ | --inclu | --incl | --inc)
904    ac_prev=includedir ;;
905  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
906  | --includ=* | --inclu=* | --incl=* | --inc=*)
907    includedir=$ac_optarg ;;
908
909  -infodir | --infodir | --infodi | --infod | --info | --inf)
910    ac_prev=infodir ;;
911  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
912    infodir=$ac_optarg ;;
913
914  -libdir | --libdir | --libdi | --libd)
915    ac_prev=libdir ;;
916  -libdir=* | --libdir=* | --libdi=* | --libd=*)
917    libdir=$ac_optarg ;;
918
919  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
920  | --libexe | --libex | --libe)
921    ac_prev=libexecdir ;;
922  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
923  | --libexe=* | --libex=* | --libe=*)
924    libexecdir=$ac_optarg ;;
925
926  -localedir | --localedir | --localedi | --localed | --locale)
927    ac_prev=localedir ;;
928  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
929    localedir=$ac_optarg ;;
930
931  -localstatedir | --localstatedir | --localstatedi | --localstated \
932  | --localstate | --localstat | --localsta | --localst | --locals)
933    ac_prev=localstatedir ;;
934  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
935  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
936    localstatedir=$ac_optarg ;;
937
938  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
939    ac_prev=mandir ;;
940  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
941    mandir=$ac_optarg ;;
942
943  -nfp | --nfp | --nf)
944    # Obsolete; use --without-fp.
945    with_fp=no ;;
946
947  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
948  | --no-cr | --no-c | -n)
949    no_create=yes ;;
950
951  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
952  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
953    no_recursion=yes ;;
954
955  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
956  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
957  | --oldin | --oldi | --old | --ol | --o)
958    ac_prev=oldincludedir ;;
959  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
960  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
961  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
962    oldincludedir=$ac_optarg ;;
963
964  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
965    ac_prev=prefix ;;
966  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
967    prefix=$ac_optarg ;;
968
969  -program-prefix | --program-prefix | --program-prefi | --program-pref \
970  | --program-pre | --program-pr | --program-p)
971    ac_prev=program_prefix ;;
972  -program-prefix=* | --program-prefix=* | --program-prefi=* \
973  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
974    program_prefix=$ac_optarg ;;
975
976  -program-suffix | --program-suffix | --program-suffi | --program-suff \
977  | --program-suf | --program-su | --program-s)
978    ac_prev=program_suffix ;;
979  -program-suffix=* | --program-suffix=* | --program-suffi=* \
980  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
981    program_suffix=$ac_optarg ;;
982
983  -program-transform-name | --program-transform-name \
984  | --program-transform-nam | --program-transform-na \
985  | --program-transform-n | --program-transform- \
986  | --program-transform | --program-transfor \
987  | --program-transfo | --program-transf \
988  | --program-trans | --program-tran \
989  | --progr-tra | --program-tr | --program-t)
990    ac_prev=program_transform_name ;;
991  -program-transform-name=* | --program-transform-name=* \
992  | --program-transform-nam=* | --program-transform-na=* \
993  | --program-transform-n=* | --program-transform-=* \
994  | --program-transform=* | --program-transfor=* \
995  | --program-transfo=* | --program-transf=* \
996  | --program-trans=* | --program-tran=* \
997  | --progr-tra=* | --program-tr=* | --program-t=*)
998    program_transform_name=$ac_optarg ;;
999
1000  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1001    ac_prev=pdfdir ;;
1002  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1003    pdfdir=$ac_optarg ;;
1004
1005  -psdir | --psdir | --psdi | --psd | --ps)
1006    ac_prev=psdir ;;
1007  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1008    psdir=$ac_optarg ;;
1009
1010  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1011  | -silent | --silent | --silen | --sile | --sil)
1012    silent=yes ;;
1013
1014  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1015    ac_prev=sbindir ;;
1016  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1017  | --sbi=* | --sb=*)
1018    sbindir=$ac_optarg ;;
1019
1020  -sharedstatedir | --sharedstatedir | --sharedstatedi \
1021  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1022  | --sharedst | --shareds | --shared | --share | --shar \
1023  | --sha | --sh)
1024    ac_prev=sharedstatedir ;;
1025  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1026  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1027  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1028  | --sha=* | --sh=*)
1029    sharedstatedir=$ac_optarg ;;
1030
1031  -site | --site | --sit)
1032    ac_prev=site ;;
1033  -site=* | --site=* | --sit=*)
1034    site=$ac_optarg ;;
1035
1036  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1037    ac_prev=srcdir ;;
1038  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1039    srcdir=$ac_optarg ;;
1040
1041  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1042  | --syscon | --sysco | --sysc | --sys | --sy)
1043    ac_prev=sysconfdir ;;
1044  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1045  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1046    sysconfdir=$ac_optarg ;;
1047
1048  -target | --target | --targe | --targ | --tar | --ta | --t)
1049    ac_prev=target_alias ;;
1050  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1051    target_alias=$ac_optarg ;;
1052
1053  -v | -verbose | --verbose | --verbos | --verbo | --verb)
1054    verbose=yes ;;
1055
1056  -version | --version | --versio | --versi | --vers | -V)
1057    ac_init_version=: ;;
1058
1059  -with-* | --with-*)
1060    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1061    # Reject names that are not valid shell variable names.
1062    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1063      as_fn_error $? "invalid package name: $ac_useropt"
1064    ac_useropt_orig=$ac_useropt
1065    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1066    case $ac_user_opts in
1067      *"
1068"with_$ac_useropt"
1069"*) ;;
1070      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1071	 ac_unrecognized_sep=', ';;
1072    esac
1073    eval with_$ac_useropt=\$ac_optarg ;;
1074
1075  -without-* | --without-*)
1076    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1077    # Reject names that are not valid shell variable names.
1078    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1079      as_fn_error $? "invalid package name: $ac_useropt"
1080    ac_useropt_orig=$ac_useropt
1081    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1082    case $ac_user_opts in
1083      *"
1084"with_$ac_useropt"
1085"*) ;;
1086      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1087	 ac_unrecognized_sep=', ';;
1088    esac
1089    eval with_$ac_useropt=no ;;
1090
1091  --x)
1092    # Obsolete; use --with-x.
1093    with_x=yes ;;
1094
1095  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1096  | --x-incl | --x-inc | --x-in | --x-i)
1097    ac_prev=x_includes ;;
1098  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1099  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1100    x_includes=$ac_optarg ;;
1101
1102  -x-libraries | --x-libraries | --x-librarie | --x-librari \
1103  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1104    ac_prev=x_libraries ;;
1105  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1106  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1107    x_libraries=$ac_optarg ;;
1108
1109  -*) as_fn_error $? "unrecognized option: \`$ac_option'
1110Try \`$0 --help' for more information"
1111    ;;
1112
1113  *=*)
1114    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1115    # Reject names that are not valid shell variable names.
1116    case $ac_envvar in #(
1117      '' | [0-9]* | *[!_$as_cr_alnum]* )
1118      as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1119    esac
1120    eval $ac_envvar=\$ac_optarg
1121    export $ac_envvar ;;
1122
1123  *)
1124    # FIXME: should be removed in autoconf 3.0.
1125    $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1126    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1127      $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1128    : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1129    ;;
1130
1131  esac
1132done
1133
1134if test -n "$ac_prev"; then
1135  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1136  as_fn_error $? "missing argument to $ac_option"
1137fi
1138
1139if test -n "$ac_unrecognized_opts"; then
1140  case $enable_option_checking in
1141    no) ;;
1142    fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1143    *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1144  esac
1145fi
1146
1147# Check all directory arguments for consistency.
1148for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
1149		datadir sysconfdir sharedstatedir localstatedir includedir \
1150		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1151		libdir localedir mandir
1152do
1153  eval ac_val=\$$ac_var
1154  # Remove trailing slashes.
1155  case $ac_val in
1156    */ )
1157      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1158      eval $ac_var=\$ac_val;;
1159  esac
1160  # Be sure to have absolute directory names.
1161  case $ac_val in
1162    [\\/$]* | ?:[\\/]* )  continue;;
1163    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1164  esac
1165  as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1166done
1167
1168# There might be people who depend on the old broken behavior: `$host'
1169# used to hold the argument of --host etc.
1170# FIXME: To remove some day.
1171build=$build_alias
1172host=$host_alias
1173target=$target_alias
1174
1175# FIXME: To remove some day.
1176if test "x$host_alias" != x; then
1177  if test "x$build_alias" = x; then
1178    cross_compiling=maybe
1179    $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
1180    If a cross compiler is detected then cross compile mode will be used" >&2
1181  elif test "x$build_alias" != "x$host_alias"; then
1182    cross_compiling=yes
1183  fi
1184fi
1185
1186ac_tool_prefix=
1187test -n "$host_alias" && ac_tool_prefix=$host_alias-
1188
1189test "$silent" = yes && exec 6>/dev/null
1190
1191
1192ac_pwd=`pwd` && test -n "$ac_pwd" &&
1193ac_ls_di=`ls -di .` &&
1194ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1195  as_fn_error $? "working directory cannot be determined"
1196test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1197  as_fn_error $? "pwd does not report name of working directory"
1198
1199
1200# Find the source files, if location was not specified.
1201if test -z "$srcdir"; then
1202  ac_srcdir_defaulted=yes
1203  # Try the directory containing this script, then the parent directory.
1204  ac_confdir=`$as_dirname -- "$as_myself" ||
1205$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1206	 X"$as_myself" : 'X\(//\)[^/]' \| \
1207	 X"$as_myself" : 'X\(//\)$' \| \
1208	 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1209$as_echo X"$as_myself" |
1210    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1211	    s//\1/
1212	    q
1213	  }
1214	  /^X\(\/\/\)[^/].*/{
1215	    s//\1/
1216	    q
1217	  }
1218	  /^X\(\/\/\)$/{
1219	    s//\1/
1220	    q
1221	  }
1222	  /^X\(\/\).*/{
1223	    s//\1/
1224	    q
1225	  }
1226	  s/.*/./; q'`
1227  srcdir=$ac_confdir
1228  if test ! -r "$srcdir/$ac_unique_file"; then
1229    srcdir=..
1230  fi
1231else
1232  ac_srcdir_defaulted=no
1233fi
1234if test ! -r "$srcdir/$ac_unique_file"; then
1235  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1236  as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1237fi
1238ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1239ac_abs_confdir=`(
1240	cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1241	pwd)`
1242# When building in place, set srcdir=.
1243if test "$ac_abs_confdir" = "$ac_pwd"; then
1244  srcdir=.
1245fi
1246# Remove unnecessary trailing slashes from srcdir.
1247# Double slashes in file names in object file debugging info
1248# mess up M-x gdb in Emacs.
1249case $srcdir in
1250*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1251esac
1252for ac_var in $ac_precious_vars; do
1253  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1254  eval ac_env_${ac_var}_value=\$${ac_var}
1255  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1256  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1257done
1258
1259#
1260# Report the --help message.
1261#
1262if test "$ac_init_help" = "long"; then
1263  # Omit some internal or obsolete options to make the list less imposing.
1264  # This message is too long to be a string in the A/UX 3.1 sh.
1265  cat <<_ACEOF
1266\`configure' configures this package to adapt to many kinds of systems.
1267
1268Usage: $0 [OPTION]... [VAR=VALUE]...
1269
1270To assign environment variables (e.g., CC, CFLAGS...), specify them as
1271VAR=VALUE.  See below for descriptions of some of the useful variables.
1272
1273Defaults for the options are specified in brackets.
1274
1275Configuration:
1276  -h, --help              display this help and exit
1277      --help=short        display options specific to this package
1278      --help=recursive    display the short help of all the included packages
1279  -V, --version           display version information and exit
1280  -q, --quiet, --silent   do not print \`checking ...' messages
1281      --cache-file=FILE   cache test results in FILE [disabled]
1282  -C, --config-cache      alias for \`--cache-file=config.cache'
1283  -n, --no-create         do not create output files
1284      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1285
1286Installation directories:
1287  --prefix=PREFIX         install architecture-independent files in PREFIX
1288                          [$ac_default_prefix]
1289  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1290                          [PREFIX]
1291
1292By default, \`make install' will install all the files in
1293\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1294an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1295for instance \`--prefix=\$HOME'.
1296
1297For better control, use the options below.
1298
1299Fine tuning of the installation directories:
1300  --bindir=DIR            user executables [EPREFIX/bin]
1301  --sbindir=DIR           system admin executables [EPREFIX/sbin]
1302  --libexecdir=DIR        program executables [EPREFIX/libexec]
1303  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1304  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1305  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1306  --libdir=DIR            object code libraries [EPREFIX/lib]
1307  --includedir=DIR        C header files [PREFIX/include]
1308  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1309  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1310  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1311  --infodir=DIR           info documentation [DATAROOTDIR/info]
1312  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1313  --mandir=DIR            man documentation [DATAROOTDIR/man]
1314  --docdir=DIR            documentation root [DATAROOTDIR/doc/PACKAGE]
1315  --htmldir=DIR           html documentation [DOCDIR]
1316  --dvidir=DIR            dvi documentation [DOCDIR]
1317  --pdfdir=DIR            pdf documentation [DOCDIR]
1318  --psdir=DIR             ps documentation [DOCDIR]
1319_ACEOF
1320
1321  cat <<\_ACEOF
1322
1323System types:
1324  --build=BUILD     configure for building on BUILD [guessed]
1325  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1326_ACEOF
1327fi
1328
1329if test -n "$ac_init_help"; then
1330
1331  cat <<\_ACEOF
1332
1333Optional Features:
1334  --disable-option-checking  ignore unrecognized --enable/--with options
1335  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1336  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1337  --enable-relocatable    install a package that can be moved in the filesystem
1338  --enable-shared[=PKGS]  build shared libraries [default=yes]
1339  --enable-static[=PKGS]  build static libraries [default=yes]
1340  --enable-fast-install[=PKGS]
1341                          optimize for fast installation [default=yes]
1342  --disable-libtool-lock  avoid locking (might break parallel builds)
1343
1344Optional Packages:
1345  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1346  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1347  --with-pic              try to use only PIC/non-PIC objects [default=use
1348                          both]
1349  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1350  --with-sysroot=DIR Search for dependent libraries within DIR
1351                        (or the compiler's sysroot if not specified).
1352
1353Some influential environment variables:
1354  CC          C compiler command
1355  CFLAGS      C compiler flags
1356  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1357              nonstandard directory <lib dir>
1358  LIBS        libraries to pass to the linker, e.g. -l<library>
1359  CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1360              you have headers in a nonstandard directory <include dir>
1361  CPP         C preprocessor
1362
1363Use these variables to override the choices made by `configure' or to help
1364it to find libraries and programs with nonstandard names/locations.
1365
1366Report bugs to the package provider.
1367_ACEOF
1368ac_status=$?
1369fi
1370
1371if test "$ac_init_help" = "recursive"; then
1372  # If there are subdirs, report their specific --help.
1373  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1374    test -d "$ac_dir" ||
1375      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1376      continue
1377    ac_builddir=.
1378
1379case "$ac_dir" in
1380.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1381*)
1382  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1383  # A ".." for each directory in $ac_dir_suffix.
1384  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1385  case $ac_top_builddir_sub in
1386  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1387  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1388  esac ;;
1389esac
1390ac_abs_top_builddir=$ac_pwd
1391ac_abs_builddir=$ac_pwd$ac_dir_suffix
1392# for backward compatibility:
1393ac_top_builddir=$ac_top_build_prefix
1394
1395case $srcdir in
1396  .)  # We are building in place.
1397    ac_srcdir=.
1398    ac_top_srcdir=$ac_top_builddir_sub
1399    ac_abs_top_srcdir=$ac_pwd ;;
1400  [\\/]* | ?:[\\/]* )  # Absolute name.
1401    ac_srcdir=$srcdir$ac_dir_suffix;
1402    ac_top_srcdir=$srcdir
1403    ac_abs_top_srcdir=$srcdir ;;
1404  *) # Relative name.
1405    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1406    ac_top_srcdir=$ac_top_build_prefix$srcdir
1407    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1408esac
1409ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1410
1411    cd "$ac_dir" || { ac_status=$?; continue; }
1412    # Check for guested configure.
1413    if test -f "$ac_srcdir/configure.gnu"; then
1414      echo &&
1415      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1416    elif test -f "$ac_srcdir/configure"; then
1417      echo &&
1418      $SHELL "$ac_srcdir/configure" --help=recursive
1419    else
1420      $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1421    fi || ac_status=$?
1422    cd "$ac_pwd" || { ac_status=$?; break; }
1423  done
1424fi
1425
1426test -n "$ac_init_help" && exit $ac_status
1427if $ac_init_version; then
1428  cat <<\_ACEOF
1429configure
1430generated by GNU Autoconf 2.68
1431
1432Copyright (C) 2010 Free Software Foundation, Inc.
1433This configure script is free software; the Free Software Foundation
1434gives unlimited permission to copy, distribute and modify it.
1435_ACEOF
1436  exit
1437fi
1438
1439## ------------------------ ##
1440## Autoconf initialization. ##
1441## ------------------------ ##
1442
1443# ac_fn_c_try_compile LINENO
1444# --------------------------
1445# Try to compile conftest.$ac_ext, and return whether this succeeded.
1446ac_fn_c_try_compile ()
1447{
1448  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1449  rm -f conftest.$ac_objext
1450  if { { ac_try="$ac_compile"
1451case "(($ac_try" in
1452  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1453  *) ac_try_echo=$ac_try;;
1454esac
1455eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1456$as_echo "$ac_try_echo"; } >&5
1457  (eval "$ac_compile") 2>conftest.err
1458  ac_status=$?
1459  if test -s conftest.err; then
1460    grep -v '^ *+' conftest.err >conftest.er1
1461    cat conftest.er1 >&5
1462    mv -f conftest.er1 conftest.err
1463  fi
1464  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1465  test $ac_status = 0; } && {
1466	 test -z "$ac_c_werror_flag" ||
1467	 test ! -s conftest.err
1468       } && test -s conftest.$ac_objext; then :
1469  ac_retval=0
1470else
1471  $as_echo "$as_me: failed program was:" >&5
1472sed 's/^/| /' conftest.$ac_ext >&5
1473
1474	ac_retval=1
1475fi
1476  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1477  as_fn_set_status $ac_retval
1478
1479} # ac_fn_c_try_compile
1480
1481# ac_fn_c_try_cpp LINENO
1482# ----------------------
1483# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1484ac_fn_c_try_cpp ()
1485{
1486  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1487  if { { ac_try="$ac_cpp conftest.$ac_ext"
1488case "(($ac_try" in
1489  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1490  *) ac_try_echo=$ac_try;;
1491esac
1492eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1493$as_echo "$ac_try_echo"; } >&5
1494  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1495  ac_status=$?
1496  if test -s conftest.err; then
1497    grep -v '^ *+' conftest.err >conftest.er1
1498    cat conftest.er1 >&5
1499    mv -f conftest.er1 conftest.err
1500  fi
1501  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1502  test $ac_status = 0; } > conftest.i && {
1503	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1504	 test ! -s conftest.err
1505       }; then :
1506  ac_retval=0
1507else
1508  $as_echo "$as_me: failed program was:" >&5
1509sed 's/^/| /' conftest.$ac_ext >&5
1510
1511    ac_retval=1
1512fi
1513  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1514  as_fn_set_status $ac_retval
1515
1516} # ac_fn_c_try_cpp
1517
1518# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1519# -------------------------------------------------------
1520# Tests whether HEADER exists, giving a warning if it cannot be compiled using
1521# the include files in INCLUDES and setting the cache variable VAR
1522# accordingly.
1523ac_fn_c_check_header_mongrel ()
1524{
1525  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1526  if eval \${$3+:} false; then :
1527  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1528$as_echo_n "checking for $2... " >&6; }
1529if eval \${$3+:} false; then :
1530  $as_echo_n "(cached) " >&6
1531fi
1532eval ac_res=\$$3
1533	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1534$as_echo "$ac_res" >&6; }
1535else
1536  # Is the header compilable?
1537{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1538$as_echo_n "checking $2 usability... " >&6; }
1539cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1540/* end confdefs.h.  */
1541$4
1542#include <$2>
1543_ACEOF
1544if ac_fn_c_try_compile "$LINENO"; then :
1545  ac_header_compiler=yes
1546else
1547  ac_header_compiler=no
1548fi
1549rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1550{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1551$as_echo "$ac_header_compiler" >&6; }
1552
1553# Is the header present?
1554{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1555$as_echo_n "checking $2 presence... " >&6; }
1556cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1557/* end confdefs.h.  */
1558#include <$2>
1559_ACEOF
1560if ac_fn_c_try_cpp "$LINENO"; then :
1561  ac_header_preproc=yes
1562else
1563  ac_header_preproc=no
1564fi
1565rm -f conftest.err conftest.i conftest.$ac_ext
1566{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1567$as_echo "$ac_header_preproc" >&6; }
1568
1569# So?  What about this header?
1570case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1571  yes:no: )
1572    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1573$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1574    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1575$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1576    ;;
1577  no:yes:* )
1578    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1579$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1580    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
1581$as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
1582    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1583$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1584    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
1585$as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
1586    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1587$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1588    ;;
1589esac
1590  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1591$as_echo_n "checking for $2... " >&6; }
1592if eval \${$3+:} false; then :
1593  $as_echo_n "(cached) " >&6
1594else
1595  eval "$3=\$ac_header_compiler"
1596fi
1597eval ac_res=\$$3
1598	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1599$as_echo "$ac_res" >&6; }
1600fi
1601  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1602
1603} # ac_fn_c_check_header_mongrel
1604
1605# ac_fn_c_try_run LINENO
1606# ----------------------
1607# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1608# that executables *can* be run.
1609ac_fn_c_try_run ()
1610{
1611  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1612  if { { ac_try="$ac_link"
1613case "(($ac_try" in
1614  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1615  *) ac_try_echo=$ac_try;;
1616esac
1617eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1618$as_echo "$ac_try_echo"; } >&5
1619  (eval "$ac_link") 2>&5
1620  ac_status=$?
1621  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1622  test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1623  { { case "(($ac_try" in
1624  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1625  *) ac_try_echo=$ac_try;;
1626esac
1627eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1628$as_echo "$ac_try_echo"; } >&5
1629  (eval "$ac_try") 2>&5
1630  ac_status=$?
1631  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1632  test $ac_status = 0; }; }; then :
1633  ac_retval=0
1634else
1635  $as_echo "$as_me: program exited with status $ac_status" >&5
1636       $as_echo "$as_me: failed program was:" >&5
1637sed 's/^/| /' conftest.$ac_ext >&5
1638
1639       ac_retval=$ac_status
1640fi
1641  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1642  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1643  as_fn_set_status $ac_retval
1644
1645} # ac_fn_c_try_run
1646
1647# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1648# -------------------------------------------------------
1649# Tests whether HEADER exists and can be compiled using the include files in
1650# INCLUDES, setting the cache variable VAR accordingly.
1651ac_fn_c_check_header_compile ()
1652{
1653  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1654  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1655$as_echo_n "checking for $2... " >&6; }
1656if eval \${$3+:} false; then :
1657  $as_echo_n "(cached) " >&6
1658else
1659  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1660/* end confdefs.h.  */
1661$4
1662#include <$2>
1663_ACEOF
1664if ac_fn_c_try_compile "$LINENO"; then :
1665  eval "$3=yes"
1666else
1667  eval "$3=no"
1668fi
1669rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1670fi
1671eval ac_res=\$$3
1672	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1673$as_echo "$ac_res" >&6; }
1674  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1675
1676} # ac_fn_c_check_header_compile
1677
1678# ac_fn_c_try_link LINENO
1679# -----------------------
1680# Try to link conftest.$ac_ext, and return whether this succeeded.
1681ac_fn_c_try_link ()
1682{
1683  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1684  rm -f conftest.$ac_objext conftest$ac_exeext
1685  if { { ac_try="$ac_link"
1686case "(($ac_try" in
1687  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1688  *) ac_try_echo=$ac_try;;
1689esac
1690eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1691$as_echo "$ac_try_echo"; } >&5
1692  (eval "$ac_link") 2>conftest.err
1693  ac_status=$?
1694  if test -s conftest.err; then
1695    grep -v '^ *+' conftest.err >conftest.er1
1696    cat conftest.er1 >&5
1697    mv -f conftest.er1 conftest.err
1698  fi
1699  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1700  test $ac_status = 0; } && {
1701	 test -z "$ac_c_werror_flag" ||
1702	 test ! -s conftest.err
1703       } && test -s conftest$ac_exeext && {
1704	 test "$cross_compiling" = yes ||
1705	 $as_test_x conftest$ac_exeext
1706       }; then :
1707  ac_retval=0
1708else
1709  $as_echo "$as_me: failed program was:" >&5
1710sed 's/^/| /' conftest.$ac_ext >&5
1711
1712	ac_retval=1
1713fi
1714  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1715  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1716  # interfere with the next link command; also delete a directory that is
1717  # left behind by Apple's compiler.  We do this before executing the actions.
1718  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1719  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1720  as_fn_set_status $ac_retval
1721
1722} # ac_fn_c_try_link
1723
1724# ac_fn_c_check_func LINENO FUNC VAR
1725# ----------------------------------
1726# Tests whether FUNC exists, setting the cache variable VAR accordingly
1727ac_fn_c_check_func ()
1728{
1729  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1730  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1731$as_echo_n "checking for $2... " >&6; }
1732if eval \${$3+:} false; then :
1733  $as_echo_n "(cached) " >&6
1734else
1735  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1736/* end confdefs.h.  */
1737/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1738   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
1739#define $2 innocuous_$2
1740
1741/* System header to define __stub macros and hopefully few prototypes,
1742    which can conflict with char $2 (); below.
1743    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1744    <limits.h> exists even on freestanding compilers.  */
1745
1746#ifdef __STDC__
1747# include <limits.h>
1748#else
1749# include <assert.h>
1750#endif
1751
1752#undef $2
1753
1754/* Override any GCC internal prototype to avoid an error.
1755   Use char because int might match the return type of a GCC
1756   builtin and then its argument prototype would still apply.  */
1757#ifdef __cplusplus
1758extern "C"
1759#endif
1760char $2 ();
1761/* The GNU C library defines this for functions which it implements
1762    to always fail with ENOSYS.  Some functions are actually named
1763    something starting with __ and the normal name is an alias.  */
1764#if defined __stub_$2 || defined __stub___$2
1765choke me
1766#endif
1767
1768int
1769main ()
1770{
1771return $2 ();
1772  ;
1773  return 0;
1774}
1775_ACEOF
1776if ac_fn_c_try_link "$LINENO"; then :
1777  eval "$3=yes"
1778else
1779  eval "$3=no"
1780fi
1781rm -f core conftest.err conftest.$ac_objext \
1782    conftest$ac_exeext conftest.$ac_ext
1783fi
1784eval ac_res=\$$3
1785	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1786$as_echo "$ac_res" >&6; }
1787  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1788
1789} # ac_fn_c_check_func
1790cat >config.log <<_ACEOF
1791This file contains any messages produced by compilers while
1792running configure, to aid debugging if configure makes a mistake.
1793
1794It was created by $as_me, which was
1795generated by GNU Autoconf 2.68.  Invocation command line was
1796
1797  $ $0 $@
1798
1799_ACEOF
1800exec 5>>config.log
1801{
1802cat <<_ASUNAME
1803## --------- ##
1804## Platform. ##
1805## --------- ##
1806
1807hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1808uname -m = `(uname -m) 2>/dev/null || echo unknown`
1809uname -r = `(uname -r) 2>/dev/null || echo unknown`
1810uname -s = `(uname -s) 2>/dev/null || echo unknown`
1811uname -v = `(uname -v) 2>/dev/null || echo unknown`
1812
1813/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1814/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1815
1816/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1817/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1818/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1819/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1820/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1821/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1822/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1823
1824_ASUNAME
1825
1826as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1827for as_dir in $PATH
1828do
1829  IFS=$as_save_IFS
1830  test -z "$as_dir" && as_dir=.
1831    $as_echo "PATH: $as_dir"
1832  done
1833IFS=$as_save_IFS
1834
1835} >&5
1836
1837cat >&5 <<_ACEOF
1838
1839
1840## ----------- ##
1841## Core tests. ##
1842## ----------- ##
1843
1844_ACEOF
1845
1846
1847# Keep a trace of the command line.
1848# Strip out --no-create and --no-recursion so they do not pile up.
1849# Strip out --silent because we don't want to record it for future runs.
1850# Also quote any args containing shell meta-characters.
1851# Make two passes to allow for proper duplicate-argument suppression.
1852ac_configure_args=
1853ac_configure_args0=
1854ac_configure_args1=
1855ac_must_keep_next=false
1856for ac_pass in 1 2
1857do
1858  for ac_arg
1859  do
1860    case $ac_arg in
1861    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1862    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1863    | -silent | --silent | --silen | --sile | --sil)
1864      continue ;;
1865    *\'*)
1866      ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1867    esac
1868    case $ac_pass in
1869    1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1870    2)
1871      as_fn_append ac_configure_args1 " '$ac_arg'"
1872      if test $ac_must_keep_next = true; then
1873	ac_must_keep_next=false # Got value, back to normal.
1874      else
1875	case $ac_arg in
1876	  *=* | --config-cache | -C | -disable-* | --disable-* \
1877	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1878	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1879	  | -with-* | --with-* | -without-* | --without-* | --x)
1880	    case "$ac_configure_args0 " in
1881	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1882	    esac
1883	    ;;
1884	  -* ) ac_must_keep_next=true ;;
1885	esac
1886      fi
1887      as_fn_append ac_configure_args " '$ac_arg'"
1888      ;;
1889    esac
1890  done
1891done
1892{ ac_configure_args0=; unset ac_configure_args0;}
1893{ ac_configure_args1=; unset ac_configure_args1;}
1894
1895# When interrupted or exit'd, cleanup temporary files, and complete
1896# config.log.  We remove comments because anyway the quotes in there
1897# would cause problems or look ugly.
1898# WARNING: Use '\'' to represent an apostrophe within the trap.
1899# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1900trap 'exit_status=$?
1901  # Save into config.log some information that might help in debugging.
1902  {
1903    echo
1904
1905    $as_echo "## ---------------- ##
1906## Cache variables. ##
1907## ---------------- ##"
1908    echo
1909    # The following way of writing the cache mishandles newlines in values,
1910(
1911  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1912    eval ac_val=\$$ac_var
1913    case $ac_val in #(
1914    *${as_nl}*)
1915      case $ac_var in #(
1916      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
1917$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1918      esac
1919      case $ac_var in #(
1920      _ | IFS | as_nl) ;; #(
1921      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1922      *) { eval $ac_var=; unset $ac_var;} ;;
1923      esac ;;
1924    esac
1925  done
1926  (set) 2>&1 |
1927    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1928    *${as_nl}ac_space=\ *)
1929      sed -n \
1930	"s/'\''/'\''\\\\'\'''\''/g;
1931	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1932      ;; #(
1933    *)
1934      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1935      ;;
1936    esac |
1937    sort
1938)
1939    echo
1940
1941    $as_echo "## ----------------- ##
1942## Output variables. ##
1943## ----------------- ##"
1944    echo
1945    for ac_var in $ac_subst_vars
1946    do
1947      eval ac_val=\$$ac_var
1948      case $ac_val in
1949      *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1950      esac
1951      $as_echo "$ac_var='\''$ac_val'\''"
1952    done | sort
1953    echo
1954
1955    if test -n "$ac_subst_files"; then
1956      $as_echo "## ------------------- ##
1957## File substitutions. ##
1958## ------------------- ##"
1959      echo
1960      for ac_var in $ac_subst_files
1961      do
1962	eval ac_val=\$$ac_var
1963	case $ac_val in
1964	*\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1965	esac
1966	$as_echo "$ac_var='\''$ac_val'\''"
1967      done | sort
1968      echo
1969    fi
1970
1971    if test -s confdefs.h; then
1972      $as_echo "## ----------- ##
1973## confdefs.h. ##
1974## ----------- ##"
1975      echo
1976      cat confdefs.h
1977      echo
1978    fi
1979    test "$ac_signal" != 0 &&
1980      $as_echo "$as_me: caught signal $ac_signal"
1981    $as_echo "$as_me: exit $exit_status"
1982  } >&5
1983  rm -f core *.core core.conftest.* &&
1984    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1985    exit $exit_status
1986' 0
1987for ac_signal in 1 2 13 15; do
1988  trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
1989done
1990ac_signal=0
1991
1992# confdefs.h avoids OS command line length limits that DEFS can exceed.
1993rm -f -r conftest* confdefs.h
1994
1995$as_echo "/* confdefs.h */" > confdefs.h
1996
1997# Predefined preprocessor variables.
1998
1999cat >>confdefs.h <<_ACEOF
2000#define PACKAGE_NAME "$PACKAGE_NAME"
2001_ACEOF
2002
2003cat >>confdefs.h <<_ACEOF
2004#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2005_ACEOF
2006
2007cat >>confdefs.h <<_ACEOF
2008#define PACKAGE_VERSION "$PACKAGE_VERSION"
2009_ACEOF
2010
2011cat >>confdefs.h <<_ACEOF
2012#define PACKAGE_STRING "$PACKAGE_STRING"
2013_ACEOF
2014
2015cat >>confdefs.h <<_ACEOF
2016#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2017_ACEOF
2018
2019cat >>confdefs.h <<_ACEOF
2020#define PACKAGE_URL "$PACKAGE_URL"
2021_ACEOF
2022
2023
2024# Let the site file select an alternate cache file if it wants to.
2025# Prefer an explicitly selected file to automatically selected ones.
2026ac_site_file1=NONE
2027ac_site_file2=NONE
2028if test -n "$CONFIG_SITE"; then
2029  # We do not want a PATH search for config.site.
2030  case $CONFIG_SITE in #((
2031    -*)  ac_site_file1=./$CONFIG_SITE;;
2032    */*) ac_site_file1=$CONFIG_SITE;;
2033    *)   ac_site_file1=./$CONFIG_SITE;;
2034  esac
2035elif test "x$prefix" != xNONE; then
2036  ac_site_file1=$prefix/share/config.site
2037  ac_site_file2=$prefix/etc/config.site
2038else
2039  ac_site_file1=$ac_default_prefix/share/config.site
2040  ac_site_file2=$ac_default_prefix/etc/config.site
2041fi
2042for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2043do
2044  test "x$ac_site_file" = xNONE && continue
2045  if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2046    { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2047$as_echo "$as_me: loading site script $ac_site_file" >&6;}
2048    sed 's/^/| /' "$ac_site_file" >&5
2049    . "$ac_site_file" \
2050      || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2051$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2052as_fn_error $? "failed to load site script $ac_site_file
2053See \`config.log' for more details" "$LINENO" 5; }
2054  fi
2055done
2056
2057if test -r "$cache_file"; then
2058  # Some versions of bash will fail to source /dev/null (special files
2059  # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2060  if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2061    { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2062$as_echo "$as_me: loading cache $cache_file" >&6;}
2063    case $cache_file in
2064      [\\/]* | ?:[\\/]* ) . "$cache_file";;
2065      *)                      . "./$cache_file";;
2066    esac
2067  fi
2068else
2069  { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2070$as_echo "$as_me: creating cache $cache_file" >&6;}
2071  >$cache_file
2072fi
2073
2074# Check that the precious variables saved in the cache have kept the same
2075# value.
2076ac_cache_corrupted=false
2077for ac_var in $ac_precious_vars; do
2078  eval ac_old_set=\$ac_cv_env_${ac_var}_set
2079  eval ac_new_set=\$ac_env_${ac_var}_set
2080  eval ac_old_val=\$ac_cv_env_${ac_var}_value
2081  eval ac_new_val=\$ac_env_${ac_var}_value
2082  case $ac_old_set,$ac_new_set in
2083    set,)
2084      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2085$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2086      ac_cache_corrupted=: ;;
2087    ,set)
2088      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2089$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2090      ac_cache_corrupted=: ;;
2091    ,);;
2092    *)
2093      if test "x$ac_old_val" != "x$ac_new_val"; then
2094	# differences in whitespace do not lead to failure.
2095	ac_old_val_w=`echo x $ac_old_val`
2096	ac_new_val_w=`echo x $ac_new_val`
2097	if test "$ac_old_val_w" != "$ac_new_val_w"; then
2098	  { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2099$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2100	  ac_cache_corrupted=:
2101	else
2102	  { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2103$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2104	  eval $ac_var=\$ac_old_val
2105	fi
2106	{ $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2107$as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2108	{ $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2109$as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2110      fi;;
2111  esac
2112  # Pass precious variables to config.status.
2113  if test "$ac_new_set" = set; then
2114    case $ac_new_val in
2115    *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2116    *) ac_arg=$ac_var=$ac_new_val ;;
2117    esac
2118    case " $ac_configure_args " in
2119      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2120      *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2121    esac
2122  fi
2123done
2124if $ac_cache_corrupted; then
2125  { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2126$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2127  { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2128$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2129  as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2130fi
2131## -------------------- ##
2132## Main body of script. ##
2133## -------------------- ##
2134
2135ac_ext=c
2136ac_cpp='$CPP $CPPFLAGS'
2137ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2138ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2139ac_compiler_gnu=$ac_cv_c_compiler_gnu
2140
2141
2142ac_aux_dir=
2143for ac_dir in build-aux "$srcdir"/build-aux; do
2144  if test -f "$ac_dir/install-sh"; then
2145    ac_aux_dir=$ac_dir
2146    ac_install_sh="$ac_aux_dir/install-sh -c"
2147    break
2148  elif test -f "$ac_dir/install.sh"; then
2149    ac_aux_dir=$ac_dir
2150    ac_install_sh="$ac_aux_dir/install.sh -c"
2151    break
2152  elif test -f "$ac_dir/shtool"; then
2153    ac_aux_dir=$ac_dir
2154    ac_install_sh="$ac_aux_dir/shtool install -c"
2155    break
2156  fi
2157done
2158if test -z "$ac_aux_dir"; then
2159  as_fn_error $? "cannot find install-sh, install.sh, or shtool in build-aux \"$srcdir\"/build-aux" "$LINENO" 5
2160fi
2161
2162# These three variables are undocumented and unsupported,
2163# and are intended to be withdrawn in a future Autoconf release.
2164# They can cause serious problems if a builder's source tree is in a directory
2165# whose full name contains unusual characters.
2166ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2167ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2168ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2169
2170
2171ac_config_headers="$ac_config_headers config.h"
2172
2173{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2174$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2175set x ${MAKE-make}
2176ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2177if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2178  $as_echo_n "(cached) " >&6
2179else
2180  cat >conftest.make <<\_ACEOF
2181SHELL = /bin/sh
2182all:
2183	@echo '@@@%%%=$(MAKE)=@@@%%%'
2184_ACEOF
2185# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2186case `${MAKE-make} -f conftest.make 2>/dev/null` in
2187  *@@@%%%=?*=@@@%%%*)
2188    eval ac_cv_prog_make_${ac_make}_set=yes;;
2189  *)
2190    eval ac_cv_prog_make_${ac_make}_set=no;;
2191esac
2192rm -f conftest.make
2193fi
2194if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2195  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2196$as_echo "yes" >&6; }
2197  SET_MAKE=
2198else
2199  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2200$as_echo "no" >&6; }
2201  SET_MAKE="MAKE=${MAKE-make}"
2202fi
2203
2204
2205
2206
2207
2208ac_ext=c
2209ac_cpp='$CPP $CPPFLAGS'
2210ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2211ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2212ac_compiler_gnu=$ac_cv_c_compiler_gnu
2213if test -n "$ac_tool_prefix"; then
2214  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2215set dummy ${ac_tool_prefix}gcc; ac_word=$2
2216{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2217$as_echo_n "checking for $ac_word... " >&6; }
2218if ${ac_cv_prog_CC+:} false; then :
2219  $as_echo_n "(cached) " >&6
2220else
2221  if test -n "$CC"; then
2222  ac_cv_prog_CC="$CC" # Let the user override the test.
2223else
2224as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2225for as_dir in $PATH
2226do
2227  IFS=$as_save_IFS
2228  test -z "$as_dir" && as_dir=.
2229    for ac_exec_ext in '' $ac_executable_extensions; do
2230  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2231    ac_cv_prog_CC="${ac_tool_prefix}gcc"
2232    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2233    break 2
2234  fi
2235done
2236  done
2237IFS=$as_save_IFS
2238
2239fi
2240fi
2241CC=$ac_cv_prog_CC
2242if test -n "$CC"; then
2243  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2244$as_echo "$CC" >&6; }
2245else
2246  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2247$as_echo "no" >&6; }
2248fi
2249
2250
2251fi
2252if test -z "$ac_cv_prog_CC"; then
2253  ac_ct_CC=$CC
2254  # Extract the first word of "gcc", so it can be a program name with args.
2255set dummy gcc; ac_word=$2
2256{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2257$as_echo_n "checking for $ac_word... " >&6; }
2258if ${ac_cv_prog_ac_ct_CC+:} false; then :
2259  $as_echo_n "(cached) " >&6
2260else
2261  if test -n "$ac_ct_CC"; then
2262  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2263else
2264as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2265for as_dir in $PATH
2266do
2267  IFS=$as_save_IFS
2268  test -z "$as_dir" && as_dir=.
2269    for ac_exec_ext in '' $ac_executable_extensions; do
2270  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2271    ac_cv_prog_ac_ct_CC="gcc"
2272    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2273    break 2
2274  fi
2275done
2276  done
2277IFS=$as_save_IFS
2278
2279fi
2280fi
2281ac_ct_CC=$ac_cv_prog_ac_ct_CC
2282if test -n "$ac_ct_CC"; then
2283  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2284$as_echo "$ac_ct_CC" >&6; }
2285else
2286  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2287$as_echo "no" >&6; }
2288fi
2289
2290  if test "x$ac_ct_CC" = x; then
2291    CC=""
2292  else
2293    case $cross_compiling:$ac_tool_warned in
2294yes:)
2295{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2296$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2297ac_tool_warned=yes ;;
2298esac
2299    CC=$ac_ct_CC
2300  fi
2301else
2302  CC="$ac_cv_prog_CC"
2303fi
2304
2305if test -z "$CC"; then
2306          if test -n "$ac_tool_prefix"; then
2307    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2308set dummy ${ac_tool_prefix}cc; ac_word=$2
2309{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2310$as_echo_n "checking for $ac_word... " >&6; }
2311if ${ac_cv_prog_CC+:} false; then :
2312  $as_echo_n "(cached) " >&6
2313else
2314  if test -n "$CC"; then
2315  ac_cv_prog_CC="$CC" # Let the user override the test.
2316else
2317as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2318for as_dir in $PATH
2319do
2320  IFS=$as_save_IFS
2321  test -z "$as_dir" && as_dir=.
2322    for ac_exec_ext in '' $ac_executable_extensions; do
2323  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2324    ac_cv_prog_CC="${ac_tool_prefix}cc"
2325    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2326    break 2
2327  fi
2328done
2329  done
2330IFS=$as_save_IFS
2331
2332fi
2333fi
2334CC=$ac_cv_prog_CC
2335if test -n "$CC"; then
2336  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2337$as_echo "$CC" >&6; }
2338else
2339  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2340$as_echo "no" >&6; }
2341fi
2342
2343
2344  fi
2345fi
2346if test -z "$CC"; then
2347  # Extract the first word of "cc", so it can be a program name with args.
2348set dummy cc; ac_word=$2
2349{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2350$as_echo_n "checking for $ac_word... " >&6; }
2351if ${ac_cv_prog_CC+:} false; then :
2352  $as_echo_n "(cached) " >&6
2353else
2354  if test -n "$CC"; then
2355  ac_cv_prog_CC="$CC" # Let the user override the test.
2356else
2357  ac_prog_rejected=no
2358as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2359for as_dir in $PATH
2360do
2361  IFS=$as_save_IFS
2362  test -z "$as_dir" && as_dir=.
2363    for ac_exec_ext in '' $ac_executable_extensions; do
2364  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2365    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2366       ac_prog_rejected=yes
2367       continue
2368     fi
2369    ac_cv_prog_CC="cc"
2370    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2371    break 2
2372  fi
2373done
2374  done
2375IFS=$as_save_IFS
2376
2377if test $ac_prog_rejected = yes; then
2378  # We found a bogon in the path, so make sure we never use it.
2379  set dummy $ac_cv_prog_CC
2380  shift
2381  if test $# != 0; then
2382    # We chose a different compiler from the bogus one.
2383    # However, it has the same basename, so the bogon will be chosen
2384    # first if we set CC to just the basename; use the full file name.
2385    shift
2386    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2387  fi
2388fi
2389fi
2390fi
2391CC=$ac_cv_prog_CC
2392if test -n "$CC"; then
2393  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2394$as_echo "$CC" >&6; }
2395else
2396  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2397$as_echo "no" >&6; }
2398fi
2399
2400
2401fi
2402if test -z "$CC"; then
2403  if test -n "$ac_tool_prefix"; then
2404  for ac_prog in cl.exe
2405  do
2406    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2407set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2408{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2409$as_echo_n "checking for $ac_word... " >&6; }
2410if ${ac_cv_prog_CC+:} false; then :
2411  $as_echo_n "(cached) " >&6
2412else
2413  if test -n "$CC"; then
2414  ac_cv_prog_CC="$CC" # Let the user override the test.
2415else
2416as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2417for as_dir in $PATH
2418do
2419  IFS=$as_save_IFS
2420  test -z "$as_dir" && as_dir=.
2421    for ac_exec_ext in '' $ac_executable_extensions; do
2422  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2423    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2424    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2425    break 2
2426  fi
2427done
2428  done
2429IFS=$as_save_IFS
2430
2431fi
2432fi
2433CC=$ac_cv_prog_CC
2434if test -n "$CC"; then
2435  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2436$as_echo "$CC" >&6; }
2437else
2438  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2439$as_echo "no" >&6; }
2440fi
2441
2442
2443    test -n "$CC" && break
2444  done
2445fi
2446if test -z "$CC"; then
2447  ac_ct_CC=$CC
2448  for ac_prog in cl.exe
2449do
2450  # Extract the first word of "$ac_prog", so it can be a program name with args.
2451set dummy $ac_prog; ac_word=$2
2452{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2453$as_echo_n "checking for $ac_word... " >&6; }
2454if ${ac_cv_prog_ac_ct_CC+:} false; then :
2455  $as_echo_n "(cached) " >&6
2456else
2457  if test -n "$ac_ct_CC"; then
2458  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2459else
2460as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2461for as_dir in $PATH
2462do
2463  IFS=$as_save_IFS
2464  test -z "$as_dir" && as_dir=.
2465    for ac_exec_ext in '' $ac_executable_extensions; do
2466  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2467    ac_cv_prog_ac_ct_CC="$ac_prog"
2468    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2469    break 2
2470  fi
2471done
2472  done
2473IFS=$as_save_IFS
2474
2475fi
2476fi
2477ac_ct_CC=$ac_cv_prog_ac_ct_CC
2478if test -n "$ac_ct_CC"; then
2479  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2480$as_echo "$ac_ct_CC" >&6; }
2481else
2482  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2483$as_echo "no" >&6; }
2484fi
2485
2486
2487  test -n "$ac_ct_CC" && break
2488done
2489
2490  if test "x$ac_ct_CC" = x; then
2491    CC=""
2492  else
2493    case $cross_compiling:$ac_tool_warned in
2494yes:)
2495{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2496$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2497ac_tool_warned=yes ;;
2498esac
2499    CC=$ac_ct_CC
2500  fi
2501fi
2502
2503fi
2504
2505
2506test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2507$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2508as_fn_error $? "no acceptable C compiler found in \$PATH
2509See \`config.log' for more details" "$LINENO" 5; }
2510
2511# Provide some information about the compiler.
2512$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
2513set X $ac_compile
2514ac_compiler=$2
2515for ac_option in --version -v -V -qversion; do
2516  { { ac_try="$ac_compiler $ac_option >&5"
2517case "(($ac_try" in
2518  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2519  *) ac_try_echo=$ac_try;;
2520esac
2521eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2522$as_echo "$ac_try_echo"; } >&5
2523  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
2524  ac_status=$?
2525  if test -s conftest.err; then
2526    sed '10a\
2527... rest of stderr output deleted ...
2528         10q' conftest.err >conftest.er1
2529    cat conftest.er1 >&5
2530  fi
2531  rm -f conftest.er1 conftest.err
2532  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2533  test $ac_status = 0; }
2534done
2535
2536cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2537/* end confdefs.h.  */
2538
2539int
2540main ()
2541{
2542
2543  ;
2544  return 0;
2545}
2546_ACEOF
2547ac_clean_files_save=$ac_clean_files
2548ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
2549# Try to create an executable without -o first, disregard a.out.
2550# It will help us diagnose broken compilers, and finding out an intuition
2551# of exeext.
2552{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
2553$as_echo_n "checking whether the C compiler works... " >&6; }
2554ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2555
2556# The possible output files:
2557ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2558
2559ac_rmfiles=
2560for ac_file in $ac_files
2561do
2562  case $ac_file in
2563    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2564    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2565  esac
2566done
2567rm -f $ac_rmfiles
2568
2569if { { ac_try="$ac_link_default"
2570case "(($ac_try" in
2571  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2572  *) ac_try_echo=$ac_try;;
2573esac
2574eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2575$as_echo "$ac_try_echo"; } >&5
2576  (eval "$ac_link_default") 2>&5
2577  ac_status=$?
2578  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2579  test $ac_status = 0; }; then :
2580  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2581# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2582# in a Makefile.  We should not override ac_cv_exeext if it was cached,
2583# so that the user can short-circuit this test for compilers unknown to
2584# Autoconf.
2585for ac_file in $ac_files ''
2586do
2587  test -f "$ac_file" || continue
2588  case $ac_file in
2589    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
2590	;;
2591    [ab].out )
2592	# We found the default executable, but exeext='' is most
2593	# certainly right.
2594	break;;
2595    *.* )
2596	if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2597	then :; else
2598	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2599	fi
2600	# We set ac_cv_exeext here because the later test for it is not
2601	# safe: cross compilers may not add the suffix if given an `-o'
2602	# argument, so we may need to know it at that point already.
2603	# Even if this section looks crufty: it has the advantage of
2604	# actually working.
2605	break;;
2606    * )
2607	break;;
2608  esac
2609done
2610test "$ac_cv_exeext" = no && ac_cv_exeext=
2611
2612else
2613  ac_file=''
2614fi
2615if test -z "$ac_file"; then :
2616  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2617$as_echo "no" >&6; }
2618$as_echo "$as_me: failed program was:" >&5
2619sed 's/^/| /' conftest.$ac_ext >&5
2620
2621{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2622$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2623as_fn_error 77 "C compiler cannot create executables
2624See \`config.log' for more details" "$LINENO" 5; }
2625else
2626  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2627$as_echo "yes" >&6; }
2628fi
2629{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
2630$as_echo_n "checking for C compiler default output file name... " >&6; }
2631{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
2632$as_echo "$ac_file" >&6; }
2633ac_exeext=$ac_cv_exeext
2634
2635rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
2636ac_clean_files=$ac_clean_files_save
2637{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
2638$as_echo_n "checking for suffix of executables... " >&6; }
2639if { { ac_try="$ac_link"
2640case "(($ac_try" in
2641  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2642  *) ac_try_echo=$ac_try;;
2643esac
2644eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2645$as_echo "$ac_try_echo"; } >&5
2646  (eval "$ac_link") 2>&5
2647  ac_status=$?
2648  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2649  test $ac_status = 0; }; then :
2650  # If both `conftest.exe' and `conftest' are `present' (well, observable)
2651# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2652# work properly (i.e., refer to `conftest.exe'), while it won't with
2653# `rm'.
2654for ac_file in conftest.exe conftest conftest.*; do
2655  test -f "$ac_file" || continue
2656  case $ac_file in
2657    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2658    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2659	  break;;
2660    * ) break;;
2661  esac
2662done
2663else
2664  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2665$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2666as_fn_error $? "cannot compute suffix of executables: cannot compile and link
2667See \`config.log' for more details" "$LINENO" 5; }
2668fi
2669rm -f conftest conftest$ac_cv_exeext
2670{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
2671$as_echo "$ac_cv_exeext" >&6; }
2672
2673rm -f conftest.$ac_ext
2674EXEEXT=$ac_cv_exeext
2675ac_exeext=$EXEEXT
2676cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2677/* end confdefs.h.  */
2678#include <stdio.h>
2679int
2680main ()
2681{
2682FILE *f = fopen ("conftest.out", "w");
2683 return ferror (f) || fclose (f) != 0;
2684
2685  ;
2686  return 0;
2687}
2688_ACEOF
2689ac_clean_files="$ac_clean_files conftest.out"
2690# Check that the compiler produces executables we can run.  If not, either
2691# the compiler is broken, or we cross compile.
2692{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
2693$as_echo_n "checking whether we are cross compiling... " >&6; }
2694if test "$cross_compiling" != yes; then
2695  { { ac_try="$ac_link"
2696case "(($ac_try" in
2697  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2698  *) ac_try_echo=$ac_try;;
2699esac
2700eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2701$as_echo "$ac_try_echo"; } >&5
2702  (eval "$ac_link") 2>&5
2703  ac_status=$?
2704  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2705  test $ac_status = 0; }
2706  if { ac_try='./conftest$ac_cv_exeext'
2707  { { case "(($ac_try" in
2708  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2709  *) ac_try_echo=$ac_try;;
2710esac
2711eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2712$as_echo "$ac_try_echo"; } >&5
2713  (eval "$ac_try") 2>&5
2714  ac_status=$?
2715  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2716  test $ac_status = 0; }; }; then
2717    cross_compiling=no
2718  else
2719    if test "$cross_compiling" = maybe; then
2720	cross_compiling=yes
2721    else
2722	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2723$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2724as_fn_error $? "cannot run C compiled programs.
2725If you meant to cross compile, use \`--host'.
2726See \`config.log' for more details" "$LINENO" 5; }
2727    fi
2728  fi
2729fi
2730{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
2731$as_echo "$cross_compiling" >&6; }
2732
2733rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
2734ac_clean_files=$ac_clean_files_save
2735{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
2736$as_echo_n "checking for suffix of object files... " >&6; }
2737if ${ac_cv_objext+:} false; then :
2738  $as_echo_n "(cached) " >&6
2739else
2740  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2741/* end confdefs.h.  */
2742
2743int
2744main ()
2745{
2746
2747  ;
2748  return 0;
2749}
2750_ACEOF
2751rm -f conftest.o conftest.obj
2752if { { ac_try="$ac_compile"
2753case "(($ac_try" in
2754  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2755  *) ac_try_echo=$ac_try;;
2756esac
2757eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2758$as_echo "$ac_try_echo"; } >&5
2759  (eval "$ac_compile") 2>&5
2760  ac_status=$?
2761  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2762  test $ac_status = 0; }; then :
2763  for ac_file in conftest.o conftest.obj conftest.*; do
2764  test -f "$ac_file" || continue;
2765  case $ac_file in
2766    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
2767    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2768       break;;
2769  esac
2770done
2771else
2772  $as_echo "$as_me: failed program was:" >&5
2773sed 's/^/| /' conftest.$ac_ext >&5
2774
2775{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2776$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2777as_fn_error $? "cannot compute suffix of object files: cannot compile
2778See \`config.log' for more details" "$LINENO" 5; }
2779fi
2780rm -f conftest.$ac_cv_objext conftest.$ac_ext
2781fi
2782{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
2783$as_echo "$ac_cv_objext" >&6; }
2784OBJEXT=$ac_cv_objext
2785ac_objext=$OBJEXT
2786{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
2787$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
2788if ${ac_cv_c_compiler_gnu+:} false; then :
2789  $as_echo_n "(cached) " >&6
2790else
2791  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2792/* end confdefs.h.  */
2793
2794int
2795main ()
2796{
2797#ifndef __GNUC__
2798       choke me
2799#endif
2800
2801  ;
2802  return 0;
2803}
2804_ACEOF
2805if ac_fn_c_try_compile "$LINENO"; then :
2806  ac_compiler_gnu=yes
2807else
2808  ac_compiler_gnu=no
2809fi
2810rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2811ac_cv_c_compiler_gnu=$ac_compiler_gnu
2812
2813fi
2814{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
2815$as_echo "$ac_cv_c_compiler_gnu" >&6; }
2816if test $ac_compiler_gnu = yes; then
2817  GCC=yes
2818else
2819  GCC=
2820fi
2821ac_test_CFLAGS=${CFLAGS+set}
2822ac_save_CFLAGS=$CFLAGS
2823{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
2824$as_echo_n "checking whether $CC accepts -g... " >&6; }
2825if ${ac_cv_prog_cc_g+:} false; then :
2826  $as_echo_n "(cached) " >&6
2827else
2828  ac_save_c_werror_flag=$ac_c_werror_flag
2829   ac_c_werror_flag=yes
2830   ac_cv_prog_cc_g=no
2831   CFLAGS="-g"
2832   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2833/* end confdefs.h.  */
2834
2835int
2836main ()
2837{
2838
2839  ;
2840  return 0;
2841}
2842_ACEOF
2843if ac_fn_c_try_compile "$LINENO"; then :
2844  ac_cv_prog_cc_g=yes
2845else
2846  CFLAGS=""
2847      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2848/* end confdefs.h.  */
2849
2850int
2851main ()
2852{
2853
2854  ;
2855  return 0;
2856}
2857_ACEOF
2858if ac_fn_c_try_compile "$LINENO"; then :
2859
2860else
2861  ac_c_werror_flag=$ac_save_c_werror_flag
2862	 CFLAGS="-g"
2863	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2864/* end confdefs.h.  */
2865
2866int
2867main ()
2868{
2869
2870  ;
2871  return 0;
2872}
2873_ACEOF
2874if ac_fn_c_try_compile "$LINENO"; then :
2875  ac_cv_prog_cc_g=yes
2876fi
2877rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2878fi
2879rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2880fi
2881rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2882   ac_c_werror_flag=$ac_save_c_werror_flag
2883fi
2884{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
2885$as_echo "$ac_cv_prog_cc_g" >&6; }
2886if test "$ac_test_CFLAGS" = set; then
2887  CFLAGS=$ac_save_CFLAGS
2888elif test $ac_cv_prog_cc_g = yes; then
2889  if test "$GCC" = yes; then
2890    CFLAGS="-g -O2"
2891  else
2892    CFLAGS="-g"
2893  fi
2894else
2895  if test "$GCC" = yes; then
2896    CFLAGS="-O2"
2897  else
2898    CFLAGS=
2899  fi
2900fi
2901{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
2902$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
2903if ${ac_cv_prog_cc_c89+:} false; then :
2904  $as_echo_n "(cached) " >&6
2905else
2906  ac_cv_prog_cc_c89=no
2907ac_save_CC=$CC
2908cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2909/* end confdefs.h.  */
2910#include <stdarg.h>
2911#include <stdio.h>
2912#include <sys/types.h>
2913#include <sys/stat.h>
2914/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2915struct buf { int x; };
2916FILE * (*rcsopen) (struct buf *, struct stat *, int);
2917static char *e (p, i)
2918     char **p;
2919     int i;
2920{
2921  return p[i];
2922}
2923static char *f (char * (*g) (char **, int), char **p, ...)
2924{
2925  char *s;
2926  va_list v;
2927  va_start (v,p);
2928  s = g (p, va_arg (v,int));
2929  va_end (v);
2930  return s;
2931}
2932
2933/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2934   function prototypes and stuff, but not '\xHH' hex character constants.
2935   These don't provoke an error unfortunately, instead are silently treated
2936   as 'x'.  The following induces an error, until -std is added to get
2937   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
2938   array size at least.  It's necessary to write '\x00'==0 to get something
2939   that's true only with -std.  */
2940int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2941
2942/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2943   inside strings and character constants.  */
2944#define FOO(x) 'x'
2945int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
2946
2947int test (int i, double x);
2948struct s1 {int (*f) (int a);};
2949struct s2 {int (*f) (double a);};
2950int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2951int argc;
2952char **argv;
2953int
2954main ()
2955{
2956return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2957  ;
2958  return 0;
2959}
2960_ACEOF
2961for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
2962	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2963do
2964  CC="$ac_save_CC $ac_arg"
2965  if ac_fn_c_try_compile "$LINENO"; then :
2966  ac_cv_prog_cc_c89=$ac_arg
2967fi
2968rm -f core conftest.err conftest.$ac_objext
2969  test "x$ac_cv_prog_cc_c89" != "xno" && break
2970done
2971rm -f conftest.$ac_ext
2972CC=$ac_save_CC
2973
2974fi
2975# AC_CACHE_VAL
2976case "x$ac_cv_prog_cc_c89" in
2977  x)
2978    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
2979$as_echo "none needed" >&6; } ;;
2980  xno)
2981    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
2982$as_echo "unsupported" >&6; } ;;
2983  *)
2984    CC="$CC $ac_cv_prog_cc_c89"
2985    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
2986$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
2987esac
2988if test "x$ac_cv_prog_cc_c89" != xno; then :
2989
2990fi
2991
2992ac_ext=c
2993ac_cpp='$CPP $CPPFLAGS'
2994ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2995ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2996ac_compiler_gnu=$ac_cv_c_compiler_gnu
2997
2998ac_ext=c
2999ac_cpp='$CPP $CPPFLAGS'
3000ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3001ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3002ac_compiler_gnu=$ac_cv_c_compiler_gnu
3003{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3004$as_echo_n "checking how to run the C preprocessor... " >&6; }
3005# On Suns, sometimes $CPP names a directory.
3006if test -n "$CPP" && test -d "$CPP"; then
3007  CPP=
3008fi
3009if test -z "$CPP"; then
3010  if ${ac_cv_prog_CPP+:} false; then :
3011  $as_echo_n "(cached) " >&6
3012else
3013      # Double quotes because CPP needs to be expanded
3014    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3015    do
3016      ac_preproc_ok=false
3017for ac_c_preproc_warn_flag in '' yes
3018do
3019  # Use a header file that comes with gcc, so configuring glibc
3020  # with a fresh cross-compiler works.
3021  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3022  # <limits.h> exists even on freestanding compilers.
3023  # On the NeXT, cc -E runs the code through the compiler's parser,
3024  # not just through cpp. "Syntax error" is here to catch this case.
3025  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3026/* end confdefs.h.  */
3027#ifdef __STDC__
3028# include <limits.h>
3029#else
3030# include <assert.h>
3031#endif
3032		     Syntax error
3033_ACEOF
3034if ac_fn_c_try_cpp "$LINENO"; then :
3035
3036else
3037  # Broken: fails on valid input.
3038continue
3039fi
3040rm -f conftest.err conftest.i conftest.$ac_ext
3041
3042  # OK, works on sane cases.  Now check whether nonexistent headers
3043  # can be detected and how.
3044  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3045/* end confdefs.h.  */
3046#include <ac_nonexistent.h>
3047_ACEOF
3048if ac_fn_c_try_cpp "$LINENO"; then :
3049  # Broken: success on invalid input.
3050continue
3051else
3052  # Passes both tests.
3053ac_preproc_ok=:
3054break
3055fi
3056rm -f conftest.err conftest.i conftest.$ac_ext
3057
3058done
3059# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3060rm -f conftest.i conftest.err conftest.$ac_ext
3061if $ac_preproc_ok; then :
3062  break
3063fi
3064
3065    done
3066    ac_cv_prog_CPP=$CPP
3067
3068fi
3069  CPP=$ac_cv_prog_CPP
3070else
3071  ac_cv_prog_CPP=$CPP
3072fi
3073{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3074$as_echo "$CPP" >&6; }
3075ac_preproc_ok=false
3076for ac_c_preproc_warn_flag in '' yes
3077do
3078  # Use a header file that comes with gcc, so configuring glibc
3079  # with a fresh cross-compiler works.
3080  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3081  # <limits.h> exists even on freestanding compilers.
3082  # On the NeXT, cc -E runs the code through the compiler's parser,
3083  # not just through cpp. "Syntax error" is here to catch this case.
3084  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3085/* end confdefs.h.  */
3086#ifdef __STDC__
3087# include <limits.h>
3088#else
3089# include <assert.h>
3090#endif
3091		     Syntax error
3092_ACEOF
3093if ac_fn_c_try_cpp "$LINENO"; then :
3094
3095else
3096  # Broken: fails on valid input.
3097continue
3098fi
3099rm -f conftest.err conftest.i conftest.$ac_ext
3100
3101  # OK, works on sane cases.  Now check whether nonexistent headers
3102  # can be detected and how.
3103  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3104/* end confdefs.h.  */
3105#include <ac_nonexistent.h>
3106_ACEOF
3107if ac_fn_c_try_cpp "$LINENO"; then :
3108  # Broken: success on invalid input.
3109continue
3110else
3111  # Passes both tests.
3112ac_preproc_ok=:
3113break
3114fi
3115rm -f conftest.err conftest.i conftest.$ac_ext
3116
3117done
3118# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3119rm -f conftest.i conftest.err conftest.$ac_ext
3120if $ac_preproc_ok; then :
3121
3122else
3123  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3124$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3125as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
3126See \`config.log' for more details" "$LINENO" 5; }
3127fi
3128
3129ac_ext=c
3130ac_cpp='$CPP $CPPFLAGS'
3131ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3132ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3133ac_compiler_gnu=$ac_cv_c_compiler_gnu
3134
3135# Find a good install program.  We prefer a C program (faster),
3136# so one script is as good as another.  But avoid the broken or
3137# incompatible versions:
3138# SysV /etc/install, /usr/sbin/install
3139# SunOS /usr/etc/install
3140# IRIX /sbin/install
3141# AIX /bin/install
3142# AmigaOS /C/install, which installs bootblocks on floppy discs
3143# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3144# AFS /usr/afsws/bin/install, which mishandles nonexistent args
3145# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3146# OS/2's system install, which has a completely different semantic
3147# ./install, which can be erroneously created by make from ./install.sh.
3148# Reject install programs that cannot install multiple files.
3149{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
3150$as_echo_n "checking for a BSD-compatible install... " >&6; }
3151if test -z "$INSTALL"; then
3152if ${ac_cv_path_install+:} false; then :
3153  $as_echo_n "(cached) " >&6
3154else
3155  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3156for as_dir in $PATH
3157do
3158  IFS=$as_save_IFS
3159  test -z "$as_dir" && as_dir=.
3160    # Account for people who put trailing slashes in PATH elements.
3161case $as_dir/ in #((
3162  ./ | .// | /[cC]/* | \
3163  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3164  ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
3165  /usr/ucb/* ) ;;
3166  *)
3167    # OSF1 and SCO ODT 3.0 have their own names for install.
3168    # Don't use installbsd from OSF since it installs stuff as root
3169    # by default.
3170    for ac_prog in ginstall scoinst install; do
3171      for ac_exec_ext in '' $ac_executable_extensions; do
3172	if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
3173	  if test $ac_prog = install &&
3174	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3175	    # AIX install.  It has an incompatible calling convention.
3176	    :
3177	  elif test $ac_prog = install &&
3178	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3179	    # program-specific install script used by HP pwplus--don't use.
3180	    :
3181	  else
3182	    rm -rf conftest.one conftest.two conftest.dir
3183	    echo one > conftest.one
3184	    echo two > conftest.two
3185	    mkdir conftest.dir
3186	    if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3187	      test -s conftest.one && test -s conftest.two &&
3188	      test -s conftest.dir/conftest.one &&
3189	      test -s conftest.dir/conftest.two
3190	    then
3191	      ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3192	      break 3
3193	    fi
3194	  fi
3195	fi
3196      done
3197    done
3198    ;;
3199esac
3200
3201  done
3202IFS=$as_save_IFS
3203
3204rm -rf conftest.one conftest.two conftest.dir
3205
3206fi
3207  if test "${ac_cv_path_install+set}" = set; then
3208    INSTALL=$ac_cv_path_install
3209  else
3210    # As a last resort, use the slow shell script.  Don't cache a
3211    # value for INSTALL within a source directory, because that will
3212    # break other packages using the cache if that directory is
3213    # removed, or if the value is a relative name.
3214    INSTALL=$ac_install_sh
3215  fi
3216fi
3217{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3218$as_echo "$INSTALL" >&6; }
3219
3220# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3221# It thinks the first close brace ends the variable substitution.
3222test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3223
3224test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3225
3226test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3227
3228
3229
3230# Make sure we can run config.sub.
3231$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3232  as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
3233
3234{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3235$as_echo_n "checking build system type... " >&6; }
3236if ${ac_cv_build+:} false; then :
3237  $as_echo_n "(cached) " >&6
3238else
3239  ac_build_alias=$build_alias
3240test "x$ac_build_alias" = x &&
3241  ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3242test "x$ac_build_alias" = x &&
3243  as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
3244ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3245  as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
3246
3247fi
3248{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3249$as_echo "$ac_cv_build" >&6; }
3250case $ac_cv_build in
3251*-*-*) ;;
3252*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
3253esac
3254build=$ac_cv_build
3255ac_save_IFS=$IFS; IFS='-'
3256set x $ac_cv_build
3257shift
3258build_cpu=$1
3259build_vendor=$2
3260shift; shift
3261# Remember, the first character of IFS is used to create $*,
3262# except with old shells:
3263build_os=$*
3264IFS=$ac_save_IFS
3265case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3266
3267
3268{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3269$as_echo_n "checking host system type... " >&6; }
3270if ${ac_cv_host+:} false; then :
3271  $as_echo_n "(cached) " >&6
3272else
3273  if test "x$host_alias" = x; then
3274  ac_cv_host=$ac_cv_build
3275else
3276  ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3277    as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3278fi
3279
3280fi
3281{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3282$as_echo "$ac_cv_host" >&6; }
3283case $ac_cv_host in
3284*-*-*) ;;
3285*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
3286esac
3287host=$ac_cv_host
3288ac_save_IFS=$IFS; IFS='-'
3289set x $ac_cv_host
3290shift
3291host_cpu=$1
3292host_vendor=$2
3293shift; shift
3294# Remember, the first character of IFS is used to create $*,
3295# except with old shells:
3296host_os=$*
3297IFS=$ac_save_IFS
3298case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3299
3300
3301
3302
3303
3304  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to activate relocatable installation" >&5
3305$as_echo_n "checking whether to activate relocatable installation... " >&6; }
3306  # Check whether --enable-relocatable was given.
3307if test "${enable_relocatable+set}" = set; then :
3308  enableval=$enable_relocatable; if test "$enableval" != no; then
3309       RELOCATABLE=yes
3310     else
3311       RELOCATABLE=no
3312     fi
3313
3314else
3315  RELOCATABLE=no
3316fi
3317
3318
3319  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RELOCATABLE" >&5
3320$as_echo "$RELOCATABLE" >&6; }
3321
3322
3323
3324    if test "X$prefix" = "XNONE"; then
3325    reloc_final_prefix="$ac_default_prefix"
3326  else
3327    reloc_final_prefix="$prefix"
3328  fi
3329
3330cat >>confdefs.h <<_ACEOF
3331#define INSTALLPREFIX "${reloc_final_prefix}"
3332_ACEOF
3333
3334  if test $RELOCATABLE = yes; then
3335
3336$as_echo "#define ENABLE_RELOCATABLE 1" >>confdefs.h
3337
3338  fi
3339
3340
3341
3342  if test $RELOCATABLE = yes; then
3343    case " $LIBOBJS " in
3344  *" relocatable.$ac_objext "* ) ;;
3345  *) LIBOBJS="$LIBOBJS relocatable.$ac_objext"
3346 ;;
3347esac
3348
3349  fi
3350
3351
3352
3353
3354
3355
3356{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
3357$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3358if ${ac_cv_path_GREP+:} false; then :
3359  $as_echo_n "(cached) " >&6
3360else
3361  if test -z "$GREP"; then
3362  ac_path_GREP_found=false
3363  # Loop through the user's path and test for each of PROGNAME-LIST
3364  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3365for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3366do
3367  IFS=$as_save_IFS
3368  test -z "$as_dir" && as_dir=.
3369    for ac_prog in grep ggrep; do
3370    for ac_exec_ext in '' $ac_executable_extensions; do
3371      ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3372      { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3373# Check for GNU ac_path_GREP and select it if it is found.
3374  # Check for GNU $ac_path_GREP
3375case `"$ac_path_GREP" --version 2>&1` in
3376*GNU*)
3377  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3378*)
3379  ac_count=0
3380  $as_echo_n 0123456789 >"conftest.in"
3381  while :
3382  do
3383    cat "conftest.in" "conftest.in" >"conftest.tmp"
3384    mv "conftest.tmp" "conftest.in"
3385    cp "conftest.in" "conftest.nl"
3386    $as_echo 'GREP' >> "conftest.nl"
3387    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3388    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3389    as_fn_arith $ac_count + 1 && ac_count=$as_val
3390    if test $ac_count -gt ${ac_path_GREP_max-0}; then
3391      # Best one so far, save it but keep looking for a better one
3392      ac_cv_path_GREP="$ac_path_GREP"
3393      ac_path_GREP_max=$ac_count
3394    fi
3395    # 10*(2^10) chars as input seems more than enough
3396    test $ac_count -gt 10 && break
3397  done
3398  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3399esac
3400
3401      $ac_path_GREP_found && break 3
3402    done
3403  done
3404  done
3405IFS=$as_save_IFS
3406  if test -z "$ac_cv_path_GREP"; then
3407    as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3408  fi
3409else
3410  ac_cv_path_GREP=$GREP
3411fi
3412
3413fi
3414{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
3415$as_echo "$ac_cv_path_GREP" >&6; }
3416 GREP="$ac_cv_path_GREP"
3417
3418
3419{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
3420$as_echo_n "checking for egrep... " >&6; }
3421if ${ac_cv_path_EGREP+:} false; then :
3422  $as_echo_n "(cached) " >&6
3423else
3424  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3425   then ac_cv_path_EGREP="$GREP -E"
3426   else
3427     if test -z "$EGREP"; then
3428  ac_path_EGREP_found=false
3429  # Loop through the user's path and test for each of PROGNAME-LIST
3430  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3431for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3432do
3433  IFS=$as_save_IFS
3434  test -z "$as_dir" && as_dir=.
3435    for ac_prog in egrep; do
3436    for ac_exec_ext in '' $ac_executable_extensions; do
3437      ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3438      { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3439# Check for GNU ac_path_EGREP and select it if it is found.
3440  # Check for GNU $ac_path_EGREP
3441case `"$ac_path_EGREP" --version 2>&1` in
3442*GNU*)
3443  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3444*)
3445  ac_count=0
3446  $as_echo_n 0123456789 >"conftest.in"
3447  while :
3448  do
3449    cat "conftest.in" "conftest.in" >"conftest.tmp"
3450    mv "conftest.tmp" "conftest.in"
3451    cp "conftest.in" "conftest.nl"
3452    $as_echo 'EGREP' >> "conftest.nl"
3453    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3454    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3455    as_fn_arith $ac_count + 1 && ac_count=$as_val
3456    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3457      # Best one so far, save it but keep looking for a better one
3458      ac_cv_path_EGREP="$ac_path_EGREP"
3459      ac_path_EGREP_max=$ac_count
3460    fi
3461    # 10*(2^10) chars as input seems more than enough
3462    test $ac_count -gt 10 && break
3463  done
3464  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3465esac
3466
3467      $ac_path_EGREP_found && break 3
3468    done
3469  done
3470  done
3471IFS=$as_save_IFS
3472  if test -z "$ac_cv_path_EGREP"; then
3473    as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3474  fi
3475else
3476  ac_cv_path_EGREP=$EGREP
3477fi
3478
3479   fi
3480fi
3481{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
3482$as_echo "$ac_cv_path_EGREP" >&6; }
3483 EGREP="$ac_cv_path_EGREP"
3484
3485
3486{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
3487$as_echo_n "checking for ANSI C header files... " >&6; }
3488if ${ac_cv_header_stdc+:} false; then :
3489  $as_echo_n "(cached) " >&6
3490else
3491  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3492/* end confdefs.h.  */
3493#include <stdlib.h>
3494#include <stdarg.h>
3495#include <string.h>
3496#include <float.h>
3497
3498int
3499main ()
3500{
3501
3502  ;
3503  return 0;
3504}
3505_ACEOF
3506if ac_fn_c_try_compile "$LINENO"; then :
3507  ac_cv_header_stdc=yes
3508else
3509  ac_cv_header_stdc=no
3510fi
3511rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3512
3513if test $ac_cv_header_stdc = yes; then
3514  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3515  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3516/* end confdefs.h.  */
3517#include <string.h>
3518
3519_ACEOF
3520if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3521  $EGREP "memchr" >/dev/null 2>&1; then :
3522
3523else
3524  ac_cv_header_stdc=no
3525fi
3526rm -f conftest*
3527
3528fi
3529
3530if test $ac_cv_header_stdc = yes; then
3531  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3532  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3533/* end confdefs.h.  */
3534#include <stdlib.h>
3535
3536_ACEOF
3537if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3538  $EGREP "free" >/dev/null 2>&1; then :
3539
3540else
3541  ac_cv_header_stdc=no
3542fi
3543rm -f conftest*
3544
3545fi
3546
3547if test $ac_cv_header_stdc = yes; then
3548  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3549  if test "$cross_compiling" = yes; then :
3550  :
3551else
3552  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3553/* end confdefs.h.  */
3554#include <ctype.h>
3555#include <stdlib.h>
3556#if ((' ' & 0x0FF) == 0x020)
3557# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3558# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3559#else
3560# define ISLOWER(c) \
3561		   (('a' <= (c) && (c) <= 'i') \
3562		     || ('j' <= (c) && (c) <= 'r') \
3563		     || ('s' <= (c) && (c) <= 'z'))
3564# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3565#endif
3566
3567#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3568int
3569main ()
3570{
3571  int i;
3572  for (i = 0; i < 256; i++)
3573    if (XOR (islower (i), ISLOWER (i))
3574	|| toupper (i) != TOUPPER (i))
3575      return 2;
3576  return 0;
3577}
3578_ACEOF
3579if ac_fn_c_try_run "$LINENO"; then :
3580
3581else
3582  ac_cv_header_stdc=no
3583fi
3584rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
3585  conftest.$ac_objext conftest.beam conftest.$ac_ext
3586fi
3587
3588fi
3589fi
3590{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
3591$as_echo "$ac_cv_header_stdc" >&6; }
3592if test $ac_cv_header_stdc = yes; then
3593
3594$as_echo "#define STDC_HEADERS 1" >>confdefs.h
3595
3596fi
3597
3598# On IRIX 5.3, sys/types and inttypes.h are conflicting.
3599for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3600		  inttypes.h stdint.h unistd.h
3601do :
3602  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
3603ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
3604"
3605if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
3606  cat >>confdefs.h <<_ACEOF
3607#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
3608_ACEOF
3609
3610fi
3611
3612done
3613
3614
3615
3616  ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
3617if test "x$ac_cv_header_minix_config_h" = xyes; then :
3618  MINIX=yes
3619else
3620  MINIX=
3621fi
3622
3623
3624  if test "$MINIX" = yes; then
3625
3626$as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
3627
3628
3629$as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
3630
3631
3632$as_echo "#define _MINIX 1" >>confdefs.h
3633
3634  fi
3635
3636
3637  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
3638$as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
3639if ${ac_cv_safe_to_define___extensions__+:} false; then :
3640  $as_echo_n "(cached) " >&6
3641else
3642  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3643/* end confdefs.h.  */
3644
3645#	  define __EXTENSIONS__ 1
3646	  $ac_includes_default
3647int
3648main ()
3649{
3650
3651  ;
3652  return 0;
3653}
3654_ACEOF
3655if ac_fn_c_try_compile "$LINENO"; then :
3656  ac_cv_safe_to_define___extensions__=yes
3657else
3658  ac_cv_safe_to_define___extensions__=no
3659fi
3660rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3661fi
3662{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
3663$as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
3664  test $ac_cv_safe_to_define___extensions__ = yes &&
3665    $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
3666
3667  $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
3668
3669  $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
3670
3671  $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
3672
3673  $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
3674
3675
3676
3677
3678
3679
3680
3681
3682case `pwd` in
3683  *\ * | *\	*)
3684    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
3685$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
3686esac
3687
3688
3689
3690macro_version='2.4'
3691macro_revision='1.3293'
3692
3693
3694
3695
3696
3697
3698
3699
3700
3701
3702
3703
3704
3705ltmain="$ac_aux_dir/ltmain.sh"
3706
3707# Backslashify metacharacters that are still active within
3708# double-quoted strings.
3709sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
3710
3711# Same as above, but do not quote variable references.
3712double_quote_subst='s/\(["`\\]\)/\\\1/g'
3713
3714# Sed substitution to delay expansion of an escaped shell variable in a
3715# double_quote_subst'ed string.
3716delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
3717
3718# Sed substitution to delay expansion of an escaped single quote.
3719delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
3720
3721# Sed substitution to avoid accidental globbing in evaled expressions
3722no_glob_subst='s/\*/\\\*/g'
3723
3724ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
3725ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
3726ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
3727
3728{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
3729$as_echo_n "checking how to print strings... " >&6; }
3730# Test print first, because it will be a builtin if present.
3731if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
3732   test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
3733  ECHO='print -r --'
3734elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
3735  ECHO='printf %s\n'
3736else
3737  # Use this function as a fallback that always works.
3738  func_fallback_echo ()
3739  {
3740    eval 'cat <<_LTECHO_EOF
3741$1
3742_LTECHO_EOF'
3743  }
3744  ECHO='func_fallback_echo'
3745fi
3746
3747# func_echo_all arg...
3748# Invoke $ECHO with all args, space-separated.
3749func_echo_all ()
3750{
3751    $ECHO ""
3752}
3753
3754case "$ECHO" in
3755  printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
3756$as_echo "printf" >&6; } ;;
3757  print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
3758$as_echo "print -r" >&6; } ;;
3759  *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
3760$as_echo "cat" >&6; } ;;
3761esac
3762
3763
3764
3765
3766
3767
3768
3769
3770
3771
3772
3773
3774
3775
3776{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
3777$as_echo_n "checking for a sed that does not truncate output... " >&6; }
3778if ${ac_cv_path_SED+:} false; then :
3779  $as_echo_n "(cached) " >&6
3780else
3781            ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
3782     for ac_i in 1 2 3 4 5 6 7; do
3783       ac_script="$ac_script$as_nl$ac_script"
3784     done
3785     echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
3786     { ac_script=; unset ac_script;}
3787     if test -z "$SED"; then
3788  ac_path_SED_found=false
3789  # Loop through the user's path and test for each of PROGNAME-LIST
3790  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3791for as_dir in $PATH
3792do
3793  IFS=$as_save_IFS
3794  test -z "$as_dir" && as_dir=.
3795    for ac_prog in sed gsed; do
3796    for ac_exec_ext in '' $ac_executable_extensions; do
3797      ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
3798      { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
3799# Check for GNU ac_path_SED and select it if it is found.
3800  # Check for GNU $ac_path_SED
3801case `"$ac_path_SED" --version 2>&1` in
3802*GNU*)
3803  ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
3804*)
3805  ac_count=0
3806  $as_echo_n 0123456789 >"conftest.in"
3807  while :
3808  do
3809    cat "conftest.in" "conftest.in" >"conftest.tmp"
3810    mv "conftest.tmp" "conftest.in"
3811    cp "conftest.in" "conftest.nl"
3812    $as_echo '' >> "conftest.nl"
3813    "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
3814    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3815    as_fn_arith $ac_count + 1 && ac_count=$as_val
3816    if test $ac_count -gt ${ac_path_SED_max-0}; then
3817      # Best one so far, save it but keep looking for a better one
3818      ac_cv_path_SED="$ac_path_SED"
3819      ac_path_SED_max=$ac_count
3820    fi
3821    # 10*(2^10) chars as input seems more than enough
3822    test $ac_count -gt 10 && break
3823  done
3824  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3825esac
3826
3827      $ac_path_SED_found && break 3
3828    done
3829  done
3830  done
3831IFS=$as_save_IFS
3832  if test -z "$ac_cv_path_SED"; then
3833    as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
3834  fi
3835else
3836  ac_cv_path_SED=$SED
3837fi
3838
3839fi
3840{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
3841$as_echo "$ac_cv_path_SED" >&6; }
3842 SED="$ac_cv_path_SED"
3843  rm -f conftest.sed
3844
3845test -z "$SED" && SED=sed
3846Xsed="$SED -e 1s/^X//"
3847
3848
3849
3850
3851
3852
3853
3854
3855
3856
3857
3858{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
3859$as_echo_n "checking for fgrep... " >&6; }
3860if ${ac_cv_path_FGREP+:} false; then :
3861  $as_echo_n "(cached) " >&6
3862else
3863  if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
3864   then ac_cv_path_FGREP="$GREP -F"
3865   else
3866     if test -z "$FGREP"; then
3867  ac_path_FGREP_found=false
3868  # Loop through the user's path and test for each of PROGNAME-LIST
3869  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3870for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3871do
3872  IFS=$as_save_IFS
3873  test -z "$as_dir" && as_dir=.
3874    for ac_prog in fgrep; do
3875    for ac_exec_ext in '' $ac_executable_extensions; do
3876      ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
3877      { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
3878# Check for GNU ac_path_FGREP and select it if it is found.
3879  # Check for GNU $ac_path_FGREP
3880case `"$ac_path_FGREP" --version 2>&1` in
3881*GNU*)
3882  ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
3883*)
3884  ac_count=0
3885  $as_echo_n 0123456789 >"conftest.in"
3886  while :
3887  do
3888    cat "conftest.in" "conftest.in" >"conftest.tmp"
3889    mv "conftest.tmp" "conftest.in"
3890    cp "conftest.in" "conftest.nl"
3891    $as_echo 'FGREP' >> "conftest.nl"
3892    "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
3893    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3894    as_fn_arith $ac_count + 1 && ac_count=$as_val
3895    if test $ac_count -gt ${ac_path_FGREP_max-0}; then
3896      # Best one so far, save it but keep looking for a better one
3897      ac_cv_path_FGREP="$ac_path_FGREP"
3898      ac_path_FGREP_max=$ac_count
3899    fi
3900    # 10*(2^10) chars as input seems more than enough
3901    test $ac_count -gt 10 && break
3902  done
3903  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3904esac
3905
3906      $ac_path_FGREP_found && break 3
3907    done
3908  done
3909  done
3910IFS=$as_save_IFS
3911  if test -z "$ac_cv_path_FGREP"; then
3912    as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3913  fi
3914else
3915  ac_cv_path_FGREP=$FGREP
3916fi
3917
3918   fi
3919fi
3920{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
3921$as_echo "$ac_cv_path_FGREP" >&6; }
3922 FGREP="$ac_cv_path_FGREP"
3923
3924
3925test -z "$GREP" && GREP=grep
3926
3927
3928
3929
3930
3931
3932
3933
3934
3935
3936
3937
3938
3939
3940
3941
3942
3943
3944
3945# Check whether --with-gnu-ld was given.
3946if test "${with_gnu_ld+set}" = set; then :
3947  withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
3948else
3949  with_gnu_ld=no
3950fi
3951
3952ac_prog=ld
3953if test "$GCC" = yes; then
3954  # Check if gcc -print-prog-name=ld gives a path.
3955  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
3956$as_echo_n "checking for ld used by $CC... " >&6; }
3957  case $host in
3958  *-*-mingw*)
3959    # gcc leaves a trailing carriage return which upsets mingw
3960    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3961  *)
3962    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3963  esac
3964  case $ac_prog in
3965    # Accept absolute paths.
3966    [\\/]* | ?:[\\/]*)
3967      re_direlt='/[^/][^/]*/\.\./'
3968      # Canonicalize the pathname of ld
3969      ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
3970      while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
3971	ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
3972      done
3973      test -z "$LD" && LD="$ac_prog"
3974      ;;
3975  "")
3976    # If it fails, then pretend we aren't using GCC.
3977    ac_prog=ld
3978    ;;
3979  *)
3980    # If it is relative, then search for the first ld in PATH.
3981    with_gnu_ld=unknown
3982    ;;
3983  esac
3984elif test "$with_gnu_ld" = yes; then
3985  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
3986$as_echo_n "checking for GNU ld... " >&6; }
3987else
3988  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
3989$as_echo_n "checking for non-GNU ld... " >&6; }
3990fi
3991if ${lt_cv_path_LD+:} false; then :
3992  $as_echo_n "(cached) " >&6
3993else
3994  if test -z "$LD"; then
3995  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3996  for ac_dir in $PATH; do
3997    IFS="$lt_save_ifs"
3998    test -z "$ac_dir" && ac_dir=.
3999    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4000      lt_cv_path_LD="$ac_dir/$ac_prog"
4001      # Check to see if the program is GNU ld.  I'd rather use --version,
4002      # but apparently some variants of GNU ld only accept -v.
4003      # Break only if it was the GNU/non-GNU ld that we prefer.
4004      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4005      *GNU* | *'with BFD'*)
4006	test "$with_gnu_ld" != no && break
4007	;;
4008      *)
4009	test "$with_gnu_ld" != yes && break
4010	;;
4011      esac
4012    fi
4013  done
4014  IFS="$lt_save_ifs"
4015else
4016  lt_cv_path_LD="$LD" # Let the user override the test with a path.
4017fi
4018fi
4019
4020LD="$lt_cv_path_LD"
4021if test -n "$LD"; then
4022  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
4023$as_echo "$LD" >&6; }
4024else
4025  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4026$as_echo "no" >&6; }
4027fi
4028test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
4029{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
4030$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4031if ${lt_cv_prog_gnu_ld+:} false; then :
4032  $as_echo_n "(cached) " >&6
4033else
4034  # I'd rather use --version here, but apparently some GNU lds only accept -v.
4035case `$LD -v 2>&1 </dev/null` in
4036*GNU* | *'with BFD'*)
4037  lt_cv_prog_gnu_ld=yes
4038  ;;
4039*)
4040  lt_cv_prog_gnu_ld=no
4041  ;;
4042esac
4043fi
4044{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
4045$as_echo "$lt_cv_prog_gnu_ld" >&6; }
4046with_gnu_ld=$lt_cv_prog_gnu_ld
4047
4048
4049
4050
4051
4052
4053
4054
4055
4056{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
4057$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
4058if ${lt_cv_path_NM+:} false; then :
4059  $as_echo_n "(cached) " >&6
4060else
4061  if test -n "$NM"; then
4062  # Let the user override the test.
4063  lt_cv_path_NM="$NM"
4064else
4065  lt_nm_to_check="${ac_tool_prefix}nm"
4066  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4067    lt_nm_to_check="$lt_nm_to_check nm"
4068  fi
4069  for lt_tmp_nm in $lt_nm_to_check; do
4070    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4071    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4072      IFS="$lt_save_ifs"
4073      test -z "$ac_dir" && ac_dir=.
4074      tmp_nm="$ac_dir/$lt_tmp_nm"
4075      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4076	# Check to see if the nm accepts a BSD-compat flag.
4077	# Adding the `sed 1q' prevents false positives on HP-UX, which says:
4078	#   nm: unknown option "B" ignored
4079	# Tru64's nm complains that /dev/null is an invalid object file
4080	case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4081	*/dev/null* | *'Invalid file or object type'*)
4082	  lt_cv_path_NM="$tmp_nm -B"
4083	  break
4084	  ;;
4085	*)
4086	  case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4087	  */dev/null*)
4088	    lt_cv_path_NM="$tmp_nm -p"
4089	    break
4090	    ;;
4091	  *)
4092	    lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4093	    continue # so that we can try to find one that supports BSD flags
4094	    ;;
4095	  esac
4096	  ;;
4097	esac
4098      fi
4099    done
4100    IFS="$lt_save_ifs"
4101  done
4102  : ${lt_cv_path_NM=no}
4103fi
4104fi
4105{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
4106$as_echo "$lt_cv_path_NM" >&6; }
4107if test "$lt_cv_path_NM" != "no"; then
4108  NM="$lt_cv_path_NM"
4109else
4110  # Didn't find any BSD compatible name lister, look for dumpbin.
4111  if test -n "$DUMPBIN"; then :
4112    # Let the user override the test.
4113  else
4114    if test -n "$ac_tool_prefix"; then
4115  for ac_prog in dumpbin "link -dump"
4116  do
4117    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4118set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4119{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4120$as_echo_n "checking for $ac_word... " >&6; }
4121if ${ac_cv_prog_DUMPBIN+:} false; then :
4122  $as_echo_n "(cached) " >&6
4123else
4124  if test -n "$DUMPBIN"; then
4125  ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
4126else
4127as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4128for as_dir in $PATH
4129do
4130  IFS=$as_save_IFS
4131  test -z "$as_dir" && as_dir=.
4132    for ac_exec_ext in '' $ac_executable_extensions; do
4133  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4134    ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
4135    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4136    break 2
4137  fi
4138done
4139  done
4140IFS=$as_save_IFS
4141
4142fi
4143fi
4144DUMPBIN=$ac_cv_prog_DUMPBIN
4145if test -n "$DUMPBIN"; then
4146  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
4147$as_echo "$DUMPBIN" >&6; }
4148else
4149  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4150$as_echo "no" >&6; }
4151fi
4152
4153
4154    test -n "$DUMPBIN" && break
4155  done
4156fi
4157if test -z "$DUMPBIN"; then
4158  ac_ct_DUMPBIN=$DUMPBIN
4159  for ac_prog in dumpbin "link -dump"
4160do
4161  # Extract the first word of "$ac_prog", so it can be a program name with args.
4162set dummy $ac_prog; ac_word=$2
4163{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4164$as_echo_n "checking for $ac_word... " >&6; }
4165if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
4166  $as_echo_n "(cached) " >&6
4167else
4168  if test -n "$ac_ct_DUMPBIN"; then
4169  ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
4170else
4171as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4172for as_dir in $PATH
4173do
4174  IFS=$as_save_IFS
4175  test -z "$as_dir" && as_dir=.
4176    for ac_exec_ext in '' $ac_executable_extensions; do
4177  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4178    ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
4179    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4180    break 2
4181  fi
4182done
4183  done
4184IFS=$as_save_IFS
4185
4186fi
4187fi
4188ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
4189if test -n "$ac_ct_DUMPBIN"; then
4190  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
4191$as_echo "$ac_ct_DUMPBIN" >&6; }
4192else
4193  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4194$as_echo "no" >&6; }
4195fi
4196
4197
4198  test -n "$ac_ct_DUMPBIN" && break
4199done
4200
4201  if test "x$ac_ct_DUMPBIN" = x; then
4202    DUMPBIN=":"
4203  else
4204    case $cross_compiling:$ac_tool_warned in
4205yes:)
4206{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4207$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4208ac_tool_warned=yes ;;
4209esac
4210    DUMPBIN=$ac_ct_DUMPBIN
4211  fi
4212fi
4213
4214    case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
4215    *COFF*)
4216      DUMPBIN="$DUMPBIN -symbols"
4217      ;;
4218    *)
4219      DUMPBIN=:
4220      ;;
4221    esac
4222  fi
4223
4224  if test "$DUMPBIN" != ":"; then
4225    NM="$DUMPBIN"
4226  fi
4227fi
4228test -z "$NM" && NM=nm
4229
4230
4231
4232
4233
4234
4235{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
4236$as_echo_n "checking the name lister ($NM) interface... " >&6; }
4237if ${lt_cv_nm_interface+:} false; then :
4238  $as_echo_n "(cached) " >&6
4239else
4240  lt_cv_nm_interface="BSD nm"
4241  echo "int some_variable = 0;" > conftest.$ac_ext
4242  (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
4243  (eval "$ac_compile" 2>conftest.err)
4244  cat conftest.err >&5
4245  (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
4246  (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
4247  cat conftest.err >&5
4248  (eval echo "\"\$as_me:$LINENO: output\"" >&5)
4249  cat conftest.out >&5
4250  if $GREP 'External.*some_variable' conftest.out > /dev/null; then
4251    lt_cv_nm_interface="MS dumpbin"
4252  fi
4253  rm -f conftest*
4254fi
4255{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
4256$as_echo "$lt_cv_nm_interface" >&6; }
4257
4258{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
4259$as_echo_n "checking whether ln -s works... " >&6; }
4260LN_S=$as_ln_s
4261if test "$LN_S" = "ln -s"; then
4262  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4263$as_echo "yes" >&6; }
4264else
4265  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
4266$as_echo "no, using $LN_S" >&6; }
4267fi
4268
4269# find the maximum length of command line arguments
4270{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
4271$as_echo_n "checking the maximum length of command line arguments... " >&6; }
4272if ${lt_cv_sys_max_cmd_len+:} false; then :
4273  $as_echo_n "(cached) " >&6
4274else
4275    i=0
4276  teststring="ABCD"
4277
4278  case $build_os in
4279  msdosdjgpp*)
4280    # On DJGPP, this test can blow up pretty badly due to problems in libc
4281    # (any single argument exceeding 2000 bytes causes a buffer overrun
4282    # during glob expansion).  Even if it were fixed, the result of this
4283    # check would be larger than it should be.
4284    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
4285    ;;
4286
4287  gnu*)
4288    # Under GNU Hurd, this test is not required because there is
4289    # no limit to the length of command line arguments.
4290    # Libtool will interpret -1 as no limit whatsoever
4291    lt_cv_sys_max_cmd_len=-1;
4292    ;;
4293
4294  cygwin* | mingw* | cegcc*)
4295    # On Win9x/ME, this test blows up -- it succeeds, but takes
4296    # about 5 minutes as the teststring grows exponentially.
4297    # Worse, since 9x/ME are not pre-emptively multitasking,
4298    # you end up with a "frozen" computer, even though with patience
4299    # the test eventually succeeds (with a max line length of 256k).
4300    # Instead, let's just punt: use the minimum linelength reported by
4301    # all of the supported platforms: 8192 (on NT/2K/XP).
4302    lt_cv_sys_max_cmd_len=8192;
4303    ;;
4304
4305  mint*)
4306    # On MiNT this can take a long time and run out of memory.
4307    lt_cv_sys_max_cmd_len=8192;
4308    ;;
4309
4310  amigaos*)
4311    # On AmigaOS with pdksh, this test takes hours, literally.
4312    # So we just punt and use a minimum line length of 8192.
4313    lt_cv_sys_max_cmd_len=8192;
4314    ;;
4315
4316  netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
4317    # This has been around since 386BSD, at least.  Likely further.
4318    if test -x /sbin/sysctl; then
4319      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
4320    elif test -x /usr/sbin/sysctl; then
4321      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
4322    else
4323      lt_cv_sys_max_cmd_len=65536	# usable default for all BSDs
4324    fi
4325    # And add a safety zone
4326    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4327    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4328    ;;
4329
4330  interix*)
4331    # We know the value 262144 and hardcode it with a safety zone (like BSD)
4332    lt_cv_sys_max_cmd_len=196608
4333    ;;
4334
4335  osf*)
4336    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
4337    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
4338    # nice to cause kernel panics so lets avoid the loop below.
4339    # First set a reasonable default.
4340    lt_cv_sys_max_cmd_len=16384
4341    #
4342    if test -x /sbin/sysconfig; then
4343      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
4344        *1*) lt_cv_sys_max_cmd_len=-1 ;;
4345      esac
4346    fi
4347    ;;
4348  sco3.2v5*)
4349    lt_cv_sys_max_cmd_len=102400
4350    ;;
4351  sysv5* | sco5v6* | sysv4.2uw2*)
4352    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
4353    if test -n "$kargmax"; then
4354      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[	 ]//'`
4355    else
4356      lt_cv_sys_max_cmd_len=32768
4357    fi
4358    ;;
4359  *)
4360    lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
4361    if test -n "$lt_cv_sys_max_cmd_len"; then
4362      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4363      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4364    else
4365      # Make teststring a little bigger before we do anything with it.
4366      # a 1K string should be a reasonable start.
4367      for i in 1 2 3 4 5 6 7 8 ; do
4368        teststring=$teststring$teststring
4369      done
4370      SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
4371      # If test is not a shell built-in, we'll probably end up computing a
4372      # maximum length that is only half of the actual maximum length, but
4373      # we can't tell.
4374      while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
4375	         = "X$teststring$teststring"; } >/dev/null 2>&1 &&
4376	      test $i != 17 # 1/2 MB should be enough
4377      do
4378        i=`expr $i + 1`
4379        teststring=$teststring$teststring
4380      done
4381      # Only check the string length outside the loop.
4382      lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
4383      teststring=
4384      # Add a significant safety factor because C++ compilers can tack on
4385      # massive amounts of additional arguments before passing them to the
4386      # linker.  It appears as though 1/2 is a usable value.
4387      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
4388    fi
4389    ;;
4390  esac
4391
4392fi
4393
4394if test -n $lt_cv_sys_max_cmd_len ; then
4395  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
4396$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
4397else
4398  { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
4399$as_echo "none" >&6; }
4400fi
4401max_cmd_len=$lt_cv_sys_max_cmd_len
4402
4403
4404
4405
4406
4407
4408: ${CP="cp -f"}
4409: ${MV="mv -f"}
4410: ${RM="rm -f"}
4411
4412{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
4413$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
4414# Try some XSI features
4415xsi_shell=no
4416( _lt_dummy="a/b/c"
4417  test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
4418      = c,a/b,b/c, \
4419    && eval 'test $(( 1 + 1 )) -eq 2 \
4420    && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
4421  && xsi_shell=yes
4422{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
4423$as_echo "$xsi_shell" >&6; }
4424
4425
4426{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
4427$as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
4428lt_shell_append=no
4429( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
4430    >/dev/null 2>&1 \
4431  && lt_shell_append=yes
4432{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
4433$as_echo "$lt_shell_append" >&6; }
4434
4435
4436if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
4437  lt_unset=unset
4438else
4439  lt_unset=false
4440fi
4441
4442
4443
4444
4445
4446# test EBCDIC or ASCII
4447case `echo X|tr X '\101'` in
4448 A) # ASCII based system
4449    # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
4450  lt_SP2NL='tr \040 \012'
4451  lt_NL2SP='tr \015\012 \040\040'
4452  ;;
4453 *) # EBCDIC based system
4454  lt_SP2NL='tr \100 \n'
4455  lt_NL2SP='tr \r\n \100\100'
4456  ;;
4457esac
4458
4459
4460
4461
4462
4463
4464
4465
4466
4467{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
4468$as_echo_n "checking how to convert $build file names to $host format... " >&6; }
4469if ${lt_cv_to_host_file_cmd+:} false; then :
4470  $as_echo_n "(cached) " >&6
4471else
4472  case $host in
4473  *-*-mingw* )
4474    case $build in
4475      *-*-mingw* ) # actually msys
4476        lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
4477        ;;
4478      *-*-cygwin* )
4479        lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
4480        ;;
4481      * ) # otherwise, assume *nix
4482        lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
4483        ;;
4484    esac
4485    ;;
4486  *-*-cygwin* )
4487    case $build in
4488      *-*-mingw* ) # actually msys
4489        lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
4490        ;;
4491      *-*-cygwin* )
4492        lt_cv_to_host_file_cmd=func_convert_file_noop
4493        ;;
4494      * ) # otherwise, assume *nix
4495        lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
4496        ;;
4497    esac
4498    ;;
4499  * ) # unhandled hosts (and "normal" native builds)
4500    lt_cv_to_host_file_cmd=func_convert_file_noop
4501    ;;
4502esac
4503
4504fi
4505
4506to_host_file_cmd=$lt_cv_to_host_file_cmd
4507{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
4508$as_echo "$lt_cv_to_host_file_cmd" >&6; }
4509
4510
4511
4512
4513
4514{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
4515$as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
4516if ${lt_cv_to_tool_file_cmd+:} false; then :
4517  $as_echo_n "(cached) " >&6
4518else
4519  #assume ordinary cross tools, or native build.
4520lt_cv_to_tool_file_cmd=func_convert_file_noop
4521case $host in
4522  *-*-mingw* )
4523    case $build in
4524      *-*-mingw* ) # actually msys
4525        lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
4526        ;;
4527    esac
4528    ;;
4529esac
4530
4531fi
4532
4533to_tool_file_cmd=$lt_cv_to_tool_file_cmd
4534{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
4535$as_echo "$lt_cv_to_tool_file_cmd" >&6; }
4536
4537
4538
4539
4540
4541{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
4542$as_echo_n "checking for $LD option to reload object files... " >&6; }
4543if ${lt_cv_ld_reload_flag+:} false; then :
4544  $as_echo_n "(cached) " >&6
4545else
4546  lt_cv_ld_reload_flag='-r'
4547fi
4548{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
4549$as_echo "$lt_cv_ld_reload_flag" >&6; }
4550reload_flag=$lt_cv_ld_reload_flag
4551case $reload_flag in
4552"" | " "*) ;;
4553*) reload_flag=" $reload_flag" ;;
4554esac
4555reload_cmds='$LD$reload_flag -o $output$reload_objs'
4556case $host_os in
4557  cygwin* | mingw* | pw32* | cegcc*)
4558    if test "$GCC" != yes; then
4559      reload_cmds=false
4560    fi
4561    ;;
4562  darwin*)
4563    if test "$GCC" = yes; then
4564      reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
4565    else
4566      reload_cmds='$LD$reload_flag -o $output$reload_objs'
4567    fi
4568    ;;
4569esac
4570
4571
4572
4573
4574
4575
4576
4577
4578
4579if test -n "$ac_tool_prefix"; then
4580  # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
4581set dummy ${ac_tool_prefix}objdump; ac_word=$2
4582{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4583$as_echo_n "checking for $ac_word... " >&6; }
4584if ${ac_cv_prog_OBJDUMP+:} false; then :
4585  $as_echo_n "(cached) " >&6
4586else
4587  if test -n "$OBJDUMP"; then
4588  ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
4589else
4590as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4591for as_dir in $PATH
4592do
4593  IFS=$as_save_IFS
4594  test -z "$as_dir" && as_dir=.
4595    for ac_exec_ext in '' $ac_executable_extensions; do
4596  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4597    ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
4598    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4599    break 2
4600  fi
4601done
4602  done
4603IFS=$as_save_IFS
4604
4605fi
4606fi
4607OBJDUMP=$ac_cv_prog_OBJDUMP
4608if test -n "$OBJDUMP"; then
4609  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
4610$as_echo "$OBJDUMP" >&6; }
4611else
4612  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4613$as_echo "no" >&6; }
4614fi
4615
4616
4617fi
4618if test -z "$ac_cv_prog_OBJDUMP"; then
4619  ac_ct_OBJDUMP=$OBJDUMP
4620  # Extract the first word of "objdump", so it can be a program name with args.
4621set dummy objdump; ac_word=$2
4622{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4623$as_echo_n "checking for $ac_word... " >&6; }
4624if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
4625  $as_echo_n "(cached) " >&6
4626else
4627  if test -n "$ac_ct_OBJDUMP"; then
4628  ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
4629else
4630as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4631for as_dir in $PATH
4632do
4633  IFS=$as_save_IFS
4634  test -z "$as_dir" && as_dir=.
4635    for ac_exec_ext in '' $ac_executable_extensions; do
4636  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4637    ac_cv_prog_ac_ct_OBJDUMP="objdump"
4638    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4639    break 2
4640  fi
4641done
4642  done
4643IFS=$as_save_IFS
4644
4645fi
4646fi
4647ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
4648if test -n "$ac_ct_OBJDUMP"; then
4649  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
4650$as_echo "$ac_ct_OBJDUMP" >&6; }
4651else
4652  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4653$as_echo "no" >&6; }
4654fi
4655
4656  if test "x$ac_ct_OBJDUMP" = x; then
4657    OBJDUMP="false"
4658  else
4659    case $cross_compiling:$ac_tool_warned in
4660yes:)
4661{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4662$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4663ac_tool_warned=yes ;;
4664esac
4665    OBJDUMP=$ac_ct_OBJDUMP
4666  fi
4667else
4668  OBJDUMP="$ac_cv_prog_OBJDUMP"
4669fi
4670
4671test -z "$OBJDUMP" && OBJDUMP=objdump
4672
4673
4674
4675
4676
4677
4678{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
4679$as_echo_n "checking how to recognize dependent libraries... " >&6; }
4680if ${lt_cv_deplibs_check_method+:} false; then :
4681  $as_echo_n "(cached) " >&6
4682else
4683  lt_cv_file_magic_cmd='$MAGIC_CMD'
4684lt_cv_file_magic_test_file=
4685lt_cv_deplibs_check_method='unknown'
4686# Need to set the preceding variable on all platforms that support
4687# interlibrary dependencies.
4688# 'none' -- dependencies not supported.
4689# `unknown' -- same as none, but documents that we really don't know.
4690# 'pass_all' -- all dependencies passed with no checks.
4691# 'test_compile' -- check by making test program.
4692# 'file_magic [[regex]]' -- check by looking for files in library path
4693# which responds to the $file_magic_cmd with a given extended regex.
4694# If you have `file' or equivalent on your system and you're not sure
4695# whether `pass_all' will *always* work, you probably want this one.
4696
4697case $host_os in
4698aix[4-9]*)
4699  lt_cv_deplibs_check_method=pass_all
4700  ;;
4701
4702beos*)
4703  lt_cv_deplibs_check_method=pass_all
4704  ;;
4705
4706bsdi[45]*)
4707  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4708  lt_cv_file_magic_cmd='/usr/bin/file -L'
4709  lt_cv_file_magic_test_file=/shlib/libc.so
4710  ;;
4711
4712cygwin*)
4713  # func_win32_libid is a shell function defined in ltmain.sh
4714  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4715  lt_cv_file_magic_cmd='func_win32_libid'
4716  ;;
4717
4718mingw* | pw32*)
4719  # Base MSYS/MinGW do not provide the 'file' command needed by
4720  # func_win32_libid shell function, so use a weaker test based on 'objdump',
4721  # unless we find 'file', for example because we are cross-compiling.
4722  # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
4723  if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
4724    lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4725    lt_cv_file_magic_cmd='func_win32_libid'
4726  else
4727    # Keep this pattern in sync with the one in func_win32_libid.
4728    lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
4729    lt_cv_file_magic_cmd='$OBJDUMP -f'
4730  fi
4731  ;;
4732
4733cegcc*)
4734  # use the weaker test based on 'objdump'. See mingw*.
4735  lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
4736  lt_cv_file_magic_cmd='$OBJDUMP -f'
4737  ;;
4738
4739darwin* | rhapsody*)
4740  lt_cv_deplibs_check_method=pass_all
4741  ;;
4742
4743freebsd* | dragonfly*)
4744  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
4745    case $host_cpu in
4746    i*86 )
4747      # Not sure whether the presence of OpenBSD here was a mistake.
4748      # Let's accept both of them until this is cleared up.
4749      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
4750      lt_cv_file_magic_cmd=/usr/bin/file
4751      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4752      ;;
4753    esac
4754  else
4755    lt_cv_deplibs_check_method=pass_all
4756  fi
4757  ;;
4758
4759gnu*)
4760  lt_cv_deplibs_check_method=pass_all
4761  ;;
4762
4763haiku*)
4764  lt_cv_deplibs_check_method=pass_all
4765  ;;
4766
4767hpux10.20* | hpux11*)
4768  lt_cv_file_magic_cmd=/usr/bin/file
4769  case $host_cpu in
4770  ia64*)
4771    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
4772    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
4773    ;;
4774  hppa*64*)
4775    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]'
4776    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
4777    ;;
4778  *)
4779    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
4780    lt_cv_file_magic_test_file=/usr/lib/libc.sl
4781    ;;
4782  esac
4783  ;;
4784
4785interix[3-9]*)
4786  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
4787  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
4788  ;;
4789
4790irix5* | irix6* | nonstopux*)
4791  case $LD in
4792  *-32|*"-32 ") libmagic=32-bit;;
4793  *-n32|*"-n32 ") libmagic=N32;;
4794  *-64|*"-64 ") libmagic=64-bit;;
4795  *) libmagic=never-match;;
4796  esac
4797  lt_cv_deplibs_check_method=pass_all
4798  ;;
4799
4800# This must be Linux ELF.
4801linux* | k*bsd*-gnu | kopensolaris*-gnu)
4802  lt_cv_deplibs_check_method=pass_all
4803  ;;
4804
4805netbsd*)
4806  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
4807    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4808  else
4809    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
4810  fi
4811  ;;
4812
4813newos6*)
4814  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4815  lt_cv_file_magic_cmd=/usr/bin/file
4816  lt_cv_file_magic_test_file=/usr/lib/libnls.so
4817  ;;
4818
4819*nto* | *qnx*)
4820  lt_cv_deplibs_check_method=pass_all
4821  ;;
4822
4823openbsd*)
4824  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4825    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
4826  else
4827    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4828  fi
4829  ;;
4830
4831osf3* | osf4* | osf5*)
4832  lt_cv_deplibs_check_method=pass_all
4833  ;;
4834
4835rdos*)
4836  lt_cv_deplibs_check_method=pass_all
4837  ;;
4838
4839solaris*)
4840  lt_cv_deplibs_check_method=pass_all
4841  ;;
4842
4843sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
4844  lt_cv_deplibs_check_method=pass_all
4845  ;;
4846
4847sysv4 | sysv4.3*)
4848  case $host_vendor in
4849  motorola)
4850    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]'
4851    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4852    ;;
4853  ncr)
4854    lt_cv_deplibs_check_method=pass_all
4855    ;;
4856  sequent)
4857    lt_cv_file_magic_cmd='/bin/file'
4858    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
4859    ;;
4860  sni)
4861    lt_cv_file_magic_cmd='/bin/file'
4862    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
4863    lt_cv_file_magic_test_file=/lib/libc.so
4864    ;;
4865  siemens)
4866    lt_cv_deplibs_check_method=pass_all
4867    ;;
4868  pc)
4869    lt_cv_deplibs_check_method=pass_all
4870    ;;
4871  esac
4872  ;;
4873
4874tpf*)
4875  lt_cv_deplibs_check_method=pass_all
4876  ;;
4877esac
4878
4879fi
4880{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
4881$as_echo "$lt_cv_deplibs_check_method" >&6; }
4882
4883file_magic_glob=
4884want_nocaseglob=no
4885if test "$build" = "$host"; then
4886  case $host_os in
4887  mingw* | pw32*)
4888    if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
4889      want_nocaseglob=yes
4890    else
4891      file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
4892    fi
4893    ;;
4894  esac
4895fi
4896
4897file_magic_cmd=$lt_cv_file_magic_cmd
4898deplibs_check_method=$lt_cv_deplibs_check_method
4899test -z "$deplibs_check_method" && deplibs_check_method=unknown
4900
4901
4902
4903
4904
4905
4906
4907
4908
4909
4910
4911
4912
4913
4914
4915
4916
4917
4918
4919
4920
4921
4922if test -n "$ac_tool_prefix"; then
4923  # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
4924set dummy ${ac_tool_prefix}dlltool; ac_word=$2
4925{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4926$as_echo_n "checking for $ac_word... " >&6; }
4927if ${ac_cv_prog_DLLTOOL+:} false; then :
4928  $as_echo_n "(cached) " >&6
4929else
4930  if test -n "$DLLTOOL"; then
4931  ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
4932else
4933as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4934for as_dir in $PATH
4935do
4936  IFS=$as_save_IFS
4937  test -z "$as_dir" && as_dir=.
4938    for ac_exec_ext in '' $ac_executable_extensions; do
4939  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4940    ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
4941    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4942    break 2
4943  fi
4944done
4945  done
4946IFS=$as_save_IFS
4947
4948fi
4949fi
4950DLLTOOL=$ac_cv_prog_DLLTOOL
4951if test -n "$DLLTOOL"; then
4952  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
4953$as_echo "$DLLTOOL" >&6; }
4954else
4955  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4956$as_echo "no" >&6; }
4957fi
4958
4959
4960fi
4961if test -z "$ac_cv_prog_DLLTOOL"; then
4962  ac_ct_DLLTOOL=$DLLTOOL
4963  # Extract the first word of "dlltool", so it can be a program name with args.
4964set dummy dlltool; ac_word=$2
4965{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4966$as_echo_n "checking for $ac_word... " >&6; }
4967if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
4968  $as_echo_n "(cached) " >&6
4969else
4970  if test -n "$ac_ct_DLLTOOL"; then
4971  ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
4972else
4973as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4974for as_dir in $PATH
4975do
4976  IFS=$as_save_IFS
4977  test -z "$as_dir" && as_dir=.
4978    for ac_exec_ext in '' $ac_executable_extensions; do
4979  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4980    ac_cv_prog_ac_ct_DLLTOOL="dlltool"
4981    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4982    break 2
4983  fi
4984done
4985  done
4986IFS=$as_save_IFS
4987
4988fi
4989fi
4990ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
4991if test -n "$ac_ct_DLLTOOL"; then
4992  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
4993$as_echo "$ac_ct_DLLTOOL" >&6; }
4994else
4995  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4996$as_echo "no" >&6; }
4997fi
4998
4999  if test "x$ac_ct_DLLTOOL" = x; then
5000    DLLTOOL="false"
5001  else
5002    case $cross_compiling:$ac_tool_warned in
5003yes:)
5004{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5005$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5006ac_tool_warned=yes ;;
5007esac
5008    DLLTOOL=$ac_ct_DLLTOOL
5009  fi
5010else
5011  DLLTOOL="$ac_cv_prog_DLLTOOL"
5012fi
5013
5014test -z "$DLLTOOL" && DLLTOOL=dlltool
5015
5016
5017
5018
5019
5020
5021
5022{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
5023$as_echo_n "checking how to associate runtime and link libraries... " >&6; }
5024if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
5025  $as_echo_n "(cached) " >&6
5026else
5027  lt_cv_sharedlib_from_linklib_cmd='unknown'
5028
5029case $host_os in
5030cygwin* | mingw* | pw32* | cegcc*)
5031  # two different shell functions defined in ltmain.sh
5032  # decide which to use based on capabilities of $DLLTOOL
5033  case `$DLLTOOL --help 2>&1` in
5034  *--identify-strict*)
5035    lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
5036    ;;
5037  *)
5038    lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
5039    ;;
5040  esac
5041  ;;
5042*)
5043  # fallback: assume linklib IS sharedlib
5044  lt_cv_sharedlib_from_linklib_cmd="$ECHO"
5045  ;;
5046esac
5047
5048fi
5049{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
5050$as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
5051sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
5052test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
5053
5054
5055
5056
5057
5058
5059
5060if test -n "$ac_tool_prefix"; then
5061  for ac_prog in ar
5062  do
5063    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5064set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5065{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5066$as_echo_n "checking for $ac_word... " >&6; }
5067if ${ac_cv_prog_AR+:} false; then :
5068  $as_echo_n "(cached) " >&6
5069else
5070  if test -n "$AR"; then
5071  ac_cv_prog_AR="$AR" # Let the user override the test.
5072else
5073as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5074for as_dir in $PATH
5075do
5076  IFS=$as_save_IFS
5077  test -z "$as_dir" && as_dir=.
5078    for ac_exec_ext in '' $ac_executable_extensions; do
5079  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5080    ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
5081    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5082    break 2
5083  fi
5084done
5085  done
5086IFS=$as_save_IFS
5087
5088fi
5089fi
5090AR=$ac_cv_prog_AR
5091if test -n "$AR"; then
5092  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5093$as_echo "$AR" >&6; }
5094else
5095  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5096$as_echo "no" >&6; }
5097fi
5098
5099
5100    test -n "$AR" && break
5101  done
5102fi
5103if test -z "$AR"; then
5104  ac_ct_AR=$AR
5105  for ac_prog in ar
5106do
5107  # Extract the first word of "$ac_prog", so it can be a program name with args.
5108set dummy $ac_prog; ac_word=$2
5109{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5110$as_echo_n "checking for $ac_word... " >&6; }
5111if ${ac_cv_prog_ac_ct_AR+:} false; then :
5112  $as_echo_n "(cached) " >&6
5113else
5114  if test -n "$ac_ct_AR"; then
5115  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5116else
5117as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5118for as_dir in $PATH
5119do
5120  IFS=$as_save_IFS
5121  test -z "$as_dir" && as_dir=.
5122    for ac_exec_ext in '' $ac_executable_extensions; do
5123  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5124    ac_cv_prog_ac_ct_AR="$ac_prog"
5125    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5126    break 2
5127  fi
5128done
5129  done
5130IFS=$as_save_IFS
5131
5132fi
5133fi
5134ac_ct_AR=$ac_cv_prog_ac_ct_AR
5135if test -n "$ac_ct_AR"; then
5136  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5137$as_echo "$ac_ct_AR" >&6; }
5138else
5139  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5140$as_echo "no" >&6; }
5141fi
5142
5143
5144  test -n "$ac_ct_AR" && break
5145done
5146
5147  if test "x$ac_ct_AR" = x; then
5148    AR="false"
5149  else
5150    case $cross_compiling:$ac_tool_warned in
5151yes:)
5152{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5153$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5154ac_tool_warned=yes ;;
5155esac
5156    AR=$ac_ct_AR
5157  fi
5158fi
5159
5160: ${AR=ar}
5161: ${AR_FLAGS=cru}
5162
5163
5164
5165
5166
5167
5168
5169
5170
5171
5172
5173{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
5174$as_echo_n "checking for archiver @FILE support... " >&6; }
5175if ${lt_cv_ar_at_file+:} false; then :
5176  $as_echo_n "(cached) " >&6
5177else
5178  lt_cv_ar_at_file=no
5179   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5180/* end confdefs.h.  */
5181
5182int
5183main ()
5184{
5185
5186  ;
5187  return 0;
5188}
5189_ACEOF
5190if ac_fn_c_try_compile "$LINENO"; then :
5191  echo conftest.$ac_objext > conftest.lst
5192      lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
5193      { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
5194  (eval $lt_ar_try) 2>&5
5195  ac_status=$?
5196  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5197  test $ac_status = 0; }
5198      if test "$ac_status" -eq 0; then
5199	# Ensure the archiver fails upon bogus file names.
5200	rm -f conftest.$ac_objext libconftest.a
5201	{ { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
5202  (eval $lt_ar_try) 2>&5
5203  ac_status=$?
5204  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5205  test $ac_status = 0; }
5206	if test "$ac_status" -ne 0; then
5207          lt_cv_ar_at_file=@
5208        fi
5209      fi
5210      rm -f conftest.* libconftest.a
5211
5212fi
5213rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5214
5215fi
5216{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
5217$as_echo "$lt_cv_ar_at_file" >&6; }
5218
5219if test "x$lt_cv_ar_at_file" = xno; then
5220  archiver_list_spec=
5221else
5222  archiver_list_spec=$lt_cv_ar_at_file
5223fi
5224
5225
5226
5227
5228
5229
5230
5231if test -n "$ac_tool_prefix"; then
5232  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5233set dummy ${ac_tool_prefix}strip; ac_word=$2
5234{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5235$as_echo_n "checking for $ac_word... " >&6; }
5236if ${ac_cv_prog_STRIP+:} false; then :
5237  $as_echo_n "(cached) " >&6
5238else
5239  if test -n "$STRIP"; then
5240  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5241else
5242as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5243for as_dir in $PATH
5244do
5245  IFS=$as_save_IFS
5246  test -z "$as_dir" && as_dir=.
5247    for ac_exec_ext in '' $ac_executable_extensions; do
5248  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5249    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5250    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5251    break 2
5252  fi
5253done
5254  done
5255IFS=$as_save_IFS
5256
5257fi
5258fi
5259STRIP=$ac_cv_prog_STRIP
5260if test -n "$STRIP"; then
5261  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
5262$as_echo "$STRIP" >&6; }
5263else
5264  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5265$as_echo "no" >&6; }
5266fi
5267
5268
5269fi
5270if test -z "$ac_cv_prog_STRIP"; then
5271  ac_ct_STRIP=$STRIP
5272  # Extract the first word of "strip", so it can be a program name with args.
5273set dummy strip; ac_word=$2
5274{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5275$as_echo_n "checking for $ac_word... " >&6; }
5276if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
5277  $as_echo_n "(cached) " >&6
5278else
5279  if test -n "$ac_ct_STRIP"; then
5280  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5281else
5282as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5283for as_dir in $PATH
5284do
5285  IFS=$as_save_IFS
5286  test -z "$as_dir" && as_dir=.
5287    for ac_exec_ext in '' $ac_executable_extensions; do
5288  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5289    ac_cv_prog_ac_ct_STRIP="strip"
5290    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5291    break 2
5292  fi
5293done
5294  done
5295IFS=$as_save_IFS
5296
5297fi
5298fi
5299ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5300if test -n "$ac_ct_STRIP"; then
5301  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
5302$as_echo "$ac_ct_STRIP" >&6; }
5303else
5304  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5305$as_echo "no" >&6; }
5306fi
5307
5308  if test "x$ac_ct_STRIP" = x; then
5309    STRIP=":"
5310  else
5311    case $cross_compiling:$ac_tool_warned in
5312yes:)
5313{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5314$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5315ac_tool_warned=yes ;;
5316esac
5317    STRIP=$ac_ct_STRIP
5318  fi
5319else
5320  STRIP="$ac_cv_prog_STRIP"
5321fi
5322
5323test -z "$STRIP" && STRIP=:
5324
5325
5326
5327
5328
5329
5330if test -n "$ac_tool_prefix"; then
5331  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5332set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5333{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5334$as_echo_n "checking for $ac_word... " >&6; }
5335if ${ac_cv_prog_RANLIB+:} false; then :
5336  $as_echo_n "(cached) " >&6
5337else
5338  if test -n "$RANLIB"; then
5339  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5340else
5341as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5342for as_dir in $PATH
5343do
5344  IFS=$as_save_IFS
5345  test -z "$as_dir" && as_dir=.
5346    for ac_exec_ext in '' $ac_executable_extensions; do
5347  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5348    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5349    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5350    break 2
5351  fi
5352done
5353  done
5354IFS=$as_save_IFS
5355
5356fi
5357fi
5358RANLIB=$ac_cv_prog_RANLIB
5359if test -n "$RANLIB"; then
5360  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5361$as_echo "$RANLIB" >&6; }
5362else
5363  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5364$as_echo "no" >&6; }
5365fi
5366
5367
5368fi
5369if test -z "$ac_cv_prog_RANLIB"; then
5370  ac_ct_RANLIB=$RANLIB
5371  # Extract the first word of "ranlib", so it can be a program name with args.
5372set dummy ranlib; ac_word=$2
5373{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5374$as_echo_n "checking for $ac_word... " >&6; }
5375if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
5376  $as_echo_n "(cached) " >&6
5377else
5378  if test -n "$ac_ct_RANLIB"; then
5379  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5380else
5381as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5382for as_dir in $PATH
5383do
5384  IFS=$as_save_IFS
5385  test -z "$as_dir" && as_dir=.
5386    for ac_exec_ext in '' $ac_executable_extensions; do
5387  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5388    ac_cv_prog_ac_ct_RANLIB="ranlib"
5389    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5390    break 2
5391  fi
5392done
5393  done
5394IFS=$as_save_IFS
5395
5396fi
5397fi
5398ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5399if test -n "$ac_ct_RANLIB"; then
5400  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5401$as_echo "$ac_ct_RANLIB" >&6; }
5402else
5403  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5404$as_echo "no" >&6; }
5405fi
5406
5407  if test "x$ac_ct_RANLIB" = x; then
5408    RANLIB=":"
5409  else
5410    case $cross_compiling:$ac_tool_warned in
5411yes:)
5412{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5413$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5414ac_tool_warned=yes ;;
5415esac
5416    RANLIB=$ac_ct_RANLIB
5417  fi
5418else
5419  RANLIB="$ac_cv_prog_RANLIB"
5420fi
5421
5422test -z "$RANLIB" && RANLIB=:
5423
5424
5425
5426
5427
5428
5429# Determine commands to create old-style static archives.
5430old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
5431old_postinstall_cmds='chmod 644 $oldlib'
5432old_postuninstall_cmds=
5433
5434if test -n "$RANLIB"; then
5435  case $host_os in
5436  openbsd*)
5437    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
5438    ;;
5439  *)
5440    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
5441    ;;
5442  esac
5443  old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
5444fi
5445
5446case $host_os in
5447  darwin*)
5448    lock_old_archive_extraction=yes ;;
5449  *)
5450    lock_old_archive_extraction=no ;;
5451esac
5452
5453
5454
5455
5456
5457
5458
5459
5460
5461
5462
5463
5464
5465
5466
5467
5468
5469
5470
5471
5472
5473for ac_prog in gawk mawk nawk awk
5474do
5475  # Extract the first word of "$ac_prog", so it can be a program name with args.
5476set dummy $ac_prog; ac_word=$2
5477{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5478$as_echo_n "checking for $ac_word... " >&6; }
5479if ${ac_cv_prog_AWK+:} false; then :
5480  $as_echo_n "(cached) " >&6
5481else
5482  if test -n "$AWK"; then
5483  ac_cv_prog_AWK="$AWK" # Let the user override the test.
5484else
5485as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5486for as_dir in $PATH
5487do
5488  IFS=$as_save_IFS
5489  test -z "$as_dir" && as_dir=.
5490    for ac_exec_ext in '' $ac_executable_extensions; do
5491  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5492    ac_cv_prog_AWK="$ac_prog"
5493    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5494    break 2
5495  fi
5496done
5497  done
5498IFS=$as_save_IFS
5499
5500fi
5501fi
5502AWK=$ac_cv_prog_AWK
5503if test -n "$AWK"; then
5504  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
5505$as_echo "$AWK" >&6; }
5506else
5507  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5508$as_echo "no" >&6; }
5509fi
5510
5511
5512  test -n "$AWK" && break
5513done
5514
5515
5516
5517
5518
5519
5520
5521
5522
5523
5524
5525
5526
5527
5528
5529
5530
5531
5532
5533# If no C compiler was specified, use CC.
5534LTCC=${LTCC-"$CC"}
5535
5536# If no C compiler flags were specified, use CFLAGS.
5537LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
5538
5539# Allow CC to be a program name with arguments.
5540compiler=$CC
5541
5542
5543# Check for command to grab the raw symbol name followed by C symbol from nm.
5544{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
5545$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
5546if ${lt_cv_sys_global_symbol_pipe+:} false; then :
5547  $as_echo_n "(cached) " >&6
5548else
5549
5550# These are sane defaults that work on at least a few old systems.
5551# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
5552
5553# Character class describing NM global symbol codes.
5554symcode='[BCDEGRST]'
5555
5556# Regexp to match symbols that can be accessed directly from C.
5557sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5558
5559# Define system-specific variables.
5560case $host_os in
5561aix*)
5562  symcode='[BCDT]'
5563  ;;
5564cygwin* | mingw* | pw32* | cegcc*)
5565  symcode='[ABCDGISTW]'
5566  ;;
5567hpux*)
5568  if test "$host_cpu" = ia64; then
5569    symcode='[ABCDEGRST]'
5570  fi
5571  ;;
5572irix* | nonstopux*)
5573  symcode='[BCDEGRST]'
5574  ;;
5575osf*)
5576  symcode='[BCDEGQRST]'
5577  ;;
5578solaris*)
5579  symcode='[BDRT]'
5580  ;;
5581sco3.2v5*)
5582  symcode='[DT]'
5583  ;;
5584sysv4.2uw2*)
5585  symcode='[DT]'
5586  ;;
5587sysv5* | sco5v6* | unixware* | OpenUNIX*)
5588  symcode='[ABDT]'
5589  ;;
5590sysv4)
5591  symcode='[DFNSTU]'
5592  ;;
5593esac
5594
5595# If we're using GNU nm, then use its standard symbol codes.
5596case `$NM -V 2>&1` in
5597*GNU* | *'with BFD'*)
5598  symcode='[ABCDGIRSTW]' ;;
5599esac
5600
5601# Transform an extracted symbol line into a proper C declaration.
5602# Some systems (esp. on ia64) link data and code symbols differently,
5603# so use this general approach.
5604lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5605
5606# Transform an extracted symbol line into symbol name and symbol address
5607lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'"
5608lt_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'"
5609
5610# Handle CRLF in mingw tool chain
5611opt_cr=
5612case $build_os in
5613mingw*)
5614  opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5615  ;;
5616esac
5617
5618# Try without a prefix underscore, then with it.
5619for ac_symprfx in "" "_"; do
5620
5621  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
5622  symxfrm="\\1 $ac_symprfx\\2 \\2"
5623
5624  # Write the raw and C identifiers.
5625  if test "$lt_cv_nm_interface" = "MS dumpbin"; then
5626    # Fake it for dumpbin and say T for any non-static function
5627    # and D for any global variable.
5628    # Also find C++ and __fastcall symbols from MSVC++,
5629    # which start with @ or ?.
5630    lt_cv_sys_global_symbol_pipe="$AWK '"\
5631"     {last_section=section; section=\$ 3};"\
5632"     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
5633"     \$ 0!~/External *\|/{next};"\
5634"     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
5635"     {if(hide[section]) next};"\
5636"     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
5637"     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
5638"     s[1]~/^[@?]/{print s[1], s[1]; next};"\
5639"     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
5640"     ' prfx=^$ac_symprfx"
5641  else
5642    lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[	 ]\($symcode$symcode*\)[	 ][	 ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
5643  fi
5644  lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
5645
5646  # Check to see that the pipe works correctly.
5647  pipe_works=no
5648
5649  rm -f conftest*
5650  cat > conftest.$ac_ext <<_LT_EOF
5651#ifdef __cplusplus
5652extern "C" {
5653#endif
5654char nm_test_var;
5655void nm_test_func(void);
5656void nm_test_func(void){}
5657#ifdef __cplusplus
5658}
5659#endif
5660int main(){nm_test_var='a';nm_test_func();return(0);}
5661_LT_EOF
5662
5663  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5664  (eval $ac_compile) 2>&5
5665  ac_status=$?
5666  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5667  test $ac_status = 0; }; then
5668    # Now try to grab the symbols.
5669    nlist=conftest.nm
5670    if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
5671  (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
5672  ac_status=$?
5673  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5674  test $ac_status = 0; } && test -s "$nlist"; then
5675      # Try sorting and uniquifying the output.
5676      if sort "$nlist" | uniq > "$nlist"T; then
5677	mv -f "$nlist"T "$nlist"
5678      else
5679	rm -f "$nlist"T
5680      fi
5681
5682      # Make sure that we snagged all the symbols we need.
5683      if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
5684	if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
5685	  cat <<_LT_EOF > conftest.$ac_ext
5686/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests.  */
5687#if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
5688/* DATA imports from DLLs on WIN32 con't be const, because runtime
5689   relocations are performed -- see ld's documentation on pseudo-relocs.  */
5690# define LT_DLSYM_CONST
5691#elif defined(__osf__)
5692/* This system does not cope well with relocations in const data.  */
5693# define LT_DLSYM_CONST
5694#else
5695# define LT_DLSYM_CONST const
5696#endif
5697
5698#ifdef __cplusplus
5699extern "C" {
5700#endif
5701
5702_LT_EOF
5703	  # Now generate the symbol file.
5704	  eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
5705
5706	  cat <<_LT_EOF >> conftest.$ac_ext
5707
5708/* The mapping between symbol names and symbols.  */
5709LT_DLSYM_CONST struct {
5710  const char *name;
5711  void       *address;
5712}
5713lt__PROGRAM__LTX_preloaded_symbols[] =
5714{
5715  { "@PROGRAM@", (void *) 0 },
5716_LT_EOF
5717	  $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
5718	  cat <<\_LT_EOF >> conftest.$ac_ext
5719  {0, (void *) 0}
5720};
5721
5722/* This works around a problem in FreeBSD linker */
5723#ifdef FREEBSD_WORKAROUND
5724static const void *lt_preloaded_setup() {
5725  return lt__PROGRAM__LTX_preloaded_symbols;
5726}
5727#endif
5728
5729#ifdef __cplusplus
5730}
5731#endif
5732_LT_EOF
5733	  # Now try linking the two files.
5734	  mv conftest.$ac_objext conftstm.$ac_objext
5735	  lt_globsym_save_LIBS=$LIBS
5736	  lt_globsym_save_CFLAGS=$CFLAGS
5737	  LIBS="conftstm.$ac_objext"
5738	  CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
5739	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
5740  (eval $ac_link) 2>&5
5741  ac_status=$?
5742  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5743  test $ac_status = 0; } && test -s conftest${ac_exeext}; then
5744	    pipe_works=yes
5745	  fi
5746	  LIBS=$lt_globsym_save_LIBS
5747	  CFLAGS=$lt_globsym_save_CFLAGS
5748	else
5749	  echo "cannot find nm_test_func in $nlist" >&5
5750	fi
5751      else
5752	echo "cannot find nm_test_var in $nlist" >&5
5753      fi
5754    else
5755      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
5756    fi
5757  else
5758    echo "$progname: failed program was:" >&5
5759    cat conftest.$ac_ext >&5
5760  fi
5761  rm -rf conftest* conftst*
5762
5763  # Do not use the global_symbol_pipe unless it works.
5764  if test "$pipe_works" = yes; then
5765    break
5766  else
5767    lt_cv_sys_global_symbol_pipe=
5768  fi
5769done
5770
5771fi
5772
5773if test -z "$lt_cv_sys_global_symbol_pipe"; then
5774  lt_cv_sys_global_symbol_to_cdecl=
5775fi
5776if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
5777  { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
5778$as_echo "failed" >&6; }
5779else
5780  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
5781$as_echo "ok" >&6; }
5782fi
5783
5784# Response file support.
5785if test "$lt_cv_nm_interface" = "MS dumpbin"; then
5786  nm_file_list_spec='@'
5787elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
5788  nm_file_list_spec='@'
5789fi
5790
5791
5792
5793
5794
5795
5796
5797
5798
5799
5800
5801
5802
5803
5804
5805
5806
5807
5808
5809
5810
5811
5812
5813
5814
5815
5816
5817{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
5818$as_echo_n "checking for sysroot... " >&6; }
5819
5820# Check whether --with-sysroot was given.
5821if test "${with_sysroot+set}" = set; then :
5822  withval=$with_sysroot;
5823else
5824  with_sysroot=no
5825fi
5826
5827
5828lt_sysroot=
5829case ${with_sysroot} in #(
5830 yes)
5831   if test "$GCC" = yes; then
5832     lt_sysroot=`$CC --print-sysroot 2>/dev/null`
5833   fi
5834   ;; #(
5835 /*)
5836   lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
5837   ;; #(
5838 no|'')
5839   ;; #(
5840 *)
5841   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
5842$as_echo "${with_sysroot}" >&6; }
5843   as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
5844   ;;
5845esac
5846
5847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
5848$as_echo "${lt_sysroot:-no}" >&6; }
5849
5850
5851
5852
5853
5854# Check whether --enable-libtool-lock was given.
5855if test "${enable_libtool_lock+set}" = set; then :
5856  enableval=$enable_libtool_lock;
5857fi
5858
5859test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
5860
5861# Some flags need to be propagated to the compiler or linker for good
5862# libtool support.
5863case $host in
5864ia64-*-hpux*)
5865  # Find out which ABI we are using.
5866  echo 'int i;' > conftest.$ac_ext
5867  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5868  (eval $ac_compile) 2>&5
5869  ac_status=$?
5870  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5871  test $ac_status = 0; }; then
5872    case `/usr/bin/file conftest.$ac_objext` in
5873      *ELF-32*)
5874	HPUX_IA64_MODE="32"
5875	;;
5876      *ELF-64*)
5877	HPUX_IA64_MODE="64"
5878	;;
5879    esac
5880  fi
5881  rm -rf conftest*
5882  ;;
5883*-*-irix6*)
5884  # Find out which ABI we are using.
5885  echo '#line '$LINENO' "configure"' > conftest.$ac_ext
5886  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5887  (eval $ac_compile) 2>&5
5888  ac_status=$?
5889  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5890  test $ac_status = 0; }; then
5891    if test "$lt_cv_prog_gnu_ld" = yes; then
5892      case `/usr/bin/file conftest.$ac_objext` in
5893	*32-bit*)
5894	  LD="${LD-ld} -melf32bsmip"
5895	  ;;
5896	*N32*)
5897	  LD="${LD-ld} -melf32bmipn32"
5898	  ;;
5899	*64-bit*)
5900	  LD="${LD-ld} -melf64bmip"
5901	;;
5902      esac
5903    else
5904      case `/usr/bin/file conftest.$ac_objext` in
5905	*32-bit*)
5906	  LD="${LD-ld} -32"
5907	  ;;
5908	*N32*)
5909	  LD="${LD-ld} -n32"
5910	  ;;
5911	*64-bit*)
5912	  LD="${LD-ld} -64"
5913	  ;;
5914      esac
5915    fi
5916  fi
5917  rm -rf conftest*
5918  ;;
5919
5920x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
5921s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
5922  # Find out which ABI we are using.
5923  echo 'int i;' > conftest.$ac_ext
5924  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5925  (eval $ac_compile) 2>&5
5926  ac_status=$?
5927  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5928  test $ac_status = 0; }; then
5929    case `/usr/bin/file conftest.o` in
5930      *32-bit*)
5931	case $host in
5932	  x86_64-*kfreebsd*-gnu)
5933	    LD="${LD-ld} -m elf_i386_fbsd"
5934	    ;;
5935	  x86_64-*linux*)
5936	    LD="${LD-ld} -m elf_i386"
5937	    ;;
5938	  ppc64-*linux*|powerpc64-*linux*)
5939	    LD="${LD-ld} -m elf32ppclinux"
5940	    ;;
5941	  s390x-*linux*)
5942	    LD="${LD-ld} -m elf_s390"
5943	    ;;
5944	  sparc64-*linux*)
5945	    LD="${LD-ld} -m elf32_sparc"
5946	    ;;
5947	esac
5948	;;
5949      *64-bit*)
5950	case $host in
5951	  x86_64-*kfreebsd*-gnu)
5952	    LD="${LD-ld} -m elf_x86_64_fbsd"
5953	    ;;
5954	  x86_64-*linux*)
5955	    LD="${LD-ld} -m elf_x86_64"
5956	    ;;
5957	  ppc*-*linux*|powerpc*-*linux*)
5958	    LD="${LD-ld} -m elf64ppc"
5959	    ;;
5960	  s390*-*linux*|s390*-*tpf*)
5961	    LD="${LD-ld} -m elf64_s390"
5962	    ;;
5963	  sparc*-*linux*)
5964	    LD="${LD-ld} -m elf64_sparc"
5965	    ;;
5966	esac
5967	;;
5968    esac
5969  fi
5970  rm -rf conftest*
5971  ;;
5972
5973*-*-sco3.2v5*)
5974  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
5975  SAVE_CFLAGS="$CFLAGS"
5976  CFLAGS="$CFLAGS -belf"
5977  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
5978$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
5979if ${lt_cv_cc_needs_belf+:} false; then :
5980  $as_echo_n "(cached) " >&6
5981else
5982  ac_ext=c
5983ac_cpp='$CPP $CPPFLAGS'
5984ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5985ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5986ac_compiler_gnu=$ac_cv_c_compiler_gnu
5987
5988     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5989/* end confdefs.h.  */
5990
5991int
5992main ()
5993{
5994
5995  ;
5996  return 0;
5997}
5998_ACEOF
5999if ac_fn_c_try_link "$LINENO"; then :
6000  lt_cv_cc_needs_belf=yes
6001else
6002  lt_cv_cc_needs_belf=no
6003fi
6004rm -f core conftest.err conftest.$ac_objext \
6005    conftest$ac_exeext conftest.$ac_ext
6006     ac_ext=c
6007ac_cpp='$CPP $CPPFLAGS'
6008ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6009ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6010ac_compiler_gnu=$ac_cv_c_compiler_gnu
6011
6012fi
6013{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
6014$as_echo "$lt_cv_cc_needs_belf" >&6; }
6015  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6016    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6017    CFLAGS="$SAVE_CFLAGS"
6018  fi
6019  ;;
6020sparc*-*solaris*)
6021  # Find out which ABI we are using.
6022  echo 'int i;' > conftest.$ac_ext
6023  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6024  (eval $ac_compile) 2>&5
6025  ac_status=$?
6026  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6027  test $ac_status = 0; }; then
6028    case `/usr/bin/file conftest.o` in
6029    *64-bit*)
6030      case $lt_cv_prog_gnu_ld in
6031      yes*) LD="${LD-ld} -m elf64_sparc" ;;
6032      *)
6033	if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6034	  LD="${LD-ld} -64"
6035	fi
6036	;;
6037      esac
6038      ;;
6039    esac
6040  fi
6041  rm -rf conftest*
6042  ;;
6043esac
6044
6045need_locks="$enable_libtool_lock"
6046
6047if test -n "$ac_tool_prefix"; then
6048  # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
6049set dummy ${ac_tool_prefix}mt; ac_word=$2
6050{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6051$as_echo_n "checking for $ac_word... " >&6; }
6052if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
6053  $as_echo_n "(cached) " >&6
6054else
6055  if test -n "$MANIFEST_TOOL"; then
6056  ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
6057else
6058as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6059for as_dir in $PATH
6060do
6061  IFS=$as_save_IFS
6062  test -z "$as_dir" && as_dir=.
6063    for ac_exec_ext in '' $ac_executable_extensions; do
6064  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6065    ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
6066    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6067    break 2
6068  fi
6069done
6070  done
6071IFS=$as_save_IFS
6072
6073fi
6074fi
6075MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
6076if test -n "$MANIFEST_TOOL"; then
6077  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
6078$as_echo "$MANIFEST_TOOL" >&6; }
6079else
6080  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6081$as_echo "no" >&6; }
6082fi
6083
6084
6085fi
6086if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
6087  ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
6088  # Extract the first word of "mt", so it can be a program name with args.
6089set dummy mt; ac_word=$2
6090{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6091$as_echo_n "checking for $ac_word... " >&6; }
6092if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
6093  $as_echo_n "(cached) " >&6
6094else
6095  if test -n "$ac_ct_MANIFEST_TOOL"; then
6096  ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
6097else
6098as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6099for as_dir in $PATH
6100do
6101  IFS=$as_save_IFS
6102  test -z "$as_dir" && as_dir=.
6103    for ac_exec_ext in '' $ac_executable_extensions; do
6104  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6105    ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
6106    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6107    break 2
6108  fi
6109done
6110  done
6111IFS=$as_save_IFS
6112
6113fi
6114fi
6115ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
6116if test -n "$ac_ct_MANIFEST_TOOL"; then
6117  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
6118$as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
6119else
6120  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6121$as_echo "no" >&6; }
6122fi
6123
6124  if test "x$ac_ct_MANIFEST_TOOL" = x; then
6125    MANIFEST_TOOL=":"
6126  else
6127    case $cross_compiling:$ac_tool_warned in
6128yes:)
6129{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6130$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6131ac_tool_warned=yes ;;
6132esac
6133    MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
6134  fi
6135else
6136  MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
6137fi
6138
6139test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
6140{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
6141$as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
6142if ${lt_cv_path_mainfest_tool+:} false; then :
6143  $as_echo_n "(cached) " >&6
6144else
6145  lt_cv_path_mainfest_tool=no
6146  echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
6147  $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
6148  cat conftest.err >&5
6149  if $GREP 'Manifest Tool' conftest.out > /dev/null; then
6150    lt_cv_path_mainfest_tool=yes
6151  fi
6152  rm -f conftest*
6153fi
6154{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
6155$as_echo "$lt_cv_path_mainfest_tool" >&6; }
6156if test "x$lt_cv_path_mainfest_tool" != xyes; then
6157  MANIFEST_TOOL=:
6158fi
6159
6160
6161
6162
6163
6164
6165  case $host_os in
6166    rhapsody* | darwin*)
6167    if test -n "$ac_tool_prefix"; then
6168  # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
6169set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
6170{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6171$as_echo_n "checking for $ac_word... " >&6; }
6172if ${ac_cv_prog_DSYMUTIL+:} false; then :
6173  $as_echo_n "(cached) " >&6
6174else
6175  if test -n "$DSYMUTIL"; then
6176  ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
6177else
6178as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6179for as_dir in $PATH
6180do
6181  IFS=$as_save_IFS
6182  test -z "$as_dir" && as_dir=.
6183    for ac_exec_ext in '' $ac_executable_extensions; do
6184  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6185    ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
6186    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6187    break 2
6188  fi
6189done
6190  done
6191IFS=$as_save_IFS
6192
6193fi
6194fi
6195DSYMUTIL=$ac_cv_prog_DSYMUTIL
6196if test -n "$DSYMUTIL"; then
6197  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
6198$as_echo "$DSYMUTIL" >&6; }
6199else
6200  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6201$as_echo "no" >&6; }
6202fi
6203
6204
6205fi
6206if test -z "$ac_cv_prog_DSYMUTIL"; then
6207  ac_ct_DSYMUTIL=$DSYMUTIL
6208  # Extract the first word of "dsymutil", so it can be a program name with args.
6209set dummy dsymutil; ac_word=$2
6210{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6211$as_echo_n "checking for $ac_word... " >&6; }
6212if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
6213  $as_echo_n "(cached) " >&6
6214else
6215  if test -n "$ac_ct_DSYMUTIL"; then
6216  ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
6217else
6218as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6219for as_dir in $PATH
6220do
6221  IFS=$as_save_IFS
6222  test -z "$as_dir" && as_dir=.
6223    for ac_exec_ext in '' $ac_executable_extensions; do
6224  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6225    ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
6226    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6227    break 2
6228  fi
6229done
6230  done
6231IFS=$as_save_IFS
6232
6233fi
6234fi
6235ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
6236if test -n "$ac_ct_DSYMUTIL"; then
6237  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
6238$as_echo "$ac_ct_DSYMUTIL" >&6; }
6239else
6240  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6241$as_echo "no" >&6; }
6242fi
6243
6244  if test "x$ac_ct_DSYMUTIL" = x; then
6245    DSYMUTIL=":"
6246  else
6247    case $cross_compiling:$ac_tool_warned in
6248yes:)
6249{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6250$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6251ac_tool_warned=yes ;;
6252esac
6253    DSYMUTIL=$ac_ct_DSYMUTIL
6254  fi
6255else
6256  DSYMUTIL="$ac_cv_prog_DSYMUTIL"
6257fi
6258
6259    if test -n "$ac_tool_prefix"; then
6260  # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
6261set dummy ${ac_tool_prefix}nmedit; ac_word=$2
6262{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6263$as_echo_n "checking for $ac_word... " >&6; }
6264if ${ac_cv_prog_NMEDIT+:} false; then :
6265  $as_echo_n "(cached) " >&6
6266else
6267  if test -n "$NMEDIT"; then
6268  ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
6269else
6270as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6271for as_dir in $PATH
6272do
6273  IFS=$as_save_IFS
6274  test -z "$as_dir" && as_dir=.
6275    for ac_exec_ext in '' $ac_executable_extensions; do
6276  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6277    ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
6278    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6279    break 2
6280  fi
6281done
6282  done
6283IFS=$as_save_IFS
6284
6285fi
6286fi
6287NMEDIT=$ac_cv_prog_NMEDIT
6288if test -n "$NMEDIT"; then
6289  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
6290$as_echo "$NMEDIT" >&6; }
6291else
6292  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6293$as_echo "no" >&6; }
6294fi
6295
6296
6297fi
6298if test -z "$ac_cv_prog_NMEDIT"; then
6299  ac_ct_NMEDIT=$NMEDIT
6300  # Extract the first word of "nmedit", so it can be a program name with args.
6301set dummy nmedit; ac_word=$2
6302{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6303$as_echo_n "checking for $ac_word... " >&6; }
6304if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
6305  $as_echo_n "(cached) " >&6
6306else
6307  if test -n "$ac_ct_NMEDIT"; then
6308  ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
6309else
6310as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6311for as_dir in $PATH
6312do
6313  IFS=$as_save_IFS
6314  test -z "$as_dir" && as_dir=.
6315    for ac_exec_ext in '' $ac_executable_extensions; do
6316  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6317    ac_cv_prog_ac_ct_NMEDIT="nmedit"
6318    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6319    break 2
6320  fi
6321done
6322  done
6323IFS=$as_save_IFS
6324
6325fi
6326fi
6327ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
6328if test -n "$ac_ct_NMEDIT"; then
6329  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
6330$as_echo "$ac_ct_NMEDIT" >&6; }
6331else
6332  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6333$as_echo "no" >&6; }
6334fi
6335
6336  if test "x$ac_ct_NMEDIT" = x; then
6337    NMEDIT=":"
6338  else
6339    case $cross_compiling:$ac_tool_warned in
6340yes:)
6341{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6342$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6343ac_tool_warned=yes ;;
6344esac
6345    NMEDIT=$ac_ct_NMEDIT
6346  fi
6347else
6348  NMEDIT="$ac_cv_prog_NMEDIT"
6349fi
6350
6351    if test -n "$ac_tool_prefix"; then
6352  # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
6353set dummy ${ac_tool_prefix}lipo; ac_word=$2
6354{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6355$as_echo_n "checking for $ac_word... " >&6; }
6356if ${ac_cv_prog_LIPO+:} false; then :
6357  $as_echo_n "(cached) " >&6
6358else
6359  if test -n "$LIPO"; then
6360  ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
6361else
6362as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6363for as_dir in $PATH
6364do
6365  IFS=$as_save_IFS
6366  test -z "$as_dir" && as_dir=.
6367    for ac_exec_ext in '' $ac_executable_extensions; do
6368  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6369    ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
6370    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6371    break 2
6372  fi
6373done
6374  done
6375IFS=$as_save_IFS
6376
6377fi
6378fi
6379LIPO=$ac_cv_prog_LIPO
6380if test -n "$LIPO"; then
6381  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
6382$as_echo "$LIPO" >&6; }
6383else
6384  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6385$as_echo "no" >&6; }
6386fi
6387
6388
6389fi
6390if test -z "$ac_cv_prog_LIPO"; then
6391  ac_ct_LIPO=$LIPO
6392  # Extract the first word of "lipo", so it can be a program name with args.
6393set dummy lipo; ac_word=$2
6394{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6395$as_echo_n "checking for $ac_word... " >&6; }
6396if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
6397  $as_echo_n "(cached) " >&6
6398else
6399  if test -n "$ac_ct_LIPO"; then
6400  ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
6401else
6402as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6403for as_dir in $PATH
6404do
6405  IFS=$as_save_IFS
6406  test -z "$as_dir" && as_dir=.
6407    for ac_exec_ext in '' $ac_executable_extensions; do
6408  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6409    ac_cv_prog_ac_ct_LIPO="lipo"
6410    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6411    break 2
6412  fi
6413done
6414  done
6415IFS=$as_save_IFS
6416
6417fi
6418fi
6419ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
6420if test -n "$ac_ct_LIPO"; then
6421  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
6422$as_echo "$ac_ct_LIPO" >&6; }
6423else
6424  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6425$as_echo "no" >&6; }
6426fi
6427
6428  if test "x$ac_ct_LIPO" = x; then
6429    LIPO=":"
6430  else
6431    case $cross_compiling:$ac_tool_warned in
6432yes:)
6433{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6434$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6435ac_tool_warned=yes ;;
6436esac
6437    LIPO=$ac_ct_LIPO
6438  fi
6439else
6440  LIPO="$ac_cv_prog_LIPO"
6441fi
6442
6443    if test -n "$ac_tool_prefix"; then
6444  # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
6445set dummy ${ac_tool_prefix}otool; ac_word=$2
6446{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6447$as_echo_n "checking for $ac_word... " >&6; }
6448if ${ac_cv_prog_OTOOL+:} false; then :
6449  $as_echo_n "(cached) " >&6
6450else
6451  if test -n "$OTOOL"; then
6452  ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
6453else
6454as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6455for as_dir in $PATH
6456do
6457  IFS=$as_save_IFS
6458  test -z "$as_dir" && as_dir=.
6459    for ac_exec_ext in '' $ac_executable_extensions; do
6460  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6461    ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
6462    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6463    break 2
6464  fi
6465done
6466  done
6467IFS=$as_save_IFS
6468
6469fi
6470fi
6471OTOOL=$ac_cv_prog_OTOOL
6472if test -n "$OTOOL"; then
6473  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
6474$as_echo "$OTOOL" >&6; }
6475else
6476  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6477$as_echo "no" >&6; }
6478fi
6479
6480
6481fi
6482if test -z "$ac_cv_prog_OTOOL"; then
6483  ac_ct_OTOOL=$OTOOL
6484  # Extract the first word of "otool", so it can be a program name with args.
6485set dummy otool; ac_word=$2
6486{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6487$as_echo_n "checking for $ac_word... " >&6; }
6488if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
6489  $as_echo_n "(cached) " >&6
6490else
6491  if test -n "$ac_ct_OTOOL"; then
6492  ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
6493else
6494as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6495for as_dir in $PATH
6496do
6497  IFS=$as_save_IFS
6498  test -z "$as_dir" && as_dir=.
6499    for ac_exec_ext in '' $ac_executable_extensions; do
6500  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6501    ac_cv_prog_ac_ct_OTOOL="otool"
6502    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6503    break 2
6504  fi
6505done
6506  done
6507IFS=$as_save_IFS
6508
6509fi
6510fi
6511ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
6512if test -n "$ac_ct_OTOOL"; then
6513  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
6514$as_echo "$ac_ct_OTOOL" >&6; }
6515else
6516  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6517$as_echo "no" >&6; }
6518fi
6519
6520  if test "x$ac_ct_OTOOL" = x; then
6521    OTOOL=":"
6522  else
6523    case $cross_compiling:$ac_tool_warned in
6524yes:)
6525{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6526$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6527ac_tool_warned=yes ;;
6528esac
6529    OTOOL=$ac_ct_OTOOL
6530  fi
6531else
6532  OTOOL="$ac_cv_prog_OTOOL"
6533fi
6534
6535    if test -n "$ac_tool_prefix"; then
6536  # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
6537set dummy ${ac_tool_prefix}otool64; ac_word=$2
6538{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6539$as_echo_n "checking for $ac_word... " >&6; }
6540if ${ac_cv_prog_OTOOL64+:} false; then :
6541  $as_echo_n "(cached) " >&6
6542else
6543  if test -n "$OTOOL64"; then
6544  ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
6545else
6546as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6547for as_dir in $PATH
6548do
6549  IFS=$as_save_IFS
6550  test -z "$as_dir" && as_dir=.
6551    for ac_exec_ext in '' $ac_executable_extensions; do
6552  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6553    ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
6554    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6555    break 2
6556  fi
6557done
6558  done
6559IFS=$as_save_IFS
6560
6561fi
6562fi
6563OTOOL64=$ac_cv_prog_OTOOL64
6564if test -n "$OTOOL64"; then
6565  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
6566$as_echo "$OTOOL64" >&6; }
6567else
6568  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6569$as_echo "no" >&6; }
6570fi
6571
6572
6573fi
6574if test -z "$ac_cv_prog_OTOOL64"; then
6575  ac_ct_OTOOL64=$OTOOL64
6576  # Extract the first word of "otool64", so it can be a program name with args.
6577set dummy otool64; ac_word=$2
6578{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6579$as_echo_n "checking for $ac_word... " >&6; }
6580if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
6581  $as_echo_n "(cached) " >&6
6582else
6583  if test -n "$ac_ct_OTOOL64"; then
6584  ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
6585else
6586as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6587for as_dir in $PATH
6588do
6589  IFS=$as_save_IFS
6590  test -z "$as_dir" && as_dir=.
6591    for ac_exec_ext in '' $ac_executable_extensions; do
6592  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6593    ac_cv_prog_ac_ct_OTOOL64="otool64"
6594    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6595    break 2
6596  fi
6597done
6598  done
6599IFS=$as_save_IFS
6600
6601fi
6602fi
6603ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
6604if test -n "$ac_ct_OTOOL64"; then
6605  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
6606$as_echo "$ac_ct_OTOOL64" >&6; }
6607else
6608  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6609$as_echo "no" >&6; }
6610fi
6611
6612  if test "x$ac_ct_OTOOL64" = x; then
6613    OTOOL64=":"
6614  else
6615    case $cross_compiling:$ac_tool_warned in
6616yes:)
6617{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6618$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6619ac_tool_warned=yes ;;
6620esac
6621    OTOOL64=$ac_ct_OTOOL64
6622  fi
6623else
6624  OTOOL64="$ac_cv_prog_OTOOL64"
6625fi
6626
6627
6628
6629
6630
6631
6632
6633
6634
6635
6636
6637
6638
6639
6640
6641
6642
6643
6644
6645
6646
6647
6648
6649
6650
6651
6652
6653    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
6654$as_echo_n "checking for -single_module linker flag... " >&6; }
6655if ${lt_cv_apple_cc_single_mod+:} false; then :
6656  $as_echo_n "(cached) " >&6
6657else
6658  lt_cv_apple_cc_single_mod=no
6659      if test -z "${LT_MULTI_MODULE}"; then
6660	# By default we will add the -single_module flag. You can override
6661	# by either setting the environment variable LT_MULTI_MODULE
6662	# non-empty at configure time, or by adding -multi_module to the
6663	# link flags.
6664	rm -rf libconftest.dylib*
6665	echo "int foo(void){return 1;}" > conftest.c
6666	echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6667-dynamiclib -Wl,-single_module conftest.c" >&5
6668	$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6669	  -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
6670        _lt_result=$?
6671	if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
6672	  lt_cv_apple_cc_single_mod=yes
6673	else
6674	  cat conftest.err >&5
6675	fi
6676	rm -rf libconftest.dylib*
6677	rm -f conftest.*
6678      fi
6679fi
6680{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
6681$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
6682    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
6683$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
6684if ${lt_cv_ld_exported_symbols_list+:} false; then :
6685  $as_echo_n "(cached) " >&6
6686else
6687  lt_cv_ld_exported_symbols_list=no
6688      save_LDFLAGS=$LDFLAGS
6689      echo "_main" > conftest.sym
6690      LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
6691      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6692/* end confdefs.h.  */
6693
6694int
6695main ()
6696{
6697
6698  ;
6699  return 0;
6700}
6701_ACEOF
6702if ac_fn_c_try_link "$LINENO"; then :
6703  lt_cv_ld_exported_symbols_list=yes
6704else
6705  lt_cv_ld_exported_symbols_list=no
6706fi
6707rm -f core conftest.err conftest.$ac_objext \
6708    conftest$ac_exeext conftest.$ac_ext
6709	LDFLAGS="$save_LDFLAGS"
6710
6711fi
6712{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
6713$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
6714    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
6715$as_echo_n "checking for -force_load linker flag... " >&6; }
6716if ${lt_cv_ld_force_load+:} false; then :
6717  $as_echo_n "(cached) " >&6
6718else
6719  lt_cv_ld_force_load=no
6720      cat > conftest.c << _LT_EOF
6721int forced_loaded() { return 2;}
6722_LT_EOF
6723      echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
6724      $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
6725      echo "$AR cru libconftest.a conftest.o" >&5
6726      $AR cru libconftest.a conftest.o 2>&5
6727      echo "$RANLIB libconftest.a" >&5
6728      $RANLIB libconftest.a 2>&5
6729      cat > conftest.c << _LT_EOF
6730int main() { return 0;}
6731_LT_EOF
6732      echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
6733      $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
6734      _lt_result=$?
6735      if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
6736	lt_cv_ld_force_load=yes
6737      else
6738	cat conftest.err >&5
6739      fi
6740        rm -f conftest.err libconftest.a conftest conftest.c
6741        rm -rf conftest.dSYM
6742
6743fi
6744{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
6745$as_echo "$lt_cv_ld_force_load" >&6; }
6746    case $host_os in
6747    rhapsody* | darwin1.[012])
6748      _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
6749    darwin1.*)
6750      _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
6751    darwin*) # darwin 5.x on
6752      # if running on 10.5 or later, the deployment target defaults
6753      # to the OS version, if on x86, and 10.4, the deployment
6754      # target defaults to 10.4. Don't you love it?
6755      case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
6756	10.0,*86*-darwin8*|10.0,*-darwin[91]*)
6757	  _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
6758	10.[012]*)
6759	  _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
6760	10.*)
6761	  _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
6762      esac
6763    ;;
6764  esac
6765    if test "$lt_cv_apple_cc_single_mod" = "yes"; then
6766      _lt_dar_single_mod='$single_module'
6767    fi
6768    if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
6769      _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
6770    else
6771      _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
6772    fi
6773    if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
6774      _lt_dsymutil='~$DSYMUTIL $lib || :'
6775    else
6776      _lt_dsymutil=
6777    fi
6778    ;;
6779  esac
6780
6781for ac_header in dlfcn.h
6782do :
6783  ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
6784"
6785if test "x$ac_cv_header_dlfcn_h" = xyes; then :
6786  cat >>confdefs.h <<_ACEOF
6787#define HAVE_DLFCN_H 1
6788_ACEOF
6789
6790fi
6791
6792done
6793
6794
6795
6796
6797
6798# Set options
6799enable_win32_dll=yes
6800
6801case $host in
6802*-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*)
6803  if test -n "$ac_tool_prefix"; then
6804  # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
6805set dummy ${ac_tool_prefix}as; ac_word=$2
6806{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6807$as_echo_n "checking for $ac_word... " >&6; }
6808if ${ac_cv_prog_AS+:} false; then :
6809  $as_echo_n "(cached) " >&6
6810else
6811  if test -n "$AS"; then
6812  ac_cv_prog_AS="$AS" # Let the user override the test.
6813else
6814as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6815for as_dir in $PATH
6816do
6817  IFS=$as_save_IFS
6818  test -z "$as_dir" && as_dir=.
6819    for ac_exec_ext in '' $ac_executable_extensions; do
6820  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6821    ac_cv_prog_AS="${ac_tool_prefix}as"
6822    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6823    break 2
6824  fi
6825done
6826  done
6827IFS=$as_save_IFS
6828
6829fi
6830fi
6831AS=$ac_cv_prog_AS
6832if test -n "$AS"; then
6833  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
6834$as_echo "$AS" >&6; }
6835else
6836  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6837$as_echo "no" >&6; }
6838fi
6839
6840
6841fi
6842if test -z "$ac_cv_prog_AS"; then
6843  ac_ct_AS=$AS
6844  # Extract the first word of "as", so it can be a program name with args.
6845set dummy as; ac_word=$2
6846{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6847$as_echo_n "checking for $ac_word... " >&6; }
6848if ${ac_cv_prog_ac_ct_AS+:} false; then :
6849  $as_echo_n "(cached) " >&6
6850else
6851  if test -n "$ac_ct_AS"; then
6852  ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
6853else
6854as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6855for as_dir in $PATH
6856do
6857  IFS=$as_save_IFS
6858  test -z "$as_dir" && as_dir=.
6859    for ac_exec_ext in '' $ac_executable_extensions; do
6860  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6861    ac_cv_prog_ac_ct_AS="as"
6862    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6863    break 2
6864  fi
6865done
6866  done
6867IFS=$as_save_IFS
6868
6869fi
6870fi
6871ac_ct_AS=$ac_cv_prog_ac_ct_AS
6872if test -n "$ac_ct_AS"; then
6873  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
6874$as_echo "$ac_ct_AS" >&6; }
6875else
6876  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6877$as_echo "no" >&6; }
6878fi
6879
6880  if test "x$ac_ct_AS" = x; then
6881    AS="false"
6882  else
6883    case $cross_compiling:$ac_tool_warned in
6884yes:)
6885{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6886$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6887ac_tool_warned=yes ;;
6888esac
6889    AS=$ac_ct_AS
6890  fi
6891else
6892  AS="$ac_cv_prog_AS"
6893fi
6894
6895  if test -n "$ac_tool_prefix"; then
6896  # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
6897set dummy ${ac_tool_prefix}dlltool; ac_word=$2
6898{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6899$as_echo_n "checking for $ac_word... " >&6; }
6900if ${ac_cv_prog_DLLTOOL+:} false; then :
6901  $as_echo_n "(cached) " >&6
6902else
6903  if test -n "$DLLTOOL"; then
6904  ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
6905else
6906as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6907for as_dir in $PATH
6908do
6909  IFS=$as_save_IFS
6910  test -z "$as_dir" && as_dir=.
6911    for ac_exec_ext in '' $ac_executable_extensions; do
6912  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6913    ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
6914    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6915    break 2
6916  fi
6917done
6918  done
6919IFS=$as_save_IFS
6920
6921fi
6922fi
6923DLLTOOL=$ac_cv_prog_DLLTOOL
6924if test -n "$DLLTOOL"; then
6925  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
6926$as_echo "$DLLTOOL" >&6; }
6927else
6928  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6929$as_echo "no" >&6; }
6930fi
6931
6932
6933fi
6934if test -z "$ac_cv_prog_DLLTOOL"; then
6935  ac_ct_DLLTOOL=$DLLTOOL
6936  # Extract the first word of "dlltool", so it can be a program name with args.
6937set dummy dlltool; ac_word=$2
6938{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6939$as_echo_n "checking for $ac_word... " >&6; }
6940if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
6941  $as_echo_n "(cached) " >&6
6942else
6943  if test -n "$ac_ct_DLLTOOL"; then
6944  ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
6945else
6946as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6947for as_dir in $PATH
6948do
6949  IFS=$as_save_IFS
6950  test -z "$as_dir" && as_dir=.
6951    for ac_exec_ext in '' $ac_executable_extensions; do
6952  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6953    ac_cv_prog_ac_ct_DLLTOOL="dlltool"
6954    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6955    break 2
6956  fi
6957done
6958  done
6959IFS=$as_save_IFS
6960
6961fi
6962fi
6963ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
6964if test -n "$ac_ct_DLLTOOL"; then
6965  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
6966$as_echo "$ac_ct_DLLTOOL" >&6; }
6967else
6968  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6969$as_echo "no" >&6; }
6970fi
6971
6972  if test "x$ac_ct_DLLTOOL" = x; then
6973    DLLTOOL="false"
6974  else
6975    case $cross_compiling:$ac_tool_warned in
6976yes:)
6977{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6978$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6979ac_tool_warned=yes ;;
6980esac
6981    DLLTOOL=$ac_ct_DLLTOOL
6982  fi
6983else
6984  DLLTOOL="$ac_cv_prog_DLLTOOL"
6985fi
6986
6987  if test -n "$ac_tool_prefix"; then
6988  # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
6989set dummy ${ac_tool_prefix}objdump; ac_word=$2
6990{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6991$as_echo_n "checking for $ac_word... " >&6; }
6992if ${ac_cv_prog_OBJDUMP+:} false; then :
6993  $as_echo_n "(cached) " >&6
6994else
6995  if test -n "$OBJDUMP"; then
6996  ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6997else
6998as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6999for as_dir in $PATH
7000do
7001  IFS=$as_save_IFS
7002  test -z "$as_dir" && as_dir=.
7003    for ac_exec_ext in '' $ac_executable_extensions; do
7004  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7005    ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
7006    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7007    break 2
7008  fi
7009done
7010  done
7011IFS=$as_save_IFS
7012
7013fi
7014fi
7015OBJDUMP=$ac_cv_prog_OBJDUMP
7016if test -n "$OBJDUMP"; then
7017  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
7018$as_echo "$OBJDUMP" >&6; }
7019else
7020  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7021$as_echo "no" >&6; }
7022fi
7023
7024
7025fi
7026if test -z "$ac_cv_prog_OBJDUMP"; then
7027  ac_ct_OBJDUMP=$OBJDUMP
7028  # Extract the first word of "objdump", so it can be a program name with args.
7029set dummy objdump; ac_word=$2
7030{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7031$as_echo_n "checking for $ac_word... " >&6; }
7032if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
7033  $as_echo_n "(cached) " >&6
7034else
7035  if test -n "$ac_ct_OBJDUMP"; then
7036  ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
7037else
7038as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7039for as_dir in $PATH
7040do
7041  IFS=$as_save_IFS
7042  test -z "$as_dir" && as_dir=.
7043    for ac_exec_ext in '' $ac_executable_extensions; do
7044  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7045    ac_cv_prog_ac_ct_OBJDUMP="objdump"
7046    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7047    break 2
7048  fi
7049done
7050  done
7051IFS=$as_save_IFS
7052
7053fi
7054fi
7055ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
7056if test -n "$ac_ct_OBJDUMP"; then
7057  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
7058$as_echo "$ac_ct_OBJDUMP" >&6; }
7059else
7060  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7061$as_echo "no" >&6; }
7062fi
7063
7064  if test "x$ac_ct_OBJDUMP" = x; then
7065    OBJDUMP="false"
7066  else
7067    case $cross_compiling:$ac_tool_warned in
7068yes:)
7069{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7070$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7071ac_tool_warned=yes ;;
7072esac
7073    OBJDUMP=$ac_ct_OBJDUMP
7074  fi
7075else
7076  OBJDUMP="$ac_cv_prog_OBJDUMP"
7077fi
7078
7079  ;;
7080esac
7081
7082test -z "$AS" && AS=as
7083
7084
7085
7086
7087
7088test -z "$DLLTOOL" && DLLTOOL=dlltool
7089
7090
7091
7092
7093
7094test -z "$OBJDUMP" && OBJDUMP=objdump
7095
7096
7097
7098
7099
7100
7101
7102        enable_dlopen=no
7103
7104
7105
7106            # Check whether --enable-shared was given.
7107if test "${enable_shared+set}" = set; then :
7108  enableval=$enable_shared; p=${PACKAGE-default}
7109    case $enableval in
7110    yes) enable_shared=yes ;;
7111    no) enable_shared=no ;;
7112    *)
7113      enable_shared=no
7114      # Look at the argument we got.  We use all the common list separators.
7115      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7116      for pkg in $enableval; do
7117	IFS="$lt_save_ifs"
7118	if test "X$pkg" = "X$p"; then
7119	  enable_shared=yes
7120	fi
7121      done
7122      IFS="$lt_save_ifs"
7123      ;;
7124    esac
7125else
7126  enable_shared=yes
7127fi
7128
7129
7130
7131
7132
7133
7134
7135
7136
7137  # Check whether --enable-static was given.
7138if test "${enable_static+set}" = set; then :
7139  enableval=$enable_static; p=${PACKAGE-default}
7140    case $enableval in
7141    yes) enable_static=yes ;;
7142    no) enable_static=no ;;
7143    *)
7144     enable_static=no
7145      # Look at the argument we got.  We use all the common list separators.
7146      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7147      for pkg in $enableval; do
7148	IFS="$lt_save_ifs"
7149	if test "X$pkg" = "X$p"; then
7150	  enable_static=yes
7151	fi
7152      done
7153      IFS="$lt_save_ifs"
7154      ;;
7155    esac
7156else
7157  enable_static=yes
7158fi
7159
7160
7161
7162
7163
7164
7165
7166
7167
7168
7169# Check whether --with-pic was given.
7170if test "${with_pic+set}" = set; then :
7171  withval=$with_pic; pic_mode="$withval"
7172else
7173  pic_mode=default
7174fi
7175
7176
7177test -z "$pic_mode" && pic_mode=default
7178
7179
7180
7181
7182
7183
7184
7185  # Check whether --enable-fast-install was given.
7186if test "${enable_fast_install+set}" = set; then :
7187  enableval=$enable_fast_install; p=${PACKAGE-default}
7188    case $enableval in
7189    yes) enable_fast_install=yes ;;
7190    no) enable_fast_install=no ;;
7191    *)
7192      enable_fast_install=no
7193      # Look at the argument we got.  We use all the common list separators.
7194      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7195      for pkg in $enableval; do
7196	IFS="$lt_save_ifs"
7197	if test "X$pkg" = "X$p"; then
7198	  enable_fast_install=yes
7199	fi
7200      done
7201      IFS="$lt_save_ifs"
7202      ;;
7203    esac
7204else
7205  enable_fast_install=yes
7206fi
7207
7208
7209
7210
7211
7212
7213
7214
7215
7216
7217
7218# This can be used to rebuild libtool when needed
7219LIBTOOL_DEPS="$ltmain"
7220
7221# Always use our own libtool.
7222LIBTOOL="${CONFIG_SHELL-$SHELL} "'$(top_builddir)/libtool'
7223
7224
7225
7226
7227
7228
7229
7230
7231
7232
7233
7234
7235
7236
7237
7238
7239
7240
7241
7242
7243
7244
7245
7246
7247
7248
7249test -z "$LN_S" && LN_S="ln -s"
7250
7251
7252
7253
7254
7255
7256
7257
7258
7259
7260
7261
7262
7263
7264if test -n "${ZSH_VERSION+set}" ; then
7265   setopt NO_GLOB_SUBST
7266fi
7267
7268{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
7269$as_echo_n "checking for objdir... " >&6; }
7270if ${lt_cv_objdir+:} false; then :
7271  $as_echo_n "(cached) " >&6
7272else
7273  rm -f .libs 2>/dev/null
7274mkdir .libs 2>/dev/null
7275if test -d .libs; then
7276  lt_cv_objdir=.libs
7277else
7278  # MS-DOS does not allow filenames that begin with a dot.
7279  lt_cv_objdir=_libs
7280fi
7281rmdir .libs 2>/dev/null
7282fi
7283{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
7284$as_echo "$lt_cv_objdir" >&6; }
7285objdir=$lt_cv_objdir
7286
7287
7288
7289
7290
7291cat >>confdefs.h <<_ACEOF
7292#define LT_OBJDIR "$lt_cv_objdir/"
7293_ACEOF
7294
7295
7296
7297
7298case $host_os in
7299aix3*)
7300  # AIX sometimes has problems with the GCC collect2 program.  For some
7301  # reason, if we set the COLLECT_NAMES environment variable, the problems
7302  # vanish in a puff of smoke.
7303  if test "X${COLLECT_NAMES+set}" != Xset; then
7304    COLLECT_NAMES=
7305    export COLLECT_NAMES
7306  fi
7307  ;;
7308esac
7309
7310# Global variables:
7311ofile=libtool
7312can_build_shared=yes
7313
7314# All known linkers require a `.a' archive for static linking (except MSVC,
7315# which needs '.lib').
7316libext=a
7317
7318with_gnu_ld="$lt_cv_prog_gnu_ld"
7319
7320old_CC="$CC"
7321old_CFLAGS="$CFLAGS"
7322
7323# Set sane defaults for various variables
7324test -z "$CC" && CC=cc
7325test -z "$LTCC" && LTCC=$CC
7326test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7327test -z "$LD" && LD=ld
7328test -z "$ac_objext" && ac_objext=o
7329
7330for cc_temp in $compiler""; do
7331  case $cc_temp in
7332    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7333    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7334    \-*) ;;
7335    *) break;;
7336  esac
7337done
7338cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
7339
7340
7341# Only perform the check for file, if the check method requires it
7342test -z "$MAGIC_CMD" && MAGIC_CMD=file
7343case $deplibs_check_method in
7344file_magic*)
7345  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7346    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
7347$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
7348if ${lt_cv_path_MAGIC_CMD+:} false; then :
7349  $as_echo_n "(cached) " >&6
7350else
7351  case $MAGIC_CMD in
7352[\\/*] |  ?:[\\/]*)
7353  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7354  ;;
7355*)
7356  lt_save_MAGIC_CMD="$MAGIC_CMD"
7357  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7358  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7359  for ac_dir in $ac_dummy; do
7360    IFS="$lt_save_ifs"
7361    test -z "$ac_dir" && ac_dir=.
7362    if test -f $ac_dir/${ac_tool_prefix}file; then
7363      lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7364      if test -n "$file_magic_test_file"; then
7365	case $deplibs_check_method in
7366	"file_magic "*)
7367	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7368	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7369	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7370	    $EGREP "$file_magic_regex" > /dev/null; then
7371	    :
7372	  else
7373	    cat <<_LT_EOF 1>&2
7374
7375*** Warning: the command libtool uses to detect shared libraries,
7376*** $file_magic_cmd, produces output that libtool cannot recognize.
7377*** The result is that libtool may fail to recognize shared libraries
7378*** as such.  This will affect the creation of libtool libraries that
7379*** depend on shared libraries, but programs linked with such libtool
7380*** libraries will work regardless of this problem.  Nevertheless, you
7381*** may want to report the problem to your system manager and/or to
7382*** bug-libtool@gnu.org
7383
7384_LT_EOF
7385	  fi ;;
7386	esac
7387      fi
7388      break
7389    fi
7390  done
7391  IFS="$lt_save_ifs"
7392  MAGIC_CMD="$lt_save_MAGIC_CMD"
7393  ;;
7394esac
7395fi
7396
7397MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7398if test -n "$MAGIC_CMD"; then
7399  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7400$as_echo "$MAGIC_CMD" >&6; }
7401else
7402  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7403$as_echo "no" >&6; }
7404fi
7405
7406
7407
7408
7409
7410if test -z "$lt_cv_path_MAGIC_CMD"; then
7411  if test -n "$ac_tool_prefix"; then
7412    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
7413$as_echo_n "checking for file... " >&6; }
7414if ${lt_cv_path_MAGIC_CMD+:} false; then :
7415  $as_echo_n "(cached) " >&6
7416else
7417  case $MAGIC_CMD in
7418[\\/*] |  ?:[\\/]*)
7419  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7420  ;;
7421*)
7422  lt_save_MAGIC_CMD="$MAGIC_CMD"
7423  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7424  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7425  for ac_dir in $ac_dummy; do
7426    IFS="$lt_save_ifs"
7427    test -z "$ac_dir" && ac_dir=.
7428    if test -f $ac_dir/file; then
7429      lt_cv_path_MAGIC_CMD="$ac_dir/file"
7430      if test -n "$file_magic_test_file"; then
7431	case $deplibs_check_method in
7432	"file_magic "*)
7433	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7434	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7435	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7436	    $EGREP "$file_magic_regex" > /dev/null; then
7437	    :
7438	  else
7439	    cat <<_LT_EOF 1>&2
7440
7441*** Warning: the command libtool uses to detect shared libraries,
7442*** $file_magic_cmd, produces output that libtool cannot recognize.
7443*** The result is that libtool may fail to recognize shared libraries
7444*** as such.  This will affect the creation of libtool libraries that
7445*** depend on shared libraries, but programs linked with such libtool
7446*** libraries will work regardless of this problem.  Nevertheless, you
7447*** may want to report the problem to your system manager and/or to
7448*** bug-libtool@gnu.org
7449
7450_LT_EOF
7451	  fi ;;
7452	esac
7453      fi
7454      break
7455    fi
7456  done
7457  IFS="$lt_save_ifs"
7458  MAGIC_CMD="$lt_save_MAGIC_CMD"
7459  ;;
7460esac
7461fi
7462
7463MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7464if test -n "$MAGIC_CMD"; then
7465  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7466$as_echo "$MAGIC_CMD" >&6; }
7467else
7468  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7469$as_echo "no" >&6; }
7470fi
7471
7472
7473  else
7474    MAGIC_CMD=:
7475  fi
7476fi
7477
7478  fi
7479  ;;
7480esac
7481
7482# Use C for the default configuration in the libtool script
7483
7484lt_save_CC="$CC"
7485ac_ext=c
7486ac_cpp='$CPP $CPPFLAGS'
7487ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7488ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7489ac_compiler_gnu=$ac_cv_c_compiler_gnu
7490
7491
7492# Source file extension for C test sources.
7493ac_ext=c
7494
7495# Object file extension for compiled C test sources.
7496objext=o
7497objext=$objext
7498
7499# Code to be used in simple compile tests
7500lt_simple_compile_test_code="int some_variable = 0;"
7501
7502# Code to be used in simple link tests
7503lt_simple_link_test_code='int main(){return(0);}'
7504
7505
7506
7507
7508
7509
7510
7511# If no C compiler was specified, use CC.
7512LTCC=${LTCC-"$CC"}
7513
7514# If no C compiler flags were specified, use CFLAGS.
7515LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7516
7517# Allow CC to be a program name with arguments.
7518compiler=$CC
7519
7520# Save the default compiler, since it gets overwritten when the other
7521# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
7522compiler_DEFAULT=$CC
7523
7524# save warnings/boilerplate of simple test code
7525ac_outfile=conftest.$ac_objext
7526echo "$lt_simple_compile_test_code" >conftest.$ac_ext
7527eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7528_lt_compiler_boilerplate=`cat conftest.err`
7529$RM conftest*
7530
7531ac_outfile=conftest.$ac_objext
7532echo "$lt_simple_link_test_code" >conftest.$ac_ext
7533eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7534_lt_linker_boilerplate=`cat conftest.err`
7535$RM -r conftest*
7536
7537
7538## CAVEAT EMPTOR:
7539## There is no encapsulation within the following macros, do not change
7540## the running order or otherwise move them around unless you know exactly
7541## what you are doing...
7542if test -n "$compiler"; then
7543
7544lt_prog_compiler_no_builtin_flag=
7545
7546if test "$GCC" = yes; then
7547  case $cc_basename in
7548  nvcc*)
7549    lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
7550  *)
7551    lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
7552  esac
7553
7554  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7555$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
7556if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
7557  $as_echo_n "(cached) " >&6
7558else
7559  lt_cv_prog_compiler_rtti_exceptions=no
7560   ac_outfile=conftest.$ac_objext
7561   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7562   lt_compiler_flag="-fno-rtti -fno-exceptions"
7563   # Insert the option either (1) after the last *FLAGS variable, or
7564   # (2) before a word containing "conftest.", or (3) at the end.
7565   # Note that $ac_compile itself does not contain backslashes and begins
7566   # with a dollar sign (not a hyphen), so the echo should work correctly.
7567   # The option is referenced via a variable to avoid confusing sed.
7568   lt_compile=`echo "$ac_compile" | $SED \
7569   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7570   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7571   -e 's:$: $lt_compiler_flag:'`
7572   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
7573   (eval "$lt_compile" 2>conftest.err)
7574   ac_status=$?
7575   cat conftest.err >&5
7576   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7577   if (exit $ac_status) && test -s "$ac_outfile"; then
7578     # The compiler can only warn and ignore the option if not recognized
7579     # So say no if there are warnings other than the usual output.
7580     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
7581     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7582     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7583       lt_cv_prog_compiler_rtti_exceptions=yes
7584     fi
7585   fi
7586   $RM conftest*
7587
7588fi
7589{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7590$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
7591
7592if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7593    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7594else
7595    :
7596fi
7597
7598fi
7599
7600
7601
7602
7603
7604
7605  lt_prog_compiler_wl=
7606lt_prog_compiler_pic=
7607lt_prog_compiler_static=
7608
7609
7610  if test "$GCC" = yes; then
7611    lt_prog_compiler_wl='-Wl,'
7612    lt_prog_compiler_static='-static'
7613
7614    case $host_os in
7615      aix*)
7616      # All AIX code is PIC.
7617      if test "$host_cpu" = ia64; then
7618	# AIX 5 now supports IA64 processor
7619	lt_prog_compiler_static='-Bstatic'
7620      fi
7621      ;;
7622
7623    amigaos*)
7624      case $host_cpu in
7625      powerpc)
7626            # see comment about AmigaOS4 .so support
7627            lt_prog_compiler_pic='-fPIC'
7628        ;;
7629      m68k)
7630            # FIXME: we need at least 68020 code to build shared libraries, but
7631            # adding the `-m68020' flag to GCC prevents building anything better,
7632            # like `-m68040'.
7633            lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7634        ;;
7635      esac
7636      ;;
7637
7638    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7639      # PIC is the default for these OSes.
7640      ;;
7641
7642    mingw* | cygwin* | pw32* | os2* | cegcc*)
7643      # This hack is so that the source file can tell whether it is being
7644      # built for inclusion in a dll (and should export symbols for example).
7645      # Although the cygwin gcc ignores -fPIC, still need this for old-style
7646      # (--disable-auto-import) libraries
7647      lt_prog_compiler_pic='-DDLL_EXPORT'
7648      ;;
7649
7650    darwin* | rhapsody*)
7651      # PIC is the default on this platform
7652      # Common symbols not allowed in MH_DYLIB files
7653      lt_prog_compiler_pic='-fno-common'
7654      ;;
7655
7656    haiku*)
7657      # PIC is the default for Haiku.
7658      # The "-static" flag exists, but is broken.
7659      lt_prog_compiler_static=
7660      ;;
7661
7662    hpux*)
7663      # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
7664      # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
7665      # sets the default TLS model and affects inlining.
7666      case $host_cpu in
7667      hppa*64*)
7668	# +Z the default
7669	;;
7670      *)
7671	lt_prog_compiler_pic='-fPIC'
7672	;;
7673      esac
7674      ;;
7675
7676    interix[3-9]*)
7677      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7678      # Instead, we relocate shared libraries at runtime.
7679      ;;
7680
7681    msdosdjgpp*)
7682      # Just because we use GCC doesn't mean we suddenly get shared libraries
7683      # on systems that don't support them.
7684      lt_prog_compiler_can_build_shared=no
7685      enable_shared=no
7686      ;;
7687
7688    *nto* | *qnx*)
7689      # QNX uses GNU C++, but need to define -shared option too, otherwise
7690      # it will coredump.
7691      lt_prog_compiler_pic='-fPIC -shared'
7692      ;;
7693
7694    sysv4*MP*)
7695      if test -d /usr/nec; then
7696	lt_prog_compiler_pic=-Kconform_pic
7697      fi
7698      ;;
7699
7700    *)
7701      lt_prog_compiler_pic='-fPIC'
7702      ;;
7703    esac
7704
7705    case $cc_basename in
7706    nvcc*) # Cuda Compiler Driver 2.2
7707      lt_prog_compiler_wl='-Xlinker '
7708      lt_prog_compiler_pic='-Xcompiler -fPIC'
7709      ;;
7710    esac
7711  else
7712    # PORTME Check for flag to pass linker flags through the system compiler.
7713    case $host_os in
7714    aix*)
7715      lt_prog_compiler_wl='-Wl,'
7716      if test "$host_cpu" = ia64; then
7717	# AIX 5 now supports IA64 processor
7718	lt_prog_compiler_static='-Bstatic'
7719      else
7720	lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7721      fi
7722      ;;
7723
7724    mingw* | cygwin* | pw32* | os2* | cegcc*)
7725      # This hack is so that the source file can tell whether it is being
7726      # built for inclusion in a dll (and should export symbols for example).
7727      lt_prog_compiler_pic='-DDLL_EXPORT'
7728      ;;
7729
7730    hpux9* | hpux10* | hpux11*)
7731      lt_prog_compiler_wl='-Wl,'
7732      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7733      # not for PA HP-UX.
7734      case $host_cpu in
7735      hppa*64*|ia64*)
7736	# +Z the default
7737	;;
7738      *)
7739	lt_prog_compiler_pic='+Z'
7740	;;
7741      esac
7742      # Is there a better lt_prog_compiler_static that works with the bundled CC?
7743      lt_prog_compiler_static='${wl}-a ${wl}archive'
7744      ;;
7745
7746    irix5* | irix6* | nonstopux*)
7747      lt_prog_compiler_wl='-Wl,'
7748      # PIC (with -KPIC) is the default.
7749      lt_prog_compiler_static='-non_shared'
7750      ;;
7751
7752    linux* | k*bsd*-gnu | kopensolaris*-gnu)
7753      case $cc_basename in
7754      # old Intel for x86_64 which still supported -KPIC.
7755      ecc*)
7756	lt_prog_compiler_wl='-Wl,'
7757	lt_prog_compiler_pic='-KPIC'
7758	lt_prog_compiler_static='-static'
7759        ;;
7760      # icc used to be incompatible with GCC.
7761      # ICC 10 doesn't accept -KPIC any more.
7762      icc* | ifort*)
7763	lt_prog_compiler_wl='-Wl,'
7764	lt_prog_compiler_pic='-fPIC'
7765	lt_prog_compiler_static='-static'
7766        ;;
7767      # Lahey Fortran 8.1.
7768      lf95*)
7769	lt_prog_compiler_wl='-Wl,'
7770	lt_prog_compiler_pic='--shared'
7771	lt_prog_compiler_static='--static'
7772	;;
7773      nagfor*)
7774	# NAG Fortran compiler
7775	lt_prog_compiler_wl='-Wl,-Wl,,'
7776	lt_prog_compiler_pic='-PIC'
7777	lt_prog_compiler_static='-Bstatic'
7778	;;
7779      pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
7780        # Portland Group compilers (*not* the Pentium gcc compiler,
7781	# which looks to be a dead project)
7782	lt_prog_compiler_wl='-Wl,'
7783	lt_prog_compiler_pic='-fpic'
7784	lt_prog_compiler_static='-Bstatic'
7785        ;;
7786      ccc*)
7787        lt_prog_compiler_wl='-Wl,'
7788        # All Alpha code is PIC.
7789        lt_prog_compiler_static='-non_shared'
7790        ;;
7791      xl* | bgxl* | bgf* | mpixl*)
7792	# IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
7793	lt_prog_compiler_wl='-Wl,'
7794	lt_prog_compiler_pic='-qpic'
7795	lt_prog_compiler_static='-qstaticlink'
7796	;;
7797      *)
7798	case `$CC -V 2>&1 | sed 5q` in
7799	*Sun\ F* | *Sun*Fortran*)
7800	  # Sun Fortran 8.3 passes all unrecognized flags to the linker
7801	  lt_prog_compiler_pic='-KPIC'
7802	  lt_prog_compiler_static='-Bstatic'
7803	  lt_prog_compiler_wl=''
7804	  ;;
7805	*Sun\ C*)
7806	  # Sun C 5.9
7807	  lt_prog_compiler_pic='-KPIC'
7808	  lt_prog_compiler_static='-Bstatic'
7809	  lt_prog_compiler_wl='-Wl,'
7810	  ;;
7811	esac
7812	;;
7813      esac
7814      ;;
7815
7816    newsos6)
7817      lt_prog_compiler_pic='-KPIC'
7818      lt_prog_compiler_static='-Bstatic'
7819      ;;
7820
7821    *nto* | *qnx*)
7822      # QNX uses GNU C++, but need to define -shared option too, otherwise
7823      # it will coredump.
7824      lt_prog_compiler_pic='-fPIC -shared'
7825      ;;
7826
7827    osf3* | osf4* | osf5*)
7828      lt_prog_compiler_wl='-Wl,'
7829      # All OSF/1 code is PIC.
7830      lt_prog_compiler_static='-non_shared'
7831      ;;
7832
7833    rdos*)
7834      lt_prog_compiler_static='-non_shared'
7835      ;;
7836
7837    solaris*)
7838      lt_prog_compiler_pic='-KPIC'
7839      lt_prog_compiler_static='-Bstatic'
7840      case $cc_basename in
7841      f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
7842	lt_prog_compiler_wl='-Qoption ld ';;
7843      *)
7844	lt_prog_compiler_wl='-Wl,';;
7845      esac
7846      ;;
7847
7848    sunos4*)
7849      lt_prog_compiler_wl='-Qoption ld '
7850      lt_prog_compiler_pic='-PIC'
7851      lt_prog_compiler_static='-Bstatic'
7852      ;;
7853
7854    sysv4 | sysv4.2uw2* | sysv4.3*)
7855      lt_prog_compiler_wl='-Wl,'
7856      lt_prog_compiler_pic='-KPIC'
7857      lt_prog_compiler_static='-Bstatic'
7858      ;;
7859
7860    sysv4*MP*)
7861      if test -d /usr/nec ;then
7862	lt_prog_compiler_pic='-Kconform_pic'
7863	lt_prog_compiler_static='-Bstatic'
7864      fi
7865      ;;
7866
7867    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
7868      lt_prog_compiler_wl='-Wl,'
7869      lt_prog_compiler_pic='-KPIC'
7870      lt_prog_compiler_static='-Bstatic'
7871      ;;
7872
7873    unicos*)
7874      lt_prog_compiler_wl='-Wl,'
7875      lt_prog_compiler_can_build_shared=no
7876      ;;
7877
7878    uts4*)
7879      lt_prog_compiler_pic='-pic'
7880      lt_prog_compiler_static='-Bstatic'
7881      ;;
7882
7883    *)
7884      lt_prog_compiler_can_build_shared=no
7885      ;;
7886    esac
7887  fi
7888
7889case $host_os in
7890  # For platforms which do not support PIC, -DPIC is meaningless:
7891  *djgpp*)
7892    lt_prog_compiler_pic=
7893    ;;
7894  *)
7895    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
7896    ;;
7897esac
7898
7899{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
7900$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
7901if ${lt_cv_prog_compiler_pic+:} false; then :
7902  $as_echo_n "(cached) " >&6
7903else
7904  lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
7905fi
7906{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
7907$as_echo "$lt_cv_prog_compiler_pic" >&6; }
7908lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
7909
7910#
7911# Check to make sure the PIC flag actually works.
7912#
7913if test -n "$lt_prog_compiler_pic"; then
7914  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
7915$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
7916if ${lt_cv_prog_compiler_pic_works+:} false; then :
7917  $as_echo_n "(cached) " >&6
7918else
7919  lt_cv_prog_compiler_pic_works=no
7920   ac_outfile=conftest.$ac_objext
7921   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7922   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
7923   # Insert the option either (1) after the last *FLAGS variable, or
7924   # (2) before a word containing "conftest.", or (3) at the end.
7925   # Note that $ac_compile itself does not contain backslashes and begins
7926   # with a dollar sign (not a hyphen), so the echo should work correctly.
7927   # The option is referenced via a variable to avoid confusing sed.
7928   lt_compile=`echo "$ac_compile" | $SED \
7929   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7930   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7931   -e 's:$: $lt_compiler_flag:'`
7932   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
7933   (eval "$lt_compile" 2>conftest.err)
7934   ac_status=$?
7935   cat conftest.err >&5
7936   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7937   if (exit $ac_status) && test -s "$ac_outfile"; then
7938     # The compiler can only warn and ignore the option if not recognized
7939     # So say no if there are warnings other than the usual output.
7940     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
7941     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7942     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7943       lt_cv_prog_compiler_pic_works=yes
7944     fi
7945   fi
7946   $RM conftest*
7947
7948fi
7949{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
7950$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
7951
7952if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
7953    case $lt_prog_compiler_pic in
7954     "" | " "*) ;;
7955     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
7956     esac
7957else
7958    lt_prog_compiler_pic=
7959     lt_prog_compiler_can_build_shared=no
7960fi
7961
7962fi
7963
7964
7965
7966
7967
7968
7969
7970
7971
7972
7973
7974#
7975# Check to make sure the static flag actually works.
7976#
7977wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
7978{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
7979$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
7980if ${lt_cv_prog_compiler_static_works+:} false; then :
7981  $as_echo_n "(cached) " >&6
7982else
7983  lt_cv_prog_compiler_static_works=no
7984   save_LDFLAGS="$LDFLAGS"
7985   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
7986   echo "$lt_simple_link_test_code" > conftest.$ac_ext
7987   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
7988     # The linker can only warn and ignore the option if not recognized
7989     # So say no if there are warnings
7990     if test -s conftest.err; then
7991       # Append any errors to the config.log.
7992       cat conftest.err 1>&5
7993       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
7994       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7995       if diff conftest.exp conftest.er2 >/dev/null; then
7996         lt_cv_prog_compiler_static_works=yes
7997       fi
7998     else
7999       lt_cv_prog_compiler_static_works=yes
8000     fi
8001   fi
8002   $RM -r conftest*
8003   LDFLAGS="$save_LDFLAGS"
8004
8005fi
8006{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8007$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8008
8009if test x"$lt_cv_prog_compiler_static_works" = xyes; then
8010    :
8011else
8012    lt_prog_compiler_static=
8013fi
8014
8015
8016
8017
8018
8019
8020
8021  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8022$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8023if ${lt_cv_prog_compiler_c_o+:} false; then :
8024  $as_echo_n "(cached) " >&6
8025else
8026  lt_cv_prog_compiler_c_o=no
8027   $RM -r conftest 2>/dev/null
8028   mkdir conftest
8029   cd conftest
8030   mkdir out
8031   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8032
8033   lt_compiler_flag="-o out/conftest2.$ac_objext"
8034   # Insert the option either (1) after the last *FLAGS variable, or
8035   # (2) before a word containing "conftest.", or (3) at the end.
8036   # Note that $ac_compile itself does not contain backslashes and begins
8037   # with a dollar sign (not a hyphen), so the echo should work correctly.
8038   lt_compile=`echo "$ac_compile" | $SED \
8039   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8040   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8041   -e 's:$: $lt_compiler_flag:'`
8042   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8043   (eval "$lt_compile" 2>out/conftest.err)
8044   ac_status=$?
8045   cat out/conftest.err >&5
8046   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8047   if (exit $ac_status) && test -s out/conftest2.$ac_objext
8048   then
8049     # The compiler can only warn and ignore the option if not recognized
8050     # So say no if there are warnings
8051     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8052     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8053     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8054       lt_cv_prog_compiler_c_o=yes
8055     fi
8056   fi
8057   chmod u+w . 2>&5
8058   $RM conftest*
8059   # SGI C++ compiler will create directory out/ii_files/ for
8060   # template instantiation
8061   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8062   $RM out/* && rmdir out
8063   cd ..
8064   $RM -r conftest
8065   $RM conftest*
8066
8067fi
8068{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8069$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8070
8071
8072
8073
8074
8075
8076  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8077$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8078if ${lt_cv_prog_compiler_c_o+:} false; then :
8079  $as_echo_n "(cached) " >&6
8080else
8081  lt_cv_prog_compiler_c_o=no
8082   $RM -r conftest 2>/dev/null
8083   mkdir conftest
8084   cd conftest
8085   mkdir out
8086   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8087
8088   lt_compiler_flag="-o out/conftest2.$ac_objext"
8089   # Insert the option either (1) after the last *FLAGS variable, or
8090   # (2) before a word containing "conftest.", or (3) at the end.
8091   # Note that $ac_compile itself does not contain backslashes and begins
8092   # with a dollar sign (not a hyphen), so the echo should work correctly.
8093   lt_compile=`echo "$ac_compile" | $SED \
8094   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8095   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8096   -e 's:$: $lt_compiler_flag:'`
8097   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8098   (eval "$lt_compile" 2>out/conftest.err)
8099   ac_status=$?
8100   cat out/conftest.err >&5
8101   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8102   if (exit $ac_status) && test -s out/conftest2.$ac_objext
8103   then
8104     # The compiler can only warn and ignore the option if not recognized
8105     # So say no if there are warnings
8106     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8107     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8108     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8109       lt_cv_prog_compiler_c_o=yes
8110     fi
8111   fi
8112   chmod u+w . 2>&5
8113   $RM conftest*
8114   # SGI C++ compiler will create directory out/ii_files/ for
8115   # template instantiation
8116   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8117   $RM out/* && rmdir out
8118   cd ..
8119   $RM -r conftest
8120   $RM conftest*
8121
8122fi
8123{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8124$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8125
8126
8127
8128
8129hard_links="nottested"
8130if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8131  # do not overwrite the value of need_locks provided by the user
8132  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
8133$as_echo_n "checking if we can lock with hard links... " >&6; }
8134  hard_links=yes
8135  $RM conftest*
8136  ln conftest.a conftest.b 2>/dev/null && hard_links=no
8137  touch conftest.a
8138  ln conftest.a conftest.b 2>&5 || hard_links=no
8139  ln conftest.a conftest.b 2>/dev/null && hard_links=no
8140  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
8141$as_echo "$hard_links" >&6; }
8142  if test "$hard_links" = no; then
8143    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8144$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8145    need_locks=warn
8146  fi
8147else
8148  need_locks=no
8149fi
8150
8151
8152
8153
8154
8155
8156  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8157$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
8158
8159  runpath_var=
8160  allow_undefined_flag=
8161  always_export_symbols=no
8162  archive_cmds=
8163  archive_expsym_cmds=
8164  compiler_needs_object=no
8165  enable_shared_with_static_runtimes=no
8166  export_dynamic_flag_spec=
8167  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8168  hardcode_automatic=no
8169  hardcode_direct=no
8170  hardcode_direct_absolute=no
8171  hardcode_libdir_flag_spec=
8172  hardcode_libdir_flag_spec_ld=
8173  hardcode_libdir_separator=
8174  hardcode_minus_L=no
8175  hardcode_shlibpath_var=unsupported
8176  inherit_rpath=no
8177  link_all_deplibs=unknown
8178  module_cmds=
8179  module_expsym_cmds=
8180  old_archive_from_new_cmds=
8181  old_archive_from_expsyms_cmds=
8182  thread_safe_flag_spec=
8183  whole_archive_flag_spec=
8184  # include_expsyms should be a list of space-separated symbols to be *always*
8185  # included in the symbol list
8186  include_expsyms=
8187  # exclude_expsyms can be an extended regexp of symbols to exclude
8188  # it will be wrapped by ` (' and `)$', so one must not match beginning or
8189  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8190  # as well as any symbol that contains `d'.
8191  exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8192  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8193  # platforms (ab)use it in PIC code, but their linkers get confused if
8194  # the symbol is explicitly referenced.  Since portable code cannot
8195  # rely on this symbol name, it's probably fine to never include it in
8196  # preloaded symbol tables.
8197  # Exclude shared library initialization/finalization symbols.
8198  extract_expsyms_cmds=
8199
8200  case $host_os in
8201  cygwin* | mingw* | pw32* | cegcc*)
8202    # FIXME: the MSVC++ port hasn't been tested in a loooong time
8203    # When not using gcc, we currently assume that we are using
8204    # Microsoft Visual C++.
8205    if test "$GCC" != yes; then
8206      with_gnu_ld=no
8207    fi
8208    ;;
8209  interix*)
8210    # we just hope/assume this is gcc and not c89 (= MSVC++)
8211    with_gnu_ld=yes
8212    ;;
8213  openbsd*)
8214    with_gnu_ld=no
8215    ;;
8216  esac
8217
8218  ld_shlibs=yes
8219
8220  # On some targets, GNU ld is compatible enough with the native linker
8221  # that we're better off using the native interface for both.
8222  lt_use_gnu_ld_interface=no
8223  if test "$with_gnu_ld" = yes; then
8224    case $host_os in
8225      aix*)
8226	# The AIX port of GNU ld has always aspired to compatibility
8227	# with the native linker.  However, as the warning in the GNU ld
8228	# block says, versions before 2.19.5* couldn't really create working
8229	# shared libraries, regardless of the interface used.
8230	case `$LD -v 2>&1` in
8231	  *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
8232	  *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
8233	  *\ \(GNU\ Binutils\)\ [3-9]*) ;;
8234	  *)
8235	    lt_use_gnu_ld_interface=yes
8236	    ;;
8237	esac
8238	;;
8239      *)
8240	lt_use_gnu_ld_interface=yes
8241	;;
8242    esac
8243  fi
8244
8245  if test "$lt_use_gnu_ld_interface" = yes; then
8246    # If archive_cmds runs LD, not CC, wlarc should be empty
8247    wlarc='${wl}'
8248
8249    # Set some defaults for GNU ld with shared library support. These
8250    # are reset later if shared libraries are not supported. Putting them
8251    # here allows them to be overridden if necessary.
8252    runpath_var=LD_RUN_PATH
8253    hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8254    export_dynamic_flag_spec='${wl}--export-dynamic'
8255    # ancient GNU ld didn't support --whole-archive et. al.
8256    if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
8257      whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8258    else
8259      whole_archive_flag_spec=
8260    fi
8261    supports_anon_versioning=no
8262    case `$LD -v 2>&1` in
8263      *GNU\ gold*) supports_anon_versioning=yes ;;
8264      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8265      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8266      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8267      *\ 2.11.*) ;; # other 2.11 versions
8268      *) supports_anon_versioning=yes ;;
8269    esac
8270
8271    # See if GNU ld supports shared libraries.
8272    case $host_os in
8273    aix[3-9]*)
8274      # On AIX/PPC, the GNU linker is very broken
8275      if test "$host_cpu" != ia64; then
8276	ld_shlibs=no
8277	cat <<_LT_EOF 1>&2
8278
8279*** Warning: the GNU linker, at least up to release 2.19, is reported
8280*** to be unable to reliably create shared libraries on AIX.
8281*** Therefore, libtool is disabling shared libraries support.  If you
8282*** really care for shared libraries, you may want to install binutils
8283*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
8284*** You will then need to restart the configuration process.
8285
8286_LT_EOF
8287      fi
8288      ;;
8289
8290    amigaos*)
8291      case $host_cpu in
8292      powerpc)
8293            # see comment about AmigaOS4 .so support
8294            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8295            archive_expsym_cmds=''
8296        ;;
8297      m68k)
8298            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)'
8299            hardcode_libdir_flag_spec='-L$libdir'
8300            hardcode_minus_L=yes
8301        ;;
8302      esac
8303      ;;
8304
8305    beos*)
8306      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8307	allow_undefined_flag=unsupported
8308	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8309	# support --undefined.  This deserves some investigation.  FIXME
8310	archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8311      else
8312	ld_shlibs=no
8313      fi
8314      ;;
8315
8316    cygwin* | mingw* | pw32* | cegcc*)
8317      # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8318      # as there is no search path for DLLs.
8319      hardcode_libdir_flag_spec='-L$libdir'
8320      export_dynamic_flag_spec='${wl}--export-all-symbols'
8321      allow_undefined_flag=unsupported
8322      always_export_symbols=no
8323      enable_shared_with_static_runtimes=yes
8324      export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols'
8325      exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
8326
8327      if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
8328        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8329	# If the export-symbols file already is a .def file (1st line
8330	# is EXPORTS), use it as is; otherwise, prepend...
8331	archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8332	  cp $export_symbols $output_objdir/$soname.def;
8333	else
8334	  echo EXPORTS > $output_objdir/$soname.def;
8335	  cat $export_symbols >> $output_objdir/$soname.def;
8336	fi~
8337	$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8338      else
8339	ld_shlibs=no
8340      fi
8341      ;;
8342
8343    haiku*)
8344      archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8345      link_all_deplibs=yes
8346      ;;
8347
8348    interix[3-9]*)
8349      hardcode_direct=no
8350      hardcode_shlibpath_var=no
8351      hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8352      export_dynamic_flag_spec='${wl}-E'
8353      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8354      # Instead, shared libraries are loaded at an image base (0x10000000 by
8355      # default) and relocated if they conflict, which is a slow very memory
8356      # consuming and fragmenting process.  To avoid this, we pick a random,
8357      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8358      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
8359      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8360      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'
8361      ;;
8362
8363    gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
8364      tmp_diet=no
8365      if test "$host_os" = linux-dietlibc; then
8366	case $cc_basename in
8367	  diet\ *) tmp_diet=yes;;	# linux-dietlibc with static linking (!diet-dyn)
8368	esac
8369      fi
8370      if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
8371	 && test "$tmp_diet" = no
8372      then
8373	tmp_addflag=' $pic_flag'
8374	tmp_sharedflag='-shared'
8375	case $cc_basename,$host_cpu in
8376        pgcc*)				# Portland Group C compiler
8377	  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'
8378	  tmp_addflag=' $pic_flag'
8379	  ;;
8380	pgf77* | pgf90* | pgf95* | pgfortran*)
8381					# Portland Group f77 and f90 compilers
8382	  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'
8383	  tmp_addflag=' $pic_flag -Mnomain' ;;
8384	ecc*,ia64* | icc*,ia64*)	# Intel C compiler on ia64
8385	  tmp_addflag=' -i_dynamic' ;;
8386	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
8387	  tmp_addflag=' -i_dynamic -nofor_main' ;;
8388	ifc* | ifort*)			# Intel Fortran compiler
8389	  tmp_addflag=' -nofor_main' ;;
8390	lf95*)				# Lahey Fortran 8.1
8391	  whole_archive_flag_spec=
8392	  tmp_sharedflag='--shared' ;;
8393	xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
8394	  tmp_sharedflag='-qmkshrobj'
8395	  tmp_addflag= ;;
8396	nvcc*)	# Cuda Compiler Driver 2.2
8397	  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'
8398	  compiler_needs_object=yes
8399	  ;;
8400	esac
8401	case `$CC -V 2>&1 | sed 5q` in
8402	*Sun\ C*)			# Sun C 5.9
8403	  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'
8404	  compiler_needs_object=yes
8405	  tmp_sharedflag='-G' ;;
8406	*Sun\ F*)			# Sun Fortran 8.3
8407	  tmp_sharedflag='-G' ;;
8408	esac
8409	archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8410
8411        if test "x$supports_anon_versioning" = xyes; then
8412          archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8413	    cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8414	    echo "local: *; };" >> $output_objdir/$libname.ver~
8415	    $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8416        fi
8417
8418	case $cc_basename in
8419	xlf* | bgf* | bgxlf* | mpixlf*)
8420	  # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
8421	  whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
8422	  hardcode_libdir_flag_spec=
8423	  hardcode_libdir_flag_spec_ld='-rpath $libdir'
8424	  archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
8425	  if test "x$supports_anon_versioning" = xyes; then
8426	    archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8427	      cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8428	      echo "local: *; };" >> $output_objdir/$libname.ver~
8429	      $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
8430	  fi
8431	  ;;
8432	esac
8433      else
8434        ld_shlibs=no
8435      fi
8436      ;;
8437
8438    netbsd*)
8439      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8440	archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8441	wlarc=
8442      else
8443	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8444	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8445      fi
8446      ;;
8447
8448    solaris*)
8449      if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
8450	ld_shlibs=no
8451	cat <<_LT_EOF 1>&2
8452
8453*** Warning: The releases 2.8.* of the GNU linker cannot reliably
8454*** create shared libraries on Solaris systems.  Therefore, libtool
8455*** is disabling shared libraries support.  We urge you to upgrade GNU
8456*** binutils to release 2.9.1 or newer.  Another option is to modify
8457*** your PATH or compiler configuration so that the native linker is
8458*** used, and then restart.
8459
8460_LT_EOF
8461      elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8462	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8463	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8464      else
8465	ld_shlibs=no
8466      fi
8467      ;;
8468
8469    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8470      case `$LD -v 2>&1` in
8471        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8472	ld_shlibs=no
8473	cat <<_LT_EOF 1>&2
8474
8475*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8476*** reliably create shared libraries on SCO systems.  Therefore, libtool
8477*** is disabling shared libraries support.  We urge you to upgrade GNU
8478*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
8479*** your PATH or compiler configuration so that the native linker is
8480*** used, and then restart.
8481
8482_LT_EOF
8483	;;
8484	*)
8485	  # For security reasons, it is highly recommended that you always
8486	  # use absolute paths for naming shared libraries, and exclude the
8487	  # DT_RUNPATH tag from executables and libraries.  But doing so
8488	  # requires that you compile everything twice, which is a pain.
8489	  if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8490	    hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8491	    archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8492	    archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8493	  else
8494	    ld_shlibs=no
8495	  fi
8496	;;
8497      esac
8498      ;;
8499
8500    sunos4*)
8501      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8502      wlarc=
8503      hardcode_direct=yes
8504      hardcode_shlibpath_var=no
8505      ;;
8506
8507    *)
8508      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8509	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8510	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8511      else
8512	ld_shlibs=no
8513      fi
8514      ;;
8515    esac
8516
8517    if test "$ld_shlibs" = no; then
8518      runpath_var=
8519      hardcode_libdir_flag_spec=
8520      export_dynamic_flag_spec=
8521      whole_archive_flag_spec=
8522    fi
8523  else
8524    # PORTME fill in a description of your system's linker (not GNU ld)
8525    case $host_os in
8526    aix3*)
8527      allow_undefined_flag=unsupported
8528      always_export_symbols=yes
8529      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'
8530      # Note: this linker hardcodes the directories in LIBPATH if there
8531      # are no directories specified by -L.
8532      hardcode_minus_L=yes
8533      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8534	# Neither direct hardcoding nor static linking is supported with a
8535	# broken collect2.
8536	hardcode_direct=unsupported
8537      fi
8538      ;;
8539
8540    aix[4-9]*)
8541      if test "$host_cpu" = ia64; then
8542	# On IA64, the linker does run time linking by default, so we don't
8543	# have to do anything special.
8544	aix_use_runtimelinking=no
8545	exp_sym_flag='-Bexport'
8546	no_entry_flag=""
8547      else
8548	# If we're using GNU nm, then we don't want the "-C" option.
8549	# -C means demangle to AIX nm, but means don't demangle with GNU nm
8550	# Also, AIX nm treats weak defined symbols like other global
8551	# defined symbols, whereas GNU nm marks them as "W".
8552	if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
8553	  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'
8554	else
8555	  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'
8556	fi
8557	aix_use_runtimelinking=no
8558
8559	# Test if we are trying to use run time linking or normal
8560	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
8561	# need to do runtime linking.
8562	case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
8563	  for ld_flag in $LDFLAGS; do
8564	  if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8565	    aix_use_runtimelinking=yes
8566	    break
8567	  fi
8568	  done
8569	  ;;
8570	esac
8571
8572	exp_sym_flag='-bexport'
8573	no_entry_flag='-bnoentry'
8574      fi
8575
8576      # When large executables or shared objects are built, AIX ld can
8577      # have problems creating the table of contents.  If linking a library
8578      # or program results in "error TOC overflow" add -mminimal-toc to
8579      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
8580      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8581
8582      archive_cmds=''
8583      hardcode_direct=yes
8584      hardcode_direct_absolute=yes
8585      hardcode_libdir_separator=':'
8586      link_all_deplibs=yes
8587      file_list_spec='${wl}-f,'
8588
8589      if test "$GCC" = yes; then
8590	case $host_os in aix4.[012]|aix4.[012].*)
8591	# We only want to do this on AIX 4.2 and lower, the check
8592	# below for broken collect2 doesn't work under 4.3+
8593	  collect2name=`${CC} -print-prog-name=collect2`
8594	  if test -f "$collect2name" &&
8595	   strings "$collect2name" | $GREP resolve_lib_name >/dev/null
8596	  then
8597	  # We have reworked collect2
8598	  :
8599	  else
8600	  # We have old collect2
8601	  hardcode_direct=unsupported
8602	  # It fails to find uninstalled libraries when the uninstalled
8603	  # path is not listed in the libpath.  Setting hardcode_minus_L
8604	  # to unsupported forces relinking
8605	  hardcode_minus_L=yes
8606	  hardcode_libdir_flag_spec='-L$libdir'
8607	  hardcode_libdir_separator=
8608	  fi
8609	  ;;
8610	esac
8611	shared_flag='-shared'
8612	if test "$aix_use_runtimelinking" = yes; then
8613	  shared_flag="$shared_flag "'${wl}-G'
8614	fi
8615      else
8616	# not using gcc
8617	if test "$host_cpu" = ia64; then
8618	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8619	# chokes on -Wl,-G. The following line is correct:
8620	  shared_flag='-G'
8621	else
8622	  if test "$aix_use_runtimelinking" = yes; then
8623	    shared_flag='${wl}-G'
8624	  else
8625	    shared_flag='${wl}-bM:SRE'
8626	  fi
8627	fi
8628      fi
8629
8630      export_dynamic_flag_spec='${wl}-bexpall'
8631      # It seems that -bexpall does not export symbols beginning with
8632      # underscore (_), so it is better to generate a list of symbols to export.
8633      always_export_symbols=yes
8634      if test "$aix_use_runtimelinking" = yes; then
8635	# Warning - without using the other runtime loading flags (-brtl),
8636	# -berok will link without error, but may produce a broken library.
8637	allow_undefined_flag='-berok'
8638        # Determine the default libpath from the value encoded in an
8639        # empty executable.
8640        if test "${lt_cv_aix_libpath+set}" = set; then
8641  aix_libpath=$lt_cv_aix_libpath
8642else
8643  if ${lt_cv_aix_libpath_+:} false; then :
8644  $as_echo_n "(cached) " >&6
8645else
8646  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8647/* end confdefs.h.  */
8648
8649int
8650main ()
8651{
8652
8653  ;
8654  return 0;
8655}
8656_ACEOF
8657if ac_fn_c_try_link "$LINENO"; then :
8658
8659  lt_aix_libpath_sed='
8660      /Import File Strings/,/^$/ {
8661	  /^0/ {
8662	      s/^0  *\([^ ]*\) *$/\1/
8663	      p
8664	  }
8665      }'
8666  lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8667  # Check for a 64-bit object if we didn't find anything.
8668  if test -z "$lt_cv_aix_libpath_"; then
8669    lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8670  fi
8671fi
8672rm -f core conftest.err conftest.$ac_objext \
8673    conftest$ac_exeext conftest.$ac_ext
8674  if test -z "$lt_cv_aix_libpath_"; then
8675    lt_cv_aix_libpath_="/usr/lib:/lib"
8676  fi
8677
8678fi
8679
8680  aix_libpath=$lt_cv_aix_libpath_
8681fi
8682
8683        hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8684        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"
8685      else
8686	if test "$host_cpu" = ia64; then
8687	  hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8688	  allow_undefined_flag="-z nodefs"
8689	  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"
8690	else
8691	 # Determine the default libpath from the value encoded in an
8692	 # empty executable.
8693	 if test "${lt_cv_aix_libpath+set}" = set; then
8694  aix_libpath=$lt_cv_aix_libpath
8695else
8696  if ${lt_cv_aix_libpath_+:} false; then :
8697  $as_echo_n "(cached) " >&6
8698else
8699  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8700/* end confdefs.h.  */
8701
8702int
8703main ()
8704{
8705
8706  ;
8707  return 0;
8708}
8709_ACEOF
8710if ac_fn_c_try_link "$LINENO"; then :
8711
8712  lt_aix_libpath_sed='
8713      /Import File Strings/,/^$/ {
8714	  /^0/ {
8715	      s/^0  *\([^ ]*\) *$/\1/
8716	      p
8717	  }
8718      }'
8719  lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8720  # Check for a 64-bit object if we didn't find anything.
8721  if test -z "$lt_cv_aix_libpath_"; then
8722    lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8723  fi
8724fi
8725rm -f core conftest.err conftest.$ac_objext \
8726    conftest$ac_exeext conftest.$ac_ext
8727  if test -z "$lt_cv_aix_libpath_"; then
8728    lt_cv_aix_libpath_="/usr/lib:/lib"
8729  fi
8730
8731fi
8732
8733  aix_libpath=$lt_cv_aix_libpath_
8734fi
8735
8736	 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8737	  # Warning - without using the other run time loading flags,
8738	  # -berok will link without error, but may produce a broken library.
8739	  no_undefined_flag=' ${wl}-bernotok'
8740	  allow_undefined_flag=' ${wl}-berok'
8741	  if test "$with_gnu_ld" = yes; then
8742	    # We only use this code for GNU lds that support --whole-archive.
8743	    whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
8744	  else
8745	    # Exported symbols can be pulled into shared objects from archives
8746	    whole_archive_flag_spec='$convenience'
8747	  fi
8748	  archive_cmds_need_lc=yes
8749	  # This is similar to how AIX traditionally builds its shared libraries.
8750	  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'
8751	fi
8752      fi
8753      ;;
8754
8755    amigaos*)
8756      case $host_cpu in
8757      powerpc)
8758            # see comment about AmigaOS4 .so support
8759            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8760            archive_expsym_cmds=''
8761        ;;
8762      m68k)
8763            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)'
8764            hardcode_libdir_flag_spec='-L$libdir'
8765            hardcode_minus_L=yes
8766        ;;
8767      esac
8768      ;;
8769
8770    bsdi[45]*)
8771      export_dynamic_flag_spec=-rdynamic
8772      ;;
8773
8774    cygwin* | mingw* | pw32* | cegcc*)
8775      # When not using gcc, we currently assume that we are using
8776      # Microsoft Visual C++.
8777      # hardcode_libdir_flag_spec is actually meaningless, as there is
8778      # no search path for DLLs.
8779      case $cc_basename in
8780      cl*)
8781	# Native MSVC
8782	hardcode_libdir_flag_spec=' '
8783	allow_undefined_flag=unsupported
8784	always_export_symbols=yes
8785	file_list_spec='@'
8786	# Tell ltmain to make .lib files, not .a files.
8787	libext=lib
8788	# Tell ltmain to make .dll files, not .so files.
8789	shrext_cmds=".dll"
8790	# FIXME: Setting linknames here is a bad hack.
8791	archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
8792	archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8793	    sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
8794	  else
8795	    sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
8796	  fi~
8797	  $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
8798	  linknames='
8799	# The linker will not automatically build a static lib if we build a DLL.
8800	# _LT_TAGVAR(old_archive_from_new_cmds, )='true'
8801	enable_shared_with_static_runtimes=yes
8802	export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
8803	# Don't use ranlib
8804	old_postinstall_cmds='chmod 644 $oldlib'
8805	postlink_cmds='lt_outputfile="@OUTPUT@"~
8806	  lt_tool_outputfile="@TOOL_OUTPUT@"~
8807	  case $lt_outputfile in
8808	    *.exe|*.EXE) ;;
8809	    *)
8810	      lt_outputfile="$lt_outputfile.exe"
8811	      lt_tool_outputfile="$lt_tool_outputfile.exe"
8812	      ;;
8813	  esac~
8814	  if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
8815	    $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
8816	    $RM "$lt_outputfile.manifest";
8817	  fi'
8818	;;
8819      *)
8820	# Assume MSVC wrapper
8821	hardcode_libdir_flag_spec=' '
8822	allow_undefined_flag=unsupported
8823	# Tell ltmain to make .lib files, not .a files.
8824	libext=lib
8825	# Tell ltmain to make .dll files, not .so files.
8826	shrext_cmds=".dll"
8827	# FIXME: Setting linknames here is a bad hack.
8828	archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
8829	# The linker will automatically build a .lib file if we build a DLL.
8830	old_archive_from_new_cmds='true'
8831	# FIXME: Should let the user specify the lib program.
8832	old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
8833	enable_shared_with_static_runtimes=yes
8834	;;
8835      esac
8836      ;;
8837
8838    darwin* | rhapsody*)
8839
8840
8841  archive_cmds_need_lc=no
8842  hardcode_direct=no
8843  hardcode_automatic=yes
8844  hardcode_shlibpath_var=unsupported
8845  if test "$lt_cv_ld_force_load" = "yes"; then
8846    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\"`'
8847  else
8848    whole_archive_flag_spec=''
8849  fi
8850  link_all_deplibs=yes
8851  allow_undefined_flag="$_lt_dar_allow_undefined"
8852  case $cc_basename in
8853     ifort*) _lt_dar_can_shared=yes ;;
8854     *) _lt_dar_can_shared=$GCC ;;
8855  esac
8856  if test "$_lt_dar_can_shared" = "yes"; then
8857    output_verbose_link_cmd=func_echo_all
8858    archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
8859    module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
8860    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}"
8861    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}"
8862
8863  else
8864  ld_shlibs=no
8865  fi
8866
8867      ;;
8868
8869    dgux*)
8870      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8871      hardcode_libdir_flag_spec='-L$libdir'
8872      hardcode_shlibpath_var=no
8873      ;;
8874
8875    freebsd1*)
8876      ld_shlibs=no
8877      ;;
8878
8879    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
8880    # support.  Future versions do this automatically, but an explicit c++rt0.o
8881    # does not break anything, and helps significantly (at the cost of a little
8882    # extra space).
8883    freebsd2.2*)
8884      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
8885      hardcode_libdir_flag_spec='-R$libdir'
8886      hardcode_direct=yes
8887      hardcode_shlibpath_var=no
8888      ;;
8889
8890    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
8891    freebsd2*)
8892      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8893      hardcode_direct=yes
8894      hardcode_minus_L=yes
8895      hardcode_shlibpath_var=no
8896      ;;
8897
8898    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
8899    freebsd* | dragonfly*)
8900      archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8901      hardcode_libdir_flag_spec='-R$libdir'
8902      hardcode_direct=yes
8903      hardcode_shlibpath_var=no
8904      ;;
8905
8906    hpux9*)
8907      if test "$GCC" = yes; then
8908	archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
8909      else
8910	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'
8911      fi
8912      hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8913      hardcode_libdir_separator=:
8914      hardcode_direct=yes
8915
8916      # hardcode_minus_L: Not really in the search PATH,
8917      # but as the default location of the library.
8918      hardcode_minus_L=yes
8919      export_dynamic_flag_spec='${wl}-E'
8920      ;;
8921
8922    hpux10*)
8923      if test "$GCC" = yes && test "$with_gnu_ld" = no; then
8924	archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8925      else
8926	archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8927      fi
8928      if test "$with_gnu_ld" = no; then
8929	hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8930	hardcode_libdir_flag_spec_ld='+b $libdir'
8931	hardcode_libdir_separator=:
8932	hardcode_direct=yes
8933	hardcode_direct_absolute=yes
8934	export_dynamic_flag_spec='${wl}-E'
8935	# hardcode_minus_L: Not really in the search PATH,
8936	# but as the default location of the library.
8937	hardcode_minus_L=yes
8938      fi
8939      ;;
8940
8941    hpux11*)
8942      if test "$GCC" = yes && test "$with_gnu_ld" = no; then
8943	case $host_cpu in
8944	hppa*64*)
8945	  archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8946	  ;;
8947	ia64*)
8948	  archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8949	  ;;
8950	*)
8951	  archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8952	  ;;
8953	esac
8954      else
8955	case $host_cpu in
8956	hppa*64*)
8957	  archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8958	  ;;
8959	ia64*)
8960	  archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8961	  ;;
8962	*)
8963
8964	  # Older versions of the 11.00 compiler do not understand -b yet
8965	  # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
8966	  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
8967$as_echo_n "checking if $CC understands -b... " >&6; }
8968if ${lt_cv_prog_compiler__b+:} false; then :
8969  $as_echo_n "(cached) " >&6
8970else
8971  lt_cv_prog_compiler__b=no
8972   save_LDFLAGS="$LDFLAGS"
8973   LDFLAGS="$LDFLAGS -b"
8974   echo "$lt_simple_link_test_code" > conftest.$ac_ext
8975   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8976     # The linker can only warn and ignore the option if not recognized
8977     # So say no if there are warnings
8978     if test -s conftest.err; then
8979       # Append any errors to the config.log.
8980       cat conftest.err 1>&5
8981       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
8982       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8983       if diff conftest.exp conftest.er2 >/dev/null; then
8984         lt_cv_prog_compiler__b=yes
8985       fi
8986     else
8987       lt_cv_prog_compiler__b=yes
8988     fi
8989   fi
8990   $RM -r conftest*
8991   LDFLAGS="$save_LDFLAGS"
8992
8993fi
8994{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
8995$as_echo "$lt_cv_prog_compiler__b" >&6; }
8996
8997if test x"$lt_cv_prog_compiler__b" = xyes; then
8998    archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8999else
9000    archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9001fi
9002
9003	  ;;
9004	esac
9005      fi
9006      if test "$with_gnu_ld" = no; then
9007	hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9008	hardcode_libdir_separator=:
9009
9010	case $host_cpu in
9011	hppa*64*|ia64*)
9012	  hardcode_direct=no
9013	  hardcode_shlibpath_var=no
9014	  ;;
9015	*)
9016	  hardcode_direct=yes
9017	  hardcode_direct_absolute=yes
9018	  export_dynamic_flag_spec='${wl}-E'
9019
9020	  # hardcode_minus_L: Not really in the search PATH,
9021	  # but as the default location of the library.
9022	  hardcode_minus_L=yes
9023	  ;;
9024	esac
9025      fi
9026      ;;
9027
9028    irix5* | irix6* | nonstopux*)
9029      if test "$GCC" = yes; then
9030	archive_cmds='$CC -shared $pic_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'
9031	# Try to use the -exported_symbol ld option, if it does not
9032	# work, assume that -exports_file does not work either and
9033	# implicitly export all symbols.
9034	# This should be the same for all languages, so no per-tag cache variable.
9035	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
9036$as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
9037if ${lt_cv_irix_exported_symbol+:} false; then :
9038  $as_echo_n "(cached) " >&6
9039else
9040  save_LDFLAGS="$LDFLAGS"
9041	   LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9042	   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9043/* end confdefs.h.  */
9044int foo (void) { return 0; }
9045_ACEOF
9046if ac_fn_c_try_link "$LINENO"; then :
9047  lt_cv_irix_exported_symbol=yes
9048else
9049  lt_cv_irix_exported_symbol=no
9050fi
9051rm -f core conftest.err conftest.$ac_objext \
9052    conftest$ac_exeext conftest.$ac_ext
9053           LDFLAGS="$save_LDFLAGS"
9054fi
9055{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
9056$as_echo "$lt_cv_irix_exported_symbol" >&6; }
9057	if test "$lt_cv_irix_exported_symbol" = yes; then
9058          archive_expsym_cmds='$CC -shared $pic_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 ${wl}-exports_file ${wl}$export_symbols -o $lib'
9059	fi
9060      else
9061	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'
9062	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'
9063      fi
9064      archive_cmds_need_lc='no'
9065      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9066      hardcode_libdir_separator=:
9067      inherit_rpath=yes
9068      link_all_deplibs=yes
9069      ;;
9070
9071    netbsd*)
9072      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9073	archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
9074      else
9075	archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
9076      fi
9077      hardcode_libdir_flag_spec='-R$libdir'
9078      hardcode_direct=yes
9079      hardcode_shlibpath_var=no
9080      ;;
9081
9082    newsos6)
9083      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9084      hardcode_direct=yes
9085      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9086      hardcode_libdir_separator=:
9087      hardcode_shlibpath_var=no
9088      ;;
9089
9090    *nto* | *qnx*)
9091      ;;
9092
9093    openbsd*)
9094      if test -f /usr/libexec/ld.so; then
9095	hardcode_direct=yes
9096	hardcode_shlibpath_var=no
9097	hardcode_direct_absolute=yes
9098	if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9099	  archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9100	  archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9101	  hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9102	  export_dynamic_flag_spec='${wl}-E'
9103	else
9104	  case $host_os in
9105	   openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9106	     archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9107	     hardcode_libdir_flag_spec='-R$libdir'
9108	     ;;
9109	   *)
9110	     archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9111	     hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9112	     ;;
9113	  esac
9114	fi
9115      else
9116	ld_shlibs=no
9117      fi
9118      ;;
9119
9120    os2*)
9121      hardcode_libdir_flag_spec='-L$libdir'
9122      hardcode_minus_L=yes
9123      allow_undefined_flag=unsupported
9124      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'
9125      old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9126      ;;
9127
9128    osf3*)
9129      if test "$GCC" = yes; then
9130	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9131	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'
9132      else
9133	allow_undefined_flag=' -expect_unresolved \*'
9134	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'
9135      fi
9136      archive_cmds_need_lc='no'
9137      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9138      hardcode_libdir_separator=:
9139      ;;
9140
9141    osf4* | osf5*)	# as osf3* with the addition of -msym flag
9142      if test "$GCC" = yes; then
9143	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9144	archive_cmds='$CC -shared${allow_undefined_flag} $pic_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'
9145	hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9146      else
9147	allow_undefined_flag=' -expect_unresolved \*'
9148	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'
9149	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~
9150	$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'
9151
9152	# Both c and cxx compiler support -rpath directly
9153	hardcode_libdir_flag_spec='-rpath $libdir'
9154      fi
9155      archive_cmds_need_lc='no'
9156      hardcode_libdir_separator=:
9157      ;;
9158
9159    solaris*)
9160      no_undefined_flag=' -z defs'
9161      if test "$GCC" = yes; then
9162	wlarc='${wl}'
9163	archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9164	archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9165	  $CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9166      else
9167	case `$CC -V 2>&1` in
9168	*"Compilers 5.0"*)
9169	  wlarc=''
9170	  archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9171	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9172	  $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9173	  ;;
9174	*)
9175	  wlarc='${wl}'
9176	  archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9177	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9178	  $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9179	  ;;
9180	esac
9181      fi
9182      hardcode_libdir_flag_spec='-R$libdir'
9183      hardcode_shlibpath_var=no
9184      case $host_os in
9185      solaris2.[0-5] | solaris2.[0-5].*) ;;
9186      *)
9187	# The compiler driver will combine and reorder linker options,
9188	# but understands `-z linker_flag'.  GCC discards it without `$wl',
9189	# but is careful enough not to reorder.
9190	# Supported since Solaris 2.6 (maybe 2.5.1?)
9191	if test "$GCC" = yes; then
9192	  whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9193	else
9194	  whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9195	fi
9196	;;
9197      esac
9198      link_all_deplibs=yes
9199      ;;
9200
9201    sunos4*)
9202      if test "x$host_vendor" = xsequent; then
9203	# Use $CC to link under sequent, because it throws in some extra .o
9204	# files that make .init and .fini sections work.
9205	archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9206      else
9207	archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9208      fi
9209      hardcode_libdir_flag_spec='-L$libdir'
9210      hardcode_direct=yes
9211      hardcode_minus_L=yes
9212      hardcode_shlibpath_var=no
9213      ;;
9214
9215    sysv4)
9216      case $host_vendor in
9217	sni)
9218	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9219	  hardcode_direct=yes # is this really true???
9220	;;
9221	siemens)
9222	  ## LD is ld it makes a PLAMLIB
9223	  ## CC just makes a GrossModule.
9224	  archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9225	  reload_cmds='$CC -r -o $output$reload_objs'
9226	  hardcode_direct=no
9227        ;;
9228	motorola)
9229	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9230	  hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9231	;;
9232      esac
9233      runpath_var='LD_RUN_PATH'
9234      hardcode_shlibpath_var=no
9235      ;;
9236
9237    sysv4.3*)
9238      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9239      hardcode_shlibpath_var=no
9240      export_dynamic_flag_spec='-Bexport'
9241      ;;
9242
9243    sysv4*MP*)
9244      if test -d /usr/nec; then
9245	archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9246	hardcode_shlibpath_var=no
9247	runpath_var=LD_RUN_PATH
9248	hardcode_runpath_var=yes
9249	ld_shlibs=yes
9250      fi
9251      ;;
9252
9253    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
9254      no_undefined_flag='${wl}-z,text'
9255      archive_cmds_need_lc=no
9256      hardcode_shlibpath_var=no
9257      runpath_var='LD_RUN_PATH'
9258
9259      if test "$GCC" = yes; then
9260	archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9261	archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9262      else
9263	archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9264	archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9265      fi
9266      ;;
9267
9268    sysv5* | sco3.2v5* | sco5v6*)
9269      # Note: We can NOT use -z defs as we might desire, because we do not
9270      # link with -lc, and that would cause any symbols used from libc to
9271      # always be unresolved, which means just about no library would
9272      # ever link correctly.  If we're not using GNU ld we use -z text
9273      # though, which does catch some bad symbols but isn't as heavy-handed
9274      # as -z defs.
9275      no_undefined_flag='${wl}-z,text'
9276      allow_undefined_flag='${wl}-z,nodefs'
9277      archive_cmds_need_lc=no
9278      hardcode_shlibpath_var=no
9279      hardcode_libdir_flag_spec='${wl}-R,$libdir'
9280      hardcode_libdir_separator=':'
9281      link_all_deplibs=yes
9282      export_dynamic_flag_spec='${wl}-Bexport'
9283      runpath_var='LD_RUN_PATH'
9284
9285      if test "$GCC" = yes; then
9286	archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9287	archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9288      else
9289	archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9290	archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9291      fi
9292      ;;
9293
9294    uts4*)
9295      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9296      hardcode_libdir_flag_spec='-L$libdir'
9297      hardcode_shlibpath_var=no
9298      ;;
9299
9300    *)
9301      ld_shlibs=no
9302      ;;
9303    esac
9304
9305    if test x$host_vendor = xsni; then
9306      case $host in
9307      sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9308	export_dynamic_flag_spec='${wl}-Blargedynsym'
9309	;;
9310      esac
9311    fi
9312  fi
9313
9314{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
9315$as_echo "$ld_shlibs" >&6; }
9316test "$ld_shlibs" = no && can_build_shared=no
9317
9318with_gnu_ld=$with_gnu_ld
9319
9320
9321
9322
9323
9324
9325
9326
9327
9328
9329
9330
9331
9332
9333
9334#
9335# Do we need to explicitly link libc?
9336#
9337case "x$archive_cmds_need_lc" in
9338x|xyes)
9339  # Assume -lc should be added
9340  archive_cmds_need_lc=yes
9341
9342  if test "$enable_shared" = yes && test "$GCC" = yes; then
9343    case $archive_cmds in
9344    *'~'*)
9345      # FIXME: we may have to deal with multi-command sequences.
9346      ;;
9347    '$CC '*)
9348      # Test whether the compiler implicitly links with -lc since on some
9349      # systems, -lgcc has to come before -lc. If gcc already passes -lc
9350      # to ld, don't add -lc before -lgcc.
9351      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
9352$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
9353if ${lt_cv_archive_cmds_need_lc+:} false; then :
9354  $as_echo_n "(cached) " >&6
9355else
9356  $RM conftest*
9357	echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9358
9359	if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9360  (eval $ac_compile) 2>&5
9361  ac_status=$?
9362  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9363  test $ac_status = 0; } 2>conftest.err; then
9364	  soname=conftest
9365	  lib=conftest
9366	  libobjs=conftest.$ac_objext
9367	  deplibs=
9368	  wl=$lt_prog_compiler_wl
9369	  pic_flag=$lt_prog_compiler_pic
9370	  compiler_flags=-v
9371	  linker_flags=-v
9372	  verstring=
9373	  output_objdir=.
9374	  libname=conftest
9375	  lt_save_allow_undefined_flag=$allow_undefined_flag
9376	  allow_undefined_flag=
9377	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
9378  (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
9379  ac_status=$?
9380  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9381  test $ac_status = 0; }
9382	  then
9383	    lt_cv_archive_cmds_need_lc=no
9384	  else
9385	    lt_cv_archive_cmds_need_lc=yes
9386	  fi
9387	  allow_undefined_flag=$lt_save_allow_undefined_flag
9388	else
9389	  cat conftest.err 1>&5
9390	fi
9391	$RM conftest*
9392
9393fi
9394{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
9395$as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
9396      archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
9397      ;;
9398    esac
9399  fi
9400  ;;
9401esac
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
9513
9514
9515
9516
9517
9518
9519
9520
9521
9522
9523
9524
9525
9526
9527
9528
9529
9530
9531
9532
9533
9534
9535
9536
9537
9538
9539
9540
9541
9542
9543
9544
9545
9546
9547
9548
9549
9550
9551
9552
9553
9554
9555
9556
9557
9558
9559  { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
9560$as_echo_n "checking dynamic linker characteristics... " >&6; }
9561
9562if test "$GCC" = yes; then
9563  case $host_os in
9564    darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
9565    *) lt_awk_arg="/^libraries:/" ;;
9566  esac
9567  case $host_os in
9568    mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
9569    *) lt_sed_strip_eq="s,=/,/,g" ;;
9570  esac
9571  lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
9572  case $lt_search_path_spec in
9573  *\;*)
9574    # if the path contains ";" then we assume it to be the separator
9575    # otherwise default to the standard path separator (i.e. ":") - it is
9576    # assumed that no part of a normal pathname contains ";" but that should
9577    # okay in the real world where ";" in dirpaths is itself problematic.
9578    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
9579    ;;
9580  *)
9581    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
9582    ;;
9583  esac
9584  # Ok, now we have the path, separated by spaces, we can step through it
9585  # and add multilib dir if necessary.
9586  lt_tmp_lt_search_path_spec=
9587  lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
9588  for lt_sys_path in $lt_search_path_spec; do
9589    if test -d "$lt_sys_path/$lt_multi_os_dir"; then
9590      lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
9591    else
9592      test -d "$lt_sys_path" && \
9593	lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
9594    fi
9595  done
9596  lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
9597BEGIN {RS=" "; FS="/|\n";} {
9598  lt_foo="";
9599  lt_count=0;
9600  for (lt_i = NF; lt_i > 0; lt_i--) {
9601    if ($lt_i != "" && $lt_i != ".") {
9602      if ($lt_i == "..") {
9603        lt_count++;
9604      } else {
9605        if (lt_count == 0) {
9606          lt_foo="/" $lt_i lt_foo;
9607        } else {
9608          lt_count--;
9609        }
9610      }
9611    }
9612  }
9613  if (lt_foo != "") { lt_freq[lt_foo]++; }
9614  if (lt_freq[lt_foo] == 1) { print lt_foo; }
9615}'`
9616  # AWK program above erroneously prepends '/' to C:/dos/paths
9617  # for these hosts.
9618  case $host_os in
9619    mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
9620      $SED 's,/\([A-Za-z]:\),\1,g'` ;;
9621  esac
9622  sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
9623else
9624  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9625fi
9626library_names_spec=
9627libname_spec='lib$name'
9628soname_spec=
9629shrext_cmds=".so"
9630postinstall_cmds=
9631postuninstall_cmds=
9632finish_cmds=
9633finish_eval=
9634shlibpath_var=
9635shlibpath_overrides_runpath=unknown
9636version_type=none
9637dynamic_linker="$host_os ld.so"
9638sys_lib_dlsearch_path_spec="/lib /usr/lib"
9639need_lib_prefix=unknown
9640hardcode_into_libs=no
9641
9642# when you set need_version to no, make sure it does not cause -set_version
9643# flags to be left without arguments
9644need_version=unknown
9645
9646case $host_os in
9647aix3*)
9648  version_type=linux
9649  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9650  shlibpath_var=LIBPATH
9651
9652  # AIX 3 has no versioning support, so we append a major version to the name.
9653  soname_spec='${libname}${release}${shared_ext}$major'
9654  ;;
9655
9656aix[4-9]*)
9657  version_type=linux
9658  need_lib_prefix=no
9659  need_version=no
9660  hardcode_into_libs=yes
9661  if test "$host_cpu" = ia64; then
9662    # AIX 5 supports IA64
9663    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9664    shlibpath_var=LD_LIBRARY_PATH
9665  else
9666    # With GCC up to 2.95.x, collect2 would create an import file
9667    # for dependence libraries.  The import file would start with
9668    # the line `#! .'.  This would cause the generated library to
9669    # depend on `.', always an invalid library.  This was fixed in
9670    # development snapshots of GCC prior to 3.0.
9671    case $host_os in
9672      aix4 | aix4.[01] | aix4.[01].*)
9673      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9674	   echo ' yes '
9675	   echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
9676	:
9677      else
9678	can_build_shared=no
9679      fi
9680      ;;
9681    esac
9682    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9683    # soname into executable. Probably we can add versioning support to
9684    # collect2, so additional links can be useful in future.
9685    if test "$aix_use_runtimelinking" = yes; then
9686      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9687      # instead of lib<name>.a to let people know that these are not
9688      # typical AIX shared libraries.
9689      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9690    else
9691      # We preserve .a as extension for shared libraries through AIX4.2
9692      # and later when we are not doing run time linking.
9693      library_names_spec='${libname}${release}.a $libname.a'
9694      soname_spec='${libname}${release}${shared_ext}$major'
9695    fi
9696    shlibpath_var=LIBPATH
9697  fi
9698  ;;
9699
9700amigaos*)
9701  case $host_cpu in
9702  powerpc)
9703    # Since July 2007 AmigaOS4 officially supports .so libraries.
9704    # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
9705    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9706    ;;
9707  m68k)
9708    library_names_spec='$libname.ixlibrary $libname.a'
9709    # Create ${libname}_ixlibrary.a entries in /sys/libs.
9710    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'
9711    ;;
9712  esac
9713  ;;
9714
9715beos*)
9716  library_names_spec='${libname}${shared_ext}'
9717  dynamic_linker="$host_os ld.so"
9718  shlibpath_var=LIBRARY_PATH
9719  ;;
9720
9721bsdi[45]*)
9722  version_type=linux
9723  need_version=no
9724  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9725  soname_spec='${libname}${release}${shared_ext}$major'
9726  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9727  shlibpath_var=LD_LIBRARY_PATH
9728  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9729  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9730  # the default ld.so.conf also contains /usr/contrib/lib and
9731  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9732  # libtool to hard-code these into programs
9733  ;;
9734
9735cygwin* | mingw* | pw32* | cegcc*)
9736  version_type=windows
9737  shrext_cmds=".dll"
9738  need_version=no
9739  need_lib_prefix=no
9740
9741  case $GCC,$cc_basename in
9742  yes,*)
9743    # gcc
9744    library_names_spec='$libname.dll.a'
9745    # DLL is installed to $(libdir)/../bin by postinstall_cmds
9746    postinstall_cmds='base_file=`basename \${file}`~
9747      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
9748      dldir=$destdir/`dirname \$dlpath`~
9749      test -d \$dldir || mkdir -p \$dldir~
9750      $install_prog $dir/$dlname \$dldir/$dlname~
9751      chmod a+x \$dldir/$dlname~
9752      if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
9753        eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
9754      fi'
9755    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9756      dlpath=$dir/\$dldll~
9757       $RM \$dlpath'
9758    shlibpath_overrides_runpath=yes
9759
9760    case $host_os in
9761    cygwin*)
9762      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9763      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9764
9765      sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
9766      ;;
9767    mingw* | cegcc*)
9768      # MinGW DLLs use traditional 'lib' prefix
9769      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9770      ;;
9771    pw32*)
9772      # pw32 DLLs use 'pw' prefix rather than 'lib'
9773      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9774      ;;
9775    esac
9776    dynamic_linker='Win32 ld.exe'
9777    ;;
9778
9779  *,cl*)
9780    # Native MSVC
9781    libname_spec='$name'
9782    soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9783    library_names_spec='${libname}.dll.lib'
9784
9785    case $build_os in
9786    mingw*)
9787      sys_lib_search_path_spec=
9788      lt_save_ifs=$IFS
9789      IFS=';'
9790      for lt_path in $LIB
9791      do
9792        IFS=$lt_save_ifs
9793        # Let DOS variable expansion print the short 8.3 style file name.
9794        lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
9795        sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
9796      done
9797      IFS=$lt_save_ifs
9798      # Convert to MSYS style.
9799      sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
9800      ;;
9801    cygwin*)
9802      # Convert to unix form, then to dos form, then back to unix form
9803      # but this time dos style (no spaces!) so that the unix form looks
9804      # like /cygdrive/c/PROGRA~1:/cygdr...
9805      sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
9806      sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
9807      sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9808      ;;
9809    *)
9810      sys_lib_search_path_spec="$LIB"
9811      if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
9812        # It is most probably a Windows format PATH.
9813        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9814      else
9815        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9816      fi
9817      # FIXME: find the short name or the path components, as spaces are
9818      # common. (e.g. "Program Files" -> "PROGRA~1")
9819      ;;
9820    esac
9821
9822    # DLL is installed to $(libdir)/../bin by postinstall_cmds
9823    postinstall_cmds='base_file=`basename \${file}`~
9824      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
9825      dldir=$destdir/`dirname \$dlpath`~
9826      test -d \$dldir || mkdir -p \$dldir~
9827      $install_prog $dir/$dlname \$dldir/$dlname'
9828    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9829      dlpath=$dir/\$dldll~
9830       $RM \$dlpath'
9831    shlibpath_overrides_runpath=yes
9832    dynamic_linker='Win32 link.exe'
9833    ;;
9834
9835  *)
9836    # Assume MSVC wrapper
9837    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9838    dynamic_linker='Win32 ld.exe'
9839    ;;
9840  esac
9841  # FIXME: first we should search . and the directory the executable is in
9842  shlibpath_var=PATH
9843  ;;
9844
9845darwin* | rhapsody*)
9846  dynamic_linker="$host_os dyld"
9847  version_type=darwin
9848  need_lib_prefix=no
9849  need_version=no
9850  library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9851  soname_spec='${libname}${release}${major}$shared_ext'
9852  shlibpath_overrides_runpath=yes
9853  shlibpath_var=DYLD_LIBRARY_PATH
9854  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
9855
9856  sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
9857  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9858  ;;
9859
9860dgux*)
9861  version_type=linux
9862  need_lib_prefix=no
9863  need_version=no
9864  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9865  soname_spec='${libname}${release}${shared_ext}$major'
9866  shlibpath_var=LD_LIBRARY_PATH
9867  ;;
9868
9869freebsd1*)
9870  dynamic_linker=no
9871  ;;
9872
9873freebsd* | dragonfly*)
9874  # DragonFly does not have aout.  When/if they implement a new
9875  # versioning mechanism, adjust this.
9876  if test -x /usr/bin/objformat; then
9877    objformat=`/usr/bin/objformat`
9878  else
9879    case $host_os in
9880    freebsd[123]*) objformat=aout ;;
9881    *) objformat=elf ;;
9882    esac
9883  fi
9884  version_type=freebsd-$objformat
9885  case $version_type in
9886    freebsd-elf*)
9887      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9888      need_version=no
9889      need_lib_prefix=no
9890      ;;
9891    freebsd-*)
9892      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9893      need_version=yes
9894      ;;
9895  esac
9896  shlibpath_var=LD_LIBRARY_PATH
9897  case $host_os in
9898  freebsd2*)
9899    shlibpath_overrides_runpath=yes
9900    ;;
9901  freebsd3.[01]* | freebsdelf3.[01]*)
9902    shlibpath_overrides_runpath=yes
9903    hardcode_into_libs=yes
9904    ;;
9905  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9906  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9907    shlibpath_overrides_runpath=no
9908    hardcode_into_libs=yes
9909    ;;
9910  *) # from 4.6 on, and DragonFly
9911    shlibpath_overrides_runpath=yes
9912    hardcode_into_libs=yes
9913    ;;
9914  esac
9915  ;;
9916
9917gnu*)
9918  version_type=linux
9919  need_lib_prefix=no
9920  need_version=no
9921  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9922  soname_spec='${libname}${release}${shared_ext}$major'
9923  shlibpath_var=LD_LIBRARY_PATH
9924  hardcode_into_libs=yes
9925  ;;
9926
9927haiku*)
9928  version_type=linux
9929  need_lib_prefix=no
9930  need_version=no
9931  dynamic_linker="$host_os runtime_loader"
9932  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9933  soname_spec='${libname}${release}${shared_ext}$major'
9934  shlibpath_var=LIBRARY_PATH
9935  shlibpath_overrides_runpath=yes
9936  sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
9937  hardcode_into_libs=yes
9938  ;;
9939
9940hpux9* | hpux10* | hpux11*)
9941  # Give a soname corresponding to the major version so that dld.sl refuses to
9942  # link against other versions.
9943  version_type=sunos
9944  need_lib_prefix=no
9945  need_version=no
9946  case $host_cpu in
9947  ia64*)
9948    shrext_cmds='.so'
9949    hardcode_into_libs=yes
9950    dynamic_linker="$host_os dld.so"
9951    shlibpath_var=LD_LIBRARY_PATH
9952    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9953    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9954    soname_spec='${libname}${release}${shared_ext}$major'
9955    if test "X$HPUX_IA64_MODE" = X32; then
9956      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9957    else
9958      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9959    fi
9960    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9961    ;;
9962  hppa*64*)
9963    shrext_cmds='.sl'
9964    hardcode_into_libs=yes
9965    dynamic_linker="$host_os dld.sl"
9966    shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9967    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9968    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9969    soname_spec='${libname}${release}${shared_ext}$major'
9970    sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9971    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9972    ;;
9973  *)
9974    shrext_cmds='.sl'
9975    dynamic_linker="$host_os dld.sl"
9976    shlibpath_var=SHLIB_PATH
9977    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9978    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9979    soname_spec='${libname}${release}${shared_ext}$major'
9980    ;;
9981  esac
9982  # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
9983  postinstall_cmds='chmod 555 $lib'
9984  # or fails outright, so override atomically:
9985  install_override_mode=555
9986  ;;
9987
9988interix[3-9]*)
9989  version_type=linux
9990  need_lib_prefix=no
9991  need_version=no
9992  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9993  soname_spec='${libname}${release}${shared_ext}$major'
9994  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9995  shlibpath_var=LD_LIBRARY_PATH
9996  shlibpath_overrides_runpath=no
9997  hardcode_into_libs=yes
9998  ;;
9999
10000irix5* | irix6* | nonstopux*)
10001  case $host_os in
10002    nonstopux*) version_type=nonstopux ;;
10003    *)
10004	if test "$lt_cv_prog_gnu_ld" = yes; then
10005		version_type=linux
10006	else
10007		version_type=irix
10008	fi ;;
10009  esac
10010  need_lib_prefix=no
10011  need_version=no
10012  soname_spec='${libname}${release}${shared_ext}$major'
10013  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10014  case $host_os in
10015  irix5* | nonstopux*)
10016    libsuff= shlibsuff=
10017    ;;
10018  *)
10019    case $LD in # libtool.m4 will add one of these switches to LD
10020    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10021      libsuff= shlibsuff= libmagic=32-bit;;
10022    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10023      libsuff=32 shlibsuff=N32 libmagic=N32;;
10024    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10025      libsuff=64 shlibsuff=64 libmagic=64-bit;;
10026    *) libsuff= shlibsuff= libmagic=never-match;;
10027    esac
10028    ;;
10029  esac
10030  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10031  shlibpath_overrides_runpath=no
10032  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10033  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10034  hardcode_into_libs=yes
10035  ;;
10036
10037# No shared lib support for Linux oldld, aout, or coff.
10038linux*oldld* | linux*aout* | linux*coff*)
10039  dynamic_linker=no
10040  ;;
10041
10042# This must be Linux ELF.
10043linux* | k*bsd*-gnu | kopensolaris*-gnu)
10044  version_type=linux
10045  need_lib_prefix=no
10046  need_version=no
10047  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10048  soname_spec='${libname}${release}${shared_ext}$major'
10049  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10050  shlibpath_var=LD_LIBRARY_PATH
10051  shlibpath_overrides_runpath=no
10052
10053  # Some binutils ld are patched to set DT_RUNPATH
10054  if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
10055  $as_echo_n "(cached) " >&6
10056else
10057  lt_cv_shlibpath_overrides_runpath=no
10058    save_LDFLAGS=$LDFLAGS
10059    save_libdir=$libdir
10060    eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10061	 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10062    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10063/* end confdefs.h.  */
10064
10065int
10066main ()
10067{
10068
10069  ;
10070  return 0;
10071}
10072_ACEOF
10073if ac_fn_c_try_link "$LINENO"; then :
10074  if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
10075  lt_cv_shlibpath_overrides_runpath=yes
10076fi
10077fi
10078rm -f core conftest.err conftest.$ac_objext \
10079    conftest$ac_exeext conftest.$ac_ext
10080    LDFLAGS=$save_LDFLAGS
10081    libdir=$save_libdir
10082
10083fi
10084
10085  shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
10086
10087  # This implies no fast_install, which is unacceptable.
10088  # Some rework will be needed to allow for fast_install
10089  # before this can be enabled.
10090  hardcode_into_libs=yes
10091
10092  # Append ld.so.conf contents to the search path
10093  if test -f /etc/ld.so.conf; then
10094    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' ' '`
10095    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10096  fi
10097
10098  # We used to test for /lib/ld.so.1 and disable shared libraries on
10099  # powerpc, because MkLinux only supported shared libraries with the
10100  # GNU dynamic linker.  Since this was broken with cross compilers,
10101  # most powerpc-linux boxes support dynamic linking these days and
10102  # people can always --disable-shared, the test was removed, and we
10103  # assume the GNU/Linux dynamic linker is in use.
10104  dynamic_linker='GNU/Linux ld.so'
10105  ;;
10106
10107netbsd*)
10108  version_type=sunos
10109  need_lib_prefix=no
10110  need_version=no
10111  if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10112    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10113    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10114    dynamic_linker='NetBSD (a.out) ld.so'
10115  else
10116    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10117    soname_spec='${libname}${release}${shared_ext}$major'
10118    dynamic_linker='NetBSD ld.elf_so'
10119  fi
10120  shlibpath_var=LD_LIBRARY_PATH
10121  shlibpath_overrides_runpath=yes
10122  hardcode_into_libs=yes
10123  ;;
10124
10125newsos6)
10126  version_type=linux
10127  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10128  shlibpath_var=LD_LIBRARY_PATH
10129  shlibpath_overrides_runpath=yes
10130  ;;
10131
10132*nto* | *qnx*)
10133  version_type=qnx
10134  need_lib_prefix=no
10135  need_version=no
10136  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10137  soname_spec='${libname}${release}${shared_ext}$major'
10138  shlibpath_var=LD_LIBRARY_PATH
10139  shlibpath_overrides_runpath=no
10140  hardcode_into_libs=yes
10141  dynamic_linker='ldqnx.so'
10142  ;;
10143
10144openbsd*)
10145  version_type=sunos
10146  sys_lib_dlsearch_path_spec="/usr/lib"
10147  need_lib_prefix=no
10148  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10149  case $host_os in
10150    openbsd3.3 | openbsd3.3.*)	need_version=yes ;;
10151    *)				need_version=no  ;;
10152  esac
10153  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10154  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10155  shlibpath_var=LD_LIBRARY_PATH
10156  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10157    case $host_os in
10158      openbsd2.[89] | openbsd2.[89].*)
10159	shlibpath_overrides_runpath=no
10160	;;
10161      *)
10162	shlibpath_overrides_runpath=yes
10163	;;
10164      esac
10165  else
10166    shlibpath_overrides_runpath=yes
10167  fi
10168  ;;
10169
10170os2*)
10171  libname_spec='$name'
10172  shrext_cmds=".dll"
10173  need_lib_prefix=no
10174  library_names_spec='$libname${shared_ext} $libname.a'
10175  dynamic_linker='OS/2 ld.exe'
10176  shlibpath_var=LIBPATH
10177  ;;
10178
10179osf3* | osf4* | osf5*)
10180  version_type=osf
10181  need_lib_prefix=no
10182  need_version=no
10183  soname_spec='${libname}${release}${shared_ext}$major'
10184  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10185  shlibpath_var=LD_LIBRARY_PATH
10186  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10187  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10188  ;;
10189
10190rdos*)
10191  dynamic_linker=no
10192  ;;
10193
10194solaris*)
10195  version_type=linux
10196  need_lib_prefix=no
10197  need_version=no
10198  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10199  soname_spec='${libname}${release}${shared_ext}$major'
10200  shlibpath_var=LD_LIBRARY_PATH
10201  shlibpath_overrides_runpath=yes
10202  hardcode_into_libs=yes
10203  # ldd complains unless libraries are executable
10204  postinstall_cmds='chmod +x $lib'
10205  ;;
10206
10207sunos4*)
10208  version_type=sunos
10209  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10210  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10211  shlibpath_var=LD_LIBRARY_PATH
10212  shlibpath_overrides_runpath=yes
10213  if test "$with_gnu_ld" = yes; then
10214    need_lib_prefix=no
10215  fi
10216  need_version=yes
10217  ;;
10218
10219sysv4 | sysv4.3*)
10220  version_type=linux
10221  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10222  soname_spec='${libname}${release}${shared_ext}$major'
10223  shlibpath_var=LD_LIBRARY_PATH
10224  case $host_vendor in
10225    sni)
10226      shlibpath_overrides_runpath=no
10227      need_lib_prefix=no
10228      runpath_var=LD_RUN_PATH
10229      ;;
10230    siemens)
10231      need_lib_prefix=no
10232      ;;
10233    motorola)
10234      need_lib_prefix=no
10235      need_version=no
10236      shlibpath_overrides_runpath=no
10237      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10238      ;;
10239  esac
10240  ;;
10241
10242sysv4*MP*)
10243  if test -d /usr/nec ;then
10244    version_type=linux
10245    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10246    soname_spec='$libname${shared_ext}.$major'
10247    shlibpath_var=LD_LIBRARY_PATH
10248  fi
10249  ;;
10250
10251sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10252  version_type=freebsd-elf
10253  need_lib_prefix=no
10254  need_version=no
10255  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10256  soname_spec='${libname}${release}${shared_ext}$major'
10257  shlibpath_var=LD_LIBRARY_PATH
10258  shlibpath_overrides_runpath=yes
10259  hardcode_into_libs=yes
10260  if test "$with_gnu_ld" = yes; then
10261    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10262  else
10263    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10264    case $host_os in
10265      sco3.2v5*)
10266        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10267	;;
10268    esac
10269  fi
10270  sys_lib_dlsearch_path_spec='/usr/lib'
10271  ;;
10272
10273tpf*)
10274  # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
10275  version_type=linux
10276  need_lib_prefix=no
10277  need_version=no
10278  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10279  shlibpath_var=LD_LIBRARY_PATH
10280  shlibpath_overrides_runpath=no
10281  hardcode_into_libs=yes
10282  ;;
10283
10284uts4*)
10285  version_type=linux
10286  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10287  soname_spec='${libname}${release}${shared_ext}$major'
10288  shlibpath_var=LD_LIBRARY_PATH
10289  ;;
10290
10291*)
10292  dynamic_linker=no
10293  ;;
10294esac
10295{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
10296$as_echo "$dynamic_linker" >&6; }
10297test "$dynamic_linker" = no && can_build_shared=no
10298
10299variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10300if test "$GCC" = yes; then
10301  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10302fi
10303
10304if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
10305  sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
10306fi
10307if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
10308  sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
10309fi
10310
10311
10312
10313
10314
10315
10316
10317
10318
10319
10320
10321
10322
10323
10324
10325
10326
10327
10328
10329
10330
10331
10332
10333
10334
10335
10336
10337
10338
10339
10340
10341
10342
10343
10344
10345
10346
10347
10348
10349
10350
10351
10352
10353
10354
10355
10356
10357
10358
10359
10360
10361
10362
10363
10364
10365
10366
10367
10368
10369
10370
10371
10372
10373
10374
10375
10376
10377
10378
10379
10380
10381
10382
10383
10384
10385
10386
10387
10388
10389
10390
10391
10392
10393
10394
10395
10396
10397
10398
10399
10400
10401
10402  { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
10403$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
10404hardcode_action=
10405if test -n "$hardcode_libdir_flag_spec" ||
10406   test -n "$runpath_var" ||
10407   test "X$hardcode_automatic" = "Xyes" ; then
10408
10409  # We can hardcode non-existent directories.
10410  if test "$hardcode_direct" != no &&
10411     # If the only mechanism to avoid hardcoding is shlibpath_var, we
10412     # have to relink, otherwise we might link with an installed library
10413     # when we should be linking with a yet-to-be-installed one
10414     ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
10415     test "$hardcode_minus_L" != no; then
10416    # Linking always hardcodes the temporary library directory.
10417    hardcode_action=relink
10418  else
10419    # We can link without hardcoding, and we can hardcode nonexisting dirs.
10420    hardcode_action=immediate
10421  fi
10422else
10423  # We cannot hardcode anything, or else we can only hardcode existing
10424  # directories.
10425  hardcode_action=unsupported
10426fi
10427{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
10428$as_echo "$hardcode_action" >&6; }
10429
10430if test "$hardcode_action" = relink ||
10431   test "$inherit_rpath" = yes; then
10432  # Fast installation is not supported
10433  enable_fast_install=no
10434elif test "$shlibpath_overrides_runpath" = yes ||
10435     test "$enable_shared" = no; then
10436  # Fast installation is not necessary
10437  enable_fast_install=needless
10438fi
10439
10440
10441
10442
10443
10444
10445  if test "x$enable_dlopen" != xyes; then
10446  enable_dlopen=unknown
10447  enable_dlopen_self=unknown
10448  enable_dlopen_self_static=unknown
10449else
10450  lt_cv_dlopen=no
10451  lt_cv_dlopen_libs=
10452
10453  case $host_os in
10454  beos*)
10455    lt_cv_dlopen="load_add_on"
10456    lt_cv_dlopen_libs=
10457    lt_cv_dlopen_self=yes
10458    ;;
10459
10460  mingw* | pw32* | cegcc*)
10461    lt_cv_dlopen="LoadLibrary"
10462    lt_cv_dlopen_libs=
10463    ;;
10464
10465  cygwin*)
10466    lt_cv_dlopen="dlopen"
10467    lt_cv_dlopen_libs=
10468    ;;
10469
10470  darwin*)
10471  # if libdl is installed we need to link against it
10472    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10473$as_echo_n "checking for dlopen in -ldl... " >&6; }
10474if ${ac_cv_lib_dl_dlopen+:} false; then :
10475  $as_echo_n "(cached) " >&6
10476else
10477  ac_check_lib_save_LIBS=$LIBS
10478LIBS="-ldl  $LIBS"
10479cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10480/* end confdefs.h.  */
10481
10482/* Override any GCC internal prototype to avoid an error.
10483   Use char because int might match the return type of a GCC
10484   builtin and then its argument prototype would still apply.  */
10485#ifdef __cplusplus
10486extern "C"
10487#endif
10488char dlopen ();
10489int
10490main ()
10491{
10492return dlopen ();
10493  ;
10494  return 0;
10495}
10496_ACEOF
10497if ac_fn_c_try_link "$LINENO"; then :
10498  ac_cv_lib_dl_dlopen=yes
10499else
10500  ac_cv_lib_dl_dlopen=no
10501fi
10502rm -f core conftest.err conftest.$ac_objext \
10503    conftest$ac_exeext conftest.$ac_ext
10504LIBS=$ac_check_lib_save_LIBS
10505fi
10506{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10507$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10508if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
10509  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10510else
10511
10512    lt_cv_dlopen="dyld"
10513    lt_cv_dlopen_libs=
10514    lt_cv_dlopen_self=yes
10515
10516fi
10517
10518    ;;
10519
10520  *)
10521    ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
10522if test "x$ac_cv_func_shl_load" = xyes; then :
10523  lt_cv_dlopen="shl_load"
10524else
10525  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
10526$as_echo_n "checking for shl_load in -ldld... " >&6; }
10527if ${ac_cv_lib_dld_shl_load+:} false; then :
10528  $as_echo_n "(cached) " >&6
10529else
10530  ac_check_lib_save_LIBS=$LIBS
10531LIBS="-ldld  $LIBS"
10532cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10533/* end confdefs.h.  */
10534
10535/* Override any GCC internal prototype to avoid an error.
10536   Use char because int might match the return type of a GCC
10537   builtin and then its argument prototype would still apply.  */
10538#ifdef __cplusplus
10539extern "C"
10540#endif
10541char shl_load ();
10542int
10543main ()
10544{
10545return shl_load ();
10546  ;
10547  return 0;
10548}
10549_ACEOF
10550if ac_fn_c_try_link "$LINENO"; then :
10551  ac_cv_lib_dld_shl_load=yes
10552else
10553  ac_cv_lib_dld_shl_load=no
10554fi
10555rm -f core conftest.err conftest.$ac_objext \
10556    conftest$ac_exeext conftest.$ac_ext
10557LIBS=$ac_check_lib_save_LIBS
10558fi
10559{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
10560$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
10561if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
10562  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
10563else
10564  ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
10565if test "x$ac_cv_func_dlopen" = xyes; then :
10566  lt_cv_dlopen="dlopen"
10567else
10568  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10569$as_echo_n "checking for dlopen in -ldl... " >&6; }
10570if ${ac_cv_lib_dl_dlopen+:} false; then :
10571  $as_echo_n "(cached) " >&6
10572else
10573  ac_check_lib_save_LIBS=$LIBS
10574LIBS="-ldl  $LIBS"
10575cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10576/* end confdefs.h.  */
10577
10578/* Override any GCC internal prototype to avoid an error.
10579   Use char because int might match the return type of a GCC
10580   builtin and then its argument prototype would still apply.  */
10581#ifdef __cplusplus
10582extern "C"
10583#endif
10584char dlopen ();
10585int
10586main ()
10587{
10588return dlopen ();
10589  ;
10590  return 0;
10591}
10592_ACEOF
10593if ac_fn_c_try_link "$LINENO"; then :
10594  ac_cv_lib_dl_dlopen=yes
10595else
10596  ac_cv_lib_dl_dlopen=no
10597fi
10598rm -f core conftest.err conftest.$ac_objext \
10599    conftest$ac_exeext conftest.$ac_ext
10600LIBS=$ac_check_lib_save_LIBS
10601fi
10602{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10603$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10604if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
10605  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10606else
10607  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
10608$as_echo_n "checking for dlopen in -lsvld... " >&6; }
10609if ${ac_cv_lib_svld_dlopen+:} false; then :
10610  $as_echo_n "(cached) " >&6
10611else
10612  ac_check_lib_save_LIBS=$LIBS
10613LIBS="-lsvld  $LIBS"
10614cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10615/* end confdefs.h.  */
10616
10617/* Override any GCC internal prototype to avoid an error.
10618   Use char because int might match the return type of a GCC
10619   builtin and then its argument prototype would still apply.  */
10620#ifdef __cplusplus
10621extern "C"
10622#endif
10623char dlopen ();
10624int
10625main ()
10626{
10627return dlopen ();
10628  ;
10629  return 0;
10630}
10631_ACEOF
10632if ac_fn_c_try_link "$LINENO"; then :
10633  ac_cv_lib_svld_dlopen=yes
10634else
10635  ac_cv_lib_svld_dlopen=no
10636fi
10637rm -f core conftest.err conftest.$ac_objext \
10638    conftest$ac_exeext conftest.$ac_ext
10639LIBS=$ac_check_lib_save_LIBS
10640fi
10641{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
10642$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
10643if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
10644  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10645else
10646  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
10647$as_echo_n "checking for dld_link in -ldld... " >&6; }
10648if ${ac_cv_lib_dld_dld_link+:} false; then :
10649  $as_echo_n "(cached) " >&6
10650else
10651  ac_check_lib_save_LIBS=$LIBS
10652LIBS="-ldld  $LIBS"
10653cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10654/* end confdefs.h.  */
10655
10656/* Override any GCC internal prototype to avoid an error.
10657   Use char because int might match the return type of a GCC
10658   builtin and then its argument prototype would still apply.  */
10659#ifdef __cplusplus
10660extern "C"
10661#endif
10662char dld_link ();
10663int
10664main ()
10665{
10666return dld_link ();
10667  ;
10668  return 0;
10669}
10670_ACEOF
10671if ac_fn_c_try_link "$LINENO"; then :
10672  ac_cv_lib_dld_dld_link=yes
10673else
10674  ac_cv_lib_dld_dld_link=no
10675fi
10676rm -f core conftest.err conftest.$ac_objext \
10677    conftest$ac_exeext conftest.$ac_ext
10678LIBS=$ac_check_lib_save_LIBS
10679fi
10680{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
10681$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
10682if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
10683  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
10684fi
10685
10686
10687fi
10688
10689
10690fi
10691
10692
10693fi
10694
10695
10696fi
10697
10698
10699fi
10700
10701    ;;
10702  esac
10703
10704  if test "x$lt_cv_dlopen" != xno; then
10705    enable_dlopen=yes
10706  else
10707    enable_dlopen=no
10708  fi
10709
10710  case $lt_cv_dlopen in
10711  dlopen)
10712    save_CPPFLAGS="$CPPFLAGS"
10713    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10714
10715    save_LDFLAGS="$LDFLAGS"
10716    wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10717
10718    save_LIBS="$LIBS"
10719    LIBS="$lt_cv_dlopen_libs $LIBS"
10720
10721    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
10722$as_echo_n "checking whether a program can dlopen itself... " >&6; }
10723if ${lt_cv_dlopen_self+:} false; then :
10724  $as_echo_n "(cached) " >&6
10725else
10726  	  if test "$cross_compiling" = yes; then :
10727  lt_cv_dlopen_self=cross
10728else
10729  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10730  lt_status=$lt_dlunknown
10731  cat > conftest.$ac_ext <<_LT_EOF
10732#line $LINENO "configure"
10733#include "confdefs.h"
10734
10735#if HAVE_DLFCN_H
10736#include <dlfcn.h>
10737#endif
10738
10739#include <stdio.h>
10740
10741#ifdef RTLD_GLOBAL
10742#  define LT_DLGLOBAL		RTLD_GLOBAL
10743#else
10744#  ifdef DL_GLOBAL
10745#    define LT_DLGLOBAL		DL_GLOBAL
10746#  else
10747#    define LT_DLGLOBAL		0
10748#  endif
10749#endif
10750
10751/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10752   find out it does not work in some platform. */
10753#ifndef LT_DLLAZY_OR_NOW
10754#  ifdef RTLD_LAZY
10755#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
10756#  else
10757#    ifdef DL_LAZY
10758#      define LT_DLLAZY_OR_NOW		DL_LAZY
10759#    else
10760#      ifdef RTLD_NOW
10761#        define LT_DLLAZY_OR_NOW	RTLD_NOW
10762#      else
10763#        ifdef DL_NOW
10764#          define LT_DLLAZY_OR_NOW	DL_NOW
10765#        else
10766#          define LT_DLLAZY_OR_NOW	0
10767#        endif
10768#      endif
10769#    endif
10770#  endif
10771#endif
10772
10773/* When -fvisbility=hidden is used, assume the code has been annotated
10774   correspondingly for the symbols needed.  */
10775#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
10776int fnord () __attribute__((visibility("default")));
10777#endif
10778
10779int fnord () { return 42; }
10780int main ()
10781{
10782  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10783  int status = $lt_dlunknown;
10784
10785  if (self)
10786    {
10787      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
10788      else
10789        {
10790	  if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
10791          else puts (dlerror ());
10792	}
10793      /* dlclose (self); */
10794    }
10795  else
10796    puts (dlerror ());
10797
10798  return status;
10799}
10800_LT_EOF
10801  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
10802  (eval $ac_link) 2>&5
10803  ac_status=$?
10804  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10805  test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
10806    (./conftest; exit; ) >&5 2>/dev/null
10807    lt_status=$?
10808    case x$lt_status in
10809      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
10810      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
10811      x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
10812    esac
10813  else :
10814    # compilation failed
10815    lt_cv_dlopen_self=no
10816  fi
10817fi
10818rm -fr conftest*
10819
10820
10821fi
10822{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
10823$as_echo "$lt_cv_dlopen_self" >&6; }
10824
10825    if test "x$lt_cv_dlopen_self" = xyes; then
10826      wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
10827      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
10828$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
10829if ${lt_cv_dlopen_self_static+:} false; then :
10830  $as_echo_n "(cached) " >&6
10831else
10832  	  if test "$cross_compiling" = yes; then :
10833  lt_cv_dlopen_self_static=cross
10834else
10835  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10836  lt_status=$lt_dlunknown
10837  cat > conftest.$ac_ext <<_LT_EOF
10838#line $LINENO "configure"
10839#include "confdefs.h"
10840
10841#if HAVE_DLFCN_H
10842#include <dlfcn.h>
10843#endif
10844
10845#include <stdio.h>
10846
10847#ifdef RTLD_GLOBAL
10848#  define LT_DLGLOBAL		RTLD_GLOBAL
10849#else
10850#  ifdef DL_GLOBAL
10851#    define LT_DLGLOBAL		DL_GLOBAL
10852#  else
10853#    define LT_DLGLOBAL		0
10854#  endif
10855#endif
10856
10857/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10858   find out it does not work in some platform. */
10859#ifndef LT_DLLAZY_OR_NOW
10860#  ifdef RTLD_LAZY
10861#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
10862#  else
10863#    ifdef DL_LAZY
10864#      define LT_DLLAZY_OR_NOW		DL_LAZY
10865#    else
10866#      ifdef RTLD_NOW
10867#        define LT_DLLAZY_OR_NOW	RTLD_NOW
10868#      else
10869#        ifdef DL_NOW
10870#          define LT_DLLAZY_OR_NOW	DL_NOW
10871#        else
10872#          define LT_DLLAZY_OR_NOW	0
10873#        endif
10874#      endif
10875#    endif
10876#  endif
10877#endif
10878
10879/* When -fvisbility=hidden is used, assume the code has been annotated
10880   correspondingly for the symbols needed.  */
10881#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
10882int fnord () __attribute__((visibility("default")));
10883#endif
10884
10885int fnord () { return 42; }
10886int main ()
10887{
10888  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10889  int status = $lt_dlunknown;
10890
10891  if (self)
10892    {
10893      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
10894      else
10895        {
10896	  if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
10897          else puts (dlerror ());
10898	}
10899      /* dlclose (self); */
10900    }
10901  else
10902    puts (dlerror ());
10903
10904  return status;
10905}
10906_LT_EOF
10907  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
10908  (eval $ac_link) 2>&5
10909  ac_status=$?
10910  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10911  test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
10912    (./conftest; exit; ) >&5 2>/dev/null
10913    lt_status=$?
10914    case x$lt_status in
10915      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
10916      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
10917      x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
10918    esac
10919  else :
10920    # compilation failed
10921    lt_cv_dlopen_self_static=no
10922  fi
10923fi
10924rm -fr conftest*
10925
10926
10927fi
10928{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
10929$as_echo "$lt_cv_dlopen_self_static" >&6; }
10930    fi
10931
10932    CPPFLAGS="$save_CPPFLAGS"
10933    LDFLAGS="$save_LDFLAGS"
10934    LIBS="$save_LIBS"
10935    ;;
10936  esac
10937
10938  case $lt_cv_dlopen_self in
10939  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
10940  *) enable_dlopen_self=unknown ;;
10941  esac
10942
10943  case $lt_cv_dlopen_self_static in
10944  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
10945  *) enable_dlopen_self_static=unknown ;;
10946  esac
10947fi
10948
10949
10950
10951
10952
10953
10954
10955
10956
10957
10958
10959
10960
10961
10962
10963
10964
10965striplib=
10966old_striplib=
10967{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
10968$as_echo_n "checking whether stripping libraries is possible... " >&6; }
10969if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
10970  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
10971  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
10972  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10973$as_echo "yes" >&6; }
10974else
10975# FIXME - insert some real tests, host_os isn't really good enough
10976  case $host_os in
10977  darwin*)
10978    if test -n "$STRIP" ; then
10979      striplib="$STRIP -x"
10980      old_striplib="$STRIP -S"
10981      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10982$as_echo "yes" >&6; }
10983    else
10984      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10985$as_echo "no" >&6; }
10986    fi
10987    ;;
10988  *)
10989    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10990$as_echo "no" >&6; }
10991    ;;
10992  esac
10993fi
10994
10995
10996
10997
10998
10999
11000
11001
11002
11003
11004
11005
11006  # Report which library types will actually be built
11007  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11008$as_echo_n "checking if libtool supports shared libraries... " >&6; }
11009  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11010$as_echo "$can_build_shared" >&6; }
11011
11012  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11013$as_echo_n "checking whether to build shared libraries... " >&6; }
11014  test "$can_build_shared" = "no" && enable_shared=no
11015
11016  # On AIX, shared libraries and static libraries use the same namespace, and
11017  # are all built from PIC.
11018  case $host_os in
11019  aix3*)
11020    test "$enable_shared" = yes && enable_static=no
11021    if test -n "$RANLIB"; then
11022      archive_cmds="$archive_cmds~\$RANLIB \$lib"
11023      postinstall_cmds='$RANLIB $lib'
11024    fi
11025    ;;
11026
11027  aix[4-9]*)
11028    if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11029      test "$enable_shared" = yes && enable_static=no
11030    fi
11031    ;;
11032  esac
11033  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11034$as_echo "$enable_shared" >&6; }
11035
11036  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11037$as_echo_n "checking whether to build static libraries... " >&6; }
11038  # Make sure either enable_shared or enable_static is yes.
11039  test "$enable_shared" = yes || enable_static=yes
11040  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11041$as_echo "$enable_static" >&6; }
11042
11043
11044
11045
11046fi
11047ac_ext=c
11048ac_cpp='$CPP $CPPFLAGS'
11049ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11050ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11051ac_compiler_gnu=$ac_cv_c_compiler_gnu
11052
11053CC="$lt_save_CC"
11054
11055
11056
11057
11058
11059
11060
11061
11062
11063
11064
11065
11066
11067        ac_config_commands="$ac_config_commands libtool"
11068
11069
11070
11071
11072# Only expand once:
11073
11074
11075
11076
11077  CFLAG_VISIBILITY=
11078  HAVE_VISIBILITY=0
11079  if test -n "$GCC"; then
11080    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for simple visibility declarations" >&5
11081$as_echo_n "checking for simple visibility declarations... " >&6; }
11082    if ${gl_cv_cc_visibility+:} false; then :
11083  $as_echo_n "(cached) " >&6
11084else
11085
11086      gl_save_CFLAGS="$CFLAGS"
11087      CFLAGS="$CFLAGS -fvisibility=hidden"
11088      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11089/* end confdefs.h.  */
11090extern __attribute__((__visibility__("hidden"))) int hiddenvar;
11091         extern __attribute__((__visibility__("default"))) int exportedvar;
11092         extern __attribute__((__visibility__("hidden"))) int hiddenfunc (void);
11093         extern __attribute__((__visibility__("default"))) int exportedfunc (void);
11094int
11095main ()
11096{
11097
11098  ;
11099  return 0;
11100}
11101_ACEOF
11102if ac_fn_c_try_compile "$LINENO"; then :
11103  gl_cv_cc_visibility=yes
11104else
11105  gl_cv_cc_visibility=no
11106fi
11107rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11108      CFLAGS="$gl_save_CFLAGS"
11109fi
11110
11111    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_cc_visibility" >&5
11112$as_echo "$gl_cv_cc_visibility" >&6; }
11113    if test $gl_cv_cc_visibility = yes; then
11114      CFLAG_VISIBILITY="-fvisibility=hidden"
11115      HAVE_VISIBILITY=1
11116    fi
11117  fi
11118
11119
11120
11121cat >>confdefs.h <<_ACEOF
11122#define HAVE_VISIBILITY $HAVE_VISIBILITY
11123_ACEOF
11124
11125
11126
11127
11128
11129  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
11130$as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
11131if ${am_cv_langinfo_codeset+:} false; then :
11132  $as_echo_n "(cached) " >&6
11133else
11134  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11135/* end confdefs.h.  */
11136#include <langinfo.h>
11137int
11138main ()
11139{
11140char* cs = nl_langinfo(CODESET);
11141  ;
11142  return 0;
11143}
11144_ACEOF
11145if ac_fn_c_try_link "$LINENO"; then :
11146  am_cv_langinfo_codeset=yes
11147else
11148  am_cv_langinfo_codeset=no
11149fi
11150rm -f core conftest.err conftest.$ac_objext \
11151    conftest$ac_exeext conftest.$ac_ext
11152
11153fi
11154{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5
11155$as_echo "$am_cv_langinfo_codeset" >&6; }
11156  if test $am_cv_langinfo_codeset = yes; then
11157
11158$as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
11159
11160  fi
11161
11162
11163
11164  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fcntl.h" >&5
11165$as_echo_n "checking for working fcntl.h... " >&6; }
11166if ${gl_cv_header_working_fcntl_h+:} false; then :
11167  $as_echo_n "(cached) " >&6
11168else
11169  if test "$cross_compiling" = yes; then :
11170  gl_cv_header_working_fcntl_h=cross-compiling
11171else
11172  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11173/* end confdefs.h.  */
11174#include <sys/types.h>
11175           #include <sys/stat.h>
11176           #include <unistd.h>
11177           #include <fcntl.h>
11178           #ifndef O_NOATIME
11179            #define O_NOATIME 0
11180           #endif
11181           #ifndef O_NOFOLLOW
11182            #define O_NOFOLLOW 0
11183           #endif
11184           static int const constants[] =
11185            {
11186              O_CREAT, O_EXCL, O_NOCTTY, O_TRUNC, O_APPEND,
11187              O_NONBLOCK, O_SYNC, O_ACCMODE, O_RDONLY, O_RDWR, O_WRONLY
11188            };
11189
11190int
11191main ()
11192{
11193
11194            int status = !constants;
11195            {
11196              static char const sym[] = "conftest.sym";
11197              if (symlink (".", sym) != 0
11198                  || close (open (sym, O_RDONLY | O_NOFOLLOW)) == 0)
11199                status |= 32;
11200              unlink (sym);
11201            }
11202            {
11203              static char const file[] = "confdefs.h";
11204              int fd = open (file, O_RDONLY | O_NOATIME);
11205              char c;
11206              struct stat st0, st1;
11207              if (fd < 0
11208                  || fstat (fd, &st0) != 0
11209                  || sleep (1) != 0
11210                  || read (fd, &c, 1) != 1
11211                  || close (fd) != 0
11212                  || stat (file, &st1) != 0
11213                  || st0.st_atime != st1.st_atime)
11214                status |= 64;
11215            }
11216            return status;
11217  ;
11218  return 0;
11219}
11220_ACEOF
11221if ac_fn_c_try_run "$LINENO"; then :
11222  gl_cv_header_working_fcntl_h=yes
11223else
11224  case $? in #(
11225        32) gl_cv_header_working_fcntl_h='no (bad O_NOFOLLOW)';; #(
11226        64) gl_cv_header_working_fcntl_h='no (bad O_NOATIME)';; #(
11227        96) gl_cv_header_working_fcntl_h='no (bad O_NOATIME, O_NOFOLLOW)';; #(
11228         *) gl_cv_header_working_fcntl_h='no';;
11229        esac
11230fi
11231rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11232  conftest.$ac_objext conftest.beam conftest.$ac_ext
11233fi
11234
11235fi
11236{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_working_fcntl_h" >&5
11237$as_echo "$gl_cv_header_working_fcntl_h" >&6; }
11238
11239  case $gl_cv_header_working_fcntl_h in #(
11240  *O_NOATIME* | no | cross-compiling) ac_val=0;; #(
11241  *) ac_val=1;;
11242  esac
11243
11244cat >>confdefs.h <<_ACEOF
11245#define HAVE_WORKING_O_NOATIME $ac_val
11246_ACEOF
11247
11248
11249  case $gl_cv_header_working_fcntl_h in #(
11250  *O_NOFOLLOW* | no | cross-compiling) ac_val=0;; #(
11251  *) ac_val=1;;
11252  esac
11253
11254cat >>confdefs.h <<_ACEOF
11255#define HAVE_WORKING_O_NOFOLLOW $ac_val
11256_ACEOF
11257
11258
11259
11260    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C Library 2.1 or newer" >&5
11261$as_echo_n "checking whether we are using the GNU C Library 2.1 or newer... " >&6; }
11262if ${ac_cv_gnu_library_2_1+:} false; then :
11263  $as_echo_n "(cached) " >&6
11264else
11265  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11266/* end confdefs.h.  */
11267
11268#include <features.h>
11269#ifdef __GNU_LIBRARY__
11270 #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)
11271  Lucky GNU user
11272 #endif
11273#endif
11274
11275_ACEOF
11276if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11277  $EGREP "Lucky GNU user" >/dev/null 2>&1; then :
11278  ac_cv_gnu_library_2_1=yes
11279else
11280  ac_cv_gnu_library_2_1=no
11281fi
11282rm -f conftest*
11283
11284
11285
11286fi
11287{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_gnu_library_2_1" >&5
11288$as_echo "$ac_cv_gnu_library_2_1" >&6; }
11289
11290    GLIBC21="$ac_cv_gnu_library_2_1"
11291
11292
11293for ac_func in setlocale
11294do :
11295  ac_fn_c_check_func "$LINENO" "setlocale" "ac_cv_func_setlocale"
11296if test "x$ac_cv_func_setlocale" = xyes; then :
11297  cat >>confdefs.h <<_ACEOF
11298#define HAVE_SETLOCALE 1
11299_ACEOF
11300
11301fi
11302done
11303
11304
11305ac_config_files="$ac_config_files Makefile"
11306
11307ac_config_files="$ac_config_files lib/Makefile"
11308
11309ac_config_files="$ac_config_files include/localcharset.h:include/localcharset.h.build.in"
11310
11311ac_config_files="$ac_config_files include/localcharset.h.inst:include/localcharset.h.in"
11312
11313cat >confcache <<\_ACEOF
11314# This file is a shell script that caches the results of configure
11315# tests run on this system so they can be shared between configure
11316# scripts and configure runs, see configure's option --config-cache.
11317# It is not useful on other systems.  If it contains results you don't
11318# want to keep, you may remove or edit it.
11319#
11320# config.status only pays attention to the cache file if you give it
11321# the --recheck option to rerun configure.
11322#
11323# `ac_cv_env_foo' variables (set or unset) will be overridden when
11324# loading this file, other *unset* `ac_cv_foo' will be assigned the
11325# following values.
11326
11327_ACEOF
11328
11329# The following way of writing the cache mishandles newlines in values,
11330# but we know of no workaround that is simple, portable, and efficient.
11331# So, we kill variables containing newlines.
11332# Ultrix sh set writes to stderr and can't be redirected directly,
11333# and sets the high bit in the cache file unless we assign to the vars.
11334(
11335  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
11336    eval ac_val=\$$ac_var
11337    case $ac_val in #(
11338    *${as_nl}*)
11339      case $ac_var in #(
11340      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
11341$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
11342      esac
11343      case $ac_var in #(
11344      _ | IFS | as_nl) ;; #(
11345      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
11346      *) { eval $ac_var=; unset $ac_var;} ;;
11347      esac ;;
11348    esac
11349  done
11350
11351  (set) 2>&1 |
11352    case $as_nl`(ac_space=' '; set) 2>&1` in #(
11353    *${as_nl}ac_space=\ *)
11354      # `set' does not quote correctly, so add quotes: double-quote
11355      # substitution turns \\\\ into \\, and sed turns \\ into \.
11356      sed -n \
11357	"s/'/'\\\\''/g;
11358	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
11359      ;; #(
11360    *)
11361      # `set' quotes correctly as required by POSIX, so do not add quotes.
11362      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
11363      ;;
11364    esac |
11365    sort
11366) |
11367  sed '
11368     /^ac_cv_env_/b end
11369     t clear
11370     :clear
11371     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
11372     t end
11373     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
11374     :end' >>confcache
11375if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
11376  if test -w "$cache_file"; then
11377    if test "x$cache_file" != "x/dev/null"; then
11378      { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
11379$as_echo "$as_me: updating cache $cache_file" >&6;}
11380      if test ! -f "$cache_file" || test -h "$cache_file"; then
11381	cat confcache >"$cache_file"
11382      else
11383        case $cache_file in #(
11384        */* | ?:*)
11385	  mv -f confcache "$cache_file"$$ &&
11386	  mv -f "$cache_file"$$ "$cache_file" ;; #(
11387        *)
11388	  mv -f confcache "$cache_file" ;;
11389	esac
11390      fi
11391    fi
11392  else
11393    { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
11394$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
11395  fi
11396fi
11397rm -f confcache
11398
11399test "x$prefix" = xNONE && prefix=$ac_default_prefix
11400# Let make expand exec_prefix.
11401test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
11402
11403DEFS=-DHAVE_CONFIG_H
11404
11405ac_libobjs=
11406ac_ltlibobjs=
11407U=
11408for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
11409  # 1. Remove the extension, and $U if already installed.
11410  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
11411  ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
11412  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
11413  #    will be set to the directory where LIBOBJS objects are built.
11414  as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
11415  as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
11416done
11417LIBOBJS=$ac_libobjs
11418
11419LTLIBOBJS=$ac_ltlibobjs
11420
11421
11422
11423: "${CONFIG_STATUS=./config.status}"
11424ac_write_fail=0
11425ac_clean_files_save=$ac_clean_files
11426ac_clean_files="$ac_clean_files $CONFIG_STATUS"
11427{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
11428$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
11429as_write_fail=0
11430cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
11431#! $SHELL
11432# Generated by $as_me.
11433# Run this file to recreate the current configuration.
11434# Compiler output produced by configure, useful for debugging
11435# configure, is in config.log if it exists.
11436
11437debug=false
11438ac_cs_recheck=false
11439ac_cs_silent=false
11440
11441SHELL=\${CONFIG_SHELL-$SHELL}
11442export SHELL
11443_ASEOF
11444cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
11445## -------------------- ##
11446## M4sh Initialization. ##
11447## -------------------- ##
11448
11449# Be more Bourne compatible
11450DUALCASE=1; export DUALCASE # for MKS sh
11451if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
11452  emulate sh
11453  NULLCMD=:
11454  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
11455  # is contrary to our usage.  Disable this feature.
11456  alias -g '${1+"$@"}'='"$@"'
11457  setopt NO_GLOB_SUBST
11458else
11459  case `(set -o) 2>/dev/null` in #(
11460  *posix*) :
11461    set -o posix ;; #(
11462  *) :
11463     ;;
11464esac
11465fi
11466
11467
11468as_nl='
11469'
11470export as_nl
11471# Printing a long string crashes Solaris 7 /usr/bin/printf.
11472as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
11473as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
11474as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
11475# Prefer a ksh shell builtin over an external printf program on Solaris,
11476# but without wasting forks for bash or zsh.
11477if test -z "$BASH_VERSION$ZSH_VERSION" \
11478    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
11479  as_echo='print -r --'
11480  as_echo_n='print -rn --'
11481elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
11482  as_echo='printf %s\n'
11483  as_echo_n='printf %s'
11484else
11485  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
11486    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
11487    as_echo_n='/usr/ucb/echo -n'
11488  else
11489    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
11490    as_echo_n_body='eval
11491      arg=$1;
11492      case $arg in #(
11493      *"$as_nl"*)
11494	expr "X$arg" : "X\\(.*\\)$as_nl";
11495	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
11496      esac;
11497      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
11498    '
11499    export as_echo_n_body
11500    as_echo_n='sh -c $as_echo_n_body as_echo'
11501  fi
11502  export as_echo_body
11503  as_echo='sh -c $as_echo_body as_echo'
11504fi
11505
11506# The user is always right.
11507if test "${PATH_SEPARATOR+set}" != set; then
11508  PATH_SEPARATOR=:
11509  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
11510    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
11511      PATH_SEPARATOR=';'
11512  }
11513fi
11514
11515
11516# IFS
11517# We need space, tab and new line, in precisely that order.  Quoting is
11518# there to prevent editors from complaining about space-tab.
11519# (If _AS_PATH_WALK were called with IFS unset, it would disable word
11520# splitting by setting IFS to empty value.)
11521IFS=" ""	$as_nl"
11522
11523# Find who we are.  Look in the path if we contain no directory separator.
11524as_myself=
11525case $0 in #((
11526  *[\\/]* ) as_myself=$0 ;;
11527  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11528for as_dir in $PATH
11529do
11530  IFS=$as_save_IFS
11531  test -z "$as_dir" && as_dir=.
11532    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
11533  done
11534IFS=$as_save_IFS
11535
11536     ;;
11537esac
11538# We did not find ourselves, most probably we were run as `sh COMMAND'
11539# in which case we are not to be found in the path.
11540if test "x$as_myself" = x; then
11541  as_myself=$0
11542fi
11543if test ! -f "$as_myself"; then
11544  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
11545  exit 1
11546fi
11547
11548# Unset variables that we do not need and which cause bugs (e.g. in
11549# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
11550# suppresses any "Segmentation fault" message there.  '((' could
11551# trigger a bug in pdksh 5.2.14.
11552for as_var in BASH_ENV ENV MAIL MAILPATH
11553do eval test x\${$as_var+set} = xset \
11554  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
11555done
11556PS1='$ '
11557PS2='> '
11558PS4='+ '
11559
11560# NLS nuisances.
11561LC_ALL=C
11562export LC_ALL
11563LANGUAGE=C
11564export LANGUAGE
11565
11566# CDPATH.
11567(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
11568
11569
11570# as_fn_error STATUS ERROR [LINENO LOG_FD]
11571# ----------------------------------------
11572# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
11573# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
11574# script with STATUS, using 1 if that was 0.
11575as_fn_error ()
11576{
11577  as_status=$1; test $as_status -eq 0 && as_status=1
11578  if test "$4"; then
11579    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
11580    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
11581  fi
11582  $as_echo "$as_me: error: $2" >&2
11583  as_fn_exit $as_status
11584} # as_fn_error
11585
11586
11587# as_fn_set_status STATUS
11588# -----------------------
11589# Set $? to STATUS, without forking.
11590as_fn_set_status ()
11591{
11592  return $1
11593} # as_fn_set_status
11594
11595# as_fn_exit STATUS
11596# -----------------
11597# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
11598as_fn_exit ()
11599{
11600  set +e
11601  as_fn_set_status $1
11602  exit $1
11603} # as_fn_exit
11604
11605# as_fn_unset VAR
11606# ---------------
11607# Portably unset VAR.
11608as_fn_unset ()
11609{
11610  { eval $1=; unset $1;}
11611}
11612as_unset=as_fn_unset
11613# as_fn_append VAR VALUE
11614# ----------------------
11615# Append the text in VALUE to the end of the definition contained in VAR. Take
11616# advantage of any shell optimizations that allow amortized linear growth over
11617# repeated appends, instead of the typical quadratic growth present in naive
11618# implementations.
11619if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
11620  eval 'as_fn_append ()
11621  {
11622    eval $1+=\$2
11623  }'
11624else
11625  as_fn_append ()
11626  {
11627    eval $1=\$$1\$2
11628  }
11629fi # as_fn_append
11630
11631# as_fn_arith ARG...
11632# ------------------
11633# Perform arithmetic evaluation on the ARGs, and store the result in the
11634# global $as_val. Take advantage of shells that can avoid forks. The arguments
11635# must be portable across $(()) and expr.
11636if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
11637  eval 'as_fn_arith ()
11638  {
11639    as_val=$(( $* ))
11640  }'
11641else
11642  as_fn_arith ()
11643  {
11644    as_val=`expr "$@" || test $? -eq 1`
11645  }
11646fi # as_fn_arith
11647
11648
11649if expr a : '\(a\)' >/dev/null 2>&1 &&
11650   test "X`expr 00001 : '.*\(...\)'`" = X001; then
11651  as_expr=expr
11652else
11653  as_expr=false
11654fi
11655
11656if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
11657  as_basename=basename
11658else
11659  as_basename=false
11660fi
11661
11662if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
11663  as_dirname=dirname
11664else
11665  as_dirname=false
11666fi
11667
11668as_me=`$as_basename -- "$0" ||
11669$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
11670	 X"$0" : 'X\(//\)$' \| \
11671	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
11672$as_echo X/"$0" |
11673    sed '/^.*\/\([^/][^/]*\)\/*$/{
11674	    s//\1/
11675	    q
11676	  }
11677	  /^X\/\(\/\/\)$/{
11678	    s//\1/
11679	    q
11680	  }
11681	  /^X\/\(\/\).*/{
11682	    s//\1/
11683	    q
11684	  }
11685	  s/.*/./; q'`
11686
11687# Avoid depending upon Character Ranges.
11688as_cr_letters='abcdefghijklmnopqrstuvwxyz'
11689as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
11690as_cr_Letters=$as_cr_letters$as_cr_LETTERS
11691as_cr_digits='0123456789'
11692as_cr_alnum=$as_cr_Letters$as_cr_digits
11693
11694ECHO_C= ECHO_N= ECHO_T=
11695case `echo -n x` in #(((((
11696-n*)
11697  case `echo 'xy\c'` in
11698  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
11699  xy)  ECHO_C='\c';;
11700  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
11701       ECHO_T='	';;
11702  esac;;
11703*)
11704  ECHO_N='-n';;
11705esac
11706
11707rm -f conf$$ conf$$.exe conf$$.file
11708if test -d conf$$.dir; then
11709  rm -f conf$$.dir/conf$$.file
11710else
11711  rm -f conf$$.dir
11712  mkdir conf$$.dir 2>/dev/null
11713fi
11714if (echo >conf$$.file) 2>/dev/null; then
11715  if ln -s conf$$.file conf$$ 2>/dev/null; then
11716    as_ln_s='ln -s'
11717    # ... but there are two gotchas:
11718    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
11719    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
11720    # In both cases, we have to default to `cp -p'.
11721    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
11722      as_ln_s='cp -p'
11723  elif ln conf$$.file conf$$ 2>/dev/null; then
11724    as_ln_s=ln
11725  else
11726    as_ln_s='cp -p'
11727  fi
11728else
11729  as_ln_s='cp -p'
11730fi
11731rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
11732rmdir conf$$.dir 2>/dev/null
11733
11734
11735# as_fn_mkdir_p
11736# -------------
11737# Create "$as_dir" as a directory, including parents if necessary.
11738as_fn_mkdir_p ()
11739{
11740
11741  case $as_dir in #(
11742  -*) as_dir=./$as_dir;;
11743  esac
11744  test -d "$as_dir" || eval $as_mkdir_p || {
11745    as_dirs=
11746    while :; do
11747      case $as_dir in #(
11748      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
11749      *) as_qdir=$as_dir;;
11750      esac
11751      as_dirs="'$as_qdir' $as_dirs"
11752      as_dir=`$as_dirname -- "$as_dir" ||
11753$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11754	 X"$as_dir" : 'X\(//\)[^/]' \| \
11755	 X"$as_dir" : 'X\(//\)$' \| \
11756	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
11757$as_echo X"$as_dir" |
11758    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
11759	    s//\1/
11760	    q
11761	  }
11762	  /^X\(\/\/\)[^/].*/{
11763	    s//\1/
11764	    q
11765	  }
11766	  /^X\(\/\/\)$/{
11767	    s//\1/
11768	    q
11769	  }
11770	  /^X\(\/\).*/{
11771	    s//\1/
11772	    q
11773	  }
11774	  s/.*/./; q'`
11775      test -d "$as_dir" && break
11776    done
11777    test -z "$as_dirs" || eval "mkdir $as_dirs"
11778  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
11779
11780
11781} # as_fn_mkdir_p
11782if mkdir -p . 2>/dev/null; then
11783  as_mkdir_p='mkdir -p "$as_dir"'
11784else
11785  test -d ./-p && rmdir ./-p
11786  as_mkdir_p=false
11787fi
11788
11789if test -x / >/dev/null 2>&1; then
11790  as_test_x='test -x'
11791else
11792  if ls -dL / >/dev/null 2>&1; then
11793    as_ls_L_option=L
11794  else
11795    as_ls_L_option=
11796  fi
11797  as_test_x='
11798    eval sh -c '\''
11799      if test -d "$1"; then
11800	test -d "$1/.";
11801      else
11802	case $1 in #(
11803	-*)set "./$1";;
11804	esac;
11805	case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
11806	???[sx]*):;;*)false;;esac;fi
11807    '\'' sh
11808  '
11809fi
11810as_executable_p=$as_test_x
11811
11812# Sed expression to map a string onto a valid CPP name.
11813as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
11814
11815# Sed expression to map a string onto a valid variable name.
11816as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
11817
11818
11819exec 6>&1
11820## ----------------------------------- ##
11821## Main body of $CONFIG_STATUS script. ##
11822## ----------------------------------- ##
11823_ASEOF
11824test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
11825
11826cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11827# Save the log message, to keep $0 and so on meaningful, and to
11828# report actual input values of CONFIG_FILES etc. instead of their
11829# values after options handling.
11830ac_log="
11831This file was extended by $as_me, which was
11832generated by GNU Autoconf 2.68.  Invocation command line was
11833
11834  CONFIG_FILES    = $CONFIG_FILES
11835  CONFIG_HEADERS  = $CONFIG_HEADERS
11836  CONFIG_LINKS    = $CONFIG_LINKS
11837  CONFIG_COMMANDS = $CONFIG_COMMANDS
11838  $ $0 $@
11839
11840on `(hostname || uname -n) 2>/dev/null | sed 1q`
11841"
11842
11843_ACEOF
11844
11845case $ac_config_files in *"
11846"*) set x $ac_config_files; shift; ac_config_files=$*;;
11847esac
11848
11849case $ac_config_headers in *"
11850"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
11851esac
11852
11853
11854cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11855# Files that config.status was made for.
11856config_files="$ac_config_files"
11857config_headers="$ac_config_headers"
11858config_commands="$ac_config_commands"
11859
11860_ACEOF
11861
11862cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11863ac_cs_usage="\
11864\`$as_me' instantiates files and other configuration actions
11865from templates according to the current configuration.  Unless the files
11866and actions are specified as TAGs, all are instantiated by default.
11867
11868Usage: $0 [OPTION]... [TAG]...
11869
11870  -h, --help       print this help, then exit
11871  -V, --version    print version number and configuration settings, then exit
11872      --config     print configuration, then exit
11873  -q, --quiet, --silent
11874                   do not print progress messages
11875  -d, --debug      don't remove temporary files
11876      --recheck    update $as_me by reconfiguring in the same conditions
11877      --file=FILE[:TEMPLATE]
11878                   instantiate the configuration file FILE
11879      --header=FILE[:TEMPLATE]
11880                   instantiate the configuration header FILE
11881
11882Configuration files:
11883$config_files
11884
11885Configuration headers:
11886$config_headers
11887
11888Configuration commands:
11889$config_commands
11890
11891Report bugs to the package provider."
11892
11893_ACEOF
11894cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11895ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
11896ac_cs_version="\\
11897config.status
11898configured by $0, generated by GNU Autoconf 2.68,
11899  with options \\"\$ac_cs_config\\"
11900
11901Copyright (C) 2010 Free Software Foundation, Inc.
11902This config.status script is free software; the Free Software Foundation
11903gives unlimited permission to copy, distribute and modify it."
11904
11905ac_pwd='$ac_pwd'
11906srcdir='$srcdir'
11907INSTALL='$INSTALL'
11908AWK='$AWK'
11909test -n "\$AWK" || AWK=awk
11910_ACEOF
11911
11912cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11913# The default lists apply if the user does not specify any file.
11914ac_need_defaults=:
11915while test $# != 0
11916do
11917  case $1 in
11918  --*=?*)
11919    ac_option=`expr "X$1" : 'X\([^=]*\)='`
11920    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
11921    ac_shift=:
11922    ;;
11923  --*=)
11924    ac_option=`expr "X$1" : 'X\([^=]*\)='`
11925    ac_optarg=
11926    ac_shift=:
11927    ;;
11928  *)
11929    ac_option=$1
11930    ac_optarg=$2
11931    ac_shift=shift
11932    ;;
11933  esac
11934
11935  case $ac_option in
11936  # Handling of the options.
11937  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
11938    ac_cs_recheck=: ;;
11939  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
11940    $as_echo "$ac_cs_version"; exit ;;
11941  --config | --confi | --conf | --con | --co | --c )
11942    $as_echo "$ac_cs_config"; exit ;;
11943  --debug | --debu | --deb | --de | --d | -d )
11944    debug=: ;;
11945  --file | --fil | --fi | --f )
11946    $ac_shift
11947    case $ac_optarg in
11948    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
11949    '') as_fn_error $? "missing file argument" ;;
11950    esac
11951    as_fn_append CONFIG_FILES " '$ac_optarg'"
11952    ac_need_defaults=false;;
11953  --header | --heade | --head | --hea )
11954    $ac_shift
11955    case $ac_optarg in
11956    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
11957    esac
11958    as_fn_append CONFIG_HEADERS " '$ac_optarg'"
11959    ac_need_defaults=false;;
11960  --he | --h)
11961    # Conflict between --help and --header
11962    as_fn_error $? "ambiguous option: \`$1'
11963Try \`$0 --help' for more information.";;
11964  --help | --hel | -h )
11965    $as_echo "$ac_cs_usage"; exit ;;
11966  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
11967  | -silent | --silent | --silen | --sile | --sil | --si | --s)
11968    ac_cs_silent=: ;;
11969
11970  # This is an error.
11971  -*) as_fn_error $? "unrecognized option: \`$1'
11972Try \`$0 --help' for more information." ;;
11973
11974  *) as_fn_append ac_config_targets " $1"
11975     ac_need_defaults=false ;;
11976
11977  esac
11978  shift
11979done
11980
11981ac_configure_extra_args=
11982
11983if $ac_cs_silent; then
11984  exec 6>/dev/null
11985  ac_configure_extra_args="$ac_configure_extra_args --silent"
11986fi
11987
11988_ACEOF
11989cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11990if \$ac_cs_recheck; then
11991  set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
11992  shift
11993  \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
11994  CONFIG_SHELL='$SHELL'
11995  export CONFIG_SHELL
11996  exec "\$@"
11997fi
11998
11999_ACEOF
12000cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12001exec 5>>config.log
12002{
12003  echo
12004  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
12005## Running $as_me. ##
12006_ASBOX
12007  $as_echo "$ac_log"
12008} >&5
12009
12010_ACEOF
12011cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12012#
12013# INIT-COMMANDS
12014#
12015
12016
12017# The HP-UX ksh and POSIX shell print the target directory to stdout
12018# if CDPATH is set.
12019(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
12020
12021sed_quote_subst='$sed_quote_subst'
12022double_quote_subst='$double_quote_subst'
12023delay_variable_subst='$delay_variable_subst'
12024macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
12025macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
12026AS='`$ECHO "$AS" | $SED "$delay_single_quote_subst"`'
12027DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
12028OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
12029enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
12030enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
12031pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
12032enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
12033SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
12034ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
12035host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
12036host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
12037host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
12038build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
12039build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
12040build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
12041SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
12042Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
12043GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
12044EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
12045FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
12046LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
12047NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
12048LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
12049max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
12050ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
12051exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
12052lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
12053lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
12054lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
12055lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
12056lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
12057reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
12058reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
12059deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
12060file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
12061file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
12062want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
12063sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
12064AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
12065AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
12066archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
12067STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
12068RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
12069old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
12070old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
12071old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
12072lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
12073CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
12074CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
12075compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
12076GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
12077lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
12078lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
12079lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
12080lt_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"`'
12081nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
12082lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
12083objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
12084MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
12085lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
12086lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
12087lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
12088lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
12089lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
12090need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
12091MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
12092DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
12093NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
12094LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
12095OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
12096OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
12097libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
12098shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
12099extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
12100archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
12101enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
12102export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
12103whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
12104compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
12105old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
12106old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
12107archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
12108archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
12109module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
12110module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
12111with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
12112allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
12113no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
12114hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
12115hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
12116hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
12117hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
12118hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
12119hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
12120hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
12121hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
12122inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
12123link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
12124always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
12125export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
12126exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
12127include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
12128prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
12129postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
12130file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
12131variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
12132need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
12133need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
12134version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
12135runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
12136shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
12137shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
12138libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
12139library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
12140soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
12141install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
12142postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
12143postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
12144finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
12145finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
12146hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
12147sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
12148sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
12149hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
12150enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
12151enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
12152enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
12153old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
12154striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
12155
12156LTCC='$LTCC'
12157LTCFLAGS='$LTCFLAGS'
12158compiler='$compiler_DEFAULT'
12159
12160# A function that is used when there is no print builtin or printf.
12161func_fallback_echo ()
12162{
12163  eval 'cat <<_LTECHO_EOF
12164\$1
12165_LTECHO_EOF'
12166}
12167
12168# Quote evaled strings.
12169for var in AS \
12170DLLTOOL \
12171OBJDUMP \
12172SHELL \
12173ECHO \
12174SED \
12175GREP \
12176EGREP \
12177FGREP \
12178LD \
12179NM \
12180LN_S \
12181lt_SP2NL \
12182lt_NL2SP \
12183reload_flag \
12184deplibs_check_method \
12185file_magic_cmd \
12186file_magic_glob \
12187want_nocaseglob \
12188sharedlib_from_linklib_cmd \
12189AR \
12190AR_FLAGS \
12191archiver_list_spec \
12192STRIP \
12193RANLIB \
12194CC \
12195CFLAGS \
12196compiler \
12197lt_cv_sys_global_symbol_pipe \
12198lt_cv_sys_global_symbol_to_cdecl \
12199lt_cv_sys_global_symbol_to_c_name_address \
12200lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
12201nm_file_list_spec \
12202lt_prog_compiler_no_builtin_flag \
12203lt_prog_compiler_pic \
12204lt_prog_compiler_wl \
12205lt_prog_compiler_static \
12206lt_cv_prog_compiler_c_o \
12207need_locks \
12208MANIFEST_TOOL \
12209DSYMUTIL \
12210NMEDIT \
12211LIPO \
12212OTOOL \
12213OTOOL64 \
12214shrext_cmds \
12215export_dynamic_flag_spec \
12216whole_archive_flag_spec \
12217compiler_needs_object \
12218with_gnu_ld \
12219allow_undefined_flag \
12220no_undefined_flag \
12221hardcode_libdir_flag_spec \
12222hardcode_libdir_flag_spec_ld \
12223hardcode_libdir_separator \
12224exclude_expsyms \
12225include_expsyms \
12226file_list_spec \
12227variables_saved_for_relink \
12228libname_spec \
12229library_names_spec \
12230soname_spec \
12231install_override_mode \
12232finish_eval \
12233old_striplib \
12234striplib; do
12235    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
12236    *[\\\\\\\`\\"\\\$]*)
12237      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
12238      ;;
12239    *)
12240      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
12241      ;;
12242    esac
12243done
12244
12245# Double-quote double-evaled strings.
12246for var in reload_cmds \
12247old_postinstall_cmds \
12248old_postuninstall_cmds \
12249old_archive_cmds \
12250extract_expsyms_cmds \
12251old_archive_from_new_cmds \
12252old_archive_from_expsyms_cmds \
12253archive_cmds \
12254archive_expsym_cmds \
12255module_cmds \
12256module_expsym_cmds \
12257export_symbols_cmds \
12258prelink_cmds \
12259postlink_cmds \
12260postinstall_cmds \
12261postuninstall_cmds \
12262finish_cmds \
12263sys_lib_search_path_spec \
12264sys_lib_dlsearch_path_spec; do
12265    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
12266    *[\\\\\\\`\\"\\\$]*)
12267      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
12268      ;;
12269    *)
12270      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
12271      ;;
12272    esac
12273done
12274
12275ac_aux_dir='$ac_aux_dir'
12276xsi_shell='$xsi_shell'
12277lt_shell_append='$lt_shell_append'
12278
12279# See if we are running on zsh, and set the options which allow our
12280# commands through without removal of \ escapes INIT.
12281if test -n "\${ZSH_VERSION+set}" ; then
12282   setopt NO_GLOB_SUBST
12283fi
12284
12285
12286    PACKAGE='$PACKAGE'
12287    VERSION='$VERSION'
12288    TIMESTAMP='$TIMESTAMP'
12289    RM='$RM'
12290    ofile='$ofile'
12291
12292
12293
12294
12295_ACEOF
12296
12297cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12298
12299# Handling of arguments.
12300for ac_config_target in $ac_config_targets
12301do
12302  case $ac_config_target in
12303    "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
12304    "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
12305    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
12306    "lib/Makefile") CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;;
12307    "include/localcharset.h") CONFIG_FILES="$CONFIG_FILES include/localcharset.h:include/localcharset.h.build.in" ;;
12308    "include/localcharset.h.inst") CONFIG_FILES="$CONFIG_FILES include/localcharset.h.inst:include/localcharset.h.in" ;;
12309
12310  *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
12311  esac
12312done
12313
12314
12315# If the user did not use the arguments to specify the items to instantiate,
12316# then the envvar interface is used.  Set only those that are not.
12317# We use the long form for the default assignment because of an extremely
12318# bizarre bug on SunOS 4.1.3.
12319if $ac_need_defaults; then
12320  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
12321  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
12322  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
12323fi
12324
12325# Have a temporary directory for convenience.  Make it in the build tree
12326# simply because there is no reason against having it here, and in addition,
12327# creating and moving files from /tmp can sometimes cause problems.
12328# Hook for its removal unless debugging.
12329# Note that there is a small window in which the directory will not be cleaned:
12330# after its creation but before its name has been assigned to `$tmp'.
12331$debug ||
12332{
12333  tmp= ac_tmp=
12334  trap 'exit_status=$?
12335  : "${ac_tmp:=$tmp}"
12336  { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
12337' 0
12338  trap 'as_fn_exit 1' 1 2 13 15
12339}
12340# Create a (secure) tmp directory for tmp files.
12341
12342{
12343  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
12344  test -d "$tmp"
12345}  ||
12346{
12347  tmp=./conf$$-$RANDOM
12348  (umask 077 && mkdir "$tmp")
12349} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
12350ac_tmp=$tmp
12351
12352# Set up the scripts for CONFIG_FILES section.
12353# No need to generate them if there are no CONFIG_FILES.
12354# This happens for instance with `./config.status config.h'.
12355if test -n "$CONFIG_FILES"; then
12356
12357
12358ac_cr=`echo X | tr X '\015'`
12359# On cygwin, bash can eat \r inside `` if the user requested igncr.
12360# But we know of no other shell where ac_cr would be empty at this
12361# point, so we can use a bashism as a fallback.
12362if test "x$ac_cr" = x; then
12363  eval ac_cr=\$\'\\r\'
12364fi
12365ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
12366if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
12367  ac_cs_awk_cr='\\r'
12368else
12369  ac_cs_awk_cr=$ac_cr
12370fi
12371
12372echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
12373_ACEOF
12374
12375
12376{
12377  echo "cat >conf$$subs.awk <<_ACEOF" &&
12378  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
12379  echo "_ACEOF"
12380} >conf$$subs.sh ||
12381  as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
12382ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
12383ac_delim='%!_!# '
12384for ac_last_try in false false false false false :; do
12385  . ./conf$$subs.sh ||
12386    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
12387
12388  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
12389  if test $ac_delim_n = $ac_delim_num; then
12390    break
12391  elif $ac_last_try; then
12392    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
12393  else
12394    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
12395  fi
12396done
12397rm -f conf$$subs.sh
12398
12399cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12400cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
12401_ACEOF
12402sed -n '
12403h
12404s/^/S["/; s/!.*/"]=/
12405p
12406g
12407s/^[^!]*!//
12408:repl
12409t repl
12410s/'"$ac_delim"'$//
12411t delim
12412:nl
12413h
12414s/\(.\{148\}\)..*/\1/
12415t more1
12416s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
12417p
12418n
12419b repl
12420:more1
12421s/["\\]/\\&/g; s/^/"/; s/$/"\\/
12422p
12423g
12424s/.\{148\}//
12425t nl
12426:delim
12427h
12428s/\(.\{148\}\)..*/\1/
12429t more2
12430s/["\\]/\\&/g; s/^/"/; s/$/"/
12431p
12432b
12433:more2
12434s/["\\]/\\&/g; s/^/"/; s/$/"\\/
12435p
12436g
12437s/.\{148\}//
12438t delim
12439' <conf$$subs.awk | sed '
12440/^[^""]/{
12441  N
12442  s/\n//
12443}
12444' >>$CONFIG_STATUS || ac_write_fail=1
12445rm -f conf$$subs.awk
12446cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12447_ACAWK
12448cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
12449  for (key in S) S_is_set[key] = 1
12450  FS = ""
12451
12452}
12453{
12454  line = $ 0
12455  nfields = split(line, field, "@")
12456  substed = 0
12457  len = length(field[1])
12458  for (i = 2; i < nfields; i++) {
12459    key = field[i]
12460    keylen = length(key)
12461    if (S_is_set[key]) {
12462      value = S[key]
12463      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
12464      len += length(value) + length(field[++i])
12465      substed = 1
12466    } else
12467      len += 1 + keylen
12468  }
12469
12470  print line
12471}
12472
12473_ACAWK
12474_ACEOF
12475cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12476if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
12477  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
12478else
12479  cat
12480fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
12481  || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
12482_ACEOF
12483
12484# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
12485# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
12486# trailing colons and then remove the whole line if VPATH becomes empty
12487# (actually we leave an empty line to preserve line numbers).
12488if test "x$srcdir" = x.; then
12489  ac_vpsub='/^[	 ]*VPATH[	 ]*=[	 ]*/{
12490h
12491s///
12492s/^/:/
12493s/[	 ]*$/:/
12494s/:\$(srcdir):/:/g
12495s/:\${srcdir}:/:/g
12496s/:@srcdir@:/:/g
12497s/^:*//
12498s/:*$//
12499x
12500s/\(=[	 ]*\).*/\1/
12501G
12502s/\n//
12503s/^[^=]*=[	 ]*$//
12504}'
12505fi
12506
12507cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12508fi # test -n "$CONFIG_FILES"
12509
12510# Set up the scripts for CONFIG_HEADERS section.
12511# No need to generate them if there are no CONFIG_HEADERS.
12512# This happens for instance with `./config.status Makefile'.
12513if test -n "$CONFIG_HEADERS"; then
12514cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
12515BEGIN {
12516_ACEOF
12517
12518# Transform confdefs.h into an awk script `defines.awk', embedded as
12519# here-document in config.status, that substitutes the proper values into
12520# config.h.in to produce config.h.
12521
12522# Create a delimiter string that does not exist in confdefs.h, to ease
12523# handling of long lines.
12524ac_delim='%!_!# '
12525for ac_last_try in false false :; do
12526  ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
12527  if test -z "$ac_tt"; then
12528    break
12529  elif $ac_last_try; then
12530    as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
12531  else
12532    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
12533  fi
12534done
12535
12536# For the awk script, D is an array of macro values keyed by name,
12537# likewise P contains macro parameters if any.  Preserve backslash
12538# newline sequences.
12539
12540ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
12541sed -n '
12542s/.\{148\}/&'"$ac_delim"'/g
12543t rset
12544:rset
12545s/^[	 ]*#[	 ]*define[	 ][	 ]*/ /
12546t def
12547d
12548:def
12549s/\\$//
12550t bsnl
12551s/["\\]/\\&/g
12552s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
12553D["\1"]=" \3"/p
12554s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2"/p
12555d
12556:bsnl
12557s/["\\]/\\&/g
12558s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
12559D["\1"]=" \3\\\\\\n"\\/p
12560t cont
12561s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
12562t cont
12563d
12564:cont
12565n
12566s/.\{148\}/&'"$ac_delim"'/g
12567t clear
12568:clear
12569s/\\$//
12570t bsnlc
12571s/["\\]/\\&/g; s/^/"/; s/$/"/p
12572d
12573:bsnlc
12574s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
12575b cont
12576' <confdefs.h | sed '
12577s/'"$ac_delim"'/"\\\
12578"/g' >>$CONFIG_STATUS || ac_write_fail=1
12579
12580cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12581  for (key in D) D_is_set[key] = 1
12582  FS = ""
12583}
12584/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
12585  line = \$ 0
12586  split(line, arg, " ")
12587  if (arg[1] == "#") {
12588    defundef = arg[2]
12589    mac1 = arg[3]
12590  } else {
12591    defundef = substr(arg[1], 2)
12592    mac1 = arg[2]
12593  }
12594  split(mac1, mac2, "(") #)
12595  macro = mac2[1]
12596  prefix = substr(line, 1, index(line, defundef) - 1)
12597  if (D_is_set[macro]) {
12598    # Preserve the white space surrounding the "#".
12599    print prefix "define", macro P[macro] D[macro]
12600    next
12601  } else {
12602    # Replace #undef with comments.  This is necessary, for example,
12603    # in the case of _POSIX_SOURCE, which is predefined and required
12604    # on some systems where configure will not decide to define it.
12605    if (defundef == "undef") {
12606      print "/*", prefix defundef, macro, "*/"
12607      next
12608    }
12609  }
12610}
12611{ print }
12612_ACAWK
12613_ACEOF
12614cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12615  as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
12616fi # test -n "$CONFIG_HEADERS"
12617
12618
12619eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
12620shift
12621for ac_tag
12622do
12623  case $ac_tag in
12624  :[FHLC]) ac_mode=$ac_tag; continue;;
12625  esac
12626  case $ac_mode$ac_tag in
12627  :[FHL]*:*);;
12628  :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
12629  :[FH]-) ac_tag=-:-;;
12630  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
12631  esac
12632  ac_save_IFS=$IFS
12633  IFS=:
12634  set x $ac_tag
12635  IFS=$ac_save_IFS
12636  shift
12637  ac_file=$1
12638  shift
12639
12640  case $ac_mode in
12641  :L) ac_source=$1;;
12642  :[FH])
12643    ac_file_inputs=
12644    for ac_f
12645    do
12646      case $ac_f in
12647      -) ac_f="$ac_tmp/stdin";;
12648      *) # Look for the file first in the build tree, then in the source tree
12649	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
12650	 # because $ac_f cannot contain `:'.
12651	 test -f "$ac_f" ||
12652	   case $ac_f in
12653	   [\\/$]*) false;;
12654	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
12655	   esac ||
12656	   as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
12657      esac
12658      case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
12659      as_fn_append ac_file_inputs " '$ac_f'"
12660    done
12661
12662    # Let's still pretend it is `configure' which instantiates (i.e., don't
12663    # use $as_me), people would be surprised to read:
12664    #    /* config.h.  Generated by config.status.  */
12665    configure_input='Generated from '`
12666	  $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
12667	`' by configure.'
12668    if test x"$ac_file" != x-; then
12669      configure_input="$ac_file.  $configure_input"
12670      { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
12671$as_echo "$as_me: creating $ac_file" >&6;}
12672    fi
12673    # Neutralize special characters interpreted by sed in replacement strings.
12674    case $configure_input in #(
12675    *\&* | *\|* | *\\* )
12676       ac_sed_conf_input=`$as_echo "$configure_input" |
12677       sed 's/[\\\\&|]/\\\\&/g'`;; #(
12678    *) ac_sed_conf_input=$configure_input;;
12679    esac
12680
12681    case $ac_tag in
12682    *:-:* | *:-) cat >"$ac_tmp/stdin" \
12683      || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
12684    esac
12685    ;;
12686  esac
12687
12688  ac_dir=`$as_dirname -- "$ac_file" ||
12689$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12690	 X"$ac_file" : 'X\(//\)[^/]' \| \
12691	 X"$ac_file" : 'X\(//\)$' \| \
12692	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
12693$as_echo X"$ac_file" |
12694    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12695	    s//\1/
12696	    q
12697	  }
12698	  /^X\(\/\/\)[^/].*/{
12699	    s//\1/
12700	    q
12701	  }
12702	  /^X\(\/\/\)$/{
12703	    s//\1/
12704	    q
12705	  }
12706	  /^X\(\/\).*/{
12707	    s//\1/
12708	    q
12709	  }
12710	  s/.*/./; q'`
12711  as_dir="$ac_dir"; as_fn_mkdir_p
12712  ac_builddir=.
12713
12714case "$ac_dir" in
12715.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
12716*)
12717  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
12718  # A ".." for each directory in $ac_dir_suffix.
12719  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
12720  case $ac_top_builddir_sub in
12721  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
12722  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
12723  esac ;;
12724esac
12725ac_abs_top_builddir=$ac_pwd
12726ac_abs_builddir=$ac_pwd$ac_dir_suffix
12727# for backward compatibility:
12728ac_top_builddir=$ac_top_build_prefix
12729
12730case $srcdir in
12731  .)  # We are building in place.
12732    ac_srcdir=.
12733    ac_top_srcdir=$ac_top_builddir_sub
12734    ac_abs_top_srcdir=$ac_pwd ;;
12735  [\\/]* | ?:[\\/]* )  # Absolute name.
12736    ac_srcdir=$srcdir$ac_dir_suffix;
12737    ac_top_srcdir=$srcdir
12738    ac_abs_top_srcdir=$srcdir ;;
12739  *) # Relative name.
12740    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
12741    ac_top_srcdir=$ac_top_build_prefix$srcdir
12742    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
12743esac
12744ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
12745
12746
12747  case $ac_mode in
12748  :F)
12749  #
12750  # CONFIG_FILE
12751  #
12752
12753  case $INSTALL in
12754  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
12755  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
12756  esac
12757_ACEOF
12758
12759cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12760# If the template does not know about datarootdir, expand it.
12761# FIXME: This hack should be removed a few years after 2.60.
12762ac_datarootdir_hack=; ac_datarootdir_seen=
12763ac_sed_dataroot='
12764/datarootdir/ {
12765  p
12766  q
12767}
12768/@datadir@/p
12769/@docdir@/p
12770/@infodir@/p
12771/@localedir@/p
12772/@mandir@/p'
12773case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
12774*datarootdir*) ac_datarootdir_seen=yes;;
12775*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
12776  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
12777$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
12778_ACEOF
12779cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12780  ac_datarootdir_hack='
12781  s&@datadir@&$datadir&g
12782  s&@docdir@&$docdir&g
12783  s&@infodir@&$infodir&g
12784  s&@localedir@&$localedir&g
12785  s&@mandir@&$mandir&g
12786  s&\\\${datarootdir}&$datarootdir&g' ;;
12787esac
12788_ACEOF
12789
12790# Neutralize VPATH when `$srcdir' = `.'.
12791# Shell code in configure.ac might set extrasub.
12792# FIXME: do we really want to maintain this feature?
12793cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12794ac_sed_extra="$ac_vpsub
12795$extrasub
12796_ACEOF
12797cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12798:t
12799/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
12800s|@configure_input@|$ac_sed_conf_input|;t t
12801s&@top_builddir@&$ac_top_builddir_sub&;t t
12802s&@top_build_prefix@&$ac_top_build_prefix&;t t
12803s&@srcdir@&$ac_srcdir&;t t
12804s&@abs_srcdir@&$ac_abs_srcdir&;t t
12805s&@top_srcdir@&$ac_top_srcdir&;t t
12806s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
12807s&@builddir@&$ac_builddir&;t t
12808s&@abs_builddir@&$ac_abs_builddir&;t t
12809s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
12810s&@INSTALL@&$ac_INSTALL&;t t
12811$ac_datarootdir_hack
12812"
12813eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
12814  >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
12815
12816test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
12817  { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
12818  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' \
12819      "$ac_tmp/out"`; test -z "$ac_out"; } &&
12820  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
12821which seems to be undefined.  Please make sure it is defined" >&5
12822$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
12823which seems to be undefined.  Please make sure it is defined" >&2;}
12824
12825  rm -f "$ac_tmp/stdin"
12826  case $ac_file in
12827  -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
12828  *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
12829  esac \
12830  || as_fn_error $? "could not create $ac_file" "$LINENO" 5
12831 ;;
12832  :H)
12833  #
12834  # CONFIG_HEADER
12835  #
12836  if test x"$ac_file" != x-; then
12837    {
12838      $as_echo "/* $configure_input  */" \
12839      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
12840    } >"$ac_tmp/config.h" \
12841      || as_fn_error $? "could not create $ac_file" "$LINENO" 5
12842    if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
12843      { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
12844$as_echo "$as_me: $ac_file is unchanged" >&6;}
12845    else
12846      rm -f "$ac_file"
12847      mv "$ac_tmp/config.h" "$ac_file" \
12848	|| as_fn_error $? "could not create $ac_file" "$LINENO" 5
12849    fi
12850  else
12851    $as_echo "/* $configure_input  */" \
12852      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
12853      || as_fn_error $? "could not create -" "$LINENO" 5
12854  fi
12855 ;;
12856
12857  :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
12858$as_echo "$as_me: executing $ac_file commands" >&6;}
12859 ;;
12860  esac
12861
12862
12863  case $ac_file$ac_mode in
12864    "libtool":C)
12865
12866    # See if we are running on zsh, and set the options which allow our
12867    # commands through without removal of \ escapes.
12868    if test -n "${ZSH_VERSION+set}" ; then
12869      setopt NO_GLOB_SUBST
12870    fi
12871
12872    cfgfile="${ofile}T"
12873    trap "$RM \"$cfgfile\"; exit 1" 1 2 15
12874    $RM "$cfgfile"
12875
12876    cat <<_LT_EOF >> "$cfgfile"
12877#! $SHELL
12878
12879# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
12880# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
12881# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
12882# NOTE: Changes made to this file will be lost: look at ltmain.sh.
12883#
12884#   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
12885#                 2006, 2007, 2008, 2009, 2010 Free Software Foundation,
12886#                 Inc.
12887#   Written by Gordon Matzigkeit, 1996
12888#
12889#   This file is part of GNU Libtool.
12890#
12891# GNU Libtool is free software; you can redistribute it and/or
12892# modify it under the terms of the GNU General Public License as
12893# published by the Free Software Foundation; either version 2 of
12894# the License, or (at your option) any later version.
12895#
12896# As a special exception to the GNU General Public License,
12897# if you distribute this file as part of a program or library that
12898# is built using GNU Libtool, you may include this file under the
12899# same distribution terms that you use for the rest of that program.
12900#
12901# GNU Libtool is distributed in the hope that it will be useful,
12902# but WITHOUT ANY WARRANTY; without even the implied warranty of
12903# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
12904# GNU General Public License for more details.
12905#
12906# You should have received a copy of the GNU General Public License
12907# along with GNU Libtool; see the file COPYING.  If not, a copy
12908# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
12909# obtained by writing to the Free Software Foundation, Inc.,
12910# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
12911
12912
12913# The names of the tagged configurations supported by this script.
12914available_tags=""
12915
12916# ### BEGIN LIBTOOL CONFIG
12917
12918# Which release of libtool.m4 was used?
12919macro_version=$macro_version
12920macro_revision=$macro_revision
12921
12922# Assembler program.
12923AS=$lt_AS
12924
12925# DLL creation program.
12926DLLTOOL=$lt_DLLTOOL
12927
12928# Object dumper program.
12929OBJDUMP=$lt_OBJDUMP
12930
12931# Whether or not to build shared libraries.
12932build_libtool_libs=$enable_shared
12933
12934# Whether or not to build static libraries.
12935build_old_libs=$enable_static
12936
12937# What type of objects to build.
12938pic_mode=$pic_mode
12939
12940# Whether or not to optimize for fast installation.
12941fast_install=$enable_fast_install
12942
12943# Shell to use when invoking shell scripts.
12944SHELL=$lt_SHELL
12945
12946# An echo program that protects backslashes.
12947ECHO=$lt_ECHO
12948
12949# The host system.
12950host_alias=$host_alias
12951host=$host
12952host_os=$host_os
12953
12954# The build system.
12955build_alias=$build_alias
12956build=$build
12957build_os=$build_os
12958
12959# A sed program that does not truncate output.
12960SED=$lt_SED
12961
12962# Sed that helps us avoid accidentally triggering echo(1) options like -n.
12963Xsed="\$SED -e 1s/^X//"
12964
12965# A grep program that handles long lines.
12966GREP=$lt_GREP
12967
12968# An ERE matcher.
12969EGREP=$lt_EGREP
12970
12971# A literal string matcher.
12972FGREP=$lt_FGREP
12973
12974# A BSD- or MS-compatible name lister.
12975NM=$lt_NM
12976
12977# Whether we need soft or hard links.
12978LN_S=$lt_LN_S
12979
12980# What is the maximum length of a command?
12981max_cmd_len=$max_cmd_len
12982
12983# Object file suffix (normally "o").
12984objext=$ac_objext
12985
12986# Executable file suffix (normally "").
12987exeext=$exeext
12988
12989# whether the shell understands "unset".
12990lt_unset=$lt_unset
12991
12992# turn spaces into newlines.
12993SP2NL=$lt_lt_SP2NL
12994
12995# turn newlines into spaces.
12996NL2SP=$lt_lt_NL2SP
12997
12998# convert \$build file names to \$host format.
12999to_host_file_cmd=$lt_cv_to_host_file_cmd
13000
13001# convert \$build files to toolchain format.
13002to_tool_file_cmd=$lt_cv_to_tool_file_cmd
13003
13004# Method to check whether dependent libraries are shared objects.
13005deplibs_check_method=$lt_deplibs_check_method
13006
13007# Command to use when deplibs_check_method = "file_magic".
13008file_magic_cmd=$lt_file_magic_cmd
13009
13010# How to find potential files when deplibs_check_method = "file_magic".
13011file_magic_glob=$lt_file_magic_glob
13012
13013# Find potential files using nocaseglob when deplibs_check_method = "file_magic".
13014want_nocaseglob=$lt_want_nocaseglob
13015
13016# Command to associate shared and link libraries.
13017sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
13018
13019# The archiver.
13020AR=$lt_AR
13021
13022# Flags to create an archive.
13023AR_FLAGS=$lt_AR_FLAGS
13024
13025# How to feed a file listing to the archiver.
13026archiver_list_spec=$lt_archiver_list_spec
13027
13028# A symbol stripping program.
13029STRIP=$lt_STRIP
13030
13031# Commands used to install an old-style archive.
13032RANLIB=$lt_RANLIB
13033old_postinstall_cmds=$lt_old_postinstall_cmds
13034old_postuninstall_cmds=$lt_old_postuninstall_cmds
13035
13036# Whether to use a lock for old archive extraction.
13037lock_old_archive_extraction=$lock_old_archive_extraction
13038
13039# A C compiler.
13040LTCC=$lt_CC
13041
13042# LTCC compiler flags.
13043LTCFLAGS=$lt_CFLAGS
13044
13045# Take the output of nm and produce a listing of raw symbols and C names.
13046global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
13047
13048# Transform the output of nm in a proper C declaration.
13049global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
13050
13051# Transform the output of nm in a C name address pair.
13052global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
13053
13054# Transform the output of nm in a C name address pair when lib prefix is needed.
13055global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
13056
13057# Specify filename containing input files for \$NM.
13058nm_file_list_spec=$lt_nm_file_list_spec
13059
13060# The root where to search for dependent libraries,and in which our libraries should be installed.
13061lt_sysroot=$lt_sysroot
13062
13063# The name of the directory that contains temporary libtool files.
13064objdir=$objdir
13065
13066# Used to examine libraries when file_magic_cmd begins with "file".
13067MAGIC_CMD=$MAGIC_CMD
13068
13069# Must we lock files when doing compilation?
13070need_locks=$lt_need_locks
13071
13072# Manifest tool.
13073MANIFEST_TOOL=$lt_MANIFEST_TOOL
13074
13075# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
13076DSYMUTIL=$lt_DSYMUTIL
13077
13078# Tool to change global to local symbols on Mac OS X.
13079NMEDIT=$lt_NMEDIT
13080
13081# Tool to manipulate fat objects and archives on Mac OS X.
13082LIPO=$lt_LIPO
13083
13084# ldd/readelf like tool for Mach-O binaries on Mac OS X.
13085OTOOL=$lt_OTOOL
13086
13087# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
13088OTOOL64=$lt_OTOOL64
13089
13090# Old archive suffix (normally "a").
13091libext=$libext
13092
13093# Shared library suffix (normally ".so").
13094shrext_cmds=$lt_shrext_cmds
13095
13096# The commands to extract the exported symbol list from a shared archive.
13097extract_expsyms_cmds=$lt_extract_expsyms_cmds
13098
13099# Variables whose values should be saved in libtool wrapper scripts and
13100# restored at link time.
13101variables_saved_for_relink=$lt_variables_saved_for_relink
13102
13103# Do we need the "lib" prefix for modules?
13104need_lib_prefix=$need_lib_prefix
13105
13106# Do we need a version for libraries?
13107need_version=$need_version
13108
13109# Library versioning type.
13110version_type=$version_type
13111
13112# Shared library runtime path variable.
13113runpath_var=$runpath_var
13114
13115# Shared library path variable.
13116shlibpath_var=$shlibpath_var
13117
13118# Is shlibpath searched before the hard-coded library search path?
13119shlibpath_overrides_runpath=$shlibpath_overrides_runpath
13120
13121# Format of library name prefix.
13122libname_spec=$lt_libname_spec
13123
13124# List of archive names.  First name is the real one, the rest are links.
13125# The last name is the one that the linker finds with -lNAME
13126library_names_spec=$lt_library_names_spec
13127
13128# The coded name of the library, if different from the real name.
13129soname_spec=$lt_soname_spec
13130
13131# Permission mode override for installation of shared libraries.
13132install_override_mode=$lt_install_override_mode
13133
13134# Command to use after installation of a shared archive.
13135postinstall_cmds=$lt_postinstall_cmds
13136
13137# Command to use after uninstallation of a shared archive.
13138postuninstall_cmds=$lt_postuninstall_cmds
13139
13140# Commands used to finish a libtool library installation in a directory.
13141finish_cmds=$lt_finish_cmds
13142
13143# As "finish_cmds", except a single script fragment to be evaled but
13144# not shown.
13145finish_eval=$lt_finish_eval
13146
13147# Whether we should hardcode library paths into libraries.
13148hardcode_into_libs=$hardcode_into_libs
13149
13150# Compile-time system search path for libraries.
13151sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
13152
13153# Run-time system search path for libraries.
13154sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
13155
13156# Whether dlopen is supported.
13157dlopen_support=$enable_dlopen
13158
13159# Whether dlopen of programs is supported.
13160dlopen_self=$enable_dlopen_self
13161
13162# Whether dlopen of statically linked programs is supported.
13163dlopen_self_static=$enable_dlopen_self_static
13164
13165# Commands to strip libraries.
13166old_striplib=$lt_old_striplib
13167striplib=$lt_striplib
13168
13169
13170# The linker used to build libraries.
13171LD=$lt_LD
13172
13173# How to create reloadable object files.
13174reload_flag=$lt_reload_flag
13175reload_cmds=$lt_reload_cmds
13176
13177# Commands used to build an old-style archive.
13178old_archive_cmds=$lt_old_archive_cmds
13179
13180# A language specific compiler.
13181CC=$lt_compiler
13182
13183# Is the compiler the GNU compiler?
13184with_gcc=$GCC
13185
13186# Compiler flag to turn off builtin functions.
13187no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
13188
13189# Additional compiler flags for building library objects.
13190pic_flag=$lt_lt_prog_compiler_pic
13191
13192# How to pass a linker flag through the compiler.
13193wl=$lt_lt_prog_compiler_wl
13194
13195# Compiler flag to prevent dynamic linking.
13196link_static_flag=$lt_lt_prog_compiler_static
13197
13198# Does compiler simultaneously support -c and -o options?
13199compiler_c_o=$lt_lt_cv_prog_compiler_c_o
13200
13201# Whether or not to add -lc for building shared libraries.
13202build_libtool_need_lc=$archive_cmds_need_lc
13203
13204# Whether or not to disallow shared libs when runtime libs are static.
13205allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
13206
13207# Compiler flag to allow reflexive dlopens.
13208export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
13209
13210# Compiler flag to generate shared objects directly from archives.
13211whole_archive_flag_spec=$lt_whole_archive_flag_spec
13212
13213# Whether the compiler copes with passing no objects directly.
13214compiler_needs_object=$lt_compiler_needs_object
13215
13216# Create an old-style archive from a shared archive.
13217old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
13218
13219# Create a temporary old-style archive to link instead of a shared archive.
13220old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
13221
13222# Commands used to build a shared archive.
13223archive_cmds=$lt_archive_cmds
13224archive_expsym_cmds=$lt_archive_expsym_cmds
13225
13226# Commands used to build a loadable module if different from building
13227# a shared archive.
13228module_cmds=$lt_module_cmds
13229module_expsym_cmds=$lt_module_expsym_cmds
13230
13231# Whether we are building with GNU ld or not.
13232with_gnu_ld=$lt_with_gnu_ld
13233
13234# Flag that allows shared libraries with undefined symbols to be built.
13235allow_undefined_flag=$lt_allow_undefined_flag
13236
13237# Flag that enforces no undefined symbols.
13238no_undefined_flag=$lt_no_undefined_flag
13239
13240# Flag to hardcode \$libdir into a binary during linking.
13241# This must work even if \$libdir does not exist
13242hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
13243
13244# If ld is used when linking, flag to hardcode \$libdir into a binary
13245# during linking.  This must work even if \$libdir does not exist.
13246hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
13247
13248# Whether we need a single "-rpath" flag with a separated argument.
13249hardcode_libdir_separator=$lt_hardcode_libdir_separator
13250
13251# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
13252# DIR into the resulting binary.
13253hardcode_direct=$hardcode_direct
13254
13255# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
13256# DIR into the resulting binary and the resulting library dependency is
13257# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
13258# library is relocated.
13259hardcode_direct_absolute=$hardcode_direct_absolute
13260
13261# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
13262# into the resulting binary.
13263hardcode_minus_L=$hardcode_minus_L
13264
13265# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
13266# into the resulting binary.
13267hardcode_shlibpath_var=$hardcode_shlibpath_var
13268
13269# Set to "yes" if building a shared library automatically hardcodes DIR
13270# into the library and all subsequent libraries and executables linked
13271# against it.
13272hardcode_automatic=$hardcode_automatic
13273
13274# Set to yes if linker adds runtime paths of dependent libraries
13275# to runtime path list.
13276inherit_rpath=$inherit_rpath
13277
13278# Whether libtool must link a program against all its dependency libraries.
13279link_all_deplibs=$link_all_deplibs
13280
13281# Set to "yes" if exported symbols are required.
13282always_export_symbols=$always_export_symbols
13283
13284# The commands to list exported symbols.
13285export_symbols_cmds=$lt_export_symbols_cmds
13286
13287# Symbols that should not be listed in the preloaded symbols.
13288exclude_expsyms=$lt_exclude_expsyms
13289
13290# Symbols that must always be exported.
13291include_expsyms=$lt_include_expsyms
13292
13293# Commands necessary for linking programs (against libraries) with templates.
13294prelink_cmds=$lt_prelink_cmds
13295
13296# Commands necessary for finishing linking programs.
13297postlink_cmds=$lt_postlink_cmds
13298
13299# Specify filename containing input files.
13300file_list_spec=$lt_file_list_spec
13301
13302# How to hardcode a shared library path into an executable.
13303hardcode_action=$hardcode_action
13304
13305# ### END LIBTOOL CONFIG
13306
13307_LT_EOF
13308
13309  case $host_os in
13310  aix3*)
13311    cat <<\_LT_EOF >> "$cfgfile"
13312# AIX sometimes has problems with the GCC collect2 program.  For some
13313# reason, if we set the COLLECT_NAMES environment variable, the problems
13314# vanish in a puff of smoke.
13315if test "X${COLLECT_NAMES+set}" != Xset; then
13316  COLLECT_NAMES=
13317  export COLLECT_NAMES
13318fi
13319_LT_EOF
13320    ;;
13321  esac
13322
13323
13324ltmain="$ac_aux_dir/ltmain.sh"
13325
13326
13327  # We use sed instead of cat because bash on DJGPP gets confused if
13328  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
13329  # text mode, it properly converts lines to CR/LF.  This bash problem
13330  # is reportedly fixed, but why not run on old versions too?
13331  sed '$q' "$ltmain" >> "$cfgfile" \
13332     || (rm -f "$cfgfile"; exit 1)
13333
13334  if test x"$xsi_shell" = xyes; then
13335  sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
13336func_dirname ()\
13337{\
13338\    case ${1} in\
13339\      */*) func_dirname_result="${1%/*}${2}" ;;\
13340\      *  ) func_dirname_result="${3}" ;;\
13341\    esac\
13342} # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
13343  && mv -f "$cfgfile.tmp" "$cfgfile" \
13344    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
13345test 0 -eq $? || _lt_function_replace_fail=:
13346
13347
13348  sed -e '/^func_basename ()$/,/^} # func_basename /c\
13349func_basename ()\
13350{\
13351\    func_basename_result="${1##*/}"\
13352} # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
13353  && mv -f "$cfgfile.tmp" "$cfgfile" \
13354    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
13355test 0 -eq $? || _lt_function_replace_fail=:
13356
13357
13358  sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
13359func_dirname_and_basename ()\
13360{\
13361\    case ${1} in\
13362\      */*) func_dirname_result="${1%/*}${2}" ;;\
13363\      *  ) func_dirname_result="${3}" ;;\
13364\    esac\
13365\    func_basename_result="${1##*/}"\
13366} # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
13367  && mv -f "$cfgfile.tmp" "$cfgfile" \
13368    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
13369test 0 -eq $? || _lt_function_replace_fail=:
13370
13371
13372  sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
13373func_stripname ()\
13374{\
13375\    # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
13376\    # positional parameters, so assign one to ordinary parameter first.\
13377\    func_stripname_result=${3}\
13378\    func_stripname_result=${func_stripname_result#"${1}"}\
13379\    func_stripname_result=${func_stripname_result%"${2}"}\
13380} # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
13381  && mv -f "$cfgfile.tmp" "$cfgfile" \
13382    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
13383test 0 -eq $? || _lt_function_replace_fail=:
13384
13385
13386  sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
13387func_split_long_opt ()\
13388{\
13389\    func_split_long_opt_name=${1%%=*}\
13390\    func_split_long_opt_arg=${1#*=}\
13391} # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
13392  && mv -f "$cfgfile.tmp" "$cfgfile" \
13393    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
13394test 0 -eq $? || _lt_function_replace_fail=:
13395
13396
13397  sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
13398func_split_short_opt ()\
13399{\
13400\    func_split_short_opt_arg=${1#??}\
13401\    func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
13402} # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
13403  && mv -f "$cfgfile.tmp" "$cfgfile" \
13404    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
13405test 0 -eq $? || _lt_function_replace_fail=:
13406
13407
13408  sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
13409func_lo2o ()\
13410{\
13411\    case ${1} in\
13412\      *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
13413\      *)    func_lo2o_result=${1} ;;\
13414\    esac\
13415} # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
13416  && mv -f "$cfgfile.tmp" "$cfgfile" \
13417    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
13418test 0 -eq $? || _lt_function_replace_fail=:
13419
13420
13421  sed -e '/^func_xform ()$/,/^} # func_xform /c\
13422func_xform ()\
13423{\
13424    func_xform_result=${1%.*}.lo\
13425} # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
13426  && mv -f "$cfgfile.tmp" "$cfgfile" \
13427    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
13428test 0 -eq $? || _lt_function_replace_fail=:
13429
13430
13431  sed -e '/^func_arith ()$/,/^} # func_arith /c\
13432func_arith ()\
13433{\
13434    func_arith_result=$(( $* ))\
13435} # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
13436  && mv -f "$cfgfile.tmp" "$cfgfile" \
13437    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
13438test 0 -eq $? || _lt_function_replace_fail=:
13439
13440
13441  sed -e '/^func_len ()$/,/^} # func_len /c\
13442func_len ()\
13443{\
13444    func_len_result=${#1}\
13445} # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
13446  && mv -f "$cfgfile.tmp" "$cfgfile" \
13447    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
13448test 0 -eq $? || _lt_function_replace_fail=:
13449
13450fi
13451
13452if test x"$lt_shell_append" = xyes; then
13453  sed -e '/^func_append ()$/,/^} # func_append /c\
13454func_append ()\
13455{\
13456    eval "${1}+=\\${2}"\
13457} # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
13458  && mv -f "$cfgfile.tmp" "$cfgfile" \
13459    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
13460test 0 -eq $? || _lt_function_replace_fail=:
13461
13462
13463  sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
13464func_append_quoted ()\
13465{\
13466\    func_quote_for_eval "${2}"\
13467\    eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
13468} # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
13469  && mv -f "$cfgfile.tmp" "$cfgfile" \
13470    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
13471test 0 -eq $? || _lt_function_replace_fail=:
13472
13473
13474  # Save a `func_append' function call where possible by direct use of '+='
13475  sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
13476    && mv -f "$cfgfile.tmp" "$cfgfile" \
13477      || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
13478  test 0 -eq $? || _lt_function_replace_fail=:
13479else
13480  # Save a `func_append' function call even when '+=' is not available
13481  sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
13482    && mv -f "$cfgfile.tmp" "$cfgfile" \
13483      || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
13484  test 0 -eq $? || _lt_function_replace_fail=:
13485fi
13486
13487if test x"$_lt_function_replace_fail" = x":"; then
13488  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
13489$as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
13490fi
13491
13492
13493   mv -f "$cfgfile" "$ofile" ||
13494    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
13495  chmod +x "$ofile"
13496
13497 ;;
13498
13499  esac
13500done # for ac_tag
13501
13502
13503as_fn_exit 0
13504_ACEOF
13505ac_clean_files=$ac_clean_files_save
13506
13507test $ac_write_fail = 0 ||
13508  as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
13509
13510
13511# configure is writing to config.log, and then calls config.status.
13512# config.status does its own redirection, appending to config.log.
13513# Unfortunately, on DOS this fails, as config.log is still kept open
13514# by configure, so config.status won't be able to write to it; its
13515# output is simply discarded.  So we exec the FD to /dev/null,
13516# effectively closing config.log, so it can be properly (re)opened and
13517# appended to by config.status.  When coming back to configure, we
13518# need to make the FD available again.
13519if test "$no_create" != yes; then
13520  ac_cs_success=:
13521  ac_config_status_args=
13522  test "$silent" = yes &&
13523    ac_config_status_args="$ac_config_status_args --quiet"
13524  exec 5>/dev/null
13525  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
13526  exec 5>>config.log
13527  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
13528  # would make configure fail if this is the last instruction.
13529  $ac_cs_success || as_fn_exit 1
13530fi
13531if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
13532  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
13533$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
13534fi
13535
13536