xref: /freebsd/contrib/sqlite3/configure (revision 999c1fd64b489eda8c04f1e1529f828ebe5c7794)
1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.69 for sqlite 3.12.1.
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.12.1'
594PACKAGE_STRING='sqlite 3.12.1'
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
639EXTRA_SHELL_OBJ
640JSON1_FLAGS
641FTS5_FLAGS
642DYNAMIC_EXTENSION_FLAGS
643THREADSAFE_FLAGS
644READLINE_LIBS
645BUILD_CFLAGS
646CPP
647LT_SYS_LIBRARY_PATH
648OTOOL64
649OTOOL
650LIPO
651NMEDIT
652DSYMUTIL
653MANIFEST_TOOL
654RANLIB
655ac_ct_AR
656AR
657DLLTOOL
658OBJDUMP
659LN_S
660NM
661ac_ct_DUMPBIN
662DUMPBIN
663LD
664FGREP
665EGREP
666GREP
667SED
668host_os
669host_vendor
670host_cpu
671host
672build_os
673build_vendor
674build_cpu
675build
676LIBTOOL
677am__fastdepCC_FALSE
678am__fastdepCC_TRUE
679CCDEPMODE
680am__nodep
681AMDEPBACKSLASH
682AMDEP_FALSE
683AMDEP_TRUE
684am__quote
685am__include
686DEPDIR
687OBJEXT
688EXEEXT
689ac_ct_CC
690CPPFLAGS
691LDFLAGS
692CFLAGS
693CC
694AM_BACKSLASH
695AM_DEFAULT_VERBOSITY
696AM_DEFAULT_V
697AM_V
698am__untar
699am__tar
700AMTAR
701am__leading_dot
702SET_MAKE
703AWK
704mkdir_p
705MKDIR_P
706INSTALL_STRIP_PROGRAM
707STRIP
708install_sh
709MAKEINFO
710AUTOHEADER
711AUTOMAKE
712AUTOCONF
713ACLOCAL
714VERSION
715PACKAGE
716CYGPATH_W
717am__isrc
718INSTALL_DATA
719INSTALL_SCRIPT
720INSTALL_PROGRAM
721target_alias
722host_alias
723build_alias
724LIBS
725ECHO_T
726ECHO_N
727ECHO_C
728DEFS
729mandir
730localedir
731libdir
732psdir
733pdfdir
734dvidir
735htmldir
736infodir
737docdir
738oldincludedir
739includedir
740localstatedir
741sharedstatedir
742sysconfdir
743datadir
744datarootdir
745libexecdir
746sbindir
747bindir
748program_transform_name
749prefix
750exec_prefix
751PACKAGE_URL
752PACKAGE_BUGREPORT
753PACKAGE_STRING
754PACKAGE_VERSION
755PACKAGE_TARNAME
756PACKAGE_NAME
757PATH_SEPARATOR
758SHELL'
759ac_subst_files=''
760ac_user_opts='
761enable_option_checking
762enable_silent_rules
763enable_largefile
764enable_dependency_tracking
765enable_shared
766enable_static
767with_pic
768enable_fast_install
769with_aix_soname
770with_gnu_ld
771with_sysroot
772enable_libtool_lock
773enable_editline
774enable_readline
775enable_threadsafe
776enable_dynamic_extensions
777enable_fts5
778enable_json1
779enable_static_shell
780'
781      ac_precious_vars='build_alias
782host_alias
783target_alias
784CC
785CFLAGS
786LDFLAGS
787LIBS
788CPPFLAGS
789LT_SYS_LIBRARY_PATH
790CPP'
791
792
793# Initialize some variables set by options.
794ac_init_help=
795ac_init_version=false
796ac_unrecognized_opts=
797ac_unrecognized_sep=
798# The variables have the same names as the options, with
799# dashes changed to underlines.
800cache_file=/dev/null
801exec_prefix=NONE
802no_create=
803no_recursion=
804prefix=NONE
805program_prefix=NONE
806program_suffix=NONE
807program_transform_name=s,x,x,
808silent=
809site=
810srcdir=
811verbose=
812x_includes=NONE
813x_libraries=NONE
814
815# Installation directory options.
816# These are left unexpanded so users can "make install exec_prefix=/foo"
817# and all the variables that are supposed to be based on exec_prefix
818# by default will actually change.
819# Use braces instead of parens because sh, perl, etc. also accept them.
820# (The list follows the same order as the GNU Coding Standards.)
821bindir='${exec_prefix}/bin'
822sbindir='${exec_prefix}/sbin'
823libexecdir='${exec_prefix}/libexec'
824datarootdir='${prefix}/share'
825datadir='${datarootdir}'
826sysconfdir='${prefix}/etc'
827sharedstatedir='${prefix}/com'
828localstatedir='${prefix}/var'
829includedir='${prefix}/include'
830oldincludedir='/usr/include'
831docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
832infodir='${datarootdir}/info'
833htmldir='${docdir}'
834dvidir='${docdir}'
835pdfdir='${docdir}'
836psdir='${docdir}'
837libdir='${exec_prefix}/lib'
838localedir='${datarootdir}/locale'
839mandir='${datarootdir}/man'
840
841ac_prev=
842ac_dashdash=
843for ac_option
844do
845  # If the previous option needs an argument, assign it.
846  if test -n "$ac_prev"; then
847    eval $ac_prev=\$ac_option
848    ac_prev=
849    continue
850  fi
851
852  case $ac_option in
853  *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
854  *=)   ac_optarg= ;;
855  *)    ac_optarg=yes ;;
856  esac
857
858  # Accept the important Cygnus configure options, so we can diagnose typos.
859
860  case $ac_dashdash$ac_option in
861  --)
862    ac_dashdash=yes ;;
863
864  -bindir | --bindir | --bindi | --bind | --bin | --bi)
865    ac_prev=bindir ;;
866  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
867    bindir=$ac_optarg ;;
868
869  -build | --build | --buil | --bui | --bu)
870    ac_prev=build_alias ;;
871  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
872    build_alias=$ac_optarg ;;
873
874  -cache-file | --cache-file | --cache-fil | --cache-fi \
875  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
876    ac_prev=cache_file ;;
877  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
878  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
879    cache_file=$ac_optarg ;;
880
881  --config-cache | -C)
882    cache_file=config.cache ;;
883
884  -datadir | --datadir | --datadi | --datad)
885    ac_prev=datadir ;;
886  -datadir=* | --datadir=* | --datadi=* | --datad=*)
887    datadir=$ac_optarg ;;
888
889  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
890  | --dataroo | --dataro | --datar)
891    ac_prev=datarootdir ;;
892  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
893  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
894    datarootdir=$ac_optarg ;;
895
896  -disable-* | --disable-*)
897    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
898    # Reject names that are not valid shell variable names.
899    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
900      as_fn_error $? "invalid feature name: $ac_useropt"
901    ac_useropt_orig=$ac_useropt
902    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
903    case $ac_user_opts in
904      *"
905"enable_$ac_useropt"
906"*) ;;
907      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
908	 ac_unrecognized_sep=', ';;
909    esac
910    eval enable_$ac_useropt=no ;;
911
912  -docdir | --docdir | --docdi | --doc | --do)
913    ac_prev=docdir ;;
914  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
915    docdir=$ac_optarg ;;
916
917  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
918    ac_prev=dvidir ;;
919  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
920    dvidir=$ac_optarg ;;
921
922  -enable-* | --enable-*)
923    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
924    # Reject names that are not valid shell variable names.
925    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
926      as_fn_error $? "invalid feature name: $ac_useropt"
927    ac_useropt_orig=$ac_useropt
928    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
929    case $ac_user_opts in
930      *"
931"enable_$ac_useropt"
932"*) ;;
933      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
934	 ac_unrecognized_sep=', ';;
935    esac
936    eval enable_$ac_useropt=\$ac_optarg ;;
937
938  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
939  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
940  | --exec | --exe | --ex)
941    ac_prev=exec_prefix ;;
942  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
943  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
944  | --exec=* | --exe=* | --ex=*)
945    exec_prefix=$ac_optarg ;;
946
947  -gas | --gas | --ga | --g)
948    # Obsolete; use --with-gas.
949    with_gas=yes ;;
950
951  -help | --help | --hel | --he | -h)
952    ac_init_help=long ;;
953  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
954    ac_init_help=recursive ;;
955  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
956    ac_init_help=short ;;
957
958  -host | --host | --hos | --ho)
959    ac_prev=host_alias ;;
960  -host=* | --host=* | --hos=* | --ho=*)
961    host_alias=$ac_optarg ;;
962
963  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
964    ac_prev=htmldir ;;
965  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
966  | --ht=*)
967    htmldir=$ac_optarg ;;
968
969  -includedir | --includedir | --includedi | --included | --include \
970  | --includ | --inclu | --incl | --inc)
971    ac_prev=includedir ;;
972  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
973  | --includ=* | --inclu=* | --incl=* | --inc=*)
974    includedir=$ac_optarg ;;
975
976  -infodir | --infodir | --infodi | --infod | --info | --inf)
977    ac_prev=infodir ;;
978  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
979    infodir=$ac_optarg ;;
980
981  -libdir | --libdir | --libdi | --libd)
982    ac_prev=libdir ;;
983  -libdir=* | --libdir=* | --libdi=* | --libd=*)
984    libdir=$ac_optarg ;;
985
986  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
987  | --libexe | --libex | --libe)
988    ac_prev=libexecdir ;;
989  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
990  | --libexe=* | --libex=* | --libe=*)
991    libexecdir=$ac_optarg ;;
992
993  -localedir | --localedir | --localedi | --localed | --locale)
994    ac_prev=localedir ;;
995  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
996    localedir=$ac_optarg ;;
997
998  -localstatedir | --localstatedir | --localstatedi | --localstated \
999  | --localstate | --localstat | --localsta | --localst | --locals)
1000    ac_prev=localstatedir ;;
1001  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1002  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1003    localstatedir=$ac_optarg ;;
1004
1005  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1006    ac_prev=mandir ;;
1007  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1008    mandir=$ac_optarg ;;
1009
1010  -nfp | --nfp | --nf)
1011    # Obsolete; use --without-fp.
1012    with_fp=no ;;
1013
1014  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1015  | --no-cr | --no-c | -n)
1016    no_create=yes ;;
1017
1018  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1019  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1020    no_recursion=yes ;;
1021
1022  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1023  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1024  | --oldin | --oldi | --old | --ol | --o)
1025    ac_prev=oldincludedir ;;
1026  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1027  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1028  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1029    oldincludedir=$ac_optarg ;;
1030
1031  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1032    ac_prev=prefix ;;
1033  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1034    prefix=$ac_optarg ;;
1035
1036  -program-prefix | --program-prefix | --program-prefi | --program-pref \
1037  | --program-pre | --program-pr | --program-p)
1038    ac_prev=program_prefix ;;
1039  -program-prefix=* | --program-prefix=* | --program-prefi=* \
1040  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1041    program_prefix=$ac_optarg ;;
1042
1043  -program-suffix | --program-suffix | --program-suffi | --program-suff \
1044  | --program-suf | --program-su | --program-s)
1045    ac_prev=program_suffix ;;
1046  -program-suffix=* | --program-suffix=* | --program-suffi=* \
1047  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1048    program_suffix=$ac_optarg ;;
1049
1050  -program-transform-name | --program-transform-name \
1051  | --program-transform-nam | --program-transform-na \
1052  | --program-transform-n | --program-transform- \
1053  | --program-transform | --program-transfor \
1054  | --program-transfo | --program-transf \
1055  | --program-trans | --program-tran \
1056  | --progr-tra | --program-tr | --program-t)
1057    ac_prev=program_transform_name ;;
1058  -program-transform-name=* | --program-transform-name=* \
1059  | --program-transform-nam=* | --program-transform-na=* \
1060  | --program-transform-n=* | --program-transform-=* \
1061  | --program-transform=* | --program-transfor=* \
1062  | --program-transfo=* | --program-transf=* \
1063  | --program-trans=* | --program-tran=* \
1064  | --progr-tra=* | --program-tr=* | --program-t=*)
1065    program_transform_name=$ac_optarg ;;
1066
1067  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1068    ac_prev=pdfdir ;;
1069  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1070    pdfdir=$ac_optarg ;;
1071
1072  -psdir | --psdir | --psdi | --psd | --ps)
1073    ac_prev=psdir ;;
1074  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1075    psdir=$ac_optarg ;;
1076
1077  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1078  | -silent | --silent | --silen | --sile | --sil)
1079    silent=yes ;;
1080
1081  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1082    ac_prev=sbindir ;;
1083  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1084  | --sbi=* | --sb=*)
1085    sbindir=$ac_optarg ;;
1086
1087  -sharedstatedir | --sharedstatedir | --sharedstatedi \
1088  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1089  | --sharedst | --shareds | --shared | --share | --shar \
1090  | --sha | --sh)
1091    ac_prev=sharedstatedir ;;
1092  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1093  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1094  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1095  | --sha=* | --sh=*)
1096    sharedstatedir=$ac_optarg ;;
1097
1098  -site | --site | --sit)
1099    ac_prev=site ;;
1100  -site=* | --site=* | --sit=*)
1101    site=$ac_optarg ;;
1102
1103  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1104    ac_prev=srcdir ;;
1105  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1106    srcdir=$ac_optarg ;;
1107
1108  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1109  | --syscon | --sysco | --sysc | --sys | --sy)
1110    ac_prev=sysconfdir ;;
1111  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1112  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1113    sysconfdir=$ac_optarg ;;
1114
1115  -target | --target | --targe | --targ | --tar | --ta | --t)
1116    ac_prev=target_alias ;;
1117  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1118    target_alias=$ac_optarg ;;
1119
1120  -v | -verbose | --verbose | --verbos | --verbo | --verb)
1121    verbose=yes ;;
1122
1123  -version | --version | --versio | --versi | --vers | -V)
1124    ac_init_version=: ;;
1125
1126  -with-* | --with-*)
1127    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1128    # Reject names that are not valid shell variable names.
1129    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1130      as_fn_error $? "invalid package name: $ac_useropt"
1131    ac_useropt_orig=$ac_useropt
1132    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1133    case $ac_user_opts in
1134      *"
1135"with_$ac_useropt"
1136"*) ;;
1137      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1138	 ac_unrecognized_sep=', ';;
1139    esac
1140    eval with_$ac_useropt=\$ac_optarg ;;
1141
1142  -without-* | --without-*)
1143    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1144    # Reject names that are not valid shell variable names.
1145    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1146      as_fn_error $? "invalid package name: $ac_useropt"
1147    ac_useropt_orig=$ac_useropt
1148    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1149    case $ac_user_opts in
1150      *"
1151"with_$ac_useropt"
1152"*) ;;
1153      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1154	 ac_unrecognized_sep=', ';;
1155    esac
1156    eval with_$ac_useropt=no ;;
1157
1158  --x)
1159    # Obsolete; use --with-x.
1160    with_x=yes ;;
1161
1162  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1163  | --x-incl | --x-inc | --x-in | --x-i)
1164    ac_prev=x_includes ;;
1165  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1166  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1167    x_includes=$ac_optarg ;;
1168
1169  -x-libraries | --x-libraries | --x-librarie | --x-librari \
1170  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1171    ac_prev=x_libraries ;;
1172  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1173  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1174    x_libraries=$ac_optarg ;;
1175
1176  -*) as_fn_error $? "unrecognized option: \`$ac_option'
1177Try \`$0 --help' for more information"
1178    ;;
1179
1180  *=*)
1181    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1182    # Reject names that are not valid shell variable names.
1183    case $ac_envvar in #(
1184      '' | [0-9]* | *[!_$as_cr_alnum]* )
1185      as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1186    esac
1187    eval $ac_envvar=\$ac_optarg
1188    export $ac_envvar ;;
1189
1190  *)
1191    # FIXME: should be removed in autoconf 3.0.
1192    $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1193    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1194      $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1195    : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1196    ;;
1197
1198  esac
1199done
1200
1201if test -n "$ac_prev"; then
1202  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1203  as_fn_error $? "missing argument to $ac_option"
1204fi
1205
1206if test -n "$ac_unrecognized_opts"; then
1207  case $enable_option_checking in
1208    no) ;;
1209    fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1210    *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1211  esac
1212fi
1213
1214# Check all directory arguments for consistency.
1215for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
1216		datadir sysconfdir sharedstatedir localstatedir includedir \
1217		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1218		libdir localedir mandir
1219do
1220  eval ac_val=\$$ac_var
1221  # Remove trailing slashes.
1222  case $ac_val in
1223    */ )
1224      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1225      eval $ac_var=\$ac_val;;
1226  esac
1227  # Be sure to have absolute directory names.
1228  case $ac_val in
1229    [\\/$]* | ?:[\\/]* )  continue;;
1230    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1231  esac
1232  as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1233done
1234
1235# There might be people who depend on the old broken behavior: `$host'
1236# used to hold the argument of --host etc.
1237# FIXME: To remove some day.
1238build=$build_alias
1239host=$host_alias
1240target=$target_alias
1241
1242# FIXME: To remove some day.
1243if test "x$host_alias" != x; then
1244  if test "x$build_alias" = x; then
1245    cross_compiling=maybe
1246  elif test "x$build_alias" != "x$host_alias"; then
1247    cross_compiling=yes
1248  fi
1249fi
1250
1251ac_tool_prefix=
1252test -n "$host_alias" && ac_tool_prefix=$host_alias-
1253
1254test "$silent" = yes && exec 6>/dev/null
1255
1256
1257ac_pwd=`pwd` && test -n "$ac_pwd" &&
1258ac_ls_di=`ls -di .` &&
1259ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1260  as_fn_error $? "working directory cannot be determined"
1261test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1262  as_fn_error $? "pwd does not report name of working directory"
1263
1264
1265# Find the source files, if location was not specified.
1266if test -z "$srcdir"; then
1267  ac_srcdir_defaulted=yes
1268  # Try the directory containing this script, then the parent directory.
1269  ac_confdir=`$as_dirname -- "$as_myself" ||
1270$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1271	 X"$as_myself" : 'X\(//\)[^/]' \| \
1272	 X"$as_myself" : 'X\(//\)$' \| \
1273	 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1274$as_echo X"$as_myself" |
1275    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1276	    s//\1/
1277	    q
1278	  }
1279	  /^X\(\/\/\)[^/].*/{
1280	    s//\1/
1281	    q
1282	  }
1283	  /^X\(\/\/\)$/{
1284	    s//\1/
1285	    q
1286	  }
1287	  /^X\(\/\).*/{
1288	    s//\1/
1289	    q
1290	  }
1291	  s/.*/./; q'`
1292  srcdir=$ac_confdir
1293  if test ! -r "$srcdir/$ac_unique_file"; then
1294    srcdir=..
1295  fi
1296else
1297  ac_srcdir_defaulted=no
1298fi
1299if test ! -r "$srcdir/$ac_unique_file"; then
1300  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1301  as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1302fi
1303ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1304ac_abs_confdir=`(
1305	cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1306	pwd)`
1307# When building in place, set srcdir=.
1308if test "$ac_abs_confdir" = "$ac_pwd"; then
1309  srcdir=.
1310fi
1311# Remove unnecessary trailing slashes from srcdir.
1312# Double slashes in file names in object file debugging info
1313# mess up M-x gdb in Emacs.
1314case $srcdir in
1315*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1316esac
1317for ac_var in $ac_precious_vars; do
1318  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1319  eval ac_env_${ac_var}_value=\$${ac_var}
1320  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1321  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1322done
1323
1324#
1325# Report the --help message.
1326#
1327if test "$ac_init_help" = "long"; then
1328  # Omit some internal or obsolete options to make the list less imposing.
1329  # This message is too long to be a string in the A/UX 3.1 sh.
1330  cat <<_ACEOF
1331\`configure' configures sqlite 3.12.1 to adapt to many kinds of systems.
1332
1333Usage: $0 [OPTION]... [VAR=VALUE]...
1334
1335To assign environment variables (e.g., CC, CFLAGS...), specify them as
1336VAR=VALUE.  See below for descriptions of some of the useful variables.
1337
1338Defaults for the options are specified in brackets.
1339
1340Configuration:
1341  -h, --help              display this help and exit
1342      --help=short        display options specific to this package
1343      --help=recursive    display the short help of all the included packages
1344  -V, --version           display version information and exit
1345  -q, --quiet, --silent   do not print \`checking ...' messages
1346      --cache-file=FILE   cache test results in FILE [disabled]
1347  -C, --config-cache      alias for \`--cache-file=config.cache'
1348  -n, --no-create         do not create output files
1349      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1350
1351Installation directories:
1352  --prefix=PREFIX         install architecture-independent files in PREFIX
1353                          [$ac_default_prefix]
1354  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1355                          [PREFIX]
1356
1357By default, \`make install' will install all the files in
1358\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1359an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1360for instance \`--prefix=\$HOME'.
1361
1362For better control, use the options below.
1363
1364Fine tuning of the installation directories:
1365  --bindir=DIR            user executables [EPREFIX/bin]
1366  --sbindir=DIR           system admin executables [EPREFIX/sbin]
1367  --libexecdir=DIR        program executables [EPREFIX/libexec]
1368  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1369  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1370  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1371  --libdir=DIR            object code libraries [EPREFIX/lib]
1372  --includedir=DIR        C header files [PREFIX/include]
1373  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1374  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1375  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1376  --infodir=DIR           info documentation [DATAROOTDIR/info]
1377  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1378  --mandir=DIR            man documentation [DATAROOTDIR/man]
1379  --docdir=DIR            documentation root [DATAROOTDIR/doc/sqlite]
1380  --htmldir=DIR           html documentation [DOCDIR]
1381  --dvidir=DIR            dvi documentation [DOCDIR]
1382  --pdfdir=DIR            pdf documentation [DOCDIR]
1383  --psdir=DIR             ps documentation [DOCDIR]
1384_ACEOF
1385
1386  cat <<\_ACEOF
1387
1388Program names:
1389  --program-prefix=PREFIX            prepend PREFIX to installed program names
1390  --program-suffix=SUFFIX            append SUFFIX to installed program names
1391  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1392
1393System types:
1394  --build=BUILD     configure for building on BUILD [guessed]
1395  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1396_ACEOF
1397fi
1398
1399if test -n "$ac_init_help"; then
1400  case $ac_init_help in
1401     short | recursive ) echo "Configuration of sqlite 3.12.1:";;
1402   esac
1403  cat <<\_ACEOF
1404
1405Optional Features:
1406  --disable-option-checking  ignore unrecognized --enable/--with options
1407  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1408  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1409  --enable-silent-rules   less verbose build output (undo: "make V=1")
1410  --disable-silent-rules  verbose build output (undo: "make V=0")
1411  --disable-largefile     omit support for large files
1412  --enable-dependency-tracking
1413                          do not reject slow dependency extractors
1414  --disable-dependency-tracking
1415                          speeds up one-time build
1416  --enable-shared[=PKGS]  build shared libraries [default=yes]
1417  --enable-static[=PKGS]  build static libraries [default=yes]
1418  --enable-fast-install[=PKGS]
1419                          optimize for fast installation [default=yes]
1420  --disable-libtool-lock  avoid locking (might break parallel builds)
1421  --enable-editline       use BSD libedit
1422  --enable-readline       use readline
1423  --enable-threadsafe     build a thread-safe library [default=yes]
1424  --enable-dynamic-extensions
1425                          support loadable extensions [default=yes]
1426  --enable-fts5           include fts5 support [default=no]
1427  --enable-json1          include json1 support [default=no]
1428  --enable-static-shell   statically link libsqlite3 into shell tool
1429                          [default=yes]
1430
1431Optional Packages:
1432  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1433  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1434  --with-pic[=PKGS]       try to use only PIC/non-PIC objects [default=use
1435                          both]
1436  --with-aix-soname=aix|svr4|both
1437                          shared library versioning (aka "SONAME") variant to
1438                          provide on AIX, [default=aix].
1439  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1440  --with-sysroot[=DIR]    Search for dependent libraries within DIR (or the
1441                          compiler's sysroot if not specified).
1442
1443Some influential environment variables:
1444  CC          C compiler command
1445  CFLAGS      C compiler flags
1446  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1447              nonstandard directory <lib dir>
1448  LIBS        libraries to pass to the linker, e.g. -l<library>
1449  CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1450              you have headers in a nonstandard directory <include dir>
1451  LT_SYS_LIBRARY_PATH
1452              User-defined run-time library search path.
1453  CPP         C preprocessor
1454
1455Use these variables to override the choices made by `configure' or to help
1456it to find libraries and programs with nonstandard names/locations.
1457
1458Report bugs to <http://www.sqlite.org>.
1459_ACEOF
1460ac_status=$?
1461fi
1462
1463if test "$ac_init_help" = "recursive"; then
1464  # If there are subdirs, report their specific --help.
1465  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1466    test -d "$ac_dir" ||
1467      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1468      continue
1469    ac_builddir=.
1470
1471case "$ac_dir" in
1472.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1473*)
1474  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1475  # A ".." for each directory in $ac_dir_suffix.
1476  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1477  case $ac_top_builddir_sub in
1478  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1479  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1480  esac ;;
1481esac
1482ac_abs_top_builddir=$ac_pwd
1483ac_abs_builddir=$ac_pwd$ac_dir_suffix
1484# for backward compatibility:
1485ac_top_builddir=$ac_top_build_prefix
1486
1487case $srcdir in
1488  .)  # We are building in place.
1489    ac_srcdir=.
1490    ac_top_srcdir=$ac_top_builddir_sub
1491    ac_abs_top_srcdir=$ac_pwd ;;
1492  [\\/]* | ?:[\\/]* )  # Absolute name.
1493    ac_srcdir=$srcdir$ac_dir_suffix;
1494    ac_top_srcdir=$srcdir
1495    ac_abs_top_srcdir=$srcdir ;;
1496  *) # Relative name.
1497    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1498    ac_top_srcdir=$ac_top_build_prefix$srcdir
1499    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1500esac
1501ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1502
1503    cd "$ac_dir" || { ac_status=$?; continue; }
1504    # Check for guested configure.
1505    if test -f "$ac_srcdir/configure.gnu"; then
1506      echo &&
1507      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1508    elif test -f "$ac_srcdir/configure"; then
1509      echo &&
1510      $SHELL "$ac_srcdir/configure" --help=recursive
1511    else
1512      $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1513    fi || ac_status=$?
1514    cd "$ac_pwd" || { ac_status=$?; break; }
1515  done
1516fi
1517
1518test -n "$ac_init_help" && exit $ac_status
1519if $ac_init_version; then
1520  cat <<\_ACEOF
1521sqlite configure 3.12.1
1522generated by GNU Autoconf 2.69
1523
1524Copyright (C) 2012 Free Software Foundation, Inc.
1525This configure script is free software; the Free Software Foundation
1526gives unlimited permission to copy, distribute and modify it.
1527_ACEOF
1528  exit
1529fi
1530
1531## ------------------------ ##
1532## Autoconf initialization. ##
1533## ------------------------ ##
1534
1535# ac_fn_c_try_compile LINENO
1536# --------------------------
1537# Try to compile conftest.$ac_ext, and return whether this succeeded.
1538ac_fn_c_try_compile ()
1539{
1540  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1541  rm -f conftest.$ac_objext
1542  if { { ac_try="$ac_compile"
1543case "(($ac_try" in
1544  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1545  *) ac_try_echo=$ac_try;;
1546esac
1547eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1548$as_echo "$ac_try_echo"; } >&5
1549  (eval "$ac_compile") 2>conftest.err
1550  ac_status=$?
1551  if test -s conftest.err; then
1552    grep -v '^ *+' conftest.err >conftest.er1
1553    cat conftest.er1 >&5
1554    mv -f conftest.er1 conftest.err
1555  fi
1556  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1557  test $ac_status = 0; } && {
1558	 test -z "$ac_c_werror_flag" ||
1559	 test ! -s conftest.err
1560       } && test -s conftest.$ac_objext; then :
1561  ac_retval=0
1562else
1563  $as_echo "$as_me: failed program was:" >&5
1564sed 's/^/| /' conftest.$ac_ext >&5
1565
1566	ac_retval=1
1567fi
1568  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1569  as_fn_set_status $ac_retval
1570
1571} # ac_fn_c_try_compile
1572
1573# ac_fn_c_try_link LINENO
1574# -----------------------
1575# Try to link conftest.$ac_ext, and return whether this succeeded.
1576ac_fn_c_try_link ()
1577{
1578  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1579  rm -f conftest.$ac_objext conftest$ac_exeext
1580  if { { ac_try="$ac_link"
1581case "(($ac_try" in
1582  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1583  *) ac_try_echo=$ac_try;;
1584esac
1585eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1586$as_echo "$ac_try_echo"; } >&5
1587  (eval "$ac_link") 2>conftest.err
1588  ac_status=$?
1589  if test -s conftest.err; then
1590    grep -v '^ *+' conftest.err >conftest.er1
1591    cat conftest.er1 >&5
1592    mv -f conftest.er1 conftest.err
1593  fi
1594  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1595  test $ac_status = 0; } && {
1596	 test -z "$ac_c_werror_flag" ||
1597	 test ! -s conftest.err
1598       } && test -s conftest$ac_exeext && {
1599	 test "$cross_compiling" = yes ||
1600	 test -x conftest$ac_exeext
1601       }; then :
1602  ac_retval=0
1603else
1604  $as_echo "$as_me: failed program was:" >&5
1605sed 's/^/| /' conftest.$ac_ext >&5
1606
1607	ac_retval=1
1608fi
1609  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1610  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1611  # interfere with the next link command; also delete a directory that is
1612  # left behind by Apple's compiler.  We do this before executing the actions.
1613  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1614  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1615  as_fn_set_status $ac_retval
1616
1617} # ac_fn_c_try_link
1618
1619# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1620# -------------------------------------------------------
1621# Tests whether HEADER exists and can be compiled using the include files in
1622# INCLUDES, setting the cache variable VAR accordingly.
1623ac_fn_c_check_header_compile ()
1624{
1625  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1626  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1627$as_echo_n "checking for $2... " >&6; }
1628if eval \${$3+:} false; then :
1629  $as_echo_n "(cached) " >&6
1630else
1631  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1632/* end confdefs.h.  */
1633$4
1634#include <$2>
1635_ACEOF
1636if ac_fn_c_try_compile "$LINENO"; then :
1637  eval "$3=yes"
1638else
1639  eval "$3=no"
1640fi
1641rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1642fi
1643eval ac_res=\$$3
1644	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1645$as_echo "$ac_res" >&6; }
1646  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1647
1648} # ac_fn_c_check_header_compile
1649
1650# ac_fn_c_try_cpp LINENO
1651# ----------------------
1652# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1653ac_fn_c_try_cpp ()
1654{
1655  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1656  if { { ac_try="$ac_cpp conftest.$ac_ext"
1657case "(($ac_try" in
1658  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1659  *) ac_try_echo=$ac_try;;
1660esac
1661eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1662$as_echo "$ac_try_echo"; } >&5
1663  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1664  ac_status=$?
1665  if test -s conftest.err; then
1666    grep -v '^ *+' conftest.err >conftest.er1
1667    cat conftest.er1 >&5
1668    mv -f conftest.er1 conftest.err
1669  fi
1670  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1671  test $ac_status = 0; } > conftest.i && {
1672	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1673	 test ! -s conftest.err
1674       }; then :
1675  ac_retval=0
1676else
1677  $as_echo "$as_me: failed program was:" >&5
1678sed 's/^/| /' conftest.$ac_ext >&5
1679
1680    ac_retval=1
1681fi
1682  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1683  as_fn_set_status $ac_retval
1684
1685} # ac_fn_c_try_cpp
1686
1687# ac_fn_c_try_run LINENO
1688# ----------------------
1689# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1690# that executables *can* be run.
1691ac_fn_c_try_run ()
1692{
1693  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1694  if { { ac_try="$ac_link"
1695case "(($ac_try" in
1696  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1697  *) ac_try_echo=$ac_try;;
1698esac
1699eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1700$as_echo "$ac_try_echo"; } >&5
1701  (eval "$ac_link") 2>&5
1702  ac_status=$?
1703  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1704  test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1705  { { case "(($ac_try" in
1706  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1707  *) ac_try_echo=$ac_try;;
1708esac
1709eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1710$as_echo "$ac_try_echo"; } >&5
1711  (eval "$ac_try") 2>&5
1712  ac_status=$?
1713  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1714  test $ac_status = 0; }; }; then :
1715  ac_retval=0
1716else
1717  $as_echo "$as_me: program exited with status $ac_status" >&5
1718       $as_echo "$as_me: failed program was:" >&5
1719sed 's/^/| /' conftest.$ac_ext >&5
1720
1721       ac_retval=$ac_status
1722fi
1723  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1724  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1725  as_fn_set_status $ac_retval
1726
1727} # ac_fn_c_try_run
1728
1729# ac_fn_c_check_func LINENO FUNC VAR
1730# ----------------------------------
1731# Tests whether FUNC exists, setting the cache variable VAR accordingly
1732ac_fn_c_check_func ()
1733{
1734  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1735  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1736$as_echo_n "checking for $2... " >&6; }
1737if eval \${$3+:} false; then :
1738  $as_echo_n "(cached) " >&6
1739else
1740  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1741/* end confdefs.h.  */
1742/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1743   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
1744#define $2 innocuous_$2
1745
1746/* System header to define __stub macros and hopefully few prototypes,
1747    which can conflict with char $2 (); below.
1748    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1749    <limits.h> exists even on freestanding compilers.  */
1750
1751#ifdef __STDC__
1752# include <limits.h>
1753#else
1754# include <assert.h>
1755#endif
1756
1757#undef $2
1758
1759/* Override any GCC internal prototype to avoid an error.
1760   Use char because int might match the return type of a GCC
1761   builtin and then its argument prototype would still apply.  */
1762#ifdef __cplusplus
1763extern "C"
1764#endif
1765char $2 ();
1766/* The GNU C library defines this for functions which it implements
1767    to always fail with ENOSYS.  Some functions are actually named
1768    something starting with __ and the normal name is an alias.  */
1769#if defined __stub_$2 || defined __stub___$2
1770choke me
1771#endif
1772
1773int
1774main ()
1775{
1776return $2 ();
1777  ;
1778  return 0;
1779}
1780_ACEOF
1781if ac_fn_c_try_link "$LINENO"; then :
1782  eval "$3=yes"
1783else
1784  eval "$3=no"
1785fi
1786rm -f core conftest.err conftest.$ac_objext \
1787    conftest$ac_exeext conftest.$ac_ext
1788fi
1789eval ac_res=\$$3
1790	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1791$as_echo "$ac_res" >&6; }
1792  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1793
1794} # ac_fn_c_check_func
1795
1796# ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
1797# ---------------------------------------------
1798# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
1799# accordingly.
1800ac_fn_c_check_decl ()
1801{
1802  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1803  as_decl_name=`echo $2|sed 's/ *(.*//'`
1804  as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
1805  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
1806$as_echo_n "checking whether $as_decl_name is declared... " >&6; }
1807if eval \${$3+:} false; then :
1808  $as_echo_n "(cached) " >&6
1809else
1810  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1811/* end confdefs.h.  */
1812$4
1813int
1814main ()
1815{
1816#ifndef $as_decl_name
1817#ifdef __cplusplus
1818  (void) $as_decl_use;
1819#else
1820  (void) $as_decl_name;
1821#endif
1822#endif
1823
1824  ;
1825  return 0;
1826}
1827_ACEOF
1828if ac_fn_c_try_compile "$LINENO"; then :
1829  eval "$3=yes"
1830else
1831  eval "$3=no"
1832fi
1833rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1834fi
1835eval ac_res=\$$3
1836	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1837$as_echo "$ac_res" >&6; }
1838  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1839
1840} # ac_fn_c_check_decl
1841cat >config.log <<_ACEOF
1842This file contains any messages produced by compilers while
1843running configure, to aid debugging if configure makes a mistake.
1844
1845It was created by sqlite $as_me 3.12.1, which was
1846generated by GNU Autoconf 2.69.  Invocation command line was
1847
1848  $ $0 $@
1849
1850_ACEOF
1851exec 5>>config.log
1852{
1853cat <<_ASUNAME
1854## --------- ##
1855## Platform. ##
1856## --------- ##
1857
1858hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1859uname -m = `(uname -m) 2>/dev/null || echo unknown`
1860uname -r = `(uname -r) 2>/dev/null || echo unknown`
1861uname -s = `(uname -s) 2>/dev/null || echo unknown`
1862uname -v = `(uname -v) 2>/dev/null || echo unknown`
1863
1864/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1865/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1866
1867/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1868/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1869/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1870/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1871/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1872/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1873/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1874
1875_ASUNAME
1876
1877as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1878for as_dir in $PATH
1879do
1880  IFS=$as_save_IFS
1881  test -z "$as_dir" && as_dir=.
1882    $as_echo "PATH: $as_dir"
1883  done
1884IFS=$as_save_IFS
1885
1886} >&5
1887
1888cat >&5 <<_ACEOF
1889
1890
1891## ----------- ##
1892## Core tests. ##
1893## ----------- ##
1894
1895_ACEOF
1896
1897
1898# Keep a trace of the command line.
1899# Strip out --no-create and --no-recursion so they do not pile up.
1900# Strip out --silent because we don't want to record it for future runs.
1901# Also quote any args containing shell meta-characters.
1902# Make two passes to allow for proper duplicate-argument suppression.
1903ac_configure_args=
1904ac_configure_args0=
1905ac_configure_args1=
1906ac_must_keep_next=false
1907for ac_pass in 1 2
1908do
1909  for ac_arg
1910  do
1911    case $ac_arg in
1912    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1913    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1914    | -silent | --silent | --silen | --sile | --sil)
1915      continue ;;
1916    *\'*)
1917      ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1918    esac
1919    case $ac_pass in
1920    1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1921    2)
1922      as_fn_append ac_configure_args1 " '$ac_arg'"
1923      if test $ac_must_keep_next = true; then
1924	ac_must_keep_next=false # Got value, back to normal.
1925      else
1926	case $ac_arg in
1927	  *=* | --config-cache | -C | -disable-* | --disable-* \
1928	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1929	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1930	  | -with-* | --with-* | -without-* | --without-* | --x)
1931	    case "$ac_configure_args0 " in
1932	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1933	    esac
1934	    ;;
1935	  -* ) ac_must_keep_next=true ;;
1936	esac
1937      fi
1938      as_fn_append ac_configure_args " '$ac_arg'"
1939      ;;
1940    esac
1941  done
1942done
1943{ ac_configure_args0=; unset ac_configure_args0;}
1944{ ac_configure_args1=; unset ac_configure_args1;}
1945
1946# When interrupted or exit'd, cleanup temporary files, and complete
1947# config.log.  We remove comments because anyway the quotes in there
1948# would cause problems or look ugly.
1949# WARNING: Use '\'' to represent an apostrophe within the trap.
1950# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1951trap 'exit_status=$?
1952  # Save into config.log some information that might help in debugging.
1953  {
1954    echo
1955
1956    $as_echo "## ---------------- ##
1957## Cache variables. ##
1958## ---------------- ##"
1959    echo
1960    # The following way of writing the cache mishandles newlines in values,
1961(
1962  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1963    eval ac_val=\$$ac_var
1964    case $ac_val in #(
1965    *${as_nl}*)
1966      case $ac_var in #(
1967      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
1968$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1969      esac
1970      case $ac_var in #(
1971      _ | IFS | as_nl) ;; #(
1972      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1973      *) { eval $ac_var=; unset $ac_var;} ;;
1974      esac ;;
1975    esac
1976  done
1977  (set) 2>&1 |
1978    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1979    *${as_nl}ac_space=\ *)
1980      sed -n \
1981	"s/'\''/'\''\\\\'\'''\''/g;
1982	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1983      ;; #(
1984    *)
1985      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1986      ;;
1987    esac |
1988    sort
1989)
1990    echo
1991
1992    $as_echo "## ----------------- ##
1993## Output variables. ##
1994## ----------------- ##"
1995    echo
1996    for ac_var in $ac_subst_vars
1997    do
1998      eval ac_val=\$$ac_var
1999      case $ac_val in
2000      *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2001      esac
2002      $as_echo "$ac_var='\''$ac_val'\''"
2003    done | sort
2004    echo
2005
2006    if test -n "$ac_subst_files"; then
2007      $as_echo "## ------------------- ##
2008## File substitutions. ##
2009## ------------------- ##"
2010      echo
2011      for ac_var in $ac_subst_files
2012      do
2013	eval ac_val=\$$ac_var
2014	case $ac_val in
2015	*\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2016	esac
2017	$as_echo "$ac_var='\''$ac_val'\''"
2018      done | sort
2019      echo
2020    fi
2021
2022    if test -s confdefs.h; then
2023      $as_echo "## ----------- ##
2024## confdefs.h. ##
2025## ----------- ##"
2026      echo
2027      cat confdefs.h
2028      echo
2029    fi
2030    test "$ac_signal" != 0 &&
2031      $as_echo "$as_me: caught signal $ac_signal"
2032    $as_echo "$as_me: exit $exit_status"
2033  } >&5
2034  rm -f core *.core core.conftest.* &&
2035    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2036    exit $exit_status
2037' 0
2038for ac_signal in 1 2 13 15; do
2039  trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2040done
2041ac_signal=0
2042
2043# confdefs.h avoids OS command line length limits that DEFS can exceed.
2044rm -f -r conftest* confdefs.h
2045
2046$as_echo "/* confdefs.h */" > confdefs.h
2047
2048# Predefined preprocessor variables.
2049
2050cat >>confdefs.h <<_ACEOF
2051#define PACKAGE_NAME "$PACKAGE_NAME"
2052_ACEOF
2053
2054cat >>confdefs.h <<_ACEOF
2055#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2056_ACEOF
2057
2058cat >>confdefs.h <<_ACEOF
2059#define PACKAGE_VERSION "$PACKAGE_VERSION"
2060_ACEOF
2061
2062cat >>confdefs.h <<_ACEOF
2063#define PACKAGE_STRING "$PACKAGE_STRING"
2064_ACEOF
2065
2066cat >>confdefs.h <<_ACEOF
2067#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2068_ACEOF
2069
2070cat >>confdefs.h <<_ACEOF
2071#define PACKAGE_URL "$PACKAGE_URL"
2072_ACEOF
2073
2074
2075# Let the site file select an alternate cache file if it wants to.
2076# Prefer an explicitly selected file to automatically selected ones.
2077ac_site_file1=NONE
2078ac_site_file2=NONE
2079if test -n "$CONFIG_SITE"; then
2080  # We do not want a PATH search for config.site.
2081  case $CONFIG_SITE in #((
2082    -*)  ac_site_file1=./$CONFIG_SITE;;
2083    */*) ac_site_file1=$CONFIG_SITE;;
2084    *)   ac_site_file1=./$CONFIG_SITE;;
2085  esac
2086elif test "x$prefix" != xNONE; then
2087  ac_site_file1=$prefix/share/config.site
2088  ac_site_file2=$prefix/etc/config.site
2089else
2090  ac_site_file1=$ac_default_prefix/share/config.site
2091  ac_site_file2=$ac_default_prefix/etc/config.site
2092fi
2093for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2094do
2095  test "x$ac_site_file" = xNONE && continue
2096  if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2097    { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2098$as_echo "$as_me: loading site script $ac_site_file" >&6;}
2099    sed 's/^/| /' "$ac_site_file" >&5
2100    . "$ac_site_file" \
2101      || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2102$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2103as_fn_error $? "failed to load site script $ac_site_file
2104See \`config.log' for more details" "$LINENO" 5; }
2105  fi
2106done
2107
2108if test -r "$cache_file"; then
2109  # Some versions of bash will fail to source /dev/null (special files
2110  # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2111  if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2112    { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2113$as_echo "$as_me: loading cache $cache_file" >&6;}
2114    case $cache_file in
2115      [\\/]* | ?:[\\/]* ) . "$cache_file";;
2116      *)                      . "./$cache_file";;
2117    esac
2118  fi
2119else
2120  { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2121$as_echo "$as_me: creating cache $cache_file" >&6;}
2122  >$cache_file
2123fi
2124
2125# Check that the precious variables saved in the cache have kept the same
2126# value.
2127ac_cache_corrupted=false
2128for ac_var in $ac_precious_vars; do
2129  eval ac_old_set=\$ac_cv_env_${ac_var}_set
2130  eval ac_new_set=\$ac_env_${ac_var}_set
2131  eval ac_old_val=\$ac_cv_env_${ac_var}_value
2132  eval ac_new_val=\$ac_env_${ac_var}_value
2133  case $ac_old_set,$ac_new_set in
2134    set,)
2135      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2136$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2137      ac_cache_corrupted=: ;;
2138    ,set)
2139      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2140$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2141      ac_cache_corrupted=: ;;
2142    ,);;
2143    *)
2144      if test "x$ac_old_val" != "x$ac_new_val"; then
2145	# differences in whitespace do not lead to failure.
2146	ac_old_val_w=`echo x $ac_old_val`
2147	ac_new_val_w=`echo x $ac_new_val`
2148	if test "$ac_old_val_w" != "$ac_new_val_w"; then
2149	  { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2150$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2151	  ac_cache_corrupted=:
2152	else
2153	  { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2154$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2155	  eval $ac_var=\$ac_old_val
2156	fi
2157	{ $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2158$as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2159	{ $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2160$as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2161      fi;;
2162  esac
2163  # Pass precious variables to config.status.
2164  if test "$ac_new_set" = set; then
2165    case $ac_new_val in
2166    *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2167    *) ac_arg=$ac_var=$ac_new_val ;;
2168    esac
2169    case " $ac_configure_args " in
2170      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2171      *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2172    esac
2173  fi
2174done
2175if $ac_cache_corrupted; then
2176  { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2177$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2178  { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2179$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2180  as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2181fi
2182## -------------------- ##
2183## Main body of script. ##
2184## -------------------- ##
2185
2186ac_ext=c
2187ac_cpp='$CPP $CPPFLAGS'
2188ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2189ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2190ac_compiler_gnu=$ac_cv_c_compiler_gnu
2191
2192
2193
2194
2195# Use automake.
2196am__api_version='1.15'
2197
2198ac_aux_dir=
2199for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2200  if test -f "$ac_dir/install-sh"; then
2201    ac_aux_dir=$ac_dir
2202    ac_install_sh="$ac_aux_dir/install-sh -c"
2203    break
2204  elif test -f "$ac_dir/install.sh"; then
2205    ac_aux_dir=$ac_dir
2206    ac_install_sh="$ac_aux_dir/install.sh -c"
2207    break
2208  elif test -f "$ac_dir/shtool"; then
2209    ac_aux_dir=$ac_dir
2210    ac_install_sh="$ac_aux_dir/shtool install -c"
2211    break
2212  fi
2213done
2214if test -z "$ac_aux_dir"; then
2215  as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2216fi
2217
2218# These three variables are undocumented and unsupported,
2219# and are intended to be withdrawn in a future Autoconf release.
2220# They can cause serious problems if a builder's source tree is in a directory
2221# whose full name contains unusual characters.
2222ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2223ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2224ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2225
2226
2227# Find a good install program.  We prefer a C program (faster),
2228# so one script is as good as another.  But avoid the broken or
2229# incompatible versions:
2230# SysV /etc/install, /usr/sbin/install
2231# SunOS /usr/etc/install
2232# IRIX /sbin/install
2233# AIX /bin/install
2234# AmigaOS /C/install, which installs bootblocks on floppy discs
2235# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2236# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2237# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2238# OS/2's system install, which has a completely different semantic
2239# ./install, which can be erroneously created by make from ./install.sh.
2240# Reject install programs that cannot install multiple files.
2241{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2242$as_echo_n "checking for a BSD-compatible install... " >&6; }
2243if test -z "$INSTALL"; then
2244if ${ac_cv_path_install+:} false; then :
2245  $as_echo_n "(cached) " >&6
2246else
2247  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2248for as_dir in $PATH
2249do
2250  IFS=$as_save_IFS
2251  test -z "$as_dir" && as_dir=.
2252    # Account for people who put trailing slashes in PATH elements.
2253case $as_dir/ in #((
2254  ./ | .// | /[cC]/* | \
2255  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2256  ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2257  /usr/ucb/* ) ;;
2258  *)
2259    # OSF1 and SCO ODT 3.0 have their own names for install.
2260    # Don't use installbsd from OSF since it installs stuff as root
2261    # by default.
2262    for ac_prog in ginstall scoinst install; do
2263      for ac_exec_ext in '' $ac_executable_extensions; do
2264	if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2265	  if test $ac_prog = install &&
2266	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2267	    # AIX install.  It has an incompatible calling convention.
2268	    :
2269	  elif test $ac_prog = install &&
2270	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2271	    # program-specific install script used by HP pwplus--don't use.
2272	    :
2273	  else
2274	    rm -rf conftest.one conftest.two conftest.dir
2275	    echo one > conftest.one
2276	    echo two > conftest.two
2277	    mkdir conftest.dir
2278	    if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2279	      test -s conftest.one && test -s conftest.two &&
2280	      test -s conftest.dir/conftest.one &&
2281	      test -s conftest.dir/conftest.two
2282	    then
2283	      ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2284	      break 3
2285	    fi
2286	  fi
2287	fi
2288      done
2289    done
2290    ;;
2291esac
2292
2293  done
2294IFS=$as_save_IFS
2295
2296rm -rf conftest.one conftest.two conftest.dir
2297
2298fi
2299  if test "${ac_cv_path_install+set}" = set; then
2300    INSTALL=$ac_cv_path_install
2301  else
2302    # As a last resort, use the slow shell script.  Don't cache a
2303    # value for INSTALL within a source directory, because that will
2304    # break other packages using the cache if that directory is
2305    # removed, or if the value is a relative name.
2306    INSTALL=$ac_install_sh
2307  fi
2308fi
2309{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2310$as_echo "$INSTALL" >&6; }
2311
2312# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2313# It thinks the first close brace ends the variable substitution.
2314test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2315
2316test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2317
2318test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2319
2320{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2321$as_echo_n "checking whether build environment is sane... " >&6; }
2322# Reject unsafe characters in $srcdir or the absolute working directory
2323# name.  Accept space and tab only in the latter.
2324am_lf='
2325'
2326case `pwd` in
2327  *[\\\"\#\$\&\'\`$am_lf]*)
2328    as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2329esac
2330case $srcdir in
2331  *[\\\"\#\$\&\'\`$am_lf\ \	]*)
2332    as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2333esac
2334
2335# Do 'set' in a subshell so we don't clobber the current shell's
2336# arguments.  Must try -L first in case configure is actually a
2337# symlink; some systems play weird games with the mod time of symlinks
2338# (eg FreeBSD returns the mod time of the symlink's containing
2339# directory).
2340if (
2341   am_has_slept=no
2342   for am_try in 1 2; do
2343     echo "timestamp, slept: $am_has_slept" > conftest.file
2344     set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2345     if test "$*" = "X"; then
2346	# -L didn't work.
2347	set X `ls -t "$srcdir/configure" conftest.file`
2348     fi
2349     if test "$*" != "X $srcdir/configure conftest.file" \
2350	&& test "$*" != "X conftest.file $srcdir/configure"; then
2351
2352	# If neither matched, then we have a broken ls.  This can happen
2353	# if, for instance, CONFIG_SHELL is bash and it inherits a
2354	# broken ls alias from the environment.  This has actually
2355	# happened.  Such a system could not be considered "sane".
2356	as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
2357  alias in your environment" "$LINENO" 5
2358     fi
2359     if test "$2" = conftest.file || test $am_try -eq 2; then
2360       break
2361     fi
2362     # Just in case.
2363     sleep 1
2364     am_has_slept=yes
2365   done
2366   test "$2" = conftest.file
2367   )
2368then
2369   # Ok.
2370   :
2371else
2372   as_fn_error $? "newly created file is older than distributed files!
2373Check your system clock" "$LINENO" 5
2374fi
2375{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2376$as_echo "yes" >&6; }
2377# If we didn't sleep, we still need to ensure time stamps of config.status and
2378# generated files are strictly newer.
2379am_sleep_pid=
2380if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2381  ( sleep 1 ) &
2382  am_sleep_pid=$!
2383fi
2384
2385rm -f conftest.file
2386
2387test "$program_prefix" != NONE &&
2388  program_transform_name="s&^&$program_prefix&;$program_transform_name"
2389# Use a double $ so make ignores it.
2390test "$program_suffix" != NONE &&
2391  program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2392# Double any \ or $.
2393# By default was `s,x,x', remove it if useless.
2394ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2395program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2396
2397# Expand $ac_aux_dir to an absolute path.
2398am_aux_dir=`cd "$ac_aux_dir" && pwd`
2399
2400if test x"${MISSING+set}" != xset; then
2401  case $am_aux_dir in
2402  *\ * | *\	*)
2403    MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2404  *)
2405    MISSING="\${SHELL} $am_aux_dir/missing" ;;
2406  esac
2407fi
2408# Use eval to expand $SHELL
2409if eval "$MISSING --is-lightweight"; then
2410  am_missing_run="$MISSING "
2411else
2412  am_missing_run=
2413  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2414$as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
2415fi
2416
2417if test x"${install_sh+set}" != xset; then
2418  case $am_aux_dir in
2419  *\ * | *\	*)
2420    install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2421  *)
2422    install_sh="\${SHELL} $am_aux_dir/install-sh"
2423  esac
2424fi
2425
2426# Installed binaries are usually stripped using 'strip' when the user
2427# run "make install-strip".  However 'strip' might not be the right
2428# tool to use in cross-compilation environments, therefore Automake
2429# will honor the 'STRIP' environment variable to overrule this program.
2430if test "$cross_compiling" != no; then
2431  if test -n "$ac_tool_prefix"; then
2432  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2433set dummy ${ac_tool_prefix}strip; ac_word=$2
2434{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2435$as_echo_n "checking for $ac_word... " >&6; }
2436if ${ac_cv_prog_STRIP+:} false; then :
2437  $as_echo_n "(cached) " >&6
2438else
2439  if test -n "$STRIP"; then
2440  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2441else
2442as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2443for as_dir in $PATH
2444do
2445  IFS=$as_save_IFS
2446  test -z "$as_dir" && as_dir=.
2447    for ac_exec_ext in '' $ac_executable_extensions; do
2448  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2449    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2450    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2451    break 2
2452  fi
2453done
2454  done
2455IFS=$as_save_IFS
2456
2457fi
2458fi
2459STRIP=$ac_cv_prog_STRIP
2460if test -n "$STRIP"; then
2461  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2462$as_echo "$STRIP" >&6; }
2463else
2464  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2465$as_echo "no" >&6; }
2466fi
2467
2468
2469fi
2470if test -z "$ac_cv_prog_STRIP"; then
2471  ac_ct_STRIP=$STRIP
2472  # Extract the first word of "strip", so it can be a program name with args.
2473set dummy strip; ac_word=$2
2474{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2475$as_echo_n "checking for $ac_word... " >&6; }
2476if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2477  $as_echo_n "(cached) " >&6
2478else
2479  if test -n "$ac_ct_STRIP"; then
2480  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2481else
2482as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2483for as_dir in $PATH
2484do
2485  IFS=$as_save_IFS
2486  test -z "$as_dir" && as_dir=.
2487    for ac_exec_ext in '' $ac_executable_extensions; do
2488  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2489    ac_cv_prog_ac_ct_STRIP="strip"
2490    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2491    break 2
2492  fi
2493done
2494  done
2495IFS=$as_save_IFS
2496
2497fi
2498fi
2499ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2500if test -n "$ac_ct_STRIP"; then
2501  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2502$as_echo "$ac_ct_STRIP" >&6; }
2503else
2504  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2505$as_echo "no" >&6; }
2506fi
2507
2508  if test "x$ac_ct_STRIP" = x; then
2509    STRIP=":"
2510  else
2511    case $cross_compiling:$ac_tool_warned in
2512yes:)
2513{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2514$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2515ac_tool_warned=yes ;;
2516esac
2517    STRIP=$ac_ct_STRIP
2518  fi
2519else
2520  STRIP="$ac_cv_prog_STRIP"
2521fi
2522
2523fi
2524INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2525
2526{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2527$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2528if test -z "$MKDIR_P"; then
2529  if ${ac_cv_path_mkdir+:} false; then :
2530  $as_echo_n "(cached) " >&6
2531else
2532  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2533for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2534do
2535  IFS=$as_save_IFS
2536  test -z "$as_dir" && as_dir=.
2537    for ac_prog in mkdir gmkdir; do
2538	 for ac_exec_ext in '' $ac_executable_extensions; do
2539	   as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
2540	   case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2541	     'mkdir (GNU coreutils) '* | \
2542	     'mkdir (coreutils) '* | \
2543	     'mkdir (fileutils) '4.1*)
2544	       ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2545	       break 3;;
2546	   esac
2547	 done
2548       done
2549  done
2550IFS=$as_save_IFS
2551
2552fi
2553
2554  test -d ./--version && rmdir ./--version
2555  if test "${ac_cv_path_mkdir+set}" = set; then
2556    MKDIR_P="$ac_cv_path_mkdir -p"
2557  else
2558    # As a last resort, use the slow shell script.  Don't cache a
2559    # value for MKDIR_P within a source directory, because that will
2560    # break other packages using the cache if that directory is
2561    # removed, or if the value is a relative name.
2562    MKDIR_P="$ac_install_sh -d"
2563  fi
2564fi
2565{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2566$as_echo "$MKDIR_P" >&6; }
2567
2568for ac_prog in gawk mawk nawk awk
2569do
2570  # Extract the first word of "$ac_prog", so it can be a program name with args.
2571set dummy $ac_prog; ac_word=$2
2572{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2573$as_echo_n "checking for $ac_word... " >&6; }
2574if ${ac_cv_prog_AWK+:} false; then :
2575  $as_echo_n "(cached) " >&6
2576else
2577  if test -n "$AWK"; then
2578  ac_cv_prog_AWK="$AWK" # Let the user override the test.
2579else
2580as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2581for as_dir in $PATH
2582do
2583  IFS=$as_save_IFS
2584  test -z "$as_dir" && as_dir=.
2585    for ac_exec_ext in '' $ac_executable_extensions; do
2586  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2587    ac_cv_prog_AWK="$ac_prog"
2588    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2589    break 2
2590  fi
2591done
2592  done
2593IFS=$as_save_IFS
2594
2595fi
2596fi
2597AWK=$ac_cv_prog_AWK
2598if test -n "$AWK"; then
2599  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2600$as_echo "$AWK" >&6; }
2601else
2602  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2603$as_echo "no" >&6; }
2604fi
2605
2606
2607  test -n "$AWK" && break
2608done
2609
2610{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2611$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2612set x ${MAKE-make}
2613ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2614if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2615  $as_echo_n "(cached) " >&6
2616else
2617  cat >conftest.make <<\_ACEOF
2618SHELL = /bin/sh
2619all:
2620	@echo '@@@%%%=$(MAKE)=@@@%%%'
2621_ACEOF
2622# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2623case `${MAKE-make} -f conftest.make 2>/dev/null` in
2624  *@@@%%%=?*=@@@%%%*)
2625    eval ac_cv_prog_make_${ac_make}_set=yes;;
2626  *)
2627    eval ac_cv_prog_make_${ac_make}_set=no;;
2628esac
2629rm -f conftest.make
2630fi
2631if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2632  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2633$as_echo "yes" >&6; }
2634  SET_MAKE=
2635else
2636  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2637$as_echo "no" >&6; }
2638  SET_MAKE="MAKE=${MAKE-make}"
2639fi
2640
2641rm -rf .tst 2>/dev/null
2642mkdir .tst 2>/dev/null
2643if test -d .tst; then
2644  am__leading_dot=.
2645else
2646  am__leading_dot=_
2647fi
2648rmdir .tst 2>/dev/null
2649
2650# Check whether --enable-silent-rules was given.
2651if test "${enable_silent_rules+set}" = set; then :
2652  enableval=$enable_silent_rules;
2653fi
2654
2655case $enable_silent_rules in # (((
2656  yes) AM_DEFAULT_VERBOSITY=0;;
2657   no) AM_DEFAULT_VERBOSITY=1;;
2658    *) AM_DEFAULT_VERBOSITY=1;;
2659esac
2660am_make=${MAKE-make}
2661{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
2662$as_echo_n "checking whether $am_make supports nested variables... " >&6; }
2663if ${am_cv_make_support_nested_variables+:} false; then :
2664  $as_echo_n "(cached) " >&6
2665else
2666  if $as_echo 'TRUE=$(BAR$(V))
2667BAR0=false
2668BAR1=true
2669V=1
2670am__doit:
2671	@$(TRUE)
2672.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
2673  am_cv_make_support_nested_variables=yes
2674else
2675  am_cv_make_support_nested_variables=no
2676fi
2677fi
2678{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
2679$as_echo "$am_cv_make_support_nested_variables" >&6; }
2680if test $am_cv_make_support_nested_variables = yes; then
2681    AM_V='$(V)'
2682  AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
2683else
2684  AM_V=$AM_DEFAULT_VERBOSITY
2685  AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
2686fi
2687AM_BACKSLASH='\'
2688
2689if test "`cd $srcdir && pwd`" != "`pwd`"; then
2690  # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2691  # is not polluted with repeated "-I."
2692  am__isrc=' -I$(srcdir)'
2693  # test to see if srcdir already configured
2694  if test -f $srcdir/config.status; then
2695    as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2696  fi
2697fi
2698
2699# test whether we have cygpath
2700if test -z "$CYGPATH_W"; then
2701  if (cygpath --version) >/dev/null 2>/dev/null; then
2702    CYGPATH_W='cygpath -w'
2703  else
2704    CYGPATH_W=echo
2705  fi
2706fi
2707
2708
2709# Define the identity of the package.
2710 PACKAGE='sqlite'
2711 VERSION='3.12.1'
2712
2713
2714cat >>confdefs.h <<_ACEOF
2715#define PACKAGE "$PACKAGE"
2716_ACEOF
2717
2718
2719cat >>confdefs.h <<_ACEOF
2720#define VERSION "$VERSION"
2721_ACEOF
2722
2723# Some tools Automake needs.
2724
2725ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2726
2727
2728AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2729
2730
2731AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2732
2733
2734AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2735
2736
2737MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2738
2739# For better backward compatibility.  To be removed once Automake 1.9.x
2740# dies out for good.  For more background, see:
2741# <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
2742# <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
2743mkdir_p='$(MKDIR_P)'
2744
2745# We need awk for the "check" target (and possibly the TAP driver).  The
2746# system "awk" is bad on some platforms.
2747# Always define AMTAR for backward compatibility.  Yes, it's still used
2748# in the wild :-(  We should find a proper way to deprecate it ...
2749AMTAR='$${TAR-tar}'
2750
2751
2752# We'll loop over all known methods to create a tar archive until one works.
2753_am_tools='gnutar  pax cpio none'
2754
2755am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
2756
2757
2758
2759
2760
2761
2762# POSIX will say in a future version that running "rm -f" with no argument
2763# is OK; and we want to be able to make that assumption in our Makefile
2764# recipes.  So use an aggressive probe to check that the usage we want is
2765# actually supported "in the wild" to an acceptable degree.
2766# See automake bug#10828.
2767# To make any issue more visible, cause the running configure to be aborted
2768# by default if the 'rm' program in use doesn't match our expectations; the
2769# user can still override this though.
2770if rm -f && rm -fr && rm -rf; then : OK; else
2771  cat >&2 <<'END'
2772Oops!
2773
2774Your 'rm' program seems unable to run without file operands specified
2775on the command line, even when the '-f' option is present.  This is contrary
2776to the behaviour of most rm programs out there, and not conforming with
2777the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
2778
2779Please tell bug-automake@gnu.org about your system, including the value
2780of your $PATH and any error possibly output before this message.  This
2781can help us improve future automake versions.
2782
2783END
2784  if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
2785    echo 'Configuration will proceed anyway, since you have set the' >&2
2786    echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
2787    echo >&2
2788  else
2789    cat >&2 <<'END'
2790Aborting the configuration process, to ensure you take notice of the issue.
2791
2792You can download and install GNU coreutils to get an 'rm' implementation
2793that behaves properly: <http://www.gnu.org/software/coreutils/>.
2794
2795If you want to complete the configuration process using your problematic
2796'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
2797to "yes", and re-run configure.
2798
2799END
2800    as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
2801  fi
2802fi
2803
2804
2805DEPDIR="${am__leading_dot}deps"
2806
2807ac_config_commands="$ac_config_commands depfiles"
2808
2809
2810am_make=${MAKE-make}
2811cat > confinc << 'END'
2812am__doit:
2813	@echo this is the am__doit target
2814.PHONY: am__doit
2815END
2816# If we don't find an include directive, just comment out the code.
2817{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
2818$as_echo_n "checking for style of include used by $am_make... " >&6; }
2819am__include="#"
2820am__quote=
2821_am_result=none
2822# First try GNU make style include.
2823echo "include confinc" > confmf
2824# Ignore all kinds of additional output from 'make'.
2825case `$am_make -s -f confmf 2> /dev/null` in #(
2826*the\ am__doit\ target*)
2827  am__include=include
2828  am__quote=
2829  _am_result=GNU
2830  ;;
2831esac
2832# Now try BSD make style include.
2833if test "$am__include" = "#"; then
2834   echo '.include "confinc"' > confmf
2835   case `$am_make -s -f confmf 2> /dev/null` in #(
2836   *the\ am__doit\ target*)
2837     am__include=.include
2838     am__quote="\""
2839     _am_result=BSD
2840     ;;
2841   esac
2842fi
2843
2844
2845{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
2846$as_echo "$_am_result" >&6; }
2847rm -f confinc confmf
2848
2849# Check whether --enable-dependency-tracking was given.
2850if test "${enable_dependency_tracking+set}" = set; then :
2851  enableval=$enable_dependency_tracking;
2852fi
2853
2854if test "x$enable_dependency_tracking" != xno; then
2855  am_depcomp="$ac_aux_dir/depcomp"
2856  AMDEPBACKSLASH='\'
2857  am__nodep='_no'
2858fi
2859 if test "x$enable_dependency_tracking" != xno; then
2860  AMDEP_TRUE=
2861  AMDEP_FALSE='#'
2862else
2863  AMDEP_TRUE='#'
2864  AMDEP_FALSE=
2865fi
2866
2867
2868ac_ext=c
2869ac_cpp='$CPP $CPPFLAGS'
2870ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2871ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2872ac_compiler_gnu=$ac_cv_c_compiler_gnu
2873if test -n "$ac_tool_prefix"; then
2874  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2875set dummy ${ac_tool_prefix}gcc; ac_word=$2
2876{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2877$as_echo_n "checking for $ac_word... " >&6; }
2878if ${ac_cv_prog_CC+:} false; then :
2879  $as_echo_n "(cached) " >&6
2880else
2881  if test -n "$CC"; then
2882  ac_cv_prog_CC="$CC" # Let the user override the test.
2883else
2884as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2885for as_dir in $PATH
2886do
2887  IFS=$as_save_IFS
2888  test -z "$as_dir" && as_dir=.
2889    for ac_exec_ext in '' $ac_executable_extensions; do
2890  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2891    ac_cv_prog_CC="${ac_tool_prefix}gcc"
2892    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2893    break 2
2894  fi
2895done
2896  done
2897IFS=$as_save_IFS
2898
2899fi
2900fi
2901CC=$ac_cv_prog_CC
2902if test -n "$CC"; then
2903  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2904$as_echo "$CC" >&6; }
2905else
2906  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2907$as_echo "no" >&6; }
2908fi
2909
2910
2911fi
2912if test -z "$ac_cv_prog_CC"; then
2913  ac_ct_CC=$CC
2914  # Extract the first word of "gcc", so it can be a program name with args.
2915set dummy gcc; ac_word=$2
2916{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2917$as_echo_n "checking for $ac_word... " >&6; }
2918if ${ac_cv_prog_ac_ct_CC+:} false; then :
2919  $as_echo_n "(cached) " >&6
2920else
2921  if test -n "$ac_ct_CC"; then
2922  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2923else
2924as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2925for as_dir in $PATH
2926do
2927  IFS=$as_save_IFS
2928  test -z "$as_dir" && as_dir=.
2929    for ac_exec_ext in '' $ac_executable_extensions; do
2930  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2931    ac_cv_prog_ac_ct_CC="gcc"
2932    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2933    break 2
2934  fi
2935done
2936  done
2937IFS=$as_save_IFS
2938
2939fi
2940fi
2941ac_ct_CC=$ac_cv_prog_ac_ct_CC
2942if test -n "$ac_ct_CC"; then
2943  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2944$as_echo "$ac_ct_CC" >&6; }
2945else
2946  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2947$as_echo "no" >&6; }
2948fi
2949
2950  if test "x$ac_ct_CC" = x; then
2951    CC=""
2952  else
2953    case $cross_compiling:$ac_tool_warned in
2954yes:)
2955{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2956$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2957ac_tool_warned=yes ;;
2958esac
2959    CC=$ac_ct_CC
2960  fi
2961else
2962  CC="$ac_cv_prog_CC"
2963fi
2964
2965if test -z "$CC"; then
2966          if test -n "$ac_tool_prefix"; then
2967    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2968set dummy ${ac_tool_prefix}cc; ac_word=$2
2969{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2970$as_echo_n "checking for $ac_word... " >&6; }
2971if ${ac_cv_prog_CC+:} false; then :
2972  $as_echo_n "(cached) " >&6
2973else
2974  if test -n "$CC"; then
2975  ac_cv_prog_CC="$CC" # Let the user override the test.
2976else
2977as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2978for as_dir in $PATH
2979do
2980  IFS=$as_save_IFS
2981  test -z "$as_dir" && as_dir=.
2982    for ac_exec_ext in '' $ac_executable_extensions; do
2983  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2984    ac_cv_prog_CC="${ac_tool_prefix}cc"
2985    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2986    break 2
2987  fi
2988done
2989  done
2990IFS=$as_save_IFS
2991
2992fi
2993fi
2994CC=$ac_cv_prog_CC
2995if test -n "$CC"; then
2996  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2997$as_echo "$CC" >&6; }
2998else
2999  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3000$as_echo "no" >&6; }
3001fi
3002
3003
3004  fi
3005fi
3006if test -z "$CC"; then
3007  # Extract the first word of "cc", so it can be a program name with args.
3008set dummy cc; ac_word=$2
3009{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3010$as_echo_n "checking for $ac_word... " >&6; }
3011if ${ac_cv_prog_CC+:} false; then :
3012  $as_echo_n "(cached) " >&6
3013else
3014  if test -n "$CC"; then
3015  ac_cv_prog_CC="$CC" # Let the user override the test.
3016else
3017  ac_prog_rejected=no
3018as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3019for as_dir in $PATH
3020do
3021  IFS=$as_save_IFS
3022  test -z "$as_dir" && as_dir=.
3023    for ac_exec_ext in '' $ac_executable_extensions; do
3024  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3025    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3026       ac_prog_rejected=yes
3027       continue
3028     fi
3029    ac_cv_prog_CC="cc"
3030    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3031    break 2
3032  fi
3033done
3034  done
3035IFS=$as_save_IFS
3036
3037if test $ac_prog_rejected = yes; then
3038  # We found a bogon in the path, so make sure we never use it.
3039  set dummy $ac_cv_prog_CC
3040  shift
3041  if test $# != 0; then
3042    # We chose a different compiler from the bogus one.
3043    # However, it has the same basename, so the bogon will be chosen
3044    # first if we set CC to just the basename; use the full file name.
3045    shift
3046    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3047  fi
3048fi
3049fi
3050fi
3051CC=$ac_cv_prog_CC
3052if test -n "$CC"; then
3053  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3054$as_echo "$CC" >&6; }
3055else
3056  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3057$as_echo "no" >&6; }
3058fi
3059
3060
3061fi
3062if test -z "$CC"; then
3063  if test -n "$ac_tool_prefix"; then
3064  for ac_prog in cl.exe
3065  do
3066    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3067set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3068{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3069$as_echo_n "checking for $ac_word... " >&6; }
3070if ${ac_cv_prog_CC+:} false; then :
3071  $as_echo_n "(cached) " >&6
3072else
3073  if test -n "$CC"; then
3074  ac_cv_prog_CC="$CC" # Let the user override the test.
3075else
3076as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3077for as_dir in $PATH
3078do
3079  IFS=$as_save_IFS
3080  test -z "$as_dir" && as_dir=.
3081    for ac_exec_ext in '' $ac_executable_extensions; do
3082  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3083    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3084    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3085    break 2
3086  fi
3087done
3088  done
3089IFS=$as_save_IFS
3090
3091fi
3092fi
3093CC=$ac_cv_prog_CC
3094if test -n "$CC"; then
3095  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3096$as_echo "$CC" >&6; }
3097else
3098  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3099$as_echo "no" >&6; }
3100fi
3101
3102
3103    test -n "$CC" && break
3104  done
3105fi
3106if test -z "$CC"; then
3107  ac_ct_CC=$CC
3108  for ac_prog in cl.exe
3109do
3110  # Extract the first word of "$ac_prog", so it can be a program name with args.
3111set dummy $ac_prog; ac_word=$2
3112{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3113$as_echo_n "checking for $ac_word... " >&6; }
3114if ${ac_cv_prog_ac_ct_CC+:} false; then :
3115  $as_echo_n "(cached) " >&6
3116else
3117  if test -n "$ac_ct_CC"; then
3118  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3119else
3120as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3121for as_dir in $PATH
3122do
3123  IFS=$as_save_IFS
3124  test -z "$as_dir" && as_dir=.
3125    for ac_exec_ext in '' $ac_executable_extensions; do
3126  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3127    ac_cv_prog_ac_ct_CC="$ac_prog"
3128    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3129    break 2
3130  fi
3131done
3132  done
3133IFS=$as_save_IFS
3134
3135fi
3136fi
3137ac_ct_CC=$ac_cv_prog_ac_ct_CC
3138if test -n "$ac_ct_CC"; then
3139  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3140$as_echo "$ac_ct_CC" >&6; }
3141else
3142  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3143$as_echo "no" >&6; }
3144fi
3145
3146
3147  test -n "$ac_ct_CC" && break
3148done
3149
3150  if test "x$ac_ct_CC" = x; then
3151    CC=""
3152  else
3153    case $cross_compiling:$ac_tool_warned in
3154yes:)
3155{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3156$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3157ac_tool_warned=yes ;;
3158esac
3159    CC=$ac_ct_CC
3160  fi
3161fi
3162
3163fi
3164
3165
3166test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3167$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3168as_fn_error $? "no acceptable C compiler found in \$PATH
3169See \`config.log' for more details" "$LINENO" 5; }
3170
3171# Provide some information about the compiler.
3172$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3173set X $ac_compile
3174ac_compiler=$2
3175for ac_option in --version -v -V -qversion; do
3176  { { ac_try="$ac_compiler $ac_option >&5"
3177case "(($ac_try" in
3178  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3179  *) ac_try_echo=$ac_try;;
3180esac
3181eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3182$as_echo "$ac_try_echo"; } >&5
3183  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3184  ac_status=$?
3185  if test -s conftest.err; then
3186    sed '10a\
3187... rest of stderr output deleted ...
3188         10q' conftest.err >conftest.er1
3189    cat conftest.er1 >&5
3190  fi
3191  rm -f conftest.er1 conftest.err
3192  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3193  test $ac_status = 0; }
3194done
3195
3196cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3197/* end confdefs.h.  */
3198
3199int
3200main ()
3201{
3202
3203  ;
3204  return 0;
3205}
3206_ACEOF
3207ac_clean_files_save=$ac_clean_files
3208ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3209# Try to create an executable without -o first, disregard a.out.
3210# It will help us diagnose broken compilers, and finding out an intuition
3211# of exeext.
3212{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3213$as_echo_n "checking whether the C compiler works... " >&6; }
3214ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3215
3216# The possible output files:
3217ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3218
3219ac_rmfiles=
3220for ac_file in $ac_files
3221do
3222  case $ac_file in
3223    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3224    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3225  esac
3226done
3227rm -f $ac_rmfiles
3228
3229if { { ac_try="$ac_link_default"
3230case "(($ac_try" in
3231  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3232  *) ac_try_echo=$ac_try;;
3233esac
3234eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3235$as_echo "$ac_try_echo"; } >&5
3236  (eval "$ac_link_default") 2>&5
3237  ac_status=$?
3238  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3239  test $ac_status = 0; }; then :
3240  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3241# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3242# in a Makefile.  We should not override ac_cv_exeext if it was cached,
3243# so that the user can short-circuit this test for compilers unknown to
3244# Autoconf.
3245for ac_file in $ac_files ''
3246do
3247  test -f "$ac_file" || continue
3248  case $ac_file in
3249    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3250	;;
3251    [ab].out )
3252	# We found the default executable, but exeext='' is most
3253	# certainly right.
3254	break;;
3255    *.* )
3256	if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3257	then :; else
3258	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3259	fi
3260	# We set ac_cv_exeext here because the later test for it is not
3261	# safe: cross compilers may not add the suffix if given an `-o'
3262	# argument, so we may need to know it at that point already.
3263	# Even if this section looks crufty: it has the advantage of
3264	# actually working.
3265	break;;
3266    * )
3267	break;;
3268  esac
3269done
3270test "$ac_cv_exeext" = no && ac_cv_exeext=
3271
3272else
3273  ac_file=''
3274fi
3275if test -z "$ac_file"; then :
3276  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3277$as_echo "no" >&6; }
3278$as_echo "$as_me: failed program was:" >&5
3279sed 's/^/| /' conftest.$ac_ext >&5
3280
3281{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3282$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3283as_fn_error 77 "C compiler cannot create executables
3284See \`config.log' for more details" "$LINENO" 5; }
3285else
3286  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3287$as_echo "yes" >&6; }
3288fi
3289{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3290$as_echo_n "checking for C compiler default output file name... " >&6; }
3291{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3292$as_echo "$ac_file" >&6; }
3293ac_exeext=$ac_cv_exeext
3294
3295rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3296ac_clean_files=$ac_clean_files_save
3297{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3298$as_echo_n "checking for suffix of executables... " >&6; }
3299if { { ac_try="$ac_link"
3300case "(($ac_try" in
3301  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3302  *) ac_try_echo=$ac_try;;
3303esac
3304eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3305$as_echo "$ac_try_echo"; } >&5
3306  (eval "$ac_link") 2>&5
3307  ac_status=$?
3308  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3309  test $ac_status = 0; }; then :
3310  # If both `conftest.exe' and `conftest' are `present' (well, observable)
3311# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3312# work properly (i.e., refer to `conftest.exe'), while it won't with
3313# `rm'.
3314for ac_file in conftest.exe conftest conftest.*; do
3315  test -f "$ac_file" || continue
3316  case $ac_file in
3317    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3318    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3319	  break;;
3320    * ) break;;
3321  esac
3322done
3323else
3324  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3325$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3326as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3327See \`config.log' for more details" "$LINENO" 5; }
3328fi
3329rm -f conftest conftest$ac_cv_exeext
3330{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3331$as_echo "$ac_cv_exeext" >&6; }
3332
3333rm -f conftest.$ac_ext
3334EXEEXT=$ac_cv_exeext
3335ac_exeext=$EXEEXT
3336cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3337/* end confdefs.h.  */
3338#include <stdio.h>
3339int
3340main ()
3341{
3342FILE *f = fopen ("conftest.out", "w");
3343 return ferror (f) || fclose (f) != 0;
3344
3345  ;
3346  return 0;
3347}
3348_ACEOF
3349ac_clean_files="$ac_clean_files conftest.out"
3350# Check that the compiler produces executables we can run.  If not, either
3351# the compiler is broken, or we cross compile.
3352{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3353$as_echo_n "checking whether we are cross compiling... " >&6; }
3354if test "$cross_compiling" != yes; then
3355  { { ac_try="$ac_link"
3356case "(($ac_try" in
3357  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3358  *) ac_try_echo=$ac_try;;
3359esac
3360eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3361$as_echo "$ac_try_echo"; } >&5
3362  (eval "$ac_link") 2>&5
3363  ac_status=$?
3364  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3365  test $ac_status = 0; }
3366  if { ac_try='./conftest$ac_cv_exeext'
3367  { { case "(($ac_try" in
3368  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3369  *) ac_try_echo=$ac_try;;
3370esac
3371eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3372$as_echo "$ac_try_echo"; } >&5
3373  (eval "$ac_try") 2>&5
3374  ac_status=$?
3375  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3376  test $ac_status = 0; }; }; then
3377    cross_compiling=no
3378  else
3379    if test "$cross_compiling" = maybe; then
3380	cross_compiling=yes
3381    else
3382	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3383$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3384as_fn_error $? "cannot run C compiled programs.
3385If you meant to cross compile, use \`--host'.
3386See \`config.log' for more details" "$LINENO" 5; }
3387    fi
3388  fi
3389fi
3390{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3391$as_echo "$cross_compiling" >&6; }
3392
3393rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3394ac_clean_files=$ac_clean_files_save
3395{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3396$as_echo_n "checking for suffix of object files... " >&6; }
3397if ${ac_cv_objext+:} false; then :
3398  $as_echo_n "(cached) " >&6
3399else
3400  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3401/* end confdefs.h.  */
3402
3403int
3404main ()
3405{
3406
3407  ;
3408  return 0;
3409}
3410_ACEOF
3411rm -f conftest.o conftest.obj
3412if { { ac_try="$ac_compile"
3413case "(($ac_try" in
3414  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3415  *) ac_try_echo=$ac_try;;
3416esac
3417eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3418$as_echo "$ac_try_echo"; } >&5
3419  (eval "$ac_compile") 2>&5
3420  ac_status=$?
3421  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3422  test $ac_status = 0; }; then :
3423  for ac_file in conftest.o conftest.obj conftest.*; do
3424  test -f "$ac_file" || continue;
3425  case $ac_file in
3426    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3427    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3428       break;;
3429  esac
3430done
3431else
3432  $as_echo "$as_me: failed program was:" >&5
3433sed 's/^/| /' conftest.$ac_ext >&5
3434
3435{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3436$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3437as_fn_error $? "cannot compute suffix of object files: cannot compile
3438See \`config.log' for more details" "$LINENO" 5; }
3439fi
3440rm -f conftest.$ac_cv_objext conftest.$ac_ext
3441fi
3442{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3443$as_echo "$ac_cv_objext" >&6; }
3444OBJEXT=$ac_cv_objext
3445ac_objext=$OBJEXT
3446{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3447$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3448if ${ac_cv_c_compiler_gnu+:} false; then :
3449  $as_echo_n "(cached) " >&6
3450else
3451  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3452/* end confdefs.h.  */
3453
3454int
3455main ()
3456{
3457#ifndef __GNUC__
3458       choke me
3459#endif
3460
3461  ;
3462  return 0;
3463}
3464_ACEOF
3465if ac_fn_c_try_compile "$LINENO"; then :
3466  ac_compiler_gnu=yes
3467else
3468  ac_compiler_gnu=no
3469fi
3470rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3471ac_cv_c_compiler_gnu=$ac_compiler_gnu
3472
3473fi
3474{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3475$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3476if test $ac_compiler_gnu = yes; then
3477  GCC=yes
3478else
3479  GCC=
3480fi
3481ac_test_CFLAGS=${CFLAGS+set}
3482ac_save_CFLAGS=$CFLAGS
3483{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3484$as_echo_n "checking whether $CC accepts -g... " >&6; }
3485if ${ac_cv_prog_cc_g+:} false; then :
3486  $as_echo_n "(cached) " >&6
3487else
3488  ac_save_c_werror_flag=$ac_c_werror_flag
3489   ac_c_werror_flag=yes
3490   ac_cv_prog_cc_g=no
3491   CFLAGS="-g"
3492   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3493/* end confdefs.h.  */
3494
3495int
3496main ()
3497{
3498
3499  ;
3500  return 0;
3501}
3502_ACEOF
3503if ac_fn_c_try_compile "$LINENO"; then :
3504  ac_cv_prog_cc_g=yes
3505else
3506  CFLAGS=""
3507      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3508/* end confdefs.h.  */
3509
3510int
3511main ()
3512{
3513
3514  ;
3515  return 0;
3516}
3517_ACEOF
3518if ac_fn_c_try_compile "$LINENO"; then :
3519
3520else
3521  ac_c_werror_flag=$ac_save_c_werror_flag
3522	 CFLAGS="-g"
3523	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3524/* end confdefs.h.  */
3525
3526int
3527main ()
3528{
3529
3530  ;
3531  return 0;
3532}
3533_ACEOF
3534if ac_fn_c_try_compile "$LINENO"; then :
3535  ac_cv_prog_cc_g=yes
3536fi
3537rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3538fi
3539rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3540fi
3541rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3542   ac_c_werror_flag=$ac_save_c_werror_flag
3543fi
3544{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3545$as_echo "$ac_cv_prog_cc_g" >&6; }
3546if test "$ac_test_CFLAGS" = set; then
3547  CFLAGS=$ac_save_CFLAGS
3548elif test $ac_cv_prog_cc_g = yes; then
3549  if test "$GCC" = yes; then
3550    CFLAGS="-g -O2"
3551  else
3552    CFLAGS="-g"
3553  fi
3554else
3555  if test "$GCC" = yes; then
3556    CFLAGS="-O2"
3557  else
3558    CFLAGS=
3559  fi
3560fi
3561{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3562$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3563if ${ac_cv_prog_cc_c89+:} false; then :
3564  $as_echo_n "(cached) " >&6
3565else
3566  ac_cv_prog_cc_c89=no
3567ac_save_CC=$CC
3568cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3569/* end confdefs.h.  */
3570#include <stdarg.h>
3571#include <stdio.h>
3572struct stat;
3573/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3574struct buf { int x; };
3575FILE * (*rcsopen) (struct buf *, struct stat *, int);
3576static char *e (p, i)
3577     char **p;
3578     int i;
3579{
3580  return p[i];
3581}
3582static char *f (char * (*g) (char **, int), char **p, ...)
3583{
3584  char *s;
3585  va_list v;
3586  va_start (v,p);
3587  s = g (p, va_arg (v,int));
3588  va_end (v);
3589  return s;
3590}
3591
3592/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3593   function prototypes and stuff, but not '\xHH' hex character constants.
3594   These don't provoke an error unfortunately, instead are silently treated
3595   as 'x'.  The following induces an error, until -std is added to get
3596   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3597   array size at least.  It's necessary to write '\x00'==0 to get something
3598   that's true only with -std.  */
3599int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3600
3601/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3602   inside strings and character constants.  */
3603#define FOO(x) 'x'
3604int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3605
3606int test (int i, double x);
3607struct s1 {int (*f) (int a);};
3608struct s2 {int (*f) (double a);};
3609int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3610int argc;
3611char **argv;
3612int
3613main ()
3614{
3615return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3616  ;
3617  return 0;
3618}
3619_ACEOF
3620for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3621	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3622do
3623  CC="$ac_save_CC $ac_arg"
3624  if ac_fn_c_try_compile "$LINENO"; then :
3625  ac_cv_prog_cc_c89=$ac_arg
3626fi
3627rm -f core conftest.err conftest.$ac_objext
3628  test "x$ac_cv_prog_cc_c89" != "xno" && break
3629done
3630rm -f conftest.$ac_ext
3631CC=$ac_save_CC
3632
3633fi
3634# AC_CACHE_VAL
3635case "x$ac_cv_prog_cc_c89" in
3636  x)
3637    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3638$as_echo "none needed" >&6; } ;;
3639  xno)
3640    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3641$as_echo "unsupported" >&6; } ;;
3642  *)
3643    CC="$CC $ac_cv_prog_cc_c89"
3644    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3645$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3646esac
3647if test "x$ac_cv_prog_cc_c89" != xno; then :
3648
3649fi
3650
3651ac_ext=c
3652ac_cpp='$CPP $CPPFLAGS'
3653ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3654ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3655ac_compiler_gnu=$ac_cv_c_compiler_gnu
3656
3657ac_ext=c
3658ac_cpp='$CPP $CPPFLAGS'
3659ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3660ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3661ac_compiler_gnu=$ac_cv_c_compiler_gnu
3662{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
3663$as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
3664if ${am_cv_prog_cc_c_o+:} false; then :
3665  $as_echo_n "(cached) " >&6
3666else
3667  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3668/* end confdefs.h.  */
3669
3670int
3671main ()
3672{
3673
3674  ;
3675  return 0;
3676}
3677_ACEOF
3678  # Make sure it works both with $CC and with simple cc.
3679  # Following AC_PROG_CC_C_O, we do the test twice because some
3680  # compilers refuse to overwrite an existing .o file with -o,
3681  # though they will create one.
3682  am_cv_prog_cc_c_o=yes
3683  for am_i in 1 2; do
3684    if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
3685   ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
3686   ac_status=$?
3687   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3688   (exit $ac_status); } \
3689         && test -f conftest2.$ac_objext; then
3690      : OK
3691    else
3692      am_cv_prog_cc_c_o=no
3693      break
3694    fi
3695  done
3696  rm -f core conftest*
3697  unset am_i
3698fi
3699{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
3700$as_echo "$am_cv_prog_cc_c_o" >&6; }
3701if test "$am_cv_prog_cc_c_o" != yes; then
3702   # Losing compiler, so override with the script.
3703   # FIXME: It is wrong to rewrite CC.
3704   # But if we don't then we get into trouble of one sort or another.
3705   # A longer-term fix would be to have automake use am__CC in this case,
3706   # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
3707   CC="$am_aux_dir/compile $CC"
3708fi
3709ac_ext=c
3710ac_cpp='$CPP $CPPFLAGS'
3711ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3712ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3713ac_compiler_gnu=$ac_cv_c_compiler_gnu
3714
3715
3716depcc="$CC"   am_compiler_list=
3717
3718{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3719$as_echo_n "checking dependency style of $depcc... " >&6; }
3720if ${am_cv_CC_dependencies_compiler_type+:} false; then :
3721  $as_echo_n "(cached) " >&6
3722else
3723  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3724  # We make a subdir and do the tests there.  Otherwise we can end up
3725  # making bogus files that we don't know about and never remove.  For
3726  # instance it was reported that on HP-UX the gcc test will end up
3727  # making a dummy file named 'D' -- because '-MD' means "put the output
3728  # in D".
3729  rm -rf conftest.dir
3730  mkdir conftest.dir
3731  # Copy depcomp to subdir because otherwise we won't find it if we're
3732  # using a relative directory.
3733  cp "$am_depcomp" conftest.dir
3734  cd conftest.dir
3735  # We will build objects and dependencies in a subdirectory because
3736  # it helps to detect inapplicable dependency modes.  For instance
3737  # both Tru64's cc and ICC support -MD to output dependencies as a
3738  # side effect of compilation, but ICC will put the dependencies in
3739  # the current directory while Tru64 will put them in the object
3740  # directory.
3741  mkdir sub
3742
3743  am_cv_CC_dependencies_compiler_type=none
3744  if test "$am_compiler_list" = ""; then
3745     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3746  fi
3747  am__universal=false
3748  case " $depcc " in #(
3749     *\ -arch\ *\ -arch\ *) am__universal=true ;;
3750     esac
3751
3752  for depmode in $am_compiler_list; do
3753    # Setup a source with many dependencies, because some compilers
3754    # like to wrap large dependency lists on column 80 (with \), and
3755    # we should not choose a depcomp mode which is confused by this.
3756    #
3757    # We need to recreate these files for each test, as the compiler may
3758    # overwrite some of them when testing with obscure command lines.
3759    # This happens at least with the AIX C compiler.
3760    : > sub/conftest.c
3761    for i in 1 2 3 4 5 6; do
3762      echo '#include "conftst'$i'.h"' >> sub/conftest.c
3763      # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
3764      # Solaris 10 /bin/sh.
3765      echo '/* dummy */' > sub/conftst$i.h
3766    done
3767    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3768
3769    # We check with '-c' and '-o' for the sake of the "dashmstdout"
3770    # mode.  It turns out that the SunPro C++ compiler does not properly
3771    # handle '-M -o', and we need to detect this.  Also, some Intel
3772    # versions had trouble with output in subdirs.
3773    am__obj=sub/conftest.${OBJEXT-o}
3774    am__minus_obj="-o $am__obj"
3775    case $depmode in
3776    gcc)
3777      # This depmode causes a compiler race in universal mode.
3778      test "$am__universal" = false || continue
3779      ;;
3780    nosideeffect)
3781      # After this tag, mechanisms are not by side-effect, so they'll
3782      # only be used when explicitly requested.
3783      if test "x$enable_dependency_tracking" = xyes; then
3784	continue
3785      else
3786	break
3787      fi
3788      ;;
3789    msvc7 | msvc7msys | msvisualcpp | msvcmsys)
3790      # This compiler won't grok '-c -o', but also, the minuso test has
3791      # not run yet.  These depmodes are late enough in the game, and
3792      # so weak that their functioning should not be impacted.
3793      am__obj=conftest.${OBJEXT-o}
3794      am__minus_obj=
3795      ;;
3796    none) break ;;
3797    esac
3798    if depmode=$depmode \
3799       source=sub/conftest.c object=$am__obj \
3800       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3801       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3802         >/dev/null 2>conftest.err &&
3803       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3804       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3805       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
3806       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3807      # icc doesn't choke on unknown options, it will just issue warnings
3808      # or remarks (even with -Werror).  So we grep stderr for any message
3809      # that says an option was ignored or not supported.
3810      # When given -MP, icc 7.0 and 7.1 complain thusly:
3811      #   icc: Command line warning: ignoring option '-M'; no argument required
3812      # The diagnosis changed in icc 8.0:
3813      #   icc: Command line remark: option '-MP' not supported
3814      if (grep 'ignoring option' conftest.err ||
3815          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3816        am_cv_CC_dependencies_compiler_type=$depmode
3817        break
3818      fi
3819    fi
3820  done
3821
3822  cd ..
3823  rm -rf conftest.dir
3824else
3825  am_cv_CC_dependencies_compiler_type=none
3826fi
3827
3828fi
3829{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
3830$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
3831CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3832
3833 if
3834  test "x$enable_dependency_tracking" != xno \
3835  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3836  am__fastdepCC_TRUE=
3837  am__fastdepCC_FALSE='#'
3838else
3839  am__fastdepCC_TRUE='#'
3840  am__fastdepCC_FALSE=
3841fi
3842
3843
3844
3845# Check whether --enable-largefile was given.
3846if test "${enable_largefile+set}" = set; then :
3847  enableval=$enable_largefile;
3848fi
3849
3850if test "$enable_largefile" != no; then
3851
3852  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
3853$as_echo_n "checking for special C compiler options needed for large files... " >&6; }
3854if ${ac_cv_sys_largefile_CC+:} false; then :
3855  $as_echo_n "(cached) " >&6
3856else
3857  ac_cv_sys_largefile_CC=no
3858     if test "$GCC" != yes; then
3859       ac_save_CC=$CC
3860       while :; do
3861	 # IRIX 6.2 and later do not support large files by default,
3862	 # so use the C compiler's -n32 option if that helps.
3863	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3864/* end confdefs.h.  */
3865#include <sys/types.h>
3866 /* Check that off_t can represent 2**63 - 1 correctly.
3867    We can't simply define LARGE_OFF_T to be 9223372036854775807,
3868    since some C++ compilers masquerading as C compilers
3869    incorrectly reject 9223372036854775807.  */
3870#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
3871  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
3872		       && LARGE_OFF_T % 2147483647 == 1)
3873		      ? 1 : -1];
3874int
3875main ()
3876{
3877
3878  ;
3879  return 0;
3880}
3881_ACEOF
3882	 if ac_fn_c_try_compile "$LINENO"; then :
3883  break
3884fi
3885rm -f core conftest.err conftest.$ac_objext
3886	 CC="$CC -n32"
3887	 if ac_fn_c_try_compile "$LINENO"; then :
3888  ac_cv_sys_largefile_CC=' -n32'; break
3889fi
3890rm -f core conftest.err conftest.$ac_objext
3891	 break
3892       done
3893       CC=$ac_save_CC
3894       rm -f conftest.$ac_ext
3895    fi
3896fi
3897{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
3898$as_echo "$ac_cv_sys_largefile_CC" >&6; }
3899  if test "$ac_cv_sys_largefile_CC" != no; then
3900    CC=$CC$ac_cv_sys_largefile_CC
3901  fi
3902
3903  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
3904$as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
3905if ${ac_cv_sys_file_offset_bits+:} false; then :
3906  $as_echo_n "(cached) " >&6
3907else
3908  while :; do
3909  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3910/* end confdefs.h.  */
3911#include <sys/types.h>
3912 /* Check that off_t can represent 2**63 - 1 correctly.
3913    We can't simply define LARGE_OFF_T to be 9223372036854775807,
3914    since some C++ compilers masquerading as C compilers
3915    incorrectly reject 9223372036854775807.  */
3916#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
3917  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
3918		       && LARGE_OFF_T % 2147483647 == 1)
3919		      ? 1 : -1];
3920int
3921main ()
3922{
3923
3924  ;
3925  return 0;
3926}
3927_ACEOF
3928if ac_fn_c_try_compile "$LINENO"; then :
3929  ac_cv_sys_file_offset_bits=no; break
3930fi
3931rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3932  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3933/* end confdefs.h.  */
3934#define _FILE_OFFSET_BITS 64
3935#include <sys/types.h>
3936 /* Check that off_t can represent 2**63 - 1 correctly.
3937    We can't simply define LARGE_OFF_T to be 9223372036854775807,
3938    since some C++ compilers masquerading as C compilers
3939    incorrectly reject 9223372036854775807.  */
3940#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
3941  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
3942		       && LARGE_OFF_T % 2147483647 == 1)
3943		      ? 1 : -1];
3944int
3945main ()
3946{
3947
3948  ;
3949  return 0;
3950}
3951_ACEOF
3952if ac_fn_c_try_compile "$LINENO"; then :
3953  ac_cv_sys_file_offset_bits=64; break
3954fi
3955rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3956  ac_cv_sys_file_offset_bits=unknown
3957  break
3958done
3959fi
3960{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
3961$as_echo "$ac_cv_sys_file_offset_bits" >&6; }
3962case $ac_cv_sys_file_offset_bits in #(
3963  no | unknown) ;;
3964  *)
3965cat >>confdefs.h <<_ACEOF
3966#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
3967_ACEOF
3968;;
3969esac
3970rm -rf conftest*
3971  if test $ac_cv_sys_file_offset_bits = unknown; then
3972    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
3973$as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
3974if ${ac_cv_sys_large_files+:} false; then :
3975  $as_echo_n "(cached) " >&6
3976else
3977  while :; do
3978  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3979/* end confdefs.h.  */
3980#include <sys/types.h>
3981 /* Check that off_t can represent 2**63 - 1 correctly.
3982    We can't simply define LARGE_OFF_T to be 9223372036854775807,
3983    since some C++ compilers masquerading as C compilers
3984    incorrectly reject 9223372036854775807.  */
3985#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
3986  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
3987		       && LARGE_OFF_T % 2147483647 == 1)
3988		      ? 1 : -1];
3989int
3990main ()
3991{
3992
3993  ;
3994  return 0;
3995}
3996_ACEOF
3997if ac_fn_c_try_compile "$LINENO"; then :
3998  ac_cv_sys_large_files=no; break
3999fi
4000rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4001  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4002/* end confdefs.h.  */
4003#define _LARGE_FILES 1
4004#include <sys/types.h>
4005 /* Check that off_t can represent 2**63 - 1 correctly.
4006    We can't simply define LARGE_OFF_T to be 9223372036854775807,
4007    since some C++ compilers masquerading as C compilers
4008    incorrectly reject 9223372036854775807.  */
4009#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4010  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4011		       && LARGE_OFF_T % 2147483647 == 1)
4012		      ? 1 : -1];
4013int
4014main ()
4015{
4016
4017  ;
4018  return 0;
4019}
4020_ACEOF
4021if ac_fn_c_try_compile "$LINENO"; then :
4022  ac_cv_sys_large_files=1; break
4023fi
4024rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4025  ac_cv_sys_large_files=unknown
4026  break
4027done
4028fi
4029{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
4030$as_echo "$ac_cv_sys_large_files" >&6; }
4031case $ac_cv_sys_large_files in #(
4032  no | unknown) ;;
4033  *)
4034cat >>confdefs.h <<_ACEOF
4035#define _LARGE_FILES $ac_cv_sys_large_files
4036_ACEOF
4037;;
4038esac
4039rm -rf conftest*
4040  fi
4041
4042
4043fi
4044
4045
4046# Check for required programs.
4047ac_ext=c
4048ac_cpp='$CPP $CPPFLAGS'
4049ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4050ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4051ac_compiler_gnu=$ac_cv_c_compiler_gnu
4052if test -n "$ac_tool_prefix"; then
4053  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4054set dummy ${ac_tool_prefix}gcc; ac_word=$2
4055{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4056$as_echo_n "checking for $ac_word... " >&6; }
4057if ${ac_cv_prog_CC+:} false; then :
4058  $as_echo_n "(cached) " >&6
4059else
4060  if test -n "$CC"; then
4061  ac_cv_prog_CC="$CC" # Let the user override the test.
4062else
4063as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4064for as_dir in $PATH
4065do
4066  IFS=$as_save_IFS
4067  test -z "$as_dir" && as_dir=.
4068    for ac_exec_ext in '' $ac_executable_extensions; do
4069  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4070    ac_cv_prog_CC="${ac_tool_prefix}gcc"
4071    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4072    break 2
4073  fi
4074done
4075  done
4076IFS=$as_save_IFS
4077
4078fi
4079fi
4080CC=$ac_cv_prog_CC
4081if test -n "$CC"; then
4082  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4083$as_echo "$CC" >&6; }
4084else
4085  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4086$as_echo "no" >&6; }
4087fi
4088
4089
4090fi
4091if test -z "$ac_cv_prog_CC"; then
4092  ac_ct_CC=$CC
4093  # Extract the first word of "gcc", so it can be a program name with args.
4094set dummy gcc; ac_word=$2
4095{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4096$as_echo_n "checking for $ac_word... " >&6; }
4097if ${ac_cv_prog_ac_ct_CC+:} false; then :
4098  $as_echo_n "(cached) " >&6
4099else
4100  if test -n "$ac_ct_CC"; then
4101  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4102else
4103as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4104for as_dir in $PATH
4105do
4106  IFS=$as_save_IFS
4107  test -z "$as_dir" && as_dir=.
4108    for ac_exec_ext in '' $ac_executable_extensions; do
4109  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4110    ac_cv_prog_ac_ct_CC="gcc"
4111    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4112    break 2
4113  fi
4114done
4115  done
4116IFS=$as_save_IFS
4117
4118fi
4119fi
4120ac_ct_CC=$ac_cv_prog_ac_ct_CC
4121if test -n "$ac_ct_CC"; then
4122  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4123$as_echo "$ac_ct_CC" >&6; }
4124else
4125  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4126$as_echo "no" >&6; }
4127fi
4128
4129  if test "x$ac_ct_CC" = x; then
4130    CC=""
4131  else
4132    case $cross_compiling:$ac_tool_warned in
4133yes:)
4134{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4135$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4136ac_tool_warned=yes ;;
4137esac
4138    CC=$ac_ct_CC
4139  fi
4140else
4141  CC="$ac_cv_prog_CC"
4142fi
4143
4144if test -z "$CC"; then
4145          if test -n "$ac_tool_prefix"; then
4146    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4147set dummy ${ac_tool_prefix}cc; ac_word=$2
4148{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4149$as_echo_n "checking for $ac_word... " >&6; }
4150if ${ac_cv_prog_CC+:} false; then :
4151  $as_echo_n "(cached) " >&6
4152else
4153  if test -n "$CC"; then
4154  ac_cv_prog_CC="$CC" # Let the user override the test.
4155else
4156as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4157for as_dir in $PATH
4158do
4159  IFS=$as_save_IFS
4160  test -z "$as_dir" && as_dir=.
4161    for ac_exec_ext in '' $ac_executable_extensions; do
4162  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4163    ac_cv_prog_CC="${ac_tool_prefix}cc"
4164    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4165    break 2
4166  fi
4167done
4168  done
4169IFS=$as_save_IFS
4170
4171fi
4172fi
4173CC=$ac_cv_prog_CC
4174if test -n "$CC"; then
4175  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4176$as_echo "$CC" >&6; }
4177else
4178  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4179$as_echo "no" >&6; }
4180fi
4181
4182
4183  fi
4184fi
4185if test -z "$CC"; then
4186  # Extract the first word of "cc", so it can be a program name with args.
4187set dummy cc; ac_word=$2
4188{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4189$as_echo_n "checking for $ac_word... " >&6; }
4190if ${ac_cv_prog_CC+:} false; then :
4191  $as_echo_n "(cached) " >&6
4192else
4193  if test -n "$CC"; then
4194  ac_cv_prog_CC="$CC" # Let the user override the test.
4195else
4196  ac_prog_rejected=no
4197as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4198for as_dir in $PATH
4199do
4200  IFS=$as_save_IFS
4201  test -z "$as_dir" && as_dir=.
4202    for ac_exec_ext in '' $ac_executable_extensions; do
4203  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4204    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4205       ac_prog_rejected=yes
4206       continue
4207     fi
4208    ac_cv_prog_CC="cc"
4209    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4210    break 2
4211  fi
4212done
4213  done
4214IFS=$as_save_IFS
4215
4216if test $ac_prog_rejected = yes; then
4217  # We found a bogon in the path, so make sure we never use it.
4218  set dummy $ac_cv_prog_CC
4219  shift
4220  if test $# != 0; then
4221    # We chose a different compiler from the bogus one.
4222    # However, it has the same basename, so the bogon will be chosen
4223    # first if we set CC to just the basename; use the full file name.
4224    shift
4225    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4226  fi
4227fi
4228fi
4229fi
4230CC=$ac_cv_prog_CC
4231if test -n "$CC"; then
4232  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4233$as_echo "$CC" >&6; }
4234else
4235  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4236$as_echo "no" >&6; }
4237fi
4238
4239
4240fi
4241if test -z "$CC"; then
4242  if test -n "$ac_tool_prefix"; then
4243  for ac_prog in cl.exe
4244  do
4245    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4246set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4247{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4248$as_echo_n "checking for $ac_word... " >&6; }
4249if ${ac_cv_prog_CC+:} false; then :
4250  $as_echo_n "(cached) " >&6
4251else
4252  if test -n "$CC"; then
4253  ac_cv_prog_CC="$CC" # Let the user override the test.
4254else
4255as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4256for as_dir in $PATH
4257do
4258  IFS=$as_save_IFS
4259  test -z "$as_dir" && as_dir=.
4260    for ac_exec_ext in '' $ac_executable_extensions; do
4261  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4262    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4263    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4264    break 2
4265  fi
4266done
4267  done
4268IFS=$as_save_IFS
4269
4270fi
4271fi
4272CC=$ac_cv_prog_CC
4273if test -n "$CC"; then
4274  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4275$as_echo "$CC" >&6; }
4276else
4277  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4278$as_echo "no" >&6; }
4279fi
4280
4281
4282    test -n "$CC" && break
4283  done
4284fi
4285if test -z "$CC"; then
4286  ac_ct_CC=$CC
4287  for ac_prog in cl.exe
4288do
4289  # Extract the first word of "$ac_prog", so it can be a program name with args.
4290set dummy $ac_prog; ac_word=$2
4291{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4292$as_echo_n "checking for $ac_word... " >&6; }
4293if ${ac_cv_prog_ac_ct_CC+:} false; then :
4294  $as_echo_n "(cached) " >&6
4295else
4296  if test -n "$ac_ct_CC"; then
4297  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4298else
4299as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4300for as_dir in $PATH
4301do
4302  IFS=$as_save_IFS
4303  test -z "$as_dir" && as_dir=.
4304    for ac_exec_ext in '' $ac_executable_extensions; do
4305  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4306    ac_cv_prog_ac_ct_CC="$ac_prog"
4307    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4308    break 2
4309  fi
4310done
4311  done
4312IFS=$as_save_IFS
4313
4314fi
4315fi
4316ac_ct_CC=$ac_cv_prog_ac_ct_CC
4317if test -n "$ac_ct_CC"; then
4318  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4319$as_echo "$ac_ct_CC" >&6; }
4320else
4321  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4322$as_echo "no" >&6; }
4323fi
4324
4325
4326  test -n "$ac_ct_CC" && break
4327done
4328
4329  if test "x$ac_ct_CC" = x; then
4330    CC=""
4331  else
4332    case $cross_compiling:$ac_tool_warned in
4333yes:)
4334{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4335$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4336ac_tool_warned=yes ;;
4337esac
4338    CC=$ac_ct_CC
4339  fi
4340fi
4341
4342fi
4343
4344
4345test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4346$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4347as_fn_error $? "no acceptable C compiler found in \$PATH
4348See \`config.log' for more details" "$LINENO" 5; }
4349
4350# Provide some information about the compiler.
4351$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4352set X $ac_compile
4353ac_compiler=$2
4354for ac_option in --version -v -V -qversion; do
4355  { { ac_try="$ac_compiler $ac_option >&5"
4356case "(($ac_try" in
4357  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4358  *) ac_try_echo=$ac_try;;
4359esac
4360eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4361$as_echo "$ac_try_echo"; } >&5
4362  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4363  ac_status=$?
4364  if test -s conftest.err; then
4365    sed '10a\
4366... rest of stderr output deleted ...
4367         10q' conftest.err >conftest.er1
4368    cat conftest.er1 >&5
4369  fi
4370  rm -f conftest.er1 conftest.err
4371  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4372  test $ac_status = 0; }
4373done
4374
4375{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4376$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4377if ${ac_cv_c_compiler_gnu+:} false; then :
4378  $as_echo_n "(cached) " >&6
4379else
4380  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4381/* end confdefs.h.  */
4382
4383int
4384main ()
4385{
4386#ifndef __GNUC__
4387       choke me
4388#endif
4389
4390  ;
4391  return 0;
4392}
4393_ACEOF
4394if ac_fn_c_try_compile "$LINENO"; then :
4395  ac_compiler_gnu=yes
4396else
4397  ac_compiler_gnu=no
4398fi
4399rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4400ac_cv_c_compiler_gnu=$ac_compiler_gnu
4401
4402fi
4403{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4404$as_echo "$ac_cv_c_compiler_gnu" >&6; }
4405if test $ac_compiler_gnu = yes; then
4406  GCC=yes
4407else
4408  GCC=
4409fi
4410ac_test_CFLAGS=${CFLAGS+set}
4411ac_save_CFLAGS=$CFLAGS
4412{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4413$as_echo_n "checking whether $CC accepts -g... " >&6; }
4414if ${ac_cv_prog_cc_g+:} false; then :
4415  $as_echo_n "(cached) " >&6
4416else
4417  ac_save_c_werror_flag=$ac_c_werror_flag
4418   ac_c_werror_flag=yes
4419   ac_cv_prog_cc_g=no
4420   CFLAGS="-g"
4421   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4422/* end confdefs.h.  */
4423
4424int
4425main ()
4426{
4427
4428  ;
4429  return 0;
4430}
4431_ACEOF
4432if ac_fn_c_try_compile "$LINENO"; then :
4433  ac_cv_prog_cc_g=yes
4434else
4435  CFLAGS=""
4436      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4437/* end confdefs.h.  */
4438
4439int
4440main ()
4441{
4442
4443  ;
4444  return 0;
4445}
4446_ACEOF
4447if ac_fn_c_try_compile "$LINENO"; then :
4448
4449else
4450  ac_c_werror_flag=$ac_save_c_werror_flag
4451	 CFLAGS="-g"
4452	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4453/* end confdefs.h.  */
4454
4455int
4456main ()
4457{
4458
4459  ;
4460  return 0;
4461}
4462_ACEOF
4463if ac_fn_c_try_compile "$LINENO"; then :
4464  ac_cv_prog_cc_g=yes
4465fi
4466rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4467fi
4468rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4469fi
4470rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4471   ac_c_werror_flag=$ac_save_c_werror_flag
4472fi
4473{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4474$as_echo "$ac_cv_prog_cc_g" >&6; }
4475if test "$ac_test_CFLAGS" = set; then
4476  CFLAGS=$ac_save_CFLAGS
4477elif test $ac_cv_prog_cc_g = yes; then
4478  if test "$GCC" = yes; then
4479    CFLAGS="-g -O2"
4480  else
4481    CFLAGS="-g"
4482  fi
4483else
4484  if test "$GCC" = yes; then
4485    CFLAGS="-O2"
4486  else
4487    CFLAGS=
4488  fi
4489fi
4490{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4491$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4492if ${ac_cv_prog_cc_c89+:} false; then :
4493  $as_echo_n "(cached) " >&6
4494else
4495  ac_cv_prog_cc_c89=no
4496ac_save_CC=$CC
4497cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4498/* end confdefs.h.  */
4499#include <stdarg.h>
4500#include <stdio.h>
4501struct stat;
4502/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
4503struct buf { int x; };
4504FILE * (*rcsopen) (struct buf *, struct stat *, int);
4505static char *e (p, i)
4506     char **p;
4507     int i;
4508{
4509  return p[i];
4510}
4511static char *f (char * (*g) (char **, int), char **p, ...)
4512{
4513  char *s;
4514  va_list v;
4515  va_start (v,p);
4516  s = g (p, va_arg (v,int));
4517  va_end (v);
4518  return s;
4519}
4520
4521/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
4522   function prototypes and stuff, but not '\xHH' hex character constants.
4523   These don't provoke an error unfortunately, instead are silently treated
4524   as 'x'.  The following induces an error, until -std is added to get
4525   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
4526   array size at least.  It's necessary to write '\x00'==0 to get something
4527   that's true only with -std.  */
4528int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4529
4530/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4531   inside strings and character constants.  */
4532#define FOO(x) 'x'
4533int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4534
4535int test (int i, double x);
4536struct s1 {int (*f) (int a);};
4537struct s2 {int (*f) (double a);};
4538int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4539int argc;
4540char **argv;
4541int
4542main ()
4543{
4544return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
4545  ;
4546  return 0;
4547}
4548_ACEOF
4549for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4550	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4551do
4552  CC="$ac_save_CC $ac_arg"
4553  if ac_fn_c_try_compile "$LINENO"; then :
4554  ac_cv_prog_cc_c89=$ac_arg
4555fi
4556rm -f core conftest.err conftest.$ac_objext
4557  test "x$ac_cv_prog_cc_c89" != "xno" && break
4558done
4559rm -f conftest.$ac_ext
4560CC=$ac_save_CC
4561
4562fi
4563# AC_CACHE_VAL
4564case "x$ac_cv_prog_cc_c89" in
4565  x)
4566    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4567$as_echo "none needed" >&6; } ;;
4568  xno)
4569    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4570$as_echo "unsupported" >&6; } ;;
4571  *)
4572    CC="$CC $ac_cv_prog_cc_c89"
4573    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4574$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4575esac
4576if test "x$ac_cv_prog_cc_c89" != xno; then :
4577
4578fi
4579
4580ac_ext=c
4581ac_cpp='$CPP $CPPFLAGS'
4582ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4583ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4584ac_compiler_gnu=$ac_cv_c_compiler_gnu
4585
4586ac_ext=c
4587ac_cpp='$CPP $CPPFLAGS'
4588ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4589ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4590ac_compiler_gnu=$ac_cv_c_compiler_gnu
4591{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
4592$as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
4593if ${am_cv_prog_cc_c_o+:} false; then :
4594  $as_echo_n "(cached) " >&6
4595else
4596  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4597/* end confdefs.h.  */
4598
4599int
4600main ()
4601{
4602
4603  ;
4604  return 0;
4605}
4606_ACEOF
4607  # Make sure it works both with $CC and with simple cc.
4608  # Following AC_PROG_CC_C_O, we do the test twice because some
4609  # compilers refuse to overwrite an existing .o file with -o,
4610  # though they will create one.
4611  am_cv_prog_cc_c_o=yes
4612  for am_i in 1 2; do
4613    if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
4614   ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
4615   ac_status=$?
4616   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4617   (exit $ac_status); } \
4618         && test -f conftest2.$ac_objext; then
4619      : OK
4620    else
4621      am_cv_prog_cc_c_o=no
4622      break
4623    fi
4624  done
4625  rm -f core conftest*
4626  unset am_i
4627fi
4628{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
4629$as_echo "$am_cv_prog_cc_c_o" >&6; }
4630if test "$am_cv_prog_cc_c_o" != yes; then
4631   # Losing compiler, so override with the script.
4632   # FIXME: It is wrong to rewrite CC.
4633   # But if we don't then we get into trouble of one sort or another.
4634   # A longer-term fix would be to have automake use am__CC in this case,
4635   # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4636   CC="$am_aux_dir/compile $CC"
4637fi
4638ac_ext=c
4639ac_cpp='$CPP $CPPFLAGS'
4640ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4641ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4642ac_compiler_gnu=$ac_cv_c_compiler_gnu
4643
4644
4645depcc="$CC"   am_compiler_list=
4646
4647{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4648$as_echo_n "checking dependency style of $depcc... " >&6; }
4649if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4650  $as_echo_n "(cached) " >&6
4651else
4652  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4653  # We make a subdir and do the tests there.  Otherwise we can end up
4654  # making bogus files that we don't know about and never remove.  For
4655  # instance it was reported that on HP-UX the gcc test will end up
4656  # making a dummy file named 'D' -- because '-MD' means "put the output
4657  # in D".
4658  rm -rf conftest.dir
4659  mkdir conftest.dir
4660  # Copy depcomp to subdir because otherwise we won't find it if we're
4661  # using a relative directory.
4662  cp "$am_depcomp" conftest.dir
4663  cd conftest.dir
4664  # We will build objects and dependencies in a subdirectory because
4665  # it helps to detect inapplicable dependency modes.  For instance
4666  # both Tru64's cc and ICC support -MD to output dependencies as a
4667  # side effect of compilation, but ICC will put the dependencies in
4668  # the current directory while Tru64 will put them in the object
4669  # directory.
4670  mkdir sub
4671
4672  am_cv_CC_dependencies_compiler_type=none
4673  if test "$am_compiler_list" = ""; then
4674     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4675  fi
4676  am__universal=false
4677  case " $depcc " in #(
4678     *\ -arch\ *\ -arch\ *) am__universal=true ;;
4679     esac
4680
4681  for depmode in $am_compiler_list; do
4682    # Setup a source with many dependencies, because some compilers
4683    # like to wrap large dependency lists on column 80 (with \), and
4684    # we should not choose a depcomp mode which is confused by this.
4685    #
4686    # We need to recreate these files for each test, as the compiler may
4687    # overwrite some of them when testing with obscure command lines.
4688    # This happens at least with the AIX C compiler.
4689    : > sub/conftest.c
4690    for i in 1 2 3 4 5 6; do
4691      echo '#include "conftst'$i'.h"' >> sub/conftest.c
4692      # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4693      # Solaris 10 /bin/sh.
4694      echo '/* dummy */' > sub/conftst$i.h
4695    done
4696    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4697
4698    # We check with '-c' and '-o' for the sake of the "dashmstdout"
4699    # mode.  It turns out that the SunPro C++ compiler does not properly
4700    # handle '-M -o', and we need to detect this.  Also, some Intel
4701    # versions had trouble with output in subdirs.
4702    am__obj=sub/conftest.${OBJEXT-o}
4703    am__minus_obj="-o $am__obj"
4704    case $depmode in
4705    gcc)
4706      # This depmode causes a compiler race in universal mode.
4707      test "$am__universal" = false || continue
4708      ;;
4709    nosideeffect)
4710      # After this tag, mechanisms are not by side-effect, so they'll
4711      # only be used when explicitly requested.
4712      if test "x$enable_dependency_tracking" = xyes; then
4713	continue
4714      else
4715	break
4716      fi
4717      ;;
4718    msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4719      # This compiler won't grok '-c -o', but also, the minuso test has
4720      # not run yet.  These depmodes are late enough in the game, and
4721      # so weak that their functioning should not be impacted.
4722      am__obj=conftest.${OBJEXT-o}
4723      am__minus_obj=
4724      ;;
4725    none) break ;;
4726    esac
4727    if depmode=$depmode \
4728       source=sub/conftest.c object=$am__obj \
4729       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4730       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4731         >/dev/null 2>conftest.err &&
4732       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4733       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4734       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4735       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4736      # icc doesn't choke on unknown options, it will just issue warnings
4737      # or remarks (even with -Werror).  So we grep stderr for any message
4738      # that says an option was ignored or not supported.
4739      # When given -MP, icc 7.0 and 7.1 complain thusly:
4740      #   icc: Command line warning: ignoring option '-M'; no argument required
4741      # The diagnosis changed in icc 8.0:
4742      #   icc: Command line remark: option '-MP' not supported
4743      if (grep 'ignoring option' conftest.err ||
4744          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4745        am_cv_CC_dependencies_compiler_type=$depmode
4746        break
4747      fi
4748    fi
4749  done
4750
4751  cd ..
4752  rm -rf conftest.dir
4753else
4754  am_cv_CC_dependencies_compiler_type=none
4755fi
4756
4757fi
4758{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4759$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4760CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4761
4762 if
4763  test "x$enable_dependency_tracking" != xno \
4764  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4765  am__fastdepCC_TRUE=
4766  am__fastdepCC_FALSE='#'
4767else
4768  am__fastdepCC_TRUE='#'
4769  am__fastdepCC_FALSE=
4770fi
4771
4772
4773case `pwd` in
4774  *\ * | *\	*)
4775    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
4776$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
4777esac
4778
4779
4780
4781macro_version='2.4.6'
4782macro_revision='2.4.6'
4783
4784
4785
4786
4787
4788
4789
4790
4791
4792
4793
4794
4795
4796ltmain=$ac_aux_dir/ltmain.sh
4797
4798# Make sure we can run config.sub.
4799$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4800  as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
4801
4802{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4803$as_echo_n "checking build system type... " >&6; }
4804if ${ac_cv_build+:} false; then :
4805  $as_echo_n "(cached) " >&6
4806else
4807  ac_build_alias=$build_alias
4808test "x$ac_build_alias" = x &&
4809  ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4810test "x$ac_build_alias" = x &&
4811  as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
4812ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4813  as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
4814
4815fi
4816{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4817$as_echo "$ac_cv_build" >&6; }
4818case $ac_cv_build in
4819*-*-*) ;;
4820*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
4821esac
4822build=$ac_cv_build
4823ac_save_IFS=$IFS; IFS='-'
4824set x $ac_cv_build
4825shift
4826build_cpu=$1
4827build_vendor=$2
4828shift; shift
4829# Remember, the first character of IFS is used to create $*,
4830# except with old shells:
4831build_os=$*
4832IFS=$ac_save_IFS
4833case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4834
4835
4836{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4837$as_echo_n "checking host system type... " >&6; }
4838if ${ac_cv_host+:} false; then :
4839  $as_echo_n "(cached) " >&6
4840else
4841  if test "x$host_alias" = x; then
4842  ac_cv_host=$ac_cv_build
4843else
4844  ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4845    as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4846fi
4847
4848fi
4849{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4850$as_echo "$ac_cv_host" >&6; }
4851case $ac_cv_host in
4852*-*-*) ;;
4853*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
4854esac
4855host=$ac_cv_host
4856ac_save_IFS=$IFS; IFS='-'
4857set x $ac_cv_host
4858shift
4859host_cpu=$1
4860host_vendor=$2
4861shift; shift
4862# Remember, the first character of IFS is used to create $*,
4863# except with old shells:
4864host_os=$*
4865IFS=$ac_save_IFS
4866case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4867
4868
4869# Backslashify metacharacters that are still active within
4870# double-quoted strings.
4871sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
4872
4873# Same as above, but do not quote variable references.
4874double_quote_subst='s/\(["`\\]\)/\\\1/g'
4875
4876# Sed substitution to delay expansion of an escaped shell variable in a
4877# double_quote_subst'ed string.
4878delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
4879
4880# Sed substitution to delay expansion of an escaped single quote.
4881delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
4882
4883# Sed substitution to avoid accidental globbing in evaled expressions
4884no_glob_subst='s/\*/\\\*/g'
4885
4886ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
4887ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
4888ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
4889
4890{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
4891$as_echo_n "checking how to print strings... " >&6; }
4892# Test print first, because it will be a builtin if present.
4893if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
4894   test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
4895  ECHO='print -r --'
4896elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
4897  ECHO='printf %s\n'
4898else
4899  # Use this function as a fallback that always works.
4900  func_fallback_echo ()
4901  {
4902    eval 'cat <<_LTECHO_EOF
4903$1
4904_LTECHO_EOF'
4905  }
4906  ECHO='func_fallback_echo'
4907fi
4908
4909# func_echo_all arg...
4910# Invoke $ECHO with all args, space-separated.
4911func_echo_all ()
4912{
4913    $ECHO ""
4914}
4915
4916case $ECHO in
4917  printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
4918$as_echo "printf" >&6; } ;;
4919  print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
4920$as_echo "print -r" >&6; } ;;
4921  *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
4922$as_echo "cat" >&6; } ;;
4923esac
4924
4925
4926
4927
4928
4929
4930
4931
4932
4933
4934
4935
4936
4937
4938{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4939$as_echo_n "checking for a sed that does not truncate output... " >&6; }
4940if ${ac_cv_path_SED+:} false; then :
4941  $as_echo_n "(cached) " >&6
4942else
4943            ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4944     for ac_i in 1 2 3 4 5 6 7; do
4945       ac_script="$ac_script$as_nl$ac_script"
4946     done
4947     echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4948     { ac_script=; unset ac_script;}
4949     if test -z "$SED"; then
4950  ac_path_SED_found=false
4951  # Loop through the user's path and test for each of PROGNAME-LIST
4952  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4953for as_dir in $PATH
4954do
4955  IFS=$as_save_IFS
4956  test -z "$as_dir" && as_dir=.
4957    for ac_prog in sed gsed; do
4958    for ac_exec_ext in '' $ac_executable_extensions; do
4959      ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4960      as_fn_executable_p "$ac_path_SED" || continue
4961# Check for GNU ac_path_SED and select it if it is found.
4962  # Check for GNU $ac_path_SED
4963case `"$ac_path_SED" --version 2>&1` in
4964*GNU*)
4965  ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4966*)
4967  ac_count=0
4968  $as_echo_n 0123456789 >"conftest.in"
4969  while :
4970  do
4971    cat "conftest.in" "conftest.in" >"conftest.tmp"
4972    mv "conftest.tmp" "conftest.in"
4973    cp "conftest.in" "conftest.nl"
4974    $as_echo '' >> "conftest.nl"
4975    "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4976    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4977    as_fn_arith $ac_count + 1 && ac_count=$as_val
4978    if test $ac_count -gt ${ac_path_SED_max-0}; then
4979      # Best one so far, save it but keep looking for a better one
4980      ac_cv_path_SED="$ac_path_SED"
4981      ac_path_SED_max=$ac_count
4982    fi
4983    # 10*(2^10) chars as input seems more than enough
4984    test $ac_count -gt 10 && break
4985  done
4986  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4987esac
4988
4989      $ac_path_SED_found && break 3
4990    done
4991  done
4992  done
4993IFS=$as_save_IFS
4994  if test -z "$ac_cv_path_SED"; then
4995    as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4996  fi
4997else
4998  ac_cv_path_SED=$SED
4999fi
5000
5001fi
5002{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
5003$as_echo "$ac_cv_path_SED" >&6; }
5004 SED="$ac_cv_path_SED"
5005  rm -f conftest.sed
5006
5007test -z "$SED" && SED=sed
5008Xsed="$SED -e 1s/^X//"
5009
5010
5011
5012
5013
5014
5015
5016
5017
5018
5019
5020{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5021$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5022if ${ac_cv_path_GREP+:} false; then :
5023  $as_echo_n "(cached) " >&6
5024else
5025  if test -z "$GREP"; then
5026  ac_path_GREP_found=false
5027  # Loop through the user's path and test for each of PROGNAME-LIST
5028  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5029for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5030do
5031  IFS=$as_save_IFS
5032  test -z "$as_dir" && as_dir=.
5033    for ac_prog in grep ggrep; do
5034    for ac_exec_ext in '' $ac_executable_extensions; do
5035      ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5036      as_fn_executable_p "$ac_path_GREP" || continue
5037# Check for GNU ac_path_GREP and select it if it is found.
5038  # Check for GNU $ac_path_GREP
5039case `"$ac_path_GREP" --version 2>&1` in
5040*GNU*)
5041  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5042*)
5043  ac_count=0
5044  $as_echo_n 0123456789 >"conftest.in"
5045  while :
5046  do
5047    cat "conftest.in" "conftest.in" >"conftest.tmp"
5048    mv "conftest.tmp" "conftest.in"
5049    cp "conftest.in" "conftest.nl"
5050    $as_echo 'GREP' >> "conftest.nl"
5051    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5052    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5053    as_fn_arith $ac_count + 1 && ac_count=$as_val
5054    if test $ac_count -gt ${ac_path_GREP_max-0}; then
5055      # Best one so far, save it but keep looking for a better one
5056      ac_cv_path_GREP="$ac_path_GREP"
5057      ac_path_GREP_max=$ac_count
5058    fi
5059    # 10*(2^10) chars as input seems more than enough
5060    test $ac_count -gt 10 && break
5061  done
5062  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5063esac
5064
5065      $ac_path_GREP_found && break 3
5066    done
5067  done
5068  done
5069IFS=$as_save_IFS
5070  if test -z "$ac_cv_path_GREP"; then
5071    as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5072  fi
5073else
5074  ac_cv_path_GREP=$GREP
5075fi
5076
5077fi
5078{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5079$as_echo "$ac_cv_path_GREP" >&6; }
5080 GREP="$ac_cv_path_GREP"
5081
5082
5083{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5084$as_echo_n "checking for egrep... " >&6; }
5085if ${ac_cv_path_EGREP+:} false; then :
5086  $as_echo_n "(cached) " >&6
5087else
5088  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5089   then ac_cv_path_EGREP="$GREP -E"
5090   else
5091     if test -z "$EGREP"; then
5092  ac_path_EGREP_found=false
5093  # Loop through the user's path and test for each of PROGNAME-LIST
5094  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5095for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5096do
5097  IFS=$as_save_IFS
5098  test -z "$as_dir" && as_dir=.
5099    for ac_prog in egrep; do
5100    for ac_exec_ext in '' $ac_executable_extensions; do
5101      ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5102      as_fn_executable_p "$ac_path_EGREP" || continue
5103# Check for GNU ac_path_EGREP and select it if it is found.
5104  # Check for GNU $ac_path_EGREP
5105case `"$ac_path_EGREP" --version 2>&1` in
5106*GNU*)
5107  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5108*)
5109  ac_count=0
5110  $as_echo_n 0123456789 >"conftest.in"
5111  while :
5112  do
5113    cat "conftest.in" "conftest.in" >"conftest.tmp"
5114    mv "conftest.tmp" "conftest.in"
5115    cp "conftest.in" "conftest.nl"
5116    $as_echo 'EGREP' >> "conftest.nl"
5117    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5118    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5119    as_fn_arith $ac_count + 1 && ac_count=$as_val
5120    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5121      # Best one so far, save it but keep looking for a better one
5122      ac_cv_path_EGREP="$ac_path_EGREP"
5123      ac_path_EGREP_max=$ac_count
5124    fi
5125    # 10*(2^10) chars as input seems more than enough
5126    test $ac_count -gt 10 && break
5127  done
5128  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5129esac
5130
5131      $ac_path_EGREP_found && break 3
5132    done
5133  done
5134  done
5135IFS=$as_save_IFS
5136  if test -z "$ac_cv_path_EGREP"; then
5137    as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5138  fi
5139else
5140  ac_cv_path_EGREP=$EGREP
5141fi
5142
5143   fi
5144fi
5145{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5146$as_echo "$ac_cv_path_EGREP" >&6; }
5147 EGREP="$ac_cv_path_EGREP"
5148
5149
5150{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
5151$as_echo_n "checking for fgrep... " >&6; }
5152if ${ac_cv_path_FGREP+:} false; then :
5153  $as_echo_n "(cached) " >&6
5154else
5155  if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5156   then ac_cv_path_FGREP="$GREP -F"
5157   else
5158     if test -z "$FGREP"; then
5159  ac_path_FGREP_found=false
5160  # Loop through the user's path and test for each of PROGNAME-LIST
5161  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5162for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5163do
5164  IFS=$as_save_IFS
5165  test -z "$as_dir" && as_dir=.
5166    for ac_prog in fgrep; do
5167    for ac_exec_ext in '' $ac_executable_extensions; do
5168      ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
5169      as_fn_executable_p "$ac_path_FGREP" || continue
5170# Check for GNU ac_path_FGREP and select it if it is found.
5171  # Check for GNU $ac_path_FGREP
5172case `"$ac_path_FGREP" --version 2>&1` in
5173*GNU*)
5174  ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5175*)
5176  ac_count=0
5177  $as_echo_n 0123456789 >"conftest.in"
5178  while :
5179  do
5180    cat "conftest.in" "conftest.in" >"conftest.tmp"
5181    mv "conftest.tmp" "conftest.in"
5182    cp "conftest.in" "conftest.nl"
5183    $as_echo 'FGREP' >> "conftest.nl"
5184    "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5185    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5186    as_fn_arith $ac_count + 1 && ac_count=$as_val
5187    if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5188      # Best one so far, save it but keep looking for a better one
5189      ac_cv_path_FGREP="$ac_path_FGREP"
5190      ac_path_FGREP_max=$ac_count
5191    fi
5192    # 10*(2^10) chars as input seems more than enough
5193    test $ac_count -gt 10 && break
5194  done
5195  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5196esac
5197
5198      $ac_path_FGREP_found && break 3
5199    done
5200  done
5201  done
5202IFS=$as_save_IFS
5203  if test -z "$ac_cv_path_FGREP"; then
5204    as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5205  fi
5206else
5207  ac_cv_path_FGREP=$FGREP
5208fi
5209
5210   fi
5211fi
5212{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5213$as_echo "$ac_cv_path_FGREP" >&6; }
5214 FGREP="$ac_cv_path_FGREP"
5215
5216
5217test -z "$GREP" && GREP=grep
5218
5219
5220
5221
5222
5223
5224
5225
5226
5227
5228
5229
5230
5231
5232
5233
5234
5235
5236
5237# Check whether --with-gnu-ld was given.
5238if test "${with_gnu_ld+set}" = set; then :
5239  withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
5240else
5241  with_gnu_ld=no
5242fi
5243
5244ac_prog=ld
5245if test yes = "$GCC"; then
5246  # Check if gcc -print-prog-name=ld gives a path.
5247  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5248$as_echo_n "checking for ld used by $CC... " >&6; }
5249  case $host in
5250  *-*-mingw*)
5251    # gcc leaves a trailing carriage return, which upsets mingw
5252    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5253  *)
5254    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5255  esac
5256  case $ac_prog in
5257    # Accept absolute paths.
5258    [\\/]* | ?:[\\/]*)
5259      re_direlt='/[^/][^/]*/\.\./'
5260      # Canonicalize the pathname of ld
5261      ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5262      while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5263	ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5264      done
5265      test -z "$LD" && LD=$ac_prog
5266      ;;
5267  "")
5268    # If it fails, then pretend we aren't using GCC.
5269    ac_prog=ld
5270    ;;
5271  *)
5272    # If it is relative, then search for the first ld in PATH.
5273    with_gnu_ld=unknown
5274    ;;
5275  esac
5276elif test yes = "$with_gnu_ld"; then
5277  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5278$as_echo_n "checking for GNU ld... " >&6; }
5279else
5280  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5281$as_echo_n "checking for non-GNU ld... " >&6; }
5282fi
5283if ${lt_cv_path_LD+:} false; then :
5284  $as_echo_n "(cached) " >&6
5285else
5286  if test -z "$LD"; then
5287  lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
5288  for ac_dir in $PATH; do
5289    IFS=$lt_save_ifs
5290    test -z "$ac_dir" && ac_dir=.
5291    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5292      lt_cv_path_LD=$ac_dir/$ac_prog
5293      # Check to see if the program is GNU ld.  I'd rather use --version,
5294      # but apparently some variants of GNU ld only accept -v.
5295      # Break only if it was the GNU/non-GNU ld that we prefer.
5296      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5297      *GNU* | *'with BFD'*)
5298	test no != "$with_gnu_ld" && break
5299	;;
5300      *)
5301	test yes != "$with_gnu_ld" && break
5302	;;
5303      esac
5304    fi
5305  done
5306  IFS=$lt_save_ifs
5307else
5308  lt_cv_path_LD=$LD # Let the user override the test with a path.
5309fi
5310fi
5311
5312LD=$lt_cv_path_LD
5313if test -n "$LD"; then
5314  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5315$as_echo "$LD" >&6; }
5316else
5317  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5318$as_echo "no" >&6; }
5319fi
5320test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
5321{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5322$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5323if ${lt_cv_prog_gnu_ld+:} false; then :
5324  $as_echo_n "(cached) " >&6
5325else
5326  # I'd rather use --version here, but apparently some GNU lds only accept -v.
5327case `$LD -v 2>&1 </dev/null` in
5328*GNU* | *'with BFD'*)
5329  lt_cv_prog_gnu_ld=yes
5330  ;;
5331*)
5332  lt_cv_prog_gnu_ld=no
5333  ;;
5334esac
5335fi
5336{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5337$as_echo "$lt_cv_prog_gnu_ld" >&6; }
5338with_gnu_ld=$lt_cv_prog_gnu_ld
5339
5340
5341
5342
5343
5344
5345
5346
5347
5348{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5349$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5350if ${lt_cv_path_NM+:} false; then :
5351  $as_echo_n "(cached) " >&6
5352else
5353  if test -n "$NM"; then
5354  # Let the user override the test.
5355  lt_cv_path_NM=$NM
5356else
5357  lt_nm_to_check=${ac_tool_prefix}nm
5358  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5359    lt_nm_to_check="$lt_nm_to_check nm"
5360  fi
5361  for lt_tmp_nm in $lt_nm_to_check; do
5362    lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
5363    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5364      IFS=$lt_save_ifs
5365      test -z "$ac_dir" && ac_dir=.
5366      tmp_nm=$ac_dir/$lt_tmp_nm
5367      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
5368	# Check to see if the nm accepts a BSD-compat flag.
5369	# Adding the 'sed 1q' prevents false positives on HP-UX, which says:
5370	#   nm: unknown option "B" ignored
5371	# Tru64's nm complains that /dev/null is an invalid object file
5372	# MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
5373	case $build_os in
5374	mingw*) lt_bad_file=conftest.nm/nofile ;;
5375	*) lt_bad_file=/dev/null ;;
5376	esac
5377	case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in
5378	*$lt_bad_file* | *'Invalid file or object type'*)
5379	  lt_cv_path_NM="$tmp_nm -B"
5380	  break 2
5381	  ;;
5382	*)
5383	  case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5384	  */dev/null*)
5385	    lt_cv_path_NM="$tmp_nm -p"
5386	    break 2
5387	    ;;
5388	  *)
5389	    lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5390	    continue # so that we can try to find one that supports BSD flags
5391	    ;;
5392	  esac
5393	  ;;
5394	esac
5395      fi
5396    done
5397    IFS=$lt_save_ifs
5398  done
5399  : ${lt_cv_path_NM=no}
5400fi
5401fi
5402{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5403$as_echo "$lt_cv_path_NM" >&6; }
5404if test no != "$lt_cv_path_NM"; then
5405  NM=$lt_cv_path_NM
5406else
5407  # Didn't find any BSD compatible name lister, look for dumpbin.
5408  if test -n "$DUMPBIN"; then :
5409    # Let the user override the test.
5410  else
5411    if test -n "$ac_tool_prefix"; then
5412  for ac_prog in dumpbin "link -dump"
5413  do
5414    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5415set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5416{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5417$as_echo_n "checking for $ac_word... " >&6; }
5418if ${ac_cv_prog_DUMPBIN+:} false; then :
5419  $as_echo_n "(cached) " >&6
5420else
5421  if test -n "$DUMPBIN"; then
5422  ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5423else
5424as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5425for as_dir in $PATH
5426do
5427  IFS=$as_save_IFS
5428  test -z "$as_dir" && as_dir=.
5429    for ac_exec_ext in '' $ac_executable_extensions; do
5430  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5431    ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5432    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5433    break 2
5434  fi
5435done
5436  done
5437IFS=$as_save_IFS
5438
5439fi
5440fi
5441DUMPBIN=$ac_cv_prog_DUMPBIN
5442if test -n "$DUMPBIN"; then
5443  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5444$as_echo "$DUMPBIN" >&6; }
5445else
5446  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5447$as_echo "no" >&6; }
5448fi
5449
5450
5451    test -n "$DUMPBIN" && break
5452  done
5453fi
5454if test -z "$DUMPBIN"; then
5455  ac_ct_DUMPBIN=$DUMPBIN
5456  for ac_prog in dumpbin "link -dump"
5457do
5458  # Extract the first word of "$ac_prog", so it can be a program name with args.
5459set dummy $ac_prog; ac_word=$2
5460{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5461$as_echo_n "checking for $ac_word... " >&6; }
5462if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
5463  $as_echo_n "(cached) " >&6
5464else
5465  if test -n "$ac_ct_DUMPBIN"; then
5466  ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5467else
5468as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5469for as_dir in $PATH
5470do
5471  IFS=$as_save_IFS
5472  test -z "$as_dir" && as_dir=.
5473    for ac_exec_ext in '' $ac_executable_extensions; do
5474  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5475    ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5476    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5477    break 2
5478  fi
5479done
5480  done
5481IFS=$as_save_IFS
5482
5483fi
5484fi
5485ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5486if test -n "$ac_ct_DUMPBIN"; then
5487  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5488$as_echo "$ac_ct_DUMPBIN" >&6; }
5489else
5490  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5491$as_echo "no" >&6; }
5492fi
5493
5494
5495  test -n "$ac_ct_DUMPBIN" && break
5496done
5497
5498  if test "x$ac_ct_DUMPBIN" = x; then
5499    DUMPBIN=":"
5500  else
5501    case $cross_compiling:$ac_tool_warned in
5502yes:)
5503{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5504$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5505ac_tool_warned=yes ;;
5506esac
5507    DUMPBIN=$ac_ct_DUMPBIN
5508  fi
5509fi
5510
5511    case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in
5512    *COFF*)
5513      DUMPBIN="$DUMPBIN -symbols -headers"
5514      ;;
5515    *)
5516      DUMPBIN=:
5517      ;;
5518    esac
5519  fi
5520
5521  if test : != "$DUMPBIN"; then
5522    NM=$DUMPBIN
5523  fi
5524fi
5525test -z "$NM" && NM=nm
5526
5527
5528
5529
5530
5531
5532{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5533$as_echo_n "checking the name lister ($NM) interface... " >&6; }
5534if ${lt_cv_nm_interface+:} false; then :
5535  $as_echo_n "(cached) " >&6
5536else
5537  lt_cv_nm_interface="BSD nm"
5538  echo "int some_variable = 0;" > conftest.$ac_ext
5539  (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
5540  (eval "$ac_compile" 2>conftest.err)
5541  cat conftest.err >&5
5542  (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5543  (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5544  cat conftest.err >&5
5545  (eval echo "\"\$as_me:$LINENO: output\"" >&5)
5546  cat conftest.out >&5
5547  if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5548    lt_cv_nm_interface="MS dumpbin"
5549  fi
5550  rm -f conftest*
5551fi
5552{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5553$as_echo "$lt_cv_nm_interface" >&6; }
5554
5555{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5556$as_echo_n "checking whether ln -s works... " >&6; }
5557LN_S=$as_ln_s
5558if test "$LN_S" = "ln -s"; then
5559  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5560$as_echo "yes" >&6; }
5561else
5562  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5563$as_echo "no, using $LN_S" >&6; }
5564fi
5565
5566# find the maximum length of command line arguments
5567{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5568$as_echo_n "checking the maximum length of command line arguments... " >&6; }
5569if ${lt_cv_sys_max_cmd_len+:} false; then :
5570  $as_echo_n "(cached) " >&6
5571else
5572    i=0
5573  teststring=ABCD
5574
5575  case $build_os in
5576  msdosdjgpp*)
5577    # On DJGPP, this test can blow up pretty badly due to problems in libc
5578    # (any single argument exceeding 2000 bytes causes a buffer overrun
5579    # during glob expansion).  Even if it were fixed, the result of this
5580    # check would be larger than it should be.
5581    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
5582    ;;
5583
5584  gnu*)
5585    # Under GNU Hurd, this test is not required because there is
5586    # no limit to the length of command line arguments.
5587    # Libtool will interpret -1 as no limit whatsoever
5588    lt_cv_sys_max_cmd_len=-1;
5589    ;;
5590
5591  cygwin* | mingw* | cegcc*)
5592    # On Win9x/ME, this test blows up -- it succeeds, but takes
5593    # about 5 minutes as the teststring grows exponentially.
5594    # Worse, since 9x/ME are not pre-emptively multitasking,
5595    # you end up with a "frozen" computer, even though with patience
5596    # the test eventually succeeds (with a max line length of 256k).
5597    # Instead, let's just punt: use the minimum linelength reported by
5598    # all of the supported platforms: 8192 (on NT/2K/XP).
5599    lt_cv_sys_max_cmd_len=8192;
5600    ;;
5601
5602  mint*)
5603    # On MiNT this can take a long time and run out of memory.
5604    lt_cv_sys_max_cmd_len=8192;
5605    ;;
5606
5607  amigaos*)
5608    # On AmigaOS with pdksh, this test takes hours, literally.
5609    # So we just punt and use a minimum line length of 8192.
5610    lt_cv_sys_max_cmd_len=8192;
5611    ;;
5612
5613  bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*)
5614    # This has been around since 386BSD, at least.  Likely further.
5615    if test -x /sbin/sysctl; then
5616      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5617    elif test -x /usr/sbin/sysctl; then
5618      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5619    else
5620      lt_cv_sys_max_cmd_len=65536	# usable default for all BSDs
5621    fi
5622    # And add a safety zone
5623    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5624    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5625    ;;
5626
5627  interix*)
5628    # We know the value 262144 and hardcode it with a safety zone (like BSD)
5629    lt_cv_sys_max_cmd_len=196608
5630    ;;
5631
5632  os2*)
5633    # The test takes a long time on OS/2.
5634    lt_cv_sys_max_cmd_len=8192
5635    ;;
5636
5637  osf*)
5638    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5639    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5640    # nice to cause kernel panics so lets avoid the loop below.
5641    # First set a reasonable default.
5642    lt_cv_sys_max_cmd_len=16384
5643    #
5644    if test -x /sbin/sysconfig; then
5645      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5646        *1*) lt_cv_sys_max_cmd_len=-1 ;;
5647      esac
5648    fi
5649    ;;
5650  sco3.2v5*)
5651    lt_cv_sys_max_cmd_len=102400
5652    ;;
5653  sysv5* | sco5v6* | sysv4.2uw2*)
5654    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5655    if test -n "$kargmax"; then
5656      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[	 ]//'`
5657    else
5658      lt_cv_sys_max_cmd_len=32768
5659    fi
5660    ;;
5661  *)
5662    lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5663    if test -n "$lt_cv_sys_max_cmd_len" && \
5664       test undefined != "$lt_cv_sys_max_cmd_len"; then
5665      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5666      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5667    else
5668      # Make teststring a little bigger before we do anything with it.
5669      # a 1K string should be a reasonable start.
5670      for i in 1 2 3 4 5 6 7 8; do
5671        teststring=$teststring$teststring
5672      done
5673      SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5674      # If test is not a shell built-in, we'll probably end up computing a
5675      # maximum length that is only half of the actual maximum length, but
5676      # we can't tell.
5677      while { test X`env echo "$teststring$teststring" 2>/dev/null` \
5678	         = "X$teststring$teststring"; } >/dev/null 2>&1 &&
5679	      test 17 != "$i" # 1/2 MB should be enough
5680      do
5681        i=`expr $i + 1`
5682        teststring=$teststring$teststring
5683      done
5684      # Only check the string length outside the loop.
5685      lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5686      teststring=
5687      # Add a significant safety factor because C++ compilers can tack on
5688      # massive amounts of additional arguments before passing them to the
5689      # linker.  It appears as though 1/2 is a usable value.
5690      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5691    fi
5692    ;;
5693  esac
5694
5695fi
5696
5697if test -n "$lt_cv_sys_max_cmd_len"; then
5698  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5699$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5700else
5701  { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5702$as_echo "none" >&6; }
5703fi
5704max_cmd_len=$lt_cv_sys_max_cmd_len
5705
5706
5707
5708
5709
5710
5711: ${CP="cp -f"}
5712: ${MV="mv -f"}
5713: ${RM="rm -f"}
5714
5715if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5716  lt_unset=unset
5717else
5718  lt_unset=false
5719fi
5720
5721
5722
5723
5724
5725# test EBCDIC or ASCII
5726case `echo X|tr X '\101'` in
5727 A) # ASCII based system
5728    # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5729  lt_SP2NL='tr \040 \012'
5730  lt_NL2SP='tr \015\012 \040\040'
5731  ;;
5732 *) # EBCDIC based system
5733  lt_SP2NL='tr \100 \n'
5734  lt_NL2SP='tr \r\n \100\100'
5735  ;;
5736esac
5737
5738
5739
5740
5741
5742
5743
5744
5745
5746{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
5747$as_echo_n "checking how to convert $build file names to $host format... " >&6; }
5748if ${lt_cv_to_host_file_cmd+:} false; then :
5749  $as_echo_n "(cached) " >&6
5750else
5751  case $host in
5752  *-*-mingw* )
5753    case $build in
5754      *-*-mingw* ) # actually msys
5755        lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
5756        ;;
5757      *-*-cygwin* )
5758        lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
5759        ;;
5760      * ) # otherwise, assume *nix
5761        lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
5762        ;;
5763    esac
5764    ;;
5765  *-*-cygwin* )
5766    case $build in
5767      *-*-mingw* ) # actually msys
5768        lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
5769        ;;
5770      *-*-cygwin* )
5771        lt_cv_to_host_file_cmd=func_convert_file_noop
5772        ;;
5773      * ) # otherwise, assume *nix
5774        lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
5775        ;;
5776    esac
5777    ;;
5778  * ) # unhandled hosts (and "normal" native builds)
5779    lt_cv_to_host_file_cmd=func_convert_file_noop
5780    ;;
5781esac
5782
5783fi
5784
5785to_host_file_cmd=$lt_cv_to_host_file_cmd
5786{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
5787$as_echo "$lt_cv_to_host_file_cmd" >&6; }
5788
5789
5790
5791
5792
5793{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
5794$as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
5795if ${lt_cv_to_tool_file_cmd+:} false; then :
5796  $as_echo_n "(cached) " >&6
5797else
5798  #assume ordinary cross tools, or native build.
5799lt_cv_to_tool_file_cmd=func_convert_file_noop
5800case $host in
5801  *-*-mingw* )
5802    case $build in
5803      *-*-mingw* ) # actually msys
5804        lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
5805        ;;
5806    esac
5807    ;;
5808esac
5809
5810fi
5811
5812to_tool_file_cmd=$lt_cv_to_tool_file_cmd
5813{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
5814$as_echo "$lt_cv_to_tool_file_cmd" >&6; }
5815
5816
5817
5818
5819
5820{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5821$as_echo_n "checking for $LD option to reload object files... " >&6; }
5822if ${lt_cv_ld_reload_flag+:} false; then :
5823  $as_echo_n "(cached) " >&6
5824else
5825  lt_cv_ld_reload_flag='-r'
5826fi
5827{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5828$as_echo "$lt_cv_ld_reload_flag" >&6; }
5829reload_flag=$lt_cv_ld_reload_flag
5830case $reload_flag in
5831"" | " "*) ;;
5832*) reload_flag=" $reload_flag" ;;
5833esac
5834reload_cmds='$LD$reload_flag -o $output$reload_objs'
5835case $host_os in
5836  cygwin* | mingw* | pw32* | cegcc*)
5837    if test yes != "$GCC"; then
5838      reload_cmds=false
5839    fi
5840    ;;
5841  darwin*)
5842    if test yes = "$GCC"; then
5843      reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
5844    else
5845      reload_cmds='$LD$reload_flag -o $output$reload_objs'
5846    fi
5847    ;;
5848esac
5849
5850
5851
5852
5853
5854
5855
5856
5857
5858if test -n "$ac_tool_prefix"; then
5859  # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5860set dummy ${ac_tool_prefix}objdump; ac_word=$2
5861{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5862$as_echo_n "checking for $ac_word... " >&6; }
5863if ${ac_cv_prog_OBJDUMP+:} false; then :
5864  $as_echo_n "(cached) " >&6
5865else
5866  if test -n "$OBJDUMP"; then
5867  ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5868else
5869as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5870for as_dir in $PATH
5871do
5872  IFS=$as_save_IFS
5873  test -z "$as_dir" && as_dir=.
5874    for ac_exec_ext in '' $ac_executable_extensions; do
5875  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5876    ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5877    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5878    break 2
5879  fi
5880done
5881  done
5882IFS=$as_save_IFS
5883
5884fi
5885fi
5886OBJDUMP=$ac_cv_prog_OBJDUMP
5887if test -n "$OBJDUMP"; then
5888  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5889$as_echo "$OBJDUMP" >&6; }
5890else
5891  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5892$as_echo "no" >&6; }
5893fi
5894
5895
5896fi
5897if test -z "$ac_cv_prog_OBJDUMP"; then
5898  ac_ct_OBJDUMP=$OBJDUMP
5899  # Extract the first word of "objdump", so it can be a program name with args.
5900set dummy objdump; ac_word=$2
5901{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5902$as_echo_n "checking for $ac_word... " >&6; }
5903if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
5904  $as_echo_n "(cached) " >&6
5905else
5906  if test -n "$ac_ct_OBJDUMP"; then
5907  ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5908else
5909as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5910for as_dir in $PATH
5911do
5912  IFS=$as_save_IFS
5913  test -z "$as_dir" && as_dir=.
5914    for ac_exec_ext in '' $ac_executable_extensions; do
5915  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5916    ac_cv_prog_ac_ct_OBJDUMP="objdump"
5917    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5918    break 2
5919  fi
5920done
5921  done
5922IFS=$as_save_IFS
5923
5924fi
5925fi
5926ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5927if test -n "$ac_ct_OBJDUMP"; then
5928  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5929$as_echo "$ac_ct_OBJDUMP" >&6; }
5930else
5931  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5932$as_echo "no" >&6; }
5933fi
5934
5935  if test "x$ac_ct_OBJDUMP" = x; then
5936    OBJDUMP="false"
5937  else
5938    case $cross_compiling:$ac_tool_warned in
5939yes:)
5940{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5941$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5942ac_tool_warned=yes ;;
5943esac
5944    OBJDUMP=$ac_ct_OBJDUMP
5945  fi
5946else
5947  OBJDUMP="$ac_cv_prog_OBJDUMP"
5948fi
5949
5950test -z "$OBJDUMP" && OBJDUMP=objdump
5951
5952
5953
5954
5955
5956
5957
5958
5959
5960{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5961$as_echo_n "checking how to recognize dependent libraries... " >&6; }
5962if ${lt_cv_deplibs_check_method+:} false; then :
5963  $as_echo_n "(cached) " >&6
5964else
5965  lt_cv_file_magic_cmd='$MAGIC_CMD'
5966lt_cv_file_magic_test_file=
5967lt_cv_deplibs_check_method='unknown'
5968# Need to set the preceding variable on all platforms that support
5969# interlibrary dependencies.
5970# 'none' -- dependencies not supported.
5971# 'unknown' -- same as none, but documents that we really don't know.
5972# 'pass_all' -- all dependencies passed with no checks.
5973# 'test_compile' -- check by making test program.
5974# 'file_magic [[regex]]' -- check by looking for files in library path
5975# that responds to the $file_magic_cmd with a given extended regex.
5976# If you have 'file' or equivalent on your system and you're not sure
5977# whether 'pass_all' will *always* work, you probably want this one.
5978
5979case $host_os in
5980aix[4-9]*)
5981  lt_cv_deplibs_check_method=pass_all
5982  ;;
5983
5984beos*)
5985  lt_cv_deplibs_check_method=pass_all
5986  ;;
5987
5988bsdi[45]*)
5989  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5990  lt_cv_file_magic_cmd='/usr/bin/file -L'
5991  lt_cv_file_magic_test_file=/shlib/libc.so
5992  ;;
5993
5994cygwin*)
5995  # func_win32_libid is a shell function defined in ltmain.sh
5996  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5997  lt_cv_file_magic_cmd='func_win32_libid'
5998  ;;
5999
6000mingw* | pw32*)
6001  # Base MSYS/MinGW do not provide the 'file' command needed by
6002  # func_win32_libid shell function, so use a weaker test based on 'objdump',
6003  # unless we find 'file', for example because we are cross-compiling.
6004  if ( file / ) >/dev/null 2>&1; then
6005    lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6006    lt_cv_file_magic_cmd='func_win32_libid'
6007  else
6008    # Keep this pattern in sync with the one in func_win32_libid.
6009    lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
6010    lt_cv_file_magic_cmd='$OBJDUMP -f'
6011  fi
6012  ;;
6013
6014cegcc*)
6015  # use the weaker test based on 'objdump'. See mingw*.
6016  lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6017  lt_cv_file_magic_cmd='$OBJDUMP -f'
6018  ;;
6019
6020darwin* | rhapsody*)
6021  lt_cv_deplibs_check_method=pass_all
6022  ;;
6023
6024freebsd* | dragonfly*)
6025  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6026    case $host_cpu in
6027    i*86 )
6028      # Not sure whether the presence of OpenBSD here was a mistake.
6029      # Let's accept both of them until this is cleared up.
6030      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6031      lt_cv_file_magic_cmd=/usr/bin/file
6032      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6033      ;;
6034    esac
6035  else
6036    lt_cv_deplibs_check_method=pass_all
6037  fi
6038  ;;
6039
6040haiku*)
6041  lt_cv_deplibs_check_method=pass_all
6042  ;;
6043
6044hpux10.20* | hpux11*)
6045  lt_cv_file_magic_cmd=/usr/bin/file
6046  case $host_cpu in
6047  ia64*)
6048    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6049    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6050    ;;
6051  hppa*64*)
6052    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]'
6053    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6054    ;;
6055  *)
6056    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
6057    lt_cv_file_magic_test_file=/usr/lib/libc.sl
6058    ;;
6059  esac
6060  ;;
6061
6062interix[3-9]*)
6063  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6064  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6065  ;;
6066
6067irix5* | irix6* | nonstopux*)
6068  case $LD in
6069  *-32|*"-32 ") libmagic=32-bit;;
6070  *-n32|*"-n32 ") libmagic=N32;;
6071  *-64|*"-64 ") libmagic=64-bit;;
6072  *) libmagic=never-match;;
6073  esac
6074  lt_cv_deplibs_check_method=pass_all
6075  ;;
6076
6077# This must be glibc/ELF.
6078linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
6079  lt_cv_deplibs_check_method=pass_all
6080  ;;
6081
6082netbsd*)
6083  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6084    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6085  else
6086    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6087  fi
6088  ;;
6089
6090newos6*)
6091  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6092  lt_cv_file_magic_cmd=/usr/bin/file
6093  lt_cv_file_magic_test_file=/usr/lib/libnls.so
6094  ;;
6095
6096*nto* | *qnx*)
6097  lt_cv_deplibs_check_method=pass_all
6098  ;;
6099
6100openbsd* | bitrig*)
6101  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
6102    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6103  else
6104    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6105  fi
6106  ;;
6107
6108osf3* | osf4* | osf5*)
6109  lt_cv_deplibs_check_method=pass_all
6110  ;;
6111
6112rdos*)
6113  lt_cv_deplibs_check_method=pass_all
6114  ;;
6115
6116solaris*)
6117  lt_cv_deplibs_check_method=pass_all
6118  ;;
6119
6120sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6121  lt_cv_deplibs_check_method=pass_all
6122  ;;
6123
6124sysv4 | sysv4.3*)
6125  case $host_vendor in
6126  motorola)
6127    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]'
6128    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6129    ;;
6130  ncr)
6131    lt_cv_deplibs_check_method=pass_all
6132    ;;
6133  sequent)
6134    lt_cv_file_magic_cmd='/bin/file'
6135    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6136    ;;
6137  sni)
6138    lt_cv_file_magic_cmd='/bin/file'
6139    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6140    lt_cv_file_magic_test_file=/lib/libc.so
6141    ;;
6142  siemens)
6143    lt_cv_deplibs_check_method=pass_all
6144    ;;
6145  pc)
6146    lt_cv_deplibs_check_method=pass_all
6147    ;;
6148  esac
6149  ;;
6150
6151tpf*)
6152  lt_cv_deplibs_check_method=pass_all
6153  ;;
6154os2*)
6155  lt_cv_deplibs_check_method=pass_all
6156  ;;
6157esac
6158
6159fi
6160{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
6161$as_echo "$lt_cv_deplibs_check_method" >&6; }
6162
6163file_magic_glob=
6164want_nocaseglob=no
6165if test "$build" = "$host"; then
6166  case $host_os in
6167  mingw* | pw32*)
6168    if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
6169      want_nocaseglob=yes
6170    else
6171      file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
6172    fi
6173    ;;
6174  esac
6175fi
6176
6177file_magic_cmd=$lt_cv_file_magic_cmd
6178deplibs_check_method=$lt_cv_deplibs_check_method
6179test -z "$deplibs_check_method" && deplibs_check_method=unknown
6180
6181
6182
6183
6184
6185
6186
6187
6188
6189
6190
6191
6192
6193
6194
6195
6196
6197
6198
6199
6200
6201
6202if test -n "$ac_tool_prefix"; then
6203  # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
6204set dummy ${ac_tool_prefix}dlltool; ac_word=$2
6205{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6206$as_echo_n "checking for $ac_word... " >&6; }
6207if ${ac_cv_prog_DLLTOOL+:} false; then :
6208  $as_echo_n "(cached) " >&6
6209else
6210  if test -n "$DLLTOOL"; then
6211  ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
6212else
6213as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6214for as_dir in $PATH
6215do
6216  IFS=$as_save_IFS
6217  test -z "$as_dir" && as_dir=.
6218    for ac_exec_ext in '' $ac_executable_extensions; do
6219  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6220    ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
6221    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6222    break 2
6223  fi
6224done
6225  done
6226IFS=$as_save_IFS
6227
6228fi
6229fi
6230DLLTOOL=$ac_cv_prog_DLLTOOL
6231if test -n "$DLLTOOL"; then
6232  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
6233$as_echo "$DLLTOOL" >&6; }
6234else
6235  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6236$as_echo "no" >&6; }
6237fi
6238
6239
6240fi
6241if test -z "$ac_cv_prog_DLLTOOL"; then
6242  ac_ct_DLLTOOL=$DLLTOOL
6243  # Extract the first word of "dlltool", so it can be a program name with args.
6244set dummy dlltool; ac_word=$2
6245{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6246$as_echo_n "checking for $ac_word... " >&6; }
6247if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
6248  $as_echo_n "(cached) " >&6
6249else
6250  if test -n "$ac_ct_DLLTOOL"; then
6251  ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
6252else
6253as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6254for as_dir in $PATH
6255do
6256  IFS=$as_save_IFS
6257  test -z "$as_dir" && as_dir=.
6258    for ac_exec_ext in '' $ac_executable_extensions; do
6259  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6260    ac_cv_prog_ac_ct_DLLTOOL="dlltool"
6261    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6262    break 2
6263  fi
6264done
6265  done
6266IFS=$as_save_IFS
6267
6268fi
6269fi
6270ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
6271if test -n "$ac_ct_DLLTOOL"; then
6272  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
6273$as_echo "$ac_ct_DLLTOOL" >&6; }
6274else
6275  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6276$as_echo "no" >&6; }
6277fi
6278
6279  if test "x$ac_ct_DLLTOOL" = x; then
6280    DLLTOOL="false"
6281  else
6282    case $cross_compiling:$ac_tool_warned in
6283yes:)
6284{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6285$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6286ac_tool_warned=yes ;;
6287esac
6288    DLLTOOL=$ac_ct_DLLTOOL
6289  fi
6290else
6291  DLLTOOL="$ac_cv_prog_DLLTOOL"
6292fi
6293
6294test -z "$DLLTOOL" && DLLTOOL=dlltool
6295
6296
6297
6298
6299
6300
6301
6302
6303
6304
6305{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
6306$as_echo_n "checking how to associate runtime and link libraries... " >&6; }
6307if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
6308  $as_echo_n "(cached) " >&6
6309else
6310  lt_cv_sharedlib_from_linklib_cmd='unknown'
6311
6312case $host_os in
6313cygwin* | mingw* | pw32* | cegcc*)
6314  # two different shell functions defined in ltmain.sh;
6315  # decide which one to use based on capabilities of $DLLTOOL
6316  case `$DLLTOOL --help 2>&1` in
6317  *--identify-strict*)
6318    lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
6319    ;;
6320  *)
6321    lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
6322    ;;
6323  esac
6324  ;;
6325*)
6326  # fallback: assume linklib IS sharedlib
6327  lt_cv_sharedlib_from_linklib_cmd=$ECHO
6328  ;;
6329esac
6330
6331fi
6332{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
6333$as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
6334sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
6335test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
6336
6337
6338
6339
6340
6341
6342
6343if test -n "$ac_tool_prefix"; then
6344  for ac_prog in ar
6345  do
6346    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6347set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6348{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6349$as_echo_n "checking for $ac_word... " >&6; }
6350if ${ac_cv_prog_AR+:} false; then :
6351  $as_echo_n "(cached) " >&6
6352else
6353  if test -n "$AR"; then
6354  ac_cv_prog_AR="$AR" # Let the user override the test.
6355else
6356as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6357for as_dir in $PATH
6358do
6359  IFS=$as_save_IFS
6360  test -z "$as_dir" && as_dir=.
6361    for ac_exec_ext in '' $ac_executable_extensions; do
6362  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6363    ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
6364    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6365    break 2
6366  fi
6367done
6368  done
6369IFS=$as_save_IFS
6370
6371fi
6372fi
6373AR=$ac_cv_prog_AR
6374if test -n "$AR"; then
6375  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6376$as_echo "$AR" >&6; }
6377else
6378  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6379$as_echo "no" >&6; }
6380fi
6381
6382
6383    test -n "$AR" && break
6384  done
6385fi
6386if test -z "$AR"; then
6387  ac_ct_AR=$AR
6388  for ac_prog in ar
6389do
6390  # Extract the first word of "$ac_prog", so it can be a program name with args.
6391set dummy $ac_prog; ac_word=$2
6392{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6393$as_echo_n "checking for $ac_word... " >&6; }
6394if ${ac_cv_prog_ac_ct_AR+:} false; then :
6395  $as_echo_n "(cached) " >&6
6396else
6397  if test -n "$ac_ct_AR"; then
6398  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6399else
6400as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6401for as_dir in $PATH
6402do
6403  IFS=$as_save_IFS
6404  test -z "$as_dir" && as_dir=.
6405    for ac_exec_ext in '' $ac_executable_extensions; do
6406  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6407    ac_cv_prog_ac_ct_AR="$ac_prog"
6408    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6409    break 2
6410  fi
6411done
6412  done
6413IFS=$as_save_IFS
6414
6415fi
6416fi
6417ac_ct_AR=$ac_cv_prog_ac_ct_AR
6418if test -n "$ac_ct_AR"; then
6419  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6420$as_echo "$ac_ct_AR" >&6; }
6421else
6422  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6423$as_echo "no" >&6; }
6424fi
6425
6426
6427  test -n "$ac_ct_AR" && break
6428done
6429
6430  if test "x$ac_ct_AR" = x; then
6431    AR="false"
6432  else
6433    case $cross_compiling:$ac_tool_warned in
6434yes:)
6435{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6436$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6437ac_tool_warned=yes ;;
6438esac
6439    AR=$ac_ct_AR
6440  fi
6441fi
6442
6443: ${AR=ar}
6444: ${AR_FLAGS=cru}
6445
6446
6447
6448
6449
6450
6451
6452
6453
6454
6455
6456{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
6457$as_echo_n "checking for archiver @FILE support... " >&6; }
6458if ${lt_cv_ar_at_file+:} false; then :
6459  $as_echo_n "(cached) " >&6
6460else
6461  lt_cv_ar_at_file=no
6462   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6463/* end confdefs.h.  */
6464
6465int
6466main ()
6467{
6468
6469  ;
6470  return 0;
6471}
6472_ACEOF
6473if ac_fn_c_try_compile "$LINENO"; then :
6474  echo conftest.$ac_objext > conftest.lst
6475      lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
6476      { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6477  (eval $lt_ar_try) 2>&5
6478  ac_status=$?
6479  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6480  test $ac_status = 0; }
6481      if test 0 -eq "$ac_status"; then
6482	# Ensure the archiver fails upon bogus file names.
6483	rm -f conftest.$ac_objext libconftest.a
6484	{ { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6485  (eval $lt_ar_try) 2>&5
6486  ac_status=$?
6487  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6488  test $ac_status = 0; }
6489	if test 0 -ne "$ac_status"; then
6490          lt_cv_ar_at_file=@
6491        fi
6492      fi
6493      rm -f conftest.* libconftest.a
6494
6495fi
6496rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6497
6498fi
6499{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
6500$as_echo "$lt_cv_ar_at_file" >&6; }
6501
6502if test no = "$lt_cv_ar_at_file"; then
6503  archiver_list_spec=
6504else
6505  archiver_list_spec=$lt_cv_ar_at_file
6506fi
6507
6508
6509
6510
6511
6512
6513
6514if test -n "$ac_tool_prefix"; then
6515  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6516set dummy ${ac_tool_prefix}strip; ac_word=$2
6517{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6518$as_echo_n "checking for $ac_word... " >&6; }
6519if ${ac_cv_prog_STRIP+:} false; then :
6520  $as_echo_n "(cached) " >&6
6521else
6522  if test -n "$STRIP"; then
6523  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6524else
6525as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6526for as_dir in $PATH
6527do
6528  IFS=$as_save_IFS
6529  test -z "$as_dir" && as_dir=.
6530    for ac_exec_ext in '' $ac_executable_extensions; do
6531  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6532    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6533    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6534    break 2
6535  fi
6536done
6537  done
6538IFS=$as_save_IFS
6539
6540fi
6541fi
6542STRIP=$ac_cv_prog_STRIP
6543if test -n "$STRIP"; then
6544  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6545$as_echo "$STRIP" >&6; }
6546else
6547  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6548$as_echo "no" >&6; }
6549fi
6550
6551
6552fi
6553if test -z "$ac_cv_prog_STRIP"; then
6554  ac_ct_STRIP=$STRIP
6555  # Extract the first word of "strip", so it can be a program name with args.
6556set dummy strip; ac_word=$2
6557{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6558$as_echo_n "checking for $ac_word... " >&6; }
6559if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
6560  $as_echo_n "(cached) " >&6
6561else
6562  if test -n "$ac_ct_STRIP"; then
6563  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6564else
6565as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6566for as_dir in $PATH
6567do
6568  IFS=$as_save_IFS
6569  test -z "$as_dir" && as_dir=.
6570    for ac_exec_ext in '' $ac_executable_extensions; do
6571  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6572    ac_cv_prog_ac_ct_STRIP="strip"
6573    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6574    break 2
6575  fi
6576done
6577  done
6578IFS=$as_save_IFS
6579
6580fi
6581fi
6582ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6583if test -n "$ac_ct_STRIP"; then
6584  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6585$as_echo "$ac_ct_STRIP" >&6; }
6586else
6587  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6588$as_echo "no" >&6; }
6589fi
6590
6591  if test "x$ac_ct_STRIP" = x; then
6592    STRIP=":"
6593  else
6594    case $cross_compiling:$ac_tool_warned in
6595yes:)
6596{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6597$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6598ac_tool_warned=yes ;;
6599esac
6600    STRIP=$ac_ct_STRIP
6601  fi
6602else
6603  STRIP="$ac_cv_prog_STRIP"
6604fi
6605
6606test -z "$STRIP" && STRIP=:
6607
6608
6609
6610
6611
6612
6613if test -n "$ac_tool_prefix"; then
6614  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6615set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6616{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6617$as_echo_n "checking for $ac_word... " >&6; }
6618if ${ac_cv_prog_RANLIB+:} false; then :
6619  $as_echo_n "(cached) " >&6
6620else
6621  if test -n "$RANLIB"; then
6622  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6623else
6624as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6625for as_dir in $PATH
6626do
6627  IFS=$as_save_IFS
6628  test -z "$as_dir" && as_dir=.
6629    for ac_exec_ext in '' $ac_executable_extensions; do
6630  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6631    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6632    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6633    break 2
6634  fi
6635done
6636  done
6637IFS=$as_save_IFS
6638
6639fi
6640fi
6641RANLIB=$ac_cv_prog_RANLIB
6642if test -n "$RANLIB"; then
6643  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6644$as_echo "$RANLIB" >&6; }
6645else
6646  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6647$as_echo "no" >&6; }
6648fi
6649
6650
6651fi
6652if test -z "$ac_cv_prog_RANLIB"; then
6653  ac_ct_RANLIB=$RANLIB
6654  # Extract the first word of "ranlib", so it can be a program name with args.
6655set dummy ranlib; ac_word=$2
6656{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6657$as_echo_n "checking for $ac_word... " >&6; }
6658if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
6659  $as_echo_n "(cached) " >&6
6660else
6661  if test -n "$ac_ct_RANLIB"; then
6662  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6663else
6664as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6665for as_dir in $PATH
6666do
6667  IFS=$as_save_IFS
6668  test -z "$as_dir" && as_dir=.
6669    for ac_exec_ext in '' $ac_executable_extensions; do
6670  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6671    ac_cv_prog_ac_ct_RANLIB="ranlib"
6672    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6673    break 2
6674  fi
6675done
6676  done
6677IFS=$as_save_IFS
6678
6679fi
6680fi
6681ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6682if test -n "$ac_ct_RANLIB"; then
6683  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6684$as_echo "$ac_ct_RANLIB" >&6; }
6685else
6686  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6687$as_echo "no" >&6; }
6688fi
6689
6690  if test "x$ac_ct_RANLIB" = x; then
6691    RANLIB=":"
6692  else
6693    case $cross_compiling:$ac_tool_warned in
6694yes:)
6695{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6696$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6697ac_tool_warned=yes ;;
6698esac
6699    RANLIB=$ac_ct_RANLIB
6700  fi
6701else
6702  RANLIB="$ac_cv_prog_RANLIB"
6703fi
6704
6705test -z "$RANLIB" && RANLIB=:
6706
6707
6708
6709
6710
6711
6712# Determine commands to create old-style static archives.
6713old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6714old_postinstall_cmds='chmod 644 $oldlib'
6715old_postuninstall_cmds=
6716
6717if test -n "$RANLIB"; then
6718  case $host_os in
6719  bitrig* | openbsd*)
6720    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
6721    ;;
6722  *)
6723    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
6724    ;;
6725  esac
6726  old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
6727fi
6728
6729case $host_os in
6730  darwin*)
6731    lock_old_archive_extraction=yes ;;
6732  *)
6733    lock_old_archive_extraction=no ;;
6734esac
6735
6736
6737
6738
6739
6740
6741
6742
6743
6744
6745
6746
6747
6748
6749
6750
6751
6752
6753
6754
6755
6756
6757
6758
6759
6760
6761
6762
6763
6764
6765
6766
6767
6768
6769
6770
6771
6772
6773
6774# If no C compiler was specified, use CC.
6775LTCC=${LTCC-"$CC"}
6776
6777# If no C compiler flags were specified, use CFLAGS.
6778LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6779
6780# Allow CC to be a program name with arguments.
6781compiler=$CC
6782
6783
6784# Check for command to grab the raw symbol name followed by C symbol from nm.
6785{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6786$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6787if ${lt_cv_sys_global_symbol_pipe+:} false; then :
6788  $as_echo_n "(cached) " >&6
6789else
6790
6791# These are sane defaults that work on at least a few old systems.
6792# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
6793
6794# Character class describing NM global symbol codes.
6795symcode='[BCDEGRST]'
6796
6797# Regexp to match symbols that can be accessed directly from C.
6798sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6799
6800# Define system-specific variables.
6801case $host_os in
6802aix*)
6803  symcode='[BCDT]'
6804  ;;
6805cygwin* | mingw* | pw32* | cegcc*)
6806  symcode='[ABCDGISTW]'
6807  ;;
6808hpux*)
6809  if test ia64 = "$host_cpu"; then
6810    symcode='[ABCDEGRST]'
6811  fi
6812  ;;
6813irix* | nonstopux*)
6814  symcode='[BCDEGRST]'
6815  ;;
6816osf*)
6817  symcode='[BCDEGQRST]'
6818  ;;
6819solaris*)
6820  symcode='[BDRT]'
6821  ;;
6822sco3.2v5*)
6823  symcode='[DT]'
6824  ;;
6825sysv4.2uw2*)
6826  symcode='[DT]'
6827  ;;
6828sysv5* | sco5v6* | unixware* | OpenUNIX*)
6829  symcode='[ABDT]'
6830  ;;
6831sysv4)
6832  symcode='[DFNSTU]'
6833  ;;
6834esac
6835
6836# If we're using GNU nm, then use its standard symbol codes.
6837case `$NM -V 2>&1` in
6838*GNU* | *'with BFD'*)
6839  symcode='[ABCDGIRSTW]' ;;
6840esac
6841
6842if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6843  # Gets list of data symbols to import.
6844  lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'"
6845  # Adjust the below global symbol transforms to fixup imported variables.
6846  lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
6847  lt_c_name_hook=" -e 's/^I .* \(.*\)$/  {\"\1\", (void *) 0},/p'"
6848  lt_c_name_lib_hook="\
6849  -e 's/^I .* \(lib.*\)$/  {\"\1\", (void *) 0},/p'\
6850  -e 's/^I .* \(.*\)$/  {\"lib\1\", (void *) 0},/p'"
6851else
6852  # Disable hooks by default.
6853  lt_cv_sys_global_symbol_to_import=
6854  lt_cdecl_hook=
6855  lt_c_name_hook=
6856  lt_c_name_lib_hook=
6857fi
6858
6859# Transform an extracted symbol line into a proper C declaration.
6860# Some systems (esp. on ia64) link data and code symbols differently,
6861# so use this general approach.
6862lt_cv_sys_global_symbol_to_cdecl="sed -n"\
6863$lt_cdecl_hook\
6864" -e 's/^T .* \(.*\)$/extern int \1();/p'"\
6865" -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
6866
6867# Transform an extracted symbol line into symbol name and symbol address
6868lt_cv_sys_global_symbol_to_c_name_address="sed -n"\
6869$lt_c_name_hook\
6870" -e 's/^: \(.*\) .*$/  {\"\1\", (void *) 0},/p'"\
6871" -e 's/^$symcode$symcode* .* \(.*\)$/  {\"\1\", (void *) \&\1},/p'"
6872
6873# Transform an extracted symbol line into symbol name with lib prefix and
6874# symbol address.
6875lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\
6876$lt_c_name_lib_hook\
6877" -e 's/^: \(.*\) .*$/  {\"\1\", (void *) 0},/p'"\
6878" -e 's/^$symcode$symcode* .* \(lib.*\)$/  {\"\1\", (void *) \&\1},/p'"\
6879" -e 's/^$symcode$symcode* .* \(.*\)$/  {\"lib\1\", (void *) \&\1},/p'"
6880
6881# Handle CRLF in mingw tool chain
6882opt_cr=
6883case $build_os in
6884mingw*)
6885  opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6886  ;;
6887esac
6888
6889# Try without a prefix underscore, then with it.
6890for ac_symprfx in "" "_"; do
6891
6892  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6893  symxfrm="\\1 $ac_symprfx\\2 \\2"
6894
6895  # Write the raw and C identifiers.
6896  if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6897    # Fake it for dumpbin and say T for any non-static function,
6898    # D for any global variable and I for any imported variable.
6899    # Also find C++ and __fastcall symbols from MSVC++,
6900    # which start with @ or ?.
6901    lt_cv_sys_global_symbol_pipe="$AWK '"\
6902"     {last_section=section; section=\$ 3};"\
6903"     /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
6904"     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6905"     /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
6906"     /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
6907"     /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
6908"     \$ 0!~/External *\|/{next};"\
6909"     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6910"     {if(hide[section]) next};"\
6911"     {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
6912"     {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
6913"     s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
6914"     s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
6915"     ' prfx=^$ac_symprfx"
6916  else
6917    lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[	 ]\($symcode$symcode*\)[	 ][	 ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6918  fi
6919  lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
6920
6921  # Check to see that the pipe works correctly.
6922  pipe_works=no
6923
6924  rm -f conftest*
6925  cat > conftest.$ac_ext <<_LT_EOF
6926#ifdef __cplusplus
6927extern "C" {
6928#endif
6929char nm_test_var;
6930void nm_test_func(void);
6931void nm_test_func(void){}
6932#ifdef __cplusplus
6933}
6934#endif
6935int main(){nm_test_var='a';nm_test_func();return(0);}
6936_LT_EOF
6937
6938  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6939  (eval $ac_compile) 2>&5
6940  ac_status=$?
6941  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6942  test $ac_status = 0; }; then
6943    # Now try to grab the symbols.
6944    nlist=conftest.nm
6945    if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
6946  (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
6947  ac_status=$?
6948  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6949  test $ac_status = 0; } && test -s "$nlist"; then
6950      # Try sorting and uniquifying the output.
6951      if sort "$nlist" | uniq > "$nlist"T; then
6952	mv -f "$nlist"T "$nlist"
6953      else
6954	rm -f "$nlist"T
6955      fi
6956
6957      # Make sure that we snagged all the symbols we need.
6958      if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6959	if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6960	  cat <<_LT_EOF > conftest.$ac_ext
6961/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests.  */
6962#if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
6963/* DATA imports from DLLs on WIN32 can't be const, because runtime
6964   relocations are performed -- see ld's documentation on pseudo-relocs.  */
6965# define LT_DLSYM_CONST
6966#elif defined __osf__
6967/* This system does not cope well with relocations in const data.  */
6968# define LT_DLSYM_CONST
6969#else
6970# define LT_DLSYM_CONST const
6971#endif
6972
6973#ifdef __cplusplus
6974extern "C" {
6975#endif
6976
6977_LT_EOF
6978	  # Now generate the symbol file.
6979	  eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6980
6981	  cat <<_LT_EOF >> conftest.$ac_ext
6982
6983/* The mapping between symbol names and symbols.  */
6984LT_DLSYM_CONST struct {
6985  const char *name;
6986  void       *address;
6987}
6988lt__PROGRAM__LTX_preloaded_symbols[] =
6989{
6990  { "@PROGRAM@", (void *) 0 },
6991_LT_EOF
6992	  $SED "s/^$symcode$symcode* .* \(.*\)$/  {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6993	  cat <<\_LT_EOF >> conftest.$ac_ext
6994  {0, (void *) 0}
6995};
6996
6997/* This works around a problem in FreeBSD linker */
6998#ifdef FREEBSD_WORKAROUND
6999static const void *lt_preloaded_setup() {
7000  return lt__PROGRAM__LTX_preloaded_symbols;
7001}
7002#endif
7003
7004#ifdef __cplusplus
7005}
7006#endif
7007_LT_EOF
7008	  # Now try linking the two files.
7009	  mv conftest.$ac_objext conftstm.$ac_objext
7010	  lt_globsym_save_LIBS=$LIBS
7011	  lt_globsym_save_CFLAGS=$CFLAGS
7012	  LIBS=conftstm.$ac_objext
7013	  CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7014	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
7015  (eval $ac_link) 2>&5
7016  ac_status=$?
7017  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7018  test $ac_status = 0; } && test -s conftest$ac_exeext; then
7019	    pipe_works=yes
7020	  fi
7021	  LIBS=$lt_globsym_save_LIBS
7022	  CFLAGS=$lt_globsym_save_CFLAGS
7023	else
7024	  echo "cannot find nm_test_func in $nlist" >&5
7025	fi
7026      else
7027	echo "cannot find nm_test_var in $nlist" >&5
7028      fi
7029    else
7030      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7031    fi
7032  else
7033    echo "$progname: failed program was:" >&5
7034    cat conftest.$ac_ext >&5
7035  fi
7036  rm -rf conftest* conftst*
7037
7038  # Do not use the global_symbol_pipe unless it works.
7039  if test yes = "$pipe_works"; then
7040    break
7041  else
7042    lt_cv_sys_global_symbol_pipe=
7043  fi
7044done
7045
7046fi
7047
7048if test -z "$lt_cv_sys_global_symbol_pipe"; then
7049  lt_cv_sys_global_symbol_to_cdecl=
7050fi
7051if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7052  { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
7053$as_echo "failed" >&6; }
7054else
7055  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
7056$as_echo "ok" >&6; }
7057fi
7058
7059# Response file support.
7060if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7061  nm_file_list_spec='@'
7062elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
7063  nm_file_list_spec='@'
7064fi
7065
7066
7067
7068
7069
7070
7071
7072
7073
7074
7075
7076
7077
7078
7079
7080
7081
7082
7083
7084
7085
7086
7087
7088
7089
7090
7091
7092
7093
7094
7095
7096
7097
7098
7099
7100
7101
7102{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
7103$as_echo_n "checking for sysroot... " >&6; }
7104
7105# Check whether --with-sysroot was given.
7106if test "${with_sysroot+set}" = set; then :
7107  withval=$with_sysroot;
7108else
7109  with_sysroot=no
7110fi
7111
7112
7113lt_sysroot=
7114case $with_sysroot in #(
7115 yes)
7116   if test yes = "$GCC"; then
7117     lt_sysroot=`$CC --print-sysroot 2>/dev/null`
7118   fi
7119   ;; #(
7120 /*)
7121   lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
7122   ;; #(
7123 no|'')
7124   ;; #(
7125 *)
7126   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
7127$as_echo "$with_sysroot" >&6; }
7128   as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
7129   ;;
7130esac
7131
7132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
7133$as_echo "${lt_sysroot:-no}" >&6; }
7134
7135
7136
7137
7138
7139{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
7140$as_echo_n "checking for a working dd... " >&6; }
7141if ${ac_cv_path_lt_DD+:} false; then :
7142  $as_echo_n "(cached) " >&6
7143else
7144  printf 0123456789abcdef0123456789abcdef >conftest.i
7145cat conftest.i conftest.i >conftest2.i
7146: ${lt_DD:=$DD}
7147if test -z "$lt_DD"; then
7148  ac_path_lt_DD_found=false
7149  # Loop through the user's path and test for each of PROGNAME-LIST
7150  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7151for as_dir in $PATH
7152do
7153  IFS=$as_save_IFS
7154  test -z "$as_dir" && as_dir=.
7155    for ac_prog in dd; do
7156    for ac_exec_ext in '' $ac_executable_extensions; do
7157      ac_path_lt_DD="$as_dir/$ac_prog$ac_exec_ext"
7158      as_fn_executable_p "$ac_path_lt_DD" || continue
7159if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
7160  cmp -s conftest.i conftest.out \
7161  && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
7162fi
7163      $ac_path_lt_DD_found && break 3
7164    done
7165  done
7166  done
7167IFS=$as_save_IFS
7168  if test -z "$ac_cv_path_lt_DD"; then
7169    :
7170  fi
7171else
7172  ac_cv_path_lt_DD=$lt_DD
7173fi
7174
7175rm -f conftest.i conftest2.i conftest.out
7176fi
7177{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
7178$as_echo "$ac_cv_path_lt_DD" >&6; }
7179
7180
7181{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
7182$as_echo_n "checking how to truncate binary pipes... " >&6; }
7183if ${lt_cv_truncate_bin+:} false; then :
7184  $as_echo_n "(cached) " >&6
7185else
7186  printf 0123456789abcdef0123456789abcdef >conftest.i
7187cat conftest.i conftest.i >conftest2.i
7188lt_cv_truncate_bin=
7189if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
7190  cmp -s conftest.i conftest.out \
7191  && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
7192fi
7193rm -f conftest.i conftest2.i conftest.out
7194test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q"
7195fi
7196{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
7197$as_echo "$lt_cv_truncate_bin" >&6; }
7198
7199
7200
7201
7202
7203
7204
7205# Calculate cc_basename.  Skip known compiler wrappers and cross-prefix.
7206func_cc_basename ()
7207{
7208    for cc_temp in $*""; do
7209      case $cc_temp in
7210        compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7211        distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7212        \-*) ;;
7213        *) break;;
7214      esac
7215    done
7216    func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
7217}
7218
7219# Check whether --enable-libtool-lock was given.
7220if test "${enable_libtool_lock+set}" = set; then :
7221  enableval=$enable_libtool_lock;
7222fi
7223
7224test no = "$enable_libtool_lock" || enable_libtool_lock=yes
7225
7226# Some flags need to be propagated to the compiler or linker for good
7227# libtool support.
7228case $host in
7229ia64-*-hpux*)
7230  # Find out what ABI is being produced by ac_compile, and set mode
7231  # options accordingly.
7232  echo 'int i;' > conftest.$ac_ext
7233  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7234  (eval $ac_compile) 2>&5
7235  ac_status=$?
7236  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7237  test $ac_status = 0; }; then
7238    case `/usr/bin/file conftest.$ac_objext` in
7239      *ELF-32*)
7240	HPUX_IA64_MODE=32
7241	;;
7242      *ELF-64*)
7243	HPUX_IA64_MODE=64
7244	;;
7245    esac
7246  fi
7247  rm -rf conftest*
7248  ;;
7249*-*-irix6*)
7250  # Find out what ABI is being produced by ac_compile, and set linker
7251  # options accordingly.
7252  echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7253  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7254  (eval $ac_compile) 2>&5
7255  ac_status=$?
7256  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7257  test $ac_status = 0; }; then
7258    if test yes = "$lt_cv_prog_gnu_ld"; then
7259      case `/usr/bin/file conftest.$ac_objext` in
7260	*32-bit*)
7261	  LD="${LD-ld} -melf32bsmip"
7262	  ;;
7263	*N32*)
7264	  LD="${LD-ld} -melf32bmipn32"
7265	  ;;
7266	*64-bit*)
7267	  LD="${LD-ld} -melf64bmip"
7268	;;
7269      esac
7270    else
7271      case `/usr/bin/file conftest.$ac_objext` in
7272	*32-bit*)
7273	  LD="${LD-ld} -32"
7274	  ;;
7275	*N32*)
7276	  LD="${LD-ld} -n32"
7277	  ;;
7278	*64-bit*)
7279	  LD="${LD-ld} -64"
7280	  ;;
7281      esac
7282    fi
7283  fi
7284  rm -rf conftest*
7285  ;;
7286
7287mips64*-*linux*)
7288  # Find out what ABI is being produced by ac_compile, and set linker
7289  # options accordingly.
7290  echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7291  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7292  (eval $ac_compile) 2>&5
7293  ac_status=$?
7294  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7295  test $ac_status = 0; }; then
7296    emul=elf
7297    case `/usr/bin/file conftest.$ac_objext` in
7298      *32-bit*)
7299	emul="${emul}32"
7300	;;
7301      *64-bit*)
7302	emul="${emul}64"
7303	;;
7304    esac
7305    case `/usr/bin/file conftest.$ac_objext` in
7306      *MSB*)
7307	emul="${emul}btsmip"
7308	;;
7309      *LSB*)
7310	emul="${emul}ltsmip"
7311	;;
7312    esac
7313    case `/usr/bin/file conftest.$ac_objext` in
7314      *N32*)
7315	emul="${emul}n32"
7316	;;
7317    esac
7318    LD="${LD-ld} -m $emul"
7319  fi
7320  rm -rf conftest*
7321  ;;
7322
7323x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
7324s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
7325  # Find out what ABI is being produced by ac_compile, and set linker
7326  # options accordingly.  Note that the listed cases only cover the
7327  # situations where additional linker options are needed (such as when
7328  # doing 32-bit compilation for a host where ld defaults to 64-bit, or
7329  # vice versa); the common cases where no linker options are needed do
7330  # not appear in the list.
7331  echo 'int i;' > conftest.$ac_ext
7332  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7333  (eval $ac_compile) 2>&5
7334  ac_status=$?
7335  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7336  test $ac_status = 0; }; then
7337    case `/usr/bin/file conftest.o` in
7338      *32-bit*)
7339	case $host in
7340	  x86_64-*kfreebsd*-gnu)
7341	    LD="${LD-ld} -m elf_i386_fbsd"
7342	    ;;
7343	  x86_64-*linux*)
7344	    case `/usr/bin/file conftest.o` in
7345	      *x86-64*)
7346		LD="${LD-ld} -m elf32_x86_64"
7347		;;
7348	      *)
7349		LD="${LD-ld} -m elf_i386"
7350		;;
7351	    esac
7352	    ;;
7353	  powerpc64le-*linux*)
7354	    LD="${LD-ld} -m elf32lppclinux"
7355	    ;;
7356	  powerpc64-*linux*)
7357	    LD="${LD-ld} -m elf32ppclinux"
7358	    ;;
7359	  s390x-*linux*)
7360	    LD="${LD-ld} -m elf_s390"
7361	    ;;
7362	  sparc64-*linux*)
7363	    LD="${LD-ld} -m elf32_sparc"
7364	    ;;
7365	esac
7366	;;
7367      *64-bit*)
7368	case $host in
7369	  x86_64-*kfreebsd*-gnu)
7370	    LD="${LD-ld} -m elf_x86_64_fbsd"
7371	    ;;
7372	  x86_64-*linux*)
7373	    LD="${LD-ld} -m elf_x86_64"
7374	    ;;
7375	  powerpcle-*linux*)
7376	    LD="${LD-ld} -m elf64lppc"
7377	    ;;
7378	  powerpc-*linux*)
7379	    LD="${LD-ld} -m elf64ppc"
7380	    ;;
7381	  s390*-*linux*|s390*-*tpf*)
7382	    LD="${LD-ld} -m elf64_s390"
7383	    ;;
7384	  sparc*-*linux*)
7385	    LD="${LD-ld} -m elf64_sparc"
7386	    ;;
7387	esac
7388	;;
7389    esac
7390  fi
7391  rm -rf conftest*
7392  ;;
7393
7394*-*-sco3.2v5*)
7395  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7396  SAVE_CFLAGS=$CFLAGS
7397  CFLAGS="$CFLAGS -belf"
7398  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
7399$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
7400if ${lt_cv_cc_needs_belf+:} false; then :
7401  $as_echo_n "(cached) " >&6
7402else
7403  ac_ext=c
7404ac_cpp='$CPP $CPPFLAGS'
7405ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7406ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7407ac_compiler_gnu=$ac_cv_c_compiler_gnu
7408
7409     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7410/* end confdefs.h.  */
7411
7412int
7413main ()
7414{
7415
7416  ;
7417  return 0;
7418}
7419_ACEOF
7420if ac_fn_c_try_link "$LINENO"; then :
7421  lt_cv_cc_needs_belf=yes
7422else
7423  lt_cv_cc_needs_belf=no
7424fi
7425rm -f core conftest.err conftest.$ac_objext \
7426    conftest$ac_exeext conftest.$ac_ext
7427     ac_ext=c
7428ac_cpp='$CPP $CPPFLAGS'
7429ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7430ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7431ac_compiler_gnu=$ac_cv_c_compiler_gnu
7432
7433fi
7434{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
7435$as_echo "$lt_cv_cc_needs_belf" >&6; }
7436  if test yes != "$lt_cv_cc_needs_belf"; then
7437    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7438    CFLAGS=$SAVE_CFLAGS
7439  fi
7440  ;;
7441*-*solaris*)
7442  # Find out what ABI is being produced by ac_compile, and set linker
7443  # options accordingly.
7444  echo 'int i;' > conftest.$ac_ext
7445  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7446  (eval $ac_compile) 2>&5
7447  ac_status=$?
7448  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7449  test $ac_status = 0; }; then
7450    case `/usr/bin/file conftest.o` in
7451    *64-bit*)
7452      case $lt_cv_prog_gnu_ld in
7453      yes*)
7454        case $host in
7455        i?86-*-solaris*|x86_64-*-solaris*)
7456          LD="${LD-ld} -m elf_x86_64"
7457          ;;
7458        sparc*-*-solaris*)
7459          LD="${LD-ld} -m elf64_sparc"
7460          ;;
7461        esac
7462        # GNU ld 2.21 introduced _sol2 emulations.  Use them if available.
7463        if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
7464          LD=${LD-ld}_sol2
7465        fi
7466        ;;
7467      *)
7468	if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7469	  LD="${LD-ld} -64"
7470	fi
7471	;;
7472      esac
7473      ;;
7474    esac
7475  fi
7476  rm -rf conftest*
7477  ;;
7478esac
7479
7480need_locks=$enable_libtool_lock
7481
7482if test -n "$ac_tool_prefix"; then
7483  # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
7484set dummy ${ac_tool_prefix}mt; ac_word=$2
7485{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7486$as_echo_n "checking for $ac_word... " >&6; }
7487if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
7488  $as_echo_n "(cached) " >&6
7489else
7490  if test -n "$MANIFEST_TOOL"; then
7491  ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
7492else
7493as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7494for as_dir in $PATH
7495do
7496  IFS=$as_save_IFS
7497  test -z "$as_dir" && as_dir=.
7498    for ac_exec_ext in '' $ac_executable_extensions; do
7499  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7500    ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
7501    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7502    break 2
7503  fi
7504done
7505  done
7506IFS=$as_save_IFS
7507
7508fi
7509fi
7510MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
7511if test -n "$MANIFEST_TOOL"; then
7512  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
7513$as_echo "$MANIFEST_TOOL" >&6; }
7514else
7515  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7516$as_echo "no" >&6; }
7517fi
7518
7519
7520fi
7521if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
7522  ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
7523  # Extract the first word of "mt", so it can be a program name with args.
7524set dummy mt; ac_word=$2
7525{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7526$as_echo_n "checking for $ac_word... " >&6; }
7527if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
7528  $as_echo_n "(cached) " >&6
7529else
7530  if test -n "$ac_ct_MANIFEST_TOOL"; then
7531  ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
7532else
7533as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7534for as_dir in $PATH
7535do
7536  IFS=$as_save_IFS
7537  test -z "$as_dir" && as_dir=.
7538    for ac_exec_ext in '' $ac_executable_extensions; do
7539  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7540    ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
7541    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7542    break 2
7543  fi
7544done
7545  done
7546IFS=$as_save_IFS
7547
7548fi
7549fi
7550ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
7551if test -n "$ac_ct_MANIFEST_TOOL"; then
7552  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
7553$as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
7554else
7555  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7556$as_echo "no" >&6; }
7557fi
7558
7559  if test "x$ac_ct_MANIFEST_TOOL" = x; then
7560    MANIFEST_TOOL=":"
7561  else
7562    case $cross_compiling:$ac_tool_warned in
7563yes:)
7564{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7565$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7566ac_tool_warned=yes ;;
7567esac
7568    MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
7569  fi
7570else
7571  MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
7572fi
7573
7574test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
7575{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
7576$as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
7577if ${lt_cv_path_mainfest_tool+:} false; then :
7578  $as_echo_n "(cached) " >&6
7579else
7580  lt_cv_path_mainfest_tool=no
7581  echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
7582  $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
7583  cat conftest.err >&5
7584  if $GREP 'Manifest Tool' conftest.out > /dev/null; then
7585    lt_cv_path_mainfest_tool=yes
7586  fi
7587  rm -f conftest*
7588fi
7589{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
7590$as_echo "$lt_cv_path_mainfest_tool" >&6; }
7591if test yes != "$lt_cv_path_mainfest_tool"; then
7592  MANIFEST_TOOL=:
7593fi
7594
7595
7596
7597
7598
7599
7600  case $host_os in
7601    rhapsody* | darwin*)
7602    if test -n "$ac_tool_prefix"; then
7603  # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7604set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7605{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7606$as_echo_n "checking for $ac_word... " >&6; }
7607if ${ac_cv_prog_DSYMUTIL+:} false; then :
7608  $as_echo_n "(cached) " >&6
7609else
7610  if test -n "$DSYMUTIL"; then
7611  ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7612else
7613as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7614for as_dir in $PATH
7615do
7616  IFS=$as_save_IFS
7617  test -z "$as_dir" && as_dir=.
7618    for ac_exec_ext in '' $ac_executable_extensions; do
7619  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7620    ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7621    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7622    break 2
7623  fi
7624done
7625  done
7626IFS=$as_save_IFS
7627
7628fi
7629fi
7630DSYMUTIL=$ac_cv_prog_DSYMUTIL
7631if test -n "$DSYMUTIL"; then
7632  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7633$as_echo "$DSYMUTIL" >&6; }
7634else
7635  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7636$as_echo "no" >&6; }
7637fi
7638
7639
7640fi
7641if test -z "$ac_cv_prog_DSYMUTIL"; then
7642  ac_ct_DSYMUTIL=$DSYMUTIL
7643  # Extract the first word of "dsymutil", so it can be a program name with args.
7644set dummy dsymutil; ac_word=$2
7645{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7646$as_echo_n "checking for $ac_word... " >&6; }
7647if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
7648  $as_echo_n "(cached) " >&6
7649else
7650  if test -n "$ac_ct_DSYMUTIL"; then
7651  ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7652else
7653as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7654for as_dir in $PATH
7655do
7656  IFS=$as_save_IFS
7657  test -z "$as_dir" && as_dir=.
7658    for ac_exec_ext in '' $ac_executable_extensions; do
7659  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7660    ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7661    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7662    break 2
7663  fi
7664done
7665  done
7666IFS=$as_save_IFS
7667
7668fi
7669fi
7670ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7671if test -n "$ac_ct_DSYMUTIL"; then
7672  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7673$as_echo "$ac_ct_DSYMUTIL" >&6; }
7674else
7675  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7676$as_echo "no" >&6; }
7677fi
7678
7679  if test "x$ac_ct_DSYMUTIL" = x; then
7680    DSYMUTIL=":"
7681  else
7682    case $cross_compiling:$ac_tool_warned in
7683yes:)
7684{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7685$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7686ac_tool_warned=yes ;;
7687esac
7688    DSYMUTIL=$ac_ct_DSYMUTIL
7689  fi
7690else
7691  DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7692fi
7693
7694    if test -n "$ac_tool_prefix"; then
7695  # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7696set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7697{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7698$as_echo_n "checking for $ac_word... " >&6; }
7699if ${ac_cv_prog_NMEDIT+:} false; then :
7700  $as_echo_n "(cached) " >&6
7701else
7702  if test -n "$NMEDIT"; then
7703  ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7704else
7705as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7706for as_dir in $PATH
7707do
7708  IFS=$as_save_IFS
7709  test -z "$as_dir" && as_dir=.
7710    for ac_exec_ext in '' $ac_executable_extensions; do
7711  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7712    ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7713    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7714    break 2
7715  fi
7716done
7717  done
7718IFS=$as_save_IFS
7719
7720fi
7721fi
7722NMEDIT=$ac_cv_prog_NMEDIT
7723if test -n "$NMEDIT"; then
7724  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7725$as_echo "$NMEDIT" >&6; }
7726else
7727  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7728$as_echo "no" >&6; }
7729fi
7730
7731
7732fi
7733if test -z "$ac_cv_prog_NMEDIT"; then
7734  ac_ct_NMEDIT=$NMEDIT
7735  # Extract the first word of "nmedit", so it can be a program name with args.
7736set dummy nmedit; ac_word=$2
7737{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7738$as_echo_n "checking for $ac_word... " >&6; }
7739if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
7740  $as_echo_n "(cached) " >&6
7741else
7742  if test -n "$ac_ct_NMEDIT"; then
7743  ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7744else
7745as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7746for as_dir in $PATH
7747do
7748  IFS=$as_save_IFS
7749  test -z "$as_dir" && as_dir=.
7750    for ac_exec_ext in '' $ac_executable_extensions; do
7751  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7752    ac_cv_prog_ac_ct_NMEDIT="nmedit"
7753    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7754    break 2
7755  fi
7756done
7757  done
7758IFS=$as_save_IFS
7759
7760fi
7761fi
7762ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7763if test -n "$ac_ct_NMEDIT"; then
7764  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7765$as_echo "$ac_ct_NMEDIT" >&6; }
7766else
7767  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7768$as_echo "no" >&6; }
7769fi
7770
7771  if test "x$ac_ct_NMEDIT" = x; then
7772    NMEDIT=":"
7773  else
7774    case $cross_compiling:$ac_tool_warned in
7775yes:)
7776{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7777$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7778ac_tool_warned=yes ;;
7779esac
7780    NMEDIT=$ac_ct_NMEDIT
7781  fi
7782else
7783  NMEDIT="$ac_cv_prog_NMEDIT"
7784fi
7785
7786    if test -n "$ac_tool_prefix"; then
7787  # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7788set dummy ${ac_tool_prefix}lipo; ac_word=$2
7789{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7790$as_echo_n "checking for $ac_word... " >&6; }
7791if ${ac_cv_prog_LIPO+:} false; then :
7792  $as_echo_n "(cached) " >&6
7793else
7794  if test -n "$LIPO"; then
7795  ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7796else
7797as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7798for as_dir in $PATH
7799do
7800  IFS=$as_save_IFS
7801  test -z "$as_dir" && as_dir=.
7802    for ac_exec_ext in '' $ac_executable_extensions; do
7803  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7804    ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7805    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7806    break 2
7807  fi
7808done
7809  done
7810IFS=$as_save_IFS
7811
7812fi
7813fi
7814LIPO=$ac_cv_prog_LIPO
7815if test -n "$LIPO"; then
7816  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7817$as_echo "$LIPO" >&6; }
7818else
7819  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7820$as_echo "no" >&6; }
7821fi
7822
7823
7824fi
7825if test -z "$ac_cv_prog_LIPO"; then
7826  ac_ct_LIPO=$LIPO
7827  # Extract the first word of "lipo", so it can be a program name with args.
7828set dummy lipo; ac_word=$2
7829{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7830$as_echo_n "checking for $ac_word... " >&6; }
7831if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
7832  $as_echo_n "(cached) " >&6
7833else
7834  if test -n "$ac_ct_LIPO"; then
7835  ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7836else
7837as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7838for as_dir in $PATH
7839do
7840  IFS=$as_save_IFS
7841  test -z "$as_dir" && as_dir=.
7842    for ac_exec_ext in '' $ac_executable_extensions; do
7843  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7844    ac_cv_prog_ac_ct_LIPO="lipo"
7845    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7846    break 2
7847  fi
7848done
7849  done
7850IFS=$as_save_IFS
7851
7852fi
7853fi
7854ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7855if test -n "$ac_ct_LIPO"; then
7856  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7857$as_echo "$ac_ct_LIPO" >&6; }
7858else
7859  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7860$as_echo "no" >&6; }
7861fi
7862
7863  if test "x$ac_ct_LIPO" = x; then
7864    LIPO=":"
7865  else
7866    case $cross_compiling:$ac_tool_warned in
7867yes:)
7868{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7869$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7870ac_tool_warned=yes ;;
7871esac
7872    LIPO=$ac_ct_LIPO
7873  fi
7874else
7875  LIPO="$ac_cv_prog_LIPO"
7876fi
7877
7878    if test -n "$ac_tool_prefix"; then
7879  # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7880set dummy ${ac_tool_prefix}otool; ac_word=$2
7881{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7882$as_echo_n "checking for $ac_word... " >&6; }
7883if ${ac_cv_prog_OTOOL+:} false; then :
7884  $as_echo_n "(cached) " >&6
7885else
7886  if test -n "$OTOOL"; then
7887  ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7888else
7889as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7890for as_dir in $PATH
7891do
7892  IFS=$as_save_IFS
7893  test -z "$as_dir" && as_dir=.
7894    for ac_exec_ext in '' $ac_executable_extensions; do
7895  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7896    ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7897    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7898    break 2
7899  fi
7900done
7901  done
7902IFS=$as_save_IFS
7903
7904fi
7905fi
7906OTOOL=$ac_cv_prog_OTOOL
7907if test -n "$OTOOL"; then
7908  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7909$as_echo "$OTOOL" >&6; }
7910else
7911  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7912$as_echo "no" >&6; }
7913fi
7914
7915
7916fi
7917if test -z "$ac_cv_prog_OTOOL"; then
7918  ac_ct_OTOOL=$OTOOL
7919  # Extract the first word of "otool", so it can be a program name with args.
7920set dummy otool; ac_word=$2
7921{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7922$as_echo_n "checking for $ac_word... " >&6; }
7923if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
7924  $as_echo_n "(cached) " >&6
7925else
7926  if test -n "$ac_ct_OTOOL"; then
7927  ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7928else
7929as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7930for as_dir in $PATH
7931do
7932  IFS=$as_save_IFS
7933  test -z "$as_dir" && as_dir=.
7934    for ac_exec_ext in '' $ac_executable_extensions; do
7935  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7936    ac_cv_prog_ac_ct_OTOOL="otool"
7937    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7938    break 2
7939  fi
7940done
7941  done
7942IFS=$as_save_IFS
7943
7944fi
7945fi
7946ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7947if test -n "$ac_ct_OTOOL"; then
7948  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7949$as_echo "$ac_ct_OTOOL" >&6; }
7950else
7951  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7952$as_echo "no" >&6; }
7953fi
7954
7955  if test "x$ac_ct_OTOOL" = x; then
7956    OTOOL=":"
7957  else
7958    case $cross_compiling:$ac_tool_warned in
7959yes:)
7960{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7961$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7962ac_tool_warned=yes ;;
7963esac
7964    OTOOL=$ac_ct_OTOOL
7965  fi
7966else
7967  OTOOL="$ac_cv_prog_OTOOL"
7968fi
7969
7970    if test -n "$ac_tool_prefix"; then
7971  # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7972set dummy ${ac_tool_prefix}otool64; ac_word=$2
7973{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7974$as_echo_n "checking for $ac_word... " >&6; }
7975if ${ac_cv_prog_OTOOL64+:} false; then :
7976  $as_echo_n "(cached) " >&6
7977else
7978  if test -n "$OTOOL64"; then
7979  ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7980else
7981as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7982for as_dir in $PATH
7983do
7984  IFS=$as_save_IFS
7985  test -z "$as_dir" && as_dir=.
7986    for ac_exec_ext in '' $ac_executable_extensions; do
7987  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7988    ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7989    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7990    break 2
7991  fi
7992done
7993  done
7994IFS=$as_save_IFS
7995
7996fi
7997fi
7998OTOOL64=$ac_cv_prog_OTOOL64
7999if test -n "$OTOOL64"; then
8000  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
8001$as_echo "$OTOOL64" >&6; }
8002else
8003  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8004$as_echo "no" >&6; }
8005fi
8006
8007
8008fi
8009if test -z "$ac_cv_prog_OTOOL64"; then
8010  ac_ct_OTOOL64=$OTOOL64
8011  # Extract the first word of "otool64", so it can be a program name with args.
8012set dummy otool64; ac_word=$2
8013{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8014$as_echo_n "checking for $ac_word... " >&6; }
8015if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
8016  $as_echo_n "(cached) " >&6
8017else
8018  if test -n "$ac_ct_OTOOL64"; then
8019  ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
8020else
8021as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8022for as_dir in $PATH
8023do
8024  IFS=$as_save_IFS
8025  test -z "$as_dir" && as_dir=.
8026    for ac_exec_ext in '' $ac_executable_extensions; do
8027  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8028    ac_cv_prog_ac_ct_OTOOL64="otool64"
8029    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8030    break 2
8031  fi
8032done
8033  done
8034IFS=$as_save_IFS
8035
8036fi
8037fi
8038ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
8039if test -n "$ac_ct_OTOOL64"; then
8040  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
8041$as_echo "$ac_ct_OTOOL64" >&6; }
8042else
8043  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8044$as_echo "no" >&6; }
8045fi
8046
8047  if test "x$ac_ct_OTOOL64" = x; then
8048    OTOOL64=":"
8049  else
8050    case $cross_compiling:$ac_tool_warned in
8051yes:)
8052{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8053$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8054ac_tool_warned=yes ;;
8055esac
8056    OTOOL64=$ac_ct_OTOOL64
8057  fi
8058else
8059  OTOOL64="$ac_cv_prog_OTOOL64"
8060fi
8061
8062
8063
8064
8065
8066
8067
8068
8069
8070
8071
8072
8073
8074
8075
8076
8077
8078
8079
8080
8081
8082
8083
8084
8085
8086
8087
8088    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
8089$as_echo_n "checking for -single_module linker flag... " >&6; }
8090if ${lt_cv_apple_cc_single_mod+:} false; then :
8091  $as_echo_n "(cached) " >&6
8092else
8093  lt_cv_apple_cc_single_mod=no
8094      if test -z "$LT_MULTI_MODULE"; then
8095	# By default we will add the -single_module flag. You can override
8096	# by either setting the environment variable LT_MULTI_MODULE
8097	# non-empty at configure time, or by adding -multi_module to the
8098	# link flags.
8099	rm -rf libconftest.dylib*
8100	echo "int foo(void){return 1;}" > conftest.c
8101	echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8102-dynamiclib -Wl,-single_module conftest.c" >&5
8103	$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8104	  -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
8105        _lt_result=$?
8106	# If there is a non-empty error log, and "single_module"
8107	# appears in it, assume the flag caused a linker warning
8108        if test -s conftest.err && $GREP single_module conftest.err; then
8109	  cat conftest.err >&5
8110	# Otherwise, if the output was created with a 0 exit code from
8111	# the compiler, it worked.
8112	elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
8113	  lt_cv_apple_cc_single_mod=yes
8114	else
8115	  cat conftest.err >&5
8116	fi
8117	rm -rf libconftest.dylib*
8118	rm -f conftest.*
8119      fi
8120fi
8121{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
8122$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
8123
8124    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
8125$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
8126if ${lt_cv_ld_exported_symbols_list+:} false; then :
8127  $as_echo_n "(cached) " >&6
8128else
8129  lt_cv_ld_exported_symbols_list=no
8130      save_LDFLAGS=$LDFLAGS
8131      echo "_main" > conftest.sym
8132      LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
8133      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8134/* end confdefs.h.  */
8135
8136int
8137main ()
8138{
8139
8140  ;
8141  return 0;
8142}
8143_ACEOF
8144if ac_fn_c_try_link "$LINENO"; then :
8145  lt_cv_ld_exported_symbols_list=yes
8146else
8147  lt_cv_ld_exported_symbols_list=no
8148fi
8149rm -f core conftest.err conftest.$ac_objext \
8150    conftest$ac_exeext conftest.$ac_ext
8151	LDFLAGS=$save_LDFLAGS
8152
8153fi
8154{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
8155$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
8156
8157    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
8158$as_echo_n "checking for -force_load linker flag... " >&6; }
8159if ${lt_cv_ld_force_load+:} false; then :
8160  $as_echo_n "(cached) " >&6
8161else
8162  lt_cv_ld_force_load=no
8163      cat > conftest.c << _LT_EOF
8164int forced_loaded() { return 2;}
8165_LT_EOF
8166      echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
8167      $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
8168      echo "$AR cru libconftest.a conftest.o" >&5
8169      $AR cru libconftest.a conftest.o 2>&5
8170      echo "$RANLIB libconftest.a" >&5
8171      $RANLIB libconftest.a 2>&5
8172      cat > conftest.c << _LT_EOF
8173int main() { return 0;}
8174_LT_EOF
8175      echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
8176      $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
8177      _lt_result=$?
8178      if test -s conftest.err && $GREP force_load conftest.err; then
8179	cat conftest.err >&5
8180      elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
8181	lt_cv_ld_force_load=yes
8182      else
8183	cat conftest.err >&5
8184      fi
8185        rm -f conftest.err libconftest.a conftest conftest.c
8186        rm -rf conftest.dSYM
8187
8188fi
8189{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
8190$as_echo "$lt_cv_ld_force_load" >&6; }
8191    case $host_os in
8192    rhapsody* | darwin1.[012])
8193      _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
8194    darwin1.*)
8195      _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
8196    darwin*) # darwin 5.x on
8197      # if running on 10.5 or later, the deployment target defaults
8198      # to the OS version, if on x86, and 10.4, the deployment
8199      # target defaults to 10.4. Don't you love it?
8200      case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
8201	10.0,*86*-darwin8*|10.0,*-darwin[91]*)
8202	  _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
8203	10.[012][,.]*)
8204	  _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
8205	10.*)
8206	  _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
8207      esac
8208    ;;
8209  esac
8210    if test yes = "$lt_cv_apple_cc_single_mod"; then
8211      _lt_dar_single_mod='$single_module'
8212    fi
8213    if test yes = "$lt_cv_ld_exported_symbols_list"; then
8214      _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
8215    else
8216      _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
8217    fi
8218    if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
8219      _lt_dsymutil='~$DSYMUTIL $lib || :'
8220    else
8221      _lt_dsymutil=
8222    fi
8223    ;;
8224  esac
8225
8226# func_munge_path_list VARIABLE PATH
8227# -----------------------------------
8228# VARIABLE is name of variable containing _space_ separated list of
8229# directories to be munged by the contents of PATH, which is string
8230# having a format:
8231# "DIR[:DIR]:"
8232#       string "DIR[ DIR]" will be prepended to VARIABLE
8233# ":DIR[:DIR]"
8234#       string "DIR[ DIR]" will be appended to VARIABLE
8235# "DIRP[:DIRP]::[DIRA:]DIRA"
8236#       string "DIRP[ DIRP]" will be prepended to VARIABLE and string
8237#       "DIRA[ DIRA]" will be appended to VARIABLE
8238# "DIR[:DIR]"
8239#       VARIABLE will be replaced by "DIR[ DIR]"
8240func_munge_path_list ()
8241{
8242    case x$2 in
8243    x)
8244        ;;
8245    *:)
8246        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
8247        ;;
8248    x:*)
8249        eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
8250        ;;
8251    *::*)
8252        eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
8253        eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
8254        ;;
8255    *)
8256        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
8257        ;;
8258    esac
8259}
8260
8261ac_ext=c
8262ac_cpp='$CPP $CPPFLAGS'
8263ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8264ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8265ac_compiler_gnu=$ac_cv_c_compiler_gnu
8266{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
8267$as_echo_n "checking how to run the C preprocessor... " >&6; }
8268# On Suns, sometimes $CPP names a directory.
8269if test -n "$CPP" && test -d "$CPP"; then
8270  CPP=
8271fi
8272if test -z "$CPP"; then
8273  if ${ac_cv_prog_CPP+:} false; then :
8274  $as_echo_n "(cached) " >&6
8275else
8276      # Double quotes because CPP needs to be expanded
8277    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
8278    do
8279      ac_preproc_ok=false
8280for ac_c_preproc_warn_flag in '' yes
8281do
8282  # Use a header file that comes with gcc, so configuring glibc
8283  # with a fresh cross-compiler works.
8284  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8285  # <limits.h> exists even on freestanding compilers.
8286  # On the NeXT, cc -E runs the code through the compiler's parser,
8287  # not just through cpp. "Syntax error" is here to catch this case.
8288  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8289/* end confdefs.h.  */
8290#ifdef __STDC__
8291# include <limits.h>
8292#else
8293# include <assert.h>
8294#endif
8295		     Syntax error
8296_ACEOF
8297if ac_fn_c_try_cpp "$LINENO"; then :
8298
8299else
8300  # Broken: fails on valid input.
8301continue
8302fi
8303rm -f conftest.err conftest.i conftest.$ac_ext
8304
8305  # OK, works on sane cases.  Now check whether nonexistent headers
8306  # can be detected and how.
8307  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8308/* end confdefs.h.  */
8309#include <ac_nonexistent.h>
8310_ACEOF
8311if ac_fn_c_try_cpp "$LINENO"; then :
8312  # Broken: success on invalid input.
8313continue
8314else
8315  # Passes both tests.
8316ac_preproc_ok=:
8317break
8318fi
8319rm -f conftest.err conftest.i conftest.$ac_ext
8320
8321done
8322# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8323rm -f conftest.i conftest.err conftest.$ac_ext
8324if $ac_preproc_ok; then :
8325  break
8326fi
8327
8328    done
8329    ac_cv_prog_CPP=$CPP
8330
8331fi
8332  CPP=$ac_cv_prog_CPP
8333else
8334  ac_cv_prog_CPP=$CPP
8335fi
8336{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
8337$as_echo "$CPP" >&6; }
8338ac_preproc_ok=false
8339for ac_c_preproc_warn_flag in '' yes
8340do
8341  # Use a header file that comes with gcc, so configuring glibc
8342  # with a fresh cross-compiler works.
8343  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8344  # <limits.h> exists even on freestanding compilers.
8345  # On the NeXT, cc -E runs the code through the compiler's parser,
8346  # not just through cpp. "Syntax error" is here to catch this case.
8347  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8348/* end confdefs.h.  */
8349#ifdef __STDC__
8350# include <limits.h>
8351#else
8352# include <assert.h>
8353#endif
8354		     Syntax error
8355_ACEOF
8356if ac_fn_c_try_cpp "$LINENO"; then :
8357
8358else
8359  # Broken: fails on valid input.
8360continue
8361fi
8362rm -f conftest.err conftest.i conftest.$ac_ext
8363
8364  # OK, works on sane cases.  Now check whether nonexistent headers
8365  # can be detected and how.
8366  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8367/* end confdefs.h.  */
8368#include <ac_nonexistent.h>
8369_ACEOF
8370if ac_fn_c_try_cpp "$LINENO"; then :
8371  # Broken: success on invalid input.
8372continue
8373else
8374  # Passes both tests.
8375ac_preproc_ok=:
8376break
8377fi
8378rm -f conftest.err conftest.i conftest.$ac_ext
8379
8380done
8381# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8382rm -f conftest.i conftest.err conftest.$ac_ext
8383if $ac_preproc_ok; then :
8384
8385else
8386  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8387$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
8388as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
8389See \`config.log' for more details" "$LINENO" 5; }
8390fi
8391
8392ac_ext=c
8393ac_cpp='$CPP $CPPFLAGS'
8394ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8395ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8396ac_compiler_gnu=$ac_cv_c_compiler_gnu
8397
8398
8399{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
8400$as_echo_n "checking for ANSI C header files... " >&6; }
8401if ${ac_cv_header_stdc+:} false; then :
8402  $as_echo_n "(cached) " >&6
8403else
8404  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8405/* end confdefs.h.  */
8406#include <stdlib.h>
8407#include <stdarg.h>
8408#include <string.h>
8409#include <float.h>
8410
8411int
8412main ()
8413{
8414
8415  ;
8416  return 0;
8417}
8418_ACEOF
8419if ac_fn_c_try_compile "$LINENO"; then :
8420  ac_cv_header_stdc=yes
8421else
8422  ac_cv_header_stdc=no
8423fi
8424rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8425
8426if test $ac_cv_header_stdc = yes; then
8427  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
8428  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8429/* end confdefs.h.  */
8430#include <string.h>
8431
8432_ACEOF
8433if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8434  $EGREP "memchr" >/dev/null 2>&1; then :
8435
8436else
8437  ac_cv_header_stdc=no
8438fi
8439rm -f conftest*
8440
8441fi
8442
8443if test $ac_cv_header_stdc = yes; then
8444  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8445  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8446/* end confdefs.h.  */
8447#include <stdlib.h>
8448
8449_ACEOF
8450if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8451  $EGREP "free" >/dev/null 2>&1; then :
8452
8453else
8454  ac_cv_header_stdc=no
8455fi
8456rm -f conftest*
8457
8458fi
8459
8460if test $ac_cv_header_stdc = yes; then
8461  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8462  if test "$cross_compiling" = yes; then :
8463  :
8464else
8465  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8466/* end confdefs.h.  */
8467#include <ctype.h>
8468#include <stdlib.h>
8469#if ((' ' & 0x0FF) == 0x020)
8470# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8471# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8472#else
8473# define ISLOWER(c) \
8474		   (('a' <= (c) && (c) <= 'i') \
8475		     || ('j' <= (c) && (c) <= 'r') \
8476		     || ('s' <= (c) && (c) <= 'z'))
8477# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8478#endif
8479
8480#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8481int
8482main ()
8483{
8484  int i;
8485  for (i = 0; i < 256; i++)
8486    if (XOR (islower (i), ISLOWER (i))
8487	|| toupper (i) != TOUPPER (i))
8488      return 2;
8489  return 0;
8490}
8491_ACEOF
8492if ac_fn_c_try_run "$LINENO"; then :
8493
8494else
8495  ac_cv_header_stdc=no
8496fi
8497rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8498  conftest.$ac_objext conftest.beam conftest.$ac_ext
8499fi
8500
8501fi
8502fi
8503{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
8504$as_echo "$ac_cv_header_stdc" >&6; }
8505if test $ac_cv_header_stdc = yes; then
8506
8507$as_echo "#define STDC_HEADERS 1" >>confdefs.h
8508
8509fi
8510
8511# On IRIX 5.3, sys/types and inttypes.h are conflicting.
8512for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
8513		  inttypes.h stdint.h unistd.h
8514do :
8515  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8516ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
8517"
8518if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
8519  cat >>confdefs.h <<_ACEOF
8520#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8521_ACEOF
8522
8523fi
8524
8525done
8526
8527
8528for ac_header in dlfcn.h
8529do :
8530  ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
8531"
8532if test "x$ac_cv_header_dlfcn_h" = xyes; then :
8533  cat >>confdefs.h <<_ACEOF
8534#define HAVE_DLFCN_H 1
8535_ACEOF
8536
8537fi
8538
8539done
8540
8541
8542
8543
8544
8545# Set options
8546
8547
8548
8549        enable_dlopen=no
8550
8551
8552  enable_win32_dll=no
8553
8554
8555            # Check whether --enable-shared was given.
8556if test "${enable_shared+set}" = set; then :
8557  enableval=$enable_shared; p=${PACKAGE-default}
8558    case $enableval in
8559    yes) enable_shared=yes ;;
8560    no) enable_shared=no ;;
8561    *)
8562      enable_shared=no
8563      # Look at the argument we got.  We use all the common list separators.
8564      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8565      for pkg in $enableval; do
8566	IFS=$lt_save_ifs
8567	if test "X$pkg" = "X$p"; then
8568	  enable_shared=yes
8569	fi
8570      done
8571      IFS=$lt_save_ifs
8572      ;;
8573    esac
8574else
8575  enable_shared=yes
8576fi
8577
8578
8579
8580
8581
8582
8583
8584
8585
8586  # Check whether --enable-static was given.
8587if test "${enable_static+set}" = set; then :
8588  enableval=$enable_static; p=${PACKAGE-default}
8589    case $enableval in
8590    yes) enable_static=yes ;;
8591    no) enable_static=no ;;
8592    *)
8593     enable_static=no
8594      # Look at the argument we got.  We use all the common list separators.
8595      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8596      for pkg in $enableval; do
8597	IFS=$lt_save_ifs
8598	if test "X$pkg" = "X$p"; then
8599	  enable_static=yes
8600	fi
8601      done
8602      IFS=$lt_save_ifs
8603      ;;
8604    esac
8605else
8606  enable_static=yes
8607fi
8608
8609
8610
8611
8612
8613
8614
8615
8616
8617
8618# Check whether --with-pic was given.
8619if test "${with_pic+set}" = set; then :
8620  withval=$with_pic; lt_p=${PACKAGE-default}
8621    case $withval in
8622    yes|no) pic_mode=$withval ;;
8623    *)
8624      pic_mode=default
8625      # Look at the argument we got.  We use all the common list separators.
8626      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8627      for lt_pkg in $withval; do
8628	IFS=$lt_save_ifs
8629	if test "X$lt_pkg" = "X$lt_p"; then
8630	  pic_mode=yes
8631	fi
8632      done
8633      IFS=$lt_save_ifs
8634      ;;
8635    esac
8636else
8637  pic_mode=default
8638fi
8639
8640
8641
8642
8643
8644
8645
8646
8647  # Check whether --enable-fast-install was given.
8648if test "${enable_fast_install+set}" = set; then :
8649  enableval=$enable_fast_install; p=${PACKAGE-default}
8650    case $enableval in
8651    yes) enable_fast_install=yes ;;
8652    no) enable_fast_install=no ;;
8653    *)
8654      enable_fast_install=no
8655      # Look at the argument we got.  We use all the common list separators.
8656      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8657      for pkg in $enableval; do
8658	IFS=$lt_save_ifs
8659	if test "X$pkg" = "X$p"; then
8660	  enable_fast_install=yes
8661	fi
8662      done
8663      IFS=$lt_save_ifs
8664      ;;
8665    esac
8666else
8667  enable_fast_install=yes
8668fi
8669
8670
8671
8672
8673
8674
8675
8676
8677  shared_archive_member_spec=
8678case $host,$enable_shared in
8679power*-*-aix[5-9]*,yes)
8680  { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
8681$as_echo_n "checking which variant of shared library versioning to provide... " >&6; }
8682
8683# Check whether --with-aix-soname was given.
8684if test "${with_aix_soname+set}" = set; then :
8685  withval=$with_aix_soname; case $withval in
8686    aix|svr4|both)
8687      ;;
8688    *)
8689      as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
8690      ;;
8691    esac
8692    lt_cv_with_aix_soname=$with_aix_soname
8693else
8694  if ${lt_cv_with_aix_soname+:} false; then :
8695  $as_echo_n "(cached) " >&6
8696else
8697  lt_cv_with_aix_soname=aix
8698fi
8699
8700    with_aix_soname=$lt_cv_with_aix_soname
8701fi
8702
8703  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
8704$as_echo "$with_aix_soname" >&6; }
8705  if test aix != "$with_aix_soname"; then
8706    # For the AIX way of multilib, we name the shared archive member
8707    # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
8708    # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
8709    # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
8710    # the AIX toolchain works better with OBJECT_MODE set (default 32).
8711    if test 64 = "${OBJECT_MODE-32}"; then
8712      shared_archive_member_spec=shr_64
8713    else
8714      shared_archive_member_spec=shr
8715    fi
8716  fi
8717  ;;
8718*)
8719  with_aix_soname=aix
8720  ;;
8721esac
8722
8723
8724
8725
8726
8727
8728
8729
8730
8731
8732# This can be used to rebuild libtool when needed
8733LIBTOOL_DEPS=$ltmain
8734
8735# Always use our own libtool.
8736LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8737
8738
8739
8740
8741
8742
8743
8744
8745
8746
8747
8748
8749
8750
8751
8752
8753
8754
8755
8756
8757
8758
8759
8760
8761
8762
8763
8764
8765
8766
8767test -z "$LN_S" && LN_S="ln -s"
8768
8769
8770
8771
8772
8773
8774
8775
8776
8777
8778
8779
8780
8781
8782if test -n "${ZSH_VERSION+set}"; then
8783   setopt NO_GLOB_SUBST
8784fi
8785
8786{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8787$as_echo_n "checking for objdir... " >&6; }
8788if ${lt_cv_objdir+:} false; then :
8789  $as_echo_n "(cached) " >&6
8790else
8791  rm -f .libs 2>/dev/null
8792mkdir .libs 2>/dev/null
8793if test -d .libs; then
8794  lt_cv_objdir=.libs
8795else
8796  # MS-DOS does not allow filenames that begin with a dot.
8797  lt_cv_objdir=_libs
8798fi
8799rmdir .libs 2>/dev/null
8800fi
8801{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8802$as_echo "$lt_cv_objdir" >&6; }
8803objdir=$lt_cv_objdir
8804
8805
8806
8807
8808
8809cat >>confdefs.h <<_ACEOF
8810#define LT_OBJDIR "$lt_cv_objdir/"
8811_ACEOF
8812
8813
8814
8815
8816case $host_os in
8817aix3*)
8818  # AIX sometimes has problems with the GCC collect2 program.  For some
8819  # reason, if we set the COLLECT_NAMES environment variable, the problems
8820  # vanish in a puff of smoke.
8821  if test set != "${COLLECT_NAMES+set}"; then
8822    COLLECT_NAMES=
8823    export COLLECT_NAMES
8824  fi
8825  ;;
8826esac
8827
8828# Global variables:
8829ofile=libtool
8830can_build_shared=yes
8831
8832# All known linkers require a '.a' archive for static linking (except MSVC,
8833# which needs '.lib').
8834libext=a
8835
8836with_gnu_ld=$lt_cv_prog_gnu_ld
8837
8838old_CC=$CC
8839old_CFLAGS=$CFLAGS
8840
8841# Set sane defaults for various variables
8842test -z "$CC" && CC=cc
8843test -z "$LTCC" && LTCC=$CC
8844test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8845test -z "$LD" && LD=ld
8846test -z "$ac_objext" && ac_objext=o
8847
8848func_cc_basename $compiler
8849cc_basename=$func_cc_basename_result
8850
8851
8852# Only perform the check for file, if the check method requires it
8853test -z "$MAGIC_CMD" && MAGIC_CMD=file
8854case $deplibs_check_method in
8855file_magic*)
8856  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8857    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8858$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8859if ${lt_cv_path_MAGIC_CMD+:} false; then :
8860  $as_echo_n "(cached) " >&6
8861else
8862  case $MAGIC_CMD in
8863[\\/*] |  ?:[\\/]*)
8864  lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
8865  ;;
8866*)
8867  lt_save_MAGIC_CMD=$MAGIC_CMD
8868  lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
8869  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8870  for ac_dir in $ac_dummy; do
8871    IFS=$lt_save_ifs
8872    test -z "$ac_dir" && ac_dir=.
8873    if test -f "$ac_dir/${ac_tool_prefix}file"; then
8874      lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
8875      if test -n "$file_magic_test_file"; then
8876	case $deplibs_check_method in
8877	"file_magic "*)
8878	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8879	  MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8880	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8881	    $EGREP "$file_magic_regex" > /dev/null; then
8882	    :
8883	  else
8884	    cat <<_LT_EOF 1>&2
8885
8886*** Warning: the command libtool uses to detect shared libraries,
8887*** $file_magic_cmd, produces output that libtool cannot recognize.
8888*** The result is that libtool may fail to recognize shared libraries
8889*** as such.  This will affect the creation of libtool libraries that
8890*** depend on shared libraries, but programs linked with such libtool
8891*** libraries will work regardless of this problem.  Nevertheless, you
8892*** may want to report the problem to your system manager and/or to
8893*** bug-libtool@gnu.org
8894
8895_LT_EOF
8896	  fi ;;
8897	esac
8898      fi
8899      break
8900    fi
8901  done
8902  IFS=$lt_save_ifs
8903  MAGIC_CMD=$lt_save_MAGIC_CMD
8904  ;;
8905esac
8906fi
8907
8908MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8909if test -n "$MAGIC_CMD"; then
8910  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8911$as_echo "$MAGIC_CMD" >&6; }
8912else
8913  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8914$as_echo "no" >&6; }
8915fi
8916
8917
8918
8919
8920
8921if test -z "$lt_cv_path_MAGIC_CMD"; then
8922  if test -n "$ac_tool_prefix"; then
8923    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8924$as_echo_n "checking for file... " >&6; }
8925if ${lt_cv_path_MAGIC_CMD+:} false; then :
8926  $as_echo_n "(cached) " >&6
8927else
8928  case $MAGIC_CMD in
8929[\\/*] |  ?:[\\/]*)
8930  lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
8931  ;;
8932*)
8933  lt_save_MAGIC_CMD=$MAGIC_CMD
8934  lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
8935  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8936  for ac_dir in $ac_dummy; do
8937    IFS=$lt_save_ifs
8938    test -z "$ac_dir" && ac_dir=.
8939    if test -f "$ac_dir/file"; then
8940      lt_cv_path_MAGIC_CMD=$ac_dir/"file"
8941      if test -n "$file_magic_test_file"; then
8942	case $deplibs_check_method in
8943	"file_magic "*)
8944	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8945	  MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8946	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8947	    $EGREP "$file_magic_regex" > /dev/null; then
8948	    :
8949	  else
8950	    cat <<_LT_EOF 1>&2
8951
8952*** Warning: the command libtool uses to detect shared libraries,
8953*** $file_magic_cmd, produces output that libtool cannot recognize.
8954*** The result is that libtool may fail to recognize shared libraries
8955*** as such.  This will affect the creation of libtool libraries that
8956*** depend on shared libraries, but programs linked with such libtool
8957*** libraries will work regardless of this problem.  Nevertheless, you
8958*** may want to report the problem to your system manager and/or to
8959*** bug-libtool@gnu.org
8960
8961_LT_EOF
8962	  fi ;;
8963	esac
8964      fi
8965      break
8966    fi
8967  done
8968  IFS=$lt_save_ifs
8969  MAGIC_CMD=$lt_save_MAGIC_CMD
8970  ;;
8971esac
8972fi
8973
8974MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8975if test -n "$MAGIC_CMD"; then
8976  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8977$as_echo "$MAGIC_CMD" >&6; }
8978else
8979  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8980$as_echo "no" >&6; }
8981fi
8982
8983
8984  else
8985    MAGIC_CMD=:
8986  fi
8987fi
8988
8989  fi
8990  ;;
8991esac
8992
8993# Use C for the default configuration in the libtool script
8994
8995lt_save_CC=$CC
8996ac_ext=c
8997ac_cpp='$CPP $CPPFLAGS'
8998ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8999ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9000ac_compiler_gnu=$ac_cv_c_compiler_gnu
9001
9002
9003# Source file extension for C test sources.
9004ac_ext=c
9005
9006# Object file extension for compiled C test sources.
9007objext=o
9008objext=$objext
9009
9010# Code to be used in simple compile tests
9011lt_simple_compile_test_code="int some_variable = 0;"
9012
9013# Code to be used in simple link tests
9014lt_simple_link_test_code='int main(){return(0);}'
9015
9016
9017
9018
9019
9020
9021
9022# If no C compiler was specified, use CC.
9023LTCC=${LTCC-"$CC"}
9024
9025# If no C compiler flags were specified, use CFLAGS.
9026LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
9027
9028# Allow CC to be a program name with arguments.
9029compiler=$CC
9030
9031# Save the default compiler, since it gets overwritten when the other
9032# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
9033compiler_DEFAULT=$CC
9034
9035# save warnings/boilerplate of simple test code
9036ac_outfile=conftest.$ac_objext
9037echo "$lt_simple_compile_test_code" >conftest.$ac_ext
9038eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9039_lt_compiler_boilerplate=`cat conftest.err`
9040$RM conftest*
9041
9042ac_outfile=conftest.$ac_objext
9043echo "$lt_simple_link_test_code" >conftest.$ac_ext
9044eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9045_lt_linker_boilerplate=`cat conftest.err`
9046$RM -r conftest*
9047
9048
9049if test -n "$compiler"; then
9050
9051lt_prog_compiler_no_builtin_flag=
9052
9053if test yes = "$GCC"; then
9054  case $cc_basename in
9055  nvcc*)
9056    lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
9057  *)
9058    lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
9059  esac
9060
9061  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
9062$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
9063if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
9064  $as_echo_n "(cached) " >&6
9065else
9066  lt_cv_prog_compiler_rtti_exceptions=no
9067   ac_outfile=conftest.$ac_objext
9068   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9069   lt_compiler_flag="-fno-rtti -fno-exceptions"  ## exclude from sc_useless_quotes_in_assignment
9070   # Insert the option either (1) after the last *FLAGS variable, or
9071   # (2) before a word containing "conftest.", or (3) at the end.
9072   # Note that $ac_compile itself does not contain backslashes and begins
9073   # with a dollar sign (not a hyphen), so the echo should work correctly.
9074   # The option is referenced via a variable to avoid confusing sed.
9075   lt_compile=`echo "$ac_compile" | $SED \
9076   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9077   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9078   -e 's:$: $lt_compiler_flag:'`
9079   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9080   (eval "$lt_compile" 2>conftest.err)
9081   ac_status=$?
9082   cat conftest.err >&5
9083   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9084   if (exit $ac_status) && test -s "$ac_outfile"; then
9085     # The compiler can only warn and ignore the option if not recognized
9086     # So say no if there are warnings other than the usual output.
9087     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9088     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9089     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9090       lt_cv_prog_compiler_rtti_exceptions=yes
9091     fi
9092   fi
9093   $RM conftest*
9094
9095fi
9096{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
9097$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
9098
9099if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
9100    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
9101else
9102    :
9103fi
9104
9105fi
9106
9107
9108
9109
9110
9111
9112  lt_prog_compiler_wl=
9113lt_prog_compiler_pic=
9114lt_prog_compiler_static=
9115
9116
9117  if test yes = "$GCC"; then
9118    lt_prog_compiler_wl='-Wl,'
9119    lt_prog_compiler_static='-static'
9120
9121    case $host_os in
9122      aix*)
9123      # All AIX code is PIC.
9124      if test ia64 = "$host_cpu"; then
9125	# AIX 5 now supports IA64 processor
9126	lt_prog_compiler_static='-Bstatic'
9127      fi
9128      lt_prog_compiler_pic='-fPIC'
9129      ;;
9130
9131    amigaos*)
9132      case $host_cpu in
9133      powerpc)
9134            # see comment about AmigaOS4 .so support
9135            lt_prog_compiler_pic='-fPIC'
9136        ;;
9137      m68k)
9138            # FIXME: we need at least 68020 code to build shared libraries, but
9139            # adding the '-m68020' flag to GCC prevents building anything better,
9140            # like '-m68040'.
9141            lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
9142        ;;
9143      esac
9144      ;;
9145
9146    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
9147      # PIC is the default for these OSes.
9148      ;;
9149
9150    mingw* | cygwin* | pw32* | os2* | cegcc*)
9151      # This hack is so that the source file can tell whether it is being
9152      # built for inclusion in a dll (and should export symbols for example).
9153      # Although the cygwin gcc ignores -fPIC, still need this for old-style
9154      # (--disable-auto-import) libraries
9155      lt_prog_compiler_pic='-DDLL_EXPORT'
9156      case $host_os in
9157      os2*)
9158	lt_prog_compiler_static='$wl-static'
9159	;;
9160      esac
9161      ;;
9162
9163    darwin* | rhapsody*)
9164      # PIC is the default on this platform
9165      # Common symbols not allowed in MH_DYLIB files
9166      lt_prog_compiler_pic='-fno-common'
9167      ;;
9168
9169    haiku*)
9170      # PIC is the default for Haiku.
9171      # The "-static" flag exists, but is broken.
9172      lt_prog_compiler_static=
9173      ;;
9174
9175    hpux*)
9176      # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
9177      # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
9178      # sets the default TLS model and affects inlining.
9179      case $host_cpu in
9180      hppa*64*)
9181	# +Z the default
9182	;;
9183      *)
9184	lt_prog_compiler_pic='-fPIC'
9185	;;
9186      esac
9187      ;;
9188
9189    interix[3-9]*)
9190      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
9191      # Instead, we relocate shared libraries at runtime.
9192      ;;
9193
9194    msdosdjgpp*)
9195      # Just because we use GCC doesn't mean we suddenly get shared libraries
9196      # on systems that don't support them.
9197      lt_prog_compiler_can_build_shared=no
9198      enable_shared=no
9199      ;;
9200
9201    *nto* | *qnx*)
9202      # QNX uses GNU C++, but need to define -shared option too, otherwise
9203      # it will coredump.
9204      lt_prog_compiler_pic='-fPIC -shared'
9205      ;;
9206
9207    sysv4*MP*)
9208      if test -d /usr/nec; then
9209	lt_prog_compiler_pic=-Kconform_pic
9210      fi
9211      ;;
9212
9213    *)
9214      lt_prog_compiler_pic='-fPIC'
9215      ;;
9216    esac
9217
9218    case $cc_basename in
9219    nvcc*) # Cuda Compiler Driver 2.2
9220      lt_prog_compiler_wl='-Xlinker '
9221      if test -n "$lt_prog_compiler_pic"; then
9222        lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
9223      fi
9224      ;;
9225    esac
9226  else
9227    # PORTME Check for flag to pass linker flags through the system compiler.
9228    case $host_os in
9229    aix*)
9230      lt_prog_compiler_wl='-Wl,'
9231      if test ia64 = "$host_cpu"; then
9232	# AIX 5 now supports IA64 processor
9233	lt_prog_compiler_static='-Bstatic'
9234      else
9235	lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
9236      fi
9237      ;;
9238
9239    darwin* | rhapsody*)
9240      # PIC is the default on this platform
9241      # Common symbols not allowed in MH_DYLIB files
9242      lt_prog_compiler_pic='-fno-common'
9243      case $cc_basename in
9244      nagfor*)
9245        # NAG Fortran compiler
9246        lt_prog_compiler_wl='-Wl,-Wl,,'
9247        lt_prog_compiler_pic='-PIC'
9248        lt_prog_compiler_static='-Bstatic'
9249        ;;
9250      esac
9251      ;;
9252
9253    mingw* | cygwin* | pw32* | os2* | cegcc*)
9254      # This hack is so that the source file can tell whether it is being
9255      # built for inclusion in a dll (and should export symbols for example).
9256      lt_prog_compiler_pic='-DDLL_EXPORT'
9257      case $host_os in
9258      os2*)
9259	lt_prog_compiler_static='$wl-static'
9260	;;
9261      esac
9262      ;;
9263
9264    hpux9* | hpux10* | hpux11*)
9265      lt_prog_compiler_wl='-Wl,'
9266      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
9267      # not for PA HP-UX.
9268      case $host_cpu in
9269      hppa*64*|ia64*)
9270	# +Z the default
9271	;;
9272      *)
9273	lt_prog_compiler_pic='+Z'
9274	;;
9275      esac
9276      # Is there a better lt_prog_compiler_static that works with the bundled CC?
9277      lt_prog_compiler_static='$wl-a ${wl}archive'
9278      ;;
9279
9280    irix5* | irix6* | nonstopux*)
9281      lt_prog_compiler_wl='-Wl,'
9282      # PIC (with -KPIC) is the default.
9283      lt_prog_compiler_static='-non_shared'
9284      ;;
9285
9286    linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
9287      case $cc_basename in
9288      # old Intel for x86_64, which still supported -KPIC.
9289      ecc*)
9290	lt_prog_compiler_wl='-Wl,'
9291	lt_prog_compiler_pic='-KPIC'
9292	lt_prog_compiler_static='-static'
9293        ;;
9294      # icc used to be incompatible with GCC.
9295      # ICC 10 doesn't accept -KPIC any more.
9296      icc* | ifort*)
9297	lt_prog_compiler_wl='-Wl,'
9298	lt_prog_compiler_pic='-fPIC'
9299	lt_prog_compiler_static='-static'
9300        ;;
9301      # Lahey Fortran 8.1.
9302      lf95*)
9303	lt_prog_compiler_wl='-Wl,'
9304	lt_prog_compiler_pic='--shared'
9305	lt_prog_compiler_static='--static'
9306	;;
9307      nagfor*)
9308	# NAG Fortran compiler
9309	lt_prog_compiler_wl='-Wl,-Wl,,'
9310	lt_prog_compiler_pic='-PIC'
9311	lt_prog_compiler_static='-Bstatic'
9312	;;
9313      tcc*)
9314	# Fabrice Bellard et al's Tiny C Compiler
9315	lt_prog_compiler_wl='-Wl,'
9316	lt_prog_compiler_pic='-fPIC'
9317	lt_prog_compiler_static='-static'
9318	;;
9319      pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
9320        # Portland Group compilers (*not* the Pentium gcc compiler,
9321	# which looks to be a dead project)
9322	lt_prog_compiler_wl='-Wl,'
9323	lt_prog_compiler_pic='-fpic'
9324	lt_prog_compiler_static='-Bstatic'
9325        ;;
9326      ccc*)
9327        lt_prog_compiler_wl='-Wl,'
9328        # All Alpha code is PIC.
9329        lt_prog_compiler_static='-non_shared'
9330        ;;
9331      xl* | bgxl* | bgf* | mpixl*)
9332	# IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
9333	lt_prog_compiler_wl='-Wl,'
9334	lt_prog_compiler_pic='-qpic'
9335	lt_prog_compiler_static='-qstaticlink'
9336	;;
9337      *)
9338	case `$CC -V 2>&1 | sed 5q` in
9339	*Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
9340	  # Sun Fortran 8.3 passes all unrecognized flags to the linker
9341	  lt_prog_compiler_pic='-KPIC'
9342	  lt_prog_compiler_static='-Bstatic'
9343	  lt_prog_compiler_wl=''
9344	  ;;
9345	*Sun\ F* | *Sun*Fortran*)
9346	  lt_prog_compiler_pic='-KPIC'
9347	  lt_prog_compiler_static='-Bstatic'
9348	  lt_prog_compiler_wl='-Qoption ld '
9349	  ;;
9350	*Sun\ C*)
9351	  # Sun C 5.9
9352	  lt_prog_compiler_pic='-KPIC'
9353	  lt_prog_compiler_static='-Bstatic'
9354	  lt_prog_compiler_wl='-Wl,'
9355	  ;;
9356        *Intel*\ [CF]*Compiler*)
9357	  lt_prog_compiler_wl='-Wl,'
9358	  lt_prog_compiler_pic='-fPIC'
9359	  lt_prog_compiler_static='-static'
9360	  ;;
9361	*Portland\ Group*)
9362	  lt_prog_compiler_wl='-Wl,'
9363	  lt_prog_compiler_pic='-fpic'
9364	  lt_prog_compiler_static='-Bstatic'
9365	  ;;
9366	esac
9367	;;
9368      esac
9369      ;;
9370
9371    newsos6)
9372      lt_prog_compiler_pic='-KPIC'
9373      lt_prog_compiler_static='-Bstatic'
9374      ;;
9375
9376    *nto* | *qnx*)
9377      # QNX uses GNU C++, but need to define -shared option too, otherwise
9378      # it will coredump.
9379      lt_prog_compiler_pic='-fPIC -shared'
9380      ;;
9381
9382    osf3* | osf4* | osf5*)
9383      lt_prog_compiler_wl='-Wl,'
9384      # All OSF/1 code is PIC.
9385      lt_prog_compiler_static='-non_shared'
9386      ;;
9387
9388    rdos*)
9389      lt_prog_compiler_static='-non_shared'
9390      ;;
9391
9392    solaris*)
9393      lt_prog_compiler_pic='-KPIC'
9394      lt_prog_compiler_static='-Bstatic'
9395      case $cc_basename in
9396      f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
9397	lt_prog_compiler_wl='-Qoption ld ';;
9398      *)
9399	lt_prog_compiler_wl='-Wl,';;
9400      esac
9401      ;;
9402
9403    sunos4*)
9404      lt_prog_compiler_wl='-Qoption ld '
9405      lt_prog_compiler_pic='-PIC'
9406      lt_prog_compiler_static='-Bstatic'
9407      ;;
9408
9409    sysv4 | sysv4.2uw2* | sysv4.3*)
9410      lt_prog_compiler_wl='-Wl,'
9411      lt_prog_compiler_pic='-KPIC'
9412      lt_prog_compiler_static='-Bstatic'
9413      ;;
9414
9415    sysv4*MP*)
9416      if test -d /usr/nec; then
9417	lt_prog_compiler_pic='-Kconform_pic'
9418	lt_prog_compiler_static='-Bstatic'
9419      fi
9420      ;;
9421
9422    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
9423      lt_prog_compiler_wl='-Wl,'
9424      lt_prog_compiler_pic='-KPIC'
9425      lt_prog_compiler_static='-Bstatic'
9426      ;;
9427
9428    unicos*)
9429      lt_prog_compiler_wl='-Wl,'
9430      lt_prog_compiler_can_build_shared=no
9431      ;;
9432
9433    uts4*)
9434      lt_prog_compiler_pic='-pic'
9435      lt_prog_compiler_static='-Bstatic'
9436      ;;
9437
9438    *)
9439      lt_prog_compiler_can_build_shared=no
9440      ;;
9441    esac
9442  fi
9443
9444case $host_os in
9445  # For platforms that do not support PIC, -DPIC is meaningless:
9446  *djgpp*)
9447    lt_prog_compiler_pic=
9448    ;;
9449  *)
9450    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
9451    ;;
9452esac
9453
9454{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
9455$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
9456if ${lt_cv_prog_compiler_pic+:} false; then :
9457  $as_echo_n "(cached) " >&6
9458else
9459  lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
9460fi
9461{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
9462$as_echo "$lt_cv_prog_compiler_pic" >&6; }
9463lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
9464
9465#
9466# Check to make sure the PIC flag actually works.
9467#
9468if test -n "$lt_prog_compiler_pic"; then
9469  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
9470$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
9471if ${lt_cv_prog_compiler_pic_works+:} false; then :
9472  $as_echo_n "(cached) " >&6
9473else
9474  lt_cv_prog_compiler_pic_works=no
9475   ac_outfile=conftest.$ac_objext
9476   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9477   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"  ## exclude from sc_useless_quotes_in_assignment
9478   # Insert the option either (1) after the last *FLAGS variable, or
9479   # (2) before a word containing "conftest.", or (3) at the end.
9480   # Note that $ac_compile itself does not contain backslashes and begins
9481   # with a dollar sign (not a hyphen), so the echo should work correctly.
9482   # The option is referenced via a variable to avoid confusing sed.
9483   lt_compile=`echo "$ac_compile" | $SED \
9484   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9485   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9486   -e 's:$: $lt_compiler_flag:'`
9487   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9488   (eval "$lt_compile" 2>conftest.err)
9489   ac_status=$?
9490   cat conftest.err >&5
9491   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9492   if (exit $ac_status) && test -s "$ac_outfile"; then
9493     # The compiler can only warn and ignore the option if not recognized
9494     # So say no if there are warnings other than the usual output.
9495     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9496     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9497     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9498       lt_cv_prog_compiler_pic_works=yes
9499     fi
9500   fi
9501   $RM conftest*
9502
9503fi
9504{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
9505$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
9506
9507if test yes = "$lt_cv_prog_compiler_pic_works"; then
9508    case $lt_prog_compiler_pic in
9509     "" | " "*) ;;
9510     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9511     esac
9512else
9513    lt_prog_compiler_pic=
9514     lt_prog_compiler_can_build_shared=no
9515fi
9516
9517fi
9518
9519
9520
9521
9522
9523
9524
9525
9526
9527
9528
9529#
9530# Check to make sure the static flag actually works.
9531#
9532wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9533{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9534$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
9535if ${lt_cv_prog_compiler_static_works+:} false; then :
9536  $as_echo_n "(cached) " >&6
9537else
9538  lt_cv_prog_compiler_static_works=no
9539   save_LDFLAGS=$LDFLAGS
9540   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9541   echo "$lt_simple_link_test_code" > conftest.$ac_ext
9542   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9543     # The linker can only warn and ignore the option if not recognized
9544     # So say no if there are warnings
9545     if test -s conftest.err; then
9546       # Append any errors to the config.log.
9547       cat conftest.err 1>&5
9548       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9549       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9550       if diff conftest.exp conftest.er2 >/dev/null; then
9551         lt_cv_prog_compiler_static_works=yes
9552       fi
9553     else
9554       lt_cv_prog_compiler_static_works=yes
9555     fi
9556   fi
9557   $RM -r conftest*
9558   LDFLAGS=$save_LDFLAGS
9559
9560fi
9561{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
9562$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
9563
9564if test yes = "$lt_cv_prog_compiler_static_works"; then
9565    :
9566else
9567    lt_prog_compiler_static=
9568fi
9569
9570
9571
9572
9573
9574
9575
9576  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9577$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9578if ${lt_cv_prog_compiler_c_o+:} false; then :
9579  $as_echo_n "(cached) " >&6
9580else
9581  lt_cv_prog_compiler_c_o=no
9582   $RM -r conftest 2>/dev/null
9583   mkdir conftest
9584   cd conftest
9585   mkdir out
9586   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9587
9588   lt_compiler_flag="-o out/conftest2.$ac_objext"
9589   # Insert the option either (1) after the last *FLAGS variable, or
9590   # (2) before a word containing "conftest.", or (3) at the end.
9591   # Note that $ac_compile itself does not contain backslashes and begins
9592   # with a dollar sign (not a hyphen), so the echo should work correctly.
9593   lt_compile=`echo "$ac_compile" | $SED \
9594   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9595   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9596   -e 's:$: $lt_compiler_flag:'`
9597   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9598   (eval "$lt_compile" 2>out/conftest.err)
9599   ac_status=$?
9600   cat out/conftest.err >&5
9601   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9602   if (exit $ac_status) && test -s out/conftest2.$ac_objext
9603   then
9604     # The compiler can only warn and ignore the option if not recognized
9605     # So say no if there are warnings
9606     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9607     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9608     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9609       lt_cv_prog_compiler_c_o=yes
9610     fi
9611   fi
9612   chmod u+w . 2>&5
9613   $RM conftest*
9614   # SGI C++ compiler will create directory out/ii_files/ for
9615   # template instantiation
9616   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9617   $RM out/* && rmdir out
9618   cd ..
9619   $RM -r conftest
9620   $RM conftest*
9621
9622fi
9623{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9624$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9625
9626
9627
9628
9629
9630
9631  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9632$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9633if ${lt_cv_prog_compiler_c_o+:} false; then :
9634  $as_echo_n "(cached) " >&6
9635else
9636  lt_cv_prog_compiler_c_o=no
9637   $RM -r conftest 2>/dev/null
9638   mkdir conftest
9639   cd conftest
9640   mkdir out
9641   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9642
9643   lt_compiler_flag="-o out/conftest2.$ac_objext"
9644   # Insert the option either (1) after the last *FLAGS variable, or
9645   # (2) before a word containing "conftest.", or (3) at the end.
9646   # Note that $ac_compile itself does not contain backslashes and begins
9647   # with a dollar sign (not a hyphen), so the echo should work correctly.
9648   lt_compile=`echo "$ac_compile" | $SED \
9649   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9650   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9651   -e 's:$: $lt_compiler_flag:'`
9652   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9653   (eval "$lt_compile" 2>out/conftest.err)
9654   ac_status=$?
9655   cat out/conftest.err >&5
9656   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9657   if (exit $ac_status) && test -s out/conftest2.$ac_objext
9658   then
9659     # The compiler can only warn and ignore the option if not recognized
9660     # So say no if there are warnings
9661     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9662     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9663     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9664       lt_cv_prog_compiler_c_o=yes
9665     fi
9666   fi
9667   chmod u+w . 2>&5
9668   $RM conftest*
9669   # SGI C++ compiler will create directory out/ii_files/ for
9670   # template instantiation
9671   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9672   $RM out/* && rmdir out
9673   cd ..
9674   $RM -r conftest
9675   $RM conftest*
9676
9677fi
9678{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9679$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9680
9681
9682
9683
9684hard_links=nottested
9685if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
9686  # do not overwrite the value of need_locks provided by the user
9687  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
9688$as_echo_n "checking if we can lock with hard links... " >&6; }
9689  hard_links=yes
9690  $RM conftest*
9691  ln conftest.a conftest.b 2>/dev/null && hard_links=no
9692  touch conftest.a
9693  ln conftest.a conftest.b 2>&5 || hard_links=no
9694  ln conftest.a conftest.b 2>/dev/null && hard_links=no
9695  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
9696$as_echo "$hard_links" >&6; }
9697  if test no = "$hard_links"; then
9698    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
9699$as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
9700    need_locks=warn
9701  fi
9702else
9703  need_locks=no
9704fi
9705
9706
9707
9708
9709
9710
9711  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9712$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9713
9714  runpath_var=
9715  allow_undefined_flag=
9716  always_export_symbols=no
9717  archive_cmds=
9718  archive_expsym_cmds=
9719  compiler_needs_object=no
9720  enable_shared_with_static_runtimes=no
9721  export_dynamic_flag_spec=
9722  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9723  hardcode_automatic=no
9724  hardcode_direct=no
9725  hardcode_direct_absolute=no
9726  hardcode_libdir_flag_spec=
9727  hardcode_libdir_separator=
9728  hardcode_minus_L=no
9729  hardcode_shlibpath_var=unsupported
9730  inherit_rpath=no
9731  link_all_deplibs=unknown
9732  module_cmds=
9733  module_expsym_cmds=
9734  old_archive_from_new_cmds=
9735  old_archive_from_expsyms_cmds=
9736  thread_safe_flag_spec=
9737  whole_archive_flag_spec=
9738  # include_expsyms should be a list of space-separated symbols to be *always*
9739  # included in the symbol list
9740  include_expsyms=
9741  # exclude_expsyms can be an extended regexp of symbols to exclude
9742  # it will be wrapped by ' (' and ')$', so one must not match beginning or
9743  # end of line.  Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
9744  # as well as any symbol that contains 'd'.
9745  exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9746  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9747  # platforms (ab)use it in PIC code, but their linkers get confused if
9748  # the symbol is explicitly referenced.  Since portable code cannot
9749  # rely on this symbol name, it's probably fine to never include it in
9750  # preloaded symbol tables.
9751  # Exclude shared library initialization/finalization symbols.
9752  extract_expsyms_cmds=
9753
9754  case $host_os in
9755  cygwin* | mingw* | pw32* | cegcc*)
9756    # FIXME: the MSVC++ port hasn't been tested in a loooong time
9757    # When not using gcc, we currently assume that we are using
9758    # Microsoft Visual C++.
9759    if test yes != "$GCC"; then
9760      with_gnu_ld=no
9761    fi
9762    ;;
9763  interix*)
9764    # we just hope/assume this is gcc and not c89 (= MSVC++)
9765    with_gnu_ld=yes
9766    ;;
9767  openbsd* | bitrig*)
9768    with_gnu_ld=no
9769    ;;
9770  esac
9771
9772  ld_shlibs=yes
9773
9774  # On some targets, GNU ld is compatible enough with the native linker
9775  # that we're better off using the native interface for both.
9776  lt_use_gnu_ld_interface=no
9777  if test yes = "$with_gnu_ld"; then
9778    case $host_os in
9779      aix*)
9780	# The AIX port of GNU ld has always aspired to compatibility
9781	# with the native linker.  However, as the warning in the GNU ld
9782	# block says, versions before 2.19.5* couldn't really create working
9783	# shared libraries, regardless of the interface used.
9784	case `$LD -v 2>&1` in
9785	  *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
9786	  *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
9787	  *\ \(GNU\ Binutils\)\ [3-9]*) ;;
9788	  *)
9789	    lt_use_gnu_ld_interface=yes
9790	    ;;
9791	esac
9792	;;
9793      *)
9794	lt_use_gnu_ld_interface=yes
9795	;;
9796    esac
9797  fi
9798
9799  if test yes = "$lt_use_gnu_ld_interface"; then
9800    # If archive_cmds runs LD, not CC, wlarc should be empty
9801    wlarc='$wl'
9802
9803    # Set some defaults for GNU ld with shared library support. These
9804    # are reset later if shared libraries are not supported. Putting them
9805    # here allows them to be overridden if necessary.
9806    runpath_var=LD_RUN_PATH
9807    hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9808    export_dynamic_flag_spec='$wl--export-dynamic'
9809    # ancient GNU ld didn't support --whole-archive et. al.
9810    if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9811      whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
9812    else
9813      whole_archive_flag_spec=
9814    fi
9815    supports_anon_versioning=no
9816    case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in
9817      *GNU\ gold*) supports_anon_versioning=yes ;;
9818      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9819      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9820      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9821      *\ 2.11.*) ;; # other 2.11 versions
9822      *) supports_anon_versioning=yes ;;
9823    esac
9824
9825    # See if GNU ld supports shared libraries.
9826    case $host_os in
9827    aix[3-9]*)
9828      # On AIX/PPC, the GNU linker is very broken
9829      if test ia64 != "$host_cpu"; then
9830	ld_shlibs=no
9831	cat <<_LT_EOF 1>&2
9832
9833*** Warning: the GNU linker, at least up to release 2.19, is reported
9834*** to be unable to reliably create shared libraries on AIX.
9835*** Therefore, libtool is disabling shared libraries support.  If you
9836*** really care for shared libraries, you may want to install binutils
9837*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9838*** You will then need to restart the configuration process.
9839
9840_LT_EOF
9841      fi
9842      ;;
9843
9844    amigaos*)
9845      case $host_cpu in
9846      powerpc)
9847            # see comment about AmigaOS4 .so support
9848            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9849            archive_expsym_cmds=''
9850        ;;
9851      m68k)
9852            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)'
9853            hardcode_libdir_flag_spec='-L$libdir'
9854            hardcode_minus_L=yes
9855        ;;
9856      esac
9857      ;;
9858
9859    beos*)
9860      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9861	allow_undefined_flag=unsupported
9862	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9863	# support --undefined.  This deserves some investigation.  FIXME
9864	archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9865      else
9866	ld_shlibs=no
9867      fi
9868      ;;
9869
9870    cygwin* | mingw* | pw32* | cegcc*)
9871      # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9872      # as there is no search path for DLLs.
9873      hardcode_libdir_flag_spec='-L$libdir'
9874      export_dynamic_flag_spec='$wl--export-all-symbols'
9875      allow_undefined_flag=unsupported
9876      always_export_symbols=no
9877      enable_shared_with_static_runtimes=yes
9878      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'
9879      exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
9880
9881      if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9882        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9883	# If the export-symbols file already is a .def file, use it as
9884	# is; otherwise, prepend EXPORTS...
9885	archive_expsym_cmds='if   test DEF = "`$SED -n     -e '\''s/^[	 ]*//'\''     -e '\''/^\(;.*\)*$/d'\''     -e '\''s/^\(EXPORTS\|LIBRARY\)\([	 ].*\)*$/DEF/p'\''     -e q     $export_symbols`" ; then
9886          cp $export_symbols $output_objdir/$soname.def;
9887        else
9888          echo EXPORTS > $output_objdir/$soname.def;
9889          cat $export_symbols >> $output_objdir/$soname.def;
9890        fi~
9891        $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9892      else
9893	ld_shlibs=no
9894      fi
9895      ;;
9896
9897    haiku*)
9898      archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9899      link_all_deplibs=yes
9900      ;;
9901
9902    os2*)
9903      hardcode_libdir_flag_spec='-L$libdir'
9904      hardcode_minus_L=yes
9905      allow_undefined_flag=unsupported
9906      shrext_cmds=.dll
9907      archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
9908	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
9909	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
9910	$ECHO EXPORTS >> $output_objdir/$libname.def~
9911	emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
9912	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
9913	emximp -o $lib $output_objdir/$libname.def'
9914      archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
9915	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
9916	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
9917	$ECHO EXPORTS >> $output_objdir/$libname.def~
9918	prefix_cmds="$SED"~
9919	if test EXPORTS = "`$SED 1q $export_symbols`"; then
9920	  prefix_cmds="$prefix_cmds -e 1d";
9921	fi~
9922	prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
9923	cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
9924	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
9925	emximp -o $lib $output_objdir/$libname.def'
9926      old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
9927      enable_shared_with_static_runtimes=yes
9928      ;;
9929
9930    interix[3-9]*)
9931      hardcode_direct=no
9932      hardcode_shlibpath_var=no
9933      hardcode_libdir_flag_spec='$wl-rpath,$libdir'
9934      export_dynamic_flag_spec='$wl-E'
9935      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9936      # Instead, shared libraries are loaded at an image base (0x10000000 by
9937      # default) and relocated if they conflict, which is a slow very memory
9938      # consuming and fragmenting process.  To avoid this, we pick a random,
9939      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9940      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
9941      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9942      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'
9943      ;;
9944
9945    gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
9946      tmp_diet=no
9947      if test linux-dietlibc = "$host_os"; then
9948	case $cc_basename in
9949	  diet\ *) tmp_diet=yes;;	# linux-dietlibc with static linking (!diet-dyn)
9950	esac
9951      fi
9952      if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9953	 && test no = "$tmp_diet"
9954      then
9955	tmp_addflag=' $pic_flag'
9956	tmp_sharedflag='-shared'
9957	case $cc_basename,$host_cpu in
9958        pgcc*)				# Portland Group C compiler
9959	  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'
9960	  tmp_addflag=' $pic_flag'
9961	  ;;
9962	pgf77* | pgf90* | pgf95* | pgfortran*)
9963					# Portland Group f77 and f90 compilers
9964	  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'
9965	  tmp_addflag=' $pic_flag -Mnomain' ;;
9966	ecc*,ia64* | icc*,ia64*)	# Intel C compiler on ia64
9967	  tmp_addflag=' -i_dynamic' ;;
9968	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
9969	  tmp_addflag=' -i_dynamic -nofor_main' ;;
9970	ifc* | ifort*)			# Intel Fortran compiler
9971	  tmp_addflag=' -nofor_main' ;;
9972	lf95*)				# Lahey Fortran 8.1
9973	  whole_archive_flag_spec=
9974	  tmp_sharedflag='--shared' ;;
9975        nagfor*)                        # NAGFOR 5.3
9976          tmp_sharedflag='-Wl,-shared' ;;
9977	xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9978	  tmp_sharedflag='-qmkshrobj'
9979	  tmp_addflag= ;;
9980	nvcc*)	# Cuda Compiler Driver 2.2
9981	  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'
9982	  compiler_needs_object=yes
9983	  ;;
9984	esac
9985	case `$CC -V 2>&1 | sed 5q` in
9986	*Sun\ C*)			# Sun C 5.9
9987	  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'
9988	  compiler_needs_object=yes
9989	  tmp_sharedflag='-G' ;;
9990	*Sun\ F*)			# Sun Fortran 8.3
9991	  tmp_sharedflag='-G' ;;
9992	esac
9993	archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9994
9995        if test yes = "$supports_anon_versioning"; then
9996          archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9997            cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9998            echo "local: *; };" >> $output_objdir/$libname.ver~
9999            $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
10000        fi
10001
10002	case $cc_basename in
10003	tcc*)
10004	  export_dynamic_flag_spec='-rdynamic'
10005	  ;;
10006	xlf* | bgf* | bgxlf* | mpixlf*)
10007	  # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
10008	  whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
10009	  hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10010	  archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
10011	  if test yes = "$supports_anon_versioning"; then
10012	    archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10013              cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10014              echo "local: *; };" >> $output_objdir/$libname.ver~
10015              $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
10016	  fi
10017	  ;;
10018	esac
10019      else
10020        ld_shlibs=no
10021      fi
10022      ;;
10023
10024    netbsd*)
10025      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10026	archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
10027	wlarc=
10028      else
10029	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10030	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10031      fi
10032      ;;
10033
10034    solaris*)
10035      if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
10036	ld_shlibs=no
10037	cat <<_LT_EOF 1>&2
10038
10039*** Warning: The releases 2.8.* of the GNU linker cannot reliably
10040*** create shared libraries on Solaris systems.  Therefore, libtool
10041*** is disabling shared libraries support.  We urge you to upgrade GNU
10042*** binutils to release 2.9.1 or newer.  Another option is to modify
10043*** your PATH or compiler configuration so that the native linker is
10044*** used, and then restart.
10045
10046_LT_EOF
10047      elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10048	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10049	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10050      else
10051	ld_shlibs=no
10052      fi
10053      ;;
10054
10055    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
10056      case `$LD -v 2>&1` in
10057        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
10058	ld_shlibs=no
10059	cat <<_LT_EOF 1>&2
10060
10061*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
10062*** reliably create shared libraries on SCO systems.  Therefore, libtool
10063*** is disabling shared libraries support.  We urge you to upgrade GNU
10064*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
10065*** your PATH or compiler configuration so that the native linker is
10066*** used, and then restart.
10067
10068_LT_EOF
10069	;;
10070	*)
10071	  # For security reasons, it is highly recommended that you always
10072	  # use absolute paths for naming shared libraries, and exclude the
10073	  # DT_RUNPATH tag from executables and libraries.  But doing so
10074	  # requires that you compile everything twice, which is a pain.
10075	  if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10076	    hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10077	    archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10078	    archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10079	  else
10080	    ld_shlibs=no
10081	  fi
10082	;;
10083      esac
10084      ;;
10085
10086    sunos4*)
10087      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10088      wlarc=
10089      hardcode_direct=yes
10090      hardcode_shlibpath_var=no
10091      ;;
10092
10093    *)
10094      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10095	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10096	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10097      else
10098	ld_shlibs=no
10099      fi
10100      ;;
10101    esac
10102
10103    if test no = "$ld_shlibs"; then
10104      runpath_var=
10105      hardcode_libdir_flag_spec=
10106      export_dynamic_flag_spec=
10107      whole_archive_flag_spec=
10108    fi
10109  else
10110    # PORTME fill in a description of your system's linker (not GNU ld)
10111    case $host_os in
10112    aix3*)
10113      allow_undefined_flag=unsupported
10114      always_export_symbols=yes
10115      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'
10116      # Note: this linker hardcodes the directories in LIBPATH if there
10117      # are no directories specified by -L.
10118      hardcode_minus_L=yes
10119      if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
10120	# Neither direct hardcoding nor static linking is supported with a
10121	# broken collect2.
10122	hardcode_direct=unsupported
10123      fi
10124      ;;
10125
10126    aix[4-9]*)
10127      if test ia64 = "$host_cpu"; then
10128	# On IA64, the linker does run time linking by default, so we don't
10129	# have to do anything special.
10130	aix_use_runtimelinking=no
10131	exp_sym_flag='-Bexport'
10132	no_entry_flag=
10133      else
10134	# If we're using GNU nm, then we don't want the "-C" option.
10135	# -C means demangle to GNU nm, but means don't demangle to AIX nm.
10136	# Without the "-l" option, or with the "-B" option, AIX nm treats
10137	# weak defined symbols like other global defined symbols, whereas
10138	# GNU nm marks them as "W".
10139	# While the 'weak' keyword is ignored in the Export File, we need
10140	# it in the Import File for the 'aix-soname' feature, so we have
10141	# to replace the "-B" option with "-P" for AIX nm.
10142	if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
10143	  export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { if (\$ 2 == "W") { print \$ 3 " weak" } else { print \$ 3 } } }'\'' | sort -u > $export_symbols'
10144	else
10145	  export_symbols_cmds='`func_echo_all $NM | $SED -e '\''s/B\([^B]*\)$/P\1/'\''` -PCpgl $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) && (substr(\$ 1,1,1) != ".")) { if ((\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) { print \$ 1 " weak" } else { print \$ 1 } } }'\'' | sort -u > $export_symbols'
10146	fi
10147	aix_use_runtimelinking=no
10148
10149	# Test if we are trying to use run time linking or normal
10150	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
10151	# have runtime linking enabled, and use it for executables.
10152	# For shared libraries, we enable/disable runtime linking
10153	# depending on the kind of the shared library created -
10154	# when "with_aix_soname,aix_use_runtimelinking" is:
10155	# "aix,no"   lib.a(lib.so.V) shared, rtl:no,  for executables
10156	# "aix,yes"  lib.so          shared, rtl:yes, for executables
10157	#            lib.a           static archive
10158	# "both,no"  lib.so.V(shr.o) shared, rtl:yes
10159	#            lib.a(lib.so.V) shared, rtl:no,  for executables
10160	# "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
10161	#            lib.a(lib.so.V) shared, rtl:no
10162	# "svr4,*"   lib.so.V(shr.o) shared, rtl:yes, for executables
10163	#            lib.a           static archive
10164	case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
10165	  for ld_flag in $LDFLAGS; do
10166	  if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
10167	    aix_use_runtimelinking=yes
10168	    break
10169	  fi
10170	  done
10171	  if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
10172	    # With aix-soname=svr4, we create the lib.so.V shared archives only,
10173	    # so we don't have lib.a shared libs to link our executables.
10174	    # We have to force runtime linking in this case.
10175	    aix_use_runtimelinking=yes
10176	    LDFLAGS="$LDFLAGS -Wl,-brtl"
10177	  fi
10178	  ;;
10179	esac
10180
10181	exp_sym_flag='-bexport'
10182	no_entry_flag='-bnoentry'
10183      fi
10184
10185      # When large executables or shared objects are built, AIX ld can
10186      # have problems creating the table of contents.  If linking a library
10187      # or program results in "error TOC overflow" add -mminimal-toc to
10188      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
10189      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10190
10191      archive_cmds=''
10192      hardcode_direct=yes
10193      hardcode_direct_absolute=yes
10194      hardcode_libdir_separator=':'
10195      link_all_deplibs=yes
10196      file_list_spec='$wl-f,'
10197      case $with_aix_soname,$aix_use_runtimelinking in
10198      aix,*) ;; # traditional, no import file
10199      svr4,* | *,yes) # use import file
10200	# The Import File defines what to hardcode.
10201	hardcode_direct=no
10202	hardcode_direct_absolute=no
10203	;;
10204      esac
10205
10206      if test yes = "$GCC"; then
10207	case $host_os in aix4.[012]|aix4.[012].*)
10208	# We only want to do this on AIX 4.2 and lower, the check
10209	# below for broken collect2 doesn't work under 4.3+
10210	  collect2name=`$CC -print-prog-name=collect2`
10211	  if test -f "$collect2name" &&
10212	   strings "$collect2name" | $GREP resolve_lib_name >/dev/null
10213	  then
10214	  # We have reworked collect2
10215	  :
10216	  else
10217	  # We have old collect2
10218	  hardcode_direct=unsupported
10219	  # It fails to find uninstalled libraries when the uninstalled
10220	  # path is not listed in the libpath.  Setting hardcode_minus_L
10221	  # to unsupported forces relinking
10222	  hardcode_minus_L=yes
10223	  hardcode_libdir_flag_spec='-L$libdir'
10224	  hardcode_libdir_separator=
10225	  fi
10226	  ;;
10227	esac
10228	shared_flag='-shared'
10229	if test yes = "$aix_use_runtimelinking"; then
10230	  shared_flag="$shared_flag "'$wl-G'
10231	fi
10232	# Need to ensure runtime linking is disabled for the traditional
10233	# shared library, or the linker may eventually find shared libraries
10234	# /with/ Import File - we do not want to mix them.
10235	shared_flag_aix='-shared'
10236	shared_flag_svr4='-shared $wl-G'
10237      else
10238	# not using gcc
10239	if test ia64 = "$host_cpu"; then
10240	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10241	# chokes on -Wl,-G. The following line is correct:
10242	  shared_flag='-G'
10243	else
10244	  if test yes = "$aix_use_runtimelinking"; then
10245	    shared_flag='$wl-G'
10246	  else
10247	    shared_flag='$wl-bM:SRE'
10248	  fi
10249	  shared_flag_aix='$wl-bM:SRE'
10250	  shared_flag_svr4='$wl-G'
10251	fi
10252      fi
10253
10254      export_dynamic_flag_spec='$wl-bexpall'
10255      # It seems that -bexpall does not export symbols beginning with
10256      # underscore (_), so it is better to generate a list of symbols to export.
10257      always_export_symbols=yes
10258      if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
10259	# Warning - without using the other runtime loading flags (-brtl),
10260	# -berok will link without error, but may produce a broken library.
10261	allow_undefined_flag='-berok'
10262        # Determine the default libpath from the value encoded in an
10263        # empty executable.
10264        if test set = "${lt_cv_aix_libpath+set}"; then
10265  aix_libpath=$lt_cv_aix_libpath
10266else
10267  if ${lt_cv_aix_libpath_+:} false; then :
10268  $as_echo_n "(cached) " >&6
10269else
10270  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10271/* end confdefs.h.  */
10272
10273int
10274main ()
10275{
10276
10277  ;
10278  return 0;
10279}
10280_ACEOF
10281if ac_fn_c_try_link "$LINENO"; then :
10282
10283  lt_aix_libpath_sed='
10284      /Import File Strings/,/^$/ {
10285	  /^0/ {
10286	      s/^0  *\([^ ]*\) *$/\1/
10287	      p
10288	  }
10289      }'
10290  lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10291  # Check for a 64-bit object if we didn't find anything.
10292  if test -z "$lt_cv_aix_libpath_"; then
10293    lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10294  fi
10295fi
10296rm -f core conftest.err conftest.$ac_objext \
10297    conftest$ac_exeext conftest.$ac_ext
10298  if test -z "$lt_cv_aix_libpath_"; then
10299    lt_cv_aix_libpath_=/usr/lib:/lib
10300  fi
10301
10302fi
10303
10304  aix_libpath=$lt_cv_aix_libpath_
10305fi
10306
10307        hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
10308        archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs $wl'$no_entry_flag' $compiler_flags `if test -n "$allow_undefined_flag"; then func_echo_all "$wl$allow_undefined_flag"; else :; fi` $wl'$exp_sym_flag:\$export_symbols' '$shared_flag
10309      else
10310	if test ia64 = "$host_cpu"; then
10311	  hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
10312	  allow_undefined_flag="-z nodefs"
10313	  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"
10314	else
10315	 # Determine the default libpath from the value encoded in an
10316	 # empty executable.
10317	 if test set = "${lt_cv_aix_libpath+set}"; then
10318  aix_libpath=$lt_cv_aix_libpath
10319else
10320  if ${lt_cv_aix_libpath_+:} false; then :
10321  $as_echo_n "(cached) " >&6
10322else
10323  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10324/* end confdefs.h.  */
10325
10326int
10327main ()
10328{
10329
10330  ;
10331  return 0;
10332}
10333_ACEOF
10334if ac_fn_c_try_link "$LINENO"; then :
10335
10336  lt_aix_libpath_sed='
10337      /Import File Strings/,/^$/ {
10338	  /^0/ {
10339	      s/^0  *\([^ ]*\) *$/\1/
10340	      p
10341	  }
10342      }'
10343  lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10344  # Check for a 64-bit object if we didn't find anything.
10345  if test -z "$lt_cv_aix_libpath_"; then
10346    lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10347  fi
10348fi
10349rm -f core conftest.err conftest.$ac_objext \
10350    conftest$ac_exeext conftest.$ac_ext
10351  if test -z "$lt_cv_aix_libpath_"; then
10352    lt_cv_aix_libpath_=/usr/lib:/lib
10353  fi
10354
10355fi
10356
10357  aix_libpath=$lt_cv_aix_libpath_
10358fi
10359
10360	 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
10361	  # Warning - without using the other run time loading flags,
10362	  # -berok will link without error, but may produce a broken library.
10363	  no_undefined_flag=' $wl-bernotok'
10364	  allow_undefined_flag=' $wl-berok'
10365	  if test yes = "$with_gnu_ld"; then
10366	    # We only use this code for GNU lds that support --whole-archive.
10367	    whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
10368	  else
10369	    # Exported symbols can be pulled into shared objects from archives
10370	    whole_archive_flag_spec='$convenience'
10371	  fi
10372	  archive_cmds_need_lc=yes
10373	  archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
10374	  # -brtl affects multiple linker settings, -berok does not and is overridden later
10375	  compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
10376	  if test svr4 != "$with_aix_soname"; then
10377	    # This is similar to how AIX traditionally builds its shared libraries.
10378	    archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_aix' -o $output_objdir/$realname.d/$soname $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$realname.d/$soname'
10379	  fi
10380	  if test aix != "$with_aix_soname"; then
10381	    archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_svr4' -o $output_objdir/$realname.d/$shared_archive_member_spec.o $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$STRIP -e $output_objdir/$realname.d/$shared_archive_member_spec.o~( func_echo_all "#! $soname($shared_archive_member_spec.o)"; if test shr_64 = "$shared_archive_member_spec"; then func_echo_all "# 64"; else func_echo_all "# 32"; fi; cat $export_symbols ) > $output_objdir/$realname.d/$shared_archive_member_spec.imp~$AR $AR_FLAGS $output_objdir/$soname $output_objdir/$realname.d/$shared_archive_member_spec.o $output_objdir/$realname.d/$shared_archive_member_spec.imp'
10382	  else
10383	    # used by -dlpreopen to get the symbols
10384	    archive_expsym_cmds="$archive_expsym_cmds"'~$MV  $output_objdir/$realname.d/$soname $output_objdir'
10385	  fi
10386	  archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
10387	fi
10388      fi
10389      ;;
10390
10391    amigaos*)
10392      case $host_cpu in
10393      powerpc)
10394            # see comment about AmigaOS4 .so support
10395            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10396            archive_expsym_cmds=''
10397        ;;
10398      m68k)
10399            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)'
10400            hardcode_libdir_flag_spec='-L$libdir'
10401            hardcode_minus_L=yes
10402        ;;
10403      esac
10404      ;;
10405
10406    bsdi[45]*)
10407      export_dynamic_flag_spec=-rdynamic
10408      ;;
10409
10410    cygwin* | mingw* | pw32* | cegcc*)
10411      # When not using gcc, we currently assume that we are using
10412      # Microsoft Visual C++.
10413      # hardcode_libdir_flag_spec is actually meaningless, as there is
10414      # no search path for DLLs.
10415      case $cc_basename in
10416      cl*)
10417	# Native MSVC
10418	hardcode_libdir_flag_spec=' '
10419	allow_undefined_flag=unsupported
10420	always_export_symbols=yes
10421	file_list_spec='@'
10422	# Tell ltmain to make .lib files, not .a files.
10423	libext=lib
10424	# Tell ltmain to make .dll files, not .so files.
10425	shrext_cmds=.dll
10426	# FIXME: Setting linknames here is a bad hack.
10427	archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
10428	archive_expsym_cmds='if   test DEF = "`$SED -n     -e '\''s/^[	 ]*//'\''     -e '\''/^\(;.*\)*$/d'\''     -e '\''s/^\(EXPORTS\|LIBRARY\)\([	 ].*\)*$/DEF/p'\''     -e q     $export_symbols`" ; then
10429            cp "$export_symbols" "$output_objdir/$soname.def";
10430            echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
10431          else
10432            $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
10433          fi~
10434          $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
10435          linknames='
10436	# The linker will not automatically build a static lib if we build a DLL.
10437	# _LT_TAGVAR(old_archive_from_new_cmds, )='true'
10438	enable_shared_with_static_runtimes=yes
10439	exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
10440	export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
10441	# Don't use ranlib
10442	old_postinstall_cmds='chmod 644 $oldlib'
10443	postlink_cmds='lt_outputfile="@OUTPUT@"~
10444          lt_tool_outputfile="@TOOL_OUTPUT@"~
10445          case $lt_outputfile in
10446            *.exe|*.EXE) ;;
10447            *)
10448              lt_outputfile=$lt_outputfile.exe
10449              lt_tool_outputfile=$lt_tool_outputfile.exe
10450              ;;
10451          esac~
10452          if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
10453            $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
10454            $RM "$lt_outputfile.manifest";
10455          fi'
10456	;;
10457      *)
10458	# Assume MSVC wrapper
10459	hardcode_libdir_flag_spec=' '
10460	allow_undefined_flag=unsupported
10461	# Tell ltmain to make .lib files, not .a files.
10462	libext=lib
10463	# Tell ltmain to make .dll files, not .so files.
10464	shrext_cmds=.dll
10465	# FIXME: Setting linknames here is a bad hack.
10466	archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
10467	# The linker will automatically build a .lib file if we build a DLL.
10468	old_archive_from_new_cmds='true'
10469	# FIXME: Should let the user specify the lib program.
10470	old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
10471	enable_shared_with_static_runtimes=yes
10472	;;
10473      esac
10474      ;;
10475
10476    darwin* | rhapsody*)
10477
10478
10479  archive_cmds_need_lc=no
10480  hardcode_direct=no
10481  hardcode_automatic=yes
10482  hardcode_shlibpath_var=unsupported
10483  if test yes = "$lt_cv_ld_force_load"; then
10484    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\"`'
10485
10486  else
10487    whole_archive_flag_spec=''
10488  fi
10489  link_all_deplibs=yes
10490  allow_undefined_flag=$_lt_dar_allow_undefined
10491  case $cc_basename in
10492     ifort*|nagfor*) _lt_dar_can_shared=yes ;;
10493     *) _lt_dar_can_shared=$GCC ;;
10494  esac
10495  if test yes = "$_lt_dar_can_shared"; then
10496    output_verbose_link_cmd=func_echo_all
10497    archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
10498    module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
10499    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"
10500    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"
10501
10502  else
10503  ld_shlibs=no
10504  fi
10505
10506      ;;
10507
10508    dgux*)
10509      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10510      hardcode_libdir_flag_spec='-L$libdir'
10511      hardcode_shlibpath_var=no
10512      ;;
10513
10514    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
10515    # support.  Future versions do this automatically, but an explicit c++rt0.o
10516    # does not break anything, and helps significantly (at the cost of a little
10517    # extra space).
10518    freebsd2.2*)
10519      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
10520      hardcode_libdir_flag_spec='-R$libdir'
10521      hardcode_direct=yes
10522      hardcode_shlibpath_var=no
10523      ;;
10524
10525    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
10526    freebsd2.*)
10527      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10528      hardcode_direct=yes
10529      hardcode_minus_L=yes
10530      hardcode_shlibpath_var=no
10531      ;;
10532
10533    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
10534    freebsd* | dragonfly*)
10535      archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10536      hardcode_libdir_flag_spec='-R$libdir'
10537      hardcode_direct=yes
10538      hardcode_shlibpath_var=no
10539      ;;
10540
10541    hpux9*)
10542      if test yes = "$GCC"; then
10543	archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag $wl+b $wl$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
10544      else
10545	archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
10546      fi
10547      hardcode_libdir_flag_spec='$wl+b $wl$libdir'
10548      hardcode_libdir_separator=:
10549      hardcode_direct=yes
10550
10551      # hardcode_minus_L: Not really in the search PATH,
10552      # but as the default location of the library.
10553      hardcode_minus_L=yes
10554      export_dynamic_flag_spec='$wl-E'
10555      ;;
10556
10557    hpux10*)
10558      if test yes,no = "$GCC,$with_gnu_ld"; then
10559	archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10560      else
10561	archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10562      fi
10563      if test no = "$with_gnu_ld"; then
10564	hardcode_libdir_flag_spec='$wl+b $wl$libdir'
10565	hardcode_libdir_separator=:
10566	hardcode_direct=yes
10567	hardcode_direct_absolute=yes
10568	export_dynamic_flag_spec='$wl-E'
10569	# hardcode_minus_L: Not really in the search PATH,
10570	# but as the default location of the library.
10571	hardcode_minus_L=yes
10572      fi
10573      ;;
10574
10575    hpux11*)
10576      if test yes,no = "$GCC,$with_gnu_ld"; then
10577	case $host_cpu in
10578	hppa*64*)
10579	  archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
10580	  ;;
10581	ia64*)
10582	  archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10583	  ;;
10584	*)
10585	  archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10586	  ;;
10587	esac
10588      else
10589	case $host_cpu in
10590	hppa*64*)
10591	  archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
10592	  ;;
10593	ia64*)
10594	  archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10595	  ;;
10596	*)
10597
10598	  # Older versions of the 11.00 compiler do not understand -b yet
10599	  # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
10600	  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
10601$as_echo_n "checking if $CC understands -b... " >&6; }
10602if ${lt_cv_prog_compiler__b+:} false; then :
10603  $as_echo_n "(cached) " >&6
10604else
10605  lt_cv_prog_compiler__b=no
10606   save_LDFLAGS=$LDFLAGS
10607   LDFLAGS="$LDFLAGS -b"
10608   echo "$lt_simple_link_test_code" > conftest.$ac_ext
10609   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10610     # The linker can only warn and ignore the option if not recognized
10611     # So say no if there are warnings
10612     if test -s conftest.err; then
10613       # Append any errors to the config.log.
10614       cat conftest.err 1>&5
10615       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10616       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10617       if diff conftest.exp conftest.er2 >/dev/null; then
10618         lt_cv_prog_compiler__b=yes
10619       fi
10620     else
10621       lt_cv_prog_compiler__b=yes
10622     fi
10623   fi
10624   $RM -r conftest*
10625   LDFLAGS=$save_LDFLAGS
10626
10627fi
10628{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
10629$as_echo "$lt_cv_prog_compiler__b" >&6; }
10630
10631if test yes = "$lt_cv_prog_compiler__b"; then
10632    archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10633else
10634    archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10635fi
10636
10637	  ;;
10638	esac
10639      fi
10640      if test no = "$with_gnu_ld"; then
10641	hardcode_libdir_flag_spec='$wl+b $wl$libdir'
10642	hardcode_libdir_separator=:
10643
10644	case $host_cpu in
10645	hppa*64*|ia64*)
10646	  hardcode_direct=no
10647	  hardcode_shlibpath_var=no
10648	  ;;
10649	*)
10650	  hardcode_direct=yes
10651	  hardcode_direct_absolute=yes
10652	  export_dynamic_flag_spec='$wl-E'
10653
10654	  # hardcode_minus_L: Not really in the search PATH,
10655	  # but as the default location of the library.
10656	  hardcode_minus_L=yes
10657	  ;;
10658	esac
10659      fi
10660      ;;
10661
10662    irix5* | irix6* | nonstopux*)
10663      if test yes = "$GCC"; then
10664	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'
10665	# Try to use the -exported_symbol ld option, if it does not
10666	# work, assume that -exports_file does not work either and
10667	# implicitly export all symbols.
10668	# This should be the same for all languages, so no per-tag cache variable.
10669	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
10670$as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
10671if ${lt_cv_irix_exported_symbol+:} false; then :
10672  $as_echo_n "(cached) " >&6
10673else
10674  save_LDFLAGS=$LDFLAGS
10675	   LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
10676	   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10677/* end confdefs.h.  */
10678int foo (void) { return 0; }
10679_ACEOF
10680if ac_fn_c_try_link "$LINENO"; then :
10681  lt_cv_irix_exported_symbol=yes
10682else
10683  lt_cv_irix_exported_symbol=no
10684fi
10685rm -f core conftest.err conftest.$ac_objext \
10686    conftest$ac_exeext conftest.$ac_ext
10687           LDFLAGS=$save_LDFLAGS
10688fi
10689{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
10690$as_echo "$lt_cv_irix_exported_symbol" >&6; }
10691	if test yes = "$lt_cv_irix_exported_symbol"; then
10692          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'
10693	fi
10694      else
10695	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'
10696	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'
10697      fi
10698      archive_cmds_need_lc='no'
10699      hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10700      hardcode_libdir_separator=:
10701      inherit_rpath=yes
10702      link_all_deplibs=yes
10703      ;;
10704
10705    linux*)
10706      case $cc_basename in
10707      tcc*)
10708	# Fabrice Bellard et al's Tiny C Compiler
10709	ld_shlibs=yes
10710	archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10711	;;
10712      esac
10713      ;;
10714
10715    netbsd*)
10716      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10717	archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
10718      else
10719	archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
10720      fi
10721      hardcode_libdir_flag_spec='-R$libdir'
10722      hardcode_direct=yes
10723      hardcode_shlibpath_var=no
10724      ;;
10725
10726    newsos6)
10727      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10728      hardcode_direct=yes
10729      hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10730      hardcode_libdir_separator=:
10731      hardcode_shlibpath_var=no
10732      ;;
10733
10734    *nto* | *qnx*)
10735      ;;
10736
10737    openbsd* | bitrig*)
10738      if test -f /usr/libexec/ld.so; then
10739	hardcode_direct=yes
10740	hardcode_shlibpath_var=no
10741	hardcode_direct_absolute=yes
10742	if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
10743	  archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10744	  archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
10745	  hardcode_libdir_flag_spec='$wl-rpath,$libdir'
10746	  export_dynamic_flag_spec='$wl-E'
10747	else
10748	  archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10749	  hardcode_libdir_flag_spec='$wl-rpath,$libdir'
10750	fi
10751      else
10752	ld_shlibs=no
10753      fi
10754      ;;
10755
10756    os2*)
10757      hardcode_libdir_flag_spec='-L$libdir'
10758      hardcode_minus_L=yes
10759      allow_undefined_flag=unsupported
10760      shrext_cmds=.dll
10761      archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10762	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10763	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10764	$ECHO EXPORTS >> $output_objdir/$libname.def~
10765	emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
10766	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10767	emximp -o $lib $output_objdir/$libname.def'
10768      archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10769	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10770	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10771	$ECHO EXPORTS >> $output_objdir/$libname.def~
10772	prefix_cmds="$SED"~
10773	if test EXPORTS = "`$SED 1q $export_symbols`"; then
10774	  prefix_cmds="$prefix_cmds -e 1d";
10775	fi~
10776	prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
10777	cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
10778	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10779	emximp -o $lib $output_objdir/$libname.def'
10780      old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
10781      enable_shared_with_static_runtimes=yes
10782      ;;
10783
10784    osf3*)
10785      if test yes = "$GCC"; then
10786	allow_undefined_flag=' $wl-expect_unresolved $wl\*'
10787	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'
10788      else
10789	allow_undefined_flag=' -expect_unresolved \*'
10790	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'
10791      fi
10792      archive_cmds_need_lc='no'
10793      hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10794      hardcode_libdir_separator=:
10795      ;;
10796
10797    osf4* | osf5*)	# as osf3* with the addition of -msym flag
10798      if test yes = "$GCC"; then
10799	allow_undefined_flag=' $wl-expect_unresolved $wl\*'
10800	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'
10801	hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10802      else
10803	allow_undefined_flag=' -expect_unresolved \*'
10804	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'
10805	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~
10806          $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'
10807
10808	# Both c and cxx compiler support -rpath directly
10809	hardcode_libdir_flag_spec='-rpath $libdir'
10810      fi
10811      archive_cmds_need_lc='no'
10812      hardcode_libdir_separator=:
10813      ;;
10814
10815    solaris*)
10816      no_undefined_flag=' -z defs'
10817      if test yes = "$GCC"; then
10818	wlarc='$wl'
10819	archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
10820	archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10821          $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'
10822      else
10823	case `$CC -V 2>&1` in
10824	*"Compilers 5.0"*)
10825	  wlarc=''
10826	  archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
10827	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10828            $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10829	  ;;
10830	*)
10831	  wlarc='$wl'
10832	  archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10833	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10834            $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10835	  ;;
10836	esac
10837      fi
10838      hardcode_libdir_flag_spec='-R$libdir'
10839      hardcode_shlibpath_var=no
10840      case $host_os in
10841      solaris2.[0-5] | solaris2.[0-5].*) ;;
10842      *)
10843	# The compiler driver will combine and reorder linker options,
10844	# but understands '-z linker_flag'.  GCC discards it without '$wl',
10845	# but is careful enough not to reorder.
10846	# Supported since Solaris 2.6 (maybe 2.5.1?)
10847	if test yes = "$GCC"; then
10848	  whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
10849	else
10850	  whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10851	fi
10852	;;
10853      esac
10854      link_all_deplibs=yes
10855      ;;
10856
10857    sunos4*)
10858      if test sequent = "$host_vendor"; then
10859	# Use $CC to link under sequent, because it throws in some extra .o
10860	# files that make .init and .fini sections work.
10861	archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10862      else
10863	archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10864      fi
10865      hardcode_libdir_flag_spec='-L$libdir'
10866      hardcode_direct=yes
10867      hardcode_minus_L=yes
10868      hardcode_shlibpath_var=no
10869      ;;
10870
10871    sysv4)
10872      case $host_vendor in
10873	sni)
10874	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10875	  hardcode_direct=yes # is this really true???
10876	;;
10877	siemens)
10878	  ## LD is ld it makes a PLAMLIB
10879	  ## CC just makes a GrossModule.
10880	  archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10881	  reload_cmds='$CC -r -o $output$reload_objs'
10882	  hardcode_direct=no
10883        ;;
10884	motorola)
10885	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10886	  hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10887	;;
10888      esac
10889      runpath_var='LD_RUN_PATH'
10890      hardcode_shlibpath_var=no
10891      ;;
10892
10893    sysv4.3*)
10894      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10895      hardcode_shlibpath_var=no
10896      export_dynamic_flag_spec='-Bexport'
10897      ;;
10898
10899    sysv4*MP*)
10900      if test -d /usr/nec; then
10901	archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10902	hardcode_shlibpath_var=no
10903	runpath_var=LD_RUN_PATH
10904	hardcode_runpath_var=yes
10905	ld_shlibs=yes
10906      fi
10907      ;;
10908
10909    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10910      no_undefined_flag='$wl-z,text'
10911      archive_cmds_need_lc=no
10912      hardcode_shlibpath_var=no
10913      runpath_var='LD_RUN_PATH'
10914
10915      if test yes = "$GCC"; then
10916	archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10917	archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10918      else
10919	archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10920	archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10921      fi
10922      ;;
10923
10924    sysv5* | sco3.2v5* | sco5v6*)
10925      # Note: We CANNOT use -z defs as we might desire, because we do not
10926      # link with -lc, and that would cause any symbols used from libc to
10927      # always be unresolved, which means just about no library would
10928      # ever link correctly.  If we're not using GNU ld we use -z text
10929      # though, which does catch some bad symbols but isn't as heavy-handed
10930      # as -z defs.
10931      no_undefined_flag='$wl-z,text'
10932      allow_undefined_flag='$wl-z,nodefs'
10933      archive_cmds_need_lc=no
10934      hardcode_shlibpath_var=no
10935      hardcode_libdir_flag_spec='$wl-R,$libdir'
10936      hardcode_libdir_separator=':'
10937      link_all_deplibs=yes
10938      export_dynamic_flag_spec='$wl-Bexport'
10939      runpath_var='LD_RUN_PATH'
10940
10941      if test yes = "$GCC"; then
10942	archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10943	archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10944      else
10945	archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10946	archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10947      fi
10948      ;;
10949
10950    uts4*)
10951      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10952      hardcode_libdir_flag_spec='-L$libdir'
10953      hardcode_shlibpath_var=no
10954      ;;
10955
10956    *)
10957      ld_shlibs=no
10958      ;;
10959    esac
10960
10961    if test sni = "$host_vendor"; then
10962      case $host in
10963      sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10964	export_dynamic_flag_spec='$wl-Blargedynsym'
10965	;;
10966      esac
10967    fi
10968  fi
10969
10970{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10971$as_echo "$ld_shlibs" >&6; }
10972test no = "$ld_shlibs" && can_build_shared=no
10973
10974with_gnu_ld=$with_gnu_ld
10975
10976
10977
10978
10979
10980
10981
10982
10983
10984
10985
10986
10987
10988
10989
10990#
10991# Do we need to explicitly link libc?
10992#
10993case "x$archive_cmds_need_lc" in
10994x|xyes)
10995  # Assume -lc should be added
10996  archive_cmds_need_lc=yes
10997
10998  if test yes,yes = "$GCC,$enable_shared"; then
10999    case $archive_cmds in
11000    *'~'*)
11001      # FIXME: we may have to deal with multi-command sequences.
11002      ;;
11003    '$CC '*)
11004      # Test whether the compiler implicitly links with -lc since on some
11005      # systems, -lgcc has to come before -lc. If gcc already passes -lc
11006      # to ld, don't add -lc before -lgcc.
11007      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
11008$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
11009if ${lt_cv_archive_cmds_need_lc+:} false; then :
11010  $as_echo_n "(cached) " >&6
11011else
11012  $RM conftest*
11013	echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11014
11015	if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
11016  (eval $ac_compile) 2>&5
11017  ac_status=$?
11018  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11019  test $ac_status = 0; } 2>conftest.err; then
11020	  soname=conftest
11021	  lib=conftest
11022	  libobjs=conftest.$ac_objext
11023	  deplibs=
11024	  wl=$lt_prog_compiler_wl
11025	  pic_flag=$lt_prog_compiler_pic
11026	  compiler_flags=-v
11027	  linker_flags=-v
11028	  verstring=
11029	  output_objdir=.
11030	  libname=conftest
11031	  lt_save_allow_undefined_flag=$allow_undefined_flag
11032	  allow_undefined_flag=
11033	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
11034  (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
11035  ac_status=$?
11036  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11037  test $ac_status = 0; }
11038	  then
11039	    lt_cv_archive_cmds_need_lc=no
11040	  else
11041	    lt_cv_archive_cmds_need_lc=yes
11042	  fi
11043	  allow_undefined_flag=$lt_save_allow_undefined_flag
11044	else
11045	  cat conftest.err 1>&5
11046	fi
11047	$RM conftest*
11048
11049fi
11050{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
11051$as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
11052      archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
11053      ;;
11054    esac
11055  fi
11056  ;;
11057esac
11058
11059
11060
11061
11062
11063
11064
11065
11066
11067
11068
11069
11070
11071
11072
11073
11074
11075
11076
11077
11078
11079
11080
11081
11082
11083
11084
11085
11086
11087
11088
11089
11090
11091
11092
11093
11094
11095
11096
11097
11098
11099
11100
11101
11102
11103
11104
11105
11106
11107
11108
11109
11110
11111
11112
11113
11114
11115
11116
11117
11118
11119
11120
11121
11122
11123
11124
11125
11126
11127
11128
11129
11130
11131
11132
11133
11134
11135
11136
11137
11138
11139
11140
11141
11142
11143
11144
11145
11146
11147
11148
11149
11150
11151
11152
11153
11154
11155
11156
11157
11158
11159
11160
11161
11162
11163
11164
11165
11166
11167
11168
11169
11170
11171
11172
11173
11174
11175
11176
11177
11178
11179
11180
11181
11182
11183
11184
11185
11186
11187
11188
11189
11190
11191
11192
11193
11194
11195
11196
11197
11198
11199
11200
11201
11202
11203
11204
11205
11206
11207
11208
11209
11210  { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
11211$as_echo_n "checking dynamic linker characteristics... " >&6; }
11212
11213if test yes = "$GCC"; then
11214  case $host_os in
11215    darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
11216    *) lt_awk_arg='/^libraries:/' ;;
11217  esac
11218  case $host_os in
11219    mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
11220    *) lt_sed_strip_eq='s|=/|/|g' ;;
11221  esac
11222  lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
11223  case $lt_search_path_spec in
11224  *\;*)
11225    # if the path contains ";" then we assume it to be the separator
11226    # otherwise default to the standard path separator (i.e. ":") - it is
11227    # assumed that no part of a normal pathname contains ";" but that should
11228    # okay in the real world where ";" in dirpaths is itself problematic.
11229    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
11230    ;;
11231  *)
11232    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
11233    ;;
11234  esac
11235  # Ok, now we have the path, separated by spaces, we can step through it
11236  # and add multilib dir if necessary...
11237  lt_tmp_lt_search_path_spec=
11238  lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
11239  # ...but if some path component already ends with the multilib dir we assume
11240  # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
11241  case "$lt_multi_os_dir; $lt_search_path_spec " in
11242  "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
11243    lt_multi_os_dir=
11244    ;;
11245  esac
11246  for lt_sys_path in $lt_search_path_spec; do
11247    if test -d "$lt_sys_path$lt_multi_os_dir"; then
11248      lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
11249    elif test -n "$lt_multi_os_dir"; then
11250      test -d "$lt_sys_path" && \
11251	lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
11252    fi
11253  done
11254  lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
11255BEGIN {RS = " "; FS = "/|\n";} {
11256  lt_foo = "";
11257  lt_count = 0;
11258  for (lt_i = NF; lt_i > 0; lt_i--) {
11259    if ($lt_i != "" && $lt_i != ".") {
11260      if ($lt_i == "..") {
11261        lt_count++;
11262      } else {
11263        if (lt_count == 0) {
11264          lt_foo = "/" $lt_i lt_foo;
11265        } else {
11266          lt_count--;
11267        }
11268      }
11269    }
11270  }
11271  if (lt_foo != "") { lt_freq[lt_foo]++; }
11272  if (lt_freq[lt_foo] == 1) { print lt_foo; }
11273}'`
11274  # AWK program above erroneously prepends '/' to C:/dos/paths
11275  # for these hosts.
11276  case $host_os in
11277    mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
11278      $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
11279  esac
11280  sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
11281else
11282  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11283fi
11284library_names_spec=
11285libname_spec='lib$name'
11286soname_spec=
11287shrext_cmds=.so
11288postinstall_cmds=
11289postuninstall_cmds=
11290finish_cmds=
11291finish_eval=
11292shlibpath_var=
11293shlibpath_overrides_runpath=unknown
11294version_type=none
11295dynamic_linker="$host_os ld.so"
11296sys_lib_dlsearch_path_spec="/lib /usr/lib"
11297need_lib_prefix=unknown
11298hardcode_into_libs=no
11299
11300# when you set need_version to no, make sure it does not cause -set_version
11301# flags to be left without arguments
11302need_version=unknown
11303
11304
11305
11306case $host_os in
11307aix3*)
11308  version_type=linux # correct to gnu/linux during the next big refactor
11309  library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
11310  shlibpath_var=LIBPATH
11311
11312  # AIX 3 has no versioning support, so we append a major version to the name.
11313  soname_spec='$libname$release$shared_ext$major'
11314  ;;
11315
11316aix[4-9]*)
11317  version_type=linux # correct to gnu/linux during the next big refactor
11318  need_lib_prefix=no
11319  need_version=no
11320  hardcode_into_libs=yes
11321  if test ia64 = "$host_cpu"; then
11322    # AIX 5 supports IA64
11323    library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
11324    shlibpath_var=LD_LIBRARY_PATH
11325  else
11326    # With GCC up to 2.95.x, collect2 would create an import file
11327    # for dependence libraries.  The import file would start with
11328    # the line '#! .'.  This would cause the generated library to
11329    # depend on '.', always an invalid library.  This was fixed in
11330    # development snapshots of GCC prior to 3.0.
11331    case $host_os in
11332      aix4 | aix4.[01] | aix4.[01].*)
11333      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11334	   echo ' yes '
11335	   echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
11336	:
11337      else
11338	can_build_shared=no
11339      fi
11340      ;;
11341    esac
11342    # Using Import Files as archive members, it is possible to support
11343    # filename-based versioning of shared library archives on AIX. While
11344    # this would work for both with and without runtime linking, it will
11345    # prevent static linking of such archives. So we do filename-based
11346    # shared library versioning with .so extension only, which is used
11347    # when both runtime linking and shared linking is enabled.
11348    # Unfortunately, runtime linking may impact performance, so we do
11349    # not want this to be the default eventually. Also, we use the
11350    # versioned .so libs for executables only if there is the -brtl
11351    # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
11352    # To allow for filename-based versioning support, we need to create
11353    # libNAME.so.V as an archive file, containing:
11354    # *) an Import File, referring to the versioned filename of the
11355    #    archive as well as the shared archive member, telling the
11356    #    bitwidth (32 or 64) of that shared object, and providing the
11357    #    list of exported symbols of that shared object, eventually
11358    #    decorated with the 'weak' keyword
11359    # *) the shared object with the F_LOADONLY flag set, to really avoid
11360    #    it being seen by the linker.
11361    # At run time we better use the real file rather than another symlink,
11362    # but for link time we create the symlink libNAME.so -> libNAME.so.V
11363
11364    case $with_aix_soname,$aix_use_runtimelinking in
11365    # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
11366    # soname into executable. Probably we can add versioning support to
11367    # collect2, so additional links can be useful in future.
11368    aix,yes) # traditional libtool
11369      dynamic_linker='AIX unversionable lib.so'
11370      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11371      # instead of lib<name>.a to let people know that these are not
11372      # typical AIX shared libraries.
11373      library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11374      ;;
11375    aix,no) # traditional AIX only
11376      dynamic_linker='AIX lib.a(lib.so.V)'
11377      # We preserve .a as extension for shared libraries through AIX4.2
11378      # and later when we are not doing run time linking.
11379      library_names_spec='$libname$release.a $libname.a'
11380      soname_spec='$libname$release$shared_ext$major'
11381      ;;
11382    svr4,*) # full svr4 only
11383      dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
11384      library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
11385      # We do not specify a path in Import Files, so LIBPATH fires.
11386      shlibpath_overrides_runpath=yes
11387      ;;
11388    *,yes) # both, prefer svr4
11389      dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
11390      library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
11391      # unpreferred sharedlib libNAME.a needs extra handling
11392      postinstall_cmds='test -n "$linkname" || linkname="$realname"~func_stripname "" ".so" "$linkname"~$install_shared_prog "$dir/$func_stripname_result.$libext" "$destdir/$func_stripname_result.$libext"~test -z "$tstripme" || test -z "$striplib" || $striplib "$destdir/$func_stripname_result.$libext"'
11393      postuninstall_cmds='for n in $library_names $old_library; do :; done~func_stripname "" ".so" "$n"~test "$func_stripname_result" = "$n" || func_append rmfiles " $odir/$func_stripname_result.$libext"'
11394      # We do not specify a path in Import Files, so LIBPATH fires.
11395      shlibpath_overrides_runpath=yes
11396      ;;
11397    *,no) # both, prefer aix
11398      dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
11399      library_names_spec='$libname$release.a $libname.a'
11400      soname_spec='$libname$release$shared_ext$major'
11401      # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
11402      postinstall_cmds='test -z "$dlname" || $install_shared_prog $dir/$dlname $destdir/$dlname~test -z "$tstripme" || test -z "$striplib" || $striplib $destdir/$dlname~test -n "$linkname" || linkname=$realname~func_stripname "" ".a" "$linkname"~(cd "$destdir" && $LN_S -f $dlname $func_stripname_result.so)'
11403      postuninstall_cmds='test -z "$dlname" || func_append rmfiles " $odir/$dlname"~for n in $old_library $library_names; do :; done~func_stripname "" ".a" "$n"~func_append rmfiles " $odir/$func_stripname_result.so"'
11404      ;;
11405    esac
11406    shlibpath_var=LIBPATH
11407  fi
11408  ;;
11409
11410amigaos*)
11411  case $host_cpu in
11412  powerpc)
11413    # Since July 2007 AmigaOS4 officially supports .so libraries.
11414    # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
11415    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11416    ;;
11417  m68k)
11418    library_names_spec='$libname.ixlibrary $libname.a'
11419    # Create ${libname}_ixlibrary.a entries in /sys/libs.
11420    finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; $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'
11421    ;;
11422  esac
11423  ;;
11424
11425beos*)
11426  library_names_spec='$libname$shared_ext'
11427  dynamic_linker="$host_os ld.so"
11428  shlibpath_var=LIBRARY_PATH
11429  ;;
11430
11431bsdi[45]*)
11432  version_type=linux # correct to gnu/linux during the next big refactor
11433  need_version=no
11434  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11435  soname_spec='$libname$release$shared_ext$major'
11436  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11437  shlibpath_var=LD_LIBRARY_PATH
11438  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11439  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11440  # the default ld.so.conf also contains /usr/contrib/lib and
11441  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11442  # libtool to hard-code these into programs
11443  ;;
11444
11445cygwin* | mingw* | pw32* | cegcc*)
11446  version_type=windows
11447  shrext_cmds=.dll
11448  need_version=no
11449  need_lib_prefix=no
11450
11451  case $GCC,$cc_basename in
11452  yes,*)
11453    # gcc
11454    library_names_spec='$libname.dll.a'
11455    # DLL is installed to $(libdir)/../bin by postinstall_cmds
11456    postinstall_cmds='base_file=`basename \$file`~
11457      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
11458      dldir=$destdir/`dirname \$dlpath`~
11459      test -d \$dldir || mkdir -p \$dldir~
11460      $install_prog $dir/$dlname \$dldir/$dlname~
11461      chmod a+x \$dldir/$dlname~
11462      if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11463        eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11464      fi'
11465    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11466      dlpath=$dir/\$dldll~
11467       $RM \$dlpath'
11468    shlibpath_overrides_runpath=yes
11469
11470    case $host_os in
11471    cygwin*)
11472      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11473      soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11474
11475      sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
11476      ;;
11477    mingw* | cegcc*)
11478      # MinGW DLLs use traditional 'lib' prefix
11479      soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11480      ;;
11481    pw32*)
11482      # pw32 DLLs use 'pw' prefix rather than 'lib'
11483      library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11484      ;;
11485    esac
11486    dynamic_linker='Win32 ld.exe'
11487    ;;
11488
11489  *,cl*)
11490    # Native MSVC
11491    libname_spec='$name'
11492    soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11493    library_names_spec='$libname.dll.lib'
11494
11495    case $build_os in
11496    mingw*)
11497      sys_lib_search_path_spec=
11498      lt_save_ifs=$IFS
11499      IFS=';'
11500      for lt_path in $LIB
11501      do
11502        IFS=$lt_save_ifs
11503        # Let DOS variable expansion print the short 8.3 style file name.
11504        lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
11505        sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
11506      done
11507      IFS=$lt_save_ifs
11508      # Convert to MSYS style.
11509      sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
11510      ;;
11511    cygwin*)
11512      # Convert to unix form, then to dos form, then back to unix form
11513      # but this time dos style (no spaces!) so that the unix form looks
11514      # like /cygdrive/c/PROGRA~1:/cygdr...
11515      sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
11516      sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
11517      sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11518      ;;
11519    *)
11520      sys_lib_search_path_spec=$LIB
11521      if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
11522        # It is most probably a Windows format PATH.
11523        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11524      else
11525        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11526      fi
11527      # FIXME: find the short name or the path components, as spaces are
11528      # common. (e.g. "Program Files" -> "PROGRA~1")
11529      ;;
11530    esac
11531
11532    # DLL is installed to $(libdir)/../bin by postinstall_cmds
11533    postinstall_cmds='base_file=`basename \$file`~
11534      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
11535      dldir=$destdir/`dirname \$dlpath`~
11536      test -d \$dldir || mkdir -p \$dldir~
11537      $install_prog $dir/$dlname \$dldir/$dlname'
11538    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11539      dlpath=$dir/\$dldll~
11540       $RM \$dlpath'
11541    shlibpath_overrides_runpath=yes
11542    dynamic_linker='Win32 link.exe'
11543    ;;
11544
11545  *)
11546    # Assume MSVC wrapper
11547    library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
11548    dynamic_linker='Win32 ld.exe'
11549    ;;
11550  esac
11551  # FIXME: first we should search . and the directory the executable is in
11552  shlibpath_var=PATH
11553  ;;
11554
11555darwin* | rhapsody*)
11556  dynamic_linker="$host_os dyld"
11557  version_type=darwin
11558  need_lib_prefix=no
11559  need_version=no
11560  library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
11561  soname_spec='$libname$release$major$shared_ext'
11562  shlibpath_overrides_runpath=yes
11563  shlibpath_var=DYLD_LIBRARY_PATH
11564  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
11565
11566  sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
11567  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11568  ;;
11569
11570dgux*)
11571  version_type=linux # correct to gnu/linux during the next big refactor
11572  need_lib_prefix=no
11573  need_version=no
11574  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11575  soname_spec='$libname$release$shared_ext$major'
11576  shlibpath_var=LD_LIBRARY_PATH
11577  ;;
11578
11579freebsd* | dragonfly*)
11580  # DragonFly does not have aout.  When/if they implement a new
11581  # versioning mechanism, adjust this.
11582  if test -x /usr/bin/objformat; then
11583    objformat=`/usr/bin/objformat`
11584  else
11585    case $host_os in
11586    freebsd[23].*) objformat=aout ;;
11587    *) objformat=elf ;;
11588    esac
11589  fi
11590  version_type=freebsd-$objformat
11591  case $version_type in
11592    freebsd-elf*)
11593      library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11594      soname_spec='$libname$release$shared_ext$major'
11595      need_version=no
11596      need_lib_prefix=no
11597      ;;
11598    freebsd-*)
11599      library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11600      need_version=yes
11601      ;;
11602  esac
11603  shlibpath_var=LD_LIBRARY_PATH
11604  case $host_os in
11605  freebsd2.*)
11606    shlibpath_overrides_runpath=yes
11607    ;;
11608  freebsd3.[01]* | freebsdelf3.[01]*)
11609    shlibpath_overrides_runpath=yes
11610    hardcode_into_libs=yes
11611    ;;
11612  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
11613  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
11614    shlibpath_overrides_runpath=no
11615    hardcode_into_libs=yes
11616    ;;
11617  *) # from 4.6 on, and DragonFly
11618    shlibpath_overrides_runpath=yes
11619    hardcode_into_libs=yes
11620    ;;
11621  esac
11622  ;;
11623
11624haiku*)
11625  version_type=linux # correct to gnu/linux during the next big refactor
11626  need_lib_prefix=no
11627  need_version=no
11628  dynamic_linker="$host_os runtime_loader"
11629  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11630  soname_spec='$libname$release$shared_ext$major'
11631  shlibpath_var=LIBRARY_PATH
11632  shlibpath_overrides_runpath=no
11633  sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
11634  hardcode_into_libs=yes
11635  ;;
11636
11637hpux9* | hpux10* | hpux11*)
11638  # Give a soname corresponding to the major version so that dld.sl refuses to
11639  # link against other versions.
11640  version_type=sunos
11641  need_lib_prefix=no
11642  need_version=no
11643  case $host_cpu in
11644  ia64*)
11645    shrext_cmds='.so'
11646    hardcode_into_libs=yes
11647    dynamic_linker="$host_os dld.so"
11648    shlibpath_var=LD_LIBRARY_PATH
11649    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11650    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11651    soname_spec='$libname$release$shared_ext$major'
11652    if test 32 = "$HPUX_IA64_MODE"; then
11653      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11654      sys_lib_dlsearch_path_spec=/usr/lib/hpux32
11655    else
11656      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11657      sys_lib_dlsearch_path_spec=/usr/lib/hpux64
11658    fi
11659    ;;
11660  hppa*64*)
11661    shrext_cmds='.sl'
11662    hardcode_into_libs=yes
11663    dynamic_linker="$host_os dld.sl"
11664    shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11665    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11666    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11667    soname_spec='$libname$release$shared_ext$major'
11668    sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11669    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11670    ;;
11671  *)
11672    shrext_cmds='.sl'
11673    dynamic_linker="$host_os dld.sl"
11674    shlibpath_var=SHLIB_PATH
11675    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11676    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11677    soname_spec='$libname$release$shared_ext$major'
11678    ;;
11679  esac
11680  # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
11681  postinstall_cmds='chmod 555 $lib'
11682  # or fails outright, so override atomically:
11683  install_override_mode=555
11684  ;;
11685
11686interix[3-9]*)
11687  version_type=linux # correct to gnu/linux during the next big refactor
11688  need_lib_prefix=no
11689  need_version=no
11690  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11691  soname_spec='$libname$release$shared_ext$major'
11692  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
11693  shlibpath_var=LD_LIBRARY_PATH
11694  shlibpath_overrides_runpath=no
11695  hardcode_into_libs=yes
11696  ;;
11697
11698irix5* | irix6* | nonstopux*)
11699  case $host_os in
11700    nonstopux*) version_type=nonstopux ;;
11701    *)
11702	if test yes = "$lt_cv_prog_gnu_ld"; then
11703		version_type=linux # correct to gnu/linux during the next big refactor
11704	else
11705		version_type=irix
11706	fi ;;
11707  esac
11708  need_lib_prefix=no
11709  need_version=no
11710  soname_spec='$libname$release$shared_ext$major'
11711  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
11712  case $host_os in
11713  irix5* | nonstopux*)
11714    libsuff= shlibsuff=
11715    ;;
11716  *)
11717    case $LD in # libtool.m4 will add one of these switches to LD
11718    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11719      libsuff= shlibsuff= libmagic=32-bit;;
11720    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11721      libsuff=32 shlibsuff=N32 libmagic=N32;;
11722    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11723      libsuff=64 shlibsuff=64 libmagic=64-bit;;
11724    *) libsuff= shlibsuff= libmagic=never-match;;
11725    esac
11726    ;;
11727  esac
11728  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11729  shlibpath_overrides_runpath=no
11730  sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
11731  sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
11732  hardcode_into_libs=yes
11733  ;;
11734
11735# No shared lib support for Linux oldld, aout, or coff.
11736linux*oldld* | linux*aout* | linux*coff*)
11737  dynamic_linker=no
11738  ;;
11739
11740linux*android*)
11741  version_type=none # Android doesn't support versioned libraries.
11742  need_lib_prefix=no
11743  need_version=no
11744  library_names_spec='$libname$release$shared_ext'
11745  soname_spec='$libname$release$shared_ext'
11746  finish_cmds=
11747  shlibpath_var=LD_LIBRARY_PATH
11748  shlibpath_overrides_runpath=yes
11749
11750  # This implies no fast_install, which is unacceptable.
11751  # Some rework will be needed to allow for fast_install
11752  # before this can be enabled.
11753  hardcode_into_libs=yes
11754
11755  dynamic_linker='Android linker'
11756  # Don't embed -rpath directories since the linker doesn't support them.
11757  hardcode_libdir_flag_spec='-L$libdir'
11758  ;;
11759
11760# This must be glibc/ELF.
11761linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
11762  version_type=linux # correct to gnu/linux during the next big refactor
11763  need_lib_prefix=no
11764  need_version=no
11765  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11766  soname_spec='$libname$release$shared_ext$major'
11767  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11768  shlibpath_var=LD_LIBRARY_PATH
11769  shlibpath_overrides_runpath=no
11770
11771  # Some binutils ld are patched to set DT_RUNPATH
11772  if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
11773  $as_echo_n "(cached) " >&6
11774else
11775  lt_cv_shlibpath_overrides_runpath=no
11776    save_LDFLAGS=$LDFLAGS
11777    save_libdir=$libdir
11778    eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
11779	 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
11780    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11781/* end confdefs.h.  */
11782
11783int
11784main ()
11785{
11786
11787  ;
11788  return 0;
11789}
11790_ACEOF
11791if ac_fn_c_try_link "$LINENO"; then :
11792  if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
11793  lt_cv_shlibpath_overrides_runpath=yes
11794fi
11795fi
11796rm -f core conftest.err conftest.$ac_objext \
11797    conftest$ac_exeext conftest.$ac_ext
11798    LDFLAGS=$save_LDFLAGS
11799    libdir=$save_libdir
11800
11801fi
11802
11803  shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
11804
11805  # This implies no fast_install, which is unacceptable.
11806  # Some rework will be needed to allow for fast_install
11807  # before this can be enabled.
11808  hardcode_into_libs=yes
11809
11810  # Ideally, we could use ldconfig to report *all* directores which are
11811  # searched for libraries, however this is still not possible.  Aside from not
11812  # being certain /sbin/ldconfig is available, command
11813  # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
11814  # even though it is searched at run-time.  Try to do the best guess by
11815  # appending ld.so.conf contents (and includes) to the search path.
11816  if test -f /etc/ld.so.conf; then
11817    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' ' '`
11818    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11819  fi
11820
11821  # We used to test for /lib/ld.so.1 and disable shared libraries on
11822  # powerpc, because MkLinux only supported shared libraries with the
11823  # GNU dynamic linker.  Since this was broken with cross compilers,
11824  # most powerpc-linux boxes support dynamic linking these days and
11825  # people can always --disable-shared, the test was removed, and we
11826  # assume the GNU/Linux dynamic linker is in use.
11827  dynamic_linker='GNU/Linux ld.so'
11828  ;;
11829
11830netbsd*)
11831  version_type=sunos
11832  need_lib_prefix=no
11833  need_version=no
11834  if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11835    library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11836    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11837    dynamic_linker='NetBSD (a.out) ld.so'
11838  else
11839    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11840    soname_spec='$libname$release$shared_ext$major'
11841    dynamic_linker='NetBSD ld.elf_so'
11842  fi
11843  shlibpath_var=LD_LIBRARY_PATH
11844  shlibpath_overrides_runpath=yes
11845  hardcode_into_libs=yes
11846  ;;
11847
11848newsos6)
11849  version_type=linux # correct to gnu/linux during the next big refactor
11850  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11851  shlibpath_var=LD_LIBRARY_PATH
11852  shlibpath_overrides_runpath=yes
11853  ;;
11854
11855*nto* | *qnx*)
11856  version_type=qnx
11857  need_lib_prefix=no
11858  need_version=no
11859  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11860  soname_spec='$libname$release$shared_ext$major'
11861  shlibpath_var=LD_LIBRARY_PATH
11862  shlibpath_overrides_runpath=no
11863  hardcode_into_libs=yes
11864  dynamic_linker='ldqnx.so'
11865  ;;
11866
11867openbsd* | bitrig*)
11868  version_type=sunos
11869  sys_lib_dlsearch_path_spec=/usr/lib
11870  need_lib_prefix=no
11871  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
11872    need_version=no
11873  else
11874    need_version=yes
11875  fi
11876  library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11877  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11878  shlibpath_var=LD_LIBRARY_PATH
11879  shlibpath_overrides_runpath=yes
11880  ;;
11881
11882os2*)
11883  libname_spec='$name'
11884  version_type=windows
11885  shrext_cmds=.dll
11886  need_version=no
11887  need_lib_prefix=no
11888  # OS/2 can only load a DLL with a base name of 8 characters or less.
11889  soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
11890    v=$($ECHO $release$versuffix | tr -d .-);
11891    n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
11892    $ECHO $n$v`$shared_ext'
11893  library_names_spec='${libname}_dll.$libext'
11894  dynamic_linker='OS/2 ld.exe'
11895  shlibpath_var=BEGINLIBPATH
11896  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11897  sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11898  postinstall_cmds='base_file=`basename \$file`~
11899    dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
11900    dldir=$destdir/`dirname \$dlpath`~
11901    test -d \$dldir || mkdir -p \$dldir~
11902    $install_prog $dir/$dlname \$dldir/$dlname~
11903    chmod a+x \$dldir/$dlname~
11904    if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11905      eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11906    fi'
11907  postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
11908    dlpath=$dir/\$dldll~
11909    $RM \$dlpath'
11910  ;;
11911
11912osf3* | osf4* | osf5*)
11913  version_type=osf
11914  need_lib_prefix=no
11915  need_version=no
11916  soname_spec='$libname$release$shared_ext$major'
11917  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11918  shlibpath_var=LD_LIBRARY_PATH
11919  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11920  sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11921  ;;
11922
11923rdos*)
11924  dynamic_linker=no
11925  ;;
11926
11927solaris*)
11928  version_type=linux # correct to gnu/linux during the next big refactor
11929  need_lib_prefix=no
11930  need_version=no
11931  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11932  soname_spec='$libname$release$shared_ext$major'
11933  shlibpath_var=LD_LIBRARY_PATH
11934  shlibpath_overrides_runpath=yes
11935  hardcode_into_libs=yes
11936  # ldd complains unless libraries are executable
11937  postinstall_cmds='chmod +x $lib'
11938  ;;
11939
11940sunos4*)
11941  version_type=sunos
11942  library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11943  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11944  shlibpath_var=LD_LIBRARY_PATH
11945  shlibpath_overrides_runpath=yes
11946  if test yes = "$with_gnu_ld"; then
11947    need_lib_prefix=no
11948  fi
11949  need_version=yes
11950  ;;
11951
11952sysv4 | sysv4.3*)
11953  version_type=linux # correct to gnu/linux during the next big refactor
11954  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11955  soname_spec='$libname$release$shared_ext$major'
11956  shlibpath_var=LD_LIBRARY_PATH
11957  case $host_vendor in
11958    sni)
11959      shlibpath_overrides_runpath=no
11960      need_lib_prefix=no
11961      runpath_var=LD_RUN_PATH
11962      ;;
11963    siemens)
11964      need_lib_prefix=no
11965      ;;
11966    motorola)
11967      need_lib_prefix=no
11968      need_version=no
11969      shlibpath_overrides_runpath=no
11970      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11971      ;;
11972  esac
11973  ;;
11974
11975sysv4*MP*)
11976  if test -d /usr/nec; then
11977    version_type=linux # correct to gnu/linux during the next big refactor
11978    library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
11979    soname_spec='$libname$shared_ext.$major'
11980    shlibpath_var=LD_LIBRARY_PATH
11981  fi
11982  ;;
11983
11984sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11985  version_type=sco
11986  need_lib_prefix=no
11987  need_version=no
11988  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
11989  soname_spec='$libname$release$shared_ext$major'
11990  shlibpath_var=LD_LIBRARY_PATH
11991  shlibpath_overrides_runpath=yes
11992  hardcode_into_libs=yes
11993  if test yes = "$with_gnu_ld"; then
11994    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11995  else
11996    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11997    case $host_os in
11998      sco3.2v5*)
11999        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
12000	;;
12001    esac
12002  fi
12003  sys_lib_dlsearch_path_spec='/usr/lib'
12004  ;;
12005
12006tpf*)
12007  # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
12008  version_type=linux # correct to gnu/linux during the next big refactor
12009  need_lib_prefix=no
12010  need_version=no
12011  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12012  shlibpath_var=LD_LIBRARY_PATH
12013  shlibpath_overrides_runpath=no
12014  hardcode_into_libs=yes
12015  ;;
12016
12017uts4*)
12018  version_type=linux # correct to gnu/linux during the next big refactor
12019  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12020  soname_spec='$libname$release$shared_ext$major'
12021  shlibpath_var=LD_LIBRARY_PATH
12022  ;;
12023
12024*)
12025  dynamic_linker=no
12026  ;;
12027esac
12028{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
12029$as_echo "$dynamic_linker" >&6; }
12030test no = "$dynamic_linker" && can_build_shared=no
12031
12032variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
12033if test yes = "$GCC"; then
12034  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
12035fi
12036
12037if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
12038  sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
12039fi
12040
12041if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
12042  sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
12043fi
12044
12045# remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
12046configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
12047
12048# ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
12049func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
12050
12051# to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
12052configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
12053
12054
12055
12056
12057
12058
12059
12060
12061
12062
12063
12064
12065
12066
12067
12068
12069
12070
12071
12072
12073
12074
12075
12076
12077
12078
12079
12080
12081
12082
12083
12084
12085
12086
12087
12088
12089
12090
12091
12092
12093
12094
12095
12096
12097
12098
12099
12100
12101
12102
12103
12104
12105
12106
12107
12108
12109
12110
12111
12112
12113
12114
12115
12116
12117
12118
12119
12120
12121
12122
12123
12124
12125
12126
12127
12128
12129
12130
12131
12132
12133
12134
12135
12136
12137
12138
12139
12140
12141
12142
12143
12144
12145
12146
12147
12148
12149
12150  { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
12151$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
12152hardcode_action=
12153if test -n "$hardcode_libdir_flag_spec" ||
12154   test -n "$runpath_var" ||
12155   test yes = "$hardcode_automatic"; then
12156
12157  # We can hardcode non-existent directories.
12158  if test no != "$hardcode_direct" &&
12159     # If the only mechanism to avoid hardcoding is shlibpath_var, we
12160     # have to relink, otherwise we might link with an installed library
12161     # when we should be linking with a yet-to-be-installed one
12162     ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
12163     test no != "$hardcode_minus_L"; then
12164    # Linking always hardcodes the temporary library directory.
12165    hardcode_action=relink
12166  else
12167    # We can link without hardcoding, and we can hardcode nonexisting dirs.
12168    hardcode_action=immediate
12169  fi
12170else
12171  # We cannot hardcode anything, or else we can only hardcode existing
12172  # directories.
12173  hardcode_action=unsupported
12174fi
12175{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
12176$as_echo "$hardcode_action" >&6; }
12177
12178if test relink = "$hardcode_action" ||
12179   test yes = "$inherit_rpath"; then
12180  # Fast installation is not supported
12181  enable_fast_install=no
12182elif test yes = "$shlibpath_overrides_runpath" ||
12183     test no = "$enable_shared"; then
12184  # Fast installation is not necessary
12185  enable_fast_install=needless
12186fi
12187
12188
12189
12190
12191
12192
12193  if test yes != "$enable_dlopen"; then
12194  enable_dlopen=unknown
12195  enable_dlopen_self=unknown
12196  enable_dlopen_self_static=unknown
12197else
12198  lt_cv_dlopen=no
12199  lt_cv_dlopen_libs=
12200
12201  case $host_os in
12202  beos*)
12203    lt_cv_dlopen=load_add_on
12204    lt_cv_dlopen_libs=
12205    lt_cv_dlopen_self=yes
12206    ;;
12207
12208  mingw* | pw32* | cegcc*)
12209    lt_cv_dlopen=LoadLibrary
12210    lt_cv_dlopen_libs=
12211    ;;
12212
12213  cygwin*)
12214    lt_cv_dlopen=dlopen
12215    lt_cv_dlopen_libs=
12216    ;;
12217
12218  darwin*)
12219    # if libdl is installed we need to link against it
12220    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12221$as_echo_n "checking for dlopen in -ldl... " >&6; }
12222if ${ac_cv_lib_dl_dlopen+:} false; then :
12223  $as_echo_n "(cached) " >&6
12224else
12225  ac_check_lib_save_LIBS=$LIBS
12226LIBS="-ldl  $LIBS"
12227cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12228/* end confdefs.h.  */
12229
12230/* Override any GCC internal prototype to avoid an error.
12231   Use char because int might match the return type of a GCC
12232   builtin and then its argument prototype would still apply.  */
12233#ifdef __cplusplus
12234extern "C"
12235#endif
12236char dlopen ();
12237int
12238main ()
12239{
12240return dlopen ();
12241  ;
12242  return 0;
12243}
12244_ACEOF
12245if ac_fn_c_try_link "$LINENO"; then :
12246  ac_cv_lib_dl_dlopen=yes
12247else
12248  ac_cv_lib_dl_dlopen=no
12249fi
12250rm -f core conftest.err conftest.$ac_objext \
12251    conftest$ac_exeext conftest.$ac_ext
12252LIBS=$ac_check_lib_save_LIBS
12253fi
12254{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12255$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12256if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
12257  lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
12258else
12259
12260    lt_cv_dlopen=dyld
12261    lt_cv_dlopen_libs=
12262    lt_cv_dlopen_self=yes
12263
12264fi
12265
12266    ;;
12267
12268  tpf*)
12269    # Don't try to run any link tests for TPF.  We know it's impossible
12270    # because TPF is a cross-compiler, and we know how we open DSOs.
12271    lt_cv_dlopen=dlopen
12272    lt_cv_dlopen_libs=
12273    lt_cv_dlopen_self=no
12274    ;;
12275
12276  *)
12277    ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
12278if test "x$ac_cv_func_shl_load" = xyes; then :
12279  lt_cv_dlopen=shl_load
12280else
12281  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
12282$as_echo_n "checking for shl_load in -ldld... " >&6; }
12283if ${ac_cv_lib_dld_shl_load+:} false; then :
12284  $as_echo_n "(cached) " >&6
12285else
12286  ac_check_lib_save_LIBS=$LIBS
12287LIBS="-ldld  $LIBS"
12288cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12289/* end confdefs.h.  */
12290
12291/* Override any GCC internal prototype to avoid an error.
12292   Use char because int might match the return type of a GCC
12293   builtin and then its argument prototype would still apply.  */
12294#ifdef __cplusplus
12295extern "C"
12296#endif
12297char shl_load ();
12298int
12299main ()
12300{
12301return shl_load ();
12302  ;
12303  return 0;
12304}
12305_ACEOF
12306if ac_fn_c_try_link "$LINENO"; then :
12307  ac_cv_lib_dld_shl_load=yes
12308else
12309  ac_cv_lib_dld_shl_load=no
12310fi
12311rm -f core conftest.err conftest.$ac_objext \
12312    conftest$ac_exeext conftest.$ac_ext
12313LIBS=$ac_check_lib_save_LIBS
12314fi
12315{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
12316$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
12317if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
12318  lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
12319else
12320  ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
12321if test "x$ac_cv_func_dlopen" = xyes; then :
12322  lt_cv_dlopen=dlopen
12323else
12324  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12325$as_echo_n "checking for dlopen in -ldl... " >&6; }
12326if ${ac_cv_lib_dl_dlopen+:} false; then :
12327  $as_echo_n "(cached) " >&6
12328else
12329  ac_check_lib_save_LIBS=$LIBS
12330LIBS="-ldl  $LIBS"
12331cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12332/* end confdefs.h.  */
12333
12334/* Override any GCC internal prototype to avoid an error.
12335   Use char because int might match the return type of a GCC
12336   builtin and then its argument prototype would still apply.  */
12337#ifdef __cplusplus
12338extern "C"
12339#endif
12340char dlopen ();
12341int
12342main ()
12343{
12344return dlopen ();
12345  ;
12346  return 0;
12347}
12348_ACEOF
12349if ac_fn_c_try_link "$LINENO"; then :
12350  ac_cv_lib_dl_dlopen=yes
12351else
12352  ac_cv_lib_dl_dlopen=no
12353fi
12354rm -f core conftest.err conftest.$ac_objext \
12355    conftest$ac_exeext conftest.$ac_ext
12356LIBS=$ac_check_lib_save_LIBS
12357fi
12358{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12359$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12360if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
12361  lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
12362else
12363  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
12364$as_echo_n "checking for dlopen in -lsvld... " >&6; }
12365if ${ac_cv_lib_svld_dlopen+:} false; then :
12366  $as_echo_n "(cached) " >&6
12367else
12368  ac_check_lib_save_LIBS=$LIBS
12369LIBS="-lsvld  $LIBS"
12370cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12371/* end confdefs.h.  */
12372
12373/* Override any GCC internal prototype to avoid an error.
12374   Use char because int might match the return type of a GCC
12375   builtin and then its argument prototype would still apply.  */
12376#ifdef __cplusplus
12377extern "C"
12378#endif
12379char dlopen ();
12380int
12381main ()
12382{
12383return dlopen ();
12384  ;
12385  return 0;
12386}
12387_ACEOF
12388if ac_fn_c_try_link "$LINENO"; then :
12389  ac_cv_lib_svld_dlopen=yes
12390else
12391  ac_cv_lib_svld_dlopen=no
12392fi
12393rm -f core conftest.err conftest.$ac_objext \
12394    conftest$ac_exeext conftest.$ac_ext
12395LIBS=$ac_check_lib_save_LIBS
12396fi
12397{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
12398$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
12399if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
12400  lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
12401else
12402  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
12403$as_echo_n "checking for dld_link in -ldld... " >&6; }
12404if ${ac_cv_lib_dld_dld_link+:} false; then :
12405  $as_echo_n "(cached) " >&6
12406else
12407  ac_check_lib_save_LIBS=$LIBS
12408LIBS="-ldld  $LIBS"
12409cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12410/* end confdefs.h.  */
12411
12412/* Override any GCC internal prototype to avoid an error.
12413   Use char because int might match the return type of a GCC
12414   builtin and then its argument prototype would still apply.  */
12415#ifdef __cplusplus
12416extern "C"
12417#endif
12418char dld_link ();
12419int
12420main ()
12421{
12422return dld_link ();
12423  ;
12424  return 0;
12425}
12426_ACEOF
12427if ac_fn_c_try_link "$LINENO"; then :
12428  ac_cv_lib_dld_dld_link=yes
12429else
12430  ac_cv_lib_dld_dld_link=no
12431fi
12432rm -f core conftest.err conftest.$ac_objext \
12433    conftest$ac_exeext conftest.$ac_ext
12434LIBS=$ac_check_lib_save_LIBS
12435fi
12436{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
12437$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
12438if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
12439  lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
12440fi
12441
12442
12443fi
12444
12445
12446fi
12447
12448
12449fi
12450
12451
12452fi
12453
12454
12455fi
12456
12457    ;;
12458  esac
12459
12460  if test no = "$lt_cv_dlopen"; then
12461    enable_dlopen=no
12462  else
12463    enable_dlopen=yes
12464  fi
12465
12466  case $lt_cv_dlopen in
12467  dlopen)
12468    save_CPPFLAGS=$CPPFLAGS
12469    test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12470
12471    save_LDFLAGS=$LDFLAGS
12472    wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12473
12474    save_LIBS=$LIBS
12475    LIBS="$lt_cv_dlopen_libs $LIBS"
12476
12477    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
12478$as_echo_n "checking whether a program can dlopen itself... " >&6; }
12479if ${lt_cv_dlopen_self+:} false; then :
12480  $as_echo_n "(cached) " >&6
12481else
12482  	  if test yes = "$cross_compiling"; then :
12483  lt_cv_dlopen_self=cross
12484else
12485  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12486  lt_status=$lt_dlunknown
12487  cat > conftest.$ac_ext <<_LT_EOF
12488#line $LINENO "configure"
12489#include "confdefs.h"
12490
12491#if HAVE_DLFCN_H
12492#include <dlfcn.h>
12493#endif
12494
12495#include <stdio.h>
12496
12497#ifdef RTLD_GLOBAL
12498#  define LT_DLGLOBAL		RTLD_GLOBAL
12499#else
12500#  ifdef DL_GLOBAL
12501#    define LT_DLGLOBAL		DL_GLOBAL
12502#  else
12503#    define LT_DLGLOBAL		0
12504#  endif
12505#endif
12506
12507/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12508   find out it does not work in some platform. */
12509#ifndef LT_DLLAZY_OR_NOW
12510#  ifdef RTLD_LAZY
12511#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
12512#  else
12513#    ifdef DL_LAZY
12514#      define LT_DLLAZY_OR_NOW		DL_LAZY
12515#    else
12516#      ifdef RTLD_NOW
12517#        define LT_DLLAZY_OR_NOW	RTLD_NOW
12518#      else
12519#        ifdef DL_NOW
12520#          define LT_DLLAZY_OR_NOW	DL_NOW
12521#        else
12522#          define LT_DLLAZY_OR_NOW	0
12523#        endif
12524#      endif
12525#    endif
12526#  endif
12527#endif
12528
12529/* When -fvisibility=hidden is used, assume the code has been annotated
12530   correspondingly for the symbols needed.  */
12531#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12532int fnord () __attribute__((visibility("default")));
12533#endif
12534
12535int fnord () { return 42; }
12536int main ()
12537{
12538  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12539  int status = $lt_dlunknown;
12540
12541  if (self)
12542    {
12543      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
12544      else
12545        {
12546	  if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
12547          else puts (dlerror ());
12548	}
12549      /* dlclose (self); */
12550    }
12551  else
12552    puts (dlerror ());
12553
12554  return status;
12555}
12556_LT_EOF
12557  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12558  (eval $ac_link) 2>&5
12559  ac_status=$?
12560  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12561  test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
12562    (./conftest; exit; ) >&5 2>/dev/null
12563    lt_status=$?
12564    case x$lt_status in
12565      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12566      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12567      x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
12568    esac
12569  else :
12570    # compilation failed
12571    lt_cv_dlopen_self=no
12572  fi
12573fi
12574rm -fr conftest*
12575
12576
12577fi
12578{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
12579$as_echo "$lt_cv_dlopen_self" >&6; }
12580
12581    if test yes = "$lt_cv_dlopen_self"; then
12582      wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
12583      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
12584$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
12585if ${lt_cv_dlopen_self_static+:} false; then :
12586  $as_echo_n "(cached) " >&6
12587else
12588  	  if test yes = "$cross_compiling"; then :
12589  lt_cv_dlopen_self_static=cross
12590else
12591  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12592  lt_status=$lt_dlunknown
12593  cat > conftest.$ac_ext <<_LT_EOF
12594#line $LINENO "configure"
12595#include "confdefs.h"
12596
12597#if HAVE_DLFCN_H
12598#include <dlfcn.h>
12599#endif
12600
12601#include <stdio.h>
12602
12603#ifdef RTLD_GLOBAL
12604#  define LT_DLGLOBAL		RTLD_GLOBAL
12605#else
12606#  ifdef DL_GLOBAL
12607#    define LT_DLGLOBAL		DL_GLOBAL
12608#  else
12609#    define LT_DLGLOBAL		0
12610#  endif
12611#endif
12612
12613/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12614   find out it does not work in some platform. */
12615#ifndef LT_DLLAZY_OR_NOW
12616#  ifdef RTLD_LAZY
12617#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
12618#  else
12619#    ifdef DL_LAZY
12620#      define LT_DLLAZY_OR_NOW		DL_LAZY
12621#    else
12622#      ifdef RTLD_NOW
12623#        define LT_DLLAZY_OR_NOW	RTLD_NOW
12624#      else
12625#        ifdef DL_NOW
12626#          define LT_DLLAZY_OR_NOW	DL_NOW
12627#        else
12628#          define LT_DLLAZY_OR_NOW	0
12629#        endif
12630#      endif
12631#    endif
12632#  endif
12633#endif
12634
12635/* When -fvisibility=hidden is used, assume the code has been annotated
12636   correspondingly for the symbols needed.  */
12637#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12638int fnord () __attribute__((visibility("default")));
12639#endif
12640
12641int fnord () { return 42; }
12642int main ()
12643{
12644  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12645  int status = $lt_dlunknown;
12646
12647  if (self)
12648    {
12649      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
12650      else
12651        {
12652	  if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
12653          else puts (dlerror ());
12654	}
12655      /* dlclose (self); */
12656    }
12657  else
12658    puts (dlerror ());
12659
12660  return status;
12661}
12662_LT_EOF
12663  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12664  (eval $ac_link) 2>&5
12665  ac_status=$?
12666  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12667  test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
12668    (./conftest; exit; ) >&5 2>/dev/null
12669    lt_status=$?
12670    case x$lt_status in
12671      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12672      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12673      x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
12674    esac
12675  else :
12676    # compilation failed
12677    lt_cv_dlopen_self_static=no
12678  fi
12679fi
12680rm -fr conftest*
12681
12682
12683fi
12684{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
12685$as_echo "$lt_cv_dlopen_self_static" >&6; }
12686    fi
12687
12688    CPPFLAGS=$save_CPPFLAGS
12689    LDFLAGS=$save_LDFLAGS
12690    LIBS=$save_LIBS
12691    ;;
12692  esac
12693
12694  case $lt_cv_dlopen_self in
12695  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12696  *) enable_dlopen_self=unknown ;;
12697  esac
12698
12699  case $lt_cv_dlopen_self_static in
12700  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12701  *) enable_dlopen_self_static=unknown ;;
12702  esac
12703fi
12704
12705
12706
12707
12708
12709
12710
12711
12712
12713
12714
12715
12716
12717
12718
12719
12720
12721striplib=
12722old_striplib=
12723{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
12724$as_echo_n "checking whether stripping libraries is possible... " >&6; }
12725if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
12726  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
12727  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
12728  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12729$as_echo "yes" >&6; }
12730else
12731# FIXME - insert some real tests, host_os isn't really good enough
12732  case $host_os in
12733  darwin*)
12734    if test -n "$STRIP"; then
12735      striplib="$STRIP -x"
12736      old_striplib="$STRIP -S"
12737      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12738$as_echo "yes" >&6; }
12739    else
12740      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12741$as_echo "no" >&6; }
12742    fi
12743    ;;
12744  *)
12745    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12746$as_echo "no" >&6; }
12747    ;;
12748  esac
12749fi
12750
12751
12752
12753
12754
12755
12756
12757
12758
12759
12760
12761
12762  # Report what library types will actually be built
12763  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
12764$as_echo_n "checking if libtool supports shared libraries... " >&6; }
12765  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
12766$as_echo "$can_build_shared" >&6; }
12767
12768  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
12769$as_echo_n "checking whether to build shared libraries... " >&6; }
12770  test no = "$can_build_shared" && enable_shared=no
12771
12772  # On AIX, shared libraries and static libraries use the same namespace, and
12773  # are all built from PIC.
12774  case $host_os in
12775  aix3*)
12776    test yes = "$enable_shared" && enable_static=no
12777    if test -n "$RANLIB"; then
12778      archive_cmds="$archive_cmds~\$RANLIB \$lib"
12779      postinstall_cmds='$RANLIB $lib'
12780    fi
12781    ;;
12782
12783  aix[4-9]*)
12784    if test ia64 != "$host_cpu"; then
12785      case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
12786      yes,aix,yes) ;;			# shared object as lib.so file only
12787      yes,svr4,*) ;;			# shared object as lib.so archive member only
12788      yes,*) enable_static=no ;;	# shared object in lib.a archive as well
12789      esac
12790    fi
12791    ;;
12792  esac
12793  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
12794$as_echo "$enable_shared" >&6; }
12795
12796  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
12797$as_echo_n "checking whether to build static libraries... " >&6; }
12798  # Make sure either enable_shared or enable_static is yes.
12799  test yes = "$enable_shared" || enable_static=yes
12800  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
12801$as_echo "$enable_static" >&6; }
12802
12803
12804
12805
12806fi
12807ac_ext=c
12808ac_cpp='$CPP $CPPFLAGS'
12809ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12810ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12811ac_compiler_gnu=$ac_cv_c_compiler_gnu
12812
12813CC=$lt_save_CC
12814
12815
12816
12817
12818
12819
12820
12821
12822
12823
12824
12825
12826
12827
12828
12829        ac_config_commands="$ac_config_commands libtool"
12830
12831
12832
12833
12834# Only expand once:
12835
12836
12837
12838
12839# Check for library functions that SQLite can optionally use.
12840for ac_func in fdatasync usleep fullfsync localtime_r gmtime_r
12841do :
12842  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12843ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
12844if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
12845  cat >>confdefs.h <<_ACEOF
12846#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
12847_ACEOF
12848
12849fi
12850done
12851
12852ac_fn_c_check_decl "$LINENO" "strerror_r" "ac_cv_have_decl_strerror_r" "$ac_includes_default"
12853if test "x$ac_cv_have_decl_strerror_r" = xyes; then :
12854  ac_have_decl=1
12855else
12856  ac_have_decl=0
12857fi
12858
12859cat >>confdefs.h <<_ACEOF
12860#define HAVE_DECL_STRERROR_R $ac_have_decl
12861_ACEOF
12862
12863for ac_func in strerror_r
12864do :
12865  ac_fn_c_check_func "$LINENO" "strerror_r" "ac_cv_func_strerror_r"
12866if test "x$ac_cv_func_strerror_r" = xyes; then :
12867  cat >>confdefs.h <<_ACEOF
12868#define HAVE_STRERROR_R 1
12869_ACEOF
12870
12871fi
12872done
12873
12874{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strerror_r returns char *" >&5
12875$as_echo_n "checking whether strerror_r returns char *... " >&6; }
12876if ${ac_cv_func_strerror_r_char_p+:} false; then :
12877  $as_echo_n "(cached) " >&6
12878else
12879
12880    ac_cv_func_strerror_r_char_p=no
12881    if test $ac_cv_have_decl_strerror_r = yes; then
12882      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12883/* end confdefs.h.  */
12884$ac_includes_default
12885int
12886main ()
12887{
12888
12889	  char buf[100];
12890	  char x = *strerror_r (0, buf, sizeof buf);
12891	  char *p = strerror_r (0, buf, sizeof buf);
12892	  return !p || x;
12893
12894  ;
12895  return 0;
12896}
12897_ACEOF
12898if ac_fn_c_try_compile "$LINENO"; then :
12899  ac_cv_func_strerror_r_char_p=yes
12900fi
12901rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12902    else
12903      # strerror_r is not declared.  Choose between
12904      # systems that have relatively inaccessible declarations for the
12905      # function.  BeOS and DEC UNIX 4.0 fall in this category, but the
12906      # former has a strerror_r that returns char*, while the latter
12907      # has a strerror_r that returns `int'.
12908      # This test should segfault on the DEC system.
12909      if test "$cross_compiling" = yes; then :
12910  :
12911else
12912  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12913/* end confdefs.h.  */
12914$ac_includes_default
12915	extern char *strerror_r ();
12916int
12917main ()
12918{
12919char buf[100];
12920	  char x = *strerror_r (0, buf, sizeof buf);
12921	  return ! isalpha (x);
12922  ;
12923  return 0;
12924}
12925_ACEOF
12926if ac_fn_c_try_run "$LINENO"; then :
12927  ac_cv_func_strerror_r_char_p=yes
12928fi
12929rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12930  conftest.$ac_objext conftest.beam conftest.$ac_ext
12931fi
12932
12933    fi
12934
12935fi
12936{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strerror_r_char_p" >&5
12937$as_echo "$ac_cv_func_strerror_r_char_p" >&6; }
12938if test $ac_cv_func_strerror_r_char_p = yes; then
12939
12940$as_echo "#define STRERROR_R_CHAR_P 1" >>confdefs.h
12941
12942fi
12943
12944
12945ac_config_files="$ac_config_files Makefile sqlite3.pc"
12946
12947
12948
12949#-----------------------------------------------------------------------
12950#   --enable-editline
12951#   --enable-readline
12952#
12953# Check whether --enable-editline was given.
12954if test "${enable_editline+set}" = set; then :
12955  enableval=$enable_editline;
12956else
12957  enable_editline=yes
12958fi
12959
12960# Check whether --enable-readline was given.
12961if test "${enable_readline+set}" = set; then :
12962  enableval=$enable_readline;
12963else
12964  enable_readline=no
12965fi
12966
12967if test x"$enable_editline" != xno ; then
12968  sLIBS=$LIBS
12969  LIBS=""
12970  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing readline" >&5
12971$as_echo_n "checking for library containing readline... " >&6; }
12972if ${ac_cv_search_readline+:} false; then :
12973  $as_echo_n "(cached) " >&6
12974else
12975  ac_func_search_save_LIBS=$LIBS
12976cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12977/* end confdefs.h.  */
12978
12979/* Override any GCC internal prototype to avoid an error.
12980   Use char because int might match the return type of a GCC
12981   builtin and then its argument prototype would still apply.  */
12982#ifdef __cplusplus
12983extern "C"
12984#endif
12985char readline ();
12986int
12987main ()
12988{
12989return readline ();
12990  ;
12991  return 0;
12992}
12993_ACEOF
12994for ac_lib in '' edit; do
12995  if test -z "$ac_lib"; then
12996    ac_res="none required"
12997  else
12998    ac_res=-l$ac_lib
12999    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
13000  fi
13001  if ac_fn_c_try_link "$LINENO"; then :
13002  ac_cv_search_readline=$ac_res
13003fi
13004rm -f core conftest.err conftest.$ac_objext \
13005    conftest$ac_exeext
13006  if ${ac_cv_search_readline+:} false; then :
13007  break
13008fi
13009done
13010if ${ac_cv_search_readline+:} false; then :
13011
13012else
13013  ac_cv_search_readline=no
13014fi
13015rm conftest.$ac_ext
13016LIBS=$ac_func_search_save_LIBS
13017fi
13018{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_readline" >&5
13019$as_echo "$ac_cv_search_readline" >&6; }
13020ac_res=$ac_cv_search_readline
13021if test "$ac_res" != no; then :
13022  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13023  enable_readline=no
13024else
13025  enable_editline=no
13026fi
13027
13028  READLINE_LIBS=$LIBS
13029  if test x"$LIBS" != "x"; then
13030
13031$as_echo "#define HAVE_EDITLINE 1" >>confdefs.h
13032
13033  else
13034    unset ac_cv_search_readline
13035  fi
13036  LIBS=$sLIBS
13037fi
13038if test x"$enable_readline" != xno ; then
13039  sLIBS=$LIBS
13040  LIBS=""
13041  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing tgetent" >&5
13042$as_echo_n "checking for library containing tgetent... " >&6; }
13043if ${ac_cv_search_tgetent+:} false; then :
13044  $as_echo_n "(cached) " >&6
13045else
13046  ac_func_search_save_LIBS=$LIBS
13047cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13048/* end confdefs.h.  */
13049
13050/* Override any GCC internal prototype to avoid an error.
13051   Use char because int might match the return type of a GCC
13052   builtin and then its argument prototype would still apply.  */
13053#ifdef __cplusplus
13054extern "C"
13055#endif
13056char tgetent ();
13057int
13058main ()
13059{
13060return tgetent ();
13061  ;
13062  return 0;
13063}
13064_ACEOF
13065for ac_lib in '' curses ncurses ncursesw; do
13066  if test -z "$ac_lib"; then
13067    ac_res="none required"
13068  else
13069    ac_res=-l$ac_lib
13070    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
13071  fi
13072  if ac_fn_c_try_link "$LINENO"; then :
13073  ac_cv_search_tgetent=$ac_res
13074fi
13075rm -f core conftest.err conftest.$ac_objext \
13076    conftest$ac_exeext
13077  if ${ac_cv_search_tgetent+:} false; then :
13078  break
13079fi
13080done
13081if ${ac_cv_search_tgetent+:} false; then :
13082
13083else
13084  ac_cv_search_tgetent=no
13085fi
13086rm conftest.$ac_ext
13087LIBS=$ac_func_search_save_LIBS
13088fi
13089{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_tgetent" >&5
13090$as_echo "$ac_cv_search_tgetent" >&6; }
13091ac_res=$ac_cv_search_tgetent
13092if test "$ac_res" != no; then :
13093  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13094
13095fi
13096
13097  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing readline" >&5
13098$as_echo_n "checking for library containing readline... " >&6; }
13099if ${ac_cv_search_readline+:} false; then :
13100  $as_echo_n "(cached) " >&6
13101else
13102  ac_func_search_save_LIBS=$LIBS
13103cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13104/* end confdefs.h.  */
13105
13106/* Override any GCC internal prototype to avoid an error.
13107   Use char because int might match the return type of a GCC
13108   builtin and then its argument prototype would still apply.  */
13109#ifdef __cplusplus
13110extern "C"
13111#endif
13112char readline ();
13113int
13114main ()
13115{
13116return readline ();
13117  ;
13118  return 0;
13119}
13120_ACEOF
13121for ac_lib in '' readline; do
13122  if test -z "$ac_lib"; then
13123    ac_res="none required"
13124  else
13125    ac_res=-l$ac_lib
13126    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
13127  fi
13128  if ac_fn_c_try_link "$LINENO"; then :
13129  ac_cv_search_readline=$ac_res
13130fi
13131rm -f core conftest.err conftest.$ac_objext \
13132    conftest$ac_exeext
13133  if ${ac_cv_search_readline+:} false; then :
13134  break
13135fi
13136done
13137if ${ac_cv_search_readline+:} false; then :
13138
13139else
13140  ac_cv_search_readline=no
13141fi
13142rm conftest.$ac_ext
13143LIBS=$ac_func_search_save_LIBS
13144fi
13145{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_readline" >&5
13146$as_echo "$ac_cv_search_readline" >&6; }
13147ac_res=$ac_cv_search_readline
13148if test "$ac_res" != no; then :
13149  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13150
13151else
13152  enable_readline=no
13153fi
13154
13155  for ac_func in readline
13156do :
13157  ac_fn_c_check_func "$LINENO" "readline" "ac_cv_func_readline"
13158if test "x$ac_cv_func_readline" = xyes; then :
13159  cat >>confdefs.h <<_ACEOF
13160#define HAVE_READLINE 1
13161_ACEOF
13162
13163fi
13164done
13165
13166  READLINE_LIBS=$LIBS
13167  LIBS=$sLIBS
13168fi
13169
13170#-----------------------------------------------------------------------
13171
13172#-----------------------------------------------------------------------
13173#   --enable-threadsafe
13174#
13175# Check whether --enable-threadsafe was given.
13176if test "${enable_threadsafe+set}" = set; then :
13177  enableval=$enable_threadsafe;
13178else
13179  enable_threadsafe=yes
13180fi
13181
13182THREADSAFE_FLAGS=-DSQLITE_THREADSAFE=0
13183if test x"$enable_threadsafe" != "xno"; then
13184  THREADSAFE_FLAGS="-D_REENTRANT=1 -DSQLITE_THREADSAFE=1"
13185  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing pthread_create" >&5
13186$as_echo_n "checking for library containing pthread_create... " >&6; }
13187if ${ac_cv_search_pthread_create+:} false; then :
13188  $as_echo_n "(cached) " >&6
13189else
13190  ac_func_search_save_LIBS=$LIBS
13191cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13192/* end confdefs.h.  */
13193
13194/* Override any GCC internal prototype to avoid an error.
13195   Use char because int might match the return type of a GCC
13196   builtin and then its argument prototype would still apply.  */
13197#ifdef __cplusplus
13198extern "C"
13199#endif
13200char pthread_create ();
13201int
13202main ()
13203{
13204return pthread_create ();
13205  ;
13206  return 0;
13207}
13208_ACEOF
13209for ac_lib in '' pthread; do
13210  if test -z "$ac_lib"; then
13211    ac_res="none required"
13212  else
13213    ac_res=-l$ac_lib
13214    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
13215  fi
13216  if ac_fn_c_try_link "$LINENO"; then :
13217  ac_cv_search_pthread_create=$ac_res
13218fi
13219rm -f core conftest.err conftest.$ac_objext \
13220    conftest$ac_exeext
13221  if ${ac_cv_search_pthread_create+:} false; then :
13222  break
13223fi
13224done
13225if ${ac_cv_search_pthread_create+:} false; then :
13226
13227else
13228  ac_cv_search_pthread_create=no
13229fi
13230rm conftest.$ac_ext
13231LIBS=$ac_func_search_save_LIBS
13232fi
13233{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_pthread_create" >&5
13234$as_echo "$ac_cv_search_pthread_create" >&6; }
13235ac_res=$ac_cv_search_pthread_create
13236if test "$ac_res" != no; then :
13237  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13238
13239fi
13240
13241  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing pthread_mutexattr_init" >&5
13242$as_echo_n "checking for library containing pthread_mutexattr_init... " >&6; }
13243if ${ac_cv_search_pthread_mutexattr_init+:} false; then :
13244  $as_echo_n "(cached) " >&6
13245else
13246  ac_func_search_save_LIBS=$LIBS
13247cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13248/* end confdefs.h.  */
13249
13250/* Override any GCC internal prototype to avoid an error.
13251   Use char because int might match the return type of a GCC
13252   builtin and then its argument prototype would still apply.  */
13253#ifdef __cplusplus
13254extern "C"
13255#endif
13256char pthread_mutexattr_init ();
13257int
13258main ()
13259{
13260return pthread_mutexattr_init ();
13261  ;
13262  return 0;
13263}
13264_ACEOF
13265for ac_lib in '' pthread; do
13266  if test -z "$ac_lib"; then
13267    ac_res="none required"
13268  else
13269    ac_res=-l$ac_lib
13270    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
13271  fi
13272  if ac_fn_c_try_link "$LINENO"; then :
13273  ac_cv_search_pthread_mutexattr_init=$ac_res
13274fi
13275rm -f core conftest.err conftest.$ac_objext \
13276    conftest$ac_exeext
13277  if ${ac_cv_search_pthread_mutexattr_init+:} false; then :
13278  break
13279fi
13280done
13281if ${ac_cv_search_pthread_mutexattr_init+:} false; then :
13282
13283else
13284  ac_cv_search_pthread_mutexattr_init=no
13285fi
13286rm conftest.$ac_ext
13287LIBS=$ac_func_search_save_LIBS
13288fi
13289{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_pthread_mutexattr_init" >&5
13290$as_echo "$ac_cv_search_pthread_mutexattr_init" >&6; }
13291ac_res=$ac_cv_search_pthread_mutexattr_init
13292if test "$ac_res" != no; then :
13293  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13294
13295fi
13296
13297fi
13298
13299#-----------------------------------------------------------------------
13300
13301#-----------------------------------------------------------------------
13302#   --enable-dynamic-extensions
13303#
13304# Check whether --enable-dynamic-extensions was given.
13305if test "${enable_dynamic_extensions+set}" = set; then :
13306  enableval=$enable_dynamic_extensions;
13307else
13308  enable_dynamic_extensions=yes
13309fi
13310
13311if test x"$enable_dynamic_extensions" != "xno"; then
13312  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
13313$as_echo_n "checking for library containing dlopen... " >&6; }
13314if ${ac_cv_search_dlopen+:} false; then :
13315  $as_echo_n "(cached) " >&6
13316else
13317  ac_func_search_save_LIBS=$LIBS
13318cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13319/* end confdefs.h.  */
13320
13321/* Override any GCC internal prototype to avoid an error.
13322   Use char because int might match the return type of a GCC
13323   builtin and then its argument prototype would still apply.  */
13324#ifdef __cplusplus
13325extern "C"
13326#endif
13327char dlopen ();
13328int
13329main ()
13330{
13331return dlopen ();
13332  ;
13333  return 0;
13334}
13335_ACEOF
13336for ac_lib in '' dl; do
13337  if test -z "$ac_lib"; then
13338    ac_res="none required"
13339  else
13340    ac_res=-l$ac_lib
13341    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
13342  fi
13343  if ac_fn_c_try_link "$LINENO"; then :
13344  ac_cv_search_dlopen=$ac_res
13345fi
13346rm -f core conftest.err conftest.$ac_objext \
13347    conftest$ac_exeext
13348  if ${ac_cv_search_dlopen+:} false; then :
13349  break
13350fi
13351done
13352if ${ac_cv_search_dlopen+:} false; then :
13353
13354else
13355  ac_cv_search_dlopen=no
13356fi
13357rm conftest.$ac_ext
13358LIBS=$ac_func_search_save_LIBS
13359fi
13360{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
13361$as_echo "$ac_cv_search_dlopen" >&6; }
13362ac_res=$ac_cv_search_dlopen
13363if test "$ac_res" != no; then :
13364  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13365
13366fi
13367
13368else
13369  DYNAMIC_EXTENSION_FLAGS=-DSQLITE_OMIT_LOAD_EXTENSION=1
13370fi
13371{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for whether to support dynamic extensions" >&5
13372$as_echo_n "checking for whether to support dynamic extensions... " >&6; }
13373{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_dynamic_extensions" >&5
13374$as_echo "$enable_dynamic_extensions" >&6; }
13375
13376#-----------------------------------------------------------------------
13377
13378#-----------------------------------------------------------------------
13379#   --enable-fts5
13380#
13381# Check whether --enable-fts5 was given.
13382if test "${enable_fts5+set}" = set; then :
13383  enableval=$enable_fts5;
13384else
13385  enable_fts5=no
13386fi
13387
13388if test x"$enable_fts5" == "xyes"; then
13389  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing log" >&5
13390$as_echo_n "checking for library containing log... " >&6; }
13391if ${ac_cv_search_log+:} false; then :
13392  $as_echo_n "(cached) " >&6
13393else
13394  ac_func_search_save_LIBS=$LIBS
13395cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13396/* end confdefs.h.  */
13397
13398/* Override any GCC internal prototype to avoid an error.
13399   Use char because int might match the return type of a GCC
13400   builtin and then its argument prototype would still apply.  */
13401#ifdef __cplusplus
13402extern "C"
13403#endif
13404char log ();
13405int
13406main ()
13407{
13408return log ();
13409  ;
13410  return 0;
13411}
13412_ACEOF
13413for ac_lib in '' m; do
13414  if test -z "$ac_lib"; then
13415    ac_res="none required"
13416  else
13417    ac_res=-l$ac_lib
13418    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
13419  fi
13420  if ac_fn_c_try_link "$LINENO"; then :
13421  ac_cv_search_log=$ac_res
13422fi
13423rm -f core conftest.err conftest.$ac_objext \
13424    conftest$ac_exeext
13425  if ${ac_cv_search_log+:} false; then :
13426  break
13427fi
13428done
13429if ${ac_cv_search_log+:} false; then :
13430
13431else
13432  ac_cv_search_log=no
13433fi
13434rm conftest.$ac_ext
13435LIBS=$ac_func_search_save_LIBS
13436fi
13437{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_log" >&5
13438$as_echo "$ac_cv_search_log" >&6; }
13439ac_res=$ac_cv_search_log
13440if test "$ac_res" != no; then :
13441  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13442
13443fi
13444
13445  FTS5_FLAGS=-DSQLITE_ENABLE_FTS5
13446fi
13447
13448#-----------------------------------------------------------------------
13449
13450#-----------------------------------------------------------------------
13451#   --enable-json1
13452#
13453# Check whether --enable-json1 was given.
13454if test "${enable_json1+set}" = set; then :
13455  enableval=$enable_json1;
13456else
13457  enable_json1=no
13458fi
13459
13460if test x"$enable_json1" == "xyes"; then
13461  JSON1_FLAGS=-DSQLITE_ENABLE_JSON1
13462fi
13463
13464#-----------------------------------------------------------------------
13465
13466#-----------------------------------------------------------------------
13467#   --enable-static-shell
13468#
13469# Check whether --enable-static-shell was given.
13470if test "${enable_static_shell+set}" = set; then :
13471  enableval=$enable_static_shell;
13472else
13473  enable_static_shell=yes
13474fi
13475
13476if test x"$enable_static_shell" == "xyes"; then
13477  EXTRA_SHELL_OBJ=sqlite3-sqlite3.$OBJEXT
13478else
13479  EXTRA_SHELL_OBJ=libsqlite3.la
13480fi
13481
13482#-----------------------------------------------------------------------
13483
13484for ac_func in posix_fallocate
13485do :
13486  ac_fn_c_check_func "$LINENO" "posix_fallocate" "ac_cv_func_posix_fallocate"
13487if test "x$ac_cv_func_posix_fallocate" = xyes; then :
13488  cat >>confdefs.h <<_ACEOF
13489#define HAVE_POSIX_FALLOCATE 1
13490_ACEOF
13491
13492fi
13493done
13494
13495
13496#-----------------------------------------------------------------------
13497# UPDATE: Maybe it's better if users just set CFLAGS before invoking
13498# configure. This option doesn't really add much...
13499#
13500#   --enable-tempstore
13501#
13502# AC_ARG_ENABLE(tempstore, [AS_HELP_STRING(
13503#   [--enable-tempstore],
13504#   [in-memory temporary tables (never, no, yes, always) [default=no]])],
13505#   [], [enable_tempstore=no])
13506# AC_MSG_CHECKING([for whether or not to store temp tables in-memory])
13507# case "$enable_tempstore" in
13508#   never )  TEMP_STORE=0 ;;
13509#   no )     TEMP_STORE=1 ;;
13510#   always ) TEMP_STORE=3 ;;
13511#   yes )    TEMP_STORE=3 ;;
13512#   * )
13513#     TEMP_STORE=1
13514#     enable_tempstore=yes
13515#   ;;
13516# esac
13517# AC_MSG_RESULT($enable_tempstore)
13518# AC_SUBST(TEMP_STORE)
13519#-----------------------------------------------------------------------
13520
13521cat >confcache <<\_ACEOF
13522# This file is a shell script that caches the results of configure
13523# tests run on this system so they can be shared between configure
13524# scripts and configure runs, see configure's option --config-cache.
13525# It is not useful on other systems.  If it contains results you don't
13526# want to keep, you may remove or edit it.
13527#
13528# config.status only pays attention to the cache file if you give it
13529# the --recheck option to rerun configure.
13530#
13531# `ac_cv_env_foo' variables (set or unset) will be overridden when
13532# loading this file, other *unset* `ac_cv_foo' will be assigned the
13533# following values.
13534
13535_ACEOF
13536
13537# The following way of writing the cache mishandles newlines in values,
13538# but we know of no workaround that is simple, portable, and efficient.
13539# So, we kill variables containing newlines.
13540# Ultrix sh set writes to stderr and can't be redirected directly,
13541# and sets the high bit in the cache file unless we assign to the vars.
13542(
13543  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
13544    eval ac_val=\$$ac_var
13545    case $ac_val in #(
13546    *${as_nl}*)
13547      case $ac_var in #(
13548      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
13549$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
13550      esac
13551      case $ac_var in #(
13552      _ | IFS | as_nl) ;; #(
13553      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
13554      *) { eval $ac_var=; unset $ac_var;} ;;
13555      esac ;;
13556    esac
13557  done
13558
13559  (set) 2>&1 |
13560    case $as_nl`(ac_space=' '; set) 2>&1` in #(
13561    *${as_nl}ac_space=\ *)
13562      # `set' does not quote correctly, so add quotes: double-quote
13563      # substitution turns \\\\ into \\, and sed turns \\ into \.
13564      sed -n \
13565	"s/'/'\\\\''/g;
13566	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
13567      ;; #(
13568    *)
13569      # `set' quotes correctly as required by POSIX, so do not add quotes.
13570      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
13571      ;;
13572    esac |
13573    sort
13574) |
13575  sed '
13576     /^ac_cv_env_/b end
13577     t clear
13578     :clear
13579     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
13580     t end
13581     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
13582     :end' >>confcache
13583if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
13584  if test -w "$cache_file"; then
13585    if test "x$cache_file" != "x/dev/null"; then
13586      { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
13587$as_echo "$as_me: updating cache $cache_file" >&6;}
13588      if test ! -f "$cache_file" || test -h "$cache_file"; then
13589	cat confcache >"$cache_file"
13590      else
13591        case $cache_file in #(
13592        */* | ?:*)
13593	  mv -f confcache "$cache_file"$$ &&
13594	  mv -f "$cache_file"$$ "$cache_file" ;; #(
13595        *)
13596	  mv -f confcache "$cache_file" ;;
13597	esac
13598      fi
13599    fi
13600  else
13601    { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
13602$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
13603  fi
13604fi
13605rm -f confcache
13606
13607test "x$prefix" = xNONE && prefix=$ac_default_prefix
13608# Let make expand exec_prefix.
13609test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
13610
13611# Transform confdefs.h into DEFS.
13612# Protect against shell expansion while executing Makefile rules.
13613# Protect against Makefile macro expansion.
13614#
13615# If the first sed substitution is executed (which looks for macros that
13616# take arguments), then branch to the quote section.  Otherwise,
13617# look for a macro that doesn't take arguments.
13618ac_script='
13619:mline
13620/\\$/{
13621 N
13622 s,\\\n,,
13623 b mline
13624}
13625t clear
13626:clear
13627s/^[	 ]*#[	 ]*define[	 ][	 ]*\([^	 (][^	 (]*([^)]*)\)[	 ]*\(.*\)/-D\1=\2/g
13628t quote
13629s/^[	 ]*#[	 ]*define[	 ][	 ]*\([^	 ][^	 ]*\)[	 ]*\(.*\)/-D\1=\2/g
13630t quote
13631b any
13632:quote
13633s/[	 `~#$^&*(){}\\|;'\''"<>?]/\\&/g
13634s/\[/\\&/g
13635s/\]/\\&/g
13636s/\$/$$/g
13637H
13638:any
13639${
13640	g
13641	s/^\n//
13642	s/\n/ /g
13643	p
13644}
13645'
13646DEFS=`sed -n "$ac_script" confdefs.h`
13647
13648
13649ac_libobjs=
13650ac_ltlibobjs=
13651U=
13652for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
13653  # 1. Remove the extension, and $U if already installed.
13654  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
13655  ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
13656  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
13657  #    will be set to the directory where LIBOBJS objects are built.
13658  as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
13659  as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
13660done
13661LIBOBJS=$ac_libobjs
13662
13663LTLIBOBJS=$ac_ltlibobjs
13664
13665
13666{ $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
13667$as_echo_n "checking that generated files are newer than configure... " >&6; }
13668   if test -n "$am_sleep_pid"; then
13669     # Hide warnings about reused PIDs.
13670     wait $am_sleep_pid 2>/dev/null
13671   fi
13672   { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
13673$as_echo "done" >&6; }
13674 if test -n "$EXEEXT"; then
13675  am__EXEEXT_TRUE=
13676  am__EXEEXT_FALSE='#'
13677else
13678  am__EXEEXT_TRUE='#'
13679  am__EXEEXT_FALSE=
13680fi
13681
13682if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
13683  as_fn_error $? "conditional \"AMDEP\" was never defined.
13684Usually this means the macro was only invoked conditionally." "$LINENO" 5
13685fi
13686if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
13687  as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
13688Usually this means the macro was only invoked conditionally." "$LINENO" 5
13689fi
13690if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
13691  as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
13692Usually this means the macro was only invoked conditionally." "$LINENO" 5
13693fi
13694
13695: "${CONFIG_STATUS=./config.status}"
13696ac_write_fail=0
13697ac_clean_files_save=$ac_clean_files
13698ac_clean_files="$ac_clean_files $CONFIG_STATUS"
13699{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
13700$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
13701as_write_fail=0
13702cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
13703#! $SHELL
13704# Generated by $as_me.
13705# Run this file to recreate the current configuration.
13706# Compiler output produced by configure, useful for debugging
13707# configure, is in config.log if it exists.
13708
13709debug=false
13710ac_cs_recheck=false
13711ac_cs_silent=false
13712
13713SHELL=\${CONFIG_SHELL-$SHELL}
13714export SHELL
13715_ASEOF
13716cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
13717## -------------------- ##
13718## M4sh Initialization. ##
13719## -------------------- ##
13720
13721# Be more Bourne compatible
13722DUALCASE=1; export DUALCASE # for MKS sh
13723if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
13724  emulate sh
13725  NULLCMD=:
13726  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
13727  # is contrary to our usage.  Disable this feature.
13728  alias -g '${1+"$@"}'='"$@"'
13729  setopt NO_GLOB_SUBST
13730else
13731  case `(set -o) 2>/dev/null` in #(
13732  *posix*) :
13733    set -o posix ;; #(
13734  *) :
13735     ;;
13736esac
13737fi
13738
13739
13740as_nl='
13741'
13742export as_nl
13743# Printing a long string crashes Solaris 7 /usr/bin/printf.
13744as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
13745as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
13746as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
13747# Prefer a ksh shell builtin over an external printf program on Solaris,
13748# but without wasting forks for bash or zsh.
13749if test -z "$BASH_VERSION$ZSH_VERSION" \
13750    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
13751  as_echo='print -r --'
13752  as_echo_n='print -rn --'
13753elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
13754  as_echo='printf %s\n'
13755  as_echo_n='printf %s'
13756else
13757  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
13758    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
13759    as_echo_n='/usr/ucb/echo -n'
13760  else
13761    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
13762    as_echo_n_body='eval
13763      arg=$1;
13764      case $arg in #(
13765      *"$as_nl"*)
13766	expr "X$arg" : "X\\(.*\\)$as_nl";
13767	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
13768      esac;
13769      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
13770    '
13771    export as_echo_n_body
13772    as_echo_n='sh -c $as_echo_n_body as_echo'
13773  fi
13774  export as_echo_body
13775  as_echo='sh -c $as_echo_body as_echo'
13776fi
13777
13778# The user is always right.
13779if test "${PATH_SEPARATOR+set}" != set; then
13780  PATH_SEPARATOR=:
13781  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
13782    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
13783      PATH_SEPARATOR=';'
13784  }
13785fi
13786
13787
13788# IFS
13789# We need space, tab and new line, in precisely that order.  Quoting is
13790# there to prevent editors from complaining about space-tab.
13791# (If _AS_PATH_WALK were called with IFS unset, it would disable word
13792# splitting by setting IFS to empty value.)
13793IFS=" ""	$as_nl"
13794
13795# Find who we are.  Look in the path if we contain no directory separator.
13796as_myself=
13797case $0 in #((
13798  *[\\/]* ) as_myself=$0 ;;
13799  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13800for as_dir in $PATH
13801do
13802  IFS=$as_save_IFS
13803  test -z "$as_dir" && as_dir=.
13804    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
13805  done
13806IFS=$as_save_IFS
13807
13808     ;;
13809esac
13810# We did not find ourselves, most probably we were run as `sh COMMAND'
13811# in which case we are not to be found in the path.
13812if test "x$as_myself" = x; then
13813  as_myself=$0
13814fi
13815if test ! -f "$as_myself"; then
13816  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
13817  exit 1
13818fi
13819
13820# Unset variables that we do not need and which cause bugs (e.g. in
13821# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
13822# suppresses any "Segmentation fault" message there.  '((' could
13823# trigger a bug in pdksh 5.2.14.
13824for as_var in BASH_ENV ENV MAIL MAILPATH
13825do eval test x\${$as_var+set} = xset \
13826  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
13827done
13828PS1='$ '
13829PS2='> '
13830PS4='+ '
13831
13832# NLS nuisances.
13833LC_ALL=C
13834export LC_ALL
13835LANGUAGE=C
13836export LANGUAGE
13837
13838# CDPATH.
13839(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
13840
13841
13842# as_fn_error STATUS ERROR [LINENO LOG_FD]
13843# ----------------------------------------
13844# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
13845# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
13846# script with STATUS, using 1 if that was 0.
13847as_fn_error ()
13848{
13849  as_status=$1; test $as_status -eq 0 && as_status=1
13850  if test "$4"; then
13851    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
13852    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
13853  fi
13854  $as_echo "$as_me: error: $2" >&2
13855  as_fn_exit $as_status
13856} # as_fn_error
13857
13858
13859# as_fn_set_status STATUS
13860# -----------------------
13861# Set $? to STATUS, without forking.
13862as_fn_set_status ()
13863{
13864  return $1
13865} # as_fn_set_status
13866
13867# as_fn_exit STATUS
13868# -----------------
13869# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
13870as_fn_exit ()
13871{
13872  set +e
13873  as_fn_set_status $1
13874  exit $1
13875} # as_fn_exit
13876
13877# as_fn_unset VAR
13878# ---------------
13879# Portably unset VAR.
13880as_fn_unset ()
13881{
13882  { eval $1=; unset $1;}
13883}
13884as_unset=as_fn_unset
13885# as_fn_append VAR VALUE
13886# ----------------------
13887# Append the text in VALUE to the end of the definition contained in VAR. Take
13888# advantage of any shell optimizations that allow amortized linear growth over
13889# repeated appends, instead of the typical quadratic growth present in naive
13890# implementations.
13891if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
13892  eval 'as_fn_append ()
13893  {
13894    eval $1+=\$2
13895  }'
13896else
13897  as_fn_append ()
13898  {
13899    eval $1=\$$1\$2
13900  }
13901fi # as_fn_append
13902
13903# as_fn_arith ARG...
13904# ------------------
13905# Perform arithmetic evaluation on the ARGs, and store the result in the
13906# global $as_val. Take advantage of shells that can avoid forks. The arguments
13907# must be portable across $(()) and expr.
13908if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
13909  eval 'as_fn_arith ()
13910  {
13911    as_val=$(( $* ))
13912  }'
13913else
13914  as_fn_arith ()
13915  {
13916    as_val=`expr "$@" || test $? -eq 1`
13917  }
13918fi # as_fn_arith
13919
13920
13921if expr a : '\(a\)' >/dev/null 2>&1 &&
13922   test "X`expr 00001 : '.*\(...\)'`" = X001; then
13923  as_expr=expr
13924else
13925  as_expr=false
13926fi
13927
13928if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
13929  as_basename=basename
13930else
13931  as_basename=false
13932fi
13933
13934if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
13935  as_dirname=dirname
13936else
13937  as_dirname=false
13938fi
13939
13940as_me=`$as_basename -- "$0" ||
13941$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
13942	 X"$0" : 'X\(//\)$' \| \
13943	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
13944$as_echo X/"$0" |
13945    sed '/^.*\/\([^/][^/]*\)\/*$/{
13946	    s//\1/
13947	    q
13948	  }
13949	  /^X\/\(\/\/\)$/{
13950	    s//\1/
13951	    q
13952	  }
13953	  /^X\/\(\/\).*/{
13954	    s//\1/
13955	    q
13956	  }
13957	  s/.*/./; q'`
13958
13959# Avoid depending upon Character Ranges.
13960as_cr_letters='abcdefghijklmnopqrstuvwxyz'
13961as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
13962as_cr_Letters=$as_cr_letters$as_cr_LETTERS
13963as_cr_digits='0123456789'
13964as_cr_alnum=$as_cr_Letters$as_cr_digits
13965
13966ECHO_C= ECHO_N= ECHO_T=
13967case `echo -n x` in #(((((
13968-n*)
13969  case `echo 'xy\c'` in
13970  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
13971  xy)  ECHO_C='\c';;
13972  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
13973       ECHO_T='	';;
13974  esac;;
13975*)
13976  ECHO_N='-n';;
13977esac
13978
13979rm -f conf$$ conf$$.exe conf$$.file
13980if test -d conf$$.dir; then
13981  rm -f conf$$.dir/conf$$.file
13982else
13983  rm -f conf$$.dir
13984  mkdir conf$$.dir 2>/dev/null
13985fi
13986if (echo >conf$$.file) 2>/dev/null; then
13987  if ln -s conf$$.file conf$$ 2>/dev/null; then
13988    as_ln_s='ln -s'
13989    # ... but there are two gotchas:
13990    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
13991    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
13992    # In both cases, we have to default to `cp -pR'.
13993    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
13994      as_ln_s='cp -pR'
13995  elif ln conf$$.file conf$$ 2>/dev/null; then
13996    as_ln_s=ln
13997  else
13998    as_ln_s='cp -pR'
13999  fi
14000else
14001  as_ln_s='cp -pR'
14002fi
14003rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
14004rmdir conf$$.dir 2>/dev/null
14005
14006
14007# as_fn_mkdir_p
14008# -------------
14009# Create "$as_dir" as a directory, including parents if necessary.
14010as_fn_mkdir_p ()
14011{
14012
14013  case $as_dir in #(
14014  -*) as_dir=./$as_dir;;
14015  esac
14016  test -d "$as_dir" || eval $as_mkdir_p || {
14017    as_dirs=
14018    while :; do
14019      case $as_dir in #(
14020      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
14021      *) as_qdir=$as_dir;;
14022      esac
14023      as_dirs="'$as_qdir' $as_dirs"
14024      as_dir=`$as_dirname -- "$as_dir" ||
14025$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14026	 X"$as_dir" : 'X\(//\)[^/]' \| \
14027	 X"$as_dir" : 'X\(//\)$' \| \
14028	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
14029$as_echo X"$as_dir" |
14030    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14031	    s//\1/
14032	    q
14033	  }
14034	  /^X\(\/\/\)[^/].*/{
14035	    s//\1/
14036	    q
14037	  }
14038	  /^X\(\/\/\)$/{
14039	    s//\1/
14040	    q
14041	  }
14042	  /^X\(\/\).*/{
14043	    s//\1/
14044	    q
14045	  }
14046	  s/.*/./; q'`
14047      test -d "$as_dir" && break
14048    done
14049    test -z "$as_dirs" || eval "mkdir $as_dirs"
14050  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
14051
14052
14053} # as_fn_mkdir_p
14054if mkdir -p . 2>/dev/null; then
14055  as_mkdir_p='mkdir -p "$as_dir"'
14056else
14057  test -d ./-p && rmdir ./-p
14058  as_mkdir_p=false
14059fi
14060
14061
14062# as_fn_executable_p FILE
14063# -----------------------
14064# Test if FILE is an executable regular file.
14065as_fn_executable_p ()
14066{
14067  test -f "$1" && test -x "$1"
14068} # as_fn_executable_p
14069as_test_x='test -x'
14070as_executable_p=as_fn_executable_p
14071
14072# Sed expression to map a string onto a valid CPP name.
14073as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
14074
14075# Sed expression to map a string onto a valid variable name.
14076as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
14077
14078
14079exec 6>&1
14080## ----------------------------------- ##
14081## Main body of $CONFIG_STATUS script. ##
14082## ----------------------------------- ##
14083_ASEOF
14084test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
14085
14086cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14087# Save the log message, to keep $0 and so on meaningful, and to
14088# report actual input values of CONFIG_FILES etc. instead of their
14089# values after options handling.
14090ac_log="
14091This file was extended by sqlite $as_me 3.12.1, which was
14092generated by GNU Autoconf 2.69.  Invocation command line was
14093
14094  CONFIG_FILES    = $CONFIG_FILES
14095  CONFIG_HEADERS  = $CONFIG_HEADERS
14096  CONFIG_LINKS    = $CONFIG_LINKS
14097  CONFIG_COMMANDS = $CONFIG_COMMANDS
14098  $ $0 $@
14099
14100on `(hostname || uname -n) 2>/dev/null | sed 1q`
14101"
14102
14103_ACEOF
14104
14105case $ac_config_files in *"
14106"*) set x $ac_config_files; shift; ac_config_files=$*;;
14107esac
14108
14109
14110
14111cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14112# Files that config.status was made for.
14113config_files="$ac_config_files"
14114config_commands="$ac_config_commands"
14115
14116_ACEOF
14117
14118cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14119ac_cs_usage="\
14120\`$as_me' instantiates files and other configuration actions
14121from templates according to the current configuration.  Unless the files
14122and actions are specified as TAGs, all are instantiated by default.
14123
14124Usage: $0 [OPTION]... [TAG]...
14125
14126  -h, --help       print this help, then exit
14127  -V, --version    print version number and configuration settings, then exit
14128      --config     print configuration, then exit
14129  -q, --quiet, --silent
14130                   do not print progress messages
14131  -d, --debug      don't remove temporary files
14132      --recheck    update $as_me by reconfiguring in the same conditions
14133      --file=FILE[:TEMPLATE]
14134                   instantiate the configuration file FILE
14135
14136Configuration files:
14137$config_files
14138
14139Configuration commands:
14140$config_commands
14141
14142Report bugs to <http://www.sqlite.org>."
14143
14144_ACEOF
14145cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14146ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
14147ac_cs_version="\\
14148sqlite config.status 3.12.1
14149configured by $0, generated by GNU Autoconf 2.69,
14150  with options \\"\$ac_cs_config\\"
14151
14152Copyright (C) 2012 Free Software Foundation, Inc.
14153This config.status script is free software; the Free Software Foundation
14154gives unlimited permission to copy, distribute and modify it."
14155
14156ac_pwd='$ac_pwd'
14157srcdir='$srcdir'
14158INSTALL='$INSTALL'
14159MKDIR_P='$MKDIR_P'
14160AWK='$AWK'
14161test -n "\$AWK" || AWK=awk
14162_ACEOF
14163
14164cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14165# The default lists apply if the user does not specify any file.
14166ac_need_defaults=:
14167while test $# != 0
14168do
14169  case $1 in
14170  --*=?*)
14171    ac_option=`expr "X$1" : 'X\([^=]*\)='`
14172    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
14173    ac_shift=:
14174    ;;
14175  --*=)
14176    ac_option=`expr "X$1" : 'X\([^=]*\)='`
14177    ac_optarg=
14178    ac_shift=:
14179    ;;
14180  *)
14181    ac_option=$1
14182    ac_optarg=$2
14183    ac_shift=shift
14184    ;;
14185  esac
14186
14187  case $ac_option in
14188  # Handling of the options.
14189  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
14190    ac_cs_recheck=: ;;
14191  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
14192    $as_echo "$ac_cs_version"; exit ;;
14193  --config | --confi | --conf | --con | --co | --c )
14194    $as_echo "$ac_cs_config"; exit ;;
14195  --debug | --debu | --deb | --de | --d | -d )
14196    debug=: ;;
14197  --file | --fil | --fi | --f )
14198    $ac_shift
14199    case $ac_optarg in
14200    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
14201    '') as_fn_error $? "missing file argument" ;;
14202    esac
14203    as_fn_append CONFIG_FILES " '$ac_optarg'"
14204    ac_need_defaults=false;;
14205  --he | --h |  --help | --hel | -h )
14206    $as_echo "$ac_cs_usage"; exit ;;
14207  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
14208  | -silent | --silent | --silen | --sile | --sil | --si | --s)
14209    ac_cs_silent=: ;;
14210
14211  # This is an error.
14212  -*) as_fn_error $? "unrecognized option: \`$1'
14213Try \`$0 --help' for more information." ;;
14214
14215  *) as_fn_append ac_config_targets " $1"
14216     ac_need_defaults=false ;;
14217
14218  esac
14219  shift
14220done
14221
14222ac_configure_extra_args=
14223
14224if $ac_cs_silent; then
14225  exec 6>/dev/null
14226  ac_configure_extra_args="$ac_configure_extra_args --silent"
14227fi
14228
14229_ACEOF
14230cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14231if \$ac_cs_recheck; then
14232  set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
14233  shift
14234  \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
14235  CONFIG_SHELL='$SHELL'
14236  export CONFIG_SHELL
14237  exec "\$@"
14238fi
14239
14240_ACEOF
14241cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14242exec 5>>config.log
14243{
14244  echo
14245  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
14246## Running $as_me. ##
14247_ASBOX
14248  $as_echo "$ac_log"
14249} >&5
14250
14251_ACEOF
14252cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14253#
14254# INIT-COMMANDS
14255#
14256AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
14257
14258
14259# The HP-UX ksh and POSIX shell print the target directory to stdout
14260# if CDPATH is set.
14261(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
14262
14263sed_quote_subst='$sed_quote_subst'
14264double_quote_subst='$double_quote_subst'
14265delay_variable_subst='$delay_variable_subst'
14266macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
14267macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
14268enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
14269enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
14270pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
14271enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
14272shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
14273SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
14274ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
14275PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
14276host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
14277host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
14278host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
14279build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
14280build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
14281build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
14282SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
14283Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
14284GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
14285EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
14286FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
14287LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
14288NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
14289LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
14290max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
14291ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
14292exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
14293lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
14294lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
14295lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
14296lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
14297lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
14298reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
14299reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
14300OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
14301deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
14302file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
14303file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
14304want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
14305DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
14306sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
14307AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
14308AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
14309archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
14310STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
14311RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
14312old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
14313old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
14314old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
14315lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
14316CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
14317CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
14318compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
14319GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
14320lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
14321lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
14322lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
14323lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
14324lt_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"`'
14325lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
14326nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
14327lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
14328lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
14329objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
14330MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
14331lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
14332lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
14333lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
14334lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
14335lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
14336need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
14337MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
14338DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
14339NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
14340LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
14341OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
14342OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
14343libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
14344shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
14345extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
14346archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
14347enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
14348export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
14349whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
14350compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
14351old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
14352old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
14353archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
14354archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
14355module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
14356module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
14357with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
14358allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
14359no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
14360hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
14361hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
14362hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
14363hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
14364hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
14365hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
14366hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
14367inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
14368link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
14369always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
14370export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
14371exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
14372include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
14373prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
14374postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
14375file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
14376variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
14377need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
14378need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
14379version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
14380runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
14381shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
14382shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
14383libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
14384library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
14385soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
14386install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
14387postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
14388postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
14389finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
14390finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
14391hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
14392sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
14393configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
14394configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
14395hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
14396enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
14397enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
14398enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
14399old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
14400striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
14401
14402LTCC='$LTCC'
14403LTCFLAGS='$LTCFLAGS'
14404compiler='$compiler_DEFAULT'
14405
14406# A function that is used when there is no print builtin or printf.
14407func_fallback_echo ()
14408{
14409  eval 'cat <<_LTECHO_EOF
14410\$1
14411_LTECHO_EOF'
14412}
14413
14414# Quote evaled strings.
14415for var in SHELL \
14416ECHO \
14417PATH_SEPARATOR \
14418SED \
14419GREP \
14420EGREP \
14421FGREP \
14422LD \
14423NM \
14424LN_S \
14425lt_SP2NL \
14426lt_NL2SP \
14427reload_flag \
14428OBJDUMP \
14429deplibs_check_method \
14430file_magic_cmd \
14431file_magic_glob \
14432want_nocaseglob \
14433DLLTOOL \
14434sharedlib_from_linklib_cmd \
14435AR \
14436AR_FLAGS \
14437archiver_list_spec \
14438STRIP \
14439RANLIB \
14440CC \
14441CFLAGS \
14442compiler \
14443lt_cv_sys_global_symbol_pipe \
14444lt_cv_sys_global_symbol_to_cdecl \
14445lt_cv_sys_global_symbol_to_import \
14446lt_cv_sys_global_symbol_to_c_name_address \
14447lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
14448lt_cv_nm_interface \
14449nm_file_list_spec \
14450lt_cv_truncate_bin \
14451lt_prog_compiler_no_builtin_flag \
14452lt_prog_compiler_pic \
14453lt_prog_compiler_wl \
14454lt_prog_compiler_static \
14455lt_cv_prog_compiler_c_o \
14456need_locks \
14457MANIFEST_TOOL \
14458DSYMUTIL \
14459NMEDIT \
14460LIPO \
14461OTOOL \
14462OTOOL64 \
14463shrext_cmds \
14464export_dynamic_flag_spec \
14465whole_archive_flag_spec \
14466compiler_needs_object \
14467with_gnu_ld \
14468allow_undefined_flag \
14469no_undefined_flag \
14470hardcode_libdir_flag_spec \
14471hardcode_libdir_separator \
14472exclude_expsyms \
14473include_expsyms \
14474file_list_spec \
14475variables_saved_for_relink \
14476libname_spec \
14477library_names_spec \
14478soname_spec \
14479install_override_mode \
14480finish_eval \
14481old_striplib \
14482striplib; do
14483    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
14484    *[\\\\\\\`\\"\\\$]*)
14485      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
14486      ;;
14487    *)
14488      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
14489      ;;
14490    esac
14491done
14492
14493# Double-quote double-evaled strings.
14494for var in reload_cmds \
14495old_postinstall_cmds \
14496old_postuninstall_cmds \
14497old_archive_cmds \
14498extract_expsyms_cmds \
14499old_archive_from_new_cmds \
14500old_archive_from_expsyms_cmds \
14501archive_cmds \
14502archive_expsym_cmds \
14503module_cmds \
14504module_expsym_cmds \
14505export_symbols_cmds \
14506prelink_cmds \
14507postlink_cmds \
14508postinstall_cmds \
14509postuninstall_cmds \
14510finish_cmds \
14511sys_lib_search_path_spec \
14512configure_time_dlsearch_path \
14513configure_time_lt_sys_library_path; do
14514    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
14515    *[\\\\\\\`\\"\\\$]*)
14516      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
14517      ;;
14518    *)
14519      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
14520      ;;
14521    esac
14522done
14523
14524ac_aux_dir='$ac_aux_dir'
14525
14526# See if we are running on zsh, and set the options that allow our
14527# commands through without removal of \ escapes INIT.
14528if test -n "\${ZSH_VERSION+set}"; then
14529   setopt NO_GLOB_SUBST
14530fi
14531
14532
14533    PACKAGE='$PACKAGE'
14534    VERSION='$VERSION'
14535    RM='$RM'
14536    ofile='$ofile'
14537
14538
14539
14540
14541_ACEOF
14542
14543cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14544
14545# Handling of arguments.
14546for ac_config_target in $ac_config_targets
14547do
14548  case $ac_config_target in
14549    "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
14550    "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
14551    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
14552    "sqlite3.pc") CONFIG_FILES="$CONFIG_FILES sqlite3.pc" ;;
14553
14554  *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
14555  esac
14556done
14557
14558
14559# If the user did not use the arguments to specify the items to instantiate,
14560# then the envvar interface is used.  Set only those that are not.
14561# We use the long form for the default assignment because of an extremely
14562# bizarre bug on SunOS 4.1.3.
14563if $ac_need_defaults; then
14564  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
14565  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
14566fi
14567
14568# Have a temporary directory for convenience.  Make it in the build tree
14569# simply because there is no reason against having it here, and in addition,
14570# creating and moving files from /tmp can sometimes cause problems.
14571# Hook for its removal unless debugging.
14572# Note that there is a small window in which the directory will not be cleaned:
14573# after its creation but before its name has been assigned to `$tmp'.
14574$debug ||
14575{
14576  tmp= ac_tmp=
14577  trap 'exit_status=$?
14578  : "${ac_tmp:=$tmp}"
14579  { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
14580' 0
14581  trap 'as_fn_exit 1' 1 2 13 15
14582}
14583# Create a (secure) tmp directory for tmp files.
14584
14585{
14586  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
14587  test -d "$tmp"
14588}  ||
14589{
14590  tmp=./conf$$-$RANDOM
14591  (umask 077 && mkdir "$tmp")
14592} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
14593ac_tmp=$tmp
14594
14595# Set up the scripts for CONFIG_FILES section.
14596# No need to generate them if there are no CONFIG_FILES.
14597# This happens for instance with `./config.status config.h'.
14598if test -n "$CONFIG_FILES"; then
14599
14600
14601ac_cr=`echo X | tr X '\015'`
14602# On cygwin, bash can eat \r inside `` if the user requested igncr.
14603# But we know of no other shell where ac_cr would be empty at this
14604# point, so we can use a bashism as a fallback.
14605if test "x$ac_cr" = x; then
14606  eval ac_cr=\$\'\\r\'
14607fi
14608ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
14609if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
14610  ac_cs_awk_cr='\\r'
14611else
14612  ac_cs_awk_cr=$ac_cr
14613fi
14614
14615echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
14616_ACEOF
14617
14618
14619{
14620  echo "cat >conf$$subs.awk <<_ACEOF" &&
14621  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
14622  echo "_ACEOF"
14623} >conf$$subs.sh ||
14624  as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
14625ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
14626ac_delim='%!_!# '
14627for ac_last_try in false false false false false :; do
14628  . ./conf$$subs.sh ||
14629    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
14630
14631  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
14632  if test $ac_delim_n = $ac_delim_num; then
14633    break
14634  elif $ac_last_try; then
14635    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
14636  else
14637    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
14638  fi
14639done
14640rm -f conf$$subs.sh
14641
14642cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14643cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
14644_ACEOF
14645sed -n '
14646h
14647s/^/S["/; s/!.*/"]=/
14648p
14649g
14650s/^[^!]*!//
14651:repl
14652t repl
14653s/'"$ac_delim"'$//
14654t delim
14655:nl
14656h
14657s/\(.\{148\}\)..*/\1/
14658t more1
14659s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
14660p
14661n
14662b repl
14663:more1
14664s/["\\]/\\&/g; s/^/"/; s/$/"\\/
14665p
14666g
14667s/.\{148\}//
14668t nl
14669:delim
14670h
14671s/\(.\{148\}\)..*/\1/
14672t more2
14673s/["\\]/\\&/g; s/^/"/; s/$/"/
14674p
14675b
14676:more2
14677s/["\\]/\\&/g; s/^/"/; s/$/"\\/
14678p
14679g
14680s/.\{148\}//
14681t delim
14682' <conf$$subs.awk | sed '
14683/^[^""]/{
14684  N
14685  s/\n//
14686}
14687' >>$CONFIG_STATUS || ac_write_fail=1
14688rm -f conf$$subs.awk
14689cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14690_ACAWK
14691cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
14692  for (key in S) S_is_set[key] = 1
14693  FS = ""
14694
14695}
14696{
14697  line = $ 0
14698  nfields = split(line, field, "@")
14699  substed = 0
14700  len = length(field[1])
14701  for (i = 2; i < nfields; i++) {
14702    key = field[i]
14703    keylen = length(key)
14704    if (S_is_set[key]) {
14705      value = S[key]
14706      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
14707      len += length(value) + length(field[++i])
14708      substed = 1
14709    } else
14710      len += 1 + keylen
14711  }
14712
14713  print line
14714}
14715
14716_ACAWK
14717_ACEOF
14718cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14719if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
14720  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
14721else
14722  cat
14723fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
14724  || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
14725_ACEOF
14726
14727# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
14728# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
14729# trailing colons and then remove the whole line if VPATH becomes empty
14730# (actually we leave an empty line to preserve line numbers).
14731if test "x$srcdir" = x.; then
14732  ac_vpsub='/^[	 ]*VPATH[	 ]*=[	 ]*/{
14733h
14734s///
14735s/^/:/
14736s/[	 ]*$/:/
14737s/:\$(srcdir):/:/g
14738s/:\${srcdir}:/:/g
14739s/:@srcdir@:/:/g
14740s/^:*//
14741s/:*$//
14742x
14743s/\(=[	 ]*\).*/\1/
14744G
14745s/\n//
14746s/^[^=]*=[	 ]*$//
14747}'
14748fi
14749
14750cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14751fi # test -n "$CONFIG_FILES"
14752
14753
14754eval set X "  :F $CONFIG_FILES      :C $CONFIG_COMMANDS"
14755shift
14756for ac_tag
14757do
14758  case $ac_tag in
14759  :[FHLC]) ac_mode=$ac_tag; continue;;
14760  esac
14761  case $ac_mode$ac_tag in
14762  :[FHL]*:*);;
14763  :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
14764  :[FH]-) ac_tag=-:-;;
14765  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
14766  esac
14767  ac_save_IFS=$IFS
14768  IFS=:
14769  set x $ac_tag
14770  IFS=$ac_save_IFS
14771  shift
14772  ac_file=$1
14773  shift
14774
14775  case $ac_mode in
14776  :L) ac_source=$1;;
14777  :[FH])
14778    ac_file_inputs=
14779    for ac_f
14780    do
14781      case $ac_f in
14782      -) ac_f="$ac_tmp/stdin";;
14783      *) # Look for the file first in the build tree, then in the source tree
14784	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
14785	 # because $ac_f cannot contain `:'.
14786	 test -f "$ac_f" ||
14787	   case $ac_f in
14788	   [\\/$]*) false;;
14789	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
14790	   esac ||
14791	   as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
14792      esac
14793      case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
14794      as_fn_append ac_file_inputs " '$ac_f'"
14795    done
14796
14797    # Let's still pretend it is `configure' which instantiates (i.e., don't
14798    # use $as_me), people would be surprised to read:
14799    #    /* config.h.  Generated by config.status.  */
14800    configure_input='Generated from '`
14801	  $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
14802	`' by configure.'
14803    if test x"$ac_file" != x-; then
14804      configure_input="$ac_file.  $configure_input"
14805      { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
14806$as_echo "$as_me: creating $ac_file" >&6;}
14807    fi
14808    # Neutralize special characters interpreted by sed in replacement strings.
14809    case $configure_input in #(
14810    *\&* | *\|* | *\\* )
14811       ac_sed_conf_input=`$as_echo "$configure_input" |
14812       sed 's/[\\\\&|]/\\\\&/g'`;; #(
14813    *) ac_sed_conf_input=$configure_input;;
14814    esac
14815
14816    case $ac_tag in
14817    *:-:* | *:-) cat >"$ac_tmp/stdin" \
14818      || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
14819    esac
14820    ;;
14821  esac
14822
14823  ac_dir=`$as_dirname -- "$ac_file" ||
14824$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14825	 X"$ac_file" : 'X\(//\)[^/]' \| \
14826	 X"$ac_file" : 'X\(//\)$' \| \
14827	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
14828$as_echo X"$ac_file" |
14829    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14830	    s//\1/
14831	    q
14832	  }
14833	  /^X\(\/\/\)[^/].*/{
14834	    s//\1/
14835	    q
14836	  }
14837	  /^X\(\/\/\)$/{
14838	    s//\1/
14839	    q
14840	  }
14841	  /^X\(\/\).*/{
14842	    s//\1/
14843	    q
14844	  }
14845	  s/.*/./; q'`
14846  as_dir="$ac_dir"; as_fn_mkdir_p
14847  ac_builddir=.
14848
14849case "$ac_dir" in
14850.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
14851*)
14852  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
14853  # A ".." for each directory in $ac_dir_suffix.
14854  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
14855  case $ac_top_builddir_sub in
14856  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
14857  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
14858  esac ;;
14859esac
14860ac_abs_top_builddir=$ac_pwd
14861ac_abs_builddir=$ac_pwd$ac_dir_suffix
14862# for backward compatibility:
14863ac_top_builddir=$ac_top_build_prefix
14864
14865case $srcdir in
14866  .)  # We are building in place.
14867    ac_srcdir=.
14868    ac_top_srcdir=$ac_top_builddir_sub
14869    ac_abs_top_srcdir=$ac_pwd ;;
14870  [\\/]* | ?:[\\/]* )  # Absolute name.
14871    ac_srcdir=$srcdir$ac_dir_suffix;
14872    ac_top_srcdir=$srcdir
14873    ac_abs_top_srcdir=$srcdir ;;
14874  *) # Relative name.
14875    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
14876    ac_top_srcdir=$ac_top_build_prefix$srcdir
14877    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
14878esac
14879ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
14880
14881
14882  case $ac_mode in
14883  :F)
14884  #
14885  # CONFIG_FILE
14886  #
14887
14888  case $INSTALL in
14889  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
14890  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
14891  esac
14892  ac_MKDIR_P=$MKDIR_P
14893  case $MKDIR_P in
14894  [\\/$]* | ?:[\\/]* ) ;;
14895  */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
14896  esac
14897_ACEOF
14898
14899cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14900# If the template does not know about datarootdir, expand it.
14901# FIXME: This hack should be removed a few years after 2.60.
14902ac_datarootdir_hack=; ac_datarootdir_seen=
14903ac_sed_dataroot='
14904/datarootdir/ {
14905  p
14906  q
14907}
14908/@datadir@/p
14909/@docdir@/p
14910/@infodir@/p
14911/@localedir@/p
14912/@mandir@/p'
14913case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
14914*datarootdir*) ac_datarootdir_seen=yes;;
14915*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
14916  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
14917$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
14918_ACEOF
14919cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14920  ac_datarootdir_hack='
14921  s&@datadir@&$datadir&g
14922  s&@docdir@&$docdir&g
14923  s&@infodir@&$infodir&g
14924  s&@localedir@&$localedir&g
14925  s&@mandir@&$mandir&g
14926  s&\\\${datarootdir}&$datarootdir&g' ;;
14927esac
14928_ACEOF
14929
14930# Neutralize VPATH when `$srcdir' = `.'.
14931# Shell code in configure.ac might set extrasub.
14932# FIXME: do we really want to maintain this feature?
14933cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14934ac_sed_extra="$ac_vpsub
14935$extrasub
14936_ACEOF
14937cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14938:t
14939/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
14940s|@configure_input@|$ac_sed_conf_input|;t t
14941s&@top_builddir@&$ac_top_builddir_sub&;t t
14942s&@top_build_prefix@&$ac_top_build_prefix&;t t
14943s&@srcdir@&$ac_srcdir&;t t
14944s&@abs_srcdir@&$ac_abs_srcdir&;t t
14945s&@top_srcdir@&$ac_top_srcdir&;t t
14946s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
14947s&@builddir@&$ac_builddir&;t t
14948s&@abs_builddir@&$ac_abs_builddir&;t t
14949s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
14950s&@INSTALL@&$ac_INSTALL&;t t
14951s&@MKDIR_P@&$ac_MKDIR_P&;t t
14952$ac_datarootdir_hack
14953"
14954eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
14955  >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
14956
14957test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
14958  { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
14959  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' \
14960      "$ac_tmp/out"`; test -z "$ac_out"; } &&
14961  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
14962which seems to be undefined.  Please make sure it is defined" >&5
14963$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
14964which seems to be undefined.  Please make sure it is defined" >&2;}
14965
14966  rm -f "$ac_tmp/stdin"
14967  case $ac_file in
14968  -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
14969  *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
14970  esac \
14971  || as_fn_error $? "could not create $ac_file" "$LINENO" 5
14972 ;;
14973
14974
14975  :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
14976$as_echo "$as_me: executing $ac_file commands" >&6;}
14977 ;;
14978  esac
14979
14980
14981  case $ac_file$ac_mode in
14982    "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
14983  # Older Autoconf quotes --file arguments for eval, but not when files
14984  # are listed without --file.  Let's play safe and only enable the eval
14985  # if we detect the quoting.
14986  case $CONFIG_FILES in
14987  *\'*) eval set x "$CONFIG_FILES" ;;
14988  *)   set x $CONFIG_FILES ;;
14989  esac
14990  shift
14991  for mf
14992  do
14993    # Strip MF so we end up with the name of the file.
14994    mf=`echo "$mf" | sed -e 's/:.*$//'`
14995    # Check whether this is an Automake generated Makefile or not.
14996    # We used to match only the files named 'Makefile.in', but
14997    # some people rename them; so instead we look at the file content.
14998    # Grep'ing the first line is not enough: some people post-process
14999    # each Makefile.in and add a new line on top of each file to say so.
15000    # Grep'ing the whole file is not good either: AIX grep has a line
15001    # limit of 2048, but all sed's we know have understand at least 4000.
15002    if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
15003      dirpart=`$as_dirname -- "$mf" ||
15004$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15005	 X"$mf" : 'X\(//\)[^/]' \| \
15006	 X"$mf" : 'X\(//\)$' \| \
15007	 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
15008$as_echo X"$mf" |
15009    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15010	    s//\1/
15011	    q
15012	  }
15013	  /^X\(\/\/\)[^/].*/{
15014	    s//\1/
15015	    q
15016	  }
15017	  /^X\(\/\/\)$/{
15018	    s//\1/
15019	    q
15020	  }
15021	  /^X\(\/\).*/{
15022	    s//\1/
15023	    q
15024	  }
15025	  s/.*/./; q'`
15026    else
15027      continue
15028    fi
15029    # Extract the definition of DEPDIR, am__include, and am__quote
15030    # from the Makefile without running 'make'.
15031    DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
15032    test -z "$DEPDIR" && continue
15033    am__include=`sed -n 's/^am__include = //p' < "$mf"`
15034    test -z "$am__include" && continue
15035    am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
15036    # Find all dependency output files, they are included files with
15037    # $(DEPDIR) in their names.  We invoke sed twice because it is the
15038    # simplest approach to changing $(DEPDIR) to its actual value in the
15039    # expansion.
15040    for file in `sed -n "
15041      s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
15042	 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
15043      # Make sure the directory exists.
15044      test -f "$dirpart/$file" && continue
15045      fdir=`$as_dirname -- "$file" ||
15046$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15047	 X"$file" : 'X\(//\)[^/]' \| \
15048	 X"$file" : 'X\(//\)$' \| \
15049	 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
15050$as_echo X"$file" |
15051    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15052	    s//\1/
15053	    q
15054	  }
15055	  /^X\(\/\/\)[^/].*/{
15056	    s//\1/
15057	    q
15058	  }
15059	  /^X\(\/\/\)$/{
15060	    s//\1/
15061	    q
15062	  }
15063	  /^X\(\/\).*/{
15064	    s//\1/
15065	    q
15066	  }
15067	  s/.*/./; q'`
15068      as_dir=$dirpart/$fdir; as_fn_mkdir_p
15069      # echo "creating $dirpart/$file"
15070      echo '# dummy' > "$dirpart/$file"
15071    done
15072  done
15073}
15074 ;;
15075    "libtool":C)
15076
15077    # See if we are running on zsh, and set the options that allow our
15078    # commands through without removal of \ escapes.
15079    if test -n "${ZSH_VERSION+set}"; then
15080      setopt NO_GLOB_SUBST
15081    fi
15082
15083    cfgfile=${ofile}T
15084    trap "$RM \"$cfgfile\"; exit 1" 1 2 15
15085    $RM "$cfgfile"
15086
15087    cat <<_LT_EOF >> "$cfgfile"
15088#! $SHELL
15089# Generated automatically by $as_me ($PACKAGE) $VERSION
15090# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
15091# NOTE: Changes made to this file will be lost: look at ltmain.sh.
15092
15093# Provide generalized library-building support services.
15094# Written by Gordon Matzigkeit, 1996
15095
15096# Copyright (C) 2014 Free Software Foundation, Inc.
15097# This is free software; see the source for copying conditions.  There is NO
15098# warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
15099
15100# GNU Libtool is free software; you can redistribute it and/or modify
15101# it under the terms of the GNU General Public License as published by
15102# the Free Software Foundation; either version 2 of of the License, or
15103# (at your option) any later version.
15104#
15105# As a special exception to the GNU General Public License, if you
15106# distribute this file as part of a program or library that is built
15107# using GNU Libtool, you may include this file under the  same
15108# distribution terms that you use for the rest of that program.
15109#
15110# GNU Libtool is distributed in the hope that it will be useful, but
15111# WITHOUT ANY WARRANTY; without even the implied warranty of
15112# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
15113# GNU General Public License for more details.
15114#
15115# You should have received a copy of the GNU General Public License
15116# along with this program.  If not, see <http://www.gnu.org/licenses/>.
15117
15118
15119# The names of the tagged configurations supported by this script.
15120available_tags=''
15121
15122# Configured defaults for sys_lib_dlsearch_path munging.
15123: \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
15124
15125# ### BEGIN LIBTOOL CONFIG
15126
15127# Which release of libtool.m4 was used?
15128macro_version=$macro_version
15129macro_revision=$macro_revision
15130
15131# Whether or not to build shared libraries.
15132build_libtool_libs=$enable_shared
15133
15134# Whether or not to build static libraries.
15135build_old_libs=$enable_static
15136
15137# What type of objects to build.
15138pic_mode=$pic_mode
15139
15140# Whether or not to optimize for fast installation.
15141fast_install=$enable_fast_install
15142
15143# Shared archive member basename,for filename based shared library versioning on AIX.
15144shared_archive_member_spec=$shared_archive_member_spec
15145
15146# Shell to use when invoking shell scripts.
15147SHELL=$lt_SHELL
15148
15149# An echo program that protects backslashes.
15150ECHO=$lt_ECHO
15151
15152# The PATH separator for the build system.
15153PATH_SEPARATOR=$lt_PATH_SEPARATOR
15154
15155# The host system.
15156host_alias=$host_alias
15157host=$host
15158host_os=$host_os
15159
15160# The build system.
15161build_alias=$build_alias
15162build=$build
15163build_os=$build_os
15164
15165# A sed program that does not truncate output.
15166SED=$lt_SED
15167
15168# Sed that helps us avoid accidentally triggering echo(1) options like -n.
15169Xsed="\$SED -e 1s/^X//"
15170
15171# A grep program that handles long lines.
15172GREP=$lt_GREP
15173
15174# An ERE matcher.
15175EGREP=$lt_EGREP
15176
15177# A literal string matcher.
15178FGREP=$lt_FGREP
15179
15180# A BSD- or MS-compatible name lister.
15181NM=$lt_NM
15182
15183# Whether we need soft or hard links.
15184LN_S=$lt_LN_S
15185
15186# What is the maximum length of a command?
15187max_cmd_len=$max_cmd_len
15188
15189# Object file suffix (normally "o").
15190objext=$ac_objext
15191
15192# Executable file suffix (normally "").
15193exeext=$exeext
15194
15195# whether the shell understands "unset".
15196lt_unset=$lt_unset
15197
15198# turn spaces into newlines.
15199SP2NL=$lt_lt_SP2NL
15200
15201# turn newlines into spaces.
15202NL2SP=$lt_lt_NL2SP
15203
15204# convert \$build file names to \$host format.
15205to_host_file_cmd=$lt_cv_to_host_file_cmd
15206
15207# convert \$build files to toolchain format.
15208to_tool_file_cmd=$lt_cv_to_tool_file_cmd
15209
15210# An object symbol dumper.
15211OBJDUMP=$lt_OBJDUMP
15212
15213# Method to check whether dependent libraries are shared objects.
15214deplibs_check_method=$lt_deplibs_check_method
15215
15216# Command to use when deplibs_check_method = "file_magic".
15217file_magic_cmd=$lt_file_magic_cmd
15218
15219# How to find potential files when deplibs_check_method = "file_magic".
15220file_magic_glob=$lt_file_magic_glob
15221
15222# Find potential files using nocaseglob when deplibs_check_method = "file_magic".
15223want_nocaseglob=$lt_want_nocaseglob
15224
15225# DLL creation program.
15226DLLTOOL=$lt_DLLTOOL
15227
15228# Command to associate shared and link libraries.
15229sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
15230
15231# The archiver.
15232AR=$lt_AR
15233
15234# Flags to create an archive.
15235AR_FLAGS=$lt_AR_FLAGS
15236
15237# How to feed a file listing to the archiver.
15238archiver_list_spec=$lt_archiver_list_spec
15239
15240# A symbol stripping program.
15241STRIP=$lt_STRIP
15242
15243# Commands used to install an old-style archive.
15244RANLIB=$lt_RANLIB
15245old_postinstall_cmds=$lt_old_postinstall_cmds
15246old_postuninstall_cmds=$lt_old_postuninstall_cmds
15247
15248# Whether to use a lock for old archive extraction.
15249lock_old_archive_extraction=$lock_old_archive_extraction
15250
15251# A C compiler.
15252LTCC=$lt_CC
15253
15254# LTCC compiler flags.
15255LTCFLAGS=$lt_CFLAGS
15256
15257# Take the output of nm and produce a listing of raw symbols and C names.
15258global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
15259
15260# Transform the output of nm in a proper C declaration.
15261global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
15262
15263# Transform the output of nm into a list of symbols to manually relocate.
15264global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
15265
15266# Transform the output of nm in a C name address pair.
15267global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
15268
15269# Transform the output of nm in a C name address pair when lib prefix is needed.
15270global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
15271
15272# The name lister interface.
15273nm_interface=$lt_lt_cv_nm_interface
15274
15275# Specify filename containing input files for \$NM.
15276nm_file_list_spec=$lt_nm_file_list_spec
15277
15278# The root where to search for dependent libraries,and where our libraries should be installed.
15279lt_sysroot=$lt_sysroot
15280
15281# Command to truncate a binary pipe.
15282lt_truncate_bin=$lt_lt_cv_truncate_bin
15283
15284# The name of the directory that contains temporary libtool files.
15285objdir=$objdir
15286
15287# Used to examine libraries when file_magic_cmd begins with "file".
15288MAGIC_CMD=$MAGIC_CMD
15289
15290# Must we lock files when doing compilation?
15291need_locks=$lt_need_locks
15292
15293# Manifest tool.
15294MANIFEST_TOOL=$lt_MANIFEST_TOOL
15295
15296# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
15297DSYMUTIL=$lt_DSYMUTIL
15298
15299# Tool to change global to local symbols on Mac OS X.
15300NMEDIT=$lt_NMEDIT
15301
15302# Tool to manipulate fat objects and archives on Mac OS X.
15303LIPO=$lt_LIPO
15304
15305# ldd/readelf like tool for Mach-O binaries on Mac OS X.
15306OTOOL=$lt_OTOOL
15307
15308# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
15309OTOOL64=$lt_OTOOL64
15310
15311# Old archive suffix (normally "a").
15312libext=$libext
15313
15314# Shared library suffix (normally ".so").
15315shrext_cmds=$lt_shrext_cmds
15316
15317# The commands to extract the exported symbol list from a shared archive.
15318extract_expsyms_cmds=$lt_extract_expsyms_cmds
15319
15320# Variables whose values should be saved in libtool wrapper scripts and
15321# restored at link time.
15322variables_saved_for_relink=$lt_variables_saved_for_relink
15323
15324# Do we need the "lib" prefix for modules?
15325need_lib_prefix=$need_lib_prefix
15326
15327# Do we need a version for libraries?
15328need_version=$need_version
15329
15330# Library versioning type.
15331version_type=$version_type
15332
15333# Shared library runtime path variable.
15334runpath_var=$runpath_var
15335
15336# Shared library path variable.
15337shlibpath_var=$shlibpath_var
15338
15339# Is shlibpath searched before the hard-coded library search path?
15340shlibpath_overrides_runpath=$shlibpath_overrides_runpath
15341
15342# Format of library name prefix.
15343libname_spec=$lt_libname_spec
15344
15345# List of archive names.  First name is the real one, the rest are links.
15346# The last name is the one that the linker finds with -lNAME
15347library_names_spec=$lt_library_names_spec
15348
15349# The coded name of the library, if different from the real name.
15350soname_spec=$lt_soname_spec
15351
15352# Permission mode override for installation of shared libraries.
15353install_override_mode=$lt_install_override_mode
15354
15355# Command to use after installation of a shared archive.
15356postinstall_cmds=$lt_postinstall_cmds
15357
15358# Command to use after uninstallation of a shared archive.
15359postuninstall_cmds=$lt_postuninstall_cmds
15360
15361# Commands used to finish a libtool library installation in a directory.
15362finish_cmds=$lt_finish_cmds
15363
15364# As "finish_cmds", except a single script fragment to be evaled but
15365# not shown.
15366finish_eval=$lt_finish_eval
15367
15368# Whether we should hardcode library paths into libraries.
15369hardcode_into_libs=$hardcode_into_libs
15370
15371# Compile-time system search path for libraries.
15372sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
15373
15374# Detected run-time system search path for libraries.
15375sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
15376
15377# Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
15378configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
15379
15380# Whether dlopen is supported.
15381dlopen_support=$enable_dlopen
15382
15383# Whether dlopen of programs is supported.
15384dlopen_self=$enable_dlopen_self
15385
15386# Whether dlopen of statically linked programs is supported.
15387dlopen_self_static=$enable_dlopen_self_static
15388
15389# Commands to strip libraries.
15390old_striplib=$lt_old_striplib
15391striplib=$lt_striplib
15392
15393
15394# The linker used to build libraries.
15395LD=$lt_LD
15396
15397# How to create reloadable object files.
15398reload_flag=$lt_reload_flag
15399reload_cmds=$lt_reload_cmds
15400
15401# Commands used to build an old-style archive.
15402old_archive_cmds=$lt_old_archive_cmds
15403
15404# A language specific compiler.
15405CC=$lt_compiler
15406
15407# Is the compiler the GNU compiler?
15408with_gcc=$GCC
15409
15410# Compiler flag to turn off builtin functions.
15411no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
15412
15413# Additional compiler flags for building library objects.
15414pic_flag=$lt_lt_prog_compiler_pic
15415
15416# How to pass a linker flag through the compiler.
15417wl=$lt_lt_prog_compiler_wl
15418
15419# Compiler flag to prevent dynamic linking.
15420link_static_flag=$lt_lt_prog_compiler_static
15421
15422# Does compiler simultaneously support -c and -o options?
15423compiler_c_o=$lt_lt_cv_prog_compiler_c_o
15424
15425# Whether or not to add -lc for building shared libraries.
15426build_libtool_need_lc=$archive_cmds_need_lc
15427
15428# Whether or not to disallow shared libs when runtime libs are static.
15429allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
15430
15431# Compiler flag to allow reflexive dlopens.
15432export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
15433
15434# Compiler flag to generate shared objects directly from archives.
15435whole_archive_flag_spec=$lt_whole_archive_flag_spec
15436
15437# Whether the compiler copes with passing no objects directly.
15438compiler_needs_object=$lt_compiler_needs_object
15439
15440# Create an old-style archive from a shared archive.
15441old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
15442
15443# Create a temporary old-style archive to link instead of a shared archive.
15444old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
15445
15446# Commands used to build a shared archive.
15447archive_cmds=$lt_archive_cmds
15448archive_expsym_cmds=$lt_archive_expsym_cmds
15449
15450# Commands used to build a loadable module if different from building
15451# a shared archive.
15452module_cmds=$lt_module_cmds
15453module_expsym_cmds=$lt_module_expsym_cmds
15454
15455# Whether we are building with GNU ld or not.
15456with_gnu_ld=$lt_with_gnu_ld
15457
15458# Flag that allows shared libraries with undefined symbols to be built.
15459allow_undefined_flag=$lt_allow_undefined_flag
15460
15461# Flag that enforces no undefined symbols.
15462no_undefined_flag=$lt_no_undefined_flag
15463
15464# Flag to hardcode \$libdir into a binary during linking.
15465# This must work even if \$libdir does not exist
15466hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
15467
15468# Whether we need a single "-rpath" flag with a separated argument.
15469hardcode_libdir_separator=$lt_hardcode_libdir_separator
15470
15471# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
15472# DIR into the resulting binary.
15473hardcode_direct=$hardcode_direct
15474
15475# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
15476# DIR into the resulting binary and the resulting library dependency is
15477# "absolute",i.e impossible to change by setting \$shlibpath_var if the
15478# library is relocated.
15479hardcode_direct_absolute=$hardcode_direct_absolute
15480
15481# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
15482# into the resulting binary.
15483hardcode_minus_L=$hardcode_minus_L
15484
15485# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
15486# into the resulting binary.
15487hardcode_shlibpath_var=$hardcode_shlibpath_var
15488
15489# Set to "yes" if building a shared library automatically hardcodes DIR
15490# into the library and all subsequent libraries and executables linked
15491# against it.
15492hardcode_automatic=$hardcode_automatic
15493
15494# Set to yes if linker adds runtime paths of dependent libraries
15495# to runtime path list.
15496inherit_rpath=$inherit_rpath
15497
15498# Whether libtool must link a program against all its dependency libraries.
15499link_all_deplibs=$link_all_deplibs
15500
15501# Set to "yes" if exported symbols are required.
15502always_export_symbols=$always_export_symbols
15503
15504# The commands to list exported symbols.
15505export_symbols_cmds=$lt_export_symbols_cmds
15506
15507# Symbols that should not be listed in the preloaded symbols.
15508exclude_expsyms=$lt_exclude_expsyms
15509
15510# Symbols that must always be exported.
15511include_expsyms=$lt_include_expsyms
15512
15513# Commands necessary for linking programs (against libraries) with templates.
15514prelink_cmds=$lt_prelink_cmds
15515
15516# Commands necessary for finishing linking programs.
15517postlink_cmds=$lt_postlink_cmds
15518
15519# Specify filename containing input files.
15520file_list_spec=$lt_file_list_spec
15521
15522# How to hardcode a shared library path into an executable.
15523hardcode_action=$hardcode_action
15524
15525# ### END LIBTOOL CONFIG
15526
15527_LT_EOF
15528
15529    cat <<'_LT_EOF' >> "$cfgfile"
15530
15531# ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
15532
15533# func_munge_path_list VARIABLE PATH
15534# -----------------------------------
15535# VARIABLE is name of variable containing _space_ separated list of
15536# directories to be munged by the contents of PATH, which is string
15537# having a format:
15538# "DIR[:DIR]:"
15539#       string "DIR[ DIR]" will be prepended to VARIABLE
15540# ":DIR[:DIR]"
15541#       string "DIR[ DIR]" will be appended to VARIABLE
15542# "DIRP[:DIRP]::[DIRA:]DIRA"
15543#       string "DIRP[ DIRP]" will be prepended to VARIABLE and string
15544#       "DIRA[ DIRA]" will be appended to VARIABLE
15545# "DIR[:DIR]"
15546#       VARIABLE will be replaced by "DIR[ DIR]"
15547func_munge_path_list ()
15548{
15549    case x$2 in
15550    x)
15551        ;;
15552    *:)
15553        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
15554        ;;
15555    x:*)
15556        eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
15557        ;;
15558    *::*)
15559        eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
15560        eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
15561        ;;
15562    *)
15563        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
15564        ;;
15565    esac
15566}
15567
15568
15569# Calculate cc_basename.  Skip known compiler wrappers and cross-prefix.
15570func_cc_basename ()
15571{
15572    for cc_temp in $*""; do
15573      case $cc_temp in
15574        compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
15575        distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
15576        \-*) ;;
15577        *) break;;
15578      esac
15579    done
15580    func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
15581}
15582
15583
15584# ### END FUNCTIONS SHARED WITH CONFIGURE
15585
15586_LT_EOF
15587
15588  case $host_os in
15589  aix3*)
15590    cat <<\_LT_EOF >> "$cfgfile"
15591# AIX sometimes has problems with the GCC collect2 program.  For some
15592# reason, if we set the COLLECT_NAMES environment variable, the problems
15593# vanish in a puff of smoke.
15594if test set != "${COLLECT_NAMES+set}"; then
15595  COLLECT_NAMES=
15596  export COLLECT_NAMES
15597fi
15598_LT_EOF
15599    ;;
15600  esac
15601
15602
15603ltmain=$ac_aux_dir/ltmain.sh
15604
15605
15606  # We use sed instead of cat because bash on DJGPP gets confused if
15607  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
15608  # text mode, it properly converts lines to CR/LF.  This bash problem
15609  # is reportedly fixed, but why not run on old versions too?
15610  sed '$q' "$ltmain" >> "$cfgfile" \
15611     || (rm -f "$cfgfile"; exit 1)
15612
15613   mv -f "$cfgfile" "$ofile" ||
15614    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
15615  chmod +x "$ofile"
15616
15617 ;;
15618
15619  esac
15620done # for ac_tag
15621
15622
15623as_fn_exit 0
15624_ACEOF
15625ac_clean_files=$ac_clean_files_save
15626
15627test $ac_write_fail = 0 ||
15628  as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
15629
15630
15631# configure is writing to config.log, and then calls config.status.
15632# config.status does its own redirection, appending to config.log.
15633# Unfortunately, on DOS this fails, as config.log is still kept open
15634# by configure, so config.status won't be able to write to it; its
15635# output is simply discarded.  So we exec the FD to /dev/null,
15636# effectively closing config.log, so it can be properly (re)opened and
15637# appended to by config.status.  When coming back to configure, we
15638# need to make the FD available again.
15639if test "$no_create" != yes; then
15640  ac_cs_success=:
15641  ac_config_status_args=
15642  test "$silent" = yes &&
15643    ac_config_status_args="$ac_config_status_args --quiet"
15644  exec 5>/dev/null
15645  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
15646  exec 5>>config.log
15647  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
15648  # would make configure fail if this is the last instruction.
15649  $ac_cs_success || as_fn_exit 1
15650fi
15651if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
15652  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
15653$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
15654fi
15655
15656