1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.69 for sqlite 3.7.2.
4#
5# Report bugs to <http://www.sqlite.org>.
6#
7#
8# Copyright (C) 1992-1996, 1998-2012 Free Software 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
137# Use a proper internal environment variable to ensure we don't fall
138  # into an infinite loop, continuously re-executing ourselves.
139  if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
140    _as_can_reexec=no; export _as_can_reexec;
141    # We cannot yet assume a decent shell, so we have to provide a
142# neutralization value for shells without unset; and this also
143# works around shells that cannot unset nonexistent variables.
144# Preserve -v and -x to the replacement shell.
145BASH_ENV=/dev/null
146ENV=/dev/null
147(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
148case $- in # ((((
149  *v*x* | *x*v* ) as_opts=-vx ;;
150  *v* ) as_opts=-v ;;
151  *x* ) as_opts=-x ;;
152  * ) as_opts= ;;
153esac
154exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
155# Admittedly, this is quite paranoid, since all the known shells bail
156# out after a failed `exec'.
157$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
158as_fn_exit 255
159  fi
160  # We don't want this to propagate to other subprocesses.
161          { _as_can_reexec=; unset _as_can_reexec;}
162if test "x$CONFIG_SHELL" = x; then
163  as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
164  emulate sh
165  NULLCMD=:
166  # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
167  # is contrary to our usage.  Disable this feature.
168  alias -g '\${1+\"\$@\"}'='\"\$@\"'
169  setopt NO_GLOB_SUBST
170else
171  case \`(set -o) 2>/dev/null\` in #(
172  *posix*) :
173    set -o posix ;; #(
174  *) :
175     ;;
176esac
177fi
178"
179  as_required="as_fn_return () { (exit \$1); }
180as_fn_success () { as_fn_return 0; }
181as_fn_failure () { as_fn_return 1; }
182as_fn_ret_success () { return 0; }
183as_fn_ret_failure () { return 1; }
184
185exitcode=0
186as_fn_success || { exitcode=1; echo as_fn_success failed.; }
187as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
188as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
189as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
190if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
191
192else
193  exitcode=1; echo positional parameters were not saved.
194fi
195test x\$exitcode = x0 || exit 1
196test -x / || exit 1"
197  as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
198  as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
199  eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
200  test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
201
202  test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
203    ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
204    ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
205    ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
206    PATH=/empty FPATH=/empty; export PATH FPATH
207    test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
208      || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1
209test \$(( 1 + 1 )) = 2 || exit 1"
210  if (eval "$as_required") 2>/dev/null; then :
211  as_have_required=yes
212else
213  as_have_required=no
214fi
215  if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
216
217else
218  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
219as_found=false
220for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
221do
222  IFS=$as_save_IFS
223  test -z "$as_dir" && as_dir=.
224  as_found=:
225  case $as_dir in #(
226	 /*)
227	   for as_base in sh bash ksh sh5; do
228	     # Try only shells that exist, to save several forks.
229	     as_shell=$as_dir/$as_base
230	     if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
231		    { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
232  CONFIG_SHELL=$as_shell as_have_required=yes
233		   if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
234  break 2
235fi
236fi
237	   done;;
238       esac
239  as_found=false
240done
241$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
242	      { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
243  CONFIG_SHELL=$SHELL as_have_required=yes
244fi; }
245IFS=$as_save_IFS
246
247
248      if test "x$CONFIG_SHELL" != x; then :
249  export CONFIG_SHELL
250             # We cannot yet assume a decent shell, so we have to provide a
251# neutralization value for shells without unset; and this also
252# works around shells that cannot unset nonexistent variables.
253# Preserve -v and -x to the replacement shell.
254BASH_ENV=/dev/null
255ENV=/dev/null
256(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
257case $- in # ((((
258  *v*x* | *x*v* ) as_opts=-vx ;;
259  *v* ) as_opts=-v ;;
260  *x* ) as_opts=-x ;;
261  * ) as_opts= ;;
262esac
263exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
264# Admittedly, this is quite paranoid, since all the known shells bail
265# out after a failed `exec'.
266$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
267exit 255
268fi
269
270    if test x$as_have_required = xno; then :
271  $as_echo "$0: This script requires a shell more modern than all"
272  $as_echo "$0: the shells that I found on your system."
273  if test x${ZSH_VERSION+set} = xset ; then
274    $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
275    $as_echo "$0: be upgraded to zsh 4.3.4 or later."
276  else
277    $as_echo "$0: Please tell bug-autoconf@gnu.org and
278$0: http://www.sqlite.org about your system, including any
279$0: error possibly output before this message. Then install
280$0: a modern shell, or manually run the script under such a
281$0: shell if you do have one."
282  fi
283  exit 1
284fi
285fi
286fi
287SHELL=${CONFIG_SHELL-/bin/sh}
288export SHELL
289# Unset more variables known to interfere with behavior of common tools.
290CLICOLOR_FORCE= GREP_OPTIONS=
291unset CLICOLOR_FORCE GREP_OPTIONS
292
293## --------------------- ##
294## M4sh Shell Functions. ##
295## --------------------- ##
296# as_fn_unset VAR
297# ---------------
298# Portably unset VAR.
299as_fn_unset ()
300{
301  { eval $1=; unset $1;}
302}
303as_unset=as_fn_unset
304
305# as_fn_set_status STATUS
306# -----------------------
307# Set $? to STATUS, without forking.
308as_fn_set_status ()
309{
310  return $1
311} # as_fn_set_status
312
313# as_fn_exit STATUS
314# -----------------
315# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
316as_fn_exit ()
317{
318  set +e
319  as_fn_set_status $1
320  exit $1
321} # as_fn_exit
322
323# as_fn_mkdir_p
324# -------------
325# Create "$as_dir" as a directory, including parents if necessary.
326as_fn_mkdir_p ()
327{
328
329  case $as_dir in #(
330  -*) as_dir=./$as_dir;;
331  esac
332  test -d "$as_dir" || eval $as_mkdir_p || {
333    as_dirs=
334    while :; do
335      case $as_dir in #(
336      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
337      *) as_qdir=$as_dir;;
338      esac
339      as_dirs="'$as_qdir' $as_dirs"
340      as_dir=`$as_dirname -- "$as_dir" ||
341$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
342	 X"$as_dir" : 'X\(//\)[^/]' \| \
343	 X"$as_dir" : 'X\(//\)$' \| \
344	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
345$as_echo X"$as_dir" |
346    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
347	    s//\1/
348	    q
349	  }
350	  /^X\(\/\/\)[^/].*/{
351	    s//\1/
352	    q
353	  }
354	  /^X\(\/\/\)$/{
355	    s//\1/
356	    q
357	  }
358	  /^X\(\/\).*/{
359	    s//\1/
360	    q
361	  }
362	  s/.*/./; q'`
363      test -d "$as_dir" && break
364    done
365    test -z "$as_dirs" || eval "mkdir $as_dirs"
366  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
367
368
369} # as_fn_mkdir_p
370
371# as_fn_executable_p FILE
372# -----------------------
373# Test if FILE is an executable regular file.
374as_fn_executable_p ()
375{
376  test -f "$1" && test -x "$1"
377} # as_fn_executable_p
378# as_fn_append VAR VALUE
379# ----------------------
380# Append the text in VALUE to the end of the definition contained in VAR. Take
381# advantage of any shell optimizations that allow amortized linear growth over
382# repeated appends, instead of the typical quadratic growth present in naive
383# implementations.
384if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
385  eval 'as_fn_append ()
386  {
387    eval $1+=\$2
388  }'
389else
390  as_fn_append ()
391  {
392    eval $1=\$$1\$2
393  }
394fi # as_fn_append
395
396# as_fn_arith ARG...
397# ------------------
398# Perform arithmetic evaluation on the ARGs, and store the result in the
399# global $as_val. Take advantage of shells that can avoid forks. The arguments
400# must be portable across $(()) and expr.
401if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
402  eval 'as_fn_arith ()
403  {
404    as_val=$(( $* ))
405  }'
406else
407  as_fn_arith ()
408  {
409    as_val=`expr "$@" || test $? -eq 1`
410  }
411fi # as_fn_arith
412
413
414# as_fn_error STATUS ERROR [LINENO LOG_FD]
415# ----------------------------------------
416# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
417# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
418# script with STATUS, using 1 if that was 0.
419as_fn_error ()
420{
421  as_status=$1; test $as_status -eq 0 && as_status=1
422  if test "$4"; then
423    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
424    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
425  fi
426  $as_echo "$as_me: error: $2" >&2
427  as_fn_exit $as_status
428} # as_fn_error
429
430if expr a : '\(a\)' >/dev/null 2>&1 &&
431   test "X`expr 00001 : '.*\(...\)'`" = X001; then
432  as_expr=expr
433else
434  as_expr=false
435fi
436
437if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
438  as_basename=basename
439else
440  as_basename=false
441fi
442
443if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
444  as_dirname=dirname
445else
446  as_dirname=false
447fi
448
449as_me=`$as_basename -- "$0" ||
450$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
451	 X"$0" : 'X\(//\)$' \| \
452	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
453$as_echo X/"$0" |
454    sed '/^.*\/\([^/][^/]*\)\/*$/{
455	    s//\1/
456	    q
457	  }
458	  /^X\/\(\/\/\)$/{
459	    s//\1/
460	    q
461	  }
462	  /^X\/\(\/\).*/{
463	    s//\1/
464	    q
465	  }
466	  s/.*/./; q'`
467
468# Avoid depending upon Character Ranges.
469as_cr_letters='abcdefghijklmnopqrstuvwxyz'
470as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
471as_cr_Letters=$as_cr_letters$as_cr_LETTERS
472as_cr_digits='0123456789'
473as_cr_alnum=$as_cr_Letters$as_cr_digits
474
475
476  as_lineno_1=$LINENO as_lineno_1a=$LINENO
477  as_lineno_2=$LINENO as_lineno_2a=$LINENO
478  eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
479  test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
480  # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
481  sed -n '
482    p
483    /[$]LINENO/=
484  ' <$as_myself |
485    sed '
486      s/[$]LINENO.*/&-/
487      t lineno
488      b
489      :lineno
490      N
491      :loop
492      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
493      t loop
494      s/-\n.*//
495    ' >$as_me.lineno &&
496  chmod +x "$as_me.lineno" ||
497    { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
498
499  # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
500  # already done that, so ensure we don't try to do so again and fall
501  # in an infinite loop.  This has already happened in practice.
502  _as_can_reexec=no; export _as_can_reexec
503  # Don't try to exec as it changes $[0], causing all sort of problems
504  # (the dirname of $[0] is not the place where we might find the
505  # original and so on.  Autoconf is especially sensitive to this).
506  . "./$as_me.lineno"
507  # Exit status is that of the last command.
508  exit
509}
510
511ECHO_C= ECHO_N= ECHO_T=
512case `echo -n x` in #(((((
513-n*)
514  case `echo 'xy\c'` in
515  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
516  xy)  ECHO_C='\c';;
517  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
518       ECHO_T='	';;
519  esac;;
520*)
521  ECHO_N='-n';;
522esac
523
524rm -f conf$$ conf$$.exe conf$$.file
525if test -d conf$$.dir; then
526  rm -f conf$$.dir/conf$$.file
527else
528  rm -f conf$$.dir
529  mkdir conf$$.dir 2>/dev/null
530fi
531if (echo >conf$$.file) 2>/dev/null; then
532  if ln -s conf$$.file conf$$ 2>/dev/null; then
533    as_ln_s='ln -s'
534    # ... but there are two gotchas:
535    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
536    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
537    # In both cases, we have to default to `cp -pR'.
538    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
539      as_ln_s='cp -pR'
540  elif ln conf$$.file conf$$ 2>/dev/null; then
541    as_ln_s=ln
542  else
543    as_ln_s='cp -pR'
544  fi
545else
546  as_ln_s='cp -pR'
547fi
548rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
549rmdir conf$$.dir 2>/dev/null
550
551if mkdir -p . 2>/dev/null; then
552  as_mkdir_p='mkdir -p "$as_dir"'
553else
554  test -d ./-p && rmdir ./-p
555  as_mkdir_p=false
556fi
557
558as_test_x='test -x'
559as_executable_p=as_fn_executable_p
560
561# Sed expression to map a string onto a valid CPP name.
562as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
563
564# Sed expression to map a string onto a valid variable name.
565as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
566
567SHELL=${CONFIG_SHELL-/bin/sh}
568
569
570test -n "$DJDIR" || exec 7<&0 </dev/null
571exec 6>&1
572
573# Name of the host.
574# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
575# so uname gets run too.
576ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
577
578#
579# Initializations.
580#
581ac_default_prefix=/usr/local
582ac_clean_files=
583ac_config_libobj_dir=.
584LIBOBJS=
585cross_compiling=no
586subdirs=
587MFLAGS=
588MAKEFLAGS=
589
590# Identity of this package.
591PACKAGE_NAME='sqlite'
592PACKAGE_TARNAME='sqlite'
593PACKAGE_VERSION='3.7.2'
594PACKAGE_STRING='sqlite 3.7.2'
595PACKAGE_BUGREPORT='http://www.sqlite.org'
596PACKAGE_URL=''
597
598ac_unique_file="sqlite3.c"
599# Factoring default headers for most tests.
600ac_includes_default="\
601#include <stdio.h>
602#ifdef HAVE_SYS_TYPES_H
603# include <sys/types.h>
604#endif
605#ifdef HAVE_SYS_STAT_H
606# include <sys/stat.h>
607#endif
608#ifdef STDC_HEADERS
609# include <stdlib.h>
610# include <stddef.h>
611#else
612# ifdef HAVE_STDLIB_H
613#  include <stdlib.h>
614# endif
615#endif
616#ifdef HAVE_STRING_H
617# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
618#  include <memory.h>
619# endif
620# include <string.h>
621#endif
622#ifdef HAVE_STRINGS_H
623# include <strings.h>
624#endif
625#ifdef HAVE_INTTYPES_H
626# include <inttypes.h>
627#endif
628#ifdef HAVE_STDINT_H
629# include <stdint.h>
630#endif
631#ifdef HAVE_UNISTD_H
632# include <unistd.h>
633#endif"
634
635ac_subst_vars='am__EXEEXT_FALSE
636am__EXEEXT_TRUE
637LTLIBOBJS
638LIBOBJS
639DYNAMIC_EXTENSION_FLAGS
640THREADSAFE_FLAGS
641READLINE_LIBS
642BUILD_CFLAGS
643CPP
644OTOOL64
645OTOOL
646LIPO
647NMEDIT
648DSYMUTIL
649MANIFEST_TOOL
650ac_ct_AR
651AR
652DLLTOOL
653OBJDUMP
654LN_S
655NM
656ac_ct_DUMPBIN
657DUMPBIN
658LD
659FGREP
660EGREP
661GREP
662SED
663host_os
664host_vendor
665host_cpu
666host
667build_os
668build_vendor
669build_cpu
670build
671LIBTOOL
672RANLIB
673am__fastdepCC_FALSE
674am__fastdepCC_TRUE
675CCDEPMODE
676am__nodep
677AMDEPBACKSLASH
678AMDEP_FALSE
679AMDEP_TRUE
680am__quote
681am__include
682DEPDIR
683OBJEXT
684EXEEXT
685ac_ct_CC
686CPPFLAGS
687LDFLAGS
688CFLAGS
689CC
690MAINT
691MAINTAINER_MODE_FALSE
692MAINTAINER_MODE_TRUE
693AM_BACKSLASH
694AM_DEFAULT_VERBOSITY
695AM_DEFAULT_V
696AM_V
697am__untar
698am__tar
699AMTAR
700am__leading_dot
701SET_MAKE
702AWK
703mkdir_p
704MKDIR_P
705INSTALL_STRIP_PROGRAM
706STRIP
707install_sh
708MAKEINFO
709AUTOHEADER
710AUTOMAKE
711AUTOCONF
712ACLOCAL
713VERSION
714PACKAGE
715CYGPATH_W
716am__isrc
717INSTALL_DATA
718INSTALL_SCRIPT
719INSTALL_PROGRAM
720target_alias
721host_alias
722build_alias
723LIBS
724ECHO_T
725ECHO_N
726ECHO_C
727DEFS
728mandir
729localedir
730libdir
731psdir
732pdfdir
733dvidir
734htmldir
735infodir
736docdir
737oldincludedir
738includedir
739localstatedir
740sharedstatedir
741sysconfdir
742datadir
743datarootdir
744libexecdir
745sbindir
746bindir
747program_transform_name
748prefix
749exec_prefix
750PACKAGE_URL
751PACKAGE_BUGREPORT
752PACKAGE_STRING
753PACKAGE_VERSION
754PACKAGE_TARNAME
755PACKAGE_NAME
756PATH_SEPARATOR
757SHELL'
758ac_subst_files=''
759ac_user_opts='
760enable_option_checking
761enable_silent_rules
762enable_maintainer_mode
763enable_largefile
764enable_dependency_tracking
765enable_shared
766enable_static
767with_pic
768enable_fast_install
769with_gnu_ld
770with_sysroot
771enable_libtool_lock
772enable_readline
773enable_threadsafe
774enable_dynamic_extensions
775'
776      ac_precious_vars='build_alias
777host_alias
778target_alias
779CC
780CFLAGS
781LDFLAGS
782LIBS
783CPPFLAGS
784CPP'
785
786
787# Initialize some variables set by options.
788ac_init_help=
789ac_init_version=false
790ac_unrecognized_opts=
791ac_unrecognized_sep=
792# The variables have the same names as the options, with
793# dashes changed to underlines.
794cache_file=/dev/null
795exec_prefix=NONE
796no_create=
797no_recursion=
798prefix=NONE
799program_prefix=NONE
800program_suffix=NONE
801program_transform_name=s,x,x,
802silent=
803site=
804srcdir=
805verbose=
806x_includes=NONE
807x_libraries=NONE
808
809# Installation directory options.
810# These are left unexpanded so users can "make install exec_prefix=/foo"
811# and all the variables that are supposed to be based on exec_prefix
812# by default will actually change.
813# Use braces instead of parens because sh, perl, etc. also accept them.
814# (The list follows the same order as the GNU Coding Standards.)
815bindir='${exec_prefix}/bin'
816sbindir='${exec_prefix}/sbin'
817libexecdir='${exec_prefix}/libexec'
818datarootdir='${prefix}/share'
819datadir='${datarootdir}'
820sysconfdir='${prefix}/etc'
821sharedstatedir='${prefix}/com'
822localstatedir='${prefix}/var'
823includedir='${prefix}/include'
824oldincludedir='/usr/include'
825docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
826infodir='${datarootdir}/info'
827htmldir='${docdir}'
828dvidir='${docdir}'
829pdfdir='${docdir}'
830psdir='${docdir}'
831libdir='${exec_prefix}/lib'
832localedir='${datarootdir}/locale'
833mandir='${datarootdir}/man'
834
835ac_prev=
836ac_dashdash=
837for ac_option
838do
839  # If the previous option needs an argument, assign it.
840  if test -n "$ac_prev"; then
841    eval $ac_prev=\$ac_option
842    ac_prev=
843    continue
844  fi
845
846  case $ac_option in
847  *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
848  *=)   ac_optarg= ;;
849  *)    ac_optarg=yes ;;
850  esac
851
852  # Accept the important Cygnus configure options, so we can diagnose typos.
853
854  case $ac_dashdash$ac_option in
855  --)
856    ac_dashdash=yes ;;
857
858  -bindir | --bindir | --bindi | --bind | --bin | --bi)
859    ac_prev=bindir ;;
860  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
861    bindir=$ac_optarg ;;
862
863  -build | --build | --buil | --bui | --bu)
864    ac_prev=build_alias ;;
865  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
866    build_alias=$ac_optarg ;;
867
868  -cache-file | --cache-file | --cache-fil | --cache-fi \
869  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
870    ac_prev=cache_file ;;
871  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
872  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
873    cache_file=$ac_optarg ;;
874
875  --config-cache | -C)
876    cache_file=config.cache ;;
877
878  -datadir | --datadir | --datadi | --datad)
879    ac_prev=datadir ;;
880  -datadir=* | --datadir=* | --datadi=* | --datad=*)
881    datadir=$ac_optarg ;;
882
883  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
884  | --dataroo | --dataro | --datar)
885    ac_prev=datarootdir ;;
886  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
887  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
888    datarootdir=$ac_optarg ;;
889
890  -disable-* | --disable-*)
891    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
892    # Reject names that are not valid shell variable names.
893    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
894      as_fn_error $? "invalid feature name: $ac_useropt"
895    ac_useropt_orig=$ac_useropt
896    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
897    case $ac_user_opts in
898      *"
899"enable_$ac_useropt"
900"*) ;;
901      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
902	 ac_unrecognized_sep=', ';;
903    esac
904    eval enable_$ac_useropt=no ;;
905
906  -docdir | --docdir | --docdi | --doc | --do)
907    ac_prev=docdir ;;
908  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
909    docdir=$ac_optarg ;;
910
911  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
912    ac_prev=dvidir ;;
913  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
914    dvidir=$ac_optarg ;;
915
916  -enable-* | --enable-*)
917    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
918    # Reject names that are not valid shell variable names.
919    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
920      as_fn_error $? "invalid feature name: $ac_useropt"
921    ac_useropt_orig=$ac_useropt
922    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
923    case $ac_user_opts in
924      *"
925"enable_$ac_useropt"
926"*) ;;
927      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
928	 ac_unrecognized_sep=', ';;
929    esac
930    eval enable_$ac_useropt=\$ac_optarg ;;
931
932  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
933  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
934  | --exec | --exe | --ex)
935    ac_prev=exec_prefix ;;
936  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
937  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
938  | --exec=* | --exe=* | --ex=*)
939    exec_prefix=$ac_optarg ;;
940
941  -gas | --gas | --ga | --g)
942    # Obsolete; use --with-gas.
943    with_gas=yes ;;
944
945  -help | --help | --hel | --he | -h)
946    ac_init_help=long ;;
947  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
948    ac_init_help=recursive ;;
949  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
950    ac_init_help=short ;;
951
952  -host | --host | --hos | --ho)
953    ac_prev=host_alias ;;
954  -host=* | --host=* | --hos=* | --ho=*)
955    host_alias=$ac_optarg ;;
956
957  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
958    ac_prev=htmldir ;;
959  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
960  | --ht=*)
961    htmldir=$ac_optarg ;;
962
963  -includedir | --includedir | --includedi | --included | --include \
964  | --includ | --inclu | --incl | --inc)
965    ac_prev=includedir ;;
966  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
967  | --includ=* | --inclu=* | --incl=* | --inc=*)
968    includedir=$ac_optarg ;;
969
970  -infodir | --infodir | --infodi | --infod | --info | --inf)
971    ac_prev=infodir ;;
972  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
973    infodir=$ac_optarg ;;
974
975  -libdir | --libdir | --libdi | --libd)
976    ac_prev=libdir ;;
977  -libdir=* | --libdir=* | --libdi=* | --libd=*)
978    libdir=$ac_optarg ;;
979
980  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
981  | --libexe | --libex | --libe)
982    ac_prev=libexecdir ;;
983  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
984  | --libexe=* | --libex=* | --libe=*)
985    libexecdir=$ac_optarg ;;
986
987  -localedir | --localedir | --localedi | --localed | --locale)
988    ac_prev=localedir ;;
989  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
990    localedir=$ac_optarg ;;
991
992  -localstatedir | --localstatedir | --localstatedi | --localstated \
993  | --localstate | --localstat | --localsta | --localst | --locals)
994    ac_prev=localstatedir ;;
995  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
996  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
997    localstatedir=$ac_optarg ;;
998
999  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1000    ac_prev=mandir ;;
1001  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1002    mandir=$ac_optarg ;;
1003
1004  -nfp | --nfp | --nf)
1005    # Obsolete; use --without-fp.
1006    with_fp=no ;;
1007
1008  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1009  | --no-cr | --no-c | -n)
1010    no_create=yes ;;
1011
1012  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1013  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1014    no_recursion=yes ;;
1015
1016  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1017  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1018  | --oldin | --oldi | --old | --ol | --o)
1019    ac_prev=oldincludedir ;;
1020  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1021  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1022  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1023    oldincludedir=$ac_optarg ;;
1024
1025  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1026    ac_prev=prefix ;;
1027  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1028    prefix=$ac_optarg ;;
1029
1030  -program-prefix | --program-prefix | --program-prefi | --program-pref \
1031  | --program-pre | --program-pr | --program-p)
1032    ac_prev=program_prefix ;;
1033  -program-prefix=* | --program-prefix=* | --program-prefi=* \
1034  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1035    program_prefix=$ac_optarg ;;
1036
1037  -program-suffix | --program-suffix | --program-suffi | --program-suff \
1038  | --program-suf | --program-su | --program-s)
1039    ac_prev=program_suffix ;;
1040  -program-suffix=* | --program-suffix=* | --program-suffi=* \
1041  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1042    program_suffix=$ac_optarg ;;
1043
1044  -program-transform-name | --program-transform-name \
1045  | --program-transform-nam | --program-transform-na \
1046  | --program-transform-n | --program-transform- \
1047  | --program-transform | --program-transfor \
1048  | --program-transfo | --program-transf \
1049  | --program-trans | --program-tran \
1050  | --progr-tra | --program-tr | --program-t)
1051    ac_prev=program_transform_name ;;
1052  -program-transform-name=* | --program-transform-name=* \
1053  | --program-transform-nam=* | --program-transform-na=* \
1054  | --program-transform-n=* | --program-transform-=* \
1055  | --program-transform=* | --program-transfor=* \
1056  | --program-transfo=* | --program-transf=* \
1057  | --program-trans=* | --program-tran=* \
1058  | --progr-tra=* | --program-tr=* | --program-t=*)
1059    program_transform_name=$ac_optarg ;;
1060
1061  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1062    ac_prev=pdfdir ;;
1063  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1064    pdfdir=$ac_optarg ;;
1065
1066  -psdir | --psdir | --psdi | --psd | --ps)
1067    ac_prev=psdir ;;
1068  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1069    psdir=$ac_optarg ;;
1070
1071  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1072  | -silent | --silent | --silen | --sile | --sil)
1073    silent=yes ;;
1074
1075  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1076    ac_prev=sbindir ;;
1077  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1078  | --sbi=* | --sb=*)
1079    sbindir=$ac_optarg ;;
1080
1081  -sharedstatedir | --sharedstatedir | --sharedstatedi \
1082  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1083  | --sharedst | --shareds | --shared | --share | --shar \
1084  | --sha | --sh)
1085    ac_prev=sharedstatedir ;;
1086  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1087  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1088  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1089  | --sha=* | --sh=*)
1090    sharedstatedir=$ac_optarg ;;
1091
1092  -site | --site | --sit)
1093    ac_prev=site ;;
1094  -site=* | --site=* | --sit=*)
1095    site=$ac_optarg ;;
1096
1097  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1098    ac_prev=srcdir ;;
1099  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1100    srcdir=$ac_optarg ;;
1101
1102  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1103  | --syscon | --sysco | --sysc | --sys | --sy)
1104    ac_prev=sysconfdir ;;
1105  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1106  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1107    sysconfdir=$ac_optarg ;;
1108
1109  -target | --target | --targe | --targ | --tar | --ta | --t)
1110    ac_prev=target_alias ;;
1111  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1112    target_alias=$ac_optarg ;;
1113
1114  -v | -verbose | --verbose | --verbos | --verbo | --verb)
1115    verbose=yes ;;
1116
1117  -version | --version | --versio | --versi | --vers | -V)
1118    ac_init_version=: ;;
1119
1120  -with-* | --with-*)
1121    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1122    # Reject names that are not valid shell variable names.
1123    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1124      as_fn_error $? "invalid package name: $ac_useropt"
1125    ac_useropt_orig=$ac_useropt
1126    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1127    case $ac_user_opts in
1128      *"
1129"with_$ac_useropt"
1130"*) ;;
1131      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1132	 ac_unrecognized_sep=', ';;
1133    esac
1134    eval with_$ac_useropt=\$ac_optarg ;;
1135
1136  -without-* | --without-*)
1137    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1138    # Reject names that are not valid shell variable names.
1139    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1140      as_fn_error $? "invalid package name: $ac_useropt"
1141    ac_useropt_orig=$ac_useropt
1142    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1143    case $ac_user_opts in
1144      *"
1145"with_$ac_useropt"
1146"*) ;;
1147      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1148	 ac_unrecognized_sep=', ';;
1149    esac
1150    eval with_$ac_useropt=no ;;
1151
1152  --x)
1153    # Obsolete; use --with-x.
1154    with_x=yes ;;
1155
1156  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1157  | --x-incl | --x-inc | --x-in | --x-i)
1158    ac_prev=x_includes ;;
1159  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1160  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1161    x_includes=$ac_optarg ;;
1162
1163  -x-libraries | --x-libraries | --x-librarie | --x-librari \
1164  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1165    ac_prev=x_libraries ;;
1166  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1167  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1168    x_libraries=$ac_optarg ;;
1169
1170  -*) as_fn_error $? "unrecognized option: \`$ac_option'
1171Try \`$0 --help' for more information"
1172    ;;
1173
1174  *=*)
1175    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1176    # Reject names that are not valid shell variable names.
1177    case $ac_envvar in #(
1178      '' | [0-9]* | *[!_$as_cr_alnum]* )
1179      as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1180    esac
1181    eval $ac_envvar=\$ac_optarg
1182    export $ac_envvar ;;
1183
1184  *)
1185    # FIXME: should be removed in autoconf 3.0.
1186    $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1187    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1188      $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1189    : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1190    ;;
1191
1192  esac
1193done
1194
1195if test -n "$ac_prev"; then
1196  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1197  as_fn_error $? "missing argument to $ac_option"
1198fi
1199
1200if test -n "$ac_unrecognized_opts"; then
1201  case $enable_option_checking in
1202    no) ;;
1203    fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1204    *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1205  esac
1206fi
1207
1208# Check all directory arguments for consistency.
1209for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
1210		datadir sysconfdir sharedstatedir localstatedir includedir \
1211		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1212		libdir localedir mandir
1213do
1214  eval ac_val=\$$ac_var
1215  # Remove trailing slashes.
1216  case $ac_val in
1217    */ )
1218      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1219      eval $ac_var=\$ac_val;;
1220  esac
1221  # Be sure to have absolute directory names.
1222  case $ac_val in
1223    [\\/$]* | ?:[\\/]* )  continue;;
1224    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1225  esac
1226  as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1227done
1228
1229# There might be people who depend on the old broken behavior: `$host'
1230# used to hold the argument of --host etc.
1231# FIXME: To remove some day.
1232build=$build_alias
1233host=$host_alias
1234target=$target_alias
1235
1236# FIXME: To remove some day.
1237if test "x$host_alias" != x; then
1238  if test "x$build_alias" = x; then
1239    cross_compiling=maybe
1240  elif test "x$build_alias" != "x$host_alias"; then
1241    cross_compiling=yes
1242  fi
1243fi
1244
1245ac_tool_prefix=
1246test -n "$host_alias" && ac_tool_prefix=$host_alias-
1247
1248test "$silent" = yes && exec 6>/dev/null
1249
1250
1251ac_pwd=`pwd` && test -n "$ac_pwd" &&
1252ac_ls_di=`ls -di .` &&
1253ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1254  as_fn_error $? "working directory cannot be determined"
1255test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1256  as_fn_error $? "pwd does not report name of working directory"
1257
1258
1259# Find the source files, if location was not specified.
1260if test -z "$srcdir"; then
1261  ac_srcdir_defaulted=yes
1262  # Try the directory containing this script, then the parent directory.
1263  ac_confdir=`$as_dirname -- "$as_myself" ||
1264$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1265	 X"$as_myself" : 'X\(//\)[^/]' \| \
1266	 X"$as_myself" : 'X\(//\)$' \| \
1267	 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1268$as_echo X"$as_myself" |
1269    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1270	    s//\1/
1271	    q
1272	  }
1273	  /^X\(\/\/\)[^/].*/{
1274	    s//\1/
1275	    q
1276	  }
1277	  /^X\(\/\/\)$/{
1278	    s//\1/
1279	    q
1280	  }
1281	  /^X\(\/\).*/{
1282	    s//\1/
1283	    q
1284	  }
1285	  s/.*/./; q'`
1286  srcdir=$ac_confdir
1287  if test ! -r "$srcdir/$ac_unique_file"; then
1288    srcdir=..
1289  fi
1290else
1291  ac_srcdir_defaulted=no
1292fi
1293if test ! -r "$srcdir/$ac_unique_file"; then
1294  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1295  as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1296fi
1297ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1298ac_abs_confdir=`(
1299	cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1300	pwd)`
1301# When building in place, set srcdir=.
1302if test "$ac_abs_confdir" = "$ac_pwd"; then
1303  srcdir=.
1304fi
1305# Remove unnecessary trailing slashes from srcdir.
1306# Double slashes in file names in object file debugging info
1307# mess up M-x gdb in Emacs.
1308case $srcdir in
1309*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1310esac
1311for ac_var in $ac_precious_vars; do
1312  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1313  eval ac_env_${ac_var}_value=\$${ac_var}
1314  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1315  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1316done
1317
1318#
1319# Report the --help message.
1320#
1321if test "$ac_init_help" = "long"; then
1322  # Omit some internal or obsolete options to make the list less imposing.
1323  # This message is too long to be a string in the A/UX 3.1 sh.
1324  cat <<_ACEOF
1325\`configure' configures sqlite 3.7.2 to adapt to many kinds of systems.
1326
1327Usage: $0 [OPTION]... [VAR=VALUE]...
1328
1329To assign environment variables (e.g., CC, CFLAGS...), specify them as
1330VAR=VALUE.  See below for descriptions of some of the useful variables.
1331
1332Defaults for the options are specified in brackets.
1333
1334Configuration:
1335  -h, --help              display this help and exit
1336      --help=short        display options specific to this package
1337      --help=recursive    display the short help of all the included packages
1338  -V, --version           display version information and exit
1339  -q, --quiet, --silent   do not print \`checking ...' messages
1340      --cache-file=FILE   cache test results in FILE [disabled]
1341  -C, --config-cache      alias for \`--cache-file=config.cache'
1342  -n, --no-create         do not create output files
1343      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1344
1345Installation directories:
1346  --prefix=PREFIX         install architecture-independent files in PREFIX
1347                          [$ac_default_prefix]
1348  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1349                          [PREFIX]
1350
1351By default, \`make install' will install all the files in
1352\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1353an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1354for instance \`--prefix=\$HOME'.
1355
1356For better control, use the options below.
1357
1358Fine tuning of the installation directories:
1359  --bindir=DIR            user executables [EPREFIX/bin]
1360  --sbindir=DIR           system admin executables [EPREFIX/sbin]
1361  --libexecdir=DIR        program executables [EPREFIX/libexec]
1362  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1363  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1364  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1365  --libdir=DIR            object code libraries [EPREFIX/lib]
1366  --includedir=DIR        C header files [PREFIX/include]
1367  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1368  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1369  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1370  --infodir=DIR           info documentation [DATAROOTDIR/info]
1371  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1372  --mandir=DIR            man documentation [DATAROOTDIR/man]
1373  --docdir=DIR            documentation root [DATAROOTDIR/doc/sqlite]
1374  --htmldir=DIR           html documentation [DOCDIR]
1375  --dvidir=DIR            dvi documentation [DOCDIR]
1376  --pdfdir=DIR            pdf documentation [DOCDIR]
1377  --psdir=DIR             ps documentation [DOCDIR]
1378_ACEOF
1379
1380  cat <<\_ACEOF
1381
1382Program names:
1383  --program-prefix=PREFIX            prepend PREFIX to installed program names
1384  --program-suffix=SUFFIX            append SUFFIX to installed program names
1385  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1386
1387System types:
1388  --build=BUILD     configure for building on BUILD [guessed]
1389  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1390_ACEOF
1391fi
1392
1393if test -n "$ac_init_help"; then
1394  case $ac_init_help in
1395     short | recursive ) echo "Configuration of sqlite 3.7.2:";;
1396   esac
1397  cat <<\_ACEOF
1398
1399Optional Features:
1400  --disable-option-checking  ignore unrecognized --enable/--with options
1401  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1402  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1403  --enable-silent-rules   less verbose build output (undo: "make V=1")
1404  --disable-silent-rules  verbose build output (undo: "make V=0")
1405  --enable-maintainer-mode
1406                          enable make rules and dependencies not useful (and
1407                          sometimes confusing) to the casual installer
1408  --disable-largefile     omit support for large files
1409  --enable-dependency-tracking
1410                          do not reject slow dependency extractors
1411  --disable-dependency-tracking
1412                          speeds up one-time build
1413  --enable-shared[=PKGS]  build shared libraries [default=yes]
1414  --enable-static[=PKGS]  build static libraries [default=yes]
1415  --enable-fast-install[=PKGS]
1416                          optimize for fast installation [default=yes]
1417  --disable-libtool-lock  avoid locking (might break parallel builds)
1418  --enable-readline       use readline in shell tool (yes, no) [default=yes]
1419  --enable-threadsafe     build a thread-safe library [default=yes]
1420  --enable-dynamic-extensions
1421                          support loadable extensions [default=yes]
1422
1423Optional Packages:
1424  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1425  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1426  --with-pic[=PKGS]       try to use only PIC/non-PIC objects [default=use
1427                          both]
1428  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1429  --with-sysroot=DIR Search for dependent libraries within DIR
1430                        (or the compiler's sysroot if not specified).
1431
1432Some influential environment variables:
1433  CC          C compiler command
1434  CFLAGS      C compiler flags
1435  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1436              nonstandard directory <lib dir>
1437  LIBS        libraries to pass to the linker, e.g. -l<library>
1438  CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1439              you have headers in a nonstandard directory <include dir>
1440  CPP         C preprocessor
1441
1442Use these variables to override the choices made by `configure' or to help
1443it to find libraries and programs with nonstandard names/locations.
1444
1445Report bugs to <http://www.sqlite.org>.
1446_ACEOF
1447ac_status=$?
1448fi
1449
1450if test "$ac_init_help" = "recursive"; then
1451  # If there are subdirs, report their specific --help.
1452  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1453    test -d "$ac_dir" ||
1454      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1455      continue
1456    ac_builddir=.
1457
1458case "$ac_dir" in
1459.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1460*)
1461  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1462  # A ".." for each directory in $ac_dir_suffix.
1463  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1464  case $ac_top_builddir_sub in
1465  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1466  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1467  esac ;;
1468esac
1469ac_abs_top_builddir=$ac_pwd
1470ac_abs_builddir=$ac_pwd$ac_dir_suffix
1471# for backward compatibility:
1472ac_top_builddir=$ac_top_build_prefix
1473
1474case $srcdir in
1475  .)  # We are building in place.
1476    ac_srcdir=.
1477    ac_top_srcdir=$ac_top_builddir_sub
1478    ac_abs_top_srcdir=$ac_pwd ;;
1479  [\\/]* | ?:[\\/]* )  # Absolute name.
1480    ac_srcdir=$srcdir$ac_dir_suffix;
1481    ac_top_srcdir=$srcdir
1482    ac_abs_top_srcdir=$srcdir ;;
1483  *) # Relative name.
1484    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1485    ac_top_srcdir=$ac_top_build_prefix$srcdir
1486    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1487esac
1488ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1489
1490    cd "$ac_dir" || { ac_status=$?; continue; }
1491    # Check for guested configure.
1492    if test -f "$ac_srcdir/configure.gnu"; then
1493      echo &&
1494      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1495    elif test -f "$ac_srcdir/configure"; then
1496      echo &&
1497      $SHELL "$ac_srcdir/configure" --help=recursive
1498    else
1499      $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1500    fi || ac_status=$?
1501    cd "$ac_pwd" || { ac_status=$?; break; }
1502  done
1503fi
1504
1505test -n "$ac_init_help" && exit $ac_status
1506if $ac_init_version; then
1507  cat <<\_ACEOF
1508sqlite configure 3.7.2
1509generated by GNU Autoconf 2.69
1510
1511Copyright (C) 2012 Free Software Foundation, Inc.
1512This configure script is free software; the Free Software Foundation
1513gives unlimited permission to copy, distribute and modify it.
1514_ACEOF
1515  exit
1516fi
1517
1518## ------------------------ ##
1519## Autoconf initialization. ##
1520## ------------------------ ##
1521
1522# ac_fn_c_try_compile LINENO
1523# --------------------------
1524# Try to compile conftest.$ac_ext, and return whether this succeeded.
1525ac_fn_c_try_compile ()
1526{
1527  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1528  rm -f conftest.$ac_objext
1529  if { { ac_try="$ac_compile"
1530case "(($ac_try" in
1531  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1532  *) ac_try_echo=$ac_try;;
1533esac
1534eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1535$as_echo "$ac_try_echo"; } >&5
1536  (eval "$ac_compile") 2>conftest.err
1537  ac_status=$?
1538  if test -s conftest.err; then
1539    grep -v '^ *+' conftest.err >conftest.er1
1540    cat conftest.er1 >&5
1541    mv -f conftest.er1 conftest.err
1542  fi
1543  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1544  test $ac_status = 0; } && {
1545	 test -z "$ac_c_werror_flag" ||
1546	 test ! -s conftest.err
1547       } && test -s conftest.$ac_objext; then :
1548  ac_retval=0
1549else
1550  $as_echo "$as_me: failed program was:" >&5
1551sed 's/^/| /' conftest.$ac_ext >&5
1552
1553	ac_retval=1
1554fi
1555  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1556  as_fn_set_status $ac_retval
1557
1558} # ac_fn_c_try_compile
1559
1560# ac_fn_c_try_link LINENO
1561# -----------------------
1562# Try to link conftest.$ac_ext, and return whether this succeeded.
1563ac_fn_c_try_link ()
1564{
1565  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1566  rm -f conftest.$ac_objext conftest$ac_exeext
1567  if { { ac_try="$ac_link"
1568case "(($ac_try" in
1569  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1570  *) ac_try_echo=$ac_try;;
1571esac
1572eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1573$as_echo "$ac_try_echo"; } >&5
1574  (eval "$ac_link") 2>conftest.err
1575  ac_status=$?
1576  if test -s conftest.err; then
1577    grep -v '^ *+' conftest.err >conftest.er1
1578    cat conftest.er1 >&5
1579    mv -f conftest.er1 conftest.err
1580  fi
1581  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1582  test $ac_status = 0; } && {
1583	 test -z "$ac_c_werror_flag" ||
1584	 test ! -s conftest.err
1585       } && test -s conftest$ac_exeext && {
1586	 test "$cross_compiling" = yes ||
1587	 test -x conftest$ac_exeext
1588       }; then :
1589  ac_retval=0
1590else
1591  $as_echo "$as_me: failed program was:" >&5
1592sed 's/^/| /' conftest.$ac_ext >&5
1593
1594	ac_retval=1
1595fi
1596  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1597  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1598  # interfere with the next link command; also delete a directory that is
1599  # left behind by Apple's compiler.  We do this before executing the actions.
1600  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1601  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1602  as_fn_set_status $ac_retval
1603
1604} # ac_fn_c_try_link
1605
1606# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1607# -------------------------------------------------------
1608# Tests whether HEADER exists and can be compiled using the include files in
1609# INCLUDES, setting the cache variable VAR accordingly.
1610ac_fn_c_check_header_compile ()
1611{
1612  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1613  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1614$as_echo_n "checking for $2... " >&6; }
1615if eval \${$3+:} false; then :
1616  $as_echo_n "(cached) " >&6
1617else
1618  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1619/* end confdefs.h.  */
1620$4
1621#include <$2>
1622_ACEOF
1623if ac_fn_c_try_compile "$LINENO"; then :
1624  eval "$3=yes"
1625else
1626  eval "$3=no"
1627fi
1628rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1629fi
1630eval ac_res=\$$3
1631	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1632$as_echo "$ac_res" >&6; }
1633  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1634
1635} # ac_fn_c_check_header_compile
1636
1637# ac_fn_c_try_cpp LINENO
1638# ----------------------
1639# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1640ac_fn_c_try_cpp ()
1641{
1642  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1643  if { { ac_try="$ac_cpp conftest.$ac_ext"
1644case "(($ac_try" in
1645  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1646  *) ac_try_echo=$ac_try;;
1647esac
1648eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1649$as_echo "$ac_try_echo"; } >&5
1650  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1651  ac_status=$?
1652  if test -s conftest.err; then
1653    grep -v '^ *+' conftest.err >conftest.er1
1654    cat conftest.er1 >&5
1655    mv -f conftest.er1 conftest.err
1656  fi
1657  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1658  test $ac_status = 0; } > conftest.i && {
1659	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1660	 test ! -s conftest.err
1661       }; then :
1662  ac_retval=0
1663else
1664  $as_echo "$as_me: failed program was:" >&5
1665sed 's/^/| /' conftest.$ac_ext >&5
1666
1667    ac_retval=1
1668fi
1669  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1670  as_fn_set_status $ac_retval
1671
1672} # ac_fn_c_try_cpp
1673
1674# ac_fn_c_try_run LINENO
1675# ----------------------
1676# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1677# that executables *can* be run.
1678ac_fn_c_try_run ()
1679{
1680  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1681  if { { ac_try="$ac_link"
1682case "(($ac_try" in
1683  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1684  *) ac_try_echo=$ac_try;;
1685esac
1686eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1687$as_echo "$ac_try_echo"; } >&5
1688  (eval "$ac_link") 2>&5
1689  ac_status=$?
1690  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1691  test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1692  { { case "(($ac_try" in
1693  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1694  *) ac_try_echo=$ac_try;;
1695esac
1696eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1697$as_echo "$ac_try_echo"; } >&5
1698  (eval "$ac_try") 2>&5
1699  ac_status=$?
1700  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1701  test $ac_status = 0; }; }; then :
1702  ac_retval=0
1703else
1704  $as_echo "$as_me: program exited with status $ac_status" >&5
1705       $as_echo "$as_me: failed program was:" >&5
1706sed 's/^/| /' conftest.$ac_ext >&5
1707
1708       ac_retval=$ac_status
1709fi
1710  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1711  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1712  as_fn_set_status $ac_retval
1713
1714} # ac_fn_c_try_run
1715
1716# ac_fn_c_check_func LINENO FUNC VAR
1717# ----------------------------------
1718# Tests whether FUNC exists, setting the cache variable VAR accordingly
1719ac_fn_c_check_func ()
1720{
1721  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1722  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1723$as_echo_n "checking for $2... " >&6; }
1724if eval \${$3+:} false; then :
1725  $as_echo_n "(cached) " >&6
1726else
1727  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1728/* end confdefs.h.  */
1729/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1730   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
1731#define $2 innocuous_$2
1732
1733/* System header to define __stub macros and hopefully few prototypes,
1734    which can conflict with char $2 (); below.
1735    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1736    <limits.h> exists even on freestanding compilers.  */
1737
1738#ifdef __STDC__
1739# include <limits.h>
1740#else
1741# include <assert.h>
1742#endif
1743
1744#undef $2
1745
1746/* Override any GCC internal prototype to avoid an error.
1747   Use char because int might match the return type of a GCC
1748   builtin and then its argument prototype would still apply.  */
1749#ifdef __cplusplus
1750extern "C"
1751#endif
1752char $2 ();
1753/* The GNU C library defines this for functions which it implements
1754    to always fail with ENOSYS.  Some functions are actually named
1755    something starting with __ and the normal name is an alias.  */
1756#if defined __stub_$2 || defined __stub___$2
1757choke me
1758#endif
1759
1760int
1761main ()
1762{
1763return $2 ();
1764  ;
1765  return 0;
1766}
1767_ACEOF
1768if ac_fn_c_try_link "$LINENO"; then :
1769  eval "$3=yes"
1770else
1771  eval "$3=no"
1772fi
1773rm -f core conftest.err conftest.$ac_objext \
1774    conftest$ac_exeext conftest.$ac_ext
1775fi
1776eval ac_res=\$$3
1777	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1778$as_echo "$ac_res" >&6; }
1779  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1780
1781} # ac_fn_c_check_func
1782cat >config.log <<_ACEOF
1783This file contains any messages produced by compilers while
1784running configure, to aid debugging if configure makes a mistake.
1785
1786It was created by sqlite $as_me 3.7.2, which was
1787generated by GNU Autoconf 2.69.  Invocation command line was
1788
1789  $ $0 $@
1790
1791_ACEOF
1792exec 5>>config.log
1793{
1794cat <<_ASUNAME
1795## --------- ##
1796## Platform. ##
1797## --------- ##
1798
1799hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1800uname -m = `(uname -m) 2>/dev/null || echo unknown`
1801uname -r = `(uname -r) 2>/dev/null || echo unknown`
1802uname -s = `(uname -s) 2>/dev/null || echo unknown`
1803uname -v = `(uname -v) 2>/dev/null || echo unknown`
1804
1805/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1806/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1807
1808/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1809/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1810/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1811/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1812/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1813/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1814/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1815
1816_ASUNAME
1817
1818as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1819for as_dir in $PATH
1820do
1821  IFS=$as_save_IFS
1822  test -z "$as_dir" && as_dir=.
1823    $as_echo "PATH: $as_dir"
1824  done
1825IFS=$as_save_IFS
1826
1827} >&5
1828
1829cat >&5 <<_ACEOF
1830
1831
1832## ----------- ##
1833## Core tests. ##
1834## ----------- ##
1835
1836_ACEOF
1837
1838
1839# Keep a trace of the command line.
1840# Strip out --no-create and --no-recursion so they do not pile up.
1841# Strip out --silent because we don't want to record it for future runs.
1842# Also quote any args containing shell meta-characters.
1843# Make two passes to allow for proper duplicate-argument suppression.
1844ac_configure_args=
1845ac_configure_args0=
1846ac_configure_args1=
1847ac_must_keep_next=false
1848for ac_pass in 1 2
1849do
1850  for ac_arg
1851  do
1852    case $ac_arg in
1853    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1854    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1855    | -silent | --silent | --silen | --sile | --sil)
1856      continue ;;
1857    *\'*)
1858      ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1859    esac
1860    case $ac_pass in
1861    1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1862    2)
1863      as_fn_append ac_configure_args1 " '$ac_arg'"
1864      if test $ac_must_keep_next = true; then
1865	ac_must_keep_next=false # Got value, back to normal.
1866      else
1867	case $ac_arg in
1868	  *=* | --config-cache | -C | -disable-* | --disable-* \
1869	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1870	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1871	  | -with-* | --with-* | -without-* | --without-* | --x)
1872	    case "$ac_configure_args0 " in
1873	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1874	    esac
1875	    ;;
1876	  -* ) ac_must_keep_next=true ;;
1877	esac
1878      fi
1879      as_fn_append ac_configure_args " '$ac_arg'"
1880      ;;
1881    esac
1882  done
1883done
1884{ ac_configure_args0=; unset ac_configure_args0;}
1885{ ac_configure_args1=; unset ac_configure_args1;}
1886
1887# When interrupted or exit'd, cleanup temporary files, and complete
1888# config.log.  We remove comments because anyway the quotes in there
1889# would cause problems or look ugly.
1890# WARNING: Use '\'' to represent an apostrophe within the trap.
1891# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1892trap 'exit_status=$?
1893  # Save into config.log some information that might help in debugging.
1894  {
1895    echo
1896
1897    $as_echo "## ---------------- ##
1898## Cache variables. ##
1899## ---------------- ##"
1900    echo
1901    # The following way of writing the cache mishandles newlines in values,
1902(
1903  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1904    eval ac_val=\$$ac_var
1905    case $ac_val in #(
1906    *${as_nl}*)
1907      case $ac_var in #(
1908      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
1909$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1910      esac
1911      case $ac_var in #(
1912      _ | IFS | as_nl) ;; #(
1913      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1914      *) { eval $ac_var=; unset $ac_var;} ;;
1915      esac ;;
1916    esac
1917  done
1918  (set) 2>&1 |
1919    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1920    *${as_nl}ac_space=\ *)
1921      sed -n \
1922	"s/'\''/'\''\\\\'\'''\''/g;
1923	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1924      ;; #(
1925    *)
1926      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1927      ;;
1928    esac |
1929    sort
1930)
1931    echo
1932
1933    $as_echo "## ----------------- ##
1934## Output variables. ##
1935## ----------------- ##"
1936    echo
1937    for ac_var in $ac_subst_vars
1938    do
1939      eval ac_val=\$$ac_var
1940      case $ac_val in
1941      *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1942      esac
1943      $as_echo "$ac_var='\''$ac_val'\''"
1944    done | sort
1945    echo
1946
1947    if test -n "$ac_subst_files"; then
1948      $as_echo "## ------------------- ##
1949## File substitutions. ##
1950## ------------------- ##"
1951      echo
1952      for ac_var in $ac_subst_files
1953      do
1954	eval ac_val=\$$ac_var
1955	case $ac_val in
1956	*\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1957	esac
1958	$as_echo "$ac_var='\''$ac_val'\''"
1959      done | sort
1960      echo
1961    fi
1962
1963    if test -s confdefs.h; then
1964      $as_echo "## ----------- ##
1965## confdefs.h. ##
1966## ----------- ##"
1967      echo
1968      cat confdefs.h
1969      echo
1970    fi
1971    test "$ac_signal" != 0 &&
1972      $as_echo "$as_me: caught signal $ac_signal"
1973    $as_echo "$as_me: exit $exit_status"
1974  } >&5
1975  rm -f core *.core core.conftest.* &&
1976    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1977    exit $exit_status
1978' 0
1979for ac_signal in 1 2 13 15; do
1980  trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
1981done
1982ac_signal=0
1983
1984# confdefs.h avoids OS command line length limits that DEFS can exceed.
1985rm -f -r conftest* confdefs.h
1986
1987$as_echo "/* confdefs.h */" > confdefs.h
1988
1989# Predefined preprocessor variables.
1990
1991cat >>confdefs.h <<_ACEOF
1992#define PACKAGE_NAME "$PACKAGE_NAME"
1993_ACEOF
1994
1995cat >>confdefs.h <<_ACEOF
1996#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1997_ACEOF
1998
1999cat >>confdefs.h <<_ACEOF
2000#define PACKAGE_VERSION "$PACKAGE_VERSION"
2001_ACEOF
2002
2003cat >>confdefs.h <<_ACEOF
2004#define PACKAGE_STRING "$PACKAGE_STRING"
2005_ACEOF
2006
2007cat >>confdefs.h <<_ACEOF
2008#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2009_ACEOF
2010
2011cat >>confdefs.h <<_ACEOF
2012#define PACKAGE_URL "$PACKAGE_URL"
2013_ACEOF
2014
2015
2016# Let the site file select an alternate cache file if it wants to.
2017# Prefer an explicitly selected file to automatically selected ones.
2018ac_site_file1=NONE
2019ac_site_file2=NONE
2020if test -n "$CONFIG_SITE"; then
2021  # We do not want a PATH search for config.site.
2022  case $CONFIG_SITE in #((
2023    -*)  ac_site_file1=./$CONFIG_SITE;;
2024    */*) ac_site_file1=$CONFIG_SITE;;
2025    *)   ac_site_file1=./$CONFIG_SITE;;
2026  esac
2027elif test "x$prefix" != xNONE; then
2028  ac_site_file1=$prefix/share/config.site
2029  ac_site_file2=$prefix/etc/config.site
2030else
2031  ac_site_file1=$ac_default_prefix/share/config.site
2032  ac_site_file2=$ac_default_prefix/etc/config.site
2033fi
2034for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2035do
2036  test "x$ac_site_file" = xNONE && continue
2037  if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2038    { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2039$as_echo "$as_me: loading site script $ac_site_file" >&6;}
2040    sed 's/^/| /' "$ac_site_file" >&5
2041    . "$ac_site_file" \
2042      || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2043$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2044as_fn_error $? "failed to load site script $ac_site_file
2045See \`config.log' for more details" "$LINENO" 5; }
2046  fi
2047done
2048
2049if test -r "$cache_file"; then
2050  # Some versions of bash will fail to source /dev/null (special files
2051  # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2052  if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2053    { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2054$as_echo "$as_me: loading cache $cache_file" >&6;}
2055    case $cache_file in
2056      [\\/]* | ?:[\\/]* ) . "$cache_file";;
2057      *)                      . "./$cache_file";;
2058    esac
2059  fi
2060else
2061  { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2062$as_echo "$as_me: creating cache $cache_file" >&6;}
2063  >$cache_file
2064fi
2065
2066# Check that the precious variables saved in the cache have kept the same
2067# value.
2068ac_cache_corrupted=false
2069for ac_var in $ac_precious_vars; do
2070  eval ac_old_set=\$ac_cv_env_${ac_var}_set
2071  eval ac_new_set=\$ac_env_${ac_var}_set
2072  eval ac_old_val=\$ac_cv_env_${ac_var}_value
2073  eval ac_new_val=\$ac_env_${ac_var}_value
2074  case $ac_old_set,$ac_new_set in
2075    set,)
2076      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2077$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2078      ac_cache_corrupted=: ;;
2079    ,set)
2080      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2081$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2082      ac_cache_corrupted=: ;;
2083    ,);;
2084    *)
2085      if test "x$ac_old_val" != "x$ac_new_val"; then
2086	# differences in whitespace do not lead to failure.
2087	ac_old_val_w=`echo x $ac_old_val`
2088	ac_new_val_w=`echo x $ac_new_val`
2089	if test "$ac_old_val_w" != "$ac_new_val_w"; then
2090	  { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2091$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2092	  ac_cache_corrupted=:
2093	else
2094	  { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2095$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2096	  eval $ac_var=\$ac_old_val
2097	fi
2098	{ $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2099$as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2100	{ $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2101$as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2102      fi;;
2103  esac
2104  # Pass precious variables to config.status.
2105  if test "$ac_new_set" = set; then
2106    case $ac_new_val in
2107    *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2108    *) ac_arg=$ac_var=$ac_new_val ;;
2109    esac
2110    case " $ac_configure_args " in
2111      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2112      *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2113    esac
2114  fi
2115done
2116if $ac_cache_corrupted; then
2117  { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2118$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2119  { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2120$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2121  as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2122fi
2123## -------------------- ##
2124## Main body of script. ##
2125## -------------------- ##
2126
2127ac_ext=c
2128ac_cpp='$CPP $CPPFLAGS'
2129ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2130ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2131ac_compiler_gnu=$ac_cv_c_compiler_gnu
2132
2133
2134
2135
2136# Use automake.
2137am__api_version='1.14'
2138
2139ac_aux_dir=
2140for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2141  if test -f "$ac_dir/install-sh"; then
2142    ac_aux_dir=$ac_dir
2143    ac_install_sh="$ac_aux_dir/install-sh -c"
2144    break
2145  elif test -f "$ac_dir/install.sh"; then
2146    ac_aux_dir=$ac_dir
2147    ac_install_sh="$ac_aux_dir/install.sh -c"
2148    break
2149  elif test -f "$ac_dir/shtool"; then
2150    ac_aux_dir=$ac_dir
2151    ac_install_sh="$ac_aux_dir/shtool install -c"
2152    break
2153  fi
2154done
2155if test -z "$ac_aux_dir"; then
2156  as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2157fi
2158
2159# These three variables are undocumented and unsupported,
2160# and are intended to be withdrawn in a future Autoconf release.
2161# They can cause serious problems if a builder's source tree is in a directory
2162# whose full name contains unusual characters.
2163ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2164ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2165ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2166
2167
2168# Find a good install program.  We prefer a C program (faster),
2169# so one script is as good as another.  But avoid the broken or
2170# incompatible versions:
2171# SysV /etc/install, /usr/sbin/install
2172# SunOS /usr/etc/install
2173# IRIX /sbin/install
2174# AIX /bin/install
2175# AmigaOS /C/install, which installs bootblocks on floppy discs
2176# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2177# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2178# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2179# OS/2's system install, which has a completely different semantic
2180# ./install, which can be erroneously created by make from ./install.sh.
2181# Reject install programs that cannot install multiple files.
2182{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2183$as_echo_n "checking for a BSD-compatible install... " >&6; }
2184if test -z "$INSTALL"; then
2185if ${ac_cv_path_install+:} false; then :
2186  $as_echo_n "(cached) " >&6
2187else
2188  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2189for as_dir in $PATH
2190do
2191  IFS=$as_save_IFS
2192  test -z "$as_dir" && as_dir=.
2193    # Account for people who put trailing slashes in PATH elements.
2194case $as_dir/ in #((
2195  ./ | .// | /[cC]/* | \
2196  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2197  ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2198  /usr/ucb/* ) ;;
2199  *)
2200    # OSF1 and SCO ODT 3.0 have their own names for install.
2201    # Don't use installbsd from OSF since it installs stuff as root
2202    # by default.
2203    for ac_prog in ginstall scoinst install; do
2204      for ac_exec_ext in '' $ac_executable_extensions; do
2205	if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2206	  if test $ac_prog = install &&
2207	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2208	    # AIX install.  It has an incompatible calling convention.
2209	    :
2210	  elif test $ac_prog = install &&
2211	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2212	    # program-specific install script used by HP pwplus--don't use.
2213	    :
2214	  else
2215	    rm -rf conftest.one conftest.two conftest.dir
2216	    echo one > conftest.one
2217	    echo two > conftest.two
2218	    mkdir conftest.dir
2219	    if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2220	      test -s conftest.one && test -s conftest.two &&
2221	      test -s conftest.dir/conftest.one &&
2222	      test -s conftest.dir/conftest.two
2223	    then
2224	      ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2225	      break 3
2226	    fi
2227	  fi
2228	fi
2229      done
2230    done
2231    ;;
2232esac
2233
2234  done
2235IFS=$as_save_IFS
2236
2237rm -rf conftest.one conftest.two conftest.dir
2238
2239fi
2240  if test "${ac_cv_path_install+set}" = set; then
2241    INSTALL=$ac_cv_path_install
2242  else
2243    # As a last resort, use the slow shell script.  Don't cache a
2244    # value for INSTALL within a source directory, because that will
2245    # break other packages using the cache if that directory is
2246    # removed, or if the value is a relative name.
2247    INSTALL=$ac_install_sh
2248  fi
2249fi
2250{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2251$as_echo "$INSTALL" >&6; }
2252
2253# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2254# It thinks the first close brace ends the variable substitution.
2255test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2256
2257test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2258
2259test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2260
2261{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2262$as_echo_n "checking whether build environment is sane... " >&6; }
2263# Reject unsafe characters in $srcdir or the absolute working directory
2264# name.  Accept space and tab only in the latter.
2265am_lf='
2266'
2267case `pwd` in
2268  *[\\\"\#\$\&\'\`$am_lf]*)
2269    as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2270esac
2271case $srcdir in
2272  *[\\\"\#\$\&\'\`$am_lf\ \	]*)
2273    as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2274esac
2275
2276# Do 'set' in a subshell so we don't clobber the current shell's
2277# arguments.  Must try -L first in case configure is actually a
2278# symlink; some systems play weird games with the mod time of symlinks
2279# (eg FreeBSD returns the mod time of the symlink's containing
2280# directory).
2281if (
2282   am_has_slept=no
2283   for am_try in 1 2; do
2284     echo "timestamp, slept: $am_has_slept" > conftest.file
2285     set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2286     if test "$*" = "X"; then
2287	# -L didn't work.
2288	set X `ls -t "$srcdir/configure" conftest.file`
2289     fi
2290     if test "$*" != "X $srcdir/configure conftest.file" \
2291	&& test "$*" != "X conftest.file $srcdir/configure"; then
2292
2293	# If neither matched, then we have a broken ls.  This can happen
2294	# if, for instance, CONFIG_SHELL is bash and it inherits a
2295	# broken ls alias from the environment.  This has actually
2296	# happened.  Such a system could not be considered "sane".
2297	as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
2298  alias in your environment" "$LINENO" 5
2299     fi
2300     if test "$2" = conftest.file || test $am_try -eq 2; then
2301       break
2302     fi
2303     # Just in case.
2304     sleep 1
2305     am_has_slept=yes
2306   done
2307   test "$2" = conftest.file
2308   )
2309then
2310   # Ok.
2311   :
2312else
2313   as_fn_error $? "newly created file is older than distributed files!
2314Check your system clock" "$LINENO" 5
2315fi
2316{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2317$as_echo "yes" >&6; }
2318# If we didn't sleep, we still need to ensure time stamps of config.status and
2319# generated files are strictly newer.
2320am_sleep_pid=
2321if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2322  ( sleep 1 ) &
2323  am_sleep_pid=$!
2324fi
2325
2326rm -f conftest.file
2327
2328test "$program_prefix" != NONE &&
2329  program_transform_name="s&^&$program_prefix&;$program_transform_name"
2330# Use a double $ so make ignores it.
2331test "$program_suffix" != NONE &&
2332  program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2333# Double any \ or $.
2334# By default was `s,x,x', remove it if useless.
2335ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2336program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2337
2338# expand $ac_aux_dir to an absolute path
2339am_aux_dir=`cd $ac_aux_dir && pwd`
2340
2341if test x"${MISSING+set}" != xset; then
2342  case $am_aux_dir in
2343  *\ * | *\	*)
2344    MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2345  *)
2346    MISSING="\${SHELL} $am_aux_dir/missing" ;;
2347  esac
2348fi
2349# Use eval to expand $SHELL
2350if eval "$MISSING --is-lightweight"; then
2351  am_missing_run="$MISSING "
2352else
2353  am_missing_run=
2354  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2355$as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
2356fi
2357
2358if test x"${install_sh}" != xset; then
2359  case $am_aux_dir in
2360  *\ * | *\	*)
2361    install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2362  *)
2363    install_sh="\${SHELL} $am_aux_dir/install-sh"
2364  esac
2365fi
2366
2367# Installed binaries are usually stripped using 'strip' when the user
2368# run "make install-strip".  However 'strip' might not be the right
2369# tool to use in cross-compilation environments, therefore Automake
2370# will honor the 'STRIP' environment variable to overrule this program.
2371if test "$cross_compiling" != no; then
2372  if test -n "$ac_tool_prefix"; then
2373  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2374set dummy ${ac_tool_prefix}strip; ac_word=$2
2375{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2376$as_echo_n "checking for $ac_word... " >&6; }
2377if ${ac_cv_prog_STRIP+:} false; then :
2378  $as_echo_n "(cached) " >&6
2379else
2380  if test -n "$STRIP"; then
2381  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2382else
2383as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2384for as_dir in $PATH
2385do
2386  IFS=$as_save_IFS
2387  test -z "$as_dir" && as_dir=.
2388    for ac_exec_ext in '' $ac_executable_extensions; do
2389  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2390    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2391    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2392    break 2
2393  fi
2394done
2395  done
2396IFS=$as_save_IFS
2397
2398fi
2399fi
2400STRIP=$ac_cv_prog_STRIP
2401if test -n "$STRIP"; then
2402  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2403$as_echo "$STRIP" >&6; }
2404else
2405  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2406$as_echo "no" >&6; }
2407fi
2408
2409
2410fi
2411if test -z "$ac_cv_prog_STRIP"; then
2412  ac_ct_STRIP=$STRIP
2413  # Extract the first word of "strip", so it can be a program name with args.
2414set dummy strip; ac_word=$2
2415{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2416$as_echo_n "checking for $ac_word... " >&6; }
2417if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2418  $as_echo_n "(cached) " >&6
2419else
2420  if test -n "$ac_ct_STRIP"; then
2421  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2422else
2423as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2424for as_dir in $PATH
2425do
2426  IFS=$as_save_IFS
2427  test -z "$as_dir" && as_dir=.
2428    for ac_exec_ext in '' $ac_executable_extensions; do
2429  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2430    ac_cv_prog_ac_ct_STRIP="strip"
2431    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2432    break 2
2433  fi
2434done
2435  done
2436IFS=$as_save_IFS
2437
2438fi
2439fi
2440ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2441if test -n "$ac_ct_STRIP"; then
2442  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2443$as_echo "$ac_ct_STRIP" >&6; }
2444else
2445  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2446$as_echo "no" >&6; }
2447fi
2448
2449  if test "x$ac_ct_STRIP" = x; then
2450    STRIP=":"
2451  else
2452    case $cross_compiling:$ac_tool_warned in
2453yes:)
2454{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2455$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2456ac_tool_warned=yes ;;
2457esac
2458    STRIP=$ac_ct_STRIP
2459  fi
2460else
2461  STRIP="$ac_cv_prog_STRIP"
2462fi
2463
2464fi
2465INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2466
2467{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2468$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2469if test -z "$MKDIR_P"; then
2470  if ${ac_cv_path_mkdir+:} false; then :
2471  $as_echo_n "(cached) " >&6
2472else
2473  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2474for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2475do
2476  IFS=$as_save_IFS
2477  test -z "$as_dir" && as_dir=.
2478    for ac_prog in mkdir gmkdir; do
2479	 for ac_exec_ext in '' $ac_executable_extensions; do
2480	   as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
2481	   case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2482	     'mkdir (GNU coreutils) '* | \
2483	     'mkdir (coreutils) '* | \
2484	     'mkdir (fileutils) '4.1*)
2485	       ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2486	       break 3;;
2487	   esac
2488	 done
2489       done
2490  done
2491IFS=$as_save_IFS
2492
2493fi
2494
2495  test -d ./--version && rmdir ./--version
2496  if test "${ac_cv_path_mkdir+set}" = set; then
2497    MKDIR_P="$ac_cv_path_mkdir -p"
2498  else
2499    # As a last resort, use the slow shell script.  Don't cache a
2500    # value for MKDIR_P within a source directory, because that will
2501    # break other packages using the cache if that directory is
2502    # removed, or if the value is a relative name.
2503    MKDIR_P="$ac_install_sh -d"
2504  fi
2505fi
2506{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2507$as_echo "$MKDIR_P" >&6; }
2508
2509for ac_prog in gawk mawk nawk awk
2510do
2511  # Extract the first word of "$ac_prog", so it can be a program name with args.
2512set dummy $ac_prog; ac_word=$2
2513{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2514$as_echo_n "checking for $ac_word... " >&6; }
2515if ${ac_cv_prog_AWK+:} false; then :
2516  $as_echo_n "(cached) " >&6
2517else
2518  if test -n "$AWK"; then
2519  ac_cv_prog_AWK="$AWK" # Let the user override the test.
2520else
2521as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2522for as_dir in $PATH
2523do
2524  IFS=$as_save_IFS
2525  test -z "$as_dir" && as_dir=.
2526    for ac_exec_ext in '' $ac_executable_extensions; do
2527  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2528    ac_cv_prog_AWK="$ac_prog"
2529    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2530    break 2
2531  fi
2532done
2533  done
2534IFS=$as_save_IFS
2535
2536fi
2537fi
2538AWK=$ac_cv_prog_AWK
2539if test -n "$AWK"; then
2540  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2541$as_echo "$AWK" >&6; }
2542else
2543  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2544$as_echo "no" >&6; }
2545fi
2546
2547
2548  test -n "$AWK" && break
2549done
2550
2551{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2552$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2553set x ${MAKE-make}
2554ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2555if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2556  $as_echo_n "(cached) " >&6
2557else
2558  cat >conftest.make <<\_ACEOF
2559SHELL = /bin/sh
2560all:
2561	@echo '@@@%%%=$(MAKE)=@@@%%%'
2562_ACEOF
2563# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2564case `${MAKE-make} -f conftest.make 2>/dev/null` in
2565  *@@@%%%=?*=@@@%%%*)
2566    eval ac_cv_prog_make_${ac_make}_set=yes;;
2567  *)
2568    eval ac_cv_prog_make_${ac_make}_set=no;;
2569esac
2570rm -f conftest.make
2571fi
2572if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2573  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2574$as_echo "yes" >&6; }
2575  SET_MAKE=
2576else
2577  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2578$as_echo "no" >&6; }
2579  SET_MAKE="MAKE=${MAKE-make}"
2580fi
2581
2582rm -rf .tst 2>/dev/null
2583mkdir .tst 2>/dev/null
2584if test -d .tst; then
2585  am__leading_dot=.
2586else
2587  am__leading_dot=_
2588fi
2589rmdir .tst 2>/dev/null
2590
2591# Check whether --enable-silent-rules was given.
2592if test "${enable_silent_rules+set}" = set; then :
2593  enableval=$enable_silent_rules;
2594fi
2595
2596case $enable_silent_rules in # (((
2597  yes) AM_DEFAULT_VERBOSITY=0;;
2598   no) AM_DEFAULT_VERBOSITY=1;;
2599    *) AM_DEFAULT_VERBOSITY=1;;
2600esac
2601am_make=${MAKE-make}
2602{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
2603$as_echo_n "checking whether $am_make supports nested variables... " >&6; }
2604if ${am_cv_make_support_nested_variables+:} false; then :
2605  $as_echo_n "(cached) " >&6
2606else
2607  if $as_echo 'TRUE=$(BAR$(V))
2608BAR0=false
2609BAR1=true
2610V=1
2611am__doit:
2612	@$(TRUE)
2613.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
2614  am_cv_make_support_nested_variables=yes
2615else
2616  am_cv_make_support_nested_variables=no
2617fi
2618fi
2619{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
2620$as_echo "$am_cv_make_support_nested_variables" >&6; }
2621if test $am_cv_make_support_nested_variables = yes; then
2622    AM_V='$(V)'
2623  AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
2624else
2625  AM_V=$AM_DEFAULT_VERBOSITY
2626  AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
2627fi
2628AM_BACKSLASH='\'
2629
2630if test "`cd $srcdir && pwd`" != "`pwd`"; then
2631  # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2632  # is not polluted with repeated "-I."
2633  am__isrc=' -I$(srcdir)'
2634  # test to see if srcdir already configured
2635  if test -f $srcdir/config.status; then
2636    as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2637  fi
2638fi
2639
2640# test whether we have cygpath
2641if test -z "$CYGPATH_W"; then
2642  if (cygpath --version) >/dev/null 2>/dev/null; then
2643    CYGPATH_W='cygpath -w'
2644  else
2645    CYGPATH_W=echo
2646  fi
2647fi
2648
2649
2650# Define the identity of the package.
2651 PACKAGE='sqlite'
2652 VERSION='3.7.2'
2653
2654
2655cat >>confdefs.h <<_ACEOF
2656#define PACKAGE "$PACKAGE"
2657_ACEOF
2658
2659
2660cat >>confdefs.h <<_ACEOF
2661#define VERSION "$VERSION"
2662_ACEOF
2663
2664# Some tools Automake needs.
2665
2666ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2667
2668
2669AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2670
2671
2672AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2673
2674
2675AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2676
2677
2678MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2679
2680# For better backward compatibility.  To be removed once Automake 1.9.x
2681# dies out for good.  For more background, see:
2682# <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
2683# <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
2684mkdir_p='$(MKDIR_P)'
2685
2686# We need awk for the "check" target.  The system "awk" is bad on
2687# some platforms.
2688# Always define AMTAR for backward compatibility.  Yes, it's still used
2689# in the wild :-(  We should find a proper way to deprecate it ...
2690AMTAR='$${TAR-tar}'
2691
2692
2693# We'll loop over all known methods to create a tar archive until one works.
2694_am_tools='gnutar  pax cpio none'
2695
2696am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
2697
2698
2699
2700
2701
2702
2703# POSIX will say in a future version that running "rm -f" with no argument
2704# is OK; and we want to be able to make that assumption in our Makefile
2705# recipes.  So use an aggressive probe to check that the usage we want is
2706# actually supported "in the wild" to an acceptable degree.
2707# See automake bug#10828.
2708# To make any issue more visible, cause the running configure to be aborted
2709# by default if the 'rm' program in use doesn't match our expectations; the
2710# user can still override this though.
2711if rm -f && rm -fr && rm -rf; then : OK; else
2712  cat >&2 <<'END'
2713Oops!
2714
2715Your 'rm' program seems unable to run without file operands specified
2716on the command line, even when the '-f' option is present.  This is contrary
2717to the behaviour of most rm programs out there, and not conforming with
2718the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
2719
2720Please tell bug-automake@gnu.org about your system, including the value
2721of your $PATH and any error possibly output before this message.  This
2722can help us improve future automake versions.
2723
2724END
2725  if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
2726    echo 'Configuration will proceed anyway, since you have set the' >&2
2727    echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
2728    echo >&2
2729  else
2730    cat >&2 <<'END'
2731Aborting the configuration process, to ensure you take notice of the issue.
2732
2733You can download and install GNU coreutils to get an 'rm' implementation
2734that behaves properly: <http://www.gnu.org/software/coreutils/>.
2735
2736If you want to complete the configuration process using your problematic
2737'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
2738to "yes", and re-run configure.
2739
2740END
2741    as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
2742  fi
2743fi
2744
2745{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
2746$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
2747    # Check whether --enable-maintainer-mode was given.
2748if test "${enable_maintainer_mode+set}" = set; then :
2749  enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2750else
2751  USE_MAINTAINER_MODE=no
2752fi
2753
2754  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
2755$as_echo "$USE_MAINTAINER_MODE" >&6; }
2756   if test $USE_MAINTAINER_MODE = yes; then
2757  MAINTAINER_MODE_TRUE=
2758  MAINTAINER_MODE_FALSE='#'
2759else
2760  MAINTAINER_MODE_TRUE='#'
2761  MAINTAINER_MODE_FALSE=
2762fi
2763
2764  MAINT=$MAINTAINER_MODE_TRUE
2765
2766
2767
2768DEPDIR="${am__leading_dot}deps"
2769
2770ac_config_commands="$ac_config_commands depfiles"
2771
2772
2773am_make=${MAKE-make}
2774cat > confinc << 'END'
2775am__doit:
2776	@echo this is the am__doit target
2777.PHONY: am__doit
2778END
2779# If we don't find an include directive, just comment out the code.
2780{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
2781$as_echo_n "checking for style of include used by $am_make... " >&6; }
2782am__include="#"
2783am__quote=
2784_am_result=none
2785# First try GNU make style include.
2786echo "include confinc" > confmf
2787# Ignore all kinds of additional output from 'make'.
2788case `$am_make -s -f confmf 2> /dev/null` in #(
2789*the\ am__doit\ target*)
2790  am__include=include
2791  am__quote=
2792  _am_result=GNU
2793  ;;
2794esac
2795# Now try BSD make style include.
2796if test "$am__include" = "#"; then
2797   echo '.include "confinc"' > confmf
2798   case `$am_make -s -f confmf 2> /dev/null` in #(
2799   *the\ am__doit\ target*)
2800     am__include=.include
2801     am__quote="\""
2802     _am_result=BSD
2803     ;;
2804   esac
2805fi
2806
2807
2808{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
2809$as_echo "$_am_result" >&6; }
2810rm -f confinc confmf
2811
2812# Check whether --enable-dependency-tracking was given.
2813if test "${enable_dependency_tracking+set}" = set; then :
2814  enableval=$enable_dependency_tracking;
2815fi
2816
2817if test "x$enable_dependency_tracking" != xno; then
2818  am_depcomp="$ac_aux_dir/depcomp"
2819  AMDEPBACKSLASH='\'
2820  am__nodep='_no'
2821fi
2822 if test "x$enable_dependency_tracking" != xno; then
2823  AMDEP_TRUE=
2824  AMDEP_FALSE='#'
2825else
2826  AMDEP_TRUE='#'
2827  AMDEP_FALSE=
2828fi
2829
2830
2831ac_ext=c
2832ac_cpp='$CPP $CPPFLAGS'
2833ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2834ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2835ac_compiler_gnu=$ac_cv_c_compiler_gnu
2836if test -n "$ac_tool_prefix"; then
2837  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2838set dummy ${ac_tool_prefix}gcc; ac_word=$2
2839{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2840$as_echo_n "checking for $ac_word... " >&6; }
2841if ${ac_cv_prog_CC+:} false; then :
2842  $as_echo_n "(cached) " >&6
2843else
2844  if test -n "$CC"; then
2845  ac_cv_prog_CC="$CC" # Let the user override the test.
2846else
2847as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2848for as_dir in $PATH
2849do
2850  IFS=$as_save_IFS
2851  test -z "$as_dir" && as_dir=.
2852    for ac_exec_ext in '' $ac_executable_extensions; do
2853  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2854    ac_cv_prog_CC="${ac_tool_prefix}gcc"
2855    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2856    break 2
2857  fi
2858done
2859  done
2860IFS=$as_save_IFS
2861
2862fi
2863fi
2864CC=$ac_cv_prog_CC
2865if test -n "$CC"; then
2866  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2867$as_echo "$CC" >&6; }
2868else
2869  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2870$as_echo "no" >&6; }
2871fi
2872
2873
2874fi
2875if test -z "$ac_cv_prog_CC"; then
2876  ac_ct_CC=$CC
2877  # Extract the first word of "gcc", so it can be a program name with args.
2878set dummy gcc; ac_word=$2
2879{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2880$as_echo_n "checking for $ac_word... " >&6; }
2881if ${ac_cv_prog_ac_ct_CC+:} false; then :
2882  $as_echo_n "(cached) " >&6
2883else
2884  if test -n "$ac_ct_CC"; then
2885  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2886else
2887as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2888for as_dir in $PATH
2889do
2890  IFS=$as_save_IFS
2891  test -z "$as_dir" && as_dir=.
2892    for ac_exec_ext in '' $ac_executable_extensions; do
2893  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2894    ac_cv_prog_ac_ct_CC="gcc"
2895    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2896    break 2
2897  fi
2898done
2899  done
2900IFS=$as_save_IFS
2901
2902fi
2903fi
2904ac_ct_CC=$ac_cv_prog_ac_ct_CC
2905if test -n "$ac_ct_CC"; then
2906  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2907$as_echo "$ac_ct_CC" >&6; }
2908else
2909  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2910$as_echo "no" >&6; }
2911fi
2912
2913  if test "x$ac_ct_CC" = x; then
2914    CC=""
2915  else
2916    case $cross_compiling:$ac_tool_warned in
2917yes:)
2918{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2919$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2920ac_tool_warned=yes ;;
2921esac
2922    CC=$ac_ct_CC
2923  fi
2924else
2925  CC="$ac_cv_prog_CC"
2926fi
2927
2928if test -z "$CC"; then
2929          if test -n "$ac_tool_prefix"; then
2930    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2931set dummy ${ac_tool_prefix}cc; ac_word=$2
2932{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2933$as_echo_n "checking for $ac_word... " >&6; }
2934if ${ac_cv_prog_CC+:} false; then :
2935  $as_echo_n "(cached) " >&6
2936else
2937  if test -n "$CC"; then
2938  ac_cv_prog_CC="$CC" # Let the user override the test.
2939else
2940as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2941for as_dir in $PATH
2942do
2943  IFS=$as_save_IFS
2944  test -z "$as_dir" && as_dir=.
2945    for ac_exec_ext in '' $ac_executable_extensions; do
2946  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2947    ac_cv_prog_CC="${ac_tool_prefix}cc"
2948    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2949    break 2
2950  fi
2951done
2952  done
2953IFS=$as_save_IFS
2954
2955fi
2956fi
2957CC=$ac_cv_prog_CC
2958if test -n "$CC"; then
2959  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2960$as_echo "$CC" >&6; }
2961else
2962  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2963$as_echo "no" >&6; }
2964fi
2965
2966
2967  fi
2968fi
2969if test -z "$CC"; then
2970  # Extract the first word of "cc", so it can be a program name with args.
2971set dummy cc; ac_word=$2
2972{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2973$as_echo_n "checking for $ac_word... " >&6; }
2974if ${ac_cv_prog_CC+:} false; then :
2975  $as_echo_n "(cached) " >&6
2976else
2977  if test -n "$CC"; then
2978  ac_cv_prog_CC="$CC" # Let the user override the test.
2979else
2980  ac_prog_rejected=no
2981as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2982for as_dir in $PATH
2983do
2984  IFS=$as_save_IFS
2985  test -z "$as_dir" && as_dir=.
2986    for ac_exec_ext in '' $ac_executable_extensions; do
2987  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2988    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2989       ac_prog_rejected=yes
2990       continue
2991     fi
2992    ac_cv_prog_CC="cc"
2993    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2994    break 2
2995  fi
2996done
2997  done
2998IFS=$as_save_IFS
2999
3000if test $ac_prog_rejected = yes; then
3001  # We found a bogon in the path, so make sure we never use it.
3002  set dummy $ac_cv_prog_CC
3003  shift
3004  if test $# != 0; then
3005    # We chose a different compiler from the bogus one.
3006    # However, it has the same basename, so the bogon will be chosen
3007    # first if we set CC to just the basename; use the full file name.
3008    shift
3009    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3010  fi
3011fi
3012fi
3013fi
3014CC=$ac_cv_prog_CC
3015if test -n "$CC"; then
3016  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3017$as_echo "$CC" >&6; }
3018else
3019  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3020$as_echo "no" >&6; }
3021fi
3022
3023
3024fi
3025if test -z "$CC"; then
3026  if test -n "$ac_tool_prefix"; then
3027  for ac_prog in cl.exe
3028  do
3029    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3030set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3031{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3032$as_echo_n "checking for $ac_word... " >&6; }
3033if ${ac_cv_prog_CC+:} false; then :
3034  $as_echo_n "(cached) " >&6
3035else
3036  if test -n "$CC"; then
3037  ac_cv_prog_CC="$CC" # Let the user override the test.
3038else
3039as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3040for as_dir in $PATH
3041do
3042  IFS=$as_save_IFS
3043  test -z "$as_dir" && as_dir=.
3044    for ac_exec_ext in '' $ac_executable_extensions; do
3045  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3046    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3047    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3048    break 2
3049  fi
3050done
3051  done
3052IFS=$as_save_IFS
3053
3054fi
3055fi
3056CC=$ac_cv_prog_CC
3057if test -n "$CC"; then
3058  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3059$as_echo "$CC" >&6; }
3060else
3061  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3062$as_echo "no" >&6; }
3063fi
3064
3065
3066    test -n "$CC" && break
3067  done
3068fi
3069if test -z "$CC"; then
3070  ac_ct_CC=$CC
3071  for ac_prog in cl.exe
3072do
3073  # Extract the first word of "$ac_prog", so it can be a program name with args.
3074set dummy $ac_prog; ac_word=$2
3075{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3076$as_echo_n "checking for $ac_word... " >&6; }
3077if ${ac_cv_prog_ac_ct_CC+:} false; then :
3078  $as_echo_n "(cached) " >&6
3079else
3080  if test -n "$ac_ct_CC"; then
3081  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3082else
3083as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3084for as_dir in $PATH
3085do
3086  IFS=$as_save_IFS
3087  test -z "$as_dir" && as_dir=.
3088    for ac_exec_ext in '' $ac_executable_extensions; do
3089  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3090    ac_cv_prog_ac_ct_CC="$ac_prog"
3091    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3092    break 2
3093  fi
3094done
3095  done
3096IFS=$as_save_IFS
3097
3098fi
3099fi
3100ac_ct_CC=$ac_cv_prog_ac_ct_CC
3101if test -n "$ac_ct_CC"; then
3102  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3103$as_echo "$ac_ct_CC" >&6; }
3104else
3105  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3106$as_echo "no" >&6; }
3107fi
3108
3109
3110  test -n "$ac_ct_CC" && break
3111done
3112
3113  if test "x$ac_ct_CC" = x; then
3114    CC=""
3115  else
3116    case $cross_compiling:$ac_tool_warned in
3117yes:)
3118{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3119$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3120ac_tool_warned=yes ;;
3121esac
3122    CC=$ac_ct_CC
3123  fi
3124fi
3125
3126fi
3127
3128
3129test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3130$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3131as_fn_error $? "no acceptable C compiler found in \$PATH
3132See \`config.log' for more details" "$LINENO" 5; }
3133
3134# Provide some information about the compiler.
3135$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3136set X $ac_compile
3137ac_compiler=$2
3138for ac_option in --version -v -V -qversion; do
3139  { { ac_try="$ac_compiler $ac_option >&5"
3140case "(($ac_try" in
3141  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3142  *) ac_try_echo=$ac_try;;
3143esac
3144eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3145$as_echo "$ac_try_echo"; } >&5
3146  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3147  ac_status=$?
3148  if test -s conftest.err; then
3149    sed '10a\
3150... rest of stderr output deleted ...
3151         10q' conftest.err >conftest.er1
3152    cat conftest.er1 >&5
3153  fi
3154  rm -f conftest.er1 conftest.err
3155  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3156  test $ac_status = 0; }
3157done
3158
3159cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3160/* end confdefs.h.  */
3161
3162int
3163main ()
3164{
3165
3166  ;
3167  return 0;
3168}
3169_ACEOF
3170ac_clean_files_save=$ac_clean_files
3171ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3172# Try to create an executable without -o first, disregard a.out.
3173# It will help us diagnose broken compilers, and finding out an intuition
3174# of exeext.
3175{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3176$as_echo_n "checking whether the C compiler works... " >&6; }
3177ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3178
3179# The possible output files:
3180ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3181
3182ac_rmfiles=
3183for ac_file in $ac_files
3184do
3185  case $ac_file in
3186    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3187    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3188  esac
3189done
3190rm -f $ac_rmfiles
3191
3192if { { ac_try="$ac_link_default"
3193case "(($ac_try" in
3194  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3195  *) ac_try_echo=$ac_try;;
3196esac
3197eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3198$as_echo "$ac_try_echo"; } >&5
3199  (eval "$ac_link_default") 2>&5
3200  ac_status=$?
3201  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3202  test $ac_status = 0; }; then :
3203  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3204# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3205# in a Makefile.  We should not override ac_cv_exeext if it was cached,
3206# so that the user can short-circuit this test for compilers unknown to
3207# Autoconf.
3208for ac_file in $ac_files ''
3209do
3210  test -f "$ac_file" || continue
3211  case $ac_file in
3212    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3213	;;
3214    [ab].out )
3215	# We found the default executable, but exeext='' is most
3216	# certainly right.
3217	break;;
3218    *.* )
3219	if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3220	then :; else
3221	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3222	fi
3223	# We set ac_cv_exeext here because the later test for it is not
3224	# safe: cross compilers may not add the suffix if given an `-o'
3225	# argument, so we may need to know it at that point already.
3226	# Even if this section looks crufty: it has the advantage of
3227	# actually working.
3228	break;;
3229    * )
3230	break;;
3231  esac
3232done
3233test "$ac_cv_exeext" = no && ac_cv_exeext=
3234
3235else
3236  ac_file=''
3237fi
3238if test -z "$ac_file"; then :
3239  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3240$as_echo "no" >&6; }
3241$as_echo "$as_me: failed program was:" >&5
3242sed 's/^/| /' conftest.$ac_ext >&5
3243
3244{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3245$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3246as_fn_error 77 "C compiler cannot create executables
3247See \`config.log' for more details" "$LINENO" 5; }
3248else
3249  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3250$as_echo "yes" >&6; }
3251fi
3252{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3253$as_echo_n "checking for C compiler default output file name... " >&6; }
3254{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3255$as_echo "$ac_file" >&6; }
3256ac_exeext=$ac_cv_exeext
3257
3258rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3259ac_clean_files=$ac_clean_files_save
3260{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3261$as_echo_n "checking for suffix of executables... " >&6; }
3262if { { ac_try="$ac_link"
3263case "(($ac_try" in
3264  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3265  *) ac_try_echo=$ac_try;;
3266esac
3267eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3268$as_echo "$ac_try_echo"; } >&5
3269  (eval "$ac_link") 2>&5
3270  ac_status=$?
3271  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3272  test $ac_status = 0; }; then :
3273  # If both `conftest.exe' and `conftest' are `present' (well, observable)
3274# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3275# work properly (i.e., refer to `conftest.exe'), while it won't with
3276# `rm'.
3277for ac_file in conftest.exe conftest conftest.*; do
3278  test -f "$ac_file" || continue
3279  case $ac_file in
3280    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3281    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3282	  break;;
3283    * ) break;;
3284  esac
3285done
3286else
3287  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3288$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3289as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3290See \`config.log' for more details" "$LINENO" 5; }
3291fi
3292rm -f conftest conftest$ac_cv_exeext
3293{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3294$as_echo "$ac_cv_exeext" >&6; }
3295
3296rm -f conftest.$ac_ext
3297EXEEXT=$ac_cv_exeext
3298ac_exeext=$EXEEXT
3299cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3300/* end confdefs.h.  */
3301#include <stdio.h>
3302int
3303main ()
3304{
3305FILE *f = fopen ("conftest.out", "w");
3306 return ferror (f) || fclose (f) != 0;
3307
3308  ;
3309  return 0;
3310}
3311_ACEOF
3312ac_clean_files="$ac_clean_files conftest.out"
3313# Check that the compiler produces executables we can run.  If not, either
3314# the compiler is broken, or we cross compile.
3315{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3316$as_echo_n "checking whether we are cross compiling... " >&6; }
3317if test "$cross_compiling" != yes; then
3318  { { ac_try="$ac_link"
3319case "(($ac_try" in
3320  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3321  *) ac_try_echo=$ac_try;;
3322esac
3323eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3324$as_echo "$ac_try_echo"; } >&5
3325  (eval "$ac_link") 2>&5
3326  ac_status=$?
3327  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3328  test $ac_status = 0; }
3329  if { ac_try='./conftest$ac_cv_exeext'
3330  { { case "(($ac_try" in
3331  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3332  *) ac_try_echo=$ac_try;;
3333esac
3334eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3335$as_echo "$ac_try_echo"; } >&5
3336  (eval "$ac_try") 2>&5
3337  ac_status=$?
3338  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3339  test $ac_status = 0; }; }; then
3340    cross_compiling=no
3341  else
3342    if test "$cross_compiling" = maybe; then
3343	cross_compiling=yes
3344    else
3345	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3346$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3347as_fn_error $? "cannot run C compiled programs.
3348If you meant to cross compile, use \`--host'.
3349See \`config.log' for more details" "$LINENO" 5; }
3350    fi
3351  fi
3352fi
3353{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3354$as_echo "$cross_compiling" >&6; }
3355
3356rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3357ac_clean_files=$ac_clean_files_save
3358{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3359$as_echo_n "checking for suffix of object files... " >&6; }
3360if ${ac_cv_objext+:} false; then :
3361  $as_echo_n "(cached) " >&6
3362else
3363  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3364/* end confdefs.h.  */
3365
3366int
3367main ()
3368{
3369
3370  ;
3371  return 0;
3372}
3373_ACEOF
3374rm -f conftest.o conftest.obj
3375if { { ac_try="$ac_compile"
3376case "(($ac_try" in
3377  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3378  *) ac_try_echo=$ac_try;;
3379esac
3380eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3381$as_echo "$ac_try_echo"; } >&5
3382  (eval "$ac_compile") 2>&5
3383  ac_status=$?
3384  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3385  test $ac_status = 0; }; then :
3386  for ac_file in conftest.o conftest.obj conftest.*; do
3387  test -f "$ac_file" || continue;
3388  case $ac_file in
3389    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3390    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3391       break;;
3392  esac
3393done
3394else
3395  $as_echo "$as_me: failed program was:" >&5
3396sed 's/^/| /' conftest.$ac_ext >&5
3397
3398{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3399$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3400as_fn_error $? "cannot compute suffix of object files: cannot compile
3401See \`config.log' for more details" "$LINENO" 5; }
3402fi
3403rm -f conftest.$ac_cv_objext conftest.$ac_ext
3404fi
3405{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3406$as_echo "$ac_cv_objext" >&6; }
3407OBJEXT=$ac_cv_objext
3408ac_objext=$OBJEXT
3409{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3410$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3411if ${ac_cv_c_compiler_gnu+:} false; then :
3412  $as_echo_n "(cached) " >&6
3413else
3414  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3415/* end confdefs.h.  */
3416
3417int
3418main ()
3419{
3420#ifndef __GNUC__
3421       choke me
3422#endif
3423
3424  ;
3425  return 0;
3426}
3427_ACEOF
3428if ac_fn_c_try_compile "$LINENO"; then :
3429  ac_compiler_gnu=yes
3430else
3431  ac_compiler_gnu=no
3432fi
3433rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3434ac_cv_c_compiler_gnu=$ac_compiler_gnu
3435
3436fi
3437{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3438$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3439if test $ac_compiler_gnu = yes; then
3440  GCC=yes
3441else
3442  GCC=
3443fi
3444ac_test_CFLAGS=${CFLAGS+set}
3445ac_save_CFLAGS=$CFLAGS
3446{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3447$as_echo_n "checking whether $CC accepts -g... " >&6; }
3448if ${ac_cv_prog_cc_g+:} false; then :
3449  $as_echo_n "(cached) " >&6
3450else
3451  ac_save_c_werror_flag=$ac_c_werror_flag
3452   ac_c_werror_flag=yes
3453   ac_cv_prog_cc_g=no
3454   CFLAGS="-g"
3455   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3456/* end confdefs.h.  */
3457
3458int
3459main ()
3460{
3461
3462  ;
3463  return 0;
3464}
3465_ACEOF
3466if ac_fn_c_try_compile "$LINENO"; then :
3467  ac_cv_prog_cc_g=yes
3468else
3469  CFLAGS=""
3470      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3471/* end confdefs.h.  */
3472
3473int
3474main ()
3475{
3476
3477  ;
3478  return 0;
3479}
3480_ACEOF
3481if ac_fn_c_try_compile "$LINENO"; then :
3482
3483else
3484  ac_c_werror_flag=$ac_save_c_werror_flag
3485	 CFLAGS="-g"
3486	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3487/* end confdefs.h.  */
3488
3489int
3490main ()
3491{
3492
3493  ;
3494  return 0;
3495}
3496_ACEOF
3497if ac_fn_c_try_compile "$LINENO"; then :
3498  ac_cv_prog_cc_g=yes
3499fi
3500rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3501fi
3502rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3503fi
3504rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3505   ac_c_werror_flag=$ac_save_c_werror_flag
3506fi
3507{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3508$as_echo "$ac_cv_prog_cc_g" >&6; }
3509if test "$ac_test_CFLAGS" = set; then
3510  CFLAGS=$ac_save_CFLAGS
3511elif test $ac_cv_prog_cc_g = yes; then
3512  if test "$GCC" = yes; then
3513    CFLAGS="-g -O2"
3514  else
3515    CFLAGS="-g"
3516  fi
3517else
3518  if test "$GCC" = yes; then
3519    CFLAGS="-O2"
3520  else
3521    CFLAGS=
3522  fi
3523fi
3524{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3525$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3526if ${ac_cv_prog_cc_c89+:} false; then :
3527  $as_echo_n "(cached) " >&6
3528else
3529  ac_cv_prog_cc_c89=no
3530ac_save_CC=$CC
3531cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3532/* end confdefs.h.  */
3533#include <stdarg.h>
3534#include <stdio.h>
3535struct stat;
3536/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3537struct buf { int x; };
3538FILE * (*rcsopen) (struct buf *, struct stat *, int);
3539static char *e (p, i)
3540     char **p;
3541     int i;
3542{
3543  return p[i];
3544}
3545static char *f (char * (*g) (char **, int), char **p, ...)
3546{
3547  char *s;
3548  va_list v;
3549  va_start (v,p);
3550  s = g (p, va_arg (v,int));
3551  va_end (v);
3552  return s;
3553}
3554
3555/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3556   function prototypes and stuff, but not '\xHH' hex character constants.
3557   These don't provoke an error unfortunately, instead are silently treated
3558   as 'x'.  The following induces an error, until -std is added to get
3559   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3560   array size at least.  It's necessary to write '\x00'==0 to get something
3561   that's true only with -std.  */
3562int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3563
3564/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3565   inside strings and character constants.  */
3566#define FOO(x) 'x'
3567int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3568
3569int test (int i, double x);
3570struct s1 {int (*f) (int a);};
3571struct s2 {int (*f) (double a);};
3572int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3573int argc;
3574char **argv;
3575int
3576main ()
3577{
3578return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3579  ;
3580  return 0;
3581}
3582_ACEOF
3583for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3584	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3585do
3586  CC="$ac_save_CC $ac_arg"
3587  if ac_fn_c_try_compile "$LINENO"; then :
3588  ac_cv_prog_cc_c89=$ac_arg
3589fi
3590rm -f core conftest.err conftest.$ac_objext
3591  test "x$ac_cv_prog_cc_c89" != "xno" && break
3592done
3593rm -f conftest.$ac_ext
3594CC=$ac_save_CC
3595
3596fi
3597# AC_CACHE_VAL
3598case "x$ac_cv_prog_cc_c89" in
3599  x)
3600    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3601$as_echo "none needed" >&6; } ;;
3602  xno)
3603    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3604$as_echo "unsupported" >&6; } ;;
3605  *)
3606    CC="$CC $ac_cv_prog_cc_c89"
3607    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3608$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3609esac
3610if test "x$ac_cv_prog_cc_c89" != xno; then :
3611
3612fi
3613
3614ac_ext=c
3615ac_cpp='$CPP $CPPFLAGS'
3616ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3617ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3618ac_compiler_gnu=$ac_cv_c_compiler_gnu
3619
3620ac_ext=c
3621ac_cpp='$CPP $CPPFLAGS'
3622ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3623ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3624ac_compiler_gnu=$ac_cv_c_compiler_gnu
3625{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
3626$as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
3627if ${am_cv_prog_cc_c_o+:} false; then :
3628  $as_echo_n "(cached) " >&6
3629else
3630  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3631/* end confdefs.h.  */
3632
3633int
3634main ()
3635{
3636
3637  ;
3638  return 0;
3639}
3640_ACEOF
3641  # Make sure it works both with $CC and with simple cc.
3642  # Following AC_PROG_CC_C_O, we do the test twice because some
3643  # compilers refuse to overwrite an existing .o file with -o,
3644  # though they will create one.
3645  am_cv_prog_cc_c_o=yes
3646  for am_i in 1 2; do
3647    if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
3648   ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
3649   ac_status=$?
3650   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3651   (exit $ac_status); } \
3652         && test -f conftest2.$ac_objext; then
3653      : OK
3654    else
3655      am_cv_prog_cc_c_o=no
3656      break
3657    fi
3658  done
3659  rm -f core conftest*
3660  unset am_i
3661fi
3662{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
3663$as_echo "$am_cv_prog_cc_c_o" >&6; }
3664if test "$am_cv_prog_cc_c_o" != yes; then
3665   # Losing compiler, so override with the script.
3666   # FIXME: It is wrong to rewrite CC.
3667   # But if we don't then we get into trouble of one sort or another.
3668   # A longer-term fix would be to have automake use am__CC in this case,
3669   # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
3670   CC="$am_aux_dir/compile $CC"
3671fi
3672ac_ext=c
3673ac_cpp='$CPP $CPPFLAGS'
3674ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3675ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3676ac_compiler_gnu=$ac_cv_c_compiler_gnu
3677
3678
3679depcc="$CC"   am_compiler_list=
3680
3681{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3682$as_echo_n "checking dependency style of $depcc... " >&6; }
3683if ${am_cv_CC_dependencies_compiler_type+:} false; then :
3684  $as_echo_n "(cached) " >&6
3685else
3686  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3687  # We make a subdir and do the tests there.  Otherwise we can end up
3688  # making bogus files that we don't know about and never remove.  For
3689  # instance it was reported that on HP-UX the gcc test will end up
3690  # making a dummy file named 'D' -- because '-MD' means "put the output
3691  # in D".
3692  rm -rf conftest.dir
3693  mkdir conftest.dir
3694  # Copy depcomp to subdir because otherwise we won't find it if we're
3695  # using a relative directory.
3696  cp "$am_depcomp" conftest.dir
3697  cd conftest.dir
3698  # We will build objects and dependencies in a subdirectory because
3699  # it helps to detect inapplicable dependency modes.  For instance
3700  # both Tru64's cc and ICC support -MD to output dependencies as a
3701  # side effect of compilation, but ICC will put the dependencies in
3702  # the current directory while Tru64 will put them in the object
3703  # directory.
3704  mkdir sub
3705
3706  am_cv_CC_dependencies_compiler_type=none
3707  if test "$am_compiler_list" = ""; then
3708     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3709  fi
3710  am__universal=false
3711  case " $depcc " in #(
3712     *\ -arch\ *\ -arch\ *) am__universal=true ;;
3713     esac
3714
3715  for depmode in $am_compiler_list; do
3716    # Setup a source with many dependencies, because some compilers
3717    # like to wrap large dependency lists on column 80 (with \), and
3718    # we should not choose a depcomp mode which is confused by this.
3719    #
3720    # We need to recreate these files for each test, as the compiler may
3721    # overwrite some of them when testing with obscure command lines.
3722    # This happens at least with the AIX C compiler.
3723    : > sub/conftest.c
3724    for i in 1 2 3 4 5 6; do
3725      echo '#include "conftst'$i'.h"' >> sub/conftest.c
3726      # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
3727      # Solaris 10 /bin/sh.
3728      echo '/* dummy */' > sub/conftst$i.h
3729    done
3730    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3731
3732    # We check with '-c' and '-o' for the sake of the "dashmstdout"
3733    # mode.  It turns out that the SunPro C++ compiler does not properly
3734    # handle '-M -o', and we need to detect this.  Also, some Intel
3735    # versions had trouble with output in subdirs.
3736    am__obj=sub/conftest.${OBJEXT-o}
3737    am__minus_obj="-o $am__obj"
3738    case $depmode in
3739    gcc)
3740      # This depmode causes a compiler race in universal mode.
3741      test "$am__universal" = false || continue
3742      ;;
3743    nosideeffect)
3744      # After this tag, mechanisms are not by side-effect, so they'll
3745      # only be used when explicitly requested.
3746      if test "x$enable_dependency_tracking" = xyes; then
3747	continue
3748      else
3749	break
3750      fi
3751      ;;
3752    msvc7 | msvc7msys | msvisualcpp | msvcmsys)
3753      # This compiler won't grok '-c -o', but also, the minuso test has
3754      # not run yet.  These depmodes are late enough in the game, and
3755      # so weak that their functioning should not be impacted.
3756      am__obj=conftest.${OBJEXT-o}
3757      am__minus_obj=
3758      ;;
3759    none) break ;;
3760    esac
3761    if depmode=$depmode \
3762       source=sub/conftest.c object=$am__obj \
3763       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3764       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3765         >/dev/null 2>conftest.err &&
3766       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3767       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3768       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
3769       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3770      # icc doesn't choke on unknown options, it will just issue warnings
3771      # or remarks (even with -Werror).  So we grep stderr for any message
3772      # that says an option was ignored or not supported.
3773      # When given -MP, icc 7.0 and 7.1 complain thusly:
3774      #   icc: Command line warning: ignoring option '-M'; no argument required
3775      # The diagnosis changed in icc 8.0:
3776      #   icc: Command line remark: option '-MP' not supported
3777      if (grep 'ignoring option' conftest.err ||
3778          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3779        am_cv_CC_dependencies_compiler_type=$depmode
3780        break
3781      fi
3782    fi
3783  done
3784
3785  cd ..
3786  rm -rf conftest.dir
3787else
3788  am_cv_CC_dependencies_compiler_type=none
3789fi
3790
3791fi
3792{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
3793$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
3794CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3795
3796 if
3797  test "x$enable_dependency_tracking" != xno \
3798  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3799  am__fastdepCC_TRUE=
3800  am__fastdepCC_FALSE='#'
3801else
3802  am__fastdepCC_TRUE='#'
3803  am__fastdepCC_FALSE=
3804fi
3805
3806
3807
3808# Check whether --enable-largefile was given.
3809if test "${enable_largefile+set}" = set; then :
3810  enableval=$enable_largefile;
3811fi
3812
3813if test "$enable_largefile" != no; then
3814
3815  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
3816$as_echo_n "checking for special C compiler options needed for large files... " >&6; }
3817if ${ac_cv_sys_largefile_CC+:} false; then :
3818  $as_echo_n "(cached) " >&6
3819else
3820  ac_cv_sys_largefile_CC=no
3821     if test "$GCC" != yes; then
3822       ac_save_CC=$CC
3823       while :; do
3824	 # IRIX 6.2 and later do not support large files by default,
3825	 # so use the C compiler's -n32 option if that helps.
3826	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3827/* end confdefs.h.  */
3828#include <sys/types.h>
3829 /* Check that off_t can represent 2**63 - 1 correctly.
3830    We can't simply define LARGE_OFF_T to be 9223372036854775807,
3831    since some C++ compilers masquerading as C compilers
3832    incorrectly reject 9223372036854775807.  */
3833#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
3834  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
3835		       && LARGE_OFF_T % 2147483647 == 1)
3836		      ? 1 : -1];
3837int
3838main ()
3839{
3840
3841  ;
3842  return 0;
3843}
3844_ACEOF
3845	 if ac_fn_c_try_compile "$LINENO"; then :
3846  break
3847fi
3848rm -f core conftest.err conftest.$ac_objext
3849	 CC="$CC -n32"
3850	 if ac_fn_c_try_compile "$LINENO"; then :
3851  ac_cv_sys_largefile_CC=' -n32'; break
3852fi
3853rm -f core conftest.err conftest.$ac_objext
3854	 break
3855       done
3856       CC=$ac_save_CC
3857       rm -f conftest.$ac_ext
3858    fi
3859fi
3860{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
3861$as_echo "$ac_cv_sys_largefile_CC" >&6; }
3862  if test "$ac_cv_sys_largefile_CC" != no; then
3863    CC=$CC$ac_cv_sys_largefile_CC
3864  fi
3865
3866  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
3867$as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
3868if ${ac_cv_sys_file_offset_bits+:} false; then :
3869  $as_echo_n "(cached) " >&6
3870else
3871  while :; do
3872  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3873/* end confdefs.h.  */
3874#include <sys/types.h>
3875 /* Check that off_t can represent 2**63 - 1 correctly.
3876    We can't simply define LARGE_OFF_T to be 9223372036854775807,
3877    since some C++ compilers masquerading as C compilers
3878    incorrectly reject 9223372036854775807.  */
3879#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
3880  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
3881		       && LARGE_OFF_T % 2147483647 == 1)
3882		      ? 1 : -1];
3883int
3884main ()
3885{
3886
3887  ;
3888  return 0;
3889}
3890_ACEOF
3891if ac_fn_c_try_compile "$LINENO"; then :
3892  ac_cv_sys_file_offset_bits=no; break
3893fi
3894rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3895  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3896/* end confdefs.h.  */
3897#define _FILE_OFFSET_BITS 64
3898#include <sys/types.h>
3899 /* Check that off_t can represent 2**63 - 1 correctly.
3900    We can't simply define LARGE_OFF_T to be 9223372036854775807,
3901    since some C++ compilers masquerading as C compilers
3902    incorrectly reject 9223372036854775807.  */
3903#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
3904  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
3905		       && LARGE_OFF_T % 2147483647 == 1)
3906		      ? 1 : -1];
3907int
3908main ()
3909{
3910
3911  ;
3912  return 0;
3913}
3914_ACEOF
3915if ac_fn_c_try_compile "$LINENO"; then :
3916  ac_cv_sys_file_offset_bits=64; break
3917fi
3918rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3919  ac_cv_sys_file_offset_bits=unknown
3920  break
3921done
3922fi
3923{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
3924$as_echo "$ac_cv_sys_file_offset_bits" >&6; }
3925case $ac_cv_sys_file_offset_bits in #(
3926  no | unknown) ;;
3927  *)
3928cat >>confdefs.h <<_ACEOF
3929#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
3930_ACEOF
3931;;
3932esac
3933rm -rf conftest*
3934  if test $ac_cv_sys_file_offset_bits = unknown; then
3935    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
3936$as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
3937if ${ac_cv_sys_large_files+:} false; then :
3938  $as_echo_n "(cached) " >&6
3939else
3940  while :; do
3941  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3942/* end confdefs.h.  */
3943#include <sys/types.h>
3944 /* Check that off_t can represent 2**63 - 1 correctly.
3945    We can't simply define LARGE_OFF_T to be 9223372036854775807,
3946    since some C++ compilers masquerading as C compilers
3947    incorrectly reject 9223372036854775807.  */
3948#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
3949  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
3950		       && LARGE_OFF_T % 2147483647 == 1)
3951		      ? 1 : -1];
3952int
3953main ()
3954{
3955
3956  ;
3957  return 0;
3958}
3959_ACEOF
3960if ac_fn_c_try_compile "$LINENO"; then :
3961  ac_cv_sys_large_files=no; break
3962fi
3963rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3964  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3965/* end confdefs.h.  */
3966#define _LARGE_FILES 1
3967#include <sys/types.h>
3968 /* Check that off_t can represent 2**63 - 1 correctly.
3969    We can't simply define LARGE_OFF_T to be 9223372036854775807,
3970    since some C++ compilers masquerading as C compilers
3971    incorrectly reject 9223372036854775807.  */
3972#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
3973  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
3974		       && LARGE_OFF_T % 2147483647 == 1)
3975		      ? 1 : -1];
3976int
3977main ()
3978{
3979
3980  ;
3981  return 0;
3982}
3983_ACEOF
3984if ac_fn_c_try_compile "$LINENO"; then :
3985  ac_cv_sys_large_files=1; break
3986fi
3987rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3988  ac_cv_sys_large_files=unknown
3989  break
3990done
3991fi
3992{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
3993$as_echo "$ac_cv_sys_large_files" >&6; }
3994case $ac_cv_sys_large_files in #(
3995  no | unknown) ;;
3996  *)
3997cat >>confdefs.h <<_ACEOF
3998#define _LARGE_FILES $ac_cv_sys_large_files
3999_ACEOF
4000;;
4001esac
4002rm -rf conftest*
4003  fi
4004
4005
4006fi
4007
4008
4009# Check for required programs.
4010ac_ext=c
4011ac_cpp='$CPP $CPPFLAGS'
4012ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4013ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4014ac_compiler_gnu=$ac_cv_c_compiler_gnu
4015if test -n "$ac_tool_prefix"; then
4016  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4017set dummy ${ac_tool_prefix}gcc; ac_word=$2
4018{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4019$as_echo_n "checking for $ac_word... " >&6; }
4020if ${ac_cv_prog_CC+:} false; then :
4021  $as_echo_n "(cached) " >&6
4022else
4023  if test -n "$CC"; then
4024  ac_cv_prog_CC="$CC" # Let the user override the test.
4025else
4026as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4027for as_dir in $PATH
4028do
4029  IFS=$as_save_IFS
4030  test -z "$as_dir" && as_dir=.
4031    for ac_exec_ext in '' $ac_executable_extensions; do
4032  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4033    ac_cv_prog_CC="${ac_tool_prefix}gcc"
4034    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4035    break 2
4036  fi
4037done
4038  done
4039IFS=$as_save_IFS
4040
4041fi
4042fi
4043CC=$ac_cv_prog_CC
4044if test -n "$CC"; then
4045  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4046$as_echo "$CC" >&6; }
4047else
4048  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4049$as_echo "no" >&6; }
4050fi
4051
4052
4053fi
4054if test -z "$ac_cv_prog_CC"; then
4055  ac_ct_CC=$CC
4056  # Extract the first word of "gcc", so it can be a program name with args.
4057set dummy gcc; ac_word=$2
4058{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4059$as_echo_n "checking for $ac_word... " >&6; }
4060if ${ac_cv_prog_ac_ct_CC+:} false; then :
4061  $as_echo_n "(cached) " >&6
4062else
4063  if test -n "$ac_ct_CC"; then
4064  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4065else
4066as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4067for as_dir in $PATH
4068do
4069  IFS=$as_save_IFS
4070  test -z "$as_dir" && as_dir=.
4071    for ac_exec_ext in '' $ac_executable_extensions; do
4072  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4073    ac_cv_prog_ac_ct_CC="gcc"
4074    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4075    break 2
4076  fi
4077done
4078  done
4079IFS=$as_save_IFS
4080
4081fi
4082fi
4083ac_ct_CC=$ac_cv_prog_ac_ct_CC
4084if test -n "$ac_ct_CC"; then
4085  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4086$as_echo "$ac_ct_CC" >&6; }
4087else
4088  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4089$as_echo "no" >&6; }
4090fi
4091
4092  if test "x$ac_ct_CC" = x; then
4093    CC=""
4094  else
4095    case $cross_compiling:$ac_tool_warned in
4096yes:)
4097{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4098$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4099ac_tool_warned=yes ;;
4100esac
4101    CC=$ac_ct_CC
4102  fi
4103else
4104  CC="$ac_cv_prog_CC"
4105fi
4106
4107if test -z "$CC"; then
4108          if test -n "$ac_tool_prefix"; then
4109    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4110set dummy ${ac_tool_prefix}cc; ac_word=$2
4111{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4112$as_echo_n "checking for $ac_word... " >&6; }
4113if ${ac_cv_prog_CC+:} false; then :
4114  $as_echo_n "(cached) " >&6
4115else
4116  if test -n "$CC"; then
4117  ac_cv_prog_CC="$CC" # Let the user override the test.
4118else
4119as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4120for as_dir in $PATH
4121do
4122  IFS=$as_save_IFS
4123  test -z "$as_dir" && as_dir=.
4124    for ac_exec_ext in '' $ac_executable_extensions; do
4125  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4126    ac_cv_prog_CC="${ac_tool_prefix}cc"
4127    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4128    break 2
4129  fi
4130done
4131  done
4132IFS=$as_save_IFS
4133
4134fi
4135fi
4136CC=$ac_cv_prog_CC
4137if test -n "$CC"; then
4138  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4139$as_echo "$CC" >&6; }
4140else
4141  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4142$as_echo "no" >&6; }
4143fi
4144
4145
4146  fi
4147fi
4148if test -z "$CC"; then
4149  # Extract the first word of "cc", so it can be a program name with args.
4150set dummy cc; ac_word=$2
4151{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4152$as_echo_n "checking for $ac_word... " >&6; }
4153if ${ac_cv_prog_CC+:} false; then :
4154  $as_echo_n "(cached) " >&6
4155else
4156  if test -n "$CC"; then
4157  ac_cv_prog_CC="$CC" # Let the user override the test.
4158else
4159  ac_prog_rejected=no
4160as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4161for as_dir in $PATH
4162do
4163  IFS=$as_save_IFS
4164  test -z "$as_dir" && as_dir=.
4165    for ac_exec_ext in '' $ac_executable_extensions; do
4166  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4167    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4168       ac_prog_rejected=yes
4169       continue
4170     fi
4171    ac_cv_prog_CC="cc"
4172    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4173    break 2
4174  fi
4175done
4176  done
4177IFS=$as_save_IFS
4178
4179if test $ac_prog_rejected = yes; then
4180  # We found a bogon in the path, so make sure we never use it.
4181  set dummy $ac_cv_prog_CC
4182  shift
4183  if test $# != 0; then
4184    # We chose a different compiler from the bogus one.
4185    # However, it has the same basename, so the bogon will be chosen
4186    # first if we set CC to just the basename; use the full file name.
4187    shift
4188    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4189  fi
4190fi
4191fi
4192fi
4193CC=$ac_cv_prog_CC
4194if test -n "$CC"; then
4195  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4196$as_echo "$CC" >&6; }
4197else
4198  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4199$as_echo "no" >&6; }
4200fi
4201
4202
4203fi
4204if test -z "$CC"; then
4205  if test -n "$ac_tool_prefix"; then
4206  for ac_prog in cl.exe
4207  do
4208    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4209set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4210{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4211$as_echo_n "checking for $ac_word... " >&6; }
4212if ${ac_cv_prog_CC+:} false; then :
4213  $as_echo_n "(cached) " >&6
4214else
4215  if test -n "$CC"; then
4216  ac_cv_prog_CC="$CC" # Let the user override the test.
4217else
4218as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4219for as_dir in $PATH
4220do
4221  IFS=$as_save_IFS
4222  test -z "$as_dir" && as_dir=.
4223    for ac_exec_ext in '' $ac_executable_extensions; do
4224  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4225    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4226    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4227    break 2
4228  fi
4229done
4230  done
4231IFS=$as_save_IFS
4232
4233fi
4234fi
4235CC=$ac_cv_prog_CC
4236if test -n "$CC"; then
4237  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4238$as_echo "$CC" >&6; }
4239else
4240  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4241$as_echo "no" >&6; }
4242fi
4243
4244
4245    test -n "$CC" && break
4246  done
4247fi
4248if test -z "$CC"; then
4249  ac_ct_CC=$CC
4250  for ac_prog in cl.exe
4251do
4252  # Extract the first word of "$ac_prog", so it can be a program name with args.
4253set dummy $ac_prog; ac_word=$2
4254{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4255$as_echo_n "checking for $ac_word... " >&6; }
4256if ${ac_cv_prog_ac_ct_CC+:} false; then :
4257  $as_echo_n "(cached) " >&6
4258else
4259  if test -n "$ac_ct_CC"; then
4260  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4261else
4262as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4263for as_dir in $PATH
4264do
4265  IFS=$as_save_IFS
4266  test -z "$as_dir" && as_dir=.
4267    for ac_exec_ext in '' $ac_executable_extensions; do
4268  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4269    ac_cv_prog_ac_ct_CC="$ac_prog"
4270    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4271    break 2
4272  fi
4273done
4274  done
4275IFS=$as_save_IFS
4276
4277fi
4278fi
4279ac_ct_CC=$ac_cv_prog_ac_ct_CC
4280if test -n "$ac_ct_CC"; then
4281  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4282$as_echo "$ac_ct_CC" >&6; }
4283else
4284  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4285$as_echo "no" >&6; }
4286fi
4287
4288
4289  test -n "$ac_ct_CC" && break
4290done
4291
4292  if test "x$ac_ct_CC" = x; then
4293    CC=""
4294  else
4295    case $cross_compiling:$ac_tool_warned in
4296yes:)
4297{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4298$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4299ac_tool_warned=yes ;;
4300esac
4301    CC=$ac_ct_CC
4302  fi
4303fi
4304
4305fi
4306
4307
4308test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4309$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4310as_fn_error $? "no acceptable C compiler found in \$PATH
4311See \`config.log' for more details" "$LINENO" 5; }
4312
4313# Provide some information about the compiler.
4314$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4315set X $ac_compile
4316ac_compiler=$2
4317for ac_option in --version -v -V -qversion; do
4318  { { ac_try="$ac_compiler $ac_option >&5"
4319case "(($ac_try" in
4320  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4321  *) ac_try_echo=$ac_try;;
4322esac
4323eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4324$as_echo "$ac_try_echo"; } >&5
4325  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4326  ac_status=$?
4327  if test -s conftest.err; then
4328    sed '10a\
4329... rest of stderr output deleted ...
4330         10q' conftest.err >conftest.er1
4331    cat conftest.er1 >&5
4332  fi
4333  rm -f conftest.er1 conftest.err
4334  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4335  test $ac_status = 0; }
4336done
4337
4338{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4339$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4340if ${ac_cv_c_compiler_gnu+:} false; then :
4341  $as_echo_n "(cached) " >&6
4342else
4343  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4344/* end confdefs.h.  */
4345
4346int
4347main ()
4348{
4349#ifndef __GNUC__
4350       choke me
4351#endif
4352
4353  ;
4354  return 0;
4355}
4356_ACEOF
4357if ac_fn_c_try_compile "$LINENO"; then :
4358  ac_compiler_gnu=yes
4359else
4360  ac_compiler_gnu=no
4361fi
4362rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4363ac_cv_c_compiler_gnu=$ac_compiler_gnu
4364
4365fi
4366{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4367$as_echo "$ac_cv_c_compiler_gnu" >&6; }
4368if test $ac_compiler_gnu = yes; then
4369  GCC=yes
4370else
4371  GCC=
4372fi
4373ac_test_CFLAGS=${CFLAGS+set}
4374ac_save_CFLAGS=$CFLAGS
4375{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4376$as_echo_n "checking whether $CC accepts -g... " >&6; }
4377if ${ac_cv_prog_cc_g+:} false; then :
4378  $as_echo_n "(cached) " >&6
4379else
4380  ac_save_c_werror_flag=$ac_c_werror_flag
4381   ac_c_werror_flag=yes
4382   ac_cv_prog_cc_g=no
4383   CFLAGS="-g"
4384   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4385/* end confdefs.h.  */
4386
4387int
4388main ()
4389{
4390
4391  ;
4392  return 0;
4393}
4394_ACEOF
4395if ac_fn_c_try_compile "$LINENO"; then :
4396  ac_cv_prog_cc_g=yes
4397else
4398  CFLAGS=""
4399      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4400/* end confdefs.h.  */
4401
4402int
4403main ()
4404{
4405
4406  ;
4407  return 0;
4408}
4409_ACEOF
4410if ac_fn_c_try_compile "$LINENO"; then :
4411
4412else
4413  ac_c_werror_flag=$ac_save_c_werror_flag
4414	 CFLAGS="-g"
4415	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4416/* end confdefs.h.  */
4417
4418int
4419main ()
4420{
4421
4422  ;
4423  return 0;
4424}
4425_ACEOF
4426if ac_fn_c_try_compile "$LINENO"; then :
4427  ac_cv_prog_cc_g=yes
4428fi
4429rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4430fi
4431rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4432fi
4433rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4434   ac_c_werror_flag=$ac_save_c_werror_flag
4435fi
4436{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4437$as_echo "$ac_cv_prog_cc_g" >&6; }
4438if test "$ac_test_CFLAGS" = set; then
4439  CFLAGS=$ac_save_CFLAGS
4440elif test $ac_cv_prog_cc_g = yes; then
4441  if test "$GCC" = yes; then
4442    CFLAGS="-g -O2"
4443  else
4444    CFLAGS="-g"
4445  fi
4446else
4447  if test "$GCC" = yes; then
4448    CFLAGS="-O2"
4449  else
4450    CFLAGS=
4451  fi
4452fi
4453{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4454$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4455if ${ac_cv_prog_cc_c89+:} false; then :
4456  $as_echo_n "(cached) " >&6
4457else
4458  ac_cv_prog_cc_c89=no
4459ac_save_CC=$CC
4460cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4461/* end confdefs.h.  */
4462#include <stdarg.h>
4463#include <stdio.h>
4464struct stat;
4465/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
4466struct buf { int x; };
4467FILE * (*rcsopen) (struct buf *, struct stat *, int);
4468static char *e (p, i)
4469     char **p;
4470     int i;
4471{
4472  return p[i];
4473}
4474static char *f (char * (*g) (char **, int), char **p, ...)
4475{
4476  char *s;
4477  va_list v;
4478  va_start (v,p);
4479  s = g (p, va_arg (v,int));
4480  va_end (v);
4481  return s;
4482}
4483
4484/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
4485   function prototypes and stuff, but not '\xHH' hex character constants.
4486   These don't provoke an error unfortunately, instead are silently treated
4487   as 'x'.  The following induces an error, until -std is added to get
4488   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
4489   array size at least.  It's necessary to write '\x00'==0 to get something
4490   that's true only with -std.  */
4491int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4492
4493/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4494   inside strings and character constants.  */
4495#define FOO(x) 'x'
4496int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4497
4498int test (int i, double x);
4499struct s1 {int (*f) (int a);};
4500struct s2 {int (*f) (double a);};
4501int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4502int argc;
4503char **argv;
4504int
4505main ()
4506{
4507return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
4508  ;
4509  return 0;
4510}
4511_ACEOF
4512for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4513	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4514do
4515  CC="$ac_save_CC $ac_arg"
4516  if ac_fn_c_try_compile "$LINENO"; then :
4517  ac_cv_prog_cc_c89=$ac_arg
4518fi
4519rm -f core conftest.err conftest.$ac_objext
4520  test "x$ac_cv_prog_cc_c89" != "xno" && break
4521done
4522rm -f conftest.$ac_ext
4523CC=$ac_save_CC
4524
4525fi
4526# AC_CACHE_VAL
4527case "x$ac_cv_prog_cc_c89" in
4528  x)
4529    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4530$as_echo "none needed" >&6; } ;;
4531  xno)
4532    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4533$as_echo "unsupported" >&6; } ;;
4534  *)
4535    CC="$CC $ac_cv_prog_cc_c89"
4536    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4537$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4538esac
4539if test "x$ac_cv_prog_cc_c89" != xno; then :
4540
4541fi
4542
4543ac_ext=c
4544ac_cpp='$CPP $CPPFLAGS'
4545ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4546ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4547ac_compiler_gnu=$ac_cv_c_compiler_gnu
4548
4549ac_ext=c
4550ac_cpp='$CPP $CPPFLAGS'
4551ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4552ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4553ac_compiler_gnu=$ac_cv_c_compiler_gnu
4554{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
4555$as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
4556if ${am_cv_prog_cc_c_o+:} false; then :
4557  $as_echo_n "(cached) " >&6
4558else
4559  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4560/* end confdefs.h.  */
4561
4562int
4563main ()
4564{
4565
4566  ;
4567  return 0;
4568}
4569_ACEOF
4570  # Make sure it works both with $CC and with simple cc.
4571  # Following AC_PROG_CC_C_O, we do the test twice because some
4572  # compilers refuse to overwrite an existing .o file with -o,
4573  # though they will create one.
4574  am_cv_prog_cc_c_o=yes
4575  for am_i in 1 2; do
4576    if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
4577   ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
4578   ac_status=$?
4579   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4580   (exit $ac_status); } \
4581         && test -f conftest2.$ac_objext; then
4582      : OK
4583    else
4584      am_cv_prog_cc_c_o=no
4585      break
4586    fi
4587  done
4588  rm -f core conftest*
4589  unset am_i
4590fi
4591{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
4592$as_echo "$am_cv_prog_cc_c_o" >&6; }
4593if test "$am_cv_prog_cc_c_o" != yes; then
4594   # Losing compiler, so override with the script.
4595   # FIXME: It is wrong to rewrite CC.
4596   # But if we don't then we get into trouble of one sort or another.
4597   # A longer-term fix would be to have automake use am__CC in this case,
4598   # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4599   CC="$am_aux_dir/compile $CC"
4600fi
4601ac_ext=c
4602ac_cpp='$CPP $CPPFLAGS'
4603ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4604ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4605ac_compiler_gnu=$ac_cv_c_compiler_gnu
4606
4607
4608depcc="$CC"   am_compiler_list=
4609
4610{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4611$as_echo_n "checking dependency style of $depcc... " >&6; }
4612if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4613  $as_echo_n "(cached) " >&6
4614else
4615  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4616  # We make a subdir and do the tests there.  Otherwise we can end up
4617  # making bogus files that we don't know about and never remove.  For
4618  # instance it was reported that on HP-UX the gcc test will end up
4619  # making a dummy file named 'D' -- because '-MD' means "put the output
4620  # in D".
4621  rm -rf conftest.dir
4622  mkdir conftest.dir
4623  # Copy depcomp to subdir because otherwise we won't find it if we're
4624  # using a relative directory.
4625  cp "$am_depcomp" conftest.dir
4626  cd conftest.dir
4627  # We will build objects and dependencies in a subdirectory because
4628  # it helps to detect inapplicable dependency modes.  For instance
4629  # both Tru64's cc and ICC support -MD to output dependencies as a
4630  # side effect of compilation, but ICC will put the dependencies in
4631  # the current directory while Tru64 will put them in the object
4632  # directory.
4633  mkdir sub
4634
4635  am_cv_CC_dependencies_compiler_type=none
4636  if test "$am_compiler_list" = ""; then
4637     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4638  fi
4639  am__universal=false
4640  case " $depcc " in #(
4641     *\ -arch\ *\ -arch\ *) am__universal=true ;;
4642     esac
4643
4644  for depmode in $am_compiler_list; do
4645    # Setup a source with many dependencies, because some compilers
4646    # like to wrap large dependency lists on column 80 (with \), and
4647    # we should not choose a depcomp mode which is confused by this.
4648    #
4649    # We need to recreate these files for each test, as the compiler may
4650    # overwrite some of them when testing with obscure command lines.
4651    # This happens at least with the AIX C compiler.
4652    : > sub/conftest.c
4653    for i in 1 2 3 4 5 6; do
4654      echo '#include "conftst'$i'.h"' >> sub/conftest.c
4655      # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4656      # Solaris 10 /bin/sh.
4657      echo '/* dummy */' > sub/conftst$i.h
4658    done
4659    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4660
4661    # We check with '-c' and '-o' for the sake of the "dashmstdout"
4662    # mode.  It turns out that the SunPro C++ compiler does not properly
4663    # handle '-M -o', and we need to detect this.  Also, some Intel
4664    # versions had trouble with output in subdirs.
4665    am__obj=sub/conftest.${OBJEXT-o}
4666    am__minus_obj="-o $am__obj"
4667    case $depmode in
4668    gcc)
4669      # This depmode causes a compiler race in universal mode.
4670      test "$am__universal" = false || continue
4671      ;;
4672    nosideeffect)
4673      # After this tag, mechanisms are not by side-effect, so they'll
4674      # only be used when explicitly requested.
4675      if test "x$enable_dependency_tracking" = xyes; then
4676	continue
4677      else
4678	break
4679      fi
4680      ;;
4681    msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4682      # This compiler won't grok '-c -o', but also, the minuso test has
4683      # not run yet.  These depmodes are late enough in the game, and
4684      # so weak that their functioning should not be impacted.
4685      am__obj=conftest.${OBJEXT-o}
4686      am__minus_obj=
4687      ;;
4688    none) break ;;
4689    esac
4690    if depmode=$depmode \
4691       source=sub/conftest.c object=$am__obj \
4692       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4693       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4694         >/dev/null 2>conftest.err &&
4695       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4696       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4697       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4698       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4699      # icc doesn't choke on unknown options, it will just issue warnings
4700      # or remarks (even with -Werror).  So we grep stderr for any message
4701      # that says an option was ignored or not supported.
4702      # When given -MP, icc 7.0 and 7.1 complain thusly:
4703      #   icc: Command line warning: ignoring option '-M'; no argument required
4704      # The diagnosis changed in icc 8.0:
4705      #   icc: Command line remark: option '-MP' not supported
4706      if (grep 'ignoring option' conftest.err ||
4707          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4708        am_cv_CC_dependencies_compiler_type=$depmode
4709        break
4710      fi
4711    fi
4712  done
4713
4714  cd ..
4715  rm -rf conftest.dir
4716else
4717  am_cv_CC_dependencies_compiler_type=none
4718fi
4719
4720fi
4721{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4722$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4723CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4724
4725 if
4726  test "x$enable_dependency_tracking" != xno \
4727  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4728  am__fastdepCC_TRUE=
4729  am__fastdepCC_FALSE='#'
4730else
4731  am__fastdepCC_TRUE='#'
4732  am__fastdepCC_FALSE=
4733fi
4734
4735
4736if test -n "$ac_tool_prefix"; then
4737  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4738set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4739{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4740$as_echo_n "checking for $ac_word... " >&6; }
4741if ${ac_cv_prog_RANLIB+:} false; then :
4742  $as_echo_n "(cached) " >&6
4743else
4744  if test -n "$RANLIB"; then
4745  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4746else
4747as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4748for as_dir in $PATH
4749do
4750  IFS=$as_save_IFS
4751  test -z "$as_dir" && as_dir=.
4752    for ac_exec_ext in '' $ac_executable_extensions; do
4753  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4754    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4755    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4756    break 2
4757  fi
4758done
4759  done
4760IFS=$as_save_IFS
4761
4762fi
4763fi
4764RANLIB=$ac_cv_prog_RANLIB
4765if test -n "$RANLIB"; then
4766  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
4767$as_echo "$RANLIB" >&6; }
4768else
4769  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4770$as_echo "no" >&6; }
4771fi
4772
4773
4774fi
4775if test -z "$ac_cv_prog_RANLIB"; then
4776  ac_ct_RANLIB=$RANLIB
4777  # Extract the first word of "ranlib", so it can be a program name with args.
4778set dummy ranlib; ac_word=$2
4779{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4780$as_echo_n "checking for $ac_word... " >&6; }
4781if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
4782  $as_echo_n "(cached) " >&6
4783else
4784  if test -n "$ac_ct_RANLIB"; then
4785  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4786else
4787as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4788for as_dir in $PATH
4789do
4790  IFS=$as_save_IFS
4791  test -z "$as_dir" && as_dir=.
4792    for ac_exec_ext in '' $ac_executable_extensions; do
4793  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4794    ac_cv_prog_ac_ct_RANLIB="ranlib"
4795    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4796    break 2
4797  fi
4798done
4799  done
4800IFS=$as_save_IFS
4801
4802fi
4803fi
4804ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4805if test -n "$ac_ct_RANLIB"; then
4806  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
4807$as_echo "$ac_ct_RANLIB" >&6; }
4808else
4809  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4810$as_echo "no" >&6; }
4811fi
4812
4813  if test "x$ac_ct_RANLIB" = x; then
4814    RANLIB=":"
4815  else
4816    case $cross_compiling:$ac_tool_warned in
4817yes:)
4818{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4819$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4820ac_tool_warned=yes ;;
4821esac
4822    RANLIB=$ac_ct_RANLIB
4823  fi
4824else
4825  RANLIB="$ac_cv_prog_RANLIB"
4826fi
4827
4828case `pwd` in
4829  *\ * | *\	*)
4830    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
4831$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
4832esac
4833
4834
4835
4836macro_version='2.4.2'
4837macro_revision='1.3337'
4838
4839
4840
4841
4842
4843
4844
4845
4846
4847
4848
4849
4850
4851ltmain="$ac_aux_dir/ltmain.sh"
4852
4853# Make sure we can run config.sub.
4854$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4855  as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
4856
4857{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4858$as_echo_n "checking build system type... " >&6; }
4859if ${ac_cv_build+:} false; then :
4860  $as_echo_n "(cached) " >&6
4861else
4862  ac_build_alias=$build_alias
4863test "x$ac_build_alias" = x &&
4864  ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4865test "x$ac_build_alias" = x &&
4866  as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
4867ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4868  as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
4869
4870fi
4871{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4872$as_echo "$ac_cv_build" >&6; }
4873case $ac_cv_build in
4874*-*-*) ;;
4875*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
4876esac
4877build=$ac_cv_build
4878ac_save_IFS=$IFS; IFS='-'
4879set x $ac_cv_build
4880shift
4881build_cpu=$1
4882build_vendor=$2
4883shift; shift
4884# Remember, the first character of IFS is used to create $*,
4885# except with old shells:
4886build_os=$*
4887IFS=$ac_save_IFS
4888case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4889
4890
4891{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4892$as_echo_n "checking host system type... " >&6; }
4893if ${ac_cv_host+:} false; then :
4894  $as_echo_n "(cached) " >&6
4895else
4896  if test "x$host_alias" = x; then
4897  ac_cv_host=$ac_cv_build
4898else
4899  ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4900    as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4901fi
4902
4903fi
4904{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4905$as_echo "$ac_cv_host" >&6; }
4906case $ac_cv_host in
4907*-*-*) ;;
4908*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
4909esac
4910host=$ac_cv_host
4911ac_save_IFS=$IFS; IFS='-'
4912set x $ac_cv_host
4913shift
4914host_cpu=$1
4915host_vendor=$2
4916shift; shift
4917# Remember, the first character of IFS is used to create $*,
4918# except with old shells:
4919host_os=$*
4920IFS=$ac_save_IFS
4921case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4922
4923
4924# Backslashify metacharacters that are still active within
4925# double-quoted strings.
4926sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
4927
4928# Same as above, but do not quote variable references.
4929double_quote_subst='s/\(["`\\]\)/\\\1/g'
4930
4931# Sed substitution to delay expansion of an escaped shell variable in a
4932# double_quote_subst'ed string.
4933delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
4934
4935# Sed substitution to delay expansion of an escaped single quote.
4936delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
4937
4938# Sed substitution to avoid accidental globbing in evaled expressions
4939no_glob_subst='s/\*/\\\*/g'
4940
4941ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
4942ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
4943ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
4944
4945{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
4946$as_echo_n "checking how to print strings... " >&6; }
4947# Test print first, because it will be a builtin if present.
4948if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
4949   test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
4950  ECHO='print -r --'
4951elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
4952  ECHO='printf %s\n'
4953else
4954  # Use this function as a fallback that always works.
4955  func_fallback_echo ()
4956  {
4957    eval 'cat <<_LTECHO_EOF
4958$1
4959_LTECHO_EOF'
4960  }
4961  ECHO='func_fallback_echo'
4962fi
4963
4964# func_echo_all arg...
4965# Invoke $ECHO with all args, space-separated.
4966func_echo_all ()
4967{
4968    $ECHO ""
4969}
4970
4971case "$ECHO" in
4972  printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
4973$as_echo "printf" >&6; } ;;
4974  print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
4975$as_echo "print -r" >&6; } ;;
4976  *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
4977$as_echo "cat" >&6; } ;;
4978esac
4979
4980
4981
4982
4983
4984
4985
4986
4987
4988
4989
4990
4991
4992
4993{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4994$as_echo_n "checking for a sed that does not truncate output... " >&6; }
4995if ${ac_cv_path_SED+:} false; then :
4996  $as_echo_n "(cached) " >&6
4997else
4998            ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4999     for ac_i in 1 2 3 4 5 6 7; do
5000       ac_script="$ac_script$as_nl$ac_script"
5001     done
5002     echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5003     { ac_script=; unset ac_script;}
5004     if test -z "$SED"; then
5005  ac_path_SED_found=false
5006  # Loop through the user's path and test for each of PROGNAME-LIST
5007  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5008for as_dir in $PATH
5009do
5010  IFS=$as_save_IFS
5011  test -z "$as_dir" && as_dir=.
5012    for ac_prog in sed gsed; do
5013    for ac_exec_ext in '' $ac_executable_extensions; do
5014      ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
5015      as_fn_executable_p "$ac_path_SED" || continue
5016# Check for GNU ac_path_SED and select it if it is found.
5017  # Check for GNU $ac_path_SED
5018case `"$ac_path_SED" --version 2>&1` in
5019*GNU*)
5020  ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5021*)
5022  ac_count=0
5023  $as_echo_n 0123456789 >"conftest.in"
5024  while :
5025  do
5026    cat "conftest.in" "conftest.in" >"conftest.tmp"
5027    mv "conftest.tmp" "conftest.in"
5028    cp "conftest.in" "conftest.nl"
5029    $as_echo '' >> "conftest.nl"
5030    "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5031    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5032    as_fn_arith $ac_count + 1 && ac_count=$as_val
5033    if test $ac_count -gt ${ac_path_SED_max-0}; then
5034      # Best one so far, save it but keep looking for a better one
5035      ac_cv_path_SED="$ac_path_SED"
5036      ac_path_SED_max=$ac_count
5037    fi
5038    # 10*(2^10) chars as input seems more than enough
5039    test $ac_count -gt 10 && break
5040  done
5041  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5042esac
5043
5044      $ac_path_SED_found && break 3
5045    done
5046  done
5047  done
5048IFS=$as_save_IFS
5049  if test -z "$ac_cv_path_SED"; then
5050    as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
5051  fi
5052else
5053  ac_cv_path_SED=$SED
5054fi
5055
5056fi
5057{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
5058$as_echo "$ac_cv_path_SED" >&6; }
5059 SED="$ac_cv_path_SED"
5060  rm -f conftest.sed
5061
5062test -z "$SED" && SED=sed
5063Xsed="$SED -e 1s/^X//"
5064
5065
5066
5067
5068
5069
5070
5071
5072
5073
5074
5075{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5076$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5077if ${ac_cv_path_GREP+:} false; then :
5078  $as_echo_n "(cached) " >&6
5079else
5080  if test -z "$GREP"; then
5081  ac_path_GREP_found=false
5082  # Loop through the user's path and test for each of PROGNAME-LIST
5083  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5084for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5085do
5086  IFS=$as_save_IFS
5087  test -z "$as_dir" && as_dir=.
5088    for ac_prog in grep ggrep; do
5089    for ac_exec_ext in '' $ac_executable_extensions; do
5090      ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5091      as_fn_executable_p "$ac_path_GREP" || continue
5092# Check for GNU ac_path_GREP and select it if it is found.
5093  # Check for GNU $ac_path_GREP
5094case `"$ac_path_GREP" --version 2>&1` in
5095*GNU*)
5096  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5097*)
5098  ac_count=0
5099  $as_echo_n 0123456789 >"conftest.in"
5100  while :
5101  do
5102    cat "conftest.in" "conftest.in" >"conftest.tmp"
5103    mv "conftest.tmp" "conftest.in"
5104    cp "conftest.in" "conftest.nl"
5105    $as_echo 'GREP' >> "conftest.nl"
5106    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5107    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5108    as_fn_arith $ac_count + 1 && ac_count=$as_val
5109    if test $ac_count -gt ${ac_path_GREP_max-0}; then
5110      # Best one so far, save it but keep looking for a better one
5111      ac_cv_path_GREP="$ac_path_GREP"
5112      ac_path_GREP_max=$ac_count
5113    fi
5114    # 10*(2^10) chars as input seems more than enough
5115    test $ac_count -gt 10 && break
5116  done
5117  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5118esac
5119
5120      $ac_path_GREP_found && break 3
5121    done
5122  done
5123  done
5124IFS=$as_save_IFS
5125  if test -z "$ac_cv_path_GREP"; then
5126    as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5127  fi
5128else
5129  ac_cv_path_GREP=$GREP
5130fi
5131
5132fi
5133{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5134$as_echo "$ac_cv_path_GREP" >&6; }
5135 GREP="$ac_cv_path_GREP"
5136
5137
5138{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5139$as_echo_n "checking for egrep... " >&6; }
5140if ${ac_cv_path_EGREP+:} false; then :
5141  $as_echo_n "(cached) " >&6
5142else
5143  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5144   then ac_cv_path_EGREP="$GREP -E"
5145   else
5146     if test -z "$EGREP"; then
5147  ac_path_EGREP_found=false
5148  # Loop through the user's path and test for each of PROGNAME-LIST
5149  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5150for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5151do
5152  IFS=$as_save_IFS
5153  test -z "$as_dir" && as_dir=.
5154    for ac_prog in egrep; do
5155    for ac_exec_ext in '' $ac_executable_extensions; do
5156      ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5157      as_fn_executable_p "$ac_path_EGREP" || continue
5158# Check for GNU ac_path_EGREP and select it if it is found.
5159  # Check for GNU $ac_path_EGREP
5160case `"$ac_path_EGREP" --version 2>&1` in
5161*GNU*)
5162  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5163*)
5164  ac_count=0
5165  $as_echo_n 0123456789 >"conftest.in"
5166  while :
5167  do
5168    cat "conftest.in" "conftest.in" >"conftest.tmp"
5169    mv "conftest.tmp" "conftest.in"
5170    cp "conftest.in" "conftest.nl"
5171    $as_echo 'EGREP' >> "conftest.nl"
5172    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5173    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5174    as_fn_arith $ac_count + 1 && ac_count=$as_val
5175    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5176      # Best one so far, save it but keep looking for a better one
5177      ac_cv_path_EGREP="$ac_path_EGREP"
5178      ac_path_EGREP_max=$ac_count
5179    fi
5180    # 10*(2^10) chars as input seems more than enough
5181    test $ac_count -gt 10 && break
5182  done
5183  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5184esac
5185
5186      $ac_path_EGREP_found && break 3
5187    done
5188  done
5189  done
5190IFS=$as_save_IFS
5191  if test -z "$ac_cv_path_EGREP"; then
5192    as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5193  fi
5194else
5195  ac_cv_path_EGREP=$EGREP
5196fi
5197
5198   fi
5199fi
5200{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5201$as_echo "$ac_cv_path_EGREP" >&6; }
5202 EGREP="$ac_cv_path_EGREP"
5203
5204
5205{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
5206$as_echo_n "checking for fgrep... " >&6; }
5207if ${ac_cv_path_FGREP+:} false; then :
5208  $as_echo_n "(cached) " >&6
5209else
5210  if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5211   then ac_cv_path_FGREP="$GREP -F"
5212   else
5213     if test -z "$FGREP"; then
5214  ac_path_FGREP_found=false
5215  # Loop through the user's path and test for each of PROGNAME-LIST
5216  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5217for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5218do
5219  IFS=$as_save_IFS
5220  test -z "$as_dir" && as_dir=.
5221    for ac_prog in fgrep; do
5222    for ac_exec_ext in '' $ac_executable_extensions; do
5223      ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
5224      as_fn_executable_p "$ac_path_FGREP" || continue
5225# Check for GNU ac_path_FGREP and select it if it is found.
5226  # Check for GNU $ac_path_FGREP
5227case `"$ac_path_FGREP" --version 2>&1` in
5228*GNU*)
5229  ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5230*)
5231  ac_count=0
5232  $as_echo_n 0123456789 >"conftest.in"
5233  while :
5234  do
5235    cat "conftest.in" "conftest.in" >"conftest.tmp"
5236    mv "conftest.tmp" "conftest.in"
5237    cp "conftest.in" "conftest.nl"
5238    $as_echo 'FGREP' >> "conftest.nl"
5239    "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5240    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5241    as_fn_arith $ac_count + 1 && ac_count=$as_val
5242    if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5243      # Best one so far, save it but keep looking for a better one
5244      ac_cv_path_FGREP="$ac_path_FGREP"
5245      ac_path_FGREP_max=$ac_count
5246    fi
5247    # 10*(2^10) chars as input seems more than enough
5248    test $ac_count -gt 10 && break
5249  done
5250  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5251esac
5252
5253      $ac_path_FGREP_found && break 3
5254    done
5255  done
5256  done
5257IFS=$as_save_IFS
5258  if test -z "$ac_cv_path_FGREP"; then
5259    as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5260  fi
5261else
5262  ac_cv_path_FGREP=$FGREP
5263fi
5264
5265   fi
5266fi
5267{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5268$as_echo "$ac_cv_path_FGREP" >&6; }
5269 FGREP="$ac_cv_path_FGREP"
5270
5271
5272test -z "$GREP" && GREP=grep
5273
5274
5275
5276
5277
5278
5279
5280
5281
5282
5283
5284
5285
5286
5287
5288
5289
5290
5291
5292# Check whether --with-gnu-ld was given.
5293if test "${with_gnu_ld+set}" = set; then :
5294  withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
5295else
5296  with_gnu_ld=no
5297fi
5298
5299ac_prog=ld
5300if test "$GCC" = yes; then
5301  # Check if gcc -print-prog-name=ld gives a path.
5302  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5303$as_echo_n "checking for ld used by $CC... " >&6; }
5304  case $host in
5305  *-*-mingw*)
5306    # gcc leaves a trailing carriage return which upsets mingw
5307    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5308  *)
5309    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5310  esac
5311  case $ac_prog in
5312    # Accept absolute paths.
5313    [\\/]* | ?:[\\/]*)
5314      re_direlt='/[^/][^/]*/\.\./'
5315      # Canonicalize the pathname of ld
5316      ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5317      while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5318	ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5319      done
5320      test -z "$LD" && LD="$ac_prog"
5321      ;;
5322  "")
5323    # If it fails, then pretend we aren't using GCC.
5324    ac_prog=ld
5325    ;;
5326  *)
5327    # If it is relative, then search for the first ld in PATH.
5328    with_gnu_ld=unknown
5329    ;;
5330  esac
5331elif test "$with_gnu_ld" = yes; then
5332  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5333$as_echo_n "checking for GNU ld... " >&6; }
5334else
5335  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5336$as_echo_n "checking for non-GNU ld... " >&6; }
5337fi
5338if ${lt_cv_path_LD+:} false; then :
5339  $as_echo_n "(cached) " >&6
5340else
5341  if test -z "$LD"; then
5342  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5343  for ac_dir in $PATH; do
5344    IFS="$lt_save_ifs"
5345    test -z "$ac_dir" && ac_dir=.
5346    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5347      lt_cv_path_LD="$ac_dir/$ac_prog"
5348      # Check to see if the program is GNU ld.  I'd rather use --version,
5349      # but apparently some variants of GNU ld only accept -v.
5350      # Break only if it was the GNU/non-GNU ld that we prefer.
5351      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5352      *GNU* | *'with BFD'*)
5353	test "$with_gnu_ld" != no && break
5354	;;
5355      *)
5356	test "$with_gnu_ld" != yes && break
5357	;;
5358      esac
5359    fi
5360  done
5361  IFS="$lt_save_ifs"
5362else
5363  lt_cv_path_LD="$LD" # Let the user override the test with a path.
5364fi
5365fi
5366
5367LD="$lt_cv_path_LD"
5368if test -n "$LD"; then
5369  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5370$as_echo "$LD" >&6; }
5371else
5372  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5373$as_echo "no" >&6; }
5374fi
5375test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
5376{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5377$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5378if ${lt_cv_prog_gnu_ld+:} false; then :
5379  $as_echo_n "(cached) " >&6
5380else
5381  # I'd rather use --version here, but apparently some GNU lds only accept -v.
5382case `$LD -v 2>&1 </dev/null` in
5383*GNU* | *'with BFD'*)
5384  lt_cv_prog_gnu_ld=yes
5385  ;;
5386*)
5387  lt_cv_prog_gnu_ld=no
5388  ;;
5389esac
5390fi
5391{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5392$as_echo "$lt_cv_prog_gnu_ld" >&6; }
5393with_gnu_ld=$lt_cv_prog_gnu_ld
5394
5395
5396
5397
5398
5399
5400
5401
5402
5403{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5404$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5405if ${lt_cv_path_NM+:} false; then :
5406  $as_echo_n "(cached) " >&6
5407else
5408  if test -n "$NM"; then
5409  # Let the user override the test.
5410  lt_cv_path_NM="$NM"
5411else
5412  lt_nm_to_check="${ac_tool_prefix}nm"
5413  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5414    lt_nm_to_check="$lt_nm_to_check nm"
5415  fi
5416  for lt_tmp_nm in $lt_nm_to_check; do
5417    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5418    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5419      IFS="$lt_save_ifs"
5420      test -z "$ac_dir" && ac_dir=.
5421      tmp_nm="$ac_dir/$lt_tmp_nm"
5422      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5423	# Check to see if the nm accepts a BSD-compat flag.
5424	# Adding the `sed 1q' prevents false positives on HP-UX, which says:
5425	#   nm: unknown option "B" ignored
5426	# Tru64's nm complains that /dev/null is an invalid object file
5427	case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5428	*/dev/null* | *'Invalid file or object type'*)
5429	  lt_cv_path_NM="$tmp_nm -B"
5430	  break
5431	  ;;
5432	*)
5433	  case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5434	  */dev/null*)
5435	    lt_cv_path_NM="$tmp_nm -p"
5436	    break
5437	    ;;
5438	  *)
5439	    lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5440	    continue # so that we can try to find one that supports BSD flags
5441	    ;;
5442	  esac
5443	  ;;
5444	esac
5445      fi
5446    done
5447    IFS="$lt_save_ifs"
5448  done
5449  : ${lt_cv_path_NM=no}
5450fi
5451fi
5452{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5453$as_echo "$lt_cv_path_NM" >&6; }
5454if test "$lt_cv_path_NM" != "no"; then
5455  NM="$lt_cv_path_NM"
5456else
5457  # Didn't find any BSD compatible name lister, look for dumpbin.
5458  if test -n "$DUMPBIN"; then :
5459    # Let the user override the test.
5460  else
5461    if test -n "$ac_tool_prefix"; then
5462  for ac_prog in dumpbin "link -dump"
5463  do
5464    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5465set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5466{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5467$as_echo_n "checking for $ac_word... " >&6; }
5468if ${ac_cv_prog_DUMPBIN+:} false; then :
5469  $as_echo_n "(cached) " >&6
5470else
5471  if test -n "$DUMPBIN"; then
5472  ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5473else
5474as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5475for as_dir in $PATH
5476do
5477  IFS=$as_save_IFS
5478  test -z "$as_dir" && as_dir=.
5479    for ac_exec_ext in '' $ac_executable_extensions; do
5480  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5481    ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5482    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5483    break 2
5484  fi
5485done
5486  done
5487IFS=$as_save_IFS
5488
5489fi
5490fi
5491DUMPBIN=$ac_cv_prog_DUMPBIN
5492if test -n "$DUMPBIN"; then
5493  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5494$as_echo "$DUMPBIN" >&6; }
5495else
5496  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5497$as_echo "no" >&6; }
5498fi
5499
5500
5501    test -n "$DUMPBIN" && break
5502  done
5503fi
5504if test -z "$DUMPBIN"; then
5505  ac_ct_DUMPBIN=$DUMPBIN
5506  for ac_prog in dumpbin "link -dump"
5507do
5508  # Extract the first word of "$ac_prog", so it can be a program name with args.
5509set dummy $ac_prog; ac_word=$2
5510{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5511$as_echo_n "checking for $ac_word... " >&6; }
5512if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
5513  $as_echo_n "(cached) " >&6
5514else
5515  if test -n "$ac_ct_DUMPBIN"; then
5516  ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5517else
5518as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5519for as_dir in $PATH
5520do
5521  IFS=$as_save_IFS
5522  test -z "$as_dir" && as_dir=.
5523    for ac_exec_ext in '' $ac_executable_extensions; do
5524  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5525    ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5526    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5527    break 2
5528  fi
5529done
5530  done
5531IFS=$as_save_IFS
5532
5533fi
5534fi
5535ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5536if test -n "$ac_ct_DUMPBIN"; then
5537  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5538$as_echo "$ac_ct_DUMPBIN" >&6; }
5539else
5540  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5541$as_echo "no" >&6; }
5542fi
5543
5544
5545  test -n "$ac_ct_DUMPBIN" && break
5546done
5547
5548  if test "x$ac_ct_DUMPBIN" = x; then
5549    DUMPBIN=":"
5550  else
5551    case $cross_compiling:$ac_tool_warned in
5552yes:)
5553{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5554$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5555ac_tool_warned=yes ;;
5556esac
5557    DUMPBIN=$ac_ct_DUMPBIN
5558  fi
5559fi
5560
5561    case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
5562    *COFF*)
5563      DUMPBIN="$DUMPBIN -symbols"
5564      ;;
5565    *)
5566      DUMPBIN=:
5567      ;;
5568    esac
5569  fi
5570
5571  if test "$DUMPBIN" != ":"; then
5572    NM="$DUMPBIN"
5573  fi
5574fi
5575test -z "$NM" && NM=nm
5576
5577
5578
5579
5580
5581
5582{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5583$as_echo_n "checking the name lister ($NM) interface... " >&6; }
5584if ${lt_cv_nm_interface+:} false; then :
5585  $as_echo_n "(cached) " >&6
5586else
5587  lt_cv_nm_interface="BSD nm"
5588  echo "int some_variable = 0;" > conftest.$ac_ext
5589  (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
5590  (eval "$ac_compile" 2>conftest.err)
5591  cat conftest.err >&5
5592  (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5593  (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5594  cat conftest.err >&5
5595  (eval echo "\"\$as_me:$LINENO: output\"" >&5)
5596  cat conftest.out >&5
5597  if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5598    lt_cv_nm_interface="MS dumpbin"
5599  fi
5600  rm -f conftest*
5601fi
5602{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5603$as_echo "$lt_cv_nm_interface" >&6; }
5604
5605{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5606$as_echo_n "checking whether ln -s works... " >&6; }
5607LN_S=$as_ln_s
5608if test "$LN_S" = "ln -s"; then
5609  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5610$as_echo "yes" >&6; }
5611else
5612  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5613$as_echo "no, using $LN_S" >&6; }
5614fi
5615
5616# find the maximum length of command line arguments
5617{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5618$as_echo_n "checking the maximum length of command line arguments... " >&6; }
5619if ${lt_cv_sys_max_cmd_len+:} false; then :
5620  $as_echo_n "(cached) " >&6
5621else
5622    i=0
5623  teststring="ABCD"
5624
5625  case $build_os in
5626  msdosdjgpp*)
5627    # On DJGPP, this test can blow up pretty badly due to problems in libc
5628    # (any single argument exceeding 2000 bytes causes a buffer overrun
5629    # during glob expansion).  Even if it were fixed, the result of this
5630    # check would be larger than it should be.
5631    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
5632    ;;
5633
5634  gnu*)
5635    # Under GNU Hurd, this test is not required because there is
5636    # no limit to the length of command line arguments.
5637    # Libtool will interpret -1 as no limit whatsoever
5638    lt_cv_sys_max_cmd_len=-1;
5639    ;;
5640
5641  cygwin* | mingw* | cegcc*)
5642    # On Win9x/ME, this test blows up -- it succeeds, but takes
5643    # about 5 minutes as the teststring grows exponentially.
5644    # Worse, since 9x/ME are not pre-emptively multitasking,
5645    # you end up with a "frozen" computer, even though with patience
5646    # the test eventually succeeds (with a max line length of 256k).
5647    # Instead, let's just punt: use the minimum linelength reported by
5648    # all of the supported platforms: 8192 (on NT/2K/XP).
5649    lt_cv_sys_max_cmd_len=8192;
5650    ;;
5651
5652  mint*)
5653    # On MiNT this can take a long time and run out of memory.
5654    lt_cv_sys_max_cmd_len=8192;
5655    ;;
5656
5657  amigaos*)
5658    # On AmigaOS with pdksh, this test takes hours, literally.
5659    # So we just punt and use a minimum line length of 8192.
5660    lt_cv_sys_max_cmd_len=8192;
5661    ;;
5662
5663  netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5664    # This has been around since 386BSD, at least.  Likely further.
5665    if test -x /sbin/sysctl; then
5666      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5667    elif test -x /usr/sbin/sysctl; then
5668      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5669    else
5670      lt_cv_sys_max_cmd_len=65536	# usable default for all BSDs
5671    fi
5672    # And add a safety zone
5673    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5674    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5675    ;;
5676
5677  interix*)
5678    # We know the value 262144 and hardcode it with a safety zone (like BSD)
5679    lt_cv_sys_max_cmd_len=196608
5680    ;;
5681
5682  os2*)
5683    # The test takes a long time on OS/2.
5684    lt_cv_sys_max_cmd_len=8192
5685    ;;
5686
5687  osf*)
5688    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5689    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5690    # nice to cause kernel panics so lets avoid the loop below.
5691    # First set a reasonable default.
5692    lt_cv_sys_max_cmd_len=16384
5693    #
5694    if test -x /sbin/sysconfig; then
5695      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5696        *1*) lt_cv_sys_max_cmd_len=-1 ;;
5697      esac
5698    fi
5699    ;;
5700  sco3.2v5*)
5701    lt_cv_sys_max_cmd_len=102400
5702    ;;
5703  sysv5* | sco5v6* | sysv4.2uw2*)
5704    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5705    if test -n "$kargmax"; then
5706      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[	 ]//'`
5707    else
5708      lt_cv_sys_max_cmd_len=32768
5709    fi
5710    ;;
5711  *)
5712    lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5713    if test -n "$lt_cv_sys_max_cmd_len"; then
5714      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5715      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5716    else
5717      # Make teststring a little bigger before we do anything with it.
5718      # a 1K string should be a reasonable start.
5719      for i in 1 2 3 4 5 6 7 8 ; do
5720        teststring=$teststring$teststring
5721      done
5722      SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5723      # If test is not a shell built-in, we'll probably end up computing a
5724      # maximum length that is only half of the actual maximum length, but
5725      # we can't tell.
5726      while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
5727	         = "X$teststring$teststring"; } >/dev/null 2>&1 &&
5728	      test $i != 17 # 1/2 MB should be enough
5729      do
5730        i=`expr $i + 1`
5731        teststring=$teststring$teststring
5732      done
5733      # Only check the string length outside the loop.
5734      lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5735      teststring=
5736      # Add a significant safety factor because C++ compilers can tack on
5737      # massive amounts of additional arguments before passing them to the
5738      # linker.  It appears as though 1/2 is a usable value.
5739      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5740    fi
5741    ;;
5742  esac
5743
5744fi
5745
5746if test -n $lt_cv_sys_max_cmd_len ; then
5747  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5748$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5749else
5750  { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5751$as_echo "none" >&6; }
5752fi
5753max_cmd_len=$lt_cv_sys_max_cmd_len
5754
5755
5756
5757
5758
5759
5760: ${CP="cp -f"}
5761: ${MV="mv -f"}
5762: ${RM="rm -f"}
5763
5764{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
5765$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
5766# Try some XSI features
5767xsi_shell=no
5768( _lt_dummy="a/b/c"
5769  test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
5770      = c,a/b,b/c, \
5771    && eval 'test $(( 1 + 1 )) -eq 2 \
5772    && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
5773  && xsi_shell=yes
5774{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
5775$as_echo "$xsi_shell" >&6; }
5776
5777
5778{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
5779$as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
5780lt_shell_append=no
5781( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
5782    >/dev/null 2>&1 \
5783  && lt_shell_append=yes
5784{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
5785$as_echo "$lt_shell_append" >&6; }
5786
5787
5788if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5789  lt_unset=unset
5790else
5791  lt_unset=false
5792fi
5793
5794
5795
5796
5797
5798# test EBCDIC or ASCII
5799case `echo X|tr X '\101'` in
5800 A) # ASCII based system
5801    # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5802  lt_SP2NL='tr \040 \012'
5803  lt_NL2SP='tr \015\012 \040\040'
5804  ;;
5805 *) # EBCDIC based system
5806  lt_SP2NL='tr \100 \n'
5807  lt_NL2SP='tr \r\n \100\100'
5808  ;;
5809esac
5810
5811
5812
5813
5814
5815
5816
5817
5818
5819{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
5820$as_echo_n "checking how to convert $build file names to $host format... " >&6; }
5821if ${lt_cv_to_host_file_cmd+:} false; then :
5822  $as_echo_n "(cached) " >&6
5823else
5824  case $host in
5825  *-*-mingw* )
5826    case $build in
5827      *-*-mingw* ) # actually msys
5828        lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
5829        ;;
5830      *-*-cygwin* )
5831        lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
5832        ;;
5833      * ) # otherwise, assume *nix
5834        lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
5835        ;;
5836    esac
5837    ;;
5838  *-*-cygwin* )
5839    case $build in
5840      *-*-mingw* ) # actually msys
5841        lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
5842        ;;
5843      *-*-cygwin* )
5844        lt_cv_to_host_file_cmd=func_convert_file_noop
5845        ;;
5846      * ) # otherwise, assume *nix
5847        lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
5848        ;;
5849    esac
5850    ;;
5851  * ) # unhandled hosts (and "normal" native builds)
5852    lt_cv_to_host_file_cmd=func_convert_file_noop
5853    ;;
5854esac
5855
5856fi
5857
5858to_host_file_cmd=$lt_cv_to_host_file_cmd
5859{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
5860$as_echo "$lt_cv_to_host_file_cmd" >&6; }
5861
5862
5863
5864
5865
5866{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
5867$as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
5868if ${lt_cv_to_tool_file_cmd+:} false; then :
5869  $as_echo_n "(cached) " >&6
5870else
5871  #assume ordinary cross tools, or native build.
5872lt_cv_to_tool_file_cmd=func_convert_file_noop
5873case $host in
5874  *-*-mingw* )
5875    case $build in
5876      *-*-mingw* ) # actually msys
5877        lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
5878        ;;
5879    esac
5880    ;;
5881esac
5882
5883fi
5884
5885to_tool_file_cmd=$lt_cv_to_tool_file_cmd
5886{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
5887$as_echo "$lt_cv_to_tool_file_cmd" >&6; }
5888
5889
5890
5891
5892
5893{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5894$as_echo_n "checking for $LD option to reload object files... " >&6; }
5895if ${lt_cv_ld_reload_flag+:} false; then :
5896  $as_echo_n "(cached) " >&6
5897else
5898  lt_cv_ld_reload_flag='-r'
5899fi
5900{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5901$as_echo "$lt_cv_ld_reload_flag" >&6; }
5902reload_flag=$lt_cv_ld_reload_flag
5903case $reload_flag in
5904"" | " "*) ;;
5905*) reload_flag=" $reload_flag" ;;
5906esac
5907reload_cmds='$LD$reload_flag -o $output$reload_objs'
5908case $host_os in
5909  cygwin* | mingw* | pw32* | cegcc*)
5910    if test "$GCC" != yes; then
5911      reload_cmds=false
5912    fi
5913    ;;
5914  darwin*)
5915    if test "$GCC" = yes; then
5916      reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5917    else
5918      reload_cmds='$LD$reload_flag -o $output$reload_objs'
5919    fi
5920    ;;
5921esac
5922
5923
5924
5925
5926
5927
5928
5929
5930
5931if test -n "$ac_tool_prefix"; then
5932  # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5933set dummy ${ac_tool_prefix}objdump; ac_word=$2
5934{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5935$as_echo_n "checking for $ac_word... " >&6; }
5936if ${ac_cv_prog_OBJDUMP+:} false; then :
5937  $as_echo_n "(cached) " >&6
5938else
5939  if test -n "$OBJDUMP"; then
5940  ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5941else
5942as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5943for as_dir in $PATH
5944do
5945  IFS=$as_save_IFS
5946  test -z "$as_dir" && as_dir=.
5947    for ac_exec_ext in '' $ac_executable_extensions; do
5948  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5949    ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5950    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5951    break 2
5952  fi
5953done
5954  done
5955IFS=$as_save_IFS
5956
5957fi
5958fi
5959OBJDUMP=$ac_cv_prog_OBJDUMP
5960if test -n "$OBJDUMP"; then
5961  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5962$as_echo "$OBJDUMP" >&6; }
5963else
5964  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5965$as_echo "no" >&6; }
5966fi
5967
5968
5969fi
5970if test -z "$ac_cv_prog_OBJDUMP"; then
5971  ac_ct_OBJDUMP=$OBJDUMP
5972  # Extract the first word of "objdump", so it can be a program name with args.
5973set dummy objdump; ac_word=$2
5974{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5975$as_echo_n "checking for $ac_word... " >&6; }
5976if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
5977  $as_echo_n "(cached) " >&6
5978else
5979  if test -n "$ac_ct_OBJDUMP"; then
5980  ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5981else
5982as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5983for as_dir in $PATH
5984do
5985  IFS=$as_save_IFS
5986  test -z "$as_dir" && as_dir=.
5987    for ac_exec_ext in '' $ac_executable_extensions; do
5988  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5989    ac_cv_prog_ac_ct_OBJDUMP="objdump"
5990    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5991    break 2
5992  fi
5993done
5994  done
5995IFS=$as_save_IFS
5996
5997fi
5998fi
5999ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6000if test -n "$ac_ct_OBJDUMP"; then
6001  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
6002$as_echo "$ac_ct_OBJDUMP" >&6; }
6003else
6004  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6005$as_echo "no" >&6; }
6006fi
6007
6008  if test "x$ac_ct_OBJDUMP" = x; then
6009    OBJDUMP="false"
6010  else
6011    case $cross_compiling:$ac_tool_warned in
6012yes:)
6013{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6014$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6015ac_tool_warned=yes ;;
6016esac
6017    OBJDUMP=$ac_ct_OBJDUMP
6018  fi
6019else
6020  OBJDUMP="$ac_cv_prog_OBJDUMP"
6021fi
6022
6023test -z "$OBJDUMP" && OBJDUMP=objdump
6024
6025
6026
6027
6028
6029
6030
6031
6032
6033{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
6034$as_echo_n "checking how to recognize dependent libraries... " >&6; }
6035if ${lt_cv_deplibs_check_method+:} false; then :
6036  $as_echo_n "(cached) " >&6
6037else
6038  lt_cv_file_magic_cmd='$MAGIC_CMD'
6039lt_cv_file_magic_test_file=
6040lt_cv_deplibs_check_method='unknown'
6041# Need to set the preceding variable on all platforms that support
6042# interlibrary dependencies.
6043# 'none' -- dependencies not supported.
6044# `unknown' -- same as none, but documents that we really don't know.
6045# 'pass_all' -- all dependencies passed with no checks.
6046# 'test_compile' -- check by making test program.
6047# 'file_magic [[regex]]' -- check by looking for files in library path
6048# which responds to the $file_magic_cmd with a given extended regex.
6049# If you have `file' or equivalent on your system and you're not sure
6050# whether `pass_all' will *always* work, you probably want this one.
6051
6052case $host_os in
6053aix[4-9]*)
6054  lt_cv_deplibs_check_method=pass_all
6055  ;;
6056
6057beos*)
6058  lt_cv_deplibs_check_method=pass_all
6059  ;;
6060
6061bsdi[45]*)
6062  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6063  lt_cv_file_magic_cmd='/usr/bin/file -L'
6064  lt_cv_file_magic_test_file=/shlib/libc.so
6065  ;;
6066
6067cygwin*)
6068  # func_win32_libid is a shell function defined in ltmain.sh
6069  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6070  lt_cv_file_magic_cmd='func_win32_libid'
6071  ;;
6072
6073mingw* | pw32*)
6074  # Base MSYS/MinGW do not provide the 'file' command needed by
6075  # func_win32_libid shell function, so use a weaker test based on 'objdump',
6076  # unless we find 'file', for example because we are cross-compiling.
6077  # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
6078  if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
6079    lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6080    lt_cv_file_magic_cmd='func_win32_libid'
6081  else
6082    # Keep this pattern in sync with the one in func_win32_libid.
6083    lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
6084    lt_cv_file_magic_cmd='$OBJDUMP -f'
6085  fi
6086  ;;
6087
6088cegcc*)
6089  # use the weaker test based on 'objdump'. See mingw*.
6090  lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6091  lt_cv_file_magic_cmd='$OBJDUMP -f'
6092  ;;
6093
6094darwin* | rhapsody*)
6095  lt_cv_deplibs_check_method=pass_all
6096  ;;
6097
6098freebsd* | dragonfly*)
6099  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6100    case $host_cpu in
6101    i*86 )
6102      # Not sure whether the presence of OpenBSD here was a mistake.
6103      # Let's accept both of them until this is cleared up.
6104      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6105      lt_cv_file_magic_cmd=/usr/bin/file
6106      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6107      ;;
6108    esac
6109  else
6110    lt_cv_deplibs_check_method=pass_all
6111  fi
6112  ;;
6113
6114gnu*)
6115  lt_cv_deplibs_check_method=pass_all
6116  ;;
6117
6118haiku*)
6119  lt_cv_deplibs_check_method=pass_all
6120  ;;
6121
6122hpux10.20* | hpux11*)
6123  lt_cv_file_magic_cmd=/usr/bin/file
6124  case $host_cpu in
6125  ia64*)
6126    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6127    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6128    ;;
6129  hppa*64*)
6130    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]'
6131    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6132    ;;
6133  *)
6134    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
6135    lt_cv_file_magic_test_file=/usr/lib/libc.sl
6136    ;;
6137  esac
6138  ;;
6139
6140interix[3-9]*)
6141  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6142  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6143  ;;
6144
6145irix5* | irix6* | nonstopux*)
6146  case $LD in
6147  *-32|*"-32 ") libmagic=32-bit;;
6148  *-n32|*"-n32 ") libmagic=N32;;
6149  *-64|*"-64 ") libmagic=64-bit;;
6150  *) libmagic=never-match;;
6151  esac
6152  lt_cv_deplibs_check_method=pass_all
6153  ;;
6154
6155# This must be glibc/ELF.
6156linux* | k*bsd*-gnu | kopensolaris*-gnu)
6157  lt_cv_deplibs_check_method=pass_all
6158  ;;
6159
6160netbsd*)
6161  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6162    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6163  else
6164    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6165  fi
6166  ;;
6167
6168newos6*)
6169  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6170  lt_cv_file_magic_cmd=/usr/bin/file
6171  lt_cv_file_magic_test_file=/usr/lib/libnls.so
6172  ;;
6173
6174*nto* | *qnx*)
6175  lt_cv_deplibs_check_method=pass_all
6176  ;;
6177
6178openbsd*)
6179  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6180    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6181  else
6182    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6183  fi
6184  ;;
6185
6186osf3* | osf4* | osf5*)
6187  lt_cv_deplibs_check_method=pass_all
6188  ;;
6189
6190rdos*)
6191  lt_cv_deplibs_check_method=pass_all
6192  ;;
6193
6194solaris*)
6195  lt_cv_deplibs_check_method=pass_all
6196  ;;
6197
6198sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6199  lt_cv_deplibs_check_method=pass_all
6200  ;;
6201
6202sysv4 | sysv4.3*)
6203  case $host_vendor in
6204  motorola)
6205    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]'
6206    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6207    ;;
6208  ncr)
6209    lt_cv_deplibs_check_method=pass_all
6210    ;;
6211  sequent)
6212    lt_cv_file_magic_cmd='/bin/file'
6213    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6214    ;;
6215  sni)
6216    lt_cv_file_magic_cmd='/bin/file'
6217    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6218    lt_cv_file_magic_test_file=/lib/libc.so
6219    ;;
6220  siemens)
6221    lt_cv_deplibs_check_method=pass_all
6222    ;;
6223  pc)
6224    lt_cv_deplibs_check_method=pass_all
6225    ;;
6226  esac
6227  ;;
6228
6229tpf*)
6230  lt_cv_deplibs_check_method=pass_all
6231  ;;
6232esac
6233
6234fi
6235{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
6236$as_echo "$lt_cv_deplibs_check_method" >&6; }
6237
6238file_magic_glob=
6239want_nocaseglob=no
6240if test "$build" = "$host"; then
6241  case $host_os in
6242  mingw* | pw32*)
6243    if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
6244      want_nocaseglob=yes
6245    else
6246      file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
6247    fi
6248    ;;
6249  esac
6250fi
6251
6252file_magic_cmd=$lt_cv_file_magic_cmd
6253deplibs_check_method=$lt_cv_deplibs_check_method
6254test -z "$deplibs_check_method" && deplibs_check_method=unknown
6255
6256
6257
6258
6259
6260
6261
6262
6263
6264
6265
6266
6267
6268
6269
6270
6271
6272
6273
6274
6275
6276
6277if test -n "$ac_tool_prefix"; then
6278  # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
6279set dummy ${ac_tool_prefix}dlltool; ac_word=$2
6280{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6281$as_echo_n "checking for $ac_word... " >&6; }
6282if ${ac_cv_prog_DLLTOOL+:} false; then :
6283  $as_echo_n "(cached) " >&6
6284else
6285  if test -n "$DLLTOOL"; then
6286  ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
6287else
6288as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6289for as_dir in $PATH
6290do
6291  IFS=$as_save_IFS
6292  test -z "$as_dir" && as_dir=.
6293    for ac_exec_ext in '' $ac_executable_extensions; do
6294  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6295    ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
6296    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6297    break 2
6298  fi
6299done
6300  done
6301IFS=$as_save_IFS
6302
6303fi
6304fi
6305DLLTOOL=$ac_cv_prog_DLLTOOL
6306if test -n "$DLLTOOL"; then
6307  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
6308$as_echo "$DLLTOOL" >&6; }
6309else
6310  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6311$as_echo "no" >&6; }
6312fi
6313
6314
6315fi
6316if test -z "$ac_cv_prog_DLLTOOL"; then
6317  ac_ct_DLLTOOL=$DLLTOOL
6318  # Extract the first word of "dlltool", so it can be a program name with args.
6319set dummy dlltool; ac_word=$2
6320{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6321$as_echo_n "checking for $ac_word... " >&6; }
6322if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
6323  $as_echo_n "(cached) " >&6
6324else
6325  if test -n "$ac_ct_DLLTOOL"; then
6326  ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
6327else
6328as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6329for as_dir in $PATH
6330do
6331  IFS=$as_save_IFS
6332  test -z "$as_dir" && as_dir=.
6333    for ac_exec_ext in '' $ac_executable_extensions; do
6334  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6335    ac_cv_prog_ac_ct_DLLTOOL="dlltool"
6336    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6337    break 2
6338  fi
6339done
6340  done
6341IFS=$as_save_IFS
6342
6343fi
6344fi
6345ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
6346if test -n "$ac_ct_DLLTOOL"; then
6347  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
6348$as_echo "$ac_ct_DLLTOOL" >&6; }
6349else
6350  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6351$as_echo "no" >&6; }
6352fi
6353
6354  if test "x$ac_ct_DLLTOOL" = x; then
6355    DLLTOOL="false"
6356  else
6357    case $cross_compiling:$ac_tool_warned in
6358yes:)
6359{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6360$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6361ac_tool_warned=yes ;;
6362esac
6363    DLLTOOL=$ac_ct_DLLTOOL
6364  fi
6365else
6366  DLLTOOL="$ac_cv_prog_DLLTOOL"
6367fi
6368
6369test -z "$DLLTOOL" && DLLTOOL=dlltool
6370
6371
6372
6373
6374
6375
6376
6377
6378
6379
6380{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
6381$as_echo_n "checking how to associate runtime and link libraries... " >&6; }
6382if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
6383  $as_echo_n "(cached) " >&6
6384else
6385  lt_cv_sharedlib_from_linklib_cmd='unknown'
6386
6387case $host_os in
6388cygwin* | mingw* | pw32* | cegcc*)
6389  # two different shell functions defined in ltmain.sh
6390  # decide which to use based on capabilities of $DLLTOOL
6391  case `$DLLTOOL --help 2>&1` in
6392  *--identify-strict*)
6393    lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
6394    ;;
6395  *)
6396    lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
6397    ;;
6398  esac
6399  ;;
6400*)
6401  # fallback: assume linklib IS sharedlib
6402  lt_cv_sharedlib_from_linklib_cmd="$ECHO"
6403  ;;
6404esac
6405
6406fi
6407{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
6408$as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
6409sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
6410test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
6411
6412
6413
6414
6415
6416
6417
6418if test -n "$ac_tool_prefix"; then
6419  for ac_prog in ar
6420  do
6421    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6422set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6423{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6424$as_echo_n "checking for $ac_word... " >&6; }
6425if ${ac_cv_prog_AR+:} false; then :
6426  $as_echo_n "(cached) " >&6
6427else
6428  if test -n "$AR"; then
6429  ac_cv_prog_AR="$AR" # Let the user override the test.
6430else
6431as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6432for as_dir in $PATH
6433do
6434  IFS=$as_save_IFS
6435  test -z "$as_dir" && as_dir=.
6436    for ac_exec_ext in '' $ac_executable_extensions; do
6437  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6438    ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
6439    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6440    break 2
6441  fi
6442done
6443  done
6444IFS=$as_save_IFS
6445
6446fi
6447fi
6448AR=$ac_cv_prog_AR
6449if test -n "$AR"; then
6450  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6451$as_echo "$AR" >&6; }
6452else
6453  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6454$as_echo "no" >&6; }
6455fi
6456
6457
6458    test -n "$AR" && break
6459  done
6460fi
6461if test -z "$AR"; then
6462  ac_ct_AR=$AR
6463  for ac_prog in ar
6464do
6465  # Extract the first word of "$ac_prog", so it can be a program name with args.
6466set dummy $ac_prog; ac_word=$2
6467{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6468$as_echo_n "checking for $ac_word... " >&6; }
6469if ${ac_cv_prog_ac_ct_AR+:} false; then :
6470  $as_echo_n "(cached) " >&6
6471else
6472  if test -n "$ac_ct_AR"; then
6473  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6474else
6475as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6476for as_dir in $PATH
6477do
6478  IFS=$as_save_IFS
6479  test -z "$as_dir" && as_dir=.
6480    for ac_exec_ext in '' $ac_executable_extensions; do
6481  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6482    ac_cv_prog_ac_ct_AR="$ac_prog"
6483    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6484    break 2
6485  fi
6486done
6487  done
6488IFS=$as_save_IFS
6489
6490fi
6491fi
6492ac_ct_AR=$ac_cv_prog_ac_ct_AR
6493if test -n "$ac_ct_AR"; then
6494  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6495$as_echo "$ac_ct_AR" >&6; }
6496else
6497  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6498$as_echo "no" >&6; }
6499fi
6500
6501
6502  test -n "$ac_ct_AR" && break
6503done
6504
6505  if test "x$ac_ct_AR" = x; then
6506    AR="false"
6507  else
6508    case $cross_compiling:$ac_tool_warned in
6509yes:)
6510{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6511$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6512ac_tool_warned=yes ;;
6513esac
6514    AR=$ac_ct_AR
6515  fi
6516fi
6517
6518: ${AR=ar}
6519: ${AR_FLAGS=cru}
6520
6521
6522
6523
6524
6525
6526
6527
6528
6529
6530
6531{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
6532$as_echo_n "checking for archiver @FILE support... " >&6; }
6533if ${lt_cv_ar_at_file+:} false; then :
6534  $as_echo_n "(cached) " >&6
6535else
6536  lt_cv_ar_at_file=no
6537   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6538/* end confdefs.h.  */
6539
6540int
6541main ()
6542{
6543
6544  ;
6545  return 0;
6546}
6547_ACEOF
6548if ac_fn_c_try_compile "$LINENO"; then :
6549  echo conftest.$ac_objext > conftest.lst
6550      lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
6551      { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6552  (eval $lt_ar_try) 2>&5
6553  ac_status=$?
6554  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6555  test $ac_status = 0; }
6556      if test "$ac_status" -eq 0; then
6557	# Ensure the archiver fails upon bogus file names.
6558	rm -f conftest.$ac_objext libconftest.a
6559	{ { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6560  (eval $lt_ar_try) 2>&5
6561  ac_status=$?
6562  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6563  test $ac_status = 0; }
6564	if test "$ac_status" -ne 0; then
6565          lt_cv_ar_at_file=@
6566        fi
6567      fi
6568      rm -f conftest.* libconftest.a
6569
6570fi
6571rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6572
6573fi
6574{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
6575$as_echo "$lt_cv_ar_at_file" >&6; }
6576
6577if test "x$lt_cv_ar_at_file" = xno; then
6578  archiver_list_spec=
6579else
6580  archiver_list_spec=$lt_cv_ar_at_file
6581fi
6582
6583
6584
6585
6586
6587
6588
6589if test -n "$ac_tool_prefix"; then
6590  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6591set dummy ${ac_tool_prefix}strip; ac_word=$2
6592{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6593$as_echo_n "checking for $ac_word... " >&6; }
6594if ${ac_cv_prog_STRIP+:} false; then :
6595  $as_echo_n "(cached) " >&6
6596else
6597  if test -n "$STRIP"; then
6598  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6599else
6600as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6601for as_dir in $PATH
6602do
6603  IFS=$as_save_IFS
6604  test -z "$as_dir" && as_dir=.
6605    for ac_exec_ext in '' $ac_executable_extensions; do
6606  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6607    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6608    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6609    break 2
6610  fi
6611done
6612  done
6613IFS=$as_save_IFS
6614
6615fi
6616fi
6617STRIP=$ac_cv_prog_STRIP
6618if test -n "$STRIP"; then
6619  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6620$as_echo "$STRIP" >&6; }
6621else
6622  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6623$as_echo "no" >&6; }
6624fi
6625
6626
6627fi
6628if test -z "$ac_cv_prog_STRIP"; then
6629  ac_ct_STRIP=$STRIP
6630  # Extract the first word of "strip", so it can be a program name with args.
6631set dummy strip; ac_word=$2
6632{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6633$as_echo_n "checking for $ac_word... " >&6; }
6634if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
6635  $as_echo_n "(cached) " >&6
6636else
6637  if test -n "$ac_ct_STRIP"; then
6638  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6639else
6640as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6641for as_dir in $PATH
6642do
6643  IFS=$as_save_IFS
6644  test -z "$as_dir" && as_dir=.
6645    for ac_exec_ext in '' $ac_executable_extensions; do
6646  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6647    ac_cv_prog_ac_ct_STRIP="strip"
6648    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6649    break 2
6650  fi
6651done
6652  done
6653IFS=$as_save_IFS
6654
6655fi
6656fi
6657ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6658if test -n "$ac_ct_STRIP"; then
6659  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6660$as_echo "$ac_ct_STRIP" >&6; }
6661else
6662  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6663$as_echo "no" >&6; }
6664fi
6665
6666  if test "x$ac_ct_STRIP" = x; then
6667    STRIP=":"
6668  else
6669    case $cross_compiling:$ac_tool_warned in
6670yes:)
6671{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6672$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6673ac_tool_warned=yes ;;
6674esac
6675    STRIP=$ac_ct_STRIP
6676  fi
6677else
6678  STRIP="$ac_cv_prog_STRIP"
6679fi
6680
6681test -z "$STRIP" && STRIP=:
6682
6683
6684
6685
6686
6687
6688if test -n "$ac_tool_prefix"; then
6689  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6690set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6691{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6692$as_echo_n "checking for $ac_word... " >&6; }
6693if ${ac_cv_prog_RANLIB+:} false; then :
6694  $as_echo_n "(cached) " >&6
6695else
6696  if test -n "$RANLIB"; then
6697  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6698else
6699as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6700for as_dir in $PATH
6701do
6702  IFS=$as_save_IFS
6703  test -z "$as_dir" && as_dir=.
6704    for ac_exec_ext in '' $ac_executable_extensions; do
6705  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6706    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6707    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6708    break 2
6709  fi
6710done
6711  done
6712IFS=$as_save_IFS
6713
6714fi
6715fi
6716RANLIB=$ac_cv_prog_RANLIB
6717if test -n "$RANLIB"; then
6718  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6719$as_echo "$RANLIB" >&6; }
6720else
6721  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6722$as_echo "no" >&6; }
6723fi
6724
6725
6726fi
6727if test -z "$ac_cv_prog_RANLIB"; then
6728  ac_ct_RANLIB=$RANLIB
6729  # Extract the first word of "ranlib", so it can be a program name with args.
6730set dummy ranlib; ac_word=$2
6731{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6732$as_echo_n "checking for $ac_word... " >&6; }
6733if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
6734  $as_echo_n "(cached) " >&6
6735else
6736  if test -n "$ac_ct_RANLIB"; then
6737  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6738else
6739as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6740for as_dir in $PATH
6741do
6742  IFS=$as_save_IFS
6743  test -z "$as_dir" && as_dir=.
6744    for ac_exec_ext in '' $ac_executable_extensions; do
6745  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6746    ac_cv_prog_ac_ct_RANLIB="ranlib"
6747    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6748    break 2
6749  fi
6750done
6751  done
6752IFS=$as_save_IFS
6753
6754fi
6755fi
6756ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6757if test -n "$ac_ct_RANLIB"; then
6758  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6759$as_echo "$ac_ct_RANLIB" >&6; }
6760else
6761  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6762$as_echo "no" >&6; }
6763fi
6764
6765  if test "x$ac_ct_RANLIB" = x; then
6766    RANLIB=":"
6767  else
6768    case $cross_compiling:$ac_tool_warned in
6769yes:)
6770{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6771$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6772ac_tool_warned=yes ;;
6773esac
6774    RANLIB=$ac_ct_RANLIB
6775  fi
6776else
6777  RANLIB="$ac_cv_prog_RANLIB"
6778fi
6779
6780test -z "$RANLIB" && RANLIB=:
6781
6782
6783
6784
6785
6786
6787# Determine commands to create old-style static archives.
6788old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6789old_postinstall_cmds='chmod 644 $oldlib'
6790old_postuninstall_cmds=
6791
6792if test -n "$RANLIB"; then
6793  case $host_os in
6794  openbsd*)
6795    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
6796    ;;
6797  *)
6798    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
6799    ;;
6800  esac
6801  old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
6802fi
6803
6804case $host_os in
6805  darwin*)
6806    lock_old_archive_extraction=yes ;;
6807  *)
6808    lock_old_archive_extraction=no ;;
6809esac
6810
6811
6812
6813
6814
6815
6816
6817
6818
6819
6820
6821
6822
6823
6824
6825
6826
6827
6828
6829
6830
6831
6832
6833
6834
6835
6836
6837
6838
6839
6840
6841
6842
6843
6844
6845
6846
6847
6848
6849# If no C compiler was specified, use CC.
6850LTCC=${LTCC-"$CC"}
6851
6852# If no C compiler flags were specified, use CFLAGS.
6853LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6854
6855# Allow CC to be a program name with arguments.
6856compiler=$CC
6857
6858
6859# Check for command to grab the raw symbol name followed by C symbol from nm.
6860{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6861$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6862if ${lt_cv_sys_global_symbol_pipe+:} false; then :
6863  $as_echo_n "(cached) " >&6
6864else
6865
6866# These are sane defaults that work on at least a few old systems.
6867# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
6868
6869# Character class describing NM global symbol codes.
6870symcode='[BCDEGRST]'
6871
6872# Regexp to match symbols that can be accessed directly from C.
6873sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6874
6875# Define system-specific variables.
6876case $host_os in
6877aix*)
6878  symcode='[BCDT]'
6879  ;;
6880cygwin* | mingw* | pw32* | cegcc*)
6881  symcode='[ABCDGISTW]'
6882  ;;
6883hpux*)
6884  if test "$host_cpu" = ia64; then
6885    symcode='[ABCDEGRST]'
6886  fi
6887  ;;
6888irix* | nonstopux*)
6889  symcode='[BCDEGRST]'
6890  ;;
6891osf*)
6892  symcode='[BCDEGQRST]'
6893  ;;
6894solaris*)
6895  symcode='[BDRT]'
6896  ;;
6897sco3.2v5*)
6898  symcode='[DT]'
6899  ;;
6900sysv4.2uw2*)
6901  symcode='[DT]'
6902  ;;
6903sysv5* | sco5v6* | unixware* | OpenUNIX*)
6904  symcode='[ABDT]'
6905  ;;
6906sysv4)
6907  symcode='[DFNSTU]'
6908  ;;
6909esac
6910
6911# If we're using GNU nm, then use its standard symbol codes.
6912case `$NM -V 2>&1` in
6913*GNU* | *'with BFD'*)
6914  symcode='[ABCDGIRSTW]' ;;
6915esac
6916
6917# Transform an extracted symbol line into a proper C declaration.
6918# Some systems (esp. on ia64) link data and code symbols differently,
6919# so use this general approach.
6920lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6921
6922# Transform an extracted symbol line into symbol name and symbol address
6923lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'"
6924lt_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'"
6925
6926# Handle CRLF in mingw tool chain
6927opt_cr=
6928case $build_os in
6929mingw*)
6930  opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6931  ;;
6932esac
6933
6934# Try without a prefix underscore, then with it.
6935for ac_symprfx in "" "_"; do
6936
6937  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6938  symxfrm="\\1 $ac_symprfx\\2 \\2"
6939
6940  # Write the raw and C identifiers.
6941  if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6942    # Fake it for dumpbin and say T for any non-static function
6943    # and D for any global variable.
6944    # Also find C++ and __fastcall symbols from MSVC++,
6945    # which start with @ or ?.
6946    lt_cv_sys_global_symbol_pipe="$AWK '"\
6947"     {last_section=section; section=\$ 3};"\
6948"     /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
6949"     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6950"     \$ 0!~/External *\|/{next};"\
6951"     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6952"     {if(hide[section]) next};"\
6953"     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6954"     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6955"     s[1]~/^[@?]/{print s[1], s[1]; next};"\
6956"     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6957"     ' prfx=^$ac_symprfx"
6958  else
6959    lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[	 ]\($symcode$symcode*\)[	 ][	 ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6960  fi
6961  lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
6962
6963  # Check to see that the pipe works correctly.
6964  pipe_works=no
6965
6966  rm -f conftest*
6967  cat > conftest.$ac_ext <<_LT_EOF
6968#ifdef __cplusplus
6969extern "C" {
6970#endif
6971char nm_test_var;
6972void nm_test_func(void);
6973void nm_test_func(void){}
6974#ifdef __cplusplus
6975}
6976#endif
6977int main(){nm_test_var='a';nm_test_func();return(0);}
6978_LT_EOF
6979
6980  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6981  (eval $ac_compile) 2>&5
6982  ac_status=$?
6983  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6984  test $ac_status = 0; }; then
6985    # Now try to grab the symbols.
6986    nlist=conftest.nm
6987    if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
6988  (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
6989  ac_status=$?
6990  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6991  test $ac_status = 0; } && test -s "$nlist"; then
6992      # Try sorting and uniquifying the output.
6993      if sort "$nlist" | uniq > "$nlist"T; then
6994	mv -f "$nlist"T "$nlist"
6995      else
6996	rm -f "$nlist"T
6997      fi
6998
6999      # Make sure that we snagged all the symbols we need.
7000      if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
7001	if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
7002	  cat <<_LT_EOF > conftest.$ac_ext
7003/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests.  */
7004#if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
7005/* DATA imports from DLLs on WIN32 con't be const, because runtime
7006   relocations are performed -- see ld's documentation on pseudo-relocs.  */
7007# define LT_DLSYM_CONST
7008#elif defined(__osf__)
7009/* This system does not cope well with relocations in const data.  */
7010# define LT_DLSYM_CONST
7011#else
7012# define LT_DLSYM_CONST const
7013#endif
7014
7015#ifdef __cplusplus
7016extern "C" {
7017#endif
7018
7019_LT_EOF
7020	  # Now generate the symbol file.
7021	  eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
7022
7023	  cat <<_LT_EOF >> conftest.$ac_ext
7024
7025/* The mapping between symbol names and symbols.  */
7026LT_DLSYM_CONST struct {
7027  const char *name;
7028  void       *address;
7029}
7030lt__PROGRAM__LTX_preloaded_symbols[] =
7031{
7032  { "@PROGRAM@", (void *) 0 },
7033_LT_EOF
7034	  $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
7035	  cat <<\_LT_EOF >> conftest.$ac_ext
7036  {0, (void *) 0}
7037};
7038
7039/* This works around a problem in FreeBSD linker */
7040#ifdef FREEBSD_WORKAROUND
7041static const void *lt_preloaded_setup() {
7042  return lt__PROGRAM__LTX_preloaded_symbols;
7043}
7044#endif
7045
7046#ifdef __cplusplus
7047}
7048#endif
7049_LT_EOF
7050	  # Now try linking the two files.
7051	  mv conftest.$ac_objext conftstm.$ac_objext
7052	  lt_globsym_save_LIBS=$LIBS
7053	  lt_globsym_save_CFLAGS=$CFLAGS
7054	  LIBS="conftstm.$ac_objext"
7055	  CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7056	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
7057  (eval $ac_link) 2>&5
7058  ac_status=$?
7059  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7060  test $ac_status = 0; } && test -s conftest${ac_exeext}; then
7061	    pipe_works=yes
7062	  fi
7063	  LIBS=$lt_globsym_save_LIBS
7064	  CFLAGS=$lt_globsym_save_CFLAGS
7065	else
7066	  echo "cannot find nm_test_func in $nlist" >&5
7067	fi
7068      else
7069	echo "cannot find nm_test_var in $nlist" >&5
7070      fi
7071    else
7072      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7073    fi
7074  else
7075    echo "$progname: failed program was:" >&5
7076    cat conftest.$ac_ext >&5
7077  fi
7078  rm -rf conftest* conftst*
7079
7080  # Do not use the global_symbol_pipe unless it works.
7081  if test "$pipe_works" = yes; then
7082    break
7083  else
7084    lt_cv_sys_global_symbol_pipe=
7085  fi
7086done
7087
7088fi
7089
7090if test -z "$lt_cv_sys_global_symbol_pipe"; then
7091  lt_cv_sys_global_symbol_to_cdecl=
7092fi
7093if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7094  { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
7095$as_echo "failed" >&6; }
7096else
7097  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
7098$as_echo "ok" >&6; }
7099fi
7100
7101# Response file support.
7102if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7103  nm_file_list_spec='@'
7104elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
7105  nm_file_list_spec='@'
7106fi
7107
7108
7109
7110
7111
7112
7113
7114
7115
7116
7117
7118
7119
7120
7121
7122
7123
7124
7125
7126
7127
7128
7129
7130
7131
7132
7133
7134{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
7135$as_echo_n "checking for sysroot... " >&6; }
7136
7137# Check whether --with-sysroot was given.
7138if test "${with_sysroot+set}" = set; then :
7139  withval=$with_sysroot;
7140else
7141  with_sysroot=no
7142fi
7143
7144
7145lt_sysroot=
7146case ${with_sysroot} in #(
7147 yes)
7148   if test "$GCC" = yes; then
7149     lt_sysroot=`$CC --print-sysroot 2>/dev/null`
7150   fi
7151   ;; #(
7152 /*)
7153   lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
7154   ;; #(
7155 no|'')
7156   ;; #(
7157 *)
7158   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
7159$as_echo "${with_sysroot}" >&6; }
7160   as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
7161   ;;
7162esac
7163
7164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
7165$as_echo "${lt_sysroot:-no}" >&6; }
7166
7167
7168
7169
7170
7171# Check whether --enable-libtool-lock was given.
7172if test "${enable_libtool_lock+set}" = set; then :
7173  enableval=$enable_libtool_lock;
7174fi
7175
7176test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7177
7178# Some flags need to be propagated to the compiler or linker for good
7179# libtool support.
7180case $host in
7181ia64-*-hpux*)
7182  # Find out which ABI we are using.
7183  echo 'int i;' > conftest.$ac_ext
7184  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7185  (eval $ac_compile) 2>&5
7186  ac_status=$?
7187  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7188  test $ac_status = 0; }; then
7189    case `/usr/bin/file conftest.$ac_objext` in
7190      *ELF-32*)
7191	HPUX_IA64_MODE="32"
7192	;;
7193      *ELF-64*)
7194	HPUX_IA64_MODE="64"
7195	;;
7196    esac
7197  fi
7198  rm -rf conftest*
7199  ;;
7200*-*-irix6*)
7201  # Find out which ABI we are using.
7202  echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7203  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7204  (eval $ac_compile) 2>&5
7205  ac_status=$?
7206  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7207  test $ac_status = 0; }; then
7208    if test "$lt_cv_prog_gnu_ld" = yes; then
7209      case `/usr/bin/file conftest.$ac_objext` in
7210	*32-bit*)
7211	  LD="${LD-ld} -melf32bsmip"
7212	  ;;
7213	*N32*)
7214	  LD="${LD-ld} -melf32bmipn32"
7215	  ;;
7216	*64-bit*)
7217	  LD="${LD-ld} -melf64bmip"
7218	;;
7219      esac
7220    else
7221      case `/usr/bin/file conftest.$ac_objext` in
7222	*32-bit*)
7223	  LD="${LD-ld} -32"
7224	  ;;
7225	*N32*)
7226	  LD="${LD-ld} -n32"
7227	  ;;
7228	*64-bit*)
7229	  LD="${LD-ld} -64"
7230	  ;;
7231      esac
7232    fi
7233  fi
7234  rm -rf conftest*
7235  ;;
7236
7237x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
7238s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
7239  # Find out which ABI we are using.
7240  echo 'int i;' > conftest.$ac_ext
7241  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7242  (eval $ac_compile) 2>&5
7243  ac_status=$?
7244  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7245  test $ac_status = 0; }; then
7246    case `/usr/bin/file conftest.o` in
7247      *32-bit*)
7248	case $host in
7249	  x86_64-*kfreebsd*-gnu)
7250	    LD="${LD-ld} -m elf_i386_fbsd"
7251	    ;;
7252	  x86_64-*linux*)
7253	    LD="${LD-ld} -m elf_i386"
7254	    ;;
7255	  ppc64-*linux*|powerpc64-*linux*)
7256	    LD="${LD-ld} -m elf32ppclinux"
7257	    ;;
7258	  s390x-*linux*)
7259	    LD="${LD-ld} -m elf_s390"
7260	    ;;
7261	  sparc64-*linux*)
7262	    LD="${LD-ld} -m elf32_sparc"
7263	    ;;
7264	esac
7265	;;
7266      *64-bit*)
7267	case $host in
7268	  x86_64-*kfreebsd*-gnu)
7269	    LD="${LD-ld} -m elf_x86_64_fbsd"
7270	    ;;
7271	  x86_64-*linux*)
7272	    LD="${LD-ld} -m elf_x86_64"
7273	    ;;
7274	  ppc*-*linux*|powerpc*-*linux*)
7275	    LD="${LD-ld} -m elf64ppc"
7276	    ;;
7277	  s390*-*linux*|s390*-*tpf*)
7278	    LD="${LD-ld} -m elf64_s390"
7279	    ;;
7280	  sparc*-*linux*)
7281	    LD="${LD-ld} -m elf64_sparc"
7282	    ;;
7283	esac
7284	;;
7285    esac
7286  fi
7287  rm -rf conftest*
7288  ;;
7289
7290*-*-sco3.2v5*)
7291  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7292  SAVE_CFLAGS="$CFLAGS"
7293  CFLAGS="$CFLAGS -belf"
7294  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
7295$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
7296if ${lt_cv_cc_needs_belf+:} false; then :
7297  $as_echo_n "(cached) " >&6
7298else
7299  ac_ext=c
7300ac_cpp='$CPP $CPPFLAGS'
7301ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7302ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7303ac_compiler_gnu=$ac_cv_c_compiler_gnu
7304
7305     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7306/* end confdefs.h.  */
7307
7308int
7309main ()
7310{
7311
7312  ;
7313  return 0;
7314}
7315_ACEOF
7316if ac_fn_c_try_link "$LINENO"; then :
7317  lt_cv_cc_needs_belf=yes
7318else
7319  lt_cv_cc_needs_belf=no
7320fi
7321rm -f core conftest.err conftest.$ac_objext \
7322    conftest$ac_exeext conftest.$ac_ext
7323     ac_ext=c
7324ac_cpp='$CPP $CPPFLAGS'
7325ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7326ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7327ac_compiler_gnu=$ac_cv_c_compiler_gnu
7328
7329fi
7330{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
7331$as_echo "$lt_cv_cc_needs_belf" >&6; }
7332  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
7333    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7334    CFLAGS="$SAVE_CFLAGS"
7335  fi
7336  ;;
7337*-*solaris*)
7338  # Find out which ABI we are using.
7339  echo 'int i;' > conftest.$ac_ext
7340  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7341  (eval $ac_compile) 2>&5
7342  ac_status=$?
7343  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7344  test $ac_status = 0; }; then
7345    case `/usr/bin/file conftest.o` in
7346    *64-bit*)
7347      case $lt_cv_prog_gnu_ld in
7348      yes*)
7349        case $host in
7350        i?86-*-solaris*)
7351          LD="${LD-ld} -m elf_x86_64"
7352          ;;
7353        sparc*-*-solaris*)
7354          LD="${LD-ld} -m elf64_sparc"
7355          ;;
7356        esac
7357        # GNU ld 2.21 introduced _sol2 emulations.  Use them if available.
7358        if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
7359          LD="${LD-ld}_sol2"
7360        fi
7361        ;;
7362      *)
7363	if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7364	  LD="${LD-ld} -64"
7365	fi
7366	;;
7367      esac
7368      ;;
7369    esac
7370  fi
7371  rm -rf conftest*
7372  ;;
7373esac
7374
7375need_locks="$enable_libtool_lock"
7376
7377if test -n "$ac_tool_prefix"; then
7378  # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
7379set dummy ${ac_tool_prefix}mt; ac_word=$2
7380{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7381$as_echo_n "checking for $ac_word... " >&6; }
7382if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
7383  $as_echo_n "(cached) " >&6
7384else
7385  if test -n "$MANIFEST_TOOL"; then
7386  ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
7387else
7388as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7389for as_dir in $PATH
7390do
7391  IFS=$as_save_IFS
7392  test -z "$as_dir" && as_dir=.
7393    for ac_exec_ext in '' $ac_executable_extensions; do
7394  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7395    ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
7396    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7397    break 2
7398  fi
7399done
7400  done
7401IFS=$as_save_IFS
7402
7403fi
7404fi
7405MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
7406if test -n "$MANIFEST_TOOL"; then
7407  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
7408$as_echo "$MANIFEST_TOOL" >&6; }
7409else
7410  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7411$as_echo "no" >&6; }
7412fi
7413
7414
7415fi
7416if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
7417  ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
7418  # Extract the first word of "mt", so it can be a program name with args.
7419set dummy mt; ac_word=$2
7420{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7421$as_echo_n "checking for $ac_word... " >&6; }
7422if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
7423  $as_echo_n "(cached) " >&6
7424else
7425  if test -n "$ac_ct_MANIFEST_TOOL"; then
7426  ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
7427else
7428as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7429for as_dir in $PATH
7430do
7431  IFS=$as_save_IFS
7432  test -z "$as_dir" && as_dir=.
7433    for ac_exec_ext in '' $ac_executable_extensions; do
7434  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7435    ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
7436    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7437    break 2
7438  fi
7439done
7440  done
7441IFS=$as_save_IFS
7442
7443fi
7444fi
7445ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
7446if test -n "$ac_ct_MANIFEST_TOOL"; then
7447  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
7448$as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
7449else
7450  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7451$as_echo "no" >&6; }
7452fi
7453
7454  if test "x$ac_ct_MANIFEST_TOOL" = x; then
7455    MANIFEST_TOOL=":"
7456  else
7457    case $cross_compiling:$ac_tool_warned in
7458yes:)
7459{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7460$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7461ac_tool_warned=yes ;;
7462esac
7463    MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
7464  fi
7465else
7466  MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
7467fi
7468
7469test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
7470{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
7471$as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
7472if ${lt_cv_path_mainfest_tool+:} false; then :
7473  $as_echo_n "(cached) " >&6
7474else
7475  lt_cv_path_mainfest_tool=no
7476  echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
7477  $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
7478  cat conftest.err >&5
7479  if $GREP 'Manifest Tool' conftest.out > /dev/null; then
7480    lt_cv_path_mainfest_tool=yes
7481  fi
7482  rm -f conftest*
7483fi
7484{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
7485$as_echo "$lt_cv_path_mainfest_tool" >&6; }
7486if test "x$lt_cv_path_mainfest_tool" != xyes; then
7487  MANIFEST_TOOL=:
7488fi
7489
7490
7491
7492
7493
7494
7495  case $host_os in
7496    rhapsody* | darwin*)
7497    if test -n "$ac_tool_prefix"; then
7498  # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7499set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7500{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7501$as_echo_n "checking for $ac_word... " >&6; }
7502if ${ac_cv_prog_DSYMUTIL+:} false; then :
7503  $as_echo_n "(cached) " >&6
7504else
7505  if test -n "$DSYMUTIL"; then
7506  ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7507else
7508as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7509for as_dir in $PATH
7510do
7511  IFS=$as_save_IFS
7512  test -z "$as_dir" && as_dir=.
7513    for ac_exec_ext in '' $ac_executable_extensions; do
7514  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7515    ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7516    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7517    break 2
7518  fi
7519done
7520  done
7521IFS=$as_save_IFS
7522
7523fi
7524fi
7525DSYMUTIL=$ac_cv_prog_DSYMUTIL
7526if test -n "$DSYMUTIL"; then
7527  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7528$as_echo "$DSYMUTIL" >&6; }
7529else
7530  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7531$as_echo "no" >&6; }
7532fi
7533
7534
7535fi
7536if test -z "$ac_cv_prog_DSYMUTIL"; then
7537  ac_ct_DSYMUTIL=$DSYMUTIL
7538  # Extract the first word of "dsymutil", so it can be a program name with args.
7539set dummy dsymutil; ac_word=$2
7540{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7541$as_echo_n "checking for $ac_word... " >&6; }
7542if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
7543  $as_echo_n "(cached) " >&6
7544else
7545  if test -n "$ac_ct_DSYMUTIL"; then
7546  ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7547else
7548as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7549for as_dir in $PATH
7550do
7551  IFS=$as_save_IFS
7552  test -z "$as_dir" && as_dir=.
7553    for ac_exec_ext in '' $ac_executable_extensions; do
7554  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7555    ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7556    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7557    break 2
7558  fi
7559done
7560  done
7561IFS=$as_save_IFS
7562
7563fi
7564fi
7565ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7566if test -n "$ac_ct_DSYMUTIL"; then
7567  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7568$as_echo "$ac_ct_DSYMUTIL" >&6; }
7569else
7570  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7571$as_echo "no" >&6; }
7572fi
7573
7574  if test "x$ac_ct_DSYMUTIL" = x; then
7575    DSYMUTIL=":"
7576  else
7577    case $cross_compiling:$ac_tool_warned in
7578yes:)
7579{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7580$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7581ac_tool_warned=yes ;;
7582esac
7583    DSYMUTIL=$ac_ct_DSYMUTIL
7584  fi
7585else
7586  DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7587fi
7588
7589    if test -n "$ac_tool_prefix"; then
7590  # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7591set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7592{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7593$as_echo_n "checking for $ac_word... " >&6; }
7594if ${ac_cv_prog_NMEDIT+:} false; then :
7595  $as_echo_n "(cached) " >&6
7596else
7597  if test -n "$NMEDIT"; then
7598  ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7599else
7600as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7601for as_dir in $PATH
7602do
7603  IFS=$as_save_IFS
7604  test -z "$as_dir" && as_dir=.
7605    for ac_exec_ext in '' $ac_executable_extensions; do
7606  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7607    ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7608    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7609    break 2
7610  fi
7611done
7612  done
7613IFS=$as_save_IFS
7614
7615fi
7616fi
7617NMEDIT=$ac_cv_prog_NMEDIT
7618if test -n "$NMEDIT"; then
7619  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7620$as_echo "$NMEDIT" >&6; }
7621else
7622  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7623$as_echo "no" >&6; }
7624fi
7625
7626
7627fi
7628if test -z "$ac_cv_prog_NMEDIT"; then
7629  ac_ct_NMEDIT=$NMEDIT
7630  # Extract the first word of "nmedit", so it can be a program name with args.
7631set dummy nmedit; ac_word=$2
7632{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7633$as_echo_n "checking for $ac_word... " >&6; }
7634if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
7635  $as_echo_n "(cached) " >&6
7636else
7637  if test -n "$ac_ct_NMEDIT"; then
7638  ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7639else
7640as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7641for as_dir in $PATH
7642do
7643  IFS=$as_save_IFS
7644  test -z "$as_dir" && as_dir=.
7645    for ac_exec_ext in '' $ac_executable_extensions; do
7646  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7647    ac_cv_prog_ac_ct_NMEDIT="nmedit"
7648    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7649    break 2
7650  fi
7651done
7652  done
7653IFS=$as_save_IFS
7654
7655fi
7656fi
7657ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7658if test -n "$ac_ct_NMEDIT"; then
7659  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7660$as_echo "$ac_ct_NMEDIT" >&6; }
7661else
7662  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7663$as_echo "no" >&6; }
7664fi
7665
7666  if test "x$ac_ct_NMEDIT" = x; then
7667    NMEDIT=":"
7668  else
7669    case $cross_compiling:$ac_tool_warned in
7670yes:)
7671{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7672$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7673ac_tool_warned=yes ;;
7674esac
7675    NMEDIT=$ac_ct_NMEDIT
7676  fi
7677else
7678  NMEDIT="$ac_cv_prog_NMEDIT"
7679fi
7680
7681    if test -n "$ac_tool_prefix"; then
7682  # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7683set dummy ${ac_tool_prefix}lipo; ac_word=$2
7684{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7685$as_echo_n "checking for $ac_word... " >&6; }
7686if ${ac_cv_prog_LIPO+:} false; then :
7687  $as_echo_n "(cached) " >&6
7688else
7689  if test -n "$LIPO"; then
7690  ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7691else
7692as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7693for as_dir in $PATH
7694do
7695  IFS=$as_save_IFS
7696  test -z "$as_dir" && as_dir=.
7697    for ac_exec_ext in '' $ac_executable_extensions; do
7698  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7699    ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7700    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7701    break 2
7702  fi
7703done
7704  done
7705IFS=$as_save_IFS
7706
7707fi
7708fi
7709LIPO=$ac_cv_prog_LIPO
7710if test -n "$LIPO"; then
7711  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7712$as_echo "$LIPO" >&6; }
7713else
7714  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7715$as_echo "no" >&6; }
7716fi
7717
7718
7719fi
7720if test -z "$ac_cv_prog_LIPO"; then
7721  ac_ct_LIPO=$LIPO
7722  # Extract the first word of "lipo", so it can be a program name with args.
7723set dummy lipo; ac_word=$2
7724{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7725$as_echo_n "checking for $ac_word... " >&6; }
7726if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
7727  $as_echo_n "(cached) " >&6
7728else
7729  if test -n "$ac_ct_LIPO"; then
7730  ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7731else
7732as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7733for as_dir in $PATH
7734do
7735  IFS=$as_save_IFS
7736  test -z "$as_dir" && as_dir=.
7737    for ac_exec_ext in '' $ac_executable_extensions; do
7738  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7739    ac_cv_prog_ac_ct_LIPO="lipo"
7740    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7741    break 2
7742  fi
7743done
7744  done
7745IFS=$as_save_IFS
7746
7747fi
7748fi
7749ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7750if test -n "$ac_ct_LIPO"; then
7751  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7752$as_echo "$ac_ct_LIPO" >&6; }
7753else
7754  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7755$as_echo "no" >&6; }
7756fi
7757
7758  if test "x$ac_ct_LIPO" = x; then
7759    LIPO=":"
7760  else
7761    case $cross_compiling:$ac_tool_warned in
7762yes:)
7763{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7764$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7765ac_tool_warned=yes ;;
7766esac
7767    LIPO=$ac_ct_LIPO
7768  fi
7769else
7770  LIPO="$ac_cv_prog_LIPO"
7771fi
7772
7773    if test -n "$ac_tool_prefix"; then
7774  # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7775set dummy ${ac_tool_prefix}otool; ac_word=$2
7776{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7777$as_echo_n "checking for $ac_word... " >&6; }
7778if ${ac_cv_prog_OTOOL+:} false; then :
7779  $as_echo_n "(cached) " >&6
7780else
7781  if test -n "$OTOOL"; then
7782  ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7783else
7784as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7785for as_dir in $PATH
7786do
7787  IFS=$as_save_IFS
7788  test -z "$as_dir" && as_dir=.
7789    for ac_exec_ext in '' $ac_executable_extensions; do
7790  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7791    ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7792    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7793    break 2
7794  fi
7795done
7796  done
7797IFS=$as_save_IFS
7798
7799fi
7800fi
7801OTOOL=$ac_cv_prog_OTOOL
7802if test -n "$OTOOL"; then
7803  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7804$as_echo "$OTOOL" >&6; }
7805else
7806  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7807$as_echo "no" >&6; }
7808fi
7809
7810
7811fi
7812if test -z "$ac_cv_prog_OTOOL"; then
7813  ac_ct_OTOOL=$OTOOL
7814  # Extract the first word of "otool", so it can be a program name with args.
7815set dummy otool; ac_word=$2
7816{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7817$as_echo_n "checking for $ac_word... " >&6; }
7818if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
7819  $as_echo_n "(cached) " >&6
7820else
7821  if test -n "$ac_ct_OTOOL"; then
7822  ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7823else
7824as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7825for as_dir in $PATH
7826do
7827  IFS=$as_save_IFS
7828  test -z "$as_dir" && as_dir=.
7829    for ac_exec_ext in '' $ac_executable_extensions; do
7830  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7831    ac_cv_prog_ac_ct_OTOOL="otool"
7832    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7833    break 2
7834  fi
7835done
7836  done
7837IFS=$as_save_IFS
7838
7839fi
7840fi
7841ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7842if test -n "$ac_ct_OTOOL"; then
7843  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7844$as_echo "$ac_ct_OTOOL" >&6; }
7845else
7846  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7847$as_echo "no" >&6; }
7848fi
7849
7850  if test "x$ac_ct_OTOOL" = x; then
7851    OTOOL=":"
7852  else
7853    case $cross_compiling:$ac_tool_warned in
7854yes:)
7855{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7856$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7857ac_tool_warned=yes ;;
7858esac
7859    OTOOL=$ac_ct_OTOOL
7860  fi
7861else
7862  OTOOL="$ac_cv_prog_OTOOL"
7863fi
7864
7865    if test -n "$ac_tool_prefix"; then
7866  # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7867set dummy ${ac_tool_prefix}otool64; ac_word=$2
7868{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7869$as_echo_n "checking for $ac_word... " >&6; }
7870if ${ac_cv_prog_OTOOL64+:} false; then :
7871  $as_echo_n "(cached) " >&6
7872else
7873  if test -n "$OTOOL64"; then
7874  ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7875else
7876as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7877for as_dir in $PATH
7878do
7879  IFS=$as_save_IFS
7880  test -z "$as_dir" && as_dir=.
7881    for ac_exec_ext in '' $ac_executable_extensions; do
7882  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7883    ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7884    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7885    break 2
7886  fi
7887done
7888  done
7889IFS=$as_save_IFS
7890
7891fi
7892fi
7893OTOOL64=$ac_cv_prog_OTOOL64
7894if test -n "$OTOOL64"; then
7895  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7896$as_echo "$OTOOL64" >&6; }
7897else
7898  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7899$as_echo "no" >&6; }
7900fi
7901
7902
7903fi
7904if test -z "$ac_cv_prog_OTOOL64"; then
7905  ac_ct_OTOOL64=$OTOOL64
7906  # Extract the first word of "otool64", so it can be a program name with args.
7907set dummy otool64; ac_word=$2
7908{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7909$as_echo_n "checking for $ac_word... " >&6; }
7910if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
7911  $as_echo_n "(cached) " >&6
7912else
7913  if test -n "$ac_ct_OTOOL64"; then
7914  ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7915else
7916as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7917for as_dir in $PATH
7918do
7919  IFS=$as_save_IFS
7920  test -z "$as_dir" && as_dir=.
7921    for ac_exec_ext in '' $ac_executable_extensions; do
7922  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7923    ac_cv_prog_ac_ct_OTOOL64="otool64"
7924    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7925    break 2
7926  fi
7927done
7928  done
7929IFS=$as_save_IFS
7930
7931fi
7932fi
7933ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7934if test -n "$ac_ct_OTOOL64"; then
7935  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7936$as_echo "$ac_ct_OTOOL64" >&6; }
7937else
7938  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7939$as_echo "no" >&6; }
7940fi
7941
7942  if test "x$ac_ct_OTOOL64" = x; then
7943    OTOOL64=":"
7944  else
7945    case $cross_compiling:$ac_tool_warned in
7946yes:)
7947{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7948$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7949ac_tool_warned=yes ;;
7950esac
7951    OTOOL64=$ac_ct_OTOOL64
7952  fi
7953else
7954  OTOOL64="$ac_cv_prog_OTOOL64"
7955fi
7956
7957
7958
7959
7960
7961
7962
7963
7964
7965
7966
7967
7968
7969
7970
7971
7972
7973
7974
7975
7976
7977
7978
7979
7980
7981
7982
7983    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7984$as_echo_n "checking for -single_module linker flag... " >&6; }
7985if ${lt_cv_apple_cc_single_mod+:} false; then :
7986  $as_echo_n "(cached) " >&6
7987else
7988  lt_cv_apple_cc_single_mod=no
7989      if test -z "${LT_MULTI_MODULE}"; then
7990	# By default we will add the -single_module flag. You can override
7991	# by either setting the environment variable LT_MULTI_MODULE
7992	# non-empty at configure time, or by adding -multi_module to the
7993	# link flags.
7994	rm -rf libconftest.dylib*
7995	echo "int foo(void){return 1;}" > conftest.c
7996	echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7997-dynamiclib -Wl,-single_module conftest.c" >&5
7998	$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7999	  -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
8000        _lt_result=$?
8001	# If there is a non-empty error log, and "single_module"
8002	# appears in it, assume the flag caused a linker warning
8003        if test -s conftest.err && $GREP single_module conftest.err; then
8004	  cat conftest.err >&5
8005	# Otherwise, if the output was created with a 0 exit code from
8006	# the compiler, it worked.
8007	elif test -f libconftest.dylib && test $_lt_result -eq 0; then
8008	  lt_cv_apple_cc_single_mod=yes
8009	else
8010	  cat conftest.err >&5
8011	fi
8012	rm -rf libconftest.dylib*
8013	rm -f conftest.*
8014      fi
8015fi
8016{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
8017$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
8018
8019    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
8020$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
8021if ${lt_cv_ld_exported_symbols_list+:} false; then :
8022  $as_echo_n "(cached) " >&6
8023else
8024  lt_cv_ld_exported_symbols_list=no
8025      save_LDFLAGS=$LDFLAGS
8026      echo "_main" > conftest.sym
8027      LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
8028      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8029/* end confdefs.h.  */
8030
8031int
8032main ()
8033{
8034
8035  ;
8036  return 0;
8037}
8038_ACEOF
8039if ac_fn_c_try_link "$LINENO"; then :
8040  lt_cv_ld_exported_symbols_list=yes
8041else
8042  lt_cv_ld_exported_symbols_list=no
8043fi
8044rm -f core conftest.err conftest.$ac_objext \
8045    conftest$ac_exeext conftest.$ac_ext
8046	LDFLAGS="$save_LDFLAGS"
8047
8048fi
8049{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
8050$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
8051
8052    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
8053$as_echo_n "checking for -force_load linker flag... " >&6; }
8054if ${lt_cv_ld_force_load+:} false; then :
8055  $as_echo_n "(cached) " >&6
8056else
8057  lt_cv_ld_force_load=no
8058      cat > conftest.c << _LT_EOF
8059int forced_loaded() { return 2;}
8060_LT_EOF
8061      echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
8062      $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
8063      echo "$AR cru libconftest.a conftest.o" >&5
8064      $AR cru libconftest.a conftest.o 2>&5
8065      echo "$RANLIB libconftest.a" >&5
8066      $RANLIB libconftest.a 2>&5
8067      cat > conftest.c << _LT_EOF
8068int main() { return 0;}
8069_LT_EOF
8070      echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
8071      $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
8072      _lt_result=$?
8073      if test -s conftest.err && $GREP force_load conftest.err; then
8074	cat conftest.err >&5
8075      elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
8076	lt_cv_ld_force_load=yes
8077      else
8078	cat conftest.err >&5
8079      fi
8080        rm -f conftest.err libconftest.a conftest conftest.c
8081        rm -rf conftest.dSYM
8082
8083fi
8084{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
8085$as_echo "$lt_cv_ld_force_load" >&6; }
8086    case $host_os in
8087    rhapsody* | darwin1.[012])
8088      _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
8089    darwin1.*)
8090      _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8091    darwin*) # darwin 5.x on
8092      # if running on 10.5 or later, the deployment target defaults
8093      # to the OS version, if on x86, and 10.4, the deployment
8094      # target defaults to 10.4. Don't you love it?
8095      case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
8096	10.0,*86*-darwin8*|10.0,*-darwin[91]*)
8097	  _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8098	10.[012]*)
8099	  _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8100	10.*)
8101	  _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8102      esac
8103    ;;
8104  esac
8105    if test "$lt_cv_apple_cc_single_mod" = "yes"; then
8106      _lt_dar_single_mod='$single_module'
8107    fi
8108    if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
8109      _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
8110    else
8111      _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
8112    fi
8113    if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
8114      _lt_dsymutil='~$DSYMUTIL $lib || :'
8115    else
8116      _lt_dsymutil=
8117    fi
8118    ;;
8119  esac
8120
8121ac_ext=c
8122ac_cpp='$CPP $CPPFLAGS'
8123ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8124ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8125ac_compiler_gnu=$ac_cv_c_compiler_gnu
8126{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
8127$as_echo_n "checking how to run the C preprocessor... " >&6; }
8128# On Suns, sometimes $CPP names a directory.
8129if test -n "$CPP" && test -d "$CPP"; then
8130  CPP=
8131fi
8132if test -z "$CPP"; then
8133  if ${ac_cv_prog_CPP+:} false; then :
8134  $as_echo_n "(cached) " >&6
8135else
8136      # Double quotes because CPP needs to be expanded
8137    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
8138    do
8139      ac_preproc_ok=false
8140for ac_c_preproc_warn_flag in '' yes
8141do
8142  # Use a header file that comes with gcc, so configuring glibc
8143  # with a fresh cross-compiler works.
8144  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8145  # <limits.h> exists even on freestanding compilers.
8146  # On the NeXT, cc -E runs the code through the compiler's parser,
8147  # not just through cpp. "Syntax error" is here to catch this case.
8148  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8149/* end confdefs.h.  */
8150#ifdef __STDC__
8151# include <limits.h>
8152#else
8153# include <assert.h>
8154#endif
8155		     Syntax error
8156_ACEOF
8157if ac_fn_c_try_cpp "$LINENO"; then :
8158
8159else
8160  # Broken: fails on valid input.
8161continue
8162fi
8163rm -f conftest.err conftest.i conftest.$ac_ext
8164
8165  # OK, works on sane cases.  Now check whether nonexistent headers
8166  # can be detected and how.
8167  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8168/* end confdefs.h.  */
8169#include <ac_nonexistent.h>
8170_ACEOF
8171if ac_fn_c_try_cpp "$LINENO"; then :
8172  # Broken: success on invalid input.
8173continue
8174else
8175  # Passes both tests.
8176ac_preproc_ok=:
8177break
8178fi
8179rm -f conftest.err conftest.i conftest.$ac_ext
8180
8181done
8182# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8183rm -f conftest.i conftest.err conftest.$ac_ext
8184if $ac_preproc_ok; then :
8185  break
8186fi
8187
8188    done
8189    ac_cv_prog_CPP=$CPP
8190
8191fi
8192  CPP=$ac_cv_prog_CPP
8193else
8194  ac_cv_prog_CPP=$CPP
8195fi
8196{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
8197$as_echo "$CPP" >&6; }
8198ac_preproc_ok=false
8199for ac_c_preproc_warn_flag in '' yes
8200do
8201  # Use a header file that comes with gcc, so configuring glibc
8202  # with a fresh cross-compiler works.
8203  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8204  # <limits.h> exists even on freestanding compilers.
8205  # On the NeXT, cc -E runs the code through the compiler's parser,
8206  # not just through cpp. "Syntax error" is here to catch this case.
8207  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8208/* end confdefs.h.  */
8209#ifdef __STDC__
8210# include <limits.h>
8211#else
8212# include <assert.h>
8213#endif
8214		     Syntax error
8215_ACEOF
8216if ac_fn_c_try_cpp "$LINENO"; then :
8217
8218else
8219  # Broken: fails on valid input.
8220continue
8221fi
8222rm -f conftest.err conftest.i conftest.$ac_ext
8223
8224  # OK, works on sane cases.  Now check whether nonexistent headers
8225  # can be detected and how.
8226  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8227/* end confdefs.h.  */
8228#include <ac_nonexistent.h>
8229_ACEOF
8230if ac_fn_c_try_cpp "$LINENO"; then :
8231  # Broken: success on invalid input.
8232continue
8233else
8234  # Passes both tests.
8235ac_preproc_ok=:
8236break
8237fi
8238rm -f conftest.err conftest.i conftest.$ac_ext
8239
8240done
8241# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8242rm -f conftest.i conftest.err conftest.$ac_ext
8243if $ac_preproc_ok; then :
8244
8245else
8246  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8247$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
8248as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
8249See \`config.log' for more details" "$LINENO" 5; }
8250fi
8251
8252ac_ext=c
8253ac_cpp='$CPP $CPPFLAGS'
8254ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8255ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8256ac_compiler_gnu=$ac_cv_c_compiler_gnu
8257
8258
8259{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
8260$as_echo_n "checking for ANSI C header files... " >&6; }
8261if ${ac_cv_header_stdc+:} false; then :
8262  $as_echo_n "(cached) " >&6
8263else
8264  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8265/* end confdefs.h.  */
8266#include <stdlib.h>
8267#include <stdarg.h>
8268#include <string.h>
8269#include <float.h>
8270
8271int
8272main ()
8273{
8274
8275  ;
8276  return 0;
8277}
8278_ACEOF
8279if ac_fn_c_try_compile "$LINENO"; then :
8280  ac_cv_header_stdc=yes
8281else
8282  ac_cv_header_stdc=no
8283fi
8284rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8285
8286if test $ac_cv_header_stdc = yes; then
8287  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
8288  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8289/* end confdefs.h.  */
8290#include <string.h>
8291
8292_ACEOF
8293if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8294  $EGREP "memchr" >/dev/null 2>&1; then :
8295
8296else
8297  ac_cv_header_stdc=no
8298fi
8299rm -f conftest*
8300
8301fi
8302
8303if test $ac_cv_header_stdc = yes; then
8304  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8305  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8306/* end confdefs.h.  */
8307#include <stdlib.h>
8308
8309_ACEOF
8310if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8311  $EGREP "free" >/dev/null 2>&1; then :
8312
8313else
8314  ac_cv_header_stdc=no
8315fi
8316rm -f conftest*
8317
8318fi
8319
8320if test $ac_cv_header_stdc = yes; then
8321  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8322  if test "$cross_compiling" = yes; then :
8323  :
8324else
8325  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8326/* end confdefs.h.  */
8327#include <ctype.h>
8328#include <stdlib.h>
8329#if ((' ' & 0x0FF) == 0x020)
8330# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8331# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8332#else
8333# define ISLOWER(c) \
8334		   (('a' <= (c) && (c) <= 'i') \
8335		     || ('j' <= (c) && (c) <= 'r') \
8336		     || ('s' <= (c) && (c) <= 'z'))
8337# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8338#endif
8339
8340#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8341int
8342main ()
8343{
8344  int i;
8345  for (i = 0; i < 256; i++)
8346    if (XOR (islower (i), ISLOWER (i))
8347	|| toupper (i) != TOUPPER (i))
8348      return 2;
8349  return 0;
8350}
8351_ACEOF
8352if ac_fn_c_try_run "$LINENO"; then :
8353
8354else
8355  ac_cv_header_stdc=no
8356fi
8357rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8358  conftest.$ac_objext conftest.beam conftest.$ac_ext
8359fi
8360
8361fi
8362fi
8363{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
8364$as_echo "$ac_cv_header_stdc" >&6; }
8365if test $ac_cv_header_stdc = yes; then
8366
8367$as_echo "#define STDC_HEADERS 1" >>confdefs.h
8368
8369fi
8370
8371# On IRIX 5.3, sys/types and inttypes.h are conflicting.
8372for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
8373		  inttypes.h stdint.h unistd.h
8374do :
8375  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8376ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
8377"
8378if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
8379  cat >>confdefs.h <<_ACEOF
8380#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8381_ACEOF
8382
8383fi
8384
8385done
8386
8387
8388for ac_header in dlfcn.h
8389do :
8390  ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
8391"
8392if test "x$ac_cv_header_dlfcn_h" = xyes; then :
8393  cat >>confdefs.h <<_ACEOF
8394#define HAVE_DLFCN_H 1
8395_ACEOF
8396
8397fi
8398
8399done
8400
8401
8402
8403
8404
8405# Set options
8406
8407
8408
8409        enable_dlopen=no
8410
8411
8412  enable_win32_dll=no
8413
8414
8415            # Check whether --enable-shared was given.
8416if test "${enable_shared+set}" = set; then :
8417  enableval=$enable_shared; p=${PACKAGE-default}
8418    case $enableval in
8419    yes) enable_shared=yes ;;
8420    no) enable_shared=no ;;
8421    *)
8422      enable_shared=no
8423      # Look at the argument we got.  We use all the common list separators.
8424      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8425      for pkg in $enableval; do
8426	IFS="$lt_save_ifs"
8427	if test "X$pkg" = "X$p"; then
8428	  enable_shared=yes
8429	fi
8430      done
8431      IFS="$lt_save_ifs"
8432      ;;
8433    esac
8434else
8435  enable_shared=yes
8436fi
8437
8438
8439
8440
8441
8442
8443
8444
8445
8446  # Check whether --enable-static was given.
8447if test "${enable_static+set}" = set; then :
8448  enableval=$enable_static; p=${PACKAGE-default}
8449    case $enableval in
8450    yes) enable_static=yes ;;
8451    no) enable_static=no ;;
8452    *)
8453     enable_static=no
8454      # Look at the argument we got.  We use all the common list separators.
8455      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8456      for pkg in $enableval; do
8457	IFS="$lt_save_ifs"
8458	if test "X$pkg" = "X$p"; then
8459	  enable_static=yes
8460	fi
8461      done
8462      IFS="$lt_save_ifs"
8463      ;;
8464    esac
8465else
8466  enable_static=yes
8467fi
8468
8469
8470
8471
8472
8473
8474
8475
8476
8477
8478# Check whether --with-pic was given.
8479if test "${with_pic+set}" = set; then :
8480  withval=$with_pic; lt_p=${PACKAGE-default}
8481    case $withval in
8482    yes|no) pic_mode=$withval ;;
8483    *)
8484      pic_mode=default
8485      # Look at the argument we got.  We use all the common list separators.
8486      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8487      for lt_pkg in $withval; do
8488	IFS="$lt_save_ifs"
8489	if test "X$lt_pkg" = "X$lt_p"; then
8490	  pic_mode=yes
8491	fi
8492      done
8493      IFS="$lt_save_ifs"
8494      ;;
8495    esac
8496else
8497  pic_mode=default
8498fi
8499
8500
8501test -z "$pic_mode" && pic_mode=default
8502
8503
8504
8505
8506
8507
8508
8509  # Check whether --enable-fast-install was given.
8510if test "${enable_fast_install+set}" = set; then :
8511  enableval=$enable_fast_install; p=${PACKAGE-default}
8512    case $enableval in
8513    yes) enable_fast_install=yes ;;
8514    no) enable_fast_install=no ;;
8515    *)
8516      enable_fast_install=no
8517      # Look at the argument we got.  We use all the common list separators.
8518      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8519      for pkg in $enableval; do
8520	IFS="$lt_save_ifs"
8521	if test "X$pkg" = "X$p"; then
8522	  enable_fast_install=yes
8523	fi
8524      done
8525      IFS="$lt_save_ifs"
8526      ;;
8527    esac
8528else
8529  enable_fast_install=yes
8530fi
8531
8532
8533
8534
8535
8536
8537
8538
8539
8540
8541
8542# This can be used to rebuild libtool when needed
8543LIBTOOL_DEPS="$ltmain"
8544
8545# Always use our own libtool.
8546LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8547
8548
8549
8550
8551
8552
8553
8554
8555
8556
8557
8558
8559
8560
8561
8562
8563
8564
8565
8566
8567
8568
8569
8570
8571
8572
8573
8574
8575
8576
8577test -z "$LN_S" && LN_S="ln -s"
8578
8579
8580
8581
8582
8583
8584
8585
8586
8587
8588
8589
8590
8591
8592if test -n "${ZSH_VERSION+set}" ; then
8593   setopt NO_GLOB_SUBST
8594fi
8595
8596{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8597$as_echo_n "checking for objdir... " >&6; }
8598if ${lt_cv_objdir+:} false; then :
8599  $as_echo_n "(cached) " >&6
8600else
8601  rm -f .libs 2>/dev/null
8602mkdir .libs 2>/dev/null
8603if test -d .libs; then
8604  lt_cv_objdir=.libs
8605else
8606  # MS-DOS does not allow filenames that begin with a dot.
8607  lt_cv_objdir=_libs
8608fi
8609rmdir .libs 2>/dev/null
8610fi
8611{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8612$as_echo "$lt_cv_objdir" >&6; }
8613objdir=$lt_cv_objdir
8614
8615
8616
8617
8618
8619cat >>confdefs.h <<_ACEOF
8620#define LT_OBJDIR "$lt_cv_objdir/"
8621_ACEOF
8622
8623
8624
8625
8626case $host_os in
8627aix3*)
8628  # AIX sometimes has problems with the GCC collect2 program.  For some
8629  # reason, if we set the COLLECT_NAMES environment variable, the problems
8630  # vanish in a puff of smoke.
8631  if test "X${COLLECT_NAMES+set}" != Xset; then
8632    COLLECT_NAMES=
8633    export COLLECT_NAMES
8634  fi
8635  ;;
8636esac
8637
8638# Global variables:
8639ofile=libtool
8640can_build_shared=yes
8641
8642# All known linkers require a `.a' archive for static linking (except MSVC,
8643# which needs '.lib').
8644libext=a
8645
8646with_gnu_ld="$lt_cv_prog_gnu_ld"
8647
8648old_CC="$CC"
8649old_CFLAGS="$CFLAGS"
8650
8651# Set sane defaults for various variables
8652test -z "$CC" && CC=cc
8653test -z "$LTCC" && LTCC=$CC
8654test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8655test -z "$LD" && LD=ld
8656test -z "$ac_objext" && ac_objext=o
8657
8658for cc_temp in $compiler""; do
8659  case $cc_temp in
8660    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8661    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8662    \-*) ;;
8663    *) break;;
8664  esac
8665done
8666cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
8667
8668
8669# Only perform the check for file, if the check method requires it
8670test -z "$MAGIC_CMD" && MAGIC_CMD=file
8671case $deplibs_check_method in
8672file_magic*)
8673  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8674    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8675$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8676if ${lt_cv_path_MAGIC_CMD+:} false; then :
8677  $as_echo_n "(cached) " >&6
8678else
8679  case $MAGIC_CMD in
8680[\\/*] |  ?:[\\/]*)
8681  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8682  ;;
8683*)
8684  lt_save_MAGIC_CMD="$MAGIC_CMD"
8685  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8686  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8687  for ac_dir in $ac_dummy; do
8688    IFS="$lt_save_ifs"
8689    test -z "$ac_dir" && ac_dir=.
8690    if test -f $ac_dir/${ac_tool_prefix}file; then
8691      lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8692      if test -n "$file_magic_test_file"; then
8693	case $deplibs_check_method in
8694	"file_magic "*)
8695	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8696	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8697	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8698	    $EGREP "$file_magic_regex" > /dev/null; then
8699	    :
8700	  else
8701	    cat <<_LT_EOF 1>&2
8702
8703*** Warning: the command libtool uses to detect shared libraries,
8704*** $file_magic_cmd, produces output that libtool cannot recognize.
8705*** The result is that libtool may fail to recognize shared libraries
8706*** as such.  This will affect the creation of libtool libraries that
8707*** depend on shared libraries, but programs linked with such libtool
8708*** libraries will work regardless of this problem.  Nevertheless, you
8709*** may want to report the problem to your system manager and/or to
8710*** bug-libtool@gnu.org
8711
8712_LT_EOF
8713	  fi ;;
8714	esac
8715      fi
8716      break
8717    fi
8718  done
8719  IFS="$lt_save_ifs"
8720  MAGIC_CMD="$lt_save_MAGIC_CMD"
8721  ;;
8722esac
8723fi
8724
8725MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8726if test -n "$MAGIC_CMD"; then
8727  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8728$as_echo "$MAGIC_CMD" >&6; }
8729else
8730  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8731$as_echo "no" >&6; }
8732fi
8733
8734
8735
8736
8737
8738if test -z "$lt_cv_path_MAGIC_CMD"; then
8739  if test -n "$ac_tool_prefix"; then
8740    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8741$as_echo_n "checking for file... " >&6; }
8742if ${lt_cv_path_MAGIC_CMD+:} false; then :
8743  $as_echo_n "(cached) " >&6
8744else
8745  case $MAGIC_CMD in
8746[\\/*] |  ?:[\\/]*)
8747  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8748  ;;
8749*)
8750  lt_save_MAGIC_CMD="$MAGIC_CMD"
8751  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8752  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8753  for ac_dir in $ac_dummy; do
8754    IFS="$lt_save_ifs"
8755    test -z "$ac_dir" && ac_dir=.
8756    if test -f $ac_dir/file; then
8757      lt_cv_path_MAGIC_CMD="$ac_dir/file"
8758      if test -n "$file_magic_test_file"; then
8759	case $deplibs_check_method in
8760	"file_magic "*)
8761	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8762	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8763	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8764	    $EGREP "$file_magic_regex" > /dev/null; then
8765	    :
8766	  else
8767	    cat <<_LT_EOF 1>&2
8768
8769*** Warning: the command libtool uses to detect shared libraries,
8770*** $file_magic_cmd, produces output that libtool cannot recognize.
8771*** The result is that libtool may fail to recognize shared libraries
8772*** as such.  This will affect the creation of libtool libraries that
8773*** depend on shared libraries, but programs linked with such libtool
8774*** libraries will work regardless of this problem.  Nevertheless, you
8775*** may want to report the problem to your system manager and/or to
8776*** bug-libtool@gnu.org
8777
8778_LT_EOF
8779	  fi ;;
8780	esac
8781      fi
8782      break
8783    fi
8784  done
8785  IFS="$lt_save_ifs"
8786  MAGIC_CMD="$lt_save_MAGIC_CMD"
8787  ;;
8788esac
8789fi
8790
8791MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8792if test -n "$MAGIC_CMD"; then
8793  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8794$as_echo "$MAGIC_CMD" >&6; }
8795else
8796  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8797$as_echo "no" >&6; }
8798fi
8799
8800
8801  else
8802    MAGIC_CMD=:
8803  fi
8804fi
8805
8806  fi
8807  ;;
8808esac
8809
8810# Use C for the default configuration in the libtool script
8811
8812lt_save_CC="$CC"
8813ac_ext=c
8814ac_cpp='$CPP $CPPFLAGS'
8815ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8816ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8817ac_compiler_gnu=$ac_cv_c_compiler_gnu
8818
8819
8820# Source file extension for C test sources.
8821ac_ext=c
8822
8823# Object file extension for compiled C test sources.
8824objext=o
8825objext=$objext
8826
8827# Code to be used in simple compile tests
8828lt_simple_compile_test_code="int some_variable = 0;"
8829
8830# Code to be used in simple link tests
8831lt_simple_link_test_code='int main(){return(0);}'
8832
8833
8834
8835
8836
8837
8838
8839# If no C compiler was specified, use CC.
8840LTCC=${LTCC-"$CC"}
8841
8842# If no C compiler flags were specified, use CFLAGS.
8843LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8844
8845# Allow CC to be a program name with arguments.
8846compiler=$CC
8847
8848# Save the default compiler, since it gets overwritten when the other
8849# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8850compiler_DEFAULT=$CC
8851
8852# save warnings/boilerplate of simple test code
8853ac_outfile=conftest.$ac_objext
8854echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8855eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8856_lt_compiler_boilerplate=`cat conftest.err`
8857$RM conftest*
8858
8859ac_outfile=conftest.$ac_objext
8860echo "$lt_simple_link_test_code" >conftest.$ac_ext
8861eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8862_lt_linker_boilerplate=`cat conftest.err`
8863$RM -r conftest*
8864
8865
8866if test -n "$compiler"; then
8867
8868lt_prog_compiler_no_builtin_flag=
8869
8870if test "$GCC" = yes; then
8871  case $cc_basename in
8872  nvcc*)
8873    lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8874  *)
8875    lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8876  esac
8877
8878  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8879$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8880if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
8881  $as_echo_n "(cached) " >&6
8882else
8883  lt_cv_prog_compiler_rtti_exceptions=no
8884   ac_outfile=conftest.$ac_objext
8885   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8886   lt_compiler_flag="-fno-rtti -fno-exceptions"
8887   # Insert the option either (1) after the last *FLAGS variable, or
8888   # (2) before a word containing "conftest.", or (3) at the end.
8889   # Note that $ac_compile itself does not contain backslashes and begins
8890   # with a dollar sign (not a hyphen), so the echo should work correctly.
8891   # The option is referenced via a variable to avoid confusing sed.
8892   lt_compile=`echo "$ac_compile" | $SED \
8893   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8894   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8895   -e 's:$: $lt_compiler_flag:'`
8896   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8897   (eval "$lt_compile" 2>conftest.err)
8898   ac_status=$?
8899   cat conftest.err >&5
8900   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8901   if (exit $ac_status) && test -s "$ac_outfile"; then
8902     # The compiler can only warn and ignore the option if not recognized
8903     # So say no if there are warnings other than the usual output.
8904     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8905     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8906     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8907       lt_cv_prog_compiler_rtti_exceptions=yes
8908     fi
8909   fi
8910   $RM conftest*
8911
8912fi
8913{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8914$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8915
8916if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8917    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8918else
8919    :
8920fi
8921
8922fi
8923
8924
8925
8926
8927
8928
8929  lt_prog_compiler_wl=
8930lt_prog_compiler_pic=
8931lt_prog_compiler_static=
8932
8933
8934  if test "$GCC" = yes; then
8935    lt_prog_compiler_wl='-Wl,'
8936    lt_prog_compiler_static='-static'
8937
8938    case $host_os in
8939      aix*)
8940      # All AIX code is PIC.
8941      if test "$host_cpu" = ia64; then
8942	# AIX 5 now supports IA64 processor
8943	lt_prog_compiler_static='-Bstatic'
8944      fi
8945      ;;
8946
8947    amigaos*)
8948      case $host_cpu in
8949      powerpc)
8950            # see comment about AmigaOS4 .so support
8951            lt_prog_compiler_pic='-fPIC'
8952        ;;
8953      m68k)
8954            # FIXME: we need at least 68020 code to build shared libraries, but
8955            # adding the `-m68020' flag to GCC prevents building anything better,
8956            # like `-m68040'.
8957            lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8958        ;;
8959      esac
8960      ;;
8961
8962    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8963      # PIC is the default for these OSes.
8964      ;;
8965
8966    mingw* | cygwin* | pw32* | os2* | cegcc*)
8967      # This hack is so that the source file can tell whether it is being
8968      # built for inclusion in a dll (and should export symbols for example).
8969      # Although the cygwin gcc ignores -fPIC, still need this for old-style
8970      # (--disable-auto-import) libraries
8971      lt_prog_compiler_pic='-DDLL_EXPORT'
8972      ;;
8973
8974    darwin* | rhapsody*)
8975      # PIC is the default on this platform
8976      # Common symbols not allowed in MH_DYLIB files
8977      lt_prog_compiler_pic='-fno-common'
8978      ;;
8979
8980    haiku*)
8981      # PIC is the default for Haiku.
8982      # The "-static" flag exists, but is broken.
8983      lt_prog_compiler_static=
8984      ;;
8985
8986    hpux*)
8987      # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8988      # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
8989      # sets the default TLS model and affects inlining.
8990      case $host_cpu in
8991      hppa*64*)
8992	# +Z the default
8993	;;
8994      *)
8995	lt_prog_compiler_pic='-fPIC'
8996	;;
8997      esac
8998      ;;
8999
9000    interix[3-9]*)
9001      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
9002      # Instead, we relocate shared libraries at runtime.
9003      ;;
9004
9005    msdosdjgpp*)
9006      # Just because we use GCC doesn't mean we suddenly get shared libraries
9007      # on systems that don't support them.
9008      lt_prog_compiler_can_build_shared=no
9009      enable_shared=no
9010      ;;
9011
9012    *nto* | *qnx*)
9013      # QNX uses GNU C++, but need to define -shared option too, otherwise
9014      # it will coredump.
9015      lt_prog_compiler_pic='-fPIC -shared'
9016      ;;
9017
9018    sysv4*MP*)
9019      if test -d /usr/nec; then
9020	lt_prog_compiler_pic=-Kconform_pic
9021      fi
9022      ;;
9023
9024    *)
9025      lt_prog_compiler_pic='-fPIC'
9026      ;;
9027    esac
9028
9029    case $cc_basename in
9030    nvcc*) # Cuda Compiler Driver 2.2
9031      lt_prog_compiler_wl='-Xlinker '
9032      if test -n "$lt_prog_compiler_pic"; then
9033        lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
9034      fi
9035      ;;
9036    esac
9037  else
9038    # PORTME Check for flag to pass linker flags through the system compiler.
9039    case $host_os in
9040    aix*)
9041      lt_prog_compiler_wl='-Wl,'
9042      if test "$host_cpu" = ia64; then
9043	# AIX 5 now supports IA64 processor
9044	lt_prog_compiler_static='-Bstatic'
9045      else
9046	lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
9047      fi
9048      ;;
9049
9050    mingw* | cygwin* | pw32* | os2* | cegcc*)
9051      # This hack is so that the source file can tell whether it is being
9052      # built for inclusion in a dll (and should export symbols for example).
9053      lt_prog_compiler_pic='-DDLL_EXPORT'
9054      ;;
9055
9056    hpux9* | hpux10* | hpux11*)
9057      lt_prog_compiler_wl='-Wl,'
9058      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
9059      # not for PA HP-UX.
9060      case $host_cpu in
9061      hppa*64*|ia64*)
9062	# +Z the default
9063	;;
9064      *)
9065	lt_prog_compiler_pic='+Z'
9066	;;
9067      esac
9068      # Is there a better lt_prog_compiler_static that works with the bundled CC?
9069      lt_prog_compiler_static='${wl}-a ${wl}archive'
9070      ;;
9071
9072    irix5* | irix6* | nonstopux*)
9073      lt_prog_compiler_wl='-Wl,'
9074      # PIC (with -KPIC) is the default.
9075      lt_prog_compiler_static='-non_shared'
9076      ;;
9077
9078    linux* | k*bsd*-gnu | kopensolaris*-gnu)
9079      case $cc_basename in
9080      # old Intel for x86_64 which still supported -KPIC.
9081      ecc*)
9082	lt_prog_compiler_wl='-Wl,'
9083	lt_prog_compiler_pic='-KPIC'
9084	lt_prog_compiler_static='-static'
9085        ;;
9086      # icc used to be incompatible with GCC.
9087      # ICC 10 doesn't accept -KPIC any more.
9088      icc* | ifort*)
9089	lt_prog_compiler_wl='-Wl,'
9090	lt_prog_compiler_pic='-fPIC'
9091	lt_prog_compiler_static='-static'
9092        ;;
9093      # Lahey Fortran 8.1.
9094      lf95*)
9095	lt_prog_compiler_wl='-Wl,'
9096	lt_prog_compiler_pic='--shared'
9097	lt_prog_compiler_static='--static'
9098	;;
9099      nagfor*)
9100	# NAG Fortran compiler
9101	lt_prog_compiler_wl='-Wl,-Wl,,'
9102	lt_prog_compiler_pic='-PIC'
9103	lt_prog_compiler_static='-Bstatic'
9104	;;
9105      pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
9106        # Portland Group compilers (*not* the Pentium gcc compiler,
9107	# which looks to be a dead project)
9108	lt_prog_compiler_wl='-Wl,'
9109	lt_prog_compiler_pic='-fpic'
9110	lt_prog_compiler_static='-Bstatic'
9111        ;;
9112      ccc*)
9113        lt_prog_compiler_wl='-Wl,'
9114        # All Alpha code is PIC.
9115        lt_prog_compiler_static='-non_shared'
9116        ;;
9117      xl* | bgxl* | bgf* | mpixl*)
9118	# IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
9119	lt_prog_compiler_wl='-Wl,'
9120	lt_prog_compiler_pic='-qpic'
9121	lt_prog_compiler_static='-qstaticlink'
9122	;;
9123      *)
9124	case `$CC -V 2>&1 | sed 5q` in
9125	*Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
9126	  # Sun Fortran 8.3 passes all unrecognized flags to the linker
9127	  lt_prog_compiler_pic='-KPIC'
9128	  lt_prog_compiler_static='-Bstatic'
9129	  lt_prog_compiler_wl=''
9130	  ;;
9131	*Sun\ F* | *Sun*Fortran*)
9132	  lt_prog_compiler_pic='-KPIC'
9133	  lt_prog_compiler_static='-Bstatic'
9134	  lt_prog_compiler_wl='-Qoption ld '
9135	  ;;
9136	*Sun\ C*)
9137	  # Sun C 5.9
9138	  lt_prog_compiler_pic='-KPIC'
9139	  lt_prog_compiler_static='-Bstatic'
9140	  lt_prog_compiler_wl='-Wl,'
9141	  ;;
9142        *Intel*\ [CF]*Compiler*)
9143	  lt_prog_compiler_wl='-Wl,'
9144	  lt_prog_compiler_pic='-fPIC'
9145	  lt_prog_compiler_static='-static'
9146	  ;;
9147	*Portland\ Group*)
9148	  lt_prog_compiler_wl='-Wl,'
9149	  lt_prog_compiler_pic='-fpic'
9150	  lt_prog_compiler_static='-Bstatic'
9151	  ;;
9152	esac
9153	;;
9154      esac
9155      ;;
9156
9157    newsos6)
9158      lt_prog_compiler_pic='-KPIC'
9159      lt_prog_compiler_static='-Bstatic'
9160      ;;
9161
9162    *nto* | *qnx*)
9163      # QNX uses GNU C++, but need to define -shared option too, otherwise
9164      # it will coredump.
9165      lt_prog_compiler_pic='-fPIC -shared'
9166      ;;
9167
9168    osf3* | osf4* | osf5*)
9169      lt_prog_compiler_wl='-Wl,'
9170      # All OSF/1 code is PIC.
9171      lt_prog_compiler_static='-non_shared'
9172      ;;
9173
9174    rdos*)
9175      lt_prog_compiler_static='-non_shared'
9176      ;;
9177
9178    solaris*)
9179      lt_prog_compiler_pic='-KPIC'
9180      lt_prog_compiler_static='-Bstatic'
9181      case $cc_basename in
9182      f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
9183	lt_prog_compiler_wl='-Qoption ld ';;
9184      *)
9185	lt_prog_compiler_wl='-Wl,';;
9186      esac
9187      ;;
9188
9189    sunos4*)
9190      lt_prog_compiler_wl='-Qoption ld '
9191      lt_prog_compiler_pic='-PIC'
9192      lt_prog_compiler_static='-Bstatic'
9193      ;;
9194
9195    sysv4 | sysv4.2uw2* | sysv4.3*)
9196      lt_prog_compiler_wl='-Wl,'
9197      lt_prog_compiler_pic='-KPIC'
9198      lt_prog_compiler_static='-Bstatic'
9199      ;;
9200
9201    sysv4*MP*)
9202      if test -d /usr/nec ;then
9203	lt_prog_compiler_pic='-Kconform_pic'
9204	lt_prog_compiler_static='-Bstatic'
9205      fi
9206      ;;
9207
9208    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
9209      lt_prog_compiler_wl='-Wl,'
9210      lt_prog_compiler_pic='-KPIC'
9211      lt_prog_compiler_static='-Bstatic'
9212      ;;
9213
9214    unicos*)
9215      lt_prog_compiler_wl='-Wl,'
9216      lt_prog_compiler_can_build_shared=no
9217      ;;
9218
9219    uts4*)
9220      lt_prog_compiler_pic='-pic'
9221      lt_prog_compiler_static='-Bstatic'
9222      ;;
9223
9224    *)
9225      lt_prog_compiler_can_build_shared=no
9226      ;;
9227    esac
9228  fi
9229
9230case $host_os in
9231  # For platforms which do not support PIC, -DPIC is meaningless:
9232  *djgpp*)
9233    lt_prog_compiler_pic=
9234    ;;
9235  *)
9236    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
9237    ;;
9238esac
9239
9240{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
9241$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
9242if ${lt_cv_prog_compiler_pic+:} false; then :
9243  $as_echo_n "(cached) " >&6
9244else
9245  lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
9246fi
9247{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
9248$as_echo "$lt_cv_prog_compiler_pic" >&6; }
9249lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
9250
9251#
9252# Check to make sure the PIC flag actually works.
9253#
9254if test -n "$lt_prog_compiler_pic"; then
9255  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
9256$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
9257if ${lt_cv_prog_compiler_pic_works+:} false; then :
9258  $as_echo_n "(cached) " >&6
9259else
9260  lt_cv_prog_compiler_pic_works=no
9261   ac_outfile=conftest.$ac_objext
9262   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9263   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
9264   # Insert the option either (1) after the last *FLAGS variable, or
9265   # (2) before a word containing "conftest.", or (3) at the end.
9266   # Note that $ac_compile itself does not contain backslashes and begins
9267   # with a dollar sign (not a hyphen), so the echo should work correctly.
9268   # The option is referenced via a variable to avoid confusing sed.
9269   lt_compile=`echo "$ac_compile" | $SED \
9270   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9271   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9272   -e 's:$: $lt_compiler_flag:'`
9273   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9274   (eval "$lt_compile" 2>conftest.err)
9275   ac_status=$?
9276   cat conftest.err >&5
9277   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9278   if (exit $ac_status) && test -s "$ac_outfile"; then
9279     # The compiler can only warn and ignore the option if not recognized
9280     # So say no if there are warnings other than the usual output.
9281     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9282     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9283     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9284       lt_cv_prog_compiler_pic_works=yes
9285     fi
9286   fi
9287   $RM conftest*
9288
9289fi
9290{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
9291$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
9292
9293if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
9294    case $lt_prog_compiler_pic in
9295     "" | " "*) ;;
9296     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9297     esac
9298else
9299    lt_prog_compiler_pic=
9300     lt_prog_compiler_can_build_shared=no
9301fi
9302
9303fi
9304
9305
9306
9307
9308
9309
9310
9311
9312
9313
9314
9315#
9316# Check to make sure the static flag actually works.
9317#
9318wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9319{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9320$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
9321if ${lt_cv_prog_compiler_static_works+:} false; then :
9322  $as_echo_n "(cached) " >&6
9323else
9324  lt_cv_prog_compiler_static_works=no
9325   save_LDFLAGS="$LDFLAGS"
9326   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9327   echo "$lt_simple_link_test_code" > conftest.$ac_ext
9328   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9329     # The linker can only warn and ignore the option if not recognized
9330     # So say no if there are warnings
9331     if test -s conftest.err; then
9332       # Append any errors to the config.log.
9333       cat conftest.err 1>&5
9334       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9335       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9336       if diff conftest.exp conftest.er2 >/dev/null; then
9337         lt_cv_prog_compiler_static_works=yes
9338       fi
9339     else
9340       lt_cv_prog_compiler_static_works=yes
9341     fi
9342   fi
9343   $RM -r conftest*
9344   LDFLAGS="$save_LDFLAGS"
9345
9346fi
9347{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
9348$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
9349
9350if test x"$lt_cv_prog_compiler_static_works" = xyes; then
9351    :
9352else
9353    lt_prog_compiler_static=
9354fi
9355
9356
9357
9358
9359
9360
9361
9362  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9363$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9364if ${lt_cv_prog_compiler_c_o+:} false; then :
9365  $as_echo_n "(cached) " >&6
9366else
9367  lt_cv_prog_compiler_c_o=no
9368   $RM -r conftest 2>/dev/null
9369   mkdir conftest
9370   cd conftest
9371   mkdir out
9372   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9373
9374   lt_compiler_flag="-o out/conftest2.$ac_objext"
9375   # Insert the option either (1) after the last *FLAGS variable, or
9376   # (2) before a word containing "conftest.", or (3) at the end.
9377   # Note that $ac_compile itself does not contain backslashes and begins
9378   # with a dollar sign (not a hyphen), so the echo should work correctly.
9379   lt_compile=`echo "$ac_compile" | $SED \
9380   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9381   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9382   -e 's:$: $lt_compiler_flag:'`
9383   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9384   (eval "$lt_compile" 2>out/conftest.err)
9385   ac_status=$?
9386   cat out/conftest.err >&5
9387   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9388   if (exit $ac_status) && test -s out/conftest2.$ac_objext
9389   then
9390     # The compiler can only warn and ignore the option if not recognized
9391     # So say no if there are warnings
9392     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9393     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9394     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9395       lt_cv_prog_compiler_c_o=yes
9396     fi
9397   fi
9398   chmod u+w . 2>&5
9399   $RM conftest*
9400   # SGI C++ compiler will create directory out/ii_files/ for
9401   # template instantiation
9402   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9403   $RM out/* && rmdir out
9404   cd ..
9405   $RM -r conftest
9406   $RM conftest*
9407
9408fi
9409{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9410$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9411
9412
9413
9414
9415
9416
9417  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9418$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9419if ${lt_cv_prog_compiler_c_o+:} false; then :
9420  $as_echo_n "(cached) " >&6
9421else
9422  lt_cv_prog_compiler_c_o=no
9423   $RM -r conftest 2>/dev/null
9424   mkdir conftest
9425   cd conftest
9426   mkdir out
9427   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9428
9429   lt_compiler_flag="-o out/conftest2.$ac_objext"
9430   # Insert the option either (1) after the last *FLAGS variable, or
9431   # (2) before a word containing "conftest.", or (3) at the end.
9432   # Note that $ac_compile itself does not contain backslashes and begins
9433   # with a dollar sign (not a hyphen), so the echo should work correctly.
9434   lt_compile=`echo "$ac_compile" | $SED \
9435   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9436   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9437   -e 's:$: $lt_compiler_flag:'`
9438   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9439   (eval "$lt_compile" 2>out/conftest.err)
9440   ac_status=$?
9441   cat out/conftest.err >&5
9442   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9443   if (exit $ac_status) && test -s out/conftest2.$ac_objext
9444   then
9445     # The compiler can only warn and ignore the option if not recognized
9446     # So say no if there are warnings
9447     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9448     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9449     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9450       lt_cv_prog_compiler_c_o=yes
9451     fi
9452   fi
9453   chmod u+w . 2>&5
9454   $RM conftest*
9455   # SGI C++ compiler will create directory out/ii_files/ for
9456   # template instantiation
9457   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9458   $RM out/* && rmdir out
9459   cd ..
9460   $RM -r conftest
9461   $RM conftest*
9462
9463fi
9464{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9465$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9466
9467
9468
9469
9470hard_links="nottested"
9471if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
9472  # do not overwrite the value of need_locks provided by the user
9473  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
9474$as_echo_n "checking if we can lock with hard links... " >&6; }
9475  hard_links=yes
9476  $RM conftest*
9477  ln conftest.a conftest.b 2>/dev/null && hard_links=no
9478  touch conftest.a
9479  ln conftest.a conftest.b 2>&5 || hard_links=no
9480  ln conftest.a conftest.b 2>/dev/null && hard_links=no
9481  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
9482$as_echo "$hard_links" >&6; }
9483  if test "$hard_links" = no; then
9484    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
9485$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
9486    need_locks=warn
9487  fi
9488else
9489  need_locks=no
9490fi
9491
9492
9493
9494
9495
9496
9497  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9498$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9499
9500  runpath_var=
9501  allow_undefined_flag=
9502  always_export_symbols=no
9503  archive_cmds=
9504  archive_expsym_cmds=
9505  compiler_needs_object=no
9506  enable_shared_with_static_runtimes=no
9507  export_dynamic_flag_spec=
9508  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9509  hardcode_automatic=no
9510  hardcode_direct=no
9511  hardcode_direct_absolute=no
9512  hardcode_libdir_flag_spec=
9513  hardcode_libdir_separator=
9514  hardcode_minus_L=no
9515  hardcode_shlibpath_var=unsupported
9516  inherit_rpath=no
9517  link_all_deplibs=unknown
9518  module_cmds=
9519  module_expsym_cmds=
9520  old_archive_from_new_cmds=
9521  old_archive_from_expsyms_cmds=
9522  thread_safe_flag_spec=
9523  whole_archive_flag_spec=
9524  # include_expsyms should be a list of space-separated symbols to be *always*
9525  # included in the symbol list
9526  include_expsyms=
9527  # exclude_expsyms can be an extended regexp of symbols to exclude
9528  # it will be wrapped by ` (' and `)$', so one must not match beginning or
9529  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
9530  # as well as any symbol that contains `d'.
9531  exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9532  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9533  # platforms (ab)use it in PIC code, but their linkers get confused if
9534  # the symbol is explicitly referenced.  Since portable code cannot
9535  # rely on this symbol name, it's probably fine to never include it in
9536  # preloaded symbol tables.
9537  # Exclude shared library initialization/finalization symbols.
9538  extract_expsyms_cmds=
9539
9540  case $host_os in
9541  cygwin* | mingw* | pw32* | cegcc*)
9542    # FIXME: the MSVC++ port hasn't been tested in a loooong time
9543    # When not using gcc, we currently assume that we are using
9544    # Microsoft Visual C++.
9545    if test "$GCC" != yes; then
9546      with_gnu_ld=no
9547    fi
9548    ;;
9549  interix*)
9550    # we just hope/assume this is gcc and not c89 (= MSVC++)
9551    with_gnu_ld=yes
9552    ;;
9553  openbsd*)
9554    with_gnu_ld=no
9555    ;;
9556  esac
9557
9558  ld_shlibs=yes
9559
9560  # On some targets, GNU ld is compatible enough with the native linker
9561  # that we're better off using the native interface for both.
9562  lt_use_gnu_ld_interface=no
9563  if test "$with_gnu_ld" = yes; then
9564    case $host_os in
9565      aix*)
9566	# The AIX port of GNU ld has always aspired to compatibility
9567	# with the native linker.  However, as the warning in the GNU ld
9568	# block says, versions before 2.19.5* couldn't really create working
9569	# shared libraries, regardless of the interface used.
9570	case `$LD -v 2>&1` in
9571	  *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
9572	  *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
9573	  *\ \(GNU\ Binutils\)\ [3-9]*) ;;
9574	  *)
9575	    lt_use_gnu_ld_interface=yes
9576	    ;;
9577	esac
9578	;;
9579      *)
9580	lt_use_gnu_ld_interface=yes
9581	;;
9582    esac
9583  fi
9584
9585  if test "$lt_use_gnu_ld_interface" = yes; then
9586    # If archive_cmds runs LD, not CC, wlarc should be empty
9587    wlarc='${wl}'
9588
9589    # Set some defaults for GNU ld with shared library support. These
9590    # are reset later if shared libraries are not supported. Putting them
9591    # here allows them to be overridden if necessary.
9592    runpath_var=LD_RUN_PATH
9593    hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9594    export_dynamic_flag_spec='${wl}--export-dynamic'
9595    # ancient GNU ld didn't support --whole-archive et. al.
9596    if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9597      whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9598    else
9599      whole_archive_flag_spec=
9600    fi
9601    supports_anon_versioning=no
9602    case `$LD -v 2>&1` in
9603      *GNU\ gold*) supports_anon_versioning=yes ;;
9604      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9605      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9606      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9607      *\ 2.11.*) ;; # other 2.11 versions
9608      *) supports_anon_versioning=yes ;;
9609    esac
9610
9611    # See if GNU ld supports shared libraries.
9612    case $host_os in
9613    aix[3-9]*)
9614      # On AIX/PPC, the GNU linker is very broken
9615      if test "$host_cpu" != ia64; then
9616	ld_shlibs=no
9617	cat <<_LT_EOF 1>&2
9618
9619*** Warning: the GNU linker, at least up to release 2.19, is reported
9620*** to be unable to reliably create shared libraries on AIX.
9621*** Therefore, libtool is disabling shared libraries support.  If you
9622*** really care for shared libraries, you may want to install binutils
9623*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9624*** You will then need to restart the configuration process.
9625
9626_LT_EOF
9627      fi
9628      ;;
9629
9630    amigaos*)
9631      case $host_cpu in
9632      powerpc)
9633            # see comment about AmigaOS4 .so support
9634            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9635            archive_expsym_cmds=''
9636        ;;
9637      m68k)
9638            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)'
9639            hardcode_libdir_flag_spec='-L$libdir'
9640            hardcode_minus_L=yes
9641        ;;
9642      esac
9643      ;;
9644
9645    beos*)
9646      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9647	allow_undefined_flag=unsupported
9648	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9649	# support --undefined.  This deserves some investigation.  FIXME
9650	archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9651      else
9652	ld_shlibs=no
9653      fi
9654      ;;
9655
9656    cygwin* | mingw* | pw32* | cegcc*)
9657      # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9658      # as there is no search path for DLLs.
9659      hardcode_libdir_flag_spec='-L$libdir'
9660      export_dynamic_flag_spec='${wl}--export-all-symbols'
9661      allow_undefined_flag=unsupported
9662      always_export_symbols=no
9663      enable_shared_with_static_runtimes=yes
9664      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'
9665      exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
9666
9667      if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9668        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9669	# If the export-symbols file already is a .def file (1st line
9670	# is EXPORTS), use it as is; otherwise, prepend...
9671	archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9672	  cp $export_symbols $output_objdir/$soname.def;
9673	else
9674	  echo EXPORTS > $output_objdir/$soname.def;
9675	  cat $export_symbols >> $output_objdir/$soname.def;
9676	fi~
9677	$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9678      else
9679	ld_shlibs=no
9680      fi
9681      ;;
9682
9683    haiku*)
9684      archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9685      link_all_deplibs=yes
9686      ;;
9687
9688    interix[3-9]*)
9689      hardcode_direct=no
9690      hardcode_shlibpath_var=no
9691      hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9692      export_dynamic_flag_spec='${wl}-E'
9693      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9694      # Instead, shared libraries are loaded at an image base (0x10000000 by
9695      # default) and relocated if they conflict, which is a slow very memory
9696      # consuming and fragmenting process.  To avoid this, we pick a random,
9697      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9698      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
9699      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9700      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'
9701      ;;
9702
9703    gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
9704      tmp_diet=no
9705      if test "$host_os" = linux-dietlibc; then
9706	case $cc_basename in
9707	  diet\ *) tmp_diet=yes;;	# linux-dietlibc with static linking (!diet-dyn)
9708	esac
9709      fi
9710      if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9711	 && test "$tmp_diet" = no
9712      then
9713	tmp_addflag=' $pic_flag'
9714	tmp_sharedflag='-shared'
9715	case $cc_basename,$host_cpu in
9716        pgcc*)				# Portland Group C compiler
9717	  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'
9718	  tmp_addflag=' $pic_flag'
9719	  ;;
9720	pgf77* | pgf90* | pgf95* | pgfortran*)
9721					# Portland Group f77 and f90 compilers
9722	  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'
9723	  tmp_addflag=' $pic_flag -Mnomain' ;;
9724	ecc*,ia64* | icc*,ia64*)	# Intel C compiler on ia64
9725	  tmp_addflag=' -i_dynamic' ;;
9726	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
9727	  tmp_addflag=' -i_dynamic -nofor_main' ;;
9728	ifc* | ifort*)			# Intel Fortran compiler
9729	  tmp_addflag=' -nofor_main' ;;
9730	lf95*)				# Lahey Fortran 8.1
9731	  whole_archive_flag_spec=
9732	  tmp_sharedflag='--shared' ;;
9733	xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9734	  tmp_sharedflag='-qmkshrobj'
9735	  tmp_addflag= ;;
9736	nvcc*)	# Cuda Compiler Driver 2.2
9737	  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'
9738	  compiler_needs_object=yes
9739	  ;;
9740	esac
9741	case `$CC -V 2>&1 | sed 5q` in
9742	*Sun\ C*)			# Sun C 5.9
9743	  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'
9744	  compiler_needs_object=yes
9745	  tmp_sharedflag='-G' ;;
9746	*Sun\ F*)			# Sun Fortran 8.3
9747	  tmp_sharedflag='-G' ;;
9748	esac
9749	archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9750
9751        if test "x$supports_anon_versioning" = xyes; then
9752          archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9753	    cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9754	    echo "local: *; };" >> $output_objdir/$libname.ver~
9755	    $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9756        fi
9757
9758	case $cc_basename in
9759	xlf* | bgf* | bgxlf* | mpixlf*)
9760	  # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9761	  whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9762	  hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9763	  archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
9764	  if test "x$supports_anon_versioning" = xyes; then
9765	    archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9766	      cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9767	      echo "local: *; };" >> $output_objdir/$libname.ver~
9768	      $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9769	  fi
9770	  ;;
9771	esac
9772      else
9773        ld_shlibs=no
9774      fi
9775      ;;
9776
9777    netbsd*)
9778      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9779	archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9780	wlarc=
9781      else
9782	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9783	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9784      fi
9785      ;;
9786
9787    solaris*)
9788      if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9789	ld_shlibs=no
9790	cat <<_LT_EOF 1>&2
9791
9792*** Warning: The releases 2.8.* of the GNU linker cannot reliably
9793*** create shared libraries on Solaris systems.  Therefore, libtool
9794*** is disabling shared libraries support.  We urge you to upgrade GNU
9795*** binutils to release 2.9.1 or newer.  Another option is to modify
9796*** your PATH or compiler configuration so that the native linker is
9797*** used, and then restart.
9798
9799_LT_EOF
9800      elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9801	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9802	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9803      else
9804	ld_shlibs=no
9805      fi
9806      ;;
9807
9808    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9809      case `$LD -v 2>&1` in
9810        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9811	ld_shlibs=no
9812	cat <<_LT_EOF 1>&2
9813
9814*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9815*** reliably create shared libraries on SCO systems.  Therefore, libtool
9816*** is disabling shared libraries support.  We urge you to upgrade GNU
9817*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
9818*** your PATH or compiler configuration so that the native linker is
9819*** used, and then restart.
9820
9821_LT_EOF
9822	;;
9823	*)
9824	  # For security reasons, it is highly recommended that you always
9825	  # use absolute paths for naming shared libraries, and exclude the
9826	  # DT_RUNPATH tag from executables and libraries.  But doing so
9827	  # requires that you compile everything twice, which is a pain.
9828	  if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9829	    hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9830	    archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9831	    archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9832	  else
9833	    ld_shlibs=no
9834	  fi
9835	;;
9836      esac
9837      ;;
9838
9839    sunos4*)
9840      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9841      wlarc=
9842      hardcode_direct=yes
9843      hardcode_shlibpath_var=no
9844      ;;
9845
9846    *)
9847      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9848	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9849	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9850      else
9851	ld_shlibs=no
9852      fi
9853      ;;
9854    esac
9855
9856    if test "$ld_shlibs" = no; then
9857      runpath_var=
9858      hardcode_libdir_flag_spec=
9859      export_dynamic_flag_spec=
9860      whole_archive_flag_spec=
9861    fi
9862  else
9863    # PORTME fill in a description of your system's linker (not GNU ld)
9864    case $host_os in
9865    aix3*)
9866      allow_undefined_flag=unsupported
9867      always_export_symbols=yes
9868      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'
9869      # Note: this linker hardcodes the directories in LIBPATH if there
9870      # are no directories specified by -L.
9871      hardcode_minus_L=yes
9872      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9873	# Neither direct hardcoding nor static linking is supported with a
9874	# broken collect2.
9875	hardcode_direct=unsupported
9876      fi
9877      ;;
9878
9879    aix[4-9]*)
9880      if test "$host_cpu" = ia64; then
9881	# On IA64, the linker does run time linking by default, so we don't
9882	# have to do anything special.
9883	aix_use_runtimelinking=no
9884	exp_sym_flag='-Bexport'
9885	no_entry_flag=""
9886      else
9887	# If we're using GNU nm, then we don't want the "-C" option.
9888	# -C means demangle to AIX nm, but means don't demangle with GNU nm
9889	# Also, AIX nm treats weak defined symbols like other global
9890	# defined symbols, whereas GNU nm marks them as "W".
9891	if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9892	  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'
9893	else
9894	  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'
9895	fi
9896	aix_use_runtimelinking=no
9897
9898	# Test if we are trying to use run time linking or normal
9899	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
9900	# need to do runtime linking.
9901	case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9902	  for ld_flag in $LDFLAGS; do
9903	  if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9904	    aix_use_runtimelinking=yes
9905	    break
9906	  fi
9907	  done
9908	  ;;
9909	esac
9910
9911	exp_sym_flag='-bexport'
9912	no_entry_flag='-bnoentry'
9913      fi
9914
9915      # When large executables or shared objects are built, AIX ld can
9916      # have problems creating the table of contents.  If linking a library
9917      # or program results in "error TOC overflow" add -mminimal-toc to
9918      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
9919      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9920
9921      archive_cmds=''
9922      hardcode_direct=yes
9923      hardcode_direct_absolute=yes
9924      hardcode_libdir_separator=':'
9925      link_all_deplibs=yes
9926      file_list_spec='${wl}-f,'
9927
9928      if test "$GCC" = yes; then
9929	case $host_os in aix4.[012]|aix4.[012].*)
9930	# We only want to do this on AIX 4.2 and lower, the check
9931	# below for broken collect2 doesn't work under 4.3+
9932	  collect2name=`${CC} -print-prog-name=collect2`
9933	  if test -f "$collect2name" &&
9934	   strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9935	  then
9936	  # We have reworked collect2
9937	  :
9938	  else
9939	  # We have old collect2
9940	  hardcode_direct=unsupported
9941	  # It fails to find uninstalled libraries when the uninstalled
9942	  # path is not listed in the libpath.  Setting hardcode_minus_L
9943	  # to unsupported forces relinking
9944	  hardcode_minus_L=yes
9945	  hardcode_libdir_flag_spec='-L$libdir'
9946	  hardcode_libdir_separator=
9947	  fi
9948	  ;;
9949	esac
9950	shared_flag='-shared'
9951	if test "$aix_use_runtimelinking" = yes; then
9952	  shared_flag="$shared_flag "'${wl}-G'
9953	fi
9954      else
9955	# not using gcc
9956	if test "$host_cpu" = ia64; then
9957	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9958	# chokes on -Wl,-G. The following line is correct:
9959	  shared_flag='-G'
9960	else
9961	  if test "$aix_use_runtimelinking" = yes; then
9962	    shared_flag='${wl}-G'
9963	  else
9964	    shared_flag='${wl}-bM:SRE'
9965	  fi
9966	fi
9967      fi
9968
9969      export_dynamic_flag_spec='${wl}-bexpall'
9970      # It seems that -bexpall does not export symbols beginning with
9971      # underscore (_), so it is better to generate a list of symbols to export.
9972      always_export_symbols=yes
9973      if test "$aix_use_runtimelinking" = yes; then
9974	# Warning - without using the other runtime loading flags (-brtl),
9975	# -berok will link without error, but may produce a broken library.
9976	allow_undefined_flag='-berok'
9977        # Determine the default libpath from the value encoded in an
9978        # empty executable.
9979        if test "${lt_cv_aix_libpath+set}" = set; then
9980  aix_libpath=$lt_cv_aix_libpath
9981else
9982  if ${lt_cv_aix_libpath_+:} false; then :
9983  $as_echo_n "(cached) " >&6
9984else
9985  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9986/* end confdefs.h.  */
9987
9988int
9989main ()
9990{
9991
9992  ;
9993  return 0;
9994}
9995_ACEOF
9996if ac_fn_c_try_link "$LINENO"; then :
9997
9998  lt_aix_libpath_sed='
9999      /Import File Strings/,/^$/ {
10000	  /^0/ {
10001	      s/^0  *\([^ ]*\) *$/\1/
10002	      p
10003	  }
10004      }'
10005  lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10006  # Check for a 64-bit object if we didn't find anything.
10007  if test -z "$lt_cv_aix_libpath_"; then
10008    lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10009  fi
10010fi
10011rm -f core conftest.err conftest.$ac_objext \
10012    conftest$ac_exeext conftest.$ac_ext
10013  if test -z "$lt_cv_aix_libpath_"; then
10014    lt_cv_aix_libpath_="/usr/lib:/lib"
10015  fi
10016
10017fi
10018
10019  aix_libpath=$lt_cv_aix_libpath_
10020fi
10021
10022        hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10023        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"
10024      else
10025	if test "$host_cpu" = ia64; then
10026	  hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
10027	  allow_undefined_flag="-z nodefs"
10028	  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"
10029	else
10030	 # Determine the default libpath from the value encoded in an
10031	 # empty executable.
10032	 if test "${lt_cv_aix_libpath+set}" = set; then
10033  aix_libpath=$lt_cv_aix_libpath
10034else
10035  if ${lt_cv_aix_libpath_+:} false; then :
10036  $as_echo_n "(cached) " >&6
10037else
10038  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10039/* end confdefs.h.  */
10040
10041int
10042main ()
10043{
10044
10045  ;
10046  return 0;
10047}
10048_ACEOF
10049if ac_fn_c_try_link "$LINENO"; then :
10050
10051  lt_aix_libpath_sed='
10052      /Import File Strings/,/^$/ {
10053	  /^0/ {
10054	      s/^0  *\([^ ]*\) *$/\1/
10055	      p
10056	  }
10057      }'
10058  lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10059  # Check for a 64-bit object if we didn't find anything.
10060  if test -z "$lt_cv_aix_libpath_"; then
10061    lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10062  fi
10063fi
10064rm -f core conftest.err conftest.$ac_objext \
10065    conftest$ac_exeext conftest.$ac_ext
10066  if test -z "$lt_cv_aix_libpath_"; then
10067    lt_cv_aix_libpath_="/usr/lib:/lib"
10068  fi
10069
10070fi
10071
10072  aix_libpath=$lt_cv_aix_libpath_
10073fi
10074
10075	 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10076	  # Warning - without using the other run time loading flags,
10077	  # -berok will link without error, but may produce a broken library.
10078	  no_undefined_flag=' ${wl}-bernotok'
10079	  allow_undefined_flag=' ${wl}-berok'
10080	  if test "$with_gnu_ld" = yes; then
10081	    # We only use this code for GNU lds that support --whole-archive.
10082	    whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
10083	  else
10084	    # Exported symbols can be pulled into shared objects from archives
10085	    whole_archive_flag_spec='$convenience'
10086	  fi
10087	  archive_cmds_need_lc=yes
10088	  # This is similar to how AIX traditionally builds its shared libraries.
10089	  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'
10090	fi
10091      fi
10092      ;;
10093
10094    amigaos*)
10095      case $host_cpu in
10096      powerpc)
10097            # see comment about AmigaOS4 .so support
10098            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10099            archive_expsym_cmds=''
10100        ;;
10101      m68k)
10102            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)'
10103            hardcode_libdir_flag_spec='-L$libdir'
10104            hardcode_minus_L=yes
10105        ;;
10106      esac
10107      ;;
10108
10109    bsdi[45]*)
10110      export_dynamic_flag_spec=-rdynamic
10111      ;;
10112
10113    cygwin* | mingw* | pw32* | cegcc*)
10114      # When not using gcc, we currently assume that we are using
10115      # Microsoft Visual C++.
10116      # hardcode_libdir_flag_spec is actually meaningless, as there is
10117      # no search path for DLLs.
10118      case $cc_basename in
10119      cl*)
10120	# Native MSVC
10121	hardcode_libdir_flag_spec=' '
10122	allow_undefined_flag=unsupported
10123	always_export_symbols=yes
10124	file_list_spec='@'
10125	# Tell ltmain to make .lib files, not .a files.
10126	libext=lib
10127	# Tell ltmain to make .dll files, not .so files.
10128	shrext_cmds=".dll"
10129	# FIXME: Setting linknames here is a bad hack.
10130	archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
10131	archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
10132	    sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
10133	  else
10134	    sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
10135	  fi~
10136	  $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
10137	  linknames='
10138	# The linker will not automatically build a static lib if we build a DLL.
10139	# _LT_TAGVAR(old_archive_from_new_cmds, )='true'
10140	enable_shared_with_static_runtimes=yes
10141	exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
10142	export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
10143	# Don't use ranlib
10144	old_postinstall_cmds='chmod 644 $oldlib'
10145	postlink_cmds='lt_outputfile="@OUTPUT@"~
10146	  lt_tool_outputfile="@TOOL_OUTPUT@"~
10147	  case $lt_outputfile in
10148	    *.exe|*.EXE) ;;
10149	    *)
10150	      lt_outputfile="$lt_outputfile.exe"
10151	      lt_tool_outputfile="$lt_tool_outputfile.exe"
10152	      ;;
10153	  esac~
10154	  if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
10155	    $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
10156	    $RM "$lt_outputfile.manifest";
10157	  fi'
10158	;;
10159      *)
10160	# Assume MSVC wrapper
10161	hardcode_libdir_flag_spec=' '
10162	allow_undefined_flag=unsupported
10163	# Tell ltmain to make .lib files, not .a files.
10164	libext=lib
10165	# Tell ltmain to make .dll files, not .so files.
10166	shrext_cmds=".dll"
10167	# FIXME: Setting linknames here is a bad hack.
10168	archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
10169	# The linker will automatically build a .lib file if we build a DLL.
10170	old_archive_from_new_cmds='true'
10171	# FIXME: Should let the user specify the lib program.
10172	old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
10173	enable_shared_with_static_runtimes=yes
10174	;;
10175      esac
10176      ;;
10177
10178    darwin* | rhapsody*)
10179
10180
10181  archive_cmds_need_lc=no
10182  hardcode_direct=no
10183  hardcode_automatic=yes
10184  hardcode_shlibpath_var=unsupported
10185  if test "$lt_cv_ld_force_load" = "yes"; then
10186    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\"`'
10187
10188  else
10189    whole_archive_flag_spec=''
10190  fi
10191  link_all_deplibs=yes
10192  allow_undefined_flag="$_lt_dar_allow_undefined"
10193  case $cc_basename in
10194     ifort*) _lt_dar_can_shared=yes ;;
10195     *) _lt_dar_can_shared=$GCC ;;
10196  esac
10197  if test "$_lt_dar_can_shared" = "yes"; then
10198    output_verbose_link_cmd=func_echo_all
10199    archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
10200    module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
10201    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}"
10202    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}"
10203
10204  else
10205  ld_shlibs=no
10206  fi
10207
10208      ;;
10209
10210    dgux*)
10211      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10212      hardcode_libdir_flag_spec='-L$libdir'
10213      hardcode_shlibpath_var=no
10214      ;;
10215
10216    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
10217    # support.  Future versions do this automatically, but an explicit c++rt0.o
10218    # does not break anything, and helps significantly (at the cost of a little
10219    # extra space).
10220    freebsd2.2*)
10221      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
10222      hardcode_libdir_flag_spec='-R$libdir'
10223      hardcode_direct=yes
10224      hardcode_shlibpath_var=no
10225      ;;
10226
10227    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
10228    freebsd2.*)
10229      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10230      hardcode_direct=yes
10231      hardcode_minus_L=yes
10232      hardcode_shlibpath_var=no
10233      ;;
10234
10235    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
10236    freebsd* | dragonfly*)
10237      archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10238      hardcode_libdir_flag_spec='-R$libdir'
10239      hardcode_direct=yes
10240      hardcode_shlibpath_var=no
10241      ;;
10242
10243    hpux9*)
10244      if test "$GCC" = yes; then
10245	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'
10246      else
10247	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'
10248      fi
10249      hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10250      hardcode_libdir_separator=:
10251      hardcode_direct=yes
10252
10253      # hardcode_minus_L: Not really in the search PATH,
10254      # but as the default location of the library.
10255      hardcode_minus_L=yes
10256      export_dynamic_flag_spec='${wl}-E'
10257      ;;
10258
10259    hpux10*)
10260      if test "$GCC" = yes && test "$with_gnu_ld" = no; then
10261	archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10262      else
10263	archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10264      fi
10265      if test "$with_gnu_ld" = no; then
10266	hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10267	hardcode_libdir_separator=:
10268	hardcode_direct=yes
10269	hardcode_direct_absolute=yes
10270	export_dynamic_flag_spec='${wl}-E'
10271	# hardcode_minus_L: Not really in the search PATH,
10272	# but as the default location of the library.
10273	hardcode_minus_L=yes
10274      fi
10275      ;;
10276
10277    hpux11*)
10278      if test "$GCC" = yes && test "$with_gnu_ld" = no; then
10279	case $host_cpu in
10280	hppa*64*)
10281	  archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10282	  ;;
10283	ia64*)
10284	  archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10285	  ;;
10286	*)
10287	  archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10288	  ;;
10289	esac
10290      else
10291	case $host_cpu in
10292	hppa*64*)
10293	  archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10294	  ;;
10295	ia64*)
10296	  archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10297	  ;;
10298	*)
10299
10300	  # Older versions of the 11.00 compiler do not understand -b yet
10301	  # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
10302	  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
10303$as_echo_n "checking if $CC understands -b... " >&6; }
10304if ${lt_cv_prog_compiler__b+:} false; then :
10305  $as_echo_n "(cached) " >&6
10306else
10307  lt_cv_prog_compiler__b=no
10308   save_LDFLAGS="$LDFLAGS"
10309   LDFLAGS="$LDFLAGS -b"
10310   echo "$lt_simple_link_test_code" > conftest.$ac_ext
10311   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10312     # The linker can only warn and ignore the option if not recognized
10313     # So say no if there are warnings
10314     if test -s conftest.err; then
10315       # Append any errors to the config.log.
10316       cat conftest.err 1>&5
10317       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10318       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10319       if diff conftest.exp conftest.er2 >/dev/null; then
10320         lt_cv_prog_compiler__b=yes
10321       fi
10322     else
10323       lt_cv_prog_compiler__b=yes
10324     fi
10325   fi
10326   $RM -r conftest*
10327   LDFLAGS="$save_LDFLAGS"
10328
10329fi
10330{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
10331$as_echo "$lt_cv_prog_compiler__b" >&6; }
10332
10333if test x"$lt_cv_prog_compiler__b" = xyes; then
10334    archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10335else
10336    archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10337fi
10338
10339	  ;;
10340	esac
10341      fi
10342      if test "$with_gnu_ld" = no; then
10343	hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10344	hardcode_libdir_separator=:
10345
10346	case $host_cpu in
10347	hppa*64*|ia64*)
10348	  hardcode_direct=no
10349	  hardcode_shlibpath_var=no
10350	  ;;
10351	*)
10352	  hardcode_direct=yes
10353	  hardcode_direct_absolute=yes
10354	  export_dynamic_flag_spec='${wl}-E'
10355
10356	  # hardcode_minus_L: Not really in the search PATH,
10357	  # but as the default location of the library.
10358	  hardcode_minus_L=yes
10359	  ;;
10360	esac
10361      fi
10362      ;;
10363
10364    irix5* | irix6* | nonstopux*)
10365      if test "$GCC" = yes; then
10366	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'
10367	# Try to use the -exported_symbol ld option, if it does not
10368	# work, assume that -exports_file does not work either and
10369	# implicitly export all symbols.
10370	# This should be the same for all languages, so no per-tag cache variable.
10371	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
10372$as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
10373if ${lt_cv_irix_exported_symbol+:} false; then :
10374  $as_echo_n "(cached) " >&6
10375else
10376  save_LDFLAGS="$LDFLAGS"
10377	   LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
10378	   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10379/* end confdefs.h.  */
10380int foo (void) { return 0; }
10381_ACEOF
10382if ac_fn_c_try_link "$LINENO"; then :
10383  lt_cv_irix_exported_symbol=yes
10384else
10385  lt_cv_irix_exported_symbol=no
10386fi
10387rm -f core conftest.err conftest.$ac_objext \
10388    conftest$ac_exeext conftest.$ac_ext
10389           LDFLAGS="$save_LDFLAGS"
10390fi
10391{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
10392$as_echo "$lt_cv_irix_exported_symbol" >&6; }
10393	if test "$lt_cv_irix_exported_symbol" = yes; then
10394          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'
10395	fi
10396      else
10397	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'
10398	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'
10399      fi
10400      archive_cmds_need_lc='no'
10401      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10402      hardcode_libdir_separator=:
10403      inherit_rpath=yes
10404      link_all_deplibs=yes
10405      ;;
10406
10407    netbsd*)
10408      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10409	archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
10410      else
10411	archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
10412      fi
10413      hardcode_libdir_flag_spec='-R$libdir'
10414      hardcode_direct=yes
10415      hardcode_shlibpath_var=no
10416      ;;
10417
10418    newsos6)
10419      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10420      hardcode_direct=yes
10421      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10422      hardcode_libdir_separator=:
10423      hardcode_shlibpath_var=no
10424      ;;
10425
10426    *nto* | *qnx*)
10427      ;;
10428
10429    openbsd*)
10430      if test -f /usr/libexec/ld.so; then
10431	hardcode_direct=yes
10432	hardcode_shlibpath_var=no
10433	hardcode_direct_absolute=yes
10434	if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10435	  archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10436	  archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
10437	  hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10438	  export_dynamic_flag_spec='${wl}-E'
10439	else
10440	  case $host_os in
10441	   openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
10442	     archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10443	     hardcode_libdir_flag_spec='-R$libdir'
10444	     ;;
10445	   *)
10446	     archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10447	     hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10448	     ;;
10449	  esac
10450	fi
10451      else
10452	ld_shlibs=no
10453      fi
10454      ;;
10455
10456    os2*)
10457      hardcode_libdir_flag_spec='-L$libdir'
10458      hardcode_minus_L=yes
10459      allow_undefined_flag=unsupported
10460      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'
10461      old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
10462      ;;
10463
10464    osf3*)
10465      if test "$GCC" = yes; then
10466	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10467	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'
10468      else
10469	allow_undefined_flag=' -expect_unresolved \*'
10470	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'
10471      fi
10472      archive_cmds_need_lc='no'
10473      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10474      hardcode_libdir_separator=:
10475      ;;
10476
10477    osf4* | osf5*)	# as osf3* with the addition of -msym flag
10478      if test "$GCC" = yes; then
10479	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10480	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'
10481	hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10482      else
10483	allow_undefined_flag=' -expect_unresolved \*'
10484	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'
10485	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~
10486	$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'
10487
10488	# Both c and cxx compiler support -rpath directly
10489	hardcode_libdir_flag_spec='-rpath $libdir'
10490      fi
10491      archive_cmds_need_lc='no'
10492      hardcode_libdir_separator=:
10493      ;;
10494
10495    solaris*)
10496      no_undefined_flag=' -z defs'
10497      if test "$GCC" = yes; then
10498	wlarc='${wl}'
10499	archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10500	archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10501	  $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'
10502      else
10503	case `$CC -V 2>&1` in
10504	*"Compilers 5.0"*)
10505	  wlarc=''
10506	  archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
10507	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10508	  $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10509	  ;;
10510	*)
10511	  wlarc='${wl}'
10512	  archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10513	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10514	  $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10515	  ;;
10516	esac
10517      fi
10518      hardcode_libdir_flag_spec='-R$libdir'
10519      hardcode_shlibpath_var=no
10520      case $host_os in
10521      solaris2.[0-5] | solaris2.[0-5].*) ;;
10522      *)
10523	# The compiler driver will combine and reorder linker options,
10524	# but understands `-z linker_flag'.  GCC discards it without `$wl',
10525	# but is careful enough not to reorder.
10526	# Supported since Solaris 2.6 (maybe 2.5.1?)
10527	if test "$GCC" = yes; then
10528	  whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10529	else
10530	  whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10531	fi
10532	;;
10533      esac
10534      link_all_deplibs=yes
10535      ;;
10536
10537    sunos4*)
10538      if test "x$host_vendor" = xsequent; then
10539	# Use $CC to link under sequent, because it throws in some extra .o
10540	# files that make .init and .fini sections work.
10541	archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10542      else
10543	archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10544      fi
10545      hardcode_libdir_flag_spec='-L$libdir'
10546      hardcode_direct=yes
10547      hardcode_minus_L=yes
10548      hardcode_shlibpath_var=no
10549      ;;
10550
10551    sysv4)
10552      case $host_vendor in
10553	sni)
10554	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10555	  hardcode_direct=yes # is this really true???
10556	;;
10557	siemens)
10558	  ## LD is ld it makes a PLAMLIB
10559	  ## CC just makes a GrossModule.
10560	  archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10561	  reload_cmds='$CC -r -o $output$reload_objs'
10562	  hardcode_direct=no
10563        ;;
10564	motorola)
10565	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10566	  hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10567	;;
10568      esac
10569      runpath_var='LD_RUN_PATH'
10570      hardcode_shlibpath_var=no
10571      ;;
10572
10573    sysv4.3*)
10574      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10575      hardcode_shlibpath_var=no
10576      export_dynamic_flag_spec='-Bexport'
10577      ;;
10578
10579    sysv4*MP*)
10580      if test -d /usr/nec; then
10581	archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10582	hardcode_shlibpath_var=no
10583	runpath_var=LD_RUN_PATH
10584	hardcode_runpath_var=yes
10585	ld_shlibs=yes
10586      fi
10587      ;;
10588
10589    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10590      no_undefined_flag='${wl}-z,text'
10591      archive_cmds_need_lc=no
10592      hardcode_shlibpath_var=no
10593      runpath_var='LD_RUN_PATH'
10594
10595      if test "$GCC" = yes; then
10596	archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10597	archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10598      else
10599	archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10600	archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10601      fi
10602      ;;
10603
10604    sysv5* | sco3.2v5* | sco5v6*)
10605      # Note: We can NOT use -z defs as we might desire, because we do not
10606      # link with -lc, and that would cause any symbols used from libc to
10607      # always be unresolved, which means just about no library would
10608      # ever link correctly.  If we're not using GNU ld we use -z text
10609      # though, which does catch some bad symbols but isn't as heavy-handed
10610      # as -z defs.
10611      no_undefined_flag='${wl}-z,text'
10612      allow_undefined_flag='${wl}-z,nodefs'
10613      archive_cmds_need_lc=no
10614      hardcode_shlibpath_var=no
10615      hardcode_libdir_flag_spec='${wl}-R,$libdir'
10616      hardcode_libdir_separator=':'
10617      link_all_deplibs=yes
10618      export_dynamic_flag_spec='${wl}-Bexport'
10619      runpath_var='LD_RUN_PATH'
10620
10621      if test "$GCC" = yes; then
10622	archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10623	archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10624      else
10625	archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10626	archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10627      fi
10628      ;;
10629
10630    uts4*)
10631      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10632      hardcode_libdir_flag_spec='-L$libdir'
10633      hardcode_shlibpath_var=no
10634      ;;
10635
10636    *)
10637      ld_shlibs=no
10638      ;;
10639    esac
10640
10641    if test x$host_vendor = xsni; then
10642      case $host in
10643      sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10644	export_dynamic_flag_spec='${wl}-Blargedynsym'
10645	;;
10646      esac
10647    fi
10648  fi
10649
10650{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10651$as_echo "$ld_shlibs" >&6; }
10652test "$ld_shlibs" = no && can_build_shared=no
10653
10654with_gnu_ld=$with_gnu_ld
10655
10656
10657
10658
10659
10660
10661
10662
10663
10664
10665
10666
10667
10668
10669
10670#
10671# Do we need to explicitly link libc?
10672#
10673case "x$archive_cmds_need_lc" in
10674x|xyes)
10675  # Assume -lc should be added
10676  archive_cmds_need_lc=yes
10677
10678  if test "$enable_shared" = yes && test "$GCC" = yes; then
10679    case $archive_cmds in
10680    *'~'*)
10681      # FIXME: we may have to deal with multi-command sequences.
10682      ;;
10683    '$CC '*)
10684      # Test whether the compiler implicitly links with -lc since on some
10685      # systems, -lgcc has to come before -lc. If gcc already passes -lc
10686      # to ld, don't add -lc before -lgcc.
10687      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10688$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10689if ${lt_cv_archive_cmds_need_lc+:} false; then :
10690  $as_echo_n "(cached) " >&6
10691else
10692  $RM conftest*
10693	echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10694
10695	if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10696  (eval $ac_compile) 2>&5
10697  ac_status=$?
10698  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10699  test $ac_status = 0; } 2>conftest.err; then
10700	  soname=conftest
10701	  lib=conftest
10702	  libobjs=conftest.$ac_objext
10703	  deplibs=
10704	  wl=$lt_prog_compiler_wl
10705	  pic_flag=$lt_prog_compiler_pic
10706	  compiler_flags=-v
10707	  linker_flags=-v
10708	  verstring=
10709	  output_objdir=.
10710	  libname=conftest
10711	  lt_save_allow_undefined_flag=$allow_undefined_flag
10712	  allow_undefined_flag=
10713	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10714  (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10715  ac_status=$?
10716  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10717  test $ac_status = 0; }
10718	  then
10719	    lt_cv_archive_cmds_need_lc=no
10720	  else
10721	    lt_cv_archive_cmds_need_lc=yes
10722	  fi
10723	  allow_undefined_flag=$lt_save_allow_undefined_flag
10724	else
10725	  cat conftest.err 1>&5
10726	fi
10727	$RM conftest*
10728
10729fi
10730{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10731$as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
10732      archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
10733      ;;
10734    esac
10735  fi
10736  ;;
10737esac
10738
10739
10740
10741
10742
10743
10744
10745
10746
10747
10748
10749
10750
10751
10752
10753
10754
10755
10756
10757
10758
10759
10760
10761
10762
10763
10764
10765
10766
10767
10768
10769
10770
10771
10772
10773
10774
10775
10776
10777
10778
10779
10780
10781
10782
10783
10784
10785
10786
10787
10788
10789
10790
10791
10792
10793
10794
10795
10796
10797
10798
10799
10800
10801
10802
10803
10804
10805
10806
10807
10808
10809
10810
10811
10812
10813
10814
10815
10816
10817
10818
10819
10820
10821
10822
10823
10824
10825
10826
10827
10828
10829
10830
10831
10832
10833
10834
10835
10836
10837
10838
10839
10840
10841
10842
10843
10844
10845
10846
10847
10848
10849
10850
10851
10852
10853
10854
10855
10856
10857
10858
10859
10860
10861
10862
10863
10864
10865
10866
10867
10868
10869
10870
10871
10872
10873
10874
10875
10876
10877
10878
10879
10880
10881
10882
10883
10884
10885
10886
10887
10888
10889
10890  { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10891$as_echo_n "checking dynamic linker characteristics... " >&6; }
10892
10893if test "$GCC" = yes; then
10894  case $host_os in
10895    darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
10896    *) lt_awk_arg="/^libraries:/" ;;
10897  esac
10898  case $host_os in
10899    mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
10900    *) lt_sed_strip_eq="s,=/,/,g" ;;
10901  esac
10902  lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10903  case $lt_search_path_spec in
10904  *\;*)
10905    # if the path contains ";" then we assume it to be the separator
10906    # otherwise default to the standard path separator (i.e. ":") - it is
10907    # assumed that no part of a normal pathname contains ";" but that should
10908    # okay in the real world where ";" in dirpaths is itself problematic.
10909    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10910    ;;
10911  *)
10912    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10913    ;;
10914  esac
10915  # Ok, now we have the path, separated by spaces, we can step through it
10916  # and add multilib dir if necessary.
10917  lt_tmp_lt_search_path_spec=
10918  lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10919  for lt_sys_path in $lt_search_path_spec; do
10920    if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10921      lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10922    else
10923      test -d "$lt_sys_path" && \
10924	lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10925    fi
10926  done
10927  lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10928BEGIN {RS=" "; FS="/|\n";} {
10929  lt_foo="";
10930  lt_count=0;
10931  for (lt_i = NF; lt_i > 0; lt_i--) {
10932    if ($lt_i != "" && $lt_i != ".") {
10933      if ($lt_i == "..") {
10934        lt_count++;
10935      } else {
10936        if (lt_count == 0) {
10937          lt_foo="/" $lt_i lt_foo;
10938        } else {
10939          lt_count--;
10940        }
10941      }
10942    }
10943  }
10944  if (lt_foo != "") { lt_freq[lt_foo]++; }
10945  if (lt_freq[lt_foo] == 1) { print lt_foo; }
10946}'`
10947  # AWK program above erroneously prepends '/' to C:/dos/paths
10948  # for these hosts.
10949  case $host_os in
10950    mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
10951      $SED 's,/\([A-Za-z]:\),\1,g'` ;;
10952  esac
10953  sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
10954else
10955  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10956fi
10957library_names_spec=
10958libname_spec='lib$name'
10959soname_spec=
10960shrext_cmds=".so"
10961postinstall_cmds=
10962postuninstall_cmds=
10963finish_cmds=
10964finish_eval=
10965shlibpath_var=
10966shlibpath_overrides_runpath=unknown
10967version_type=none
10968dynamic_linker="$host_os ld.so"
10969sys_lib_dlsearch_path_spec="/lib /usr/lib"
10970need_lib_prefix=unknown
10971hardcode_into_libs=no
10972
10973# when you set need_version to no, make sure it does not cause -set_version
10974# flags to be left without arguments
10975need_version=unknown
10976
10977case $host_os in
10978aix3*)
10979  version_type=linux # correct to gnu/linux during the next big refactor
10980  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10981  shlibpath_var=LIBPATH
10982
10983  # AIX 3 has no versioning support, so we append a major version to the name.
10984  soname_spec='${libname}${release}${shared_ext}$major'
10985  ;;
10986
10987aix[4-9]*)
10988  version_type=linux # correct to gnu/linux during the next big refactor
10989  need_lib_prefix=no
10990  need_version=no
10991  hardcode_into_libs=yes
10992  if test "$host_cpu" = ia64; then
10993    # AIX 5 supports IA64
10994    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10995    shlibpath_var=LD_LIBRARY_PATH
10996  else
10997    # With GCC up to 2.95.x, collect2 would create an import file
10998    # for dependence libraries.  The import file would start with
10999    # the line `#! .'.  This would cause the generated library to
11000    # depend on `.', always an invalid library.  This was fixed in
11001    # development snapshots of GCC prior to 3.0.
11002    case $host_os in
11003      aix4 | aix4.[01] | aix4.[01].*)
11004      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11005	   echo ' yes '
11006	   echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
11007	:
11008      else
11009	can_build_shared=no
11010      fi
11011      ;;
11012    esac
11013    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
11014    # soname into executable. Probably we can add versioning support to
11015    # collect2, so additional links can be useful in future.
11016    if test "$aix_use_runtimelinking" = yes; then
11017      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11018      # instead of lib<name>.a to let people know that these are not
11019      # typical AIX shared libraries.
11020      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11021    else
11022      # We preserve .a as extension for shared libraries through AIX4.2
11023      # and later when we are not doing run time linking.
11024      library_names_spec='${libname}${release}.a $libname.a'
11025      soname_spec='${libname}${release}${shared_ext}$major'
11026    fi
11027    shlibpath_var=LIBPATH
11028  fi
11029  ;;
11030
11031amigaos*)
11032  case $host_cpu in
11033  powerpc)
11034    # Since July 2007 AmigaOS4 officially supports .so libraries.
11035    # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
11036    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11037    ;;
11038  m68k)
11039    library_names_spec='$libname.ixlibrary $libname.a'
11040    # Create ${libname}_ixlibrary.a entries in /sys/libs.
11041    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'
11042    ;;
11043  esac
11044  ;;
11045
11046beos*)
11047  library_names_spec='${libname}${shared_ext}'
11048  dynamic_linker="$host_os ld.so"
11049  shlibpath_var=LIBRARY_PATH
11050  ;;
11051
11052bsdi[45]*)
11053  version_type=linux # correct to gnu/linux during the next big refactor
11054  need_version=no
11055  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11056  soname_spec='${libname}${release}${shared_ext}$major'
11057  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11058  shlibpath_var=LD_LIBRARY_PATH
11059  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11060  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11061  # the default ld.so.conf also contains /usr/contrib/lib and
11062  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11063  # libtool to hard-code these into programs
11064  ;;
11065
11066cygwin* | mingw* | pw32* | cegcc*)
11067  version_type=windows
11068  shrext_cmds=".dll"
11069  need_version=no
11070  need_lib_prefix=no
11071
11072  case $GCC,$cc_basename in
11073  yes,*)
11074    # gcc
11075    library_names_spec='$libname.dll.a'
11076    # DLL is installed to $(libdir)/../bin by postinstall_cmds
11077    postinstall_cmds='base_file=`basename \${file}`~
11078      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
11079      dldir=$destdir/`dirname \$dlpath`~
11080      test -d \$dldir || mkdir -p \$dldir~
11081      $install_prog $dir/$dlname \$dldir/$dlname~
11082      chmod a+x \$dldir/$dlname~
11083      if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11084        eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11085      fi'
11086    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11087      dlpath=$dir/\$dldll~
11088       $RM \$dlpath'
11089    shlibpath_overrides_runpath=yes
11090
11091    case $host_os in
11092    cygwin*)
11093      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11094      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11095
11096      sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
11097      ;;
11098    mingw* | cegcc*)
11099      # MinGW DLLs use traditional 'lib' prefix
11100      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11101      ;;
11102    pw32*)
11103      # pw32 DLLs use 'pw' prefix rather than 'lib'
11104      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11105      ;;
11106    esac
11107    dynamic_linker='Win32 ld.exe'
11108    ;;
11109
11110  *,cl*)
11111    # Native MSVC
11112    libname_spec='$name'
11113    soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11114    library_names_spec='${libname}.dll.lib'
11115
11116    case $build_os in
11117    mingw*)
11118      sys_lib_search_path_spec=
11119      lt_save_ifs=$IFS
11120      IFS=';'
11121      for lt_path in $LIB
11122      do
11123        IFS=$lt_save_ifs
11124        # Let DOS variable expansion print the short 8.3 style file name.
11125        lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
11126        sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
11127      done
11128      IFS=$lt_save_ifs
11129      # Convert to MSYS style.
11130      sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
11131      ;;
11132    cygwin*)
11133      # Convert to unix form, then to dos form, then back to unix form
11134      # but this time dos style (no spaces!) so that the unix form looks
11135      # like /cygdrive/c/PROGRA~1:/cygdr...
11136      sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
11137      sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
11138      sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11139      ;;
11140    *)
11141      sys_lib_search_path_spec="$LIB"
11142      if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
11143        # It is most probably a Windows format PATH.
11144        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11145      else
11146        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11147      fi
11148      # FIXME: find the short name or the path components, as spaces are
11149      # common. (e.g. "Program Files" -> "PROGRA~1")
11150      ;;
11151    esac
11152
11153    # DLL is installed to $(libdir)/../bin by postinstall_cmds
11154    postinstall_cmds='base_file=`basename \${file}`~
11155      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
11156      dldir=$destdir/`dirname \$dlpath`~
11157      test -d \$dldir || mkdir -p \$dldir~
11158      $install_prog $dir/$dlname \$dldir/$dlname'
11159    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11160      dlpath=$dir/\$dldll~
11161       $RM \$dlpath'
11162    shlibpath_overrides_runpath=yes
11163    dynamic_linker='Win32 link.exe'
11164    ;;
11165
11166  *)
11167    # Assume MSVC wrapper
11168    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
11169    dynamic_linker='Win32 ld.exe'
11170    ;;
11171  esac
11172  # FIXME: first we should search . and the directory the executable is in
11173  shlibpath_var=PATH
11174  ;;
11175
11176darwin* | rhapsody*)
11177  dynamic_linker="$host_os dyld"
11178  version_type=darwin
11179  need_lib_prefix=no
11180  need_version=no
11181  library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
11182  soname_spec='${libname}${release}${major}$shared_ext'
11183  shlibpath_overrides_runpath=yes
11184  shlibpath_var=DYLD_LIBRARY_PATH
11185  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
11186
11187  sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
11188  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11189  ;;
11190
11191dgux*)
11192  version_type=linux # correct to gnu/linux during the next big refactor
11193  need_lib_prefix=no
11194  need_version=no
11195  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
11196  soname_spec='${libname}${release}${shared_ext}$major'
11197  shlibpath_var=LD_LIBRARY_PATH
11198  ;;
11199
11200freebsd* | dragonfly*)
11201  # DragonFly does not have aout.  When/if they implement a new
11202  # versioning mechanism, adjust this.
11203  if test -x /usr/bin/objformat; then
11204    objformat=`/usr/bin/objformat`
11205  else
11206    case $host_os in
11207    freebsd[23].*) objformat=aout ;;
11208    *) objformat=elf ;;
11209    esac
11210  fi
11211  version_type=freebsd-$objformat
11212  case $version_type in
11213    freebsd-elf*)
11214      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11215      need_version=no
11216      need_lib_prefix=no
11217      ;;
11218    freebsd-*)
11219      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
11220      need_version=yes
11221      ;;
11222  esac
11223  shlibpath_var=LD_LIBRARY_PATH
11224  case $host_os in
11225  freebsd2.*)
11226    shlibpath_overrides_runpath=yes
11227    ;;
11228  freebsd3.[01]* | freebsdelf3.[01]*)
11229    shlibpath_overrides_runpath=yes
11230    hardcode_into_libs=yes
11231    ;;
11232  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
11233  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
11234    shlibpath_overrides_runpath=no
11235    hardcode_into_libs=yes
11236    ;;
11237  *) # from 4.6 on, and DragonFly
11238    shlibpath_overrides_runpath=yes
11239    hardcode_into_libs=yes
11240    ;;
11241  esac
11242  ;;
11243
11244gnu*)
11245  version_type=linux # correct to gnu/linux during the next big refactor
11246  need_lib_prefix=no
11247  need_version=no
11248  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11249  soname_spec='${libname}${release}${shared_ext}$major'
11250  shlibpath_var=LD_LIBRARY_PATH
11251  shlibpath_overrides_runpath=no
11252  hardcode_into_libs=yes
11253  ;;
11254
11255haiku*)
11256  version_type=linux # correct to gnu/linux during the next big refactor
11257  need_lib_prefix=no
11258  need_version=no
11259  dynamic_linker="$host_os runtime_loader"
11260  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11261  soname_spec='${libname}${release}${shared_ext}$major'
11262  shlibpath_var=LIBRARY_PATH
11263  shlibpath_overrides_runpath=yes
11264  sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
11265  hardcode_into_libs=yes
11266  ;;
11267
11268hpux9* | hpux10* | hpux11*)
11269  # Give a soname corresponding to the major version so that dld.sl refuses to
11270  # link against other versions.
11271  version_type=sunos
11272  need_lib_prefix=no
11273  need_version=no
11274  case $host_cpu in
11275  ia64*)
11276    shrext_cmds='.so'
11277    hardcode_into_libs=yes
11278    dynamic_linker="$host_os dld.so"
11279    shlibpath_var=LD_LIBRARY_PATH
11280    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11281    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11282    soname_spec='${libname}${release}${shared_ext}$major'
11283    if test "X$HPUX_IA64_MODE" = X32; then
11284      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11285    else
11286      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11287    fi
11288    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11289    ;;
11290  hppa*64*)
11291    shrext_cmds='.sl'
11292    hardcode_into_libs=yes
11293    dynamic_linker="$host_os dld.sl"
11294    shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11295    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11296    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11297    soname_spec='${libname}${release}${shared_ext}$major'
11298    sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11299    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11300    ;;
11301  *)
11302    shrext_cmds='.sl'
11303    dynamic_linker="$host_os dld.sl"
11304    shlibpath_var=SHLIB_PATH
11305    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11306    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11307    soname_spec='${libname}${release}${shared_ext}$major'
11308    ;;
11309  esac
11310  # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
11311  postinstall_cmds='chmod 555 $lib'
11312  # or fails outright, so override atomically:
11313  install_override_mode=555
11314  ;;
11315
11316interix[3-9]*)
11317  version_type=linux # correct to gnu/linux during the next big refactor
11318  need_lib_prefix=no
11319  need_version=no
11320  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11321  soname_spec='${libname}${release}${shared_ext}$major'
11322  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
11323  shlibpath_var=LD_LIBRARY_PATH
11324  shlibpath_overrides_runpath=no
11325  hardcode_into_libs=yes
11326  ;;
11327
11328irix5* | irix6* | nonstopux*)
11329  case $host_os in
11330    nonstopux*) version_type=nonstopux ;;
11331    *)
11332	if test "$lt_cv_prog_gnu_ld" = yes; then
11333		version_type=linux # correct to gnu/linux during the next big refactor
11334	else
11335		version_type=irix
11336	fi ;;
11337  esac
11338  need_lib_prefix=no
11339  need_version=no
11340  soname_spec='${libname}${release}${shared_ext}$major'
11341  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
11342  case $host_os in
11343  irix5* | nonstopux*)
11344    libsuff= shlibsuff=
11345    ;;
11346  *)
11347    case $LD in # libtool.m4 will add one of these switches to LD
11348    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11349      libsuff= shlibsuff= libmagic=32-bit;;
11350    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11351      libsuff=32 shlibsuff=N32 libmagic=N32;;
11352    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11353      libsuff=64 shlibsuff=64 libmagic=64-bit;;
11354    *) libsuff= shlibsuff= libmagic=never-match;;
11355    esac
11356    ;;
11357  esac
11358  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11359  shlibpath_overrides_runpath=no
11360  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11361  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
11362  hardcode_into_libs=yes
11363  ;;
11364
11365# No shared lib support for Linux oldld, aout, or coff.
11366linux*oldld* | linux*aout* | linux*coff*)
11367  dynamic_linker=no
11368  ;;
11369
11370# This must be glibc/ELF.
11371linux* | k*bsd*-gnu | kopensolaris*-gnu)
11372  version_type=linux # correct to gnu/linux during the next big refactor
11373  need_lib_prefix=no
11374  need_version=no
11375  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11376  soname_spec='${libname}${release}${shared_ext}$major'
11377  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11378  shlibpath_var=LD_LIBRARY_PATH
11379  shlibpath_overrides_runpath=no
11380
11381  # Some binutils ld are patched to set DT_RUNPATH
11382  if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
11383  $as_echo_n "(cached) " >&6
11384else
11385  lt_cv_shlibpath_overrides_runpath=no
11386    save_LDFLAGS=$LDFLAGS
11387    save_libdir=$libdir
11388    eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
11389	 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
11390    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11391/* end confdefs.h.  */
11392
11393int
11394main ()
11395{
11396
11397  ;
11398  return 0;
11399}
11400_ACEOF
11401if ac_fn_c_try_link "$LINENO"; then :
11402  if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
11403  lt_cv_shlibpath_overrides_runpath=yes
11404fi
11405fi
11406rm -f core conftest.err conftest.$ac_objext \
11407    conftest$ac_exeext conftest.$ac_ext
11408    LDFLAGS=$save_LDFLAGS
11409    libdir=$save_libdir
11410
11411fi
11412
11413  shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
11414
11415  # This implies no fast_install, which is unacceptable.
11416  # Some rework will be needed to allow for fast_install
11417  # before this can be enabled.
11418  hardcode_into_libs=yes
11419
11420  # Append ld.so.conf contents to the search path
11421  if test -f /etc/ld.so.conf; then
11422    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' ' '`
11423    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11424  fi
11425
11426  # We used to test for /lib/ld.so.1 and disable shared libraries on
11427  # powerpc, because MkLinux only supported shared libraries with the
11428  # GNU dynamic linker.  Since this was broken with cross compilers,
11429  # most powerpc-linux boxes support dynamic linking these days and
11430  # people can always --disable-shared, the test was removed, and we
11431  # assume the GNU/Linux dynamic linker is in use.
11432  dynamic_linker='GNU/Linux ld.so'
11433  ;;
11434
11435netbsd*)
11436  version_type=sunos
11437  need_lib_prefix=no
11438  need_version=no
11439  if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11440    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11441    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11442    dynamic_linker='NetBSD (a.out) ld.so'
11443  else
11444    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11445    soname_spec='${libname}${release}${shared_ext}$major'
11446    dynamic_linker='NetBSD ld.elf_so'
11447  fi
11448  shlibpath_var=LD_LIBRARY_PATH
11449  shlibpath_overrides_runpath=yes
11450  hardcode_into_libs=yes
11451  ;;
11452
11453newsos6)
11454  version_type=linux # correct to gnu/linux during the next big refactor
11455  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11456  shlibpath_var=LD_LIBRARY_PATH
11457  shlibpath_overrides_runpath=yes
11458  ;;
11459
11460*nto* | *qnx*)
11461  version_type=qnx
11462  need_lib_prefix=no
11463  need_version=no
11464  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11465  soname_spec='${libname}${release}${shared_ext}$major'
11466  shlibpath_var=LD_LIBRARY_PATH
11467  shlibpath_overrides_runpath=no
11468  hardcode_into_libs=yes
11469  dynamic_linker='ldqnx.so'
11470  ;;
11471
11472openbsd*)
11473  version_type=sunos
11474  sys_lib_dlsearch_path_spec="/usr/lib"
11475  need_lib_prefix=no
11476  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
11477  case $host_os in
11478    openbsd3.3 | openbsd3.3.*)	need_version=yes ;;
11479    *)				need_version=no  ;;
11480  esac
11481  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11482  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11483  shlibpath_var=LD_LIBRARY_PATH
11484  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11485    case $host_os in
11486      openbsd2.[89] | openbsd2.[89].*)
11487	shlibpath_overrides_runpath=no
11488	;;
11489      *)
11490	shlibpath_overrides_runpath=yes
11491	;;
11492      esac
11493  else
11494    shlibpath_overrides_runpath=yes
11495  fi
11496  ;;
11497
11498os2*)
11499  libname_spec='$name'
11500  shrext_cmds=".dll"
11501  need_lib_prefix=no
11502  library_names_spec='$libname${shared_ext} $libname.a'
11503  dynamic_linker='OS/2 ld.exe'
11504  shlibpath_var=LIBPATH
11505  ;;
11506
11507osf3* | osf4* | osf5*)
11508  version_type=osf
11509  need_lib_prefix=no
11510  need_version=no
11511  soname_spec='${libname}${release}${shared_ext}$major'
11512  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11513  shlibpath_var=LD_LIBRARY_PATH
11514  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11515  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11516  ;;
11517
11518rdos*)
11519  dynamic_linker=no
11520  ;;
11521
11522solaris*)
11523  version_type=linux # correct to gnu/linux during the next big refactor
11524  need_lib_prefix=no
11525  need_version=no
11526  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11527  soname_spec='${libname}${release}${shared_ext}$major'
11528  shlibpath_var=LD_LIBRARY_PATH
11529  shlibpath_overrides_runpath=yes
11530  hardcode_into_libs=yes
11531  # ldd complains unless libraries are executable
11532  postinstall_cmds='chmod +x $lib'
11533  ;;
11534
11535sunos4*)
11536  version_type=sunos
11537  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11538  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11539  shlibpath_var=LD_LIBRARY_PATH
11540  shlibpath_overrides_runpath=yes
11541  if test "$with_gnu_ld" = yes; then
11542    need_lib_prefix=no
11543  fi
11544  need_version=yes
11545  ;;
11546
11547sysv4 | sysv4.3*)
11548  version_type=linux # correct to gnu/linux during the next big refactor
11549  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11550  soname_spec='${libname}${release}${shared_ext}$major'
11551  shlibpath_var=LD_LIBRARY_PATH
11552  case $host_vendor in
11553    sni)
11554      shlibpath_overrides_runpath=no
11555      need_lib_prefix=no
11556      runpath_var=LD_RUN_PATH
11557      ;;
11558    siemens)
11559      need_lib_prefix=no
11560      ;;
11561    motorola)
11562      need_lib_prefix=no
11563      need_version=no
11564      shlibpath_overrides_runpath=no
11565      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11566      ;;
11567  esac
11568  ;;
11569
11570sysv4*MP*)
11571  if test -d /usr/nec ;then
11572    version_type=linux # correct to gnu/linux during the next big refactor
11573    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11574    soname_spec='$libname${shared_ext}.$major'
11575    shlibpath_var=LD_LIBRARY_PATH
11576  fi
11577  ;;
11578
11579sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11580  version_type=freebsd-elf
11581  need_lib_prefix=no
11582  need_version=no
11583  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11584  soname_spec='${libname}${release}${shared_ext}$major'
11585  shlibpath_var=LD_LIBRARY_PATH
11586  shlibpath_overrides_runpath=yes
11587  hardcode_into_libs=yes
11588  if test "$with_gnu_ld" = yes; then
11589    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11590  else
11591    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11592    case $host_os in
11593      sco3.2v5*)
11594        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11595	;;
11596    esac
11597  fi
11598  sys_lib_dlsearch_path_spec='/usr/lib'
11599  ;;
11600
11601tpf*)
11602  # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
11603  version_type=linux # correct to gnu/linux during the next big refactor
11604  need_lib_prefix=no
11605  need_version=no
11606  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11607  shlibpath_var=LD_LIBRARY_PATH
11608  shlibpath_overrides_runpath=no
11609  hardcode_into_libs=yes
11610  ;;
11611
11612uts4*)
11613  version_type=linux # correct to gnu/linux during the next big refactor
11614  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11615  soname_spec='${libname}${release}${shared_ext}$major'
11616  shlibpath_var=LD_LIBRARY_PATH
11617  ;;
11618
11619*)
11620  dynamic_linker=no
11621  ;;
11622esac
11623{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11624$as_echo "$dynamic_linker" >&6; }
11625test "$dynamic_linker" = no && can_build_shared=no
11626
11627variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11628if test "$GCC" = yes; then
11629  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11630fi
11631
11632if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
11633  sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
11634fi
11635if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
11636  sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
11637fi
11638
11639
11640
11641
11642
11643
11644
11645
11646
11647
11648
11649
11650
11651
11652
11653
11654
11655
11656
11657
11658
11659
11660
11661
11662
11663
11664
11665
11666
11667
11668
11669
11670
11671
11672
11673
11674
11675
11676
11677
11678
11679
11680
11681
11682
11683
11684
11685
11686
11687
11688
11689
11690
11691
11692
11693
11694
11695
11696
11697
11698
11699
11700
11701
11702
11703
11704
11705
11706
11707
11708
11709
11710
11711
11712
11713
11714
11715
11716
11717
11718
11719
11720
11721
11722
11723
11724
11725
11726
11727
11728
11729
11730  { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11731$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11732hardcode_action=
11733if test -n "$hardcode_libdir_flag_spec" ||
11734   test -n "$runpath_var" ||
11735   test "X$hardcode_automatic" = "Xyes" ; then
11736
11737  # We can hardcode non-existent directories.
11738  if test "$hardcode_direct" != no &&
11739     # If the only mechanism to avoid hardcoding is shlibpath_var, we
11740     # have to relink, otherwise we might link with an installed library
11741     # when we should be linking with a yet-to-be-installed one
11742     ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
11743     test "$hardcode_minus_L" != no; then
11744    # Linking always hardcodes the temporary library directory.
11745    hardcode_action=relink
11746  else
11747    # We can link without hardcoding, and we can hardcode nonexisting dirs.
11748    hardcode_action=immediate
11749  fi
11750else
11751  # We cannot hardcode anything, or else we can only hardcode existing
11752  # directories.
11753  hardcode_action=unsupported
11754fi
11755{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11756$as_echo "$hardcode_action" >&6; }
11757
11758if test "$hardcode_action" = relink ||
11759   test "$inherit_rpath" = yes; then
11760  # Fast installation is not supported
11761  enable_fast_install=no
11762elif test "$shlibpath_overrides_runpath" = yes ||
11763     test "$enable_shared" = no; then
11764  # Fast installation is not necessary
11765  enable_fast_install=needless
11766fi
11767
11768
11769
11770
11771
11772
11773  if test "x$enable_dlopen" != xyes; then
11774  enable_dlopen=unknown
11775  enable_dlopen_self=unknown
11776  enable_dlopen_self_static=unknown
11777else
11778  lt_cv_dlopen=no
11779  lt_cv_dlopen_libs=
11780
11781  case $host_os in
11782  beos*)
11783    lt_cv_dlopen="load_add_on"
11784    lt_cv_dlopen_libs=
11785    lt_cv_dlopen_self=yes
11786    ;;
11787
11788  mingw* | pw32* | cegcc*)
11789    lt_cv_dlopen="LoadLibrary"
11790    lt_cv_dlopen_libs=
11791    ;;
11792
11793  cygwin*)
11794    lt_cv_dlopen="dlopen"
11795    lt_cv_dlopen_libs=
11796    ;;
11797
11798  darwin*)
11799  # if libdl is installed we need to link against it
11800    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11801$as_echo_n "checking for dlopen in -ldl... " >&6; }
11802if ${ac_cv_lib_dl_dlopen+:} false; then :
11803  $as_echo_n "(cached) " >&6
11804else
11805  ac_check_lib_save_LIBS=$LIBS
11806LIBS="-ldl  $LIBS"
11807cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11808/* end confdefs.h.  */
11809
11810/* Override any GCC internal prototype to avoid an error.
11811   Use char because int might match the return type of a GCC
11812   builtin and then its argument prototype would still apply.  */
11813#ifdef __cplusplus
11814extern "C"
11815#endif
11816char dlopen ();
11817int
11818main ()
11819{
11820return dlopen ();
11821  ;
11822  return 0;
11823}
11824_ACEOF
11825if ac_fn_c_try_link "$LINENO"; then :
11826  ac_cv_lib_dl_dlopen=yes
11827else
11828  ac_cv_lib_dl_dlopen=no
11829fi
11830rm -f core conftest.err conftest.$ac_objext \
11831    conftest$ac_exeext conftest.$ac_ext
11832LIBS=$ac_check_lib_save_LIBS
11833fi
11834{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11835$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11836if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11837  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11838else
11839
11840    lt_cv_dlopen="dyld"
11841    lt_cv_dlopen_libs=
11842    lt_cv_dlopen_self=yes
11843
11844fi
11845
11846    ;;
11847
11848  *)
11849    ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
11850if test "x$ac_cv_func_shl_load" = xyes; then :
11851  lt_cv_dlopen="shl_load"
11852else
11853  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11854$as_echo_n "checking for shl_load in -ldld... " >&6; }
11855if ${ac_cv_lib_dld_shl_load+:} false; then :
11856  $as_echo_n "(cached) " >&6
11857else
11858  ac_check_lib_save_LIBS=$LIBS
11859LIBS="-ldld  $LIBS"
11860cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11861/* end confdefs.h.  */
11862
11863/* Override any GCC internal prototype to avoid an error.
11864   Use char because int might match the return type of a GCC
11865   builtin and then its argument prototype would still apply.  */
11866#ifdef __cplusplus
11867extern "C"
11868#endif
11869char shl_load ();
11870int
11871main ()
11872{
11873return shl_load ();
11874  ;
11875  return 0;
11876}
11877_ACEOF
11878if ac_fn_c_try_link "$LINENO"; then :
11879  ac_cv_lib_dld_shl_load=yes
11880else
11881  ac_cv_lib_dld_shl_load=no
11882fi
11883rm -f core conftest.err conftest.$ac_objext \
11884    conftest$ac_exeext conftest.$ac_ext
11885LIBS=$ac_check_lib_save_LIBS
11886fi
11887{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11888$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11889if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
11890  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
11891else
11892  ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
11893if test "x$ac_cv_func_dlopen" = xyes; then :
11894  lt_cv_dlopen="dlopen"
11895else
11896  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11897$as_echo_n "checking for dlopen in -ldl... " >&6; }
11898if ${ac_cv_lib_dl_dlopen+:} false; then :
11899  $as_echo_n "(cached) " >&6
11900else
11901  ac_check_lib_save_LIBS=$LIBS
11902LIBS="-ldl  $LIBS"
11903cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11904/* end confdefs.h.  */
11905
11906/* Override any GCC internal prototype to avoid an error.
11907   Use char because int might match the return type of a GCC
11908   builtin and then its argument prototype would still apply.  */
11909#ifdef __cplusplus
11910extern "C"
11911#endif
11912char dlopen ();
11913int
11914main ()
11915{
11916return dlopen ();
11917  ;
11918  return 0;
11919}
11920_ACEOF
11921if ac_fn_c_try_link "$LINENO"; then :
11922  ac_cv_lib_dl_dlopen=yes
11923else
11924  ac_cv_lib_dl_dlopen=no
11925fi
11926rm -f core conftest.err conftest.$ac_objext \
11927    conftest$ac_exeext conftest.$ac_ext
11928LIBS=$ac_check_lib_save_LIBS
11929fi
11930{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11931$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11932if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11933  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11934else
11935  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11936$as_echo_n "checking for dlopen in -lsvld... " >&6; }
11937if ${ac_cv_lib_svld_dlopen+:} false; then :
11938  $as_echo_n "(cached) " >&6
11939else
11940  ac_check_lib_save_LIBS=$LIBS
11941LIBS="-lsvld  $LIBS"
11942cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11943/* end confdefs.h.  */
11944
11945/* Override any GCC internal prototype to avoid an error.
11946   Use char because int might match the return type of a GCC
11947   builtin and then its argument prototype would still apply.  */
11948#ifdef __cplusplus
11949extern "C"
11950#endif
11951char dlopen ();
11952int
11953main ()
11954{
11955return dlopen ();
11956  ;
11957  return 0;
11958}
11959_ACEOF
11960if ac_fn_c_try_link "$LINENO"; then :
11961  ac_cv_lib_svld_dlopen=yes
11962else
11963  ac_cv_lib_svld_dlopen=no
11964fi
11965rm -f core conftest.err conftest.$ac_objext \
11966    conftest$ac_exeext conftest.$ac_ext
11967LIBS=$ac_check_lib_save_LIBS
11968fi
11969{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11970$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11971if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
11972  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11973else
11974  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11975$as_echo_n "checking for dld_link in -ldld... " >&6; }
11976if ${ac_cv_lib_dld_dld_link+:} false; then :
11977  $as_echo_n "(cached) " >&6
11978else
11979  ac_check_lib_save_LIBS=$LIBS
11980LIBS="-ldld  $LIBS"
11981cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11982/* end confdefs.h.  */
11983
11984/* Override any GCC internal prototype to avoid an error.
11985   Use char because int might match the return type of a GCC
11986   builtin and then its argument prototype would still apply.  */
11987#ifdef __cplusplus
11988extern "C"
11989#endif
11990char dld_link ();
11991int
11992main ()
11993{
11994return dld_link ();
11995  ;
11996  return 0;
11997}
11998_ACEOF
11999if ac_fn_c_try_link "$LINENO"; then :
12000  ac_cv_lib_dld_dld_link=yes
12001else
12002  ac_cv_lib_dld_dld_link=no
12003fi
12004rm -f core conftest.err conftest.$ac_objext \
12005    conftest$ac_exeext conftest.$ac_ext
12006LIBS=$ac_check_lib_save_LIBS
12007fi
12008{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
12009$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
12010if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
12011  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
12012fi
12013
12014
12015fi
12016
12017
12018fi
12019
12020
12021fi
12022
12023
12024fi
12025
12026
12027fi
12028
12029    ;;
12030  esac
12031
12032  if test "x$lt_cv_dlopen" != xno; then
12033    enable_dlopen=yes
12034  else
12035    enable_dlopen=no
12036  fi
12037
12038  case $lt_cv_dlopen in
12039  dlopen)
12040    save_CPPFLAGS="$CPPFLAGS"
12041    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12042
12043    save_LDFLAGS="$LDFLAGS"
12044    wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12045
12046    save_LIBS="$LIBS"
12047    LIBS="$lt_cv_dlopen_libs $LIBS"
12048
12049    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
12050$as_echo_n "checking whether a program can dlopen itself... " >&6; }
12051if ${lt_cv_dlopen_self+:} false; then :
12052  $as_echo_n "(cached) " >&6
12053else
12054  	  if test "$cross_compiling" = yes; then :
12055  lt_cv_dlopen_self=cross
12056else
12057  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12058  lt_status=$lt_dlunknown
12059  cat > conftest.$ac_ext <<_LT_EOF
12060#line $LINENO "configure"
12061#include "confdefs.h"
12062
12063#if HAVE_DLFCN_H
12064#include <dlfcn.h>
12065#endif
12066
12067#include <stdio.h>
12068
12069#ifdef RTLD_GLOBAL
12070#  define LT_DLGLOBAL		RTLD_GLOBAL
12071#else
12072#  ifdef DL_GLOBAL
12073#    define LT_DLGLOBAL		DL_GLOBAL
12074#  else
12075#    define LT_DLGLOBAL		0
12076#  endif
12077#endif
12078
12079/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12080   find out it does not work in some platform. */
12081#ifndef LT_DLLAZY_OR_NOW
12082#  ifdef RTLD_LAZY
12083#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
12084#  else
12085#    ifdef DL_LAZY
12086#      define LT_DLLAZY_OR_NOW		DL_LAZY
12087#    else
12088#      ifdef RTLD_NOW
12089#        define LT_DLLAZY_OR_NOW	RTLD_NOW
12090#      else
12091#        ifdef DL_NOW
12092#          define LT_DLLAZY_OR_NOW	DL_NOW
12093#        else
12094#          define LT_DLLAZY_OR_NOW	0
12095#        endif
12096#      endif
12097#    endif
12098#  endif
12099#endif
12100
12101/* When -fvisbility=hidden is used, assume the code has been annotated
12102   correspondingly for the symbols needed.  */
12103#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12104int fnord () __attribute__((visibility("default")));
12105#endif
12106
12107int fnord () { return 42; }
12108int main ()
12109{
12110  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12111  int status = $lt_dlunknown;
12112
12113  if (self)
12114    {
12115      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
12116      else
12117        {
12118	  if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
12119          else puts (dlerror ());
12120	}
12121      /* dlclose (self); */
12122    }
12123  else
12124    puts (dlerror ());
12125
12126  return status;
12127}
12128_LT_EOF
12129  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12130  (eval $ac_link) 2>&5
12131  ac_status=$?
12132  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12133  test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
12134    (./conftest; exit; ) >&5 2>/dev/null
12135    lt_status=$?
12136    case x$lt_status in
12137      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12138      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12139      x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
12140    esac
12141  else :
12142    # compilation failed
12143    lt_cv_dlopen_self=no
12144  fi
12145fi
12146rm -fr conftest*
12147
12148
12149fi
12150{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
12151$as_echo "$lt_cv_dlopen_self" >&6; }
12152
12153    if test "x$lt_cv_dlopen_self" = xyes; then
12154      wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
12155      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
12156$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
12157if ${lt_cv_dlopen_self_static+:} false; then :
12158  $as_echo_n "(cached) " >&6
12159else
12160  	  if test "$cross_compiling" = yes; then :
12161  lt_cv_dlopen_self_static=cross
12162else
12163  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12164  lt_status=$lt_dlunknown
12165  cat > conftest.$ac_ext <<_LT_EOF
12166#line $LINENO "configure"
12167#include "confdefs.h"
12168
12169#if HAVE_DLFCN_H
12170#include <dlfcn.h>
12171#endif
12172
12173#include <stdio.h>
12174
12175#ifdef RTLD_GLOBAL
12176#  define LT_DLGLOBAL		RTLD_GLOBAL
12177#else
12178#  ifdef DL_GLOBAL
12179#    define LT_DLGLOBAL		DL_GLOBAL
12180#  else
12181#    define LT_DLGLOBAL		0
12182#  endif
12183#endif
12184
12185/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12186   find out it does not work in some platform. */
12187#ifndef LT_DLLAZY_OR_NOW
12188#  ifdef RTLD_LAZY
12189#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
12190#  else
12191#    ifdef DL_LAZY
12192#      define LT_DLLAZY_OR_NOW		DL_LAZY
12193#    else
12194#      ifdef RTLD_NOW
12195#        define LT_DLLAZY_OR_NOW	RTLD_NOW
12196#      else
12197#        ifdef DL_NOW
12198#          define LT_DLLAZY_OR_NOW	DL_NOW
12199#        else
12200#          define LT_DLLAZY_OR_NOW	0
12201#        endif
12202#      endif
12203#    endif
12204#  endif
12205#endif
12206
12207/* When -fvisbility=hidden is used, assume the code has been annotated
12208   correspondingly for the symbols needed.  */
12209#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12210int fnord () __attribute__((visibility("default")));
12211#endif
12212
12213int fnord () { return 42; }
12214int main ()
12215{
12216  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12217  int status = $lt_dlunknown;
12218
12219  if (self)
12220    {
12221      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
12222      else
12223        {
12224	  if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
12225          else puts (dlerror ());
12226	}
12227      /* dlclose (self); */
12228    }
12229  else
12230    puts (dlerror ());
12231
12232  return status;
12233}
12234_LT_EOF
12235  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12236  (eval $ac_link) 2>&5
12237  ac_status=$?
12238  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12239  test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
12240    (./conftest; exit; ) >&5 2>/dev/null
12241    lt_status=$?
12242    case x$lt_status in
12243      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12244      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12245      x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
12246    esac
12247  else :
12248    # compilation failed
12249    lt_cv_dlopen_self_static=no
12250  fi
12251fi
12252rm -fr conftest*
12253
12254
12255fi
12256{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
12257$as_echo "$lt_cv_dlopen_self_static" >&6; }
12258    fi
12259
12260    CPPFLAGS="$save_CPPFLAGS"
12261    LDFLAGS="$save_LDFLAGS"
12262    LIBS="$save_LIBS"
12263    ;;
12264  esac
12265
12266  case $lt_cv_dlopen_self in
12267  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12268  *) enable_dlopen_self=unknown ;;
12269  esac
12270
12271  case $lt_cv_dlopen_self_static in
12272  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12273  *) enable_dlopen_self_static=unknown ;;
12274  esac
12275fi
12276
12277
12278
12279
12280
12281
12282
12283
12284
12285
12286
12287
12288
12289
12290
12291
12292
12293striplib=
12294old_striplib=
12295{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
12296$as_echo_n "checking whether stripping libraries is possible... " >&6; }
12297if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
12298  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
12299  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
12300  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12301$as_echo "yes" >&6; }
12302else
12303# FIXME - insert some real tests, host_os isn't really good enough
12304  case $host_os in
12305  darwin*)
12306    if test -n "$STRIP" ; then
12307      striplib="$STRIP -x"
12308      old_striplib="$STRIP -S"
12309      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12310$as_echo "yes" >&6; }
12311    else
12312      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12313$as_echo "no" >&6; }
12314    fi
12315    ;;
12316  *)
12317    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12318$as_echo "no" >&6; }
12319    ;;
12320  esac
12321fi
12322
12323
12324
12325
12326
12327
12328
12329
12330
12331
12332
12333
12334  # Report which library types will actually be built
12335  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
12336$as_echo_n "checking if libtool supports shared libraries... " >&6; }
12337  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
12338$as_echo "$can_build_shared" >&6; }
12339
12340  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
12341$as_echo_n "checking whether to build shared libraries... " >&6; }
12342  test "$can_build_shared" = "no" && enable_shared=no
12343
12344  # On AIX, shared libraries and static libraries use the same namespace, and
12345  # are all built from PIC.
12346  case $host_os in
12347  aix3*)
12348    test "$enable_shared" = yes && enable_static=no
12349    if test -n "$RANLIB"; then
12350      archive_cmds="$archive_cmds~\$RANLIB \$lib"
12351      postinstall_cmds='$RANLIB $lib'
12352    fi
12353    ;;
12354
12355  aix[4-9]*)
12356    if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
12357      test "$enable_shared" = yes && enable_static=no
12358    fi
12359    ;;
12360  esac
12361  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
12362$as_echo "$enable_shared" >&6; }
12363
12364  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
12365$as_echo_n "checking whether to build static libraries... " >&6; }
12366  # Make sure either enable_shared or enable_static is yes.
12367  test "$enable_shared" = yes || enable_static=yes
12368  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
12369$as_echo "$enable_static" >&6; }
12370
12371
12372
12373
12374fi
12375ac_ext=c
12376ac_cpp='$CPP $CPPFLAGS'
12377ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12378ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12379ac_compiler_gnu=$ac_cv_c_compiler_gnu
12380
12381CC="$lt_save_CC"
12382
12383
12384
12385
12386
12387
12388
12389
12390
12391
12392
12393
12394
12395
12396
12397        ac_config_commands="$ac_config_commands libtool"
12398
12399
12400
12401
12402# Only expand once:
12403
12404
12405
12406# Check for library functions that SQLite can optionally use.
12407for ac_func in fdatasync usleep fullfsync localtime_r gmtime_r
12408do :
12409  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12410ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
12411if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
12412  cat >>confdefs.h <<_ACEOF
12413#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
12414_ACEOF
12415
12416fi
12417done
12418
12419
12420ac_config_files="$ac_config_files Makefile sqlite3.pc"
12421
12422
12423
12424#-----------------------------------------------------------------------
12425#   --enable-readline
12426#
12427# Check whether --enable-readline was given.
12428if test "${enable_readline+set}" = set; then :
12429  enableval=$enable_readline;
12430else
12431  enable_readline=yes
12432fi
12433
12434if test x"$enable_readline" != xno ; then
12435  sLIBS=$LIBS
12436  LIBS=""
12437  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing tgetent" >&5
12438$as_echo_n "checking for library containing tgetent... " >&6; }
12439if ${ac_cv_search_tgetent+:} false; then :
12440  $as_echo_n "(cached) " >&6
12441else
12442  ac_func_search_save_LIBS=$LIBS
12443cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12444/* end confdefs.h.  */
12445
12446/* Override any GCC internal prototype to avoid an error.
12447   Use char because int might match the return type of a GCC
12448   builtin and then its argument prototype would still apply.  */
12449#ifdef __cplusplus
12450extern "C"
12451#endif
12452char tgetent ();
12453int
12454main ()
12455{
12456return tgetent ();
12457  ;
12458  return 0;
12459}
12460_ACEOF
12461for ac_lib in '' curses ncurses ncursesw; do
12462  if test -z "$ac_lib"; then
12463    ac_res="none required"
12464  else
12465    ac_res=-l$ac_lib
12466    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
12467  fi
12468  if ac_fn_c_try_link "$LINENO"; then :
12469  ac_cv_search_tgetent=$ac_res
12470fi
12471rm -f core conftest.err conftest.$ac_objext \
12472    conftest$ac_exeext
12473  if ${ac_cv_search_tgetent+:} false; then :
12474  break
12475fi
12476done
12477if ${ac_cv_search_tgetent+:} false; then :
12478
12479else
12480  ac_cv_search_tgetent=no
12481fi
12482rm conftest.$ac_ext
12483LIBS=$ac_func_search_save_LIBS
12484fi
12485{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_tgetent" >&5
12486$as_echo "$ac_cv_search_tgetent" >&6; }
12487ac_res=$ac_cv_search_tgetent
12488if test "$ac_res" != no; then :
12489  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12490
12491fi
12492
12493  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing readline" >&5
12494$as_echo_n "checking for library containing readline... " >&6; }
12495if ${ac_cv_search_readline+:} false; then :
12496  $as_echo_n "(cached) " >&6
12497else
12498  ac_func_search_save_LIBS=$LIBS
12499cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12500/* end confdefs.h.  */
12501
12502/* Override any GCC internal prototype to avoid an error.
12503   Use char because int might match the return type of a GCC
12504   builtin and then its argument prototype would still apply.  */
12505#ifdef __cplusplus
12506extern "C"
12507#endif
12508char readline ();
12509int
12510main ()
12511{
12512return readline ();
12513  ;
12514  return 0;
12515}
12516_ACEOF
12517for ac_lib in '' readline; do
12518  if test -z "$ac_lib"; then
12519    ac_res="none required"
12520  else
12521    ac_res=-l$ac_lib
12522    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
12523  fi
12524  if ac_fn_c_try_link "$LINENO"; then :
12525  ac_cv_search_readline=$ac_res
12526fi
12527rm -f core conftest.err conftest.$ac_objext \
12528    conftest$ac_exeext
12529  if ${ac_cv_search_readline+:} false; then :
12530  break
12531fi
12532done
12533if ${ac_cv_search_readline+:} false; then :
12534
12535else
12536  ac_cv_search_readline=no
12537fi
12538rm conftest.$ac_ext
12539LIBS=$ac_func_search_save_LIBS
12540fi
12541{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_readline" >&5
12542$as_echo "$ac_cv_search_readline" >&6; }
12543ac_res=$ac_cv_search_readline
12544if test "$ac_res" != no; then :
12545  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12546
12547else
12548  enable_readline=no
12549fi
12550
12551  for ac_func in readline
12552do :
12553  ac_fn_c_check_func "$LINENO" "readline" "ac_cv_func_readline"
12554if test "x$ac_cv_func_readline" = xyes; then :
12555  cat >>confdefs.h <<_ACEOF
12556#define HAVE_READLINE 1
12557_ACEOF
12558
12559fi
12560done
12561
12562  READLINE_LIBS=$LIBS
12563  LIBS=$sLIBS
12564fi
12565
12566#-----------------------------------------------------------------------
12567
12568#-----------------------------------------------------------------------
12569#   --enable-threadsafe
12570#
12571# Check whether --enable-threadsafe was given.
12572if test "${enable_threadsafe+set}" = set; then :
12573  enableval=$enable_threadsafe;
12574else
12575  enable_threadsafe=yes
12576fi
12577
12578THREADSAFE_FLAGS=-DSQLITE_THREADSAFE=0
12579if test x"$enable_threadsafe" != "xno"; then
12580  THREADSAFE_FLAGS=-DSQLITE_THREADSAFE=1
12581  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing pthread_create" >&5
12582$as_echo_n "checking for library containing pthread_create... " >&6; }
12583if ${ac_cv_search_pthread_create+:} false; then :
12584  $as_echo_n "(cached) " >&6
12585else
12586  ac_func_search_save_LIBS=$LIBS
12587cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12588/* end confdefs.h.  */
12589
12590/* Override any GCC internal prototype to avoid an error.
12591   Use char because int might match the return type of a GCC
12592   builtin and then its argument prototype would still apply.  */
12593#ifdef __cplusplus
12594extern "C"
12595#endif
12596char pthread_create ();
12597int
12598main ()
12599{
12600return pthread_create ();
12601  ;
12602  return 0;
12603}
12604_ACEOF
12605for ac_lib in '' pthread; do
12606  if test -z "$ac_lib"; then
12607    ac_res="none required"
12608  else
12609    ac_res=-l$ac_lib
12610    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
12611  fi
12612  if ac_fn_c_try_link "$LINENO"; then :
12613  ac_cv_search_pthread_create=$ac_res
12614fi
12615rm -f core conftest.err conftest.$ac_objext \
12616    conftest$ac_exeext
12617  if ${ac_cv_search_pthread_create+:} false; then :
12618  break
12619fi
12620done
12621if ${ac_cv_search_pthread_create+:} false; then :
12622
12623else
12624  ac_cv_search_pthread_create=no
12625fi
12626rm conftest.$ac_ext
12627LIBS=$ac_func_search_save_LIBS
12628fi
12629{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_pthread_create" >&5
12630$as_echo "$ac_cv_search_pthread_create" >&6; }
12631ac_res=$ac_cv_search_pthread_create
12632if test "$ac_res" != no; then :
12633  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12634
12635fi
12636
12637fi
12638
12639#-----------------------------------------------------------------------
12640
12641#-----------------------------------------------------------------------
12642#   --enable-dynamic-extensions
12643#
12644# Check whether --enable-dynamic-extensions was given.
12645if test "${enable_dynamic_extensions+set}" = set; then :
12646  enableval=$enable_dynamic_extensions;
12647else
12648  enable_dynamic_extensions=yes
12649fi
12650
12651if test x"$enable_dynamic_extensions" != "xno"; then
12652  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
12653$as_echo_n "checking for library containing dlopen... " >&6; }
12654if ${ac_cv_search_dlopen+:} false; then :
12655  $as_echo_n "(cached) " >&6
12656else
12657  ac_func_search_save_LIBS=$LIBS
12658cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12659/* end confdefs.h.  */
12660
12661/* Override any GCC internal prototype to avoid an error.
12662   Use char because int might match the return type of a GCC
12663   builtin and then its argument prototype would still apply.  */
12664#ifdef __cplusplus
12665extern "C"
12666#endif
12667char dlopen ();
12668int
12669main ()
12670{
12671return dlopen ();
12672  ;
12673  return 0;
12674}
12675_ACEOF
12676for ac_lib in '' dl; do
12677  if test -z "$ac_lib"; then
12678    ac_res="none required"
12679  else
12680    ac_res=-l$ac_lib
12681    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
12682  fi
12683  if ac_fn_c_try_link "$LINENO"; then :
12684  ac_cv_search_dlopen=$ac_res
12685fi
12686rm -f core conftest.err conftest.$ac_objext \
12687    conftest$ac_exeext
12688  if ${ac_cv_search_dlopen+:} false; then :
12689  break
12690fi
12691done
12692if ${ac_cv_search_dlopen+:} false; then :
12693
12694else
12695  ac_cv_search_dlopen=no
12696fi
12697rm conftest.$ac_ext
12698LIBS=$ac_func_search_save_LIBS
12699fi
12700{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
12701$as_echo "$ac_cv_search_dlopen" >&6; }
12702ac_res=$ac_cv_search_dlopen
12703if test "$ac_res" != no; then :
12704  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12705
12706fi
12707
12708else
12709  DYNAMIC_EXTENSION_FLAGS=-DSQLITE_OMIT_LOAD_EXTENSION=1
12710fi
12711{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for whether to support dynamic extensions" >&5
12712$as_echo_n "checking for whether to support dynamic extensions... " >&6; }
12713{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_dynamic_extensions" >&5
12714$as_echo "$enable_dynamic_extensions" >&6; }
12715
12716#-----------------------------------------------------------------------
12717
12718#-----------------------------------------------------------------------
12719# UPDATE: Maybe it's better if users just set CFLAGS before invoking
12720# configure. This option doesn't really add much...
12721#
12722#   --enable-tempstore
12723#
12724# AC_ARG_ENABLE(tempstore, [AS_HELP_STRING(
12725#   [--enable-tempstore],
12726#   [in-memory temporary tables (never, no, yes, always) [default=no]])],
12727#   [], [enable_tempstore=no])
12728# AC_MSG_CHECKING([for whether or not to store temp tables in-memory])
12729# case "$enable_tempstore" in
12730#   never )  TEMP_STORE=0 ;;
12731#   no )     TEMP_STORE=1 ;;
12732#   always ) TEMP_STORE=3 ;;
12733#   yes )    TEMP_STORE=3 ;;
12734#   * )
12735#     TEMP_STORE=1
12736#     enable_tempstore=yes
12737#   ;;
12738# esac
12739# AC_MSG_RESULT($enable_tempstore)
12740# AC_SUBST(TEMP_STORE)
12741#-----------------------------------------------------------------------
12742
12743cat >confcache <<\_ACEOF
12744# This file is a shell script that caches the results of configure
12745# tests run on this system so they can be shared between configure
12746# scripts and configure runs, see configure's option --config-cache.
12747# It is not useful on other systems.  If it contains results you don't
12748# want to keep, you may remove or edit it.
12749#
12750# config.status only pays attention to the cache file if you give it
12751# the --recheck option to rerun configure.
12752#
12753# `ac_cv_env_foo' variables (set or unset) will be overridden when
12754# loading this file, other *unset* `ac_cv_foo' will be assigned the
12755# following values.
12756
12757_ACEOF
12758
12759# The following way of writing the cache mishandles newlines in values,
12760# but we know of no workaround that is simple, portable, and efficient.
12761# So, we kill variables containing newlines.
12762# Ultrix sh set writes to stderr and can't be redirected directly,
12763# and sets the high bit in the cache file unless we assign to the vars.
12764(
12765  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
12766    eval ac_val=\$$ac_var
12767    case $ac_val in #(
12768    *${as_nl}*)
12769      case $ac_var in #(
12770      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
12771$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
12772      esac
12773      case $ac_var in #(
12774      _ | IFS | as_nl) ;; #(
12775      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
12776      *) { eval $ac_var=; unset $ac_var;} ;;
12777      esac ;;
12778    esac
12779  done
12780
12781  (set) 2>&1 |
12782    case $as_nl`(ac_space=' '; set) 2>&1` in #(
12783    *${as_nl}ac_space=\ *)
12784      # `set' does not quote correctly, so add quotes: double-quote
12785      # substitution turns \\\\ into \\, and sed turns \\ into \.
12786      sed -n \
12787	"s/'/'\\\\''/g;
12788	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
12789      ;; #(
12790    *)
12791      # `set' quotes correctly as required by POSIX, so do not add quotes.
12792      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
12793      ;;
12794    esac |
12795    sort
12796) |
12797  sed '
12798     /^ac_cv_env_/b end
12799     t clear
12800     :clear
12801     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
12802     t end
12803     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
12804     :end' >>confcache
12805if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
12806  if test -w "$cache_file"; then
12807    if test "x$cache_file" != "x/dev/null"; then
12808      { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
12809$as_echo "$as_me: updating cache $cache_file" >&6;}
12810      if test ! -f "$cache_file" || test -h "$cache_file"; then
12811	cat confcache >"$cache_file"
12812      else
12813        case $cache_file in #(
12814        */* | ?:*)
12815	  mv -f confcache "$cache_file"$$ &&
12816	  mv -f "$cache_file"$$ "$cache_file" ;; #(
12817        *)
12818	  mv -f confcache "$cache_file" ;;
12819	esac
12820      fi
12821    fi
12822  else
12823    { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
12824$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
12825  fi
12826fi
12827rm -f confcache
12828
12829test "x$prefix" = xNONE && prefix=$ac_default_prefix
12830# Let make expand exec_prefix.
12831test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
12832
12833# Transform confdefs.h into DEFS.
12834# Protect against shell expansion while executing Makefile rules.
12835# Protect against Makefile macro expansion.
12836#
12837# If the first sed substitution is executed (which looks for macros that
12838# take arguments), then branch to the quote section.  Otherwise,
12839# look for a macro that doesn't take arguments.
12840ac_script='
12841:mline
12842/\\$/{
12843 N
12844 s,\\\n,,
12845 b mline
12846}
12847t clear
12848:clear
12849s/^[	 ]*#[	 ]*define[	 ][	 ]*\([^	 (][^	 (]*([^)]*)\)[	 ]*\(.*\)/-D\1=\2/g
12850t quote
12851s/^[	 ]*#[	 ]*define[	 ][	 ]*\([^	 ][^	 ]*\)[	 ]*\(.*\)/-D\1=\2/g
12852t quote
12853b any
12854:quote
12855s/[	 `~#$^&*(){}\\|;'\''"<>?]/\\&/g
12856s/\[/\\&/g
12857s/\]/\\&/g
12858s/\$/$$/g
12859H
12860:any
12861${
12862	g
12863	s/^\n//
12864	s/\n/ /g
12865	p
12866}
12867'
12868DEFS=`sed -n "$ac_script" confdefs.h`
12869
12870
12871ac_libobjs=
12872ac_ltlibobjs=
12873U=
12874for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
12875  # 1. Remove the extension, and $U if already installed.
12876  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
12877  ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
12878  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
12879  #    will be set to the directory where LIBOBJS objects are built.
12880  as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
12881  as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
12882done
12883LIBOBJS=$ac_libobjs
12884
12885LTLIBOBJS=$ac_ltlibobjs
12886
12887
12888{ $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
12889$as_echo_n "checking that generated files are newer than configure... " >&6; }
12890   if test -n "$am_sleep_pid"; then
12891     # Hide warnings about reused PIDs.
12892     wait $am_sleep_pid 2>/dev/null
12893   fi
12894   { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
12895$as_echo "done" >&6; }
12896 if test -n "$EXEEXT"; then
12897  am__EXEEXT_TRUE=
12898  am__EXEEXT_FALSE='#'
12899else
12900  am__EXEEXT_TRUE='#'
12901  am__EXEEXT_FALSE=
12902fi
12903
12904if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
12905  as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
12906Usually this means the macro was only invoked conditionally." "$LINENO" 5
12907fi
12908if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
12909  as_fn_error $? "conditional \"AMDEP\" was never defined.
12910Usually this means the macro was only invoked conditionally." "$LINENO" 5
12911fi
12912if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
12913  as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
12914Usually this means the macro was only invoked conditionally." "$LINENO" 5
12915fi
12916if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
12917  as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
12918Usually this means the macro was only invoked conditionally." "$LINENO" 5
12919fi
12920
12921: "${CONFIG_STATUS=./config.status}"
12922ac_write_fail=0
12923ac_clean_files_save=$ac_clean_files
12924ac_clean_files="$ac_clean_files $CONFIG_STATUS"
12925{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
12926$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
12927as_write_fail=0
12928cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
12929#! $SHELL
12930# Generated by $as_me.
12931# Run this file to recreate the current configuration.
12932# Compiler output produced by configure, useful for debugging
12933# configure, is in config.log if it exists.
12934
12935debug=false
12936ac_cs_recheck=false
12937ac_cs_silent=false
12938
12939SHELL=\${CONFIG_SHELL-$SHELL}
12940export SHELL
12941_ASEOF
12942cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
12943## -------------------- ##
12944## M4sh Initialization. ##
12945## -------------------- ##
12946
12947# Be more Bourne compatible
12948DUALCASE=1; export DUALCASE # for MKS sh
12949if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
12950  emulate sh
12951  NULLCMD=:
12952  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
12953  # is contrary to our usage.  Disable this feature.
12954  alias -g '${1+"$@"}'='"$@"'
12955  setopt NO_GLOB_SUBST
12956else
12957  case `(set -o) 2>/dev/null` in #(
12958  *posix*) :
12959    set -o posix ;; #(
12960  *) :
12961     ;;
12962esac
12963fi
12964
12965
12966as_nl='
12967'
12968export as_nl
12969# Printing a long string crashes Solaris 7 /usr/bin/printf.
12970as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
12971as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
12972as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
12973# Prefer a ksh shell builtin over an external printf program on Solaris,
12974# but without wasting forks for bash or zsh.
12975if test -z "$BASH_VERSION$ZSH_VERSION" \
12976    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
12977  as_echo='print -r --'
12978  as_echo_n='print -rn --'
12979elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
12980  as_echo='printf %s\n'
12981  as_echo_n='printf %s'
12982else
12983  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
12984    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
12985    as_echo_n='/usr/ucb/echo -n'
12986  else
12987    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
12988    as_echo_n_body='eval
12989      arg=$1;
12990      case $arg in #(
12991      *"$as_nl"*)
12992	expr "X$arg" : "X\\(.*\\)$as_nl";
12993	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
12994      esac;
12995      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
12996    '
12997    export as_echo_n_body
12998    as_echo_n='sh -c $as_echo_n_body as_echo'
12999  fi
13000  export as_echo_body
13001  as_echo='sh -c $as_echo_body as_echo'
13002fi
13003
13004# The user is always right.
13005if test "${PATH_SEPARATOR+set}" != set; then
13006  PATH_SEPARATOR=:
13007  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
13008    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
13009      PATH_SEPARATOR=';'
13010  }
13011fi
13012
13013
13014# IFS
13015# We need space, tab and new line, in precisely that order.  Quoting is
13016# there to prevent editors from complaining about space-tab.
13017# (If _AS_PATH_WALK were called with IFS unset, it would disable word
13018# splitting by setting IFS to empty value.)
13019IFS=" ""	$as_nl"
13020
13021# Find who we are.  Look in the path if we contain no directory separator.
13022as_myself=
13023case $0 in #((
13024  *[\\/]* ) as_myself=$0 ;;
13025  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13026for as_dir in $PATH
13027do
13028  IFS=$as_save_IFS
13029  test -z "$as_dir" && as_dir=.
13030    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
13031  done
13032IFS=$as_save_IFS
13033
13034     ;;
13035esac
13036# We did not find ourselves, most probably we were run as `sh COMMAND'
13037# in which case we are not to be found in the path.
13038if test "x$as_myself" = x; then
13039  as_myself=$0
13040fi
13041if test ! -f "$as_myself"; then
13042  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
13043  exit 1
13044fi
13045
13046# Unset variables that we do not need and which cause bugs (e.g. in
13047# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
13048# suppresses any "Segmentation fault" message there.  '((' could
13049# trigger a bug in pdksh 5.2.14.
13050for as_var in BASH_ENV ENV MAIL MAILPATH
13051do eval test x\${$as_var+set} = xset \
13052  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
13053done
13054PS1='$ '
13055PS2='> '
13056PS4='+ '
13057
13058# NLS nuisances.
13059LC_ALL=C
13060export LC_ALL
13061LANGUAGE=C
13062export LANGUAGE
13063
13064# CDPATH.
13065(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
13066
13067
13068# as_fn_error STATUS ERROR [LINENO LOG_FD]
13069# ----------------------------------------
13070# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
13071# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
13072# script with STATUS, using 1 if that was 0.
13073as_fn_error ()
13074{
13075  as_status=$1; test $as_status -eq 0 && as_status=1
13076  if test "$4"; then
13077    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
13078    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
13079  fi
13080  $as_echo "$as_me: error: $2" >&2
13081  as_fn_exit $as_status
13082} # as_fn_error
13083
13084
13085# as_fn_set_status STATUS
13086# -----------------------
13087# Set $? to STATUS, without forking.
13088as_fn_set_status ()
13089{
13090  return $1
13091} # as_fn_set_status
13092
13093# as_fn_exit STATUS
13094# -----------------
13095# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
13096as_fn_exit ()
13097{
13098  set +e
13099  as_fn_set_status $1
13100  exit $1
13101} # as_fn_exit
13102
13103# as_fn_unset VAR
13104# ---------------
13105# Portably unset VAR.
13106as_fn_unset ()
13107{
13108  { eval $1=; unset $1;}
13109}
13110as_unset=as_fn_unset
13111# as_fn_append VAR VALUE
13112# ----------------------
13113# Append the text in VALUE to the end of the definition contained in VAR. Take
13114# advantage of any shell optimizations that allow amortized linear growth over
13115# repeated appends, instead of the typical quadratic growth present in naive
13116# implementations.
13117if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
13118  eval 'as_fn_append ()
13119  {
13120    eval $1+=\$2
13121  }'
13122else
13123  as_fn_append ()
13124  {
13125    eval $1=\$$1\$2
13126  }
13127fi # as_fn_append
13128
13129# as_fn_arith ARG...
13130# ------------------
13131# Perform arithmetic evaluation on the ARGs, and store the result in the
13132# global $as_val. Take advantage of shells that can avoid forks. The arguments
13133# must be portable across $(()) and expr.
13134if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
13135  eval 'as_fn_arith ()
13136  {
13137    as_val=$(( $* ))
13138  }'
13139else
13140  as_fn_arith ()
13141  {
13142    as_val=`expr "$@" || test $? -eq 1`
13143  }
13144fi # as_fn_arith
13145
13146
13147if expr a : '\(a\)' >/dev/null 2>&1 &&
13148   test "X`expr 00001 : '.*\(...\)'`" = X001; then
13149  as_expr=expr
13150else
13151  as_expr=false
13152fi
13153
13154if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
13155  as_basename=basename
13156else
13157  as_basename=false
13158fi
13159
13160if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
13161  as_dirname=dirname
13162else
13163  as_dirname=false
13164fi
13165
13166as_me=`$as_basename -- "$0" ||
13167$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
13168	 X"$0" : 'X\(//\)$' \| \
13169	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
13170$as_echo X/"$0" |
13171    sed '/^.*\/\([^/][^/]*\)\/*$/{
13172	    s//\1/
13173	    q
13174	  }
13175	  /^X\/\(\/\/\)$/{
13176	    s//\1/
13177	    q
13178	  }
13179	  /^X\/\(\/\).*/{
13180	    s//\1/
13181	    q
13182	  }
13183	  s/.*/./; q'`
13184
13185# Avoid depending upon Character Ranges.
13186as_cr_letters='abcdefghijklmnopqrstuvwxyz'
13187as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
13188as_cr_Letters=$as_cr_letters$as_cr_LETTERS
13189as_cr_digits='0123456789'
13190as_cr_alnum=$as_cr_Letters$as_cr_digits
13191
13192ECHO_C= ECHO_N= ECHO_T=
13193case `echo -n x` in #(((((
13194-n*)
13195  case `echo 'xy\c'` in
13196  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
13197  xy)  ECHO_C='\c';;
13198  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
13199       ECHO_T='	';;
13200  esac;;
13201*)
13202  ECHO_N='-n';;
13203esac
13204
13205rm -f conf$$ conf$$.exe conf$$.file
13206if test -d conf$$.dir; then
13207  rm -f conf$$.dir/conf$$.file
13208else
13209  rm -f conf$$.dir
13210  mkdir conf$$.dir 2>/dev/null
13211fi
13212if (echo >conf$$.file) 2>/dev/null; then
13213  if ln -s conf$$.file conf$$ 2>/dev/null; then
13214    as_ln_s='ln -s'
13215    # ... but there are two gotchas:
13216    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
13217    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
13218    # In both cases, we have to default to `cp -pR'.
13219    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
13220      as_ln_s='cp -pR'
13221  elif ln conf$$.file conf$$ 2>/dev/null; then
13222    as_ln_s=ln
13223  else
13224    as_ln_s='cp -pR'
13225  fi
13226else
13227  as_ln_s='cp -pR'
13228fi
13229rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
13230rmdir conf$$.dir 2>/dev/null
13231
13232
13233# as_fn_mkdir_p
13234# -------------
13235# Create "$as_dir" as a directory, including parents if necessary.
13236as_fn_mkdir_p ()
13237{
13238
13239  case $as_dir in #(
13240  -*) as_dir=./$as_dir;;
13241  esac
13242  test -d "$as_dir" || eval $as_mkdir_p || {
13243    as_dirs=
13244    while :; do
13245      case $as_dir in #(
13246      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
13247      *) as_qdir=$as_dir;;
13248      esac
13249      as_dirs="'$as_qdir' $as_dirs"
13250      as_dir=`$as_dirname -- "$as_dir" ||
13251$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13252	 X"$as_dir" : 'X\(//\)[^/]' \| \
13253	 X"$as_dir" : 'X\(//\)$' \| \
13254	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
13255$as_echo X"$as_dir" |
13256    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13257	    s//\1/
13258	    q
13259	  }
13260	  /^X\(\/\/\)[^/].*/{
13261	    s//\1/
13262	    q
13263	  }
13264	  /^X\(\/\/\)$/{
13265	    s//\1/
13266	    q
13267	  }
13268	  /^X\(\/\).*/{
13269	    s//\1/
13270	    q
13271	  }
13272	  s/.*/./; q'`
13273      test -d "$as_dir" && break
13274    done
13275    test -z "$as_dirs" || eval "mkdir $as_dirs"
13276  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
13277
13278
13279} # as_fn_mkdir_p
13280if mkdir -p . 2>/dev/null; then
13281  as_mkdir_p='mkdir -p "$as_dir"'
13282else
13283  test -d ./-p && rmdir ./-p
13284  as_mkdir_p=false
13285fi
13286
13287
13288# as_fn_executable_p FILE
13289# -----------------------
13290# Test if FILE is an executable regular file.
13291as_fn_executable_p ()
13292{
13293  test -f "$1" && test -x "$1"
13294} # as_fn_executable_p
13295as_test_x='test -x'
13296as_executable_p=as_fn_executable_p
13297
13298# Sed expression to map a string onto a valid CPP name.
13299as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
13300
13301# Sed expression to map a string onto a valid variable name.
13302as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
13303
13304
13305exec 6>&1
13306## ----------------------------------- ##
13307## Main body of $CONFIG_STATUS script. ##
13308## ----------------------------------- ##
13309_ASEOF
13310test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
13311
13312cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13313# Save the log message, to keep $0 and so on meaningful, and to
13314# report actual input values of CONFIG_FILES etc. instead of their
13315# values after options handling.
13316ac_log="
13317This file was extended by sqlite $as_me 3.7.2, which was
13318generated by GNU Autoconf 2.69.  Invocation command line was
13319
13320  CONFIG_FILES    = $CONFIG_FILES
13321  CONFIG_HEADERS  = $CONFIG_HEADERS
13322  CONFIG_LINKS    = $CONFIG_LINKS
13323  CONFIG_COMMANDS = $CONFIG_COMMANDS
13324  $ $0 $@
13325
13326on `(hostname || uname -n) 2>/dev/null | sed 1q`
13327"
13328
13329_ACEOF
13330
13331case $ac_config_files in *"
13332"*) set x $ac_config_files; shift; ac_config_files=$*;;
13333esac
13334
13335
13336
13337cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13338# Files that config.status was made for.
13339config_files="$ac_config_files"
13340config_commands="$ac_config_commands"
13341
13342_ACEOF
13343
13344cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13345ac_cs_usage="\
13346\`$as_me' instantiates files and other configuration actions
13347from templates according to the current configuration.  Unless the files
13348and actions are specified as TAGs, all are instantiated by default.
13349
13350Usage: $0 [OPTION]... [TAG]...
13351
13352  -h, --help       print this help, then exit
13353  -V, --version    print version number and configuration settings, then exit
13354      --config     print configuration, then exit
13355  -q, --quiet, --silent
13356                   do not print progress messages
13357  -d, --debug      don't remove temporary files
13358      --recheck    update $as_me by reconfiguring in the same conditions
13359      --file=FILE[:TEMPLATE]
13360                   instantiate the configuration file FILE
13361
13362Configuration files:
13363$config_files
13364
13365Configuration commands:
13366$config_commands
13367
13368Report bugs to <http://www.sqlite.org>."
13369
13370_ACEOF
13371cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13372ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
13373ac_cs_version="\\
13374sqlite config.status 3.7.2
13375configured by $0, generated by GNU Autoconf 2.69,
13376  with options \\"\$ac_cs_config\\"
13377
13378Copyright (C) 2012 Free Software Foundation, Inc.
13379This config.status script is free software; the Free Software Foundation
13380gives unlimited permission to copy, distribute and modify it."
13381
13382ac_pwd='$ac_pwd'
13383srcdir='$srcdir'
13384INSTALL='$INSTALL'
13385MKDIR_P='$MKDIR_P'
13386AWK='$AWK'
13387test -n "\$AWK" || AWK=awk
13388_ACEOF
13389
13390cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13391# The default lists apply if the user does not specify any file.
13392ac_need_defaults=:
13393while test $# != 0
13394do
13395  case $1 in
13396  --*=?*)
13397    ac_option=`expr "X$1" : 'X\([^=]*\)='`
13398    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
13399    ac_shift=:
13400    ;;
13401  --*=)
13402    ac_option=`expr "X$1" : 'X\([^=]*\)='`
13403    ac_optarg=
13404    ac_shift=:
13405    ;;
13406  *)
13407    ac_option=$1
13408    ac_optarg=$2
13409    ac_shift=shift
13410    ;;
13411  esac
13412
13413  case $ac_option in
13414  # Handling of the options.
13415  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
13416    ac_cs_recheck=: ;;
13417  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
13418    $as_echo "$ac_cs_version"; exit ;;
13419  --config | --confi | --conf | --con | --co | --c )
13420    $as_echo "$ac_cs_config"; exit ;;
13421  --debug | --debu | --deb | --de | --d | -d )
13422    debug=: ;;
13423  --file | --fil | --fi | --f )
13424    $ac_shift
13425    case $ac_optarg in
13426    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
13427    '') as_fn_error $? "missing file argument" ;;
13428    esac
13429    as_fn_append CONFIG_FILES " '$ac_optarg'"
13430    ac_need_defaults=false;;
13431  --he | --h |  --help | --hel | -h )
13432    $as_echo "$ac_cs_usage"; exit ;;
13433  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
13434  | -silent | --silent | --silen | --sile | --sil | --si | --s)
13435    ac_cs_silent=: ;;
13436
13437  # This is an error.
13438  -*) as_fn_error $? "unrecognized option: \`$1'
13439Try \`$0 --help' for more information." ;;
13440
13441  *) as_fn_append ac_config_targets " $1"
13442     ac_need_defaults=false ;;
13443
13444  esac
13445  shift
13446done
13447
13448ac_configure_extra_args=
13449
13450if $ac_cs_silent; then
13451  exec 6>/dev/null
13452  ac_configure_extra_args="$ac_configure_extra_args --silent"
13453fi
13454
13455_ACEOF
13456cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13457if \$ac_cs_recheck; then
13458  set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
13459  shift
13460  \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
13461  CONFIG_SHELL='$SHELL'
13462  export CONFIG_SHELL
13463  exec "\$@"
13464fi
13465
13466_ACEOF
13467cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13468exec 5>>config.log
13469{
13470  echo
13471  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
13472## Running $as_me. ##
13473_ASBOX
13474  $as_echo "$ac_log"
13475} >&5
13476
13477_ACEOF
13478cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13479#
13480# INIT-COMMANDS
13481#
13482AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
13483
13484
13485# The HP-UX ksh and POSIX shell print the target directory to stdout
13486# if CDPATH is set.
13487(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
13488
13489sed_quote_subst='$sed_quote_subst'
13490double_quote_subst='$double_quote_subst'
13491delay_variable_subst='$delay_variable_subst'
13492macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
13493macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
13494enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
13495enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
13496pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
13497enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
13498SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
13499ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
13500PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
13501host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
13502host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
13503host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
13504build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
13505build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
13506build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
13507SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
13508Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
13509GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
13510EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
13511FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
13512LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
13513NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
13514LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
13515max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
13516ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
13517exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
13518lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
13519lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
13520lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
13521lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
13522lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
13523reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
13524reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
13525OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
13526deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
13527file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
13528file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
13529want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
13530DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
13531sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
13532AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
13533AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
13534archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
13535STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
13536RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
13537old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
13538old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
13539old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
13540lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
13541CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
13542CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
13543compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
13544GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
13545lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
13546lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
13547lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
13548lt_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"`'
13549nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
13550lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
13551objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
13552MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
13553lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
13554lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
13555lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
13556lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
13557lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
13558need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
13559MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
13560DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
13561NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
13562LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
13563OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
13564OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
13565libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
13566shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
13567extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
13568archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
13569enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
13570export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
13571whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
13572compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
13573old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
13574old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
13575archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
13576archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
13577module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
13578module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
13579with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
13580allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
13581no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
13582hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
13583hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
13584hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
13585hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
13586hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
13587hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
13588hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
13589inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
13590link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
13591always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
13592export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
13593exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
13594include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
13595prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
13596postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
13597file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
13598variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
13599need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
13600need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
13601version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
13602runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
13603shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
13604shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
13605libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
13606library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
13607soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
13608install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
13609postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
13610postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
13611finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
13612finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
13613hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
13614sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
13615sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
13616hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
13617enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
13618enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
13619enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
13620old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
13621striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
13622
13623LTCC='$LTCC'
13624LTCFLAGS='$LTCFLAGS'
13625compiler='$compiler_DEFAULT'
13626
13627# A function that is used when there is no print builtin or printf.
13628func_fallback_echo ()
13629{
13630  eval 'cat <<_LTECHO_EOF
13631\$1
13632_LTECHO_EOF'
13633}
13634
13635# Quote evaled strings.
13636for var in SHELL \
13637ECHO \
13638PATH_SEPARATOR \
13639SED \
13640GREP \
13641EGREP \
13642FGREP \
13643LD \
13644NM \
13645LN_S \
13646lt_SP2NL \
13647lt_NL2SP \
13648reload_flag \
13649OBJDUMP \
13650deplibs_check_method \
13651file_magic_cmd \
13652file_magic_glob \
13653want_nocaseglob \
13654DLLTOOL \
13655sharedlib_from_linklib_cmd \
13656AR \
13657AR_FLAGS \
13658archiver_list_spec \
13659STRIP \
13660RANLIB \
13661CC \
13662CFLAGS \
13663compiler \
13664lt_cv_sys_global_symbol_pipe \
13665lt_cv_sys_global_symbol_to_cdecl \
13666lt_cv_sys_global_symbol_to_c_name_address \
13667lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
13668nm_file_list_spec \
13669lt_prog_compiler_no_builtin_flag \
13670lt_prog_compiler_pic \
13671lt_prog_compiler_wl \
13672lt_prog_compiler_static \
13673lt_cv_prog_compiler_c_o \
13674need_locks \
13675MANIFEST_TOOL \
13676DSYMUTIL \
13677NMEDIT \
13678LIPO \
13679OTOOL \
13680OTOOL64 \
13681shrext_cmds \
13682export_dynamic_flag_spec \
13683whole_archive_flag_spec \
13684compiler_needs_object \
13685with_gnu_ld \
13686allow_undefined_flag \
13687no_undefined_flag \
13688hardcode_libdir_flag_spec \
13689hardcode_libdir_separator \
13690exclude_expsyms \
13691include_expsyms \
13692file_list_spec \
13693variables_saved_for_relink \
13694libname_spec \
13695library_names_spec \
13696soname_spec \
13697install_override_mode \
13698finish_eval \
13699old_striplib \
13700striplib; do
13701    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
13702    *[\\\\\\\`\\"\\\$]*)
13703      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
13704      ;;
13705    *)
13706      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
13707      ;;
13708    esac
13709done
13710
13711# Double-quote double-evaled strings.
13712for var in reload_cmds \
13713old_postinstall_cmds \
13714old_postuninstall_cmds \
13715old_archive_cmds \
13716extract_expsyms_cmds \
13717old_archive_from_new_cmds \
13718old_archive_from_expsyms_cmds \
13719archive_cmds \
13720archive_expsym_cmds \
13721module_cmds \
13722module_expsym_cmds \
13723export_symbols_cmds \
13724prelink_cmds \
13725postlink_cmds \
13726postinstall_cmds \
13727postuninstall_cmds \
13728finish_cmds \
13729sys_lib_search_path_spec \
13730sys_lib_dlsearch_path_spec; do
13731    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
13732    *[\\\\\\\`\\"\\\$]*)
13733      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
13734      ;;
13735    *)
13736      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
13737      ;;
13738    esac
13739done
13740
13741ac_aux_dir='$ac_aux_dir'
13742xsi_shell='$xsi_shell'
13743lt_shell_append='$lt_shell_append'
13744
13745# See if we are running on zsh, and set the options which allow our
13746# commands through without removal of \ escapes INIT.
13747if test -n "\${ZSH_VERSION+set}" ; then
13748   setopt NO_GLOB_SUBST
13749fi
13750
13751
13752    PACKAGE='$PACKAGE'
13753    VERSION='$VERSION'
13754    TIMESTAMP='$TIMESTAMP'
13755    RM='$RM'
13756    ofile='$ofile'
13757
13758
13759
13760
13761_ACEOF
13762
13763cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13764
13765# Handling of arguments.
13766for ac_config_target in $ac_config_targets
13767do
13768  case $ac_config_target in
13769    "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
13770    "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
13771    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
13772    "sqlite3.pc") CONFIG_FILES="$CONFIG_FILES sqlite3.pc" ;;
13773
13774  *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
13775  esac
13776done
13777
13778
13779# If the user did not use the arguments to specify the items to instantiate,
13780# then the envvar interface is used.  Set only those that are not.
13781# We use the long form for the default assignment because of an extremely
13782# bizarre bug on SunOS 4.1.3.
13783if $ac_need_defaults; then
13784  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
13785  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
13786fi
13787
13788# Have a temporary directory for convenience.  Make it in the build tree
13789# simply because there is no reason against having it here, and in addition,
13790# creating and moving files from /tmp can sometimes cause problems.
13791# Hook for its removal unless debugging.
13792# Note that there is a small window in which the directory will not be cleaned:
13793# after its creation but before its name has been assigned to `$tmp'.
13794$debug ||
13795{
13796  tmp= ac_tmp=
13797  trap 'exit_status=$?
13798  : "${ac_tmp:=$tmp}"
13799  { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
13800' 0
13801  trap 'as_fn_exit 1' 1 2 13 15
13802}
13803# Create a (secure) tmp directory for tmp files.
13804
13805{
13806  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
13807  test -d "$tmp"
13808}  ||
13809{
13810  tmp=./conf$$-$RANDOM
13811  (umask 077 && mkdir "$tmp")
13812} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
13813ac_tmp=$tmp
13814
13815# Set up the scripts for CONFIG_FILES section.
13816# No need to generate them if there are no CONFIG_FILES.
13817# This happens for instance with `./config.status config.h'.
13818if test -n "$CONFIG_FILES"; then
13819
13820
13821ac_cr=`echo X | tr X '\015'`
13822# On cygwin, bash can eat \r inside `` if the user requested igncr.
13823# But we know of no other shell where ac_cr would be empty at this
13824# point, so we can use a bashism as a fallback.
13825if test "x$ac_cr" = x; then
13826  eval ac_cr=\$\'\\r\'
13827fi
13828ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
13829if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
13830  ac_cs_awk_cr='\\r'
13831else
13832  ac_cs_awk_cr=$ac_cr
13833fi
13834
13835echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
13836_ACEOF
13837
13838
13839{
13840  echo "cat >conf$$subs.awk <<_ACEOF" &&
13841  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
13842  echo "_ACEOF"
13843} >conf$$subs.sh ||
13844  as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
13845ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
13846ac_delim='%!_!# '
13847for ac_last_try in false false false false false :; do
13848  . ./conf$$subs.sh ||
13849    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
13850
13851  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
13852  if test $ac_delim_n = $ac_delim_num; then
13853    break
13854  elif $ac_last_try; then
13855    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
13856  else
13857    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
13858  fi
13859done
13860rm -f conf$$subs.sh
13861
13862cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13863cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
13864_ACEOF
13865sed -n '
13866h
13867s/^/S["/; s/!.*/"]=/
13868p
13869g
13870s/^[^!]*!//
13871:repl
13872t repl
13873s/'"$ac_delim"'$//
13874t delim
13875:nl
13876h
13877s/\(.\{148\}\)..*/\1/
13878t more1
13879s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
13880p
13881n
13882b repl
13883:more1
13884s/["\\]/\\&/g; s/^/"/; s/$/"\\/
13885p
13886g
13887s/.\{148\}//
13888t nl
13889:delim
13890h
13891s/\(.\{148\}\)..*/\1/
13892t more2
13893s/["\\]/\\&/g; s/^/"/; s/$/"/
13894p
13895b
13896:more2
13897s/["\\]/\\&/g; s/^/"/; s/$/"\\/
13898p
13899g
13900s/.\{148\}//
13901t delim
13902' <conf$$subs.awk | sed '
13903/^[^""]/{
13904  N
13905  s/\n//
13906}
13907' >>$CONFIG_STATUS || ac_write_fail=1
13908rm -f conf$$subs.awk
13909cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13910_ACAWK
13911cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
13912  for (key in S) S_is_set[key] = 1
13913  FS = ""
13914
13915}
13916{
13917  line = $ 0
13918  nfields = split(line, field, "@")
13919  substed = 0
13920  len = length(field[1])
13921  for (i = 2; i < nfields; i++) {
13922    key = field[i]
13923    keylen = length(key)
13924    if (S_is_set[key]) {
13925      value = S[key]
13926      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
13927      len += length(value) + length(field[++i])
13928      substed = 1
13929    } else
13930      len += 1 + keylen
13931  }
13932
13933  print line
13934}
13935
13936_ACAWK
13937_ACEOF
13938cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13939if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
13940  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
13941else
13942  cat
13943fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
13944  || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
13945_ACEOF
13946
13947# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
13948# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
13949# trailing colons and then remove the whole line if VPATH becomes empty
13950# (actually we leave an empty line to preserve line numbers).
13951if test "x$srcdir" = x.; then
13952  ac_vpsub='/^[	 ]*VPATH[	 ]*=[	 ]*/{
13953h
13954s///
13955s/^/:/
13956s/[	 ]*$/:/
13957s/:\$(srcdir):/:/g
13958s/:\${srcdir}:/:/g
13959s/:@srcdir@:/:/g
13960s/^:*//
13961s/:*$//
13962x
13963s/\(=[	 ]*\).*/\1/
13964G
13965s/\n//
13966s/^[^=]*=[	 ]*$//
13967}'
13968fi
13969
13970cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13971fi # test -n "$CONFIG_FILES"
13972
13973
13974eval set X "  :F $CONFIG_FILES      :C $CONFIG_COMMANDS"
13975shift
13976for ac_tag
13977do
13978  case $ac_tag in
13979  :[FHLC]) ac_mode=$ac_tag; continue;;
13980  esac
13981  case $ac_mode$ac_tag in
13982  :[FHL]*:*);;
13983  :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
13984  :[FH]-) ac_tag=-:-;;
13985  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
13986  esac
13987  ac_save_IFS=$IFS
13988  IFS=:
13989  set x $ac_tag
13990  IFS=$ac_save_IFS
13991  shift
13992  ac_file=$1
13993  shift
13994
13995  case $ac_mode in
13996  :L) ac_source=$1;;
13997  :[FH])
13998    ac_file_inputs=
13999    for ac_f
14000    do
14001      case $ac_f in
14002      -) ac_f="$ac_tmp/stdin";;
14003      *) # Look for the file first in the build tree, then in the source tree
14004	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
14005	 # because $ac_f cannot contain `:'.
14006	 test -f "$ac_f" ||
14007	   case $ac_f in
14008	   [\\/$]*) false;;
14009	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
14010	   esac ||
14011	   as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
14012      esac
14013      case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
14014      as_fn_append ac_file_inputs " '$ac_f'"
14015    done
14016
14017    # Let's still pretend it is `configure' which instantiates (i.e., don't
14018    # use $as_me), people would be surprised to read:
14019    #    /* config.h.  Generated by config.status.  */
14020    configure_input='Generated from '`
14021	  $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
14022	`' by configure.'
14023    if test x"$ac_file" != x-; then
14024      configure_input="$ac_file.  $configure_input"
14025      { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
14026$as_echo "$as_me: creating $ac_file" >&6;}
14027    fi
14028    # Neutralize special characters interpreted by sed in replacement strings.
14029    case $configure_input in #(
14030    *\&* | *\|* | *\\* )
14031       ac_sed_conf_input=`$as_echo "$configure_input" |
14032       sed 's/[\\\\&|]/\\\\&/g'`;; #(
14033    *) ac_sed_conf_input=$configure_input;;
14034    esac
14035
14036    case $ac_tag in
14037    *:-:* | *:-) cat >"$ac_tmp/stdin" \
14038      || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
14039    esac
14040    ;;
14041  esac
14042
14043  ac_dir=`$as_dirname -- "$ac_file" ||
14044$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14045	 X"$ac_file" : 'X\(//\)[^/]' \| \
14046	 X"$ac_file" : 'X\(//\)$' \| \
14047	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
14048$as_echo X"$ac_file" |
14049    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14050	    s//\1/
14051	    q
14052	  }
14053	  /^X\(\/\/\)[^/].*/{
14054	    s//\1/
14055	    q
14056	  }
14057	  /^X\(\/\/\)$/{
14058	    s//\1/
14059	    q
14060	  }
14061	  /^X\(\/\).*/{
14062	    s//\1/
14063	    q
14064	  }
14065	  s/.*/./; q'`
14066  as_dir="$ac_dir"; as_fn_mkdir_p
14067  ac_builddir=.
14068
14069case "$ac_dir" in
14070.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
14071*)
14072  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
14073  # A ".." for each directory in $ac_dir_suffix.
14074  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
14075  case $ac_top_builddir_sub in
14076  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
14077  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
14078  esac ;;
14079esac
14080ac_abs_top_builddir=$ac_pwd
14081ac_abs_builddir=$ac_pwd$ac_dir_suffix
14082# for backward compatibility:
14083ac_top_builddir=$ac_top_build_prefix
14084
14085case $srcdir in
14086  .)  # We are building in place.
14087    ac_srcdir=.
14088    ac_top_srcdir=$ac_top_builddir_sub
14089    ac_abs_top_srcdir=$ac_pwd ;;
14090  [\\/]* | ?:[\\/]* )  # Absolute name.
14091    ac_srcdir=$srcdir$ac_dir_suffix;
14092    ac_top_srcdir=$srcdir
14093    ac_abs_top_srcdir=$srcdir ;;
14094  *) # Relative name.
14095    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
14096    ac_top_srcdir=$ac_top_build_prefix$srcdir
14097    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
14098esac
14099ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
14100
14101
14102  case $ac_mode in
14103  :F)
14104  #
14105  # CONFIG_FILE
14106  #
14107
14108  case $INSTALL in
14109  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
14110  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
14111  esac
14112  ac_MKDIR_P=$MKDIR_P
14113  case $MKDIR_P in
14114  [\\/$]* | ?:[\\/]* ) ;;
14115  */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
14116  esac
14117_ACEOF
14118
14119cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14120# If the template does not know about datarootdir, expand it.
14121# FIXME: This hack should be removed a few years after 2.60.
14122ac_datarootdir_hack=; ac_datarootdir_seen=
14123ac_sed_dataroot='
14124/datarootdir/ {
14125  p
14126  q
14127}
14128/@datadir@/p
14129/@docdir@/p
14130/@infodir@/p
14131/@localedir@/p
14132/@mandir@/p'
14133case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
14134*datarootdir*) ac_datarootdir_seen=yes;;
14135*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
14136  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
14137$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
14138_ACEOF
14139cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14140  ac_datarootdir_hack='
14141  s&@datadir@&$datadir&g
14142  s&@docdir@&$docdir&g
14143  s&@infodir@&$infodir&g
14144  s&@localedir@&$localedir&g
14145  s&@mandir@&$mandir&g
14146  s&\\\${datarootdir}&$datarootdir&g' ;;
14147esac
14148_ACEOF
14149
14150# Neutralize VPATH when `$srcdir' = `.'.
14151# Shell code in configure.ac might set extrasub.
14152# FIXME: do we really want to maintain this feature?
14153cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14154ac_sed_extra="$ac_vpsub
14155$extrasub
14156_ACEOF
14157cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14158:t
14159/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
14160s|@configure_input@|$ac_sed_conf_input|;t t
14161s&@top_builddir@&$ac_top_builddir_sub&;t t
14162s&@top_build_prefix@&$ac_top_build_prefix&;t t
14163s&@srcdir@&$ac_srcdir&;t t
14164s&@abs_srcdir@&$ac_abs_srcdir&;t t
14165s&@top_srcdir@&$ac_top_srcdir&;t t
14166s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
14167s&@builddir@&$ac_builddir&;t t
14168s&@abs_builddir@&$ac_abs_builddir&;t t
14169s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
14170s&@INSTALL@&$ac_INSTALL&;t t
14171s&@MKDIR_P@&$ac_MKDIR_P&;t t
14172$ac_datarootdir_hack
14173"
14174eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
14175  >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
14176
14177test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
14178  { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
14179  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' \
14180      "$ac_tmp/out"`; test -z "$ac_out"; } &&
14181  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
14182which seems to be undefined.  Please make sure it is defined" >&5
14183$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
14184which seems to be undefined.  Please make sure it is defined" >&2;}
14185
14186  rm -f "$ac_tmp/stdin"
14187  case $ac_file in
14188  -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
14189  *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
14190  esac \
14191  || as_fn_error $? "could not create $ac_file" "$LINENO" 5
14192 ;;
14193
14194
14195  :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
14196$as_echo "$as_me: executing $ac_file commands" >&6;}
14197 ;;
14198  esac
14199
14200
14201  case $ac_file$ac_mode in
14202    "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
14203  # Older Autoconf quotes --file arguments for eval, but not when files
14204  # are listed without --file.  Let's play safe and only enable the eval
14205  # if we detect the quoting.
14206  case $CONFIG_FILES in
14207  *\'*) eval set x "$CONFIG_FILES" ;;
14208  *)   set x $CONFIG_FILES ;;
14209  esac
14210  shift
14211  for mf
14212  do
14213    # Strip MF so we end up with the name of the file.
14214    mf=`echo "$mf" | sed -e 's/:.*$//'`
14215    # Check whether this is an Automake generated Makefile or not.
14216    # We used to match only the files named 'Makefile.in', but
14217    # some people rename them; so instead we look at the file content.
14218    # Grep'ing the first line is not enough: some people post-process
14219    # each Makefile.in and add a new line on top of each file to say so.
14220    # Grep'ing the whole file is not good either: AIX grep has a line
14221    # limit of 2048, but all sed's we know have understand at least 4000.
14222    if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
14223      dirpart=`$as_dirname -- "$mf" ||
14224$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14225	 X"$mf" : 'X\(//\)[^/]' \| \
14226	 X"$mf" : 'X\(//\)$' \| \
14227	 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
14228$as_echo X"$mf" |
14229    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14230	    s//\1/
14231	    q
14232	  }
14233	  /^X\(\/\/\)[^/].*/{
14234	    s//\1/
14235	    q
14236	  }
14237	  /^X\(\/\/\)$/{
14238	    s//\1/
14239	    q
14240	  }
14241	  /^X\(\/\).*/{
14242	    s//\1/
14243	    q
14244	  }
14245	  s/.*/./; q'`
14246    else
14247      continue
14248    fi
14249    # Extract the definition of DEPDIR, am__include, and am__quote
14250    # from the Makefile without running 'make'.
14251    DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
14252    test -z "$DEPDIR" && continue
14253    am__include=`sed -n 's/^am__include = //p' < "$mf"`
14254    test -z "$am__include" && continue
14255    am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
14256    # Find all dependency output files, they are included files with
14257    # $(DEPDIR) in their names.  We invoke sed twice because it is the
14258    # simplest approach to changing $(DEPDIR) to its actual value in the
14259    # expansion.
14260    for file in `sed -n "
14261      s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
14262	 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
14263      # Make sure the directory exists.
14264      test -f "$dirpart/$file" && continue
14265      fdir=`$as_dirname -- "$file" ||
14266$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14267	 X"$file" : 'X\(//\)[^/]' \| \
14268	 X"$file" : 'X\(//\)$' \| \
14269	 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
14270$as_echo X"$file" |
14271    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14272	    s//\1/
14273	    q
14274	  }
14275	  /^X\(\/\/\)[^/].*/{
14276	    s//\1/
14277	    q
14278	  }
14279	  /^X\(\/\/\)$/{
14280	    s//\1/
14281	    q
14282	  }
14283	  /^X\(\/\).*/{
14284	    s//\1/
14285	    q
14286	  }
14287	  s/.*/./; q'`
14288      as_dir=$dirpart/$fdir; as_fn_mkdir_p
14289      # echo "creating $dirpart/$file"
14290      echo '# dummy' > "$dirpart/$file"
14291    done
14292  done
14293}
14294 ;;
14295    "libtool":C)
14296
14297    # See if we are running on zsh, and set the options which allow our
14298    # commands through without removal of \ escapes.
14299    if test -n "${ZSH_VERSION+set}" ; then
14300      setopt NO_GLOB_SUBST
14301    fi
14302
14303    cfgfile="${ofile}T"
14304    trap "$RM \"$cfgfile\"; exit 1" 1 2 15
14305    $RM "$cfgfile"
14306
14307    cat <<_LT_EOF >> "$cfgfile"
14308#! $SHELL
14309
14310# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
14311# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
14312# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
14313# NOTE: Changes made to this file will be lost: look at ltmain.sh.
14314#
14315#   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
14316#                 2006, 2007, 2008, 2009, 2010, 2011 Free Software
14317#                 Foundation, Inc.
14318#   Written by Gordon Matzigkeit, 1996
14319#
14320#   This file is part of GNU Libtool.
14321#
14322# GNU Libtool is free software; you can redistribute it and/or
14323# modify it under the terms of the GNU General Public License as
14324# published by the Free Software Foundation; either version 2 of
14325# the License, or (at your option) any later version.
14326#
14327# As a special exception to the GNU General Public License,
14328# if you distribute this file as part of a program or library that
14329# is built using GNU Libtool, you may include this file under the
14330# same distribution terms that you use for the rest of that program.
14331#
14332# GNU Libtool is distributed in the hope that it will be useful,
14333# but WITHOUT ANY WARRANTY; without even the implied warranty of
14334# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
14335# GNU General Public License for more details.
14336#
14337# You should have received a copy of the GNU General Public License
14338# along with GNU Libtool; see the file COPYING.  If not, a copy
14339# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
14340# obtained by writing to the Free Software Foundation, Inc.,
14341# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
14342
14343
14344# The names of the tagged configurations supported by this script.
14345available_tags=""
14346
14347# ### BEGIN LIBTOOL CONFIG
14348
14349# Which release of libtool.m4 was used?
14350macro_version=$macro_version
14351macro_revision=$macro_revision
14352
14353# Whether or not to build shared libraries.
14354build_libtool_libs=$enable_shared
14355
14356# Whether or not to build static libraries.
14357build_old_libs=$enable_static
14358
14359# What type of objects to build.
14360pic_mode=$pic_mode
14361
14362# Whether or not to optimize for fast installation.
14363fast_install=$enable_fast_install
14364
14365# Shell to use when invoking shell scripts.
14366SHELL=$lt_SHELL
14367
14368# An echo program that protects backslashes.
14369ECHO=$lt_ECHO
14370
14371# The PATH separator for the build system.
14372PATH_SEPARATOR=$lt_PATH_SEPARATOR
14373
14374# The host system.
14375host_alias=$host_alias
14376host=$host
14377host_os=$host_os
14378
14379# The build system.
14380build_alias=$build_alias
14381build=$build
14382build_os=$build_os
14383
14384# A sed program that does not truncate output.
14385SED=$lt_SED
14386
14387# Sed that helps us avoid accidentally triggering echo(1) options like -n.
14388Xsed="\$SED -e 1s/^X//"
14389
14390# A grep program that handles long lines.
14391GREP=$lt_GREP
14392
14393# An ERE matcher.
14394EGREP=$lt_EGREP
14395
14396# A literal string matcher.
14397FGREP=$lt_FGREP
14398
14399# A BSD- or MS-compatible name lister.
14400NM=$lt_NM
14401
14402# Whether we need soft or hard links.
14403LN_S=$lt_LN_S
14404
14405# What is the maximum length of a command?
14406max_cmd_len=$max_cmd_len
14407
14408# Object file suffix (normally "o").
14409objext=$ac_objext
14410
14411# Executable file suffix (normally "").
14412exeext=$exeext
14413
14414# whether the shell understands "unset".
14415lt_unset=$lt_unset
14416
14417# turn spaces into newlines.
14418SP2NL=$lt_lt_SP2NL
14419
14420# turn newlines into spaces.
14421NL2SP=$lt_lt_NL2SP
14422
14423# convert \$build file names to \$host format.
14424to_host_file_cmd=$lt_cv_to_host_file_cmd
14425
14426# convert \$build files to toolchain format.
14427to_tool_file_cmd=$lt_cv_to_tool_file_cmd
14428
14429# An object symbol dumper.
14430OBJDUMP=$lt_OBJDUMP
14431
14432# Method to check whether dependent libraries are shared objects.
14433deplibs_check_method=$lt_deplibs_check_method
14434
14435# Command to use when deplibs_check_method = "file_magic".
14436file_magic_cmd=$lt_file_magic_cmd
14437
14438# How to find potential files when deplibs_check_method = "file_magic".
14439file_magic_glob=$lt_file_magic_glob
14440
14441# Find potential files using nocaseglob when deplibs_check_method = "file_magic".
14442want_nocaseglob=$lt_want_nocaseglob
14443
14444# DLL creation program.
14445DLLTOOL=$lt_DLLTOOL
14446
14447# Command to associate shared and link libraries.
14448sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
14449
14450# The archiver.
14451AR=$lt_AR
14452
14453# Flags to create an archive.
14454AR_FLAGS=$lt_AR_FLAGS
14455
14456# How to feed a file listing to the archiver.
14457archiver_list_spec=$lt_archiver_list_spec
14458
14459# A symbol stripping program.
14460STRIP=$lt_STRIP
14461
14462# Commands used to install an old-style archive.
14463RANLIB=$lt_RANLIB
14464old_postinstall_cmds=$lt_old_postinstall_cmds
14465old_postuninstall_cmds=$lt_old_postuninstall_cmds
14466
14467# Whether to use a lock for old archive extraction.
14468lock_old_archive_extraction=$lock_old_archive_extraction
14469
14470# A C compiler.
14471LTCC=$lt_CC
14472
14473# LTCC compiler flags.
14474LTCFLAGS=$lt_CFLAGS
14475
14476# Take the output of nm and produce a listing of raw symbols and C names.
14477global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
14478
14479# Transform the output of nm in a proper C declaration.
14480global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
14481
14482# Transform the output of nm in a C name address pair.
14483global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
14484
14485# Transform the output of nm in a C name address pair when lib prefix is needed.
14486global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
14487
14488# Specify filename containing input files for \$NM.
14489nm_file_list_spec=$lt_nm_file_list_spec
14490
14491# The root where to search for dependent libraries,and in which our libraries should be installed.
14492lt_sysroot=$lt_sysroot
14493
14494# The name of the directory that contains temporary libtool files.
14495objdir=$objdir
14496
14497# Used to examine libraries when file_magic_cmd begins with "file".
14498MAGIC_CMD=$MAGIC_CMD
14499
14500# Must we lock files when doing compilation?
14501need_locks=$lt_need_locks
14502
14503# Manifest tool.
14504MANIFEST_TOOL=$lt_MANIFEST_TOOL
14505
14506# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
14507DSYMUTIL=$lt_DSYMUTIL
14508
14509# Tool to change global to local symbols on Mac OS X.
14510NMEDIT=$lt_NMEDIT
14511
14512# Tool to manipulate fat objects and archives on Mac OS X.
14513LIPO=$lt_LIPO
14514
14515# ldd/readelf like tool for Mach-O binaries on Mac OS X.
14516OTOOL=$lt_OTOOL
14517
14518# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
14519OTOOL64=$lt_OTOOL64
14520
14521# Old archive suffix (normally "a").
14522libext=$libext
14523
14524# Shared library suffix (normally ".so").
14525shrext_cmds=$lt_shrext_cmds
14526
14527# The commands to extract the exported symbol list from a shared archive.
14528extract_expsyms_cmds=$lt_extract_expsyms_cmds
14529
14530# Variables whose values should be saved in libtool wrapper scripts and
14531# restored at link time.
14532variables_saved_for_relink=$lt_variables_saved_for_relink
14533
14534# Do we need the "lib" prefix for modules?
14535need_lib_prefix=$need_lib_prefix
14536
14537# Do we need a version for libraries?
14538need_version=$need_version
14539
14540# Library versioning type.
14541version_type=$version_type
14542
14543# Shared library runtime path variable.
14544runpath_var=$runpath_var
14545
14546# Shared library path variable.
14547shlibpath_var=$shlibpath_var
14548
14549# Is shlibpath searched before the hard-coded library search path?
14550shlibpath_overrides_runpath=$shlibpath_overrides_runpath
14551
14552# Format of library name prefix.
14553libname_spec=$lt_libname_spec
14554
14555# List of archive names.  First name is the real one, the rest are links.
14556# The last name is the one that the linker finds with -lNAME
14557library_names_spec=$lt_library_names_spec
14558
14559# The coded name of the library, if different from the real name.
14560soname_spec=$lt_soname_spec
14561
14562# Permission mode override for installation of shared libraries.
14563install_override_mode=$lt_install_override_mode
14564
14565# Command to use after installation of a shared archive.
14566postinstall_cmds=$lt_postinstall_cmds
14567
14568# Command to use after uninstallation of a shared archive.
14569postuninstall_cmds=$lt_postuninstall_cmds
14570
14571# Commands used to finish a libtool library installation in a directory.
14572finish_cmds=$lt_finish_cmds
14573
14574# As "finish_cmds", except a single script fragment to be evaled but
14575# not shown.
14576finish_eval=$lt_finish_eval
14577
14578# Whether we should hardcode library paths into libraries.
14579hardcode_into_libs=$hardcode_into_libs
14580
14581# Compile-time system search path for libraries.
14582sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
14583
14584# Run-time system search path for libraries.
14585sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
14586
14587# Whether dlopen is supported.
14588dlopen_support=$enable_dlopen
14589
14590# Whether dlopen of programs is supported.
14591dlopen_self=$enable_dlopen_self
14592
14593# Whether dlopen of statically linked programs is supported.
14594dlopen_self_static=$enable_dlopen_self_static
14595
14596# Commands to strip libraries.
14597old_striplib=$lt_old_striplib
14598striplib=$lt_striplib
14599
14600
14601# The linker used to build libraries.
14602LD=$lt_LD
14603
14604# How to create reloadable object files.
14605reload_flag=$lt_reload_flag
14606reload_cmds=$lt_reload_cmds
14607
14608# Commands used to build an old-style archive.
14609old_archive_cmds=$lt_old_archive_cmds
14610
14611# A language specific compiler.
14612CC=$lt_compiler
14613
14614# Is the compiler the GNU compiler?
14615with_gcc=$GCC
14616
14617# Compiler flag to turn off builtin functions.
14618no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
14619
14620# Additional compiler flags for building library objects.
14621pic_flag=$lt_lt_prog_compiler_pic
14622
14623# How to pass a linker flag through the compiler.
14624wl=$lt_lt_prog_compiler_wl
14625
14626# Compiler flag to prevent dynamic linking.
14627link_static_flag=$lt_lt_prog_compiler_static
14628
14629# Does compiler simultaneously support -c and -o options?
14630compiler_c_o=$lt_lt_cv_prog_compiler_c_o
14631
14632# Whether or not to add -lc for building shared libraries.
14633build_libtool_need_lc=$archive_cmds_need_lc
14634
14635# Whether or not to disallow shared libs when runtime libs are static.
14636allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
14637
14638# Compiler flag to allow reflexive dlopens.
14639export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
14640
14641# Compiler flag to generate shared objects directly from archives.
14642whole_archive_flag_spec=$lt_whole_archive_flag_spec
14643
14644# Whether the compiler copes with passing no objects directly.
14645compiler_needs_object=$lt_compiler_needs_object
14646
14647# Create an old-style archive from a shared archive.
14648old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
14649
14650# Create a temporary old-style archive to link instead of a shared archive.
14651old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
14652
14653# Commands used to build a shared archive.
14654archive_cmds=$lt_archive_cmds
14655archive_expsym_cmds=$lt_archive_expsym_cmds
14656
14657# Commands used to build a loadable module if different from building
14658# a shared archive.
14659module_cmds=$lt_module_cmds
14660module_expsym_cmds=$lt_module_expsym_cmds
14661
14662# Whether we are building with GNU ld or not.
14663with_gnu_ld=$lt_with_gnu_ld
14664
14665# Flag that allows shared libraries with undefined symbols to be built.
14666allow_undefined_flag=$lt_allow_undefined_flag
14667
14668# Flag that enforces no undefined symbols.
14669no_undefined_flag=$lt_no_undefined_flag
14670
14671# Flag to hardcode \$libdir into a binary during linking.
14672# This must work even if \$libdir does not exist
14673hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
14674
14675# Whether we need a single "-rpath" flag with a separated argument.
14676hardcode_libdir_separator=$lt_hardcode_libdir_separator
14677
14678# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
14679# DIR into the resulting binary.
14680hardcode_direct=$hardcode_direct
14681
14682# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
14683# DIR into the resulting binary and the resulting library dependency is
14684# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
14685# library is relocated.
14686hardcode_direct_absolute=$hardcode_direct_absolute
14687
14688# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
14689# into the resulting binary.
14690hardcode_minus_L=$hardcode_minus_L
14691
14692# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
14693# into the resulting binary.
14694hardcode_shlibpath_var=$hardcode_shlibpath_var
14695
14696# Set to "yes" if building a shared library automatically hardcodes DIR
14697# into the library and all subsequent libraries and executables linked
14698# against it.
14699hardcode_automatic=$hardcode_automatic
14700
14701# Set to yes if linker adds runtime paths of dependent libraries
14702# to runtime path list.
14703inherit_rpath=$inherit_rpath
14704
14705# Whether libtool must link a program against all its dependency libraries.
14706link_all_deplibs=$link_all_deplibs
14707
14708# Set to "yes" if exported symbols are required.
14709always_export_symbols=$always_export_symbols
14710
14711# The commands to list exported symbols.
14712export_symbols_cmds=$lt_export_symbols_cmds
14713
14714# Symbols that should not be listed in the preloaded symbols.
14715exclude_expsyms=$lt_exclude_expsyms
14716
14717# Symbols that must always be exported.
14718include_expsyms=$lt_include_expsyms
14719
14720# Commands necessary for linking programs (against libraries) with templates.
14721prelink_cmds=$lt_prelink_cmds
14722
14723# Commands necessary for finishing linking programs.
14724postlink_cmds=$lt_postlink_cmds
14725
14726# Specify filename containing input files.
14727file_list_spec=$lt_file_list_spec
14728
14729# How to hardcode a shared library path into an executable.
14730hardcode_action=$hardcode_action
14731
14732# ### END LIBTOOL CONFIG
14733
14734_LT_EOF
14735
14736  case $host_os in
14737  aix3*)
14738    cat <<\_LT_EOF >> "$cfgfile"
14739# AIX sometimes has problems with the GCC collect2 program.  For some
14740# reason, if we set the COLLECT_NAMES environment variable, the problems
14741# vanish in a puff of smoke.
14742if test "X${COLLECT_NAMES+set}" != Xset; then
14743  COLLECT_NAMES=
14744  export COLLECT_NAMES
14745fi
14746_LT_EOF
14747    ;;
14748  esac
14749
14750
14751ltmain="$ac_aux_dir/ltmain.sh"
14752
14753
14754  # We use sed instead of cat because bash on DJGPP gets confused if
14755  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
14756  # text mode, it properly converts lines to CR/LF.  This bash problem
14757  # is reportedly fixed, but why not run on old versions too?
14758  sed '$q' "$ltmain" >> "$cfgfile" \
14759     || (rm -f "$cfgfile"; exit 1)
14760
14761  if test x"$xsi_shell" = xyes; then
14762  sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
14763func_dirname ()\
14764{\
14765\    case ${1} in\
14766\      */*) func_dirname_result="${1%/*}${2}" ;;\
14767\      *  ) func_dirname_result="${3}" ;;\
14768\    esac\
14769} # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
14770  && mv -f "$cfgfile.tmp" "$cfgfile" \
14771    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14772test 0 -eq $? || _lt_function_replace_fail=:
14773
14774
14775  sed -e '/^func_basename ()$/,/^} # func_basename /c\
14776func_basename ()\
14777{\
14778\    func_basename_result="${1##*/}"\
14779} # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
14780  && mv -f "$cfgfile.tmp" "$cfgfile" \
14781    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14782test 0 -eq $? || _lt_function_replace_fail=:
14783
14784
14785  sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
14786func_dirname_and_basename ()\
14787{\
14788\    case ${1} in\
14789\      */*) func_dirname_result="${1%/*}${2}" ;;\
14790\      *  ) func_dirname_result="${3}" ;;\
14791\    esac\
14792\    func_basename_result="${1##*/}"\
14793} # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
14794  && mv -f "$cfgfile.tmp" "$cfgfile" \
14795    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14796test 0 -eq $? || _lt_function_replace_fail=:
14797
14798
14799  sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
14800func_stripname ()\
14801{\
14802\    # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
14803\    # positional parameters, so assign one to ordinary parameter first.\
14804\    func_stripname_result=${3}\
14805\    func_stripname_result=${func_stripname_result#"${1}"}\
14806\    func_stripname_result=${func_stripname_result%"${2}"}\
14807} # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
14808  && mv -f "$cfgfile.tmp" "$cfgfile" \
14809    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14810test 0 -eq $? || _lt_function_replace_fail=:
14811
14812
14813  sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
14814func_split_long_opt ()\
14815{\
14816\    func_split_long_opt_name=${1%%=*}\
14817\    func_split_long_opt_arg=${1#*=}\
14818} # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
14819  && mv -f "$cfgfile.tmp" "$cfgfile" \
14820    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14821test 0 -eq $? || _lt_function_replace_fail=:
14822
14823
14824  sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
14825func_split_short_opt ()\
14826{\
14827\    func_split_short_opt_arg=${1#??}\
14828\    func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
14829} # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
14830  && mv -f "$cfgfile.tmp" "$cfgfile" \
14831    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14832test 0 -eq $? || _lt_function_replace_fail=:
14833
14834
14835  sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
14836func_lo2o ()\
14837{\
14838\    case ${1} in\
14839\      *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
14840\      *)    func_lo2o_result=${1} ;;\
14841\    esac\
14842} # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
14843  && mv -f "$cfgfile.tmp" "$cfgfile" \
14844    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14845test 0 -eq $? || _lt_function_replace_fail=:
14846
14847
14848  sed -e '/^func_xform ()$/,/^} # func_xform /c\
14849func_xform ()\
14850{\
14851    func_xform_result=${1%.*}.lo\
14852} # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
14853  && mv -f "$cfgfile.tmp" "$cfgfile" \
14854    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14855test 0 -eq $? || _lt_function_replace_fail=:
14856
14857
14858  sed -e '/^func_arith ()$/,/^} # func_arith /c\
14859func_arith ()\
14860{\
14861    func_arith_result=$(( $* ))\
14862} # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
14863  && mv -f "$cfgfile.tmp" "$cfgfile" \
14864    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14865test 0 -eq $? || _lt_function_replace_fail=:
14866
14867
14868  sed -e '/^func_len ()$/,/^} # func_len /c\
14869func_len ()\
14870{\
14871    func_len_result=${#1}\
14872} # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
14873  && mv -f "$cfgfile.tmp" "$cfgfile" \
14874    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14875test 0 -eq $? || _lt_function_replace_fail=:
14876
14877fi
14878
14879if test x"$lt_shell_append" = xyes; then
14880  sed -e '/^func_append ()$/,/^} # func_append /c\
14881func_append ()\
14882{\
14883    eval "${1}+=\\${2}"\
14884} # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
14885  && mv -f "$cfgfile.tmp" "$cfgfile" \
14886    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14887test 0 -eq $? || _lt_function_replace_fail=:
14888
14889
14890  sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
14891func_append_quoted ()\
14892{\
14893\    func_quote_for_eval "${2}"\
14894\    eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
14895} # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
14896  && mv -f "$cfgfile.tmp" "$cfgfile" \
14897    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14898test 0 -eq $? || _lt_function_replace_fail=:
14899
14900
14901  # Save a `func_append' function call where possible by direct use of '+='
14902  sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
14903    && mv -f "$cfgfile.tmp" "$cfgfile" \
14904      || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14905  test 0 -eq $? || _lt_function_replace_fail=:
14906else
14907  # Save a `func_append' function call even when '+=' is not available
14908  sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
14909    && mv -f "$cfgfile.tmp" "$cfgfile" \
14910      || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14911  test 0 -eq $? || _lt_function_replace_fail=:
14912fi
14913
14914if test x"$_lt_function_replace_fail" = x":"; then
14915  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
14916$as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
14917fi
14918
14919
14920   mv -f "$cfgfile" "$ofile" ||
14921    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
14922  chmod +x "$ofile"
14923
14924 ;;
14925
14926  esac
14927done # for ac_tag
14928
14929
14930as_fn_exit 0
14931_ACEOF
14932ac_clean_files=$ac_clean_files_save
14933
14934test $ac_write_fail = 0 ||
14935  as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
14936
14937
14938# configure is writing to config.log, and then calls config.status.
14939# config.status does its own redirection, appending to config.log.
14940# Unfortunately, on DOS this fails, as config.log is still kept open
14941# by configure, so config.status won't be able to write to it; its
14942# output is simply discarded.  So we exec the FD to /dev/null,
14943# effectively closing config.log, so it can be properly (re)opened and
14944# appended to by config.status.  When coming back to configure, we
14945# need to make the FD available again.
14946if test "$no_create" != yes; then
14947  ac_cs_success=:
14948  ac_config_status_args=
14949  test "$silent" = yes &&
14950    ac_config_status_args="$ac_config_status_args --quiet"
14951  exec 5>/dev/null
14952  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
14953  exec 5>>config.log
14954  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
14955  # would make configure fail if this is the last instruction.
14956  $ac_cs_success || as_fn_exit 1
14957fi
14958if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
14959  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
14960$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
14961fi
14962
14963