xref: /freebsd/contrib/sqlite3/configure (revision b00ab754)
1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.69 for sqlite 3.23.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.23.1'
594PACKAGE_STRING='sqlite 3.23.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
639SHELL_CFLAGS
640ZLIB_FLAGS
641EXTRA_SHELL_OBJ
642SESSION_FLAGS
643JSON1_FLAGS
644FTS5_FLAGS
645DYNAMIC_EXTENSION_FLAGS
646THREADSAFE_FLAGS
647READLINE_LIBS
648BUILD_CFLAGS
649CPP
650LT_SYS_LIBRARY_PATH
651OTOOL64
652OTOOL
653LIPO
654NMEDIT
655DSYMUTIL
656MANIFEST_TOOL
657RANLIB
658ac_ct_AR
659AR
660DLLTOOL
661OBJDUMP
662LN_S
663NM
664ac_ct_DUMPBIN
665DUMPBIN
666LD
667FGREP
668EGREP
669GREP
670SED
671host_os
672host_vendor
673host_cpu
674host
675build_os
676build_vendor
677build_cpu
678build
679LIBTOOL
680am__fastdepCC_FALSE
681am__fastdepCC_TRUE
682CCDEPMODE
683am__nodep
684AMDEPBACKSLASH
685AMDEP_FALSE
686AMDEP_TRUE
687am__quote
688am__include
689DEPDIR
690OBJEXT
691EXEEXT
692ac_ct_CC
693CPPFLAGS
694LDFLAGS
695CFLAGS
696CC
697AM_BACKSLASH
698AM_DEFAULT_VERBOSITY
699AM_DEFAULT_V
700AM_V
701am__untar
702am__tar
703AMTAR
704am__leading_dot
705SET_MAKE
706AWK
707mkdir_p
708MKDIR_P
709INSTALL_STRIP_PROGRAM
710STRIP
711install_sh
712MAKEINFO
713AUTOHEADER
714AUTOMAKE
715AUTOCONF
716ACLOCAL
717VERSION
718PACKAGE
719CYGPATH_W
720am__isrc
721INSTALL_DATA
722INSTALL_SCRIPT
723INSTALL_PROGRAM
724target_alias
725host_alias
726build_alias
727LIBS
728ECHO_T
729ECHO_N
730ECHO_C
731DEFS
732mandir
733localedir
734libdir
735psdir
736pdfdir
737dvidir
738htmldir
739infodir
740docdir
741oldincludedir
742includedir
743localstatedir
744sharedstatedir
745sysconfdir
746datadir
747datarootdir
748libexecdir
749sbindir
750bindir
751program_transform_name
752prefix
753exec_prefix
754PACKAGE_URL
755PACKAGE_BUGREPORT
756PACKAGE_STRING
757PACKAGE_VERSION
758PACKAGE_TARNAME
759PACKAGE_NAME
760PATH_SEPARATOR
761SHELL'
762ac_subst_files=''
763ac_user_opts='
764enable_option_checking
765enable_silent_rules
766enable_largefile
767enable_dependency_tracking
768enable_shared
769enable_static
770with_pic
771enable_fast_install
772with_aix_soname
773with_gnu_ld
774with_sysroot
775enable_libtool_lock
776enable_editline
777enable_readline
778enable_threadsafe
779enable_dynamic_extensions
780enable_fts5
781enable_json1
782enable_session
783enable_static_shell
784'
785      ac_precious_vars='build_alias
786host_alias
787target_alias
788CC
789CFLAGS
790LDFLAGS
791LIBS
792CPPFLAGS
793LT_SYS_LIBRARY_PATH
794CPP'
795
796
797# Initialize some variables set by options.
798ac_init_help=
799ac_init_version=false
800ac_unrecognized_opts=
801ac_unrecognized_sep=
802# The variables have the same names as the options, with
803# dashes changed to underlines.
804cache_file=/dev/null
805exec_prefix=NONE
806no_create=
807no_recursion=
808prefix=NONE
809program_prefix=NONE
810program_suffix=NONE
811program_transform_name=s,x,x,
812silent=
813site=
814srcdir=
815verbose=
816x_includes=NONE
817x_libraries=NONE
818
819# Installation directory options.
820# These are left unexpanded so users can "make install exec_prefix=/foo"
821# and all the variables that are supposed to be based on exec_prefix
822# by default will actually change.
823# Use braces instead of parens because sh, perl, etc. also accept them.
824# (The list follows the same order as the GNU Coding Standards.)
825bindir='${exec_prefix}/bin'
826sbindir='${exec_prefix}/sbin'
827libexecdir='${exec_prefix}/libexec'
828datarootdir='${prefix}/share'
829datadir='${datarootdir}'
830sysconfdir='${prefix}/etc'
831sharedstatedir='${prefix}/com'
832localstatedir='${prefix}/var'
833includedir='${prefix}/include'
834oldincludedir='/usr/include'
835docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
836infodir='${datarootdir}/info'
837htmldir='${docdir}'
838dvidir='${docdir}'
839pdfdir='${docdir}'
840psdir='${docdir}'
841libdir='${exec_prefix}/lib'
842localedir='${datarootdir}/locale'
843mandir='${datarootdir}/man'
844
845ac_prev=
846ac_dashdash=
847for ac_option
848do
849  # If the previous option needs an argument, assign it.
850  if test -n "$ac_prev"; then
851    eval $ac_prev=\$ac_option
852    ac_prev=
853    continue
854  fi
855
856  case $ac_option in
857  *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
858  *=)   ac_optarg= ;;
859  *)    ac_optarg=yes ;;
860  esac
861
862  # Accept the important Cygnus configure options, so we can diagnose typos.
863
864  case $ac_dashdash$ac_option in
865  --)
866    ac_dashdash=yes ;;
867
868  -bindir | --bindir | --bindi | --bind | --bin | --bi)
869    ac_prev=bindir ;;
870  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
871    bindir=$ac_optarg ;;
872
873  -build | --build | --buil | --bui | --bu)
874    ac_prev=build_alias ;;
875  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
876    build_alias=$ac_optarg ;;
877
878  -cache-file | --cache-file | --cache-fil | --cache-fi \
879  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
880    ac_prev=cache_file ;;
881  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
882  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
883    cache_file=$ac_optarg ;;
884
885  --config-cache | -C)
886    cache_file=config.cache ;;
887
888  -datadir | --datadir | --datadi | --datad)
889    ac_prev=datadir ;;
890  -datadir=* | --datadir=* | --datadi=* | --datad=*)
891    datadir=$ac_optarg ;;
892
893  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
894  | --dataroo | --dataro | --datar)
895    ac_prev=datarootdir ;;
896  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
897  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
898    datarootdir=$ac_optarg ;;
899
900  -disable-* | --disable-*)
901    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
902    # Reject names that are not valid shell variable names.
903    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
904      as_fn_error $? "invalid feature name: $ac_useropt"
905    ac_useropt_orig=$ac_useropt
906    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
907    case $ac_user_opts in
908      *"
909"enable_$ac_useropt"
910"*) ;;
911      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
912	 ac_unrecognized_sep=', ';;
913    esac
914    eval enable_$ac_useropt=no ;;
915
916  -docdir | --docdir | --docdi | --doc | --do)
917    ac_prev=docdir ;;
918  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
919    docdir=$ac_optarg ;;
920
921  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
922    ac_prev=dvidir ;;
923  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
924    dvidir=$ac_optarg ;;
925
926  -enable-* | --enable-*)
927    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
928    # Reject names that are not valid shell variable names.
929    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
930      as_fn_error $? "invalid feature name: $ac_useropt"
931    ac_useropt_orig=$ac_useropt
932    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
933    case $ac_user_opts in
934      *"
935"enable_$ac_useropt"
936"*) ;;
937      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
938	 ac_unrecognized_sep=', ';;
939    esac
940    eval enable_$ac_useropt=\$ac_optarg ;;
941
942  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
943  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
944  | --exec | --exe | --ex)
945    ac_prev=exec_prefix ;;
946  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
947  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
948  | --exec=* | --exe=* | --ex=*)
949    exec_prefix=$ac_optarg ;;
950
951  -gas | --gas | --ga | --g)
952    # Obsolete; use --with-gas.
953    with_gas=yes ;;
954
955  -help | --help | --hel | --he | -h)
956    ac_init_help=long ;;
957  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
958    ac_init_help=recursive ;;
959  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
960    ac_init_help=short ;;
961
962  -host | --host | --hos | --ho)
963    ac_prev=host_alias ;;
964  -host=* | --host=* | --hos=* | --ho=*)
965    host_alias=$ac_optarg ;;
966
967  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
968    ac_prev=htmldir ;;
969  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
970  | --ht=*)
971    htmldir=$ac_optarg ;;
972
973  -includedir | --includedir | --includedi | --included | --include \
974  | --includ | --inclu | --incl | --inc)
975    ac_prev=includedir ;;
976  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
977  | --includ=* | --inclu=* | --incl=* | --inc=*)
978    includedir=$ac_optarg ;;
979
980  -infodir | --infodir | --infodi | --infod | --info | --inf)
981    ac_prev=infodir ;;
982  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
983    infodir=$ac_optarg ;;
984
985  -libdir | --libdir | --libdi | --libd)
986    ac_prev=libdir ;;
987  -libdir=* | --libdir=* | --libdi=* | --libd=*)
988    libdir=$ac_optarg ;;
989
990  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
991  | --libexe | --libex | --libe)
992    ac_prev=libexecdir ;;
993  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
994  | --libexe=* | --libex=* | --libe=*)
995    libexecdir=$ac_optarg ;;
996
997  -localedir | --localedir | --localedi | --localed | --locale)
998    ac_prev=localedir ;;
999  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1000    localedir=$ac_optarg ;;
1001
1002  -localstatedir | --localstatedir | --localstatedi | --localstated \
1003  | --localstate | --localstat | --localsta | --localst | --locals)
1004    ac_prev=localstatedir ;;
1005  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1006  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1007    localstatedir=$ac_optarg ;;
1008
1009  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1010    ac_prev=mandir ;;
1011  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1012    mandir=$ac_optarg ;;
1013
1014  -nfp | --nfp | --nf)
1015    # Obsolete; use --without-fp.
1016    with_fp=no ;;
1017
1018  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1019  | --no-cr | --no-c | -n)
1020    no_create=yes ;;
1021
1022  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1023  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1024    no_recursion=yes ;;
1025
1026  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1027  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1028  | --oldin | --oldi | --old | --ol | --o)
1029    ac_prev=oldincludedir ;;
1030  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1031  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1032  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1033    oldincludedir=$ac_optarg ;;
1034
1035  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1036    ac_prev=prefix ;;
1037  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1038    prefix=$ac_optarg ;;
1039
1040  -program-prefix | --program-prefix | --program-prefi | --program-pref \
1041  | --program-pre | --program-pr | --program-p)
1042    ac_prev=program_prefix ;;
1043  -program-prefix=* | --program-prefix=* | --program-prefi=* \
1044  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1045    program_prefix=$ac_optarg ;;
1046
1047  -program-suffix | --program-suffix | --program-suffi | --program-suff \
1048  | --program-suf | --program-su | --program-s)
1049    ac_prev=program_suffix ;;
1050  -program-suffix=* | --program-suffix=* | --program-suffi=* \
1051  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1052    program_suffix=$ac_optarg ;;
1053
1054  -program-transform-name | --program-transform-name \
1055  | --program-transform-nam | --program-transform-na \
1056  | --program-transform-n | --program-transform- \
1057  | --program-transform | --program-transfor \
1058  | --program-transfo | --program-transf \
1059  | --program-trans | --program-tran \
1060  | --progr-tra | --program-tr | --program-t)
1061    ac_prev=program_transform_name ;;
1062  -program-transform-name=* | --program-transform-name=* \
1063  | --program-transform-nam=* | --program-transform-na=* \
1064  | --program-transform-n=* | --program-transform-=* \
1065  | --program-transform=* | --program-transfor=* \
1066  | --program-transfo=* | --program-transf=* \
1067  | --program-trans=* | --program-tran=* \
1068  | --progr-tra=* | --program-tr=* | --program-t=*)
1069    program_transform_name=$ac_optarg ;;
1070
1071  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1072    ac_prev=pdfdir ;;
1073  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1074    pdfdir=$ac_optarg ;;
1075
1076  -psdir | --psdir | --psdi | --psd | --ps)
1077    ac_prev=psdir ;;
1078  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1079    psdir=$ac_optarg ;;
1080
1081  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1082  | -silent | --silent | --silen | --sile | --sil)
1083    silent=yes ;;
1084
1085  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1086    ac_prev=sbindir ;;
1087  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1088  | --sbi=* | --sb=*)
1089    sbindir=$ac_optarg ;;
1090
1091  -sharedstatedir | --sharedstatedir | --sharedstatedi \
1092  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1093  | --sharedst | --shareds | --shared | --share | --shar \
1094  | --sha | --sh)
1095    ac_prev=sharedstatedir ;;
1096  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1097  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1098  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1099  | --sha=* | --sh=*)
1100    sharedstatedir=$ac_optarg ;;
1101
1102  -site | --site | --sit)
1103    ac_prev=site ;;
1104  -site=* | --site=* | --sit=*)
1105    site=$ac_optarg ;;
1106
1107  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1108    ac_prev=srcdir ;;
1109  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1110    srcdir=$ac_optarg ;;
1111
1112  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1113  | --syscon | --sysco | --sysc | --sys | --sy)
1114    ac_prev=sysconfdir ;;
1115  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1116  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1117    sysconfdir=$ac_optarg ;;
1118
1119  -target | --target | --targe | --targ | --tar | --ta | --t)
1120    ac_prev=target_alias ;;
1121  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1122    target_alias=$ac_optarg ;;
1123
1124  -v | -verbose | --verbose | --verbos | --verbo | --verb)
1125    verbose=yes ;;
1126
1127  -version | --version | --versio | --versi | --vers | -V)
1128    ac_init_version=: ;;
1129
1130  -with-* | --with-*)
1131    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1132    # Reject names that are not valid shell variable names.
1133    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1134      as_fn_error $? "invalid package name: $ac_useropt"
1135    ac_useropt_orig=$ac_useropt
1136    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1137    case $ac_user_opts in
1138      *"
1139"with_$ac_useropt"
1140"*) ;;
1141      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1142	 ac_unrecognized_sep=', ';;
1143    esac
1144    eval with_$ac_useropt=\$ac_optarg ;;
1145
1146  -without-* | --without-*)
1147    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1148    # Reject names that are not valid shell variable names.
1149    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1150      as_fn_error $? "invalid package name: $ac_useropt"
1151    ac_useropt_orig=$ac_useropt
1152    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1153    case $ac_user_opts in
1154      *"
1155"with_$ac_useropt"
1156"*) ;;
1157      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1158	 ac_unrecognized_sep=', ';;
1159    esac
1160    eval with_$ac_useropt=no ;;
1161
1162  --x)
1163    # Obsolete; use --with-x.
1164    with_x=yes ;;
1165
1166  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1167  | --x-incl | --x-inc | --x-in | --x-i)
1168    ac_prev=x_includes ;;
1169  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1170  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1171    x_includes=$ac_optarg ;;
1172
1173  -x-libraries | --x-libraries | --x-librarie | --x-librari \
1174  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1175    ac_prev=x_libraries ;;
1176  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1177  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1178    x_libraries=$ac_optarg ;;
1179
1180  -*) as_fn_error $? "unrecognized option: \`$ac_option'
1181Try \`$0 --help' for more information"
1182    ;;
1183
1184  *=*)
1185    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1186    # Reject names that are not valid shell variable names.
1187    case $ac_envvar in #(
1188      '' | [0-9]* | *[!_$as_cr_alnum]* )
1189      as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1190    esac
1191    eval $ac_envvar=\$ac_optarg
1192    export $ac_envvar ;;
1193
1194  *)
1195    # FIXME: should be removed in autoconf 3.0.
1196    $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1197    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1198      $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1199    : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1200    ;;
1201
1202  esac
1203done
1204
1205if test -n "$ac_prev"; then
1206  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1207  as_fn_error $? "missing argument to $ac_option"
1208fi
1209
1210if test -n "$ac_unrecognized_opts"; then
1211  case $enable_option_checking in
1212    no) ;;
1213    fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1214    *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1215  esac
1216fi
1217
1218# Check all directory arguments for consistency.
1219for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
1220		datadir sysconfdir sharedstatedir localstatedir includedir \
1221		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1222		libdir localedir mandir
1223do
1224  eval ac_val=\$$ac_var
1225  # Remove trailing slashes.
1226  case $ac_val in
1227    */ )
1228      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1229      eval $ac_var=\$ac_val;;
1230  esac
1231  # Be sure to have absolute directory names.
1232  case $ac_val in
1233    [\\/$]* | ?:[\\/]* )  continue;;
1234    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1235  esac
1236  as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1237done
1238
1239# There might be people who depend on the old broken behavior: `$host'
1240# used to hold the argument of --host etc.
1241# FIXME: To remove some day.
1242build=$build_alias
1243host=$host_alias
1244target=$target_alias
1245
1246# FIXME: To remove some day.
1247if test "x$host_alias" != x; then
1248  if test "x$build_alias" = x; then
1249    cross_compiling=maybe
1250  elif test "x$build_alias" != "x$host_alias"; then
1251    cross_compiling=yes
1252  fi
1253fi
1254
1255ac_tool_prefix=
1256test -n "$host_alias" && ac_tool_prefix=$host_alias-
1257
1258test "$silent" = yes && exec 6>/dev/null
1259
1260
1261ac_pwd=`pwd` && test -n "$ac_pwd" &&
1262ac_ls_di=`ls -di .` &&
1263ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1264  as_fn_error $? "working directory cannot be determined"
1265test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1266  as_fn_error $? "pwd does not report name of working directory"
1267
1268
1269# Find the source files, if location was not specified.
1270if test -z "$srcdir"; then
1271  ac_srcdir_defaulted=yes
1272  # Try the directory containing this script, then the parent directory.
1273  ac_confdir=`$as_dirname -- "$as_myself" ||
1274$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1275	 X"$as_myself" : 'X\(//\)[^/]' \| \
1276	 X"$as_myself" : 'X\(//\)$' \| \
1277	 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1278$as_echo X"$as_myself" |
1279    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1280	    s//\1/
1281	    q
1282	  }
1283	  /^X\(\/\/\)[^/].*/{
1284	    s//\1/
1285	    q
1286	  }
1287	  /^X\(\/\/\)$/{
1288	    s//\1/
1289	    q
1290	  }
1291	  /^X\(\/\).*/{
1292	    s//\1/
1293	    q
1294	  }
1295	  s/.*/./; q'`
1296  srcdir=$ac_confdir
1297  if test ! -r "$srcdir/$ac_unique_file"; then
1298    srcdir=..
1299  fi
1300else
1301  ac_srcdir_defaulted=no
1302fi
1303if test ! -r "$srcdir/$ac_unique_file"; then
1304  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1305  as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1306fi
1307ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1308ac_abs_confdir=`(
1309	cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1310	pwd)`
1311# When building in place, set srcdir=.
1312if test "$ac_abs_confdir" = "$ac_pwd"; then
1313  srcdir=.
1314fi
1315# Remove unnecessary trailing slashes from srcdir.
1316# Double slashes in file names in object file debugging info
1317# mess up M-x gdb in Emacs.
1318case $srcdir in
1319*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1320esac
1321for ac_var in $ac_precious_vars; do
1322  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1323  eval ac_env_${ac_var}_value=\$${ac_var}
1324  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1325  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1326done
1327
1328#
1329# Report the --help message.
1330#
1331if test "$ac_init_help" = "long"; then
1332  # Omit some internal or obsolete options to make the list less imposing.
1333  # This message is too long to be a string in the A/UX 3.1 sh.
1334  cat <<_ACEOF
1335\`configure' configures sqlite 3.23.1 to adapt to many kinds of systems.
1336
1337Usage: $0 [OPTION]... [VAR=VALUE]...
1338
1339To assign environment variables (e.g., CC, CFLAGS...), specify them as
1340VAR=VALUE.  See below for descriptions of some of the useful variables.
1341
1342Defaults for the options are specified in brackets.
1343
1344Configuration:
1345  -h, --help              display this help and exit
1346      --help=short        display options specific to this package
1347      --help=recursive    display the short help of all the included packages
1348  -V, --version           display version information and exit
1349  -q, --quiet, --silent   do not print \`checking ...' messages
1350      --cache-file=FILE   cache test results in FILE [disabled]
1351  -C, --config-cache      alias for \`--cache-file=config.cache'
1352  -n, --no-create         do not create output files
1353      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1354
1355Installation directories:
1356  --prefix=PREFIX         install architecture-independent files in PREFIX
1357                          [$ac_default_prefix]
1358  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1359                          [PREFIX]
1360
1361By default, \`make install' will install all the files in
1362\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1363an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1364for instance \`--prefix=\$HOME'.
1365
1366For better control, use the options below.
1367
1368Fine tuning of the installation directories:
1369  --bindir=DIR            user executables [EPREFIX/bin]
1370  --sbindir=DIR           system admin executables [EPREFIX/sbin]
1371  --libexecdir=DIR        program executables [EPREFIX/libexec]
1372  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1373  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1374  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1375  --libdir=DIR            object code libraries [EPREFIX/lib]
1376  --includedir=DIR        C header files [PREFIX/include]
1377  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1378  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1379  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1380  --infodir=DIR           info documentation [DATAROOTDIR/info]
1381  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1382  --mandir=DIR            man documentation [DATAROOTDIR/man]
1383  --docdir=DIR            documentation root [DATAROOTDIR/doc/sqlite]
1384  --htmldir=DIR           html documentation [DOCDIR]
1385  --dvidir=DIR            dvi documentation [DOCDIR]
1386  --pdfdir=DIR            pdf documentation [DOCDIR]
1387  --psdir=DIR             ps documentation [DOCDIR]
1388_ACEOF
1389
1390  cat <<\_ACEOF
1391
1392Program names:
1393  --program-prefix=PREFIX            prepend PREFIX to installed program names
1394  --program-suffix=SUFFIX            append SUFFIX to installed program names
1395  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1396
1397System types:
1398  --build=BUILD     configure for building on BUILD [guessed]
1399  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1400_ACEOF
1401fi
1402
1403if test -n "$ac_init_help"; then
1404  case $ac_init_help in
1405     short | recursive ) echo "Configuration of sqlite 3.23.1:";;
1406   esac
1407  cat <<\_ACEOF
1408
1409Optional Features:
1410  --disable-option-checking  ignore unrecognized --enable/--with options
1411  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1412  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1413  --enable-silent-rules   less verbose build output (undo: "make V=1")
1414  --disable-silent-rules  verbose build output (undo: "make V=0")
1415  --disable-largefile     omit support for large files
1416  --enable-dependency-tracking
1417                          do not reject slow dependency extractors
1418  --disable-dependency-tracking
1419                          speeds up one-time build
1420  --enable-shared[=PKGS]  build shared libraries [default=yes]
1421  --enable-static[=PKGS]  build static libraries [default=yes]
1422  --enable-fast-install[=PKGS]
1423                          optimize for fast installation [default=yes]
1424  --disable-libtool-lock  avoid locking (might break parallel builds)
1425  --enable-editline       use BSD libedit
1426  --enable-readline       use readline
1427  --enable-threadsafe     build a thread-safe library [default=yes]
1428  --enable-dynamic-extensions
1429                          support loadable extensions [default=yes]
1430  --enable-fts5           include fts5 support [default=no]
1431  --enable-json1          include json1 support [default=no]
1432  --enable-session        enable the session extension [default=no]
1433  --enable-static-shell   statically link libsqlite3 into shell tool
1434                          [default=yes]
1435
1436Optional Packages:
1437  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1438  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1439  --with-pic[=PKGS]       try to use only PIC/non-PIC objects [default=use
1440                          both]
1441  --with-aix-soname=aix|svr4|both
1442                          shared library versioning (aka "SONAME") variant to
1443                          provide on AIX, [default=aix].
1444  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1445  --with-sysroot[=DIR]    Search for dependent libraries within DIR (or the
1446                          compiler's sysroot if not specified).
1447
1448Some influential environment variables:
1449  CC          C compiler command
1450  CFLAGS      C compiler flags
1451  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1452              nonstandard directory <lib dir>
1453  LIBS        libraries to pass to the linker, e.g. -l<library>
1454  CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1455              you have headers in a nonstandard directory <include dir>
1456  LT_SYS_LIBRARY_PATH
1457              User-defined run-time library search path.
1458  CPP         C preprocessor
1459
1460Use these variables to override the choices made by `configure' or to help
1461it to find libraries and programs with nonstandard names/locations.
1462
1463Report bugs to <http://www.sqlite.org>.
1464_ACEOF
1465ac_status=$?
1466fi
1467
1468if test "$ac_init_help" = "recursive"; then
1469  # If there are subdirs, report their specific --help.
1470  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1471    test -d "$ac_dir" ||
1472      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1473      continue
1474    ac_builddir=.
1475
1476case "$ac_dir" in
1477.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1478*)
1479  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1480  # A ".." for each directory in $ac_dir_suffix.
1481  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1482  case $ac_top_builddir_sub in
1483  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1484  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1485  esac ;;
1486esac
1487ac_abs_top_builddir=$ac_pwd
1488ac_abs_builddir=$ac_pwd$ac_dir_suffix
1489# for backward compatibility:
1490ac_top_builddir=$ac_top_build_prefix
1491
1492case $srcdir in
1493  .)  # We are building in place.
1494    ac_srcdir=.
1495    ac_top_srcdir=$ac_top_builddir_sub
1496    ac_abs_top_srcdir=$ac_pwd ;;
1497  [\\/]* | ?:[\\/]* )  # Absolute name.
1498    ac_srcdir=$srcdir$ac_dir_suffix;
1499    ac_top_srcdir=$srcdir
1500    ac_abs_top_srcdir=$srcdir ;;
1501  *) # Relative name.
1502    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1503    ac_top_srcdir=$ac_top_build_prefix$srcdir
1504    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1505esac
1506ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1507
1508    cd "$ac_dir" || { ac_status=$?; continue; }
1509    # Check for guested configure.
1510    if test -f "$ac_srcdir/configure.gnu"; then
1511      echo &&
1512      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1513    elif test -f "$ac_srcdir/configure"; then
1514      echo &&
1515      $SHELL "$ac_srcdir/configure" --help=recursive
1516    else
1517      $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1518    fi || ac_status=$?
1519    cd "$ac_pwd" || { ac_status=$?; break; }
1520  done
1521fi
1522
1523test -n "$ac_init_help" && exit $ac_status
1524if $ac_init_version; then
1525  cat <<\_ACEOF
1526sqlite configure 3.23.1
1527generated by GNU Autoconf 2.69
1528
1529Copyright (C) 2012 Free Software Foundation, Inc.
1530This configure script is free software; the Free Software Foundation
1531gives unlimited permission to copy, distribute and modify it.
1532_ACEOF
1533  exit
1534fi
1535
1536## ------------------------ ##
1537## Autoconf initialization. ##
1538## ------------------------ ##
1539
1540# ac_fn_c_try_compile LINENO
1541# --------------------------
1542# Try to compile conftest.$ac_ext, and return whether this succeeded.
1543ac_fn_c_try_compile ()
1544{
1545  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1546  rm -f conftest.$ac_objext
1547  if { { ac_try="$ac_compile"
1548case "(($ac_try" in
1549  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1550  *) ac_try_echo=$ac_try;;
1551esac
1552eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1553$as_echo "$ac_try_echo"; } >&5
1554  (eval "$ac_compile") 2>conftest.err
1555  ac_status=$?
1556  if test -s conftest.err; then
1557    grep -v '^ *+' conftest.err >conftest.er1
1558    cat conftest.er1 >&5
1559    mv -f conftest.er1 conftest.err
1560  fi
1561  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1562  test $ac_status = 0; } && {
1563	 test -z "$ac_c_werror_flag" ||
1564	 test ! -s conftest.err
1565       } && test -s conftest.$ac_objext; then :
1566  ac_retval=0
1567else
1568  $as_echo "$as_me: failed program was:" >&5
1569sed 's/^/| /' conftest.$ac_ext >&5
1570
1571	ac_retval=1
1572fi
1573  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1574  as_fn_set_status $ac_retval
1575
1576} # ac_fn_c_try_compile
1577
1578# ac_fn_c_try_link LINENO
1579# -----------------------
1580# Try to link conftest.$ac_ext, and return whether this succeeded.
1581ac_fn_c_try_link ()
1582{
1583  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1584  rm -f conftest.$ac_objext conftest$ac_exeext
1585  if { { ac_try="$ac_link"
1586case "(($ac_try" in
1587  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1588  *) ac_try_echo=$ac_try;;
1589esac
1590eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1591$as_echo "$ac_try_echo"; } >&5
1592  (eval "$ac_link") 2>conftest.err
1593  ac_status=$?
1594  if test -s conftest.err; then
1595    grep -v '^ *+' conftest.err >conftest.er1
1596    cat conftest.er1 >&5
1597    mv -f conftest.er1 conftest.err
1598  fi
1599  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1600  test $ac_status = 0; } && {
1601	 test -z "$ac_c_werror_flag" ||
1602	 test ! -s conftest.err
1603       } && test -s conftest$ac_exeext && {
1604	 test "$cross_compiling" = yes ||
1605	 test -x conftest$ac_exeext
1606       }; then :
1607  ac_retval=0
1608else
1609  $as_echo "$as_me: failed program was:" >&5
1610sed 's/^/| /' conftest.$ac_ext >&5
1611
1612	ac_retval=1
1613fi
1614  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1615  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1616  # interfere with the next link command; also delete a directory that is
1617  # left behind by Apple's compiler.  We do this before executing the actions.
1618  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1619  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1620  as_fn_set_status $ac_retval
1621
1622} # ac_fn_c_try_link
1623
1624# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1625# -------------------------------------------------------
1626# Tests whether HEADER exists and can be compiled using the include files in
1627# INCLUDES, setting the cache variable VAR accordingly.
1628ac_fn_c_check_header_compile ()
1629{
1630  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1631  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1632$as_echo_n "checking for $2... " >&6; }
1633if eval \${$3+:} false; then :
1634  $as_echo_n "(cached) " >&6
1635else
1636  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1637/* end confdefs.h.  */
1638$4
1639#include <$2>
1640_ACEOF
1641if ac_fn_c_try_compile "$LINENO"; then :
1642  eval "$3=yes"
1643else
1644  eval "$3=no"
1645fi
1646rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1647fi
1648eval ac_res=\$$3
1649	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1650$as_echo "$ac_res" >&6; }
1651  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1652
1653} # ac_fn_c_check_header_compile
1654
1655# ac_fn_c_try_cpp LINENO
1656# ----------------------
1657# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1658ac_fn_c_try_cpp ()
1659{
1660  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1661  if { { ac_try="$ac_cpp conftest.$ac_ext"
1662case "(($ac_try" in
1663  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1664  *) ac_try_echo=$ac_try;;
1665esac
1666eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1667$as_echo "$ac_try_echo"; } >&5
1668  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1669  ac_status=$?
1670  if test -s conftest.err; then
1671    grep -v '^ *+' conftest.err >conftest.er1
1672    cat conftest.er1 >&5
1673    mv -f conftest.er1 conftest.err
1674  fi
1675  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1676  test $ac_status = 0; } > conftest.i && {
1677	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1678	 test ! -s conftest.err
1679       }; then :
1680  ac_retval=0
1681else
1682  $as_echo "$as_me: failed program was:" >&5
1683sed 's/^/| /' conftest.$ac_ext >&5
1684
1685    ac_retval=1
1686fi
1687  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1688  as_fn_set_status $ac_retval
1689
1690} # ac_fn_c_try_cpp
1691
1692# ac_fn_c_try_run LINENO
1693# ----------------------
1694# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1695# that executables *can* be run.
1696ac_fn_c_try_run ()
1697{
1698  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1699  if { { ac_try="$ac_link"
1700case "(($ac_try" in
1701  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1702  *) ac_try_echo=$ac_try;;
1703esac
1704eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1705$as_echo "$ac_try_echo"; } >&5
1706  (eval "$ac_link") 2>&5
1707  ac_status=$?
1708  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1709  test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1710  { { case "(($ac_try" in
1711  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1712  *) ac_try_echo=$ac_try;;
1713esac
1714eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1715$as_echo "$ac_try_echo"; } >&5
1716  (eval "$ac_try") 2>&5
1717  ac_status=$?
1718  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1719  test $ac_status = 0; }; }; then :
1720  ac_retval=0
1721else
1722  $as_echo "$as_me: program exited with status $ac_status" >&5
1723       $as_echo "$as_me: failed program was:" >&5
1724sed 's/^/| /' conftest.$ac_ext >&5
1725
1726       ac_retval=$ac_status
1727fi
1728  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1729  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1730  as_fn_set_status $ac_retval
1731
1732} # ac_fn_c_try_run
1733
1734# ac_fn_c_check_func LINENO FUNC VAR
1735# ----------------------------------
1736# Tests whether FUNC exists, setting the cache variable VAR accordingly
1737ac_fn_c_check_func ()
1738{
1739  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1740  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1741$as_echo_n "checking for $2... " >&6; }
1742if eval \${$3+:} false; then :
1743  $as_echo_n "(cached) " >&6
1744else
1745  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1746/* end confdefs.h.  */
1747/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1748   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
1749#define $2 innocuous_$2
1750
1751/* System header to define __stub macros and hopefully few prototypes,
1752    which can conflict with char $2 (); below.
1753    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1754    <limits.h> exists even on freestanding compilers.  */
1755
1756#ifdef __STDC__
1757# include <limits.h>
1758#else
1759# include <assert.h>
1760#endif
1761
1762#undef $2
1763
1764/* Override any GCC internal prototype to avoid an error.
1765   Use char because int might match the return type of a GCC
1766   builtin and then its argument prototype would still apply.  */
1767#ifdef __cplusplus
1768extern "C"
1769#endif
1770char $2 ();
1771/* The GNU C library defines this for functions which it implements
1772    to always fail with ENOSYS.  Some functions are actually named
1773    something starting with __ and the normal name is an alias.  */
1774#if defined __stub_$2 || defined __stub___$2
1775choke me
1776#endif
1777
1778int
1779main ()
1780{
1781return $2 ();
1782  ;
1783  return 0;
1784}
1785_ACEOF
1786if ac_fn_c_try_link "$LINENO"; then :
1787  eval "$3=yes"
1788else
1789  eval "$3=no"
1790fi
1791rm -f core conftest.err conftest.$ac_objext \
1792    conftest$ac_exeext conftest.$ac_ext
1793fi
1794eval ac_res=\$$3
1795	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1796$as_echo "$ac_res" >&6; }
1797  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1798
1799} # ac_fn_c_check_func
1800
1801# ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
1802# ---------------------------------------------
1803# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
1804# accordingly.
1805ac_fn_c_check_decl ()
1806{
1807  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1808  as_decl_name=`echo $2|sed 's/ *(.*//'`
1809  as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
1810  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
1811$as_echo_n "checking whether $as_decl_name is declared... " >&6; }
1812if eval \${$3+:} false; then :
1813  $as_echo_n "(cached) " >&6
1814else
1815  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1816/* end confdefs.h.  */
1817$4
1818int
1819main ()
1820{
1821#ifndef $as_decl_name
1822#ifdef __cplusplus
1823  (void) $as_decl_use;
1824#else
1825  (void) $as_decl_name;
1826#endif
1827#endif
1828
1829  ;
1830  return 0;
1831}
1832_ACEOF
1833if ac_fn_c_try_compile "$LINENO"; then :
1834  eval "$3=yes"
1835else
1836  eval "$3=no"
1837fi
1838rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1839fi
1840eval ac_res=\$$3
1841	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1842$as_echo "$ac_res" >&6; }
1843  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1844
1845} # ac_fn_c_check_decl
1846
1847# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1848# -------------------------------------------------------
1849# Tests whether HEADER exists, giving a warning if it cannot be compiled using
1850# the include files in INCLUDES and setting the cache variable VAR
1851# accordingly.
1852ac_fn_c_check_header_mongrel ()
1853{
1854  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1855  if eval \${$3+:} false; then :
1856  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1857$as_echo_n "checking for $2... " >&6; }
1858if eval \${$3+:} false; then :
1859  $as_echo_n "(cached) " >&6
1860fi
1861eval ac_res=\$$3
1862	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1863$as_echo "$ac_res" >&6; }
1864else
1865  # Is the header compilable?
1866{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1867$as_echo_n "checking $2 usability... " >&6; }
1868cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1869/* end confdefs.h.  */
1870$4
1871#include <$2>
1872_ACEOF
1873if ac_fn_c_try_compile "$LINENO"; then :
1874  ac_header_compiler=yes
1875else
1876  ac_header_compiler=no
1877fi
1878rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1879{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1880$as_echo "$ac_header_compiler" >&6; }
1881
1882# Is the header present?
1883{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1884$as_echo_n "checking $2 presence... " >&6; }
1885cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1886/* end confdefs.h.  */
1887#include <$2>
1888_ACEOF
1889if ac_fn_c_try_cpp "$LINENO"; then :
1890  ac_header_preproc=yes
1891else
1892  ac_header_preproc=no
1893fi
1894rm -f conftest.err conftest.i conftest.$ac_ext
1895{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1896$as_echo "$ac_header_preproc" >&6; }
1897
1898# So?  What about this header?
1899case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1900  yes:no: )
1901    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1902$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1903    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1904$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1905    ;;
1906  no:yes:* )
1907    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1908$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1909    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
1910$as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
1911    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1912$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1913    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
1914$as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
1915    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1916$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1917( $as_echo "## ------------------------------------ ##
1918## Report this to http://www.sqlite.org ##
1919## ------------------------------------ ##"
1920     ) | sed "s/^/$as_me: WARNING:     /" >&2
1921    ;;
1922esac
1923  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1924$as_echo_n "checking for $2... " >&6; }
1925if eval \${$3+:} false; then :
1926  $as_echo_n "(cached) " >&6
1927else
1928  eval "$3=\$ac_header_compiler"
1929fi
1930eval ac_res=\$$3
1931	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1932$as_echo "$ac_res" >&6; }
1933fi
1934  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1935
1936} # ac_fn_c_check_header_mongrel
1937cat >config.log <<_ACEOF
1938This file contains any messages produced by compilers while
1939running configure, to aid debugging if configure makes a mistake.
1940
1941It was created by sqlite $as_me 3.23.1, which was
1942generated by GNU Autoconf 2.69.  Invocation command line was
1943
1944  $ $0 $@
1945
1946_ACEOF
1947exec 5>>config.log
1948{
1949cat <<_ASUNAME
1950## --------- ##
1951## Platform. ##
1952## --------- ##
1953
1954hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1955uname -m = `(uname -m) 2>/dev/null || echo unknown`
1956uname -r = `(uname -r) 2>/dev/null || echo unknown`
1957uname -s = `(uname -s) 2>/dev/null || echo unknown`
1958uname -v = `(uname -v) 2>/dev/null || echo unknown`
1959
1960/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1961/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1962
1963/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1964/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1965/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1966/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1967/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1968/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1969/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1970
1971_ASUNAME
1972
1973as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1974for as_dir in $PATH
1975do
1976  IFS=$as_save_IFS
1977  test -z "$as_dir" && as_dir=.
1978    $as_echo "PATH: $as_dir"
1979  done
1980IFS=$as_save_IFS
1981
1982} >&5
1983
1984cat >&5 <<_ACEOF
1985
1986
1987## ----------- ##
1988## Core tests. ##
1989## ----------- ##
1990
1991_ACEOF
1992
1993
1994# Keep a trace of the command line.
1995# Strip out --no-create and --no-recursion so they do not pile up.
1996# Strip out --silent because we don't want to record it for future runs.
1997# Also quote any args containing shell meta-characters.
1998# Make two passes to allow for proper duplicate-argument suppression.
1999ac_configure_args=
2000ac_configure_args0=
2001ac_configure_args1=
2002ac_must_keep_next=false
2003for ac_pass in 1 2
2004do
2005  for ac_arg
2006  do
2007    case $ac_arg in
2008    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2009    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2010    | -silent | --silent | --silen | --sile | --sil)
2011      continue ;;
2012    *\'*)
2013      ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2014    esac
2015    case $ac_pass in
2016    1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2017    2)
2018      as_fn_append ac_configure_args1 " '$ac_arg'"
2019      if test $ac_must_keep_next = true; then
2020	ac_must_keep_next=false # Got value, back to normal.
2021      else
2022	case $ac_arg in
2023	  *=* | --config-cache | -C | -disable-* | --disable-* \
2024	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2025	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2026	  | -with-* | --with-* | -without-* | --without-* | --x)
2027	    case "$ac_configure_args0 " in
2028	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2029	    esac
2030	    ;;
2031	  -* ) ac_must_keep_next=true ;;
2032	esac
2033      fi
2034      as_fn_append ac_configure_args " '$ac_arg'"
2035      ;;
2036    esac
2037  done
2038done
2039{ ac_configure_args0=; unset ac_configure_args0;}
2040{ ac_configure_args1=; unset ac_configure_args1;}
2041
2042# When interrupted or exit'd, cleanup temporary files, and complete
2043# config.log.  We remove comments because anyway the quotes in there
2044# would cause problems or look ugly.
2045# WARNING: Use '\'' to represent an apostrophe within the trap.
2046# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2047trap 'exit_status=$?
2048  # Save into config.log some information that might help in debugging.
2049  {
2050    echo
2051
2052    $as_echo "## ---------------- ##
2053## Cache variables. ##
2054## ---------------- ##"
2055    echo
2056    # The following way of writing the cache mishandles newlines in values,
2057(
2058  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2059    eval ac_val=\$$ac_var
2060    case $ac_val in #(
2061    *${as_nl}*)
2062      case $ac_var in #(
2063      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2064$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2065      esac
2066      case $ac_var in #(
2067      _ | IFS | as_nl) ;; #(
2068      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2069      *) { eval $ac_var=; unset $ac_var;} ;;
2070      esac ;;
2071    esac
2072  done
2073  (set) 2>&1 |
2074    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2075    *${as_nl}ac_space=\ *)
2076      sed -n \
2077	"s/'\''/'\''\\\\'\'''\''/g;
2078	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2079      ;; #(
2080    *)
2081      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2082      ;;
2083    esac |
2084    sort
2085)
2086    echo
2087
2088    $as_echo "## ----------------- ##
2089## Output variables. ##
2090## ----------------- ##"
2091    echo
2092    for ac_var in $ac_subst_vars
2093    do
2094      eval ac_val=\$$ac_var
2095      case $ac_val in
2096      *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2097      esac
2098      $as_echo "$ac_var='\''$ac_val'\''"
2099    done | sort
2100    echo
2101
2102    if test -n "$ac_subst_files"; then
2103      $as_echo "## ------------------- ##
2104## File substitutions. ##
2105## ------------------- ##"
2106      echo
2107      for ac_var in $ac_subst_files
2108      do
2109	eval ac_val=\$$ac_var
2110	case $ac_val in
2111	*\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2112	esac
2113	$as_echo "$ac_var='\''$ac_val'\''"
2114      done | sort
2115      echo
2116    fi
2117
2118    if test -s confdefs.h; then
2119      $as_echo "## ----------- ##
2120## confdefs.h. ##
2121## ----------- ##"
2122      echo
2123      cat confdefs.h
2124      echo
2125    fi
2126    test "$ac_signal" != 0 &&
2127      $as_echo "$as_me: caught signal $ac_signal"
2128    $as_echo "$as_me: exit $exit_status"
2129  } >&5
2130  rm -f core *.core core.conftest.* &&
2131    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2132    exit $exit_status
2133' 0
2134for ac_signal in 1 2 13 15; do
2135  trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2136done
2137ac_signal=0
2138
2139# confdefs.h avoids OS command line length limits that DEFS can exceed.
2140rm -f -r conftest* confdefs.h
2141
2142$as_echo "/* confdefs.h */" > confdefs.h
2143
2144# Predefined preprocessor variables.
2145
2146cat >>confdefs.h <<_ACEOF
2147#define PACKAGE_NAME "$PACKAGE_NAME"
2148_ACEOF
2149
2150cat >>confdefs.h <<_ACEOF
2151#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2152_ACEOF
2153
2154cat >>confdefs.h <<_ACEOF
2155#define PACKAGE_VERSION "$PACKAGE_VERSION"
2156_ACEOF
2157
2158cat >>confdefs.h <<_ACEOF
2159#define PACKAGE_STRING "$PACKAGE_STRING"
2160_ACEOF
2161
2162cat >>confdefs.h <<_ACEOF
2163#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2164_ACEOF
2165
2166cat >>confdefs.h <<_ACEOF
2167#define PACKAGE_URL "$PACKAGE_URL"
2168_ACEOF
2169
2170
2171# Let the site file select an alternate cache file if it wants to.
2172# Prefer an explicitly selected file to automatically selected ones.
2173ac_site_file1=NONE
2174ac_site_file2=NONE
2175if test -n "$CONFIG_SITE"; then
2176  # We do not want a PATH search for config.site.
2177  case $CONFIG_SITE in #((
2178    -*)  ac_site_file1=./$CONFIG_SITE;;
2179    */*) ac_site_file1=$CONFIG_SITE;;
2180    *)   ac_site_file1=./$CONFIG_SITE;;
2181  esac
2182elif test "x$prefix" != xNONE; then
2183  ac_site_file1=$prefix/share/config.site
2184  ac_site_file2=$prefix/etc/config.site
2185else
2186  ac_site_file1=$ac_default_prefix/share/config.site
2187  ac_site_file2=$ac_default_prefix/etc/config.site
2188fi
2189for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2190do
2191  test "x$ac_site_file" = xNONE && continue
2192  if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2193    { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2194$as_echo "$as_me: loading site script $ac_site_file" >&6;}
2195    sed 's/^/| /' "$ac_site_file" >&5
2196    . "$ac_site_file" \
2197      || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2198$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2199as_fn_error $? "failed to load site script $ac_site_file
2200See \`config.log' for more details" "$LINENO" 5; }
2201  fi
2202done
2203
2204if test -r "$cache_file"; then
2205  # Some versions of bash will fail to source /dev/null (special files
2206  # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2207  if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2208    { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2209$as_echo "$as_me: loading cache $cache_file" >&6;}
2210    case $cache_file in
2211      [\\/]* | ?:[\\/]* ) . "$cache_file";;
2212      *)                      . "./$cache_file";;
2213    esac
2214  fi
2215else
2216  { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2217$as_echo "$as_me: creating cache $cache_file" >&6;}
2218  >$cache_file
2219fi
2220
2221# Check that the precious variables saved in the cache have kept the same
2222# value.
2223ac_cache_corrupted=false
2224for ac_var in $ac_precious_vars; do
2225  eval ac_old_set=\$ac_cv_env_${ac_var}_set
2226  eval ac_new_set=\$ac_env_${ac_var}_set
2227  eval ac_old_val=\$ac_cv_env_${ac_var}_value
2228  eval ac_new_val=\$ac_env_${ac_var}_value
2229  case $ac_old_set,$ac_new_set in
2230    set,)
2231      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2232$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2233      ac_cache_corrupted=: ;;
2234    ,set)
2235      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2236$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2237      ac_cache_corrupted=: ;;
2238    ,);;
2239    *)
2240      if test "x$ac_old_val" != "x$ac_new_val"; then
2241	# differences in whitespace do not lead to failure.
2242	ac_old_val_w=`echo x $ac_old_val`
2243	ac_new_val_w=`echo x $ac_new_val`
2244	if test "$ac_old_val_w" != "$ac_new_val_w"; then
2245	  { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2246$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2247	  ac_cache_corrupted=:
2248	else
2249	  { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2250$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2251	  eval $ac_var=\$ac_old_val
2252	fi
2253	{ $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2254$as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2255	{ $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2256$as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2257      fi;;
2258  esac
2259  # Pass precious variables to config.status.
2260  if test "$ac_new_set" = set; then
2261    case $ac_new_val in
2262    *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2263    *) ac_arg=$ac_var=$ac_new_val ;;
2264    esac
2265    case " $ac_configure_args " in
2266      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2267      *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2268    esac
2269  fi
2270done
2271if $ac_cache_corrupted; then
2272  { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2273$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2274  { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2275$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2276  as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2277fi
2278## -------------------- ##
2279## Main body of script. ##
2280## -------------------- ##
2281
2282ac_ext=c
2283ac_cpp='$CPP $CPPFLAGS'
2284ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2285ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2286ac_compiler_gnu=$ac_cv_c_compiler_gnu
2287
2288
2289
2290ac_aux_dir=
2291for ac_dir in . "$srcdir"/.; do
2292  if test -f "$ac_dir/install-sh"; then
2293    ac_aux_dir=$ac_dir
2294    ac_install_sh="$ac_aux_dir/install-sh -c"
2295    break
2296  elif test -f "$ac_dir/install.sh"; then
2297    ac_aux_dir=$ac_dir
2298    ac_install_sh="$ac_aux_dir/install.sh -c"
2299    break
2300  elif test -f "$ac_dir/shtool"; then
2301    ac_aux_dir=$ac_dir
2302    ac_install_sh="$ac_aux_dir/shtool install -c"
2303    break
2304  fi
2305done
2306if test -z "$ac_aux_dir"; then
2307  as_fn_error $? "cannot find install-sh, install.sh, or shtool in . \"$srcdir\"/." "$LINENO" 5
2308fi
2309
2310# These three variables are undocumented and unsupported,
2311# and are intended to be withdrawn in a future Autoconf release.
2312# They can cause serious problems if a builder's source tree is in a directory
2313# whose full name contains unusual characters.
2314ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2315ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2316ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2317
2318
2319
2320# Use automake.
2321am__api_version='1.15'
2322
2323# Find a good install program.  We prefer a C program (faster),
2324# so one script is as good as another.  But avoid the broken or
2325# incompatible versions:
2326# SysV /etc/install, /usr/sbin/install
2327# SunOS /usr/etc/install
2328# IRIX /sbin/install
2329# AIX /bin/install
2330# AmigaOS /C/install, which installs bootblocks on floppy discs
2331# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2332# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2333# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2334# OS/2's system install, which has a completely different semantic
2335# ./install, which can be erroneously created by make from ./install.sh.
2336# Reject install programs that cannot install multiple files.
2337{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2338$as_echo_n "checking for a BSD-compatible install... " >&6; }
2339if test -z "$INSTALL"; then
2340if ${ac_cv_path_install+:} false; then :
2341  $as_echo_n "(cached) " >&6
2342else
2343  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2344for as_dir in $PATH
2345do
2346  IFS=$as_save_IFS
2347  test -z "$as_dir" && as_dir=.
2348    # Account for people who put trailing slashes in PATH elements.
2349case $as_dir/ in #((
2350  ./ | .// | /[cC]/* | \
2351  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2352  ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2353  /usr/ucb/* ) ;;
2354  *)
2355    # OSF1 and SCO ODT 3.0 have their own names for install.
2356    # Don't use installbsd from OSF since it installs stuff as root
2357    # by default.
2358    for ac_prog in ginstall scoinst install; do
2359      for ac_exec_ext in '' $ac_executable_extensions; do
2360	if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2361	  if test $ac_prog = install &&
2362	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2363	    # AIX install.  It has an incompatible calling convention.
2364	    :
2365	  elif test $ac_prog = install &&
2366	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2367	    # program-specific install script used by HP pwplus--don't use.
2368	    :
2369	  else
2370	    rm -rf conftest.one conftest.two conftest.dir
2371	    echo one > conftest.one
2372	    echo two > conftest.two
2373	    mkdir conftest.dir
2374	    if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2375	      test -s conftest.one && test -s conftest.two &&
2376	      test -s conftest.dir/conftest.one &&
2377	      test -s conftest.dir/conftest.two
2378	    then
2379	      ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2380	      break 3
2381	    fi
2382	  fi
2383	fi
2384      done
2385    done
2386    ;;
2387esac
2388
2389  done
2390IFS=$as_save_IFS
2391
2392rm -rf conftest.one conftest.two conftest.dir
2393
2394fi
2395  if test "${ac_cv_path_install+set}" = set; then
2396    INSTALL=$ac_cv_path_install
2397  else
2398    # As a last resort, use the slow shell script.  Don't cache a
2399    # value for INSTALL within a source directory, because that will
2400    # break other packages using the cache if that directory is
2401    # removed, or if the value is a relative name.
2402    INSTALL=$ac_install_sh
2403  fi
2404fi
2405{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2406$as_echo "$INSTALL" >&6; }
2407
2408# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2409# It thinks the first close brace ends the variable substitution.
2410test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2411
2412test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2413
2414test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2415
2416{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2417$as_echo_n "checking whether build environment is sane... " >&6; }
2418# Reject unsafe characters in $srcdir or the absolute working directory
2419# name.  Accept space and tab only in the latter.
2420am_lf='
2421'
2422case `pwd` in
2423  *[\\\"\#\$\&\'\`$am_lf]*)
2424    as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2425esac
2426case $srcdir in
2427  *[\\\"\#\$\&\'\`$am_lf\ \	]*)
2428    as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2429esac
2430
2431# Do 'set' in a subshell so we don't clobber the current shell's
2432# arguments.  Must try -L first in case configure is actually a
2433# symlink; some systems play weird games with the mod time of symlinks
2434# (eg FreeBSD returns the mod time of the symlink's containing
2435# directory).
2436if (
2437   am_has_slept=no
2438   for am_try in 1 2; do
2439     echo "timestamp, slept: $am_has_slept" > conftest.file
2440     set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2441     if test "$*" = "X"; then
2442	# -L didn't work.
2443	set X `ls -t "$srcdir/configure" conftest.file`
2444     fi
2445     if test "$*" != "X $srcdir/configure conftest.file" \
2446	&& test "$*" != "X conftest.file $srcdir/configure"; then
2447
2448	# If neither matched, then we have a broken ls.  This can happen
2449	# if, for instance, CONFIG_SHELL is bash and it inherits a
2450	# broken ls alias from the environment.  This has actually
2451	# happened.  Such a system could not be considered "sane".
2452	as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
2453  alias in your environment" "$LINENO" 5
2454     fi
2455     if test "$2" = conftest.file || test $am_try -eq 2; then
2456       break
2457     fi
2458     # Just in case.
2459     sleep 1
2460     am_has_slept=yes
2461   done
2462   test "$2" = conftest.file
2463   )
2464then
2465   # Ok.
2466   :
2467else
2468   as_fn_error $? "newly created file is older than distributed files!
2469Check your system clock" "$LINENO" 5
2470fi
2471{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2472$as_echo "yes" >&6; }
2473# If we didn't sleep, we still need to ensure time stamps of config.status and
2474# generated files are strictly newer.
2475am_sleep_pid=
2476if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2477  ( sleep 1 ) &
2478  am_sleep_pid=$!
2479fi
2480
2481rm -f conftest.file
2482
2483test "$program_prefix" != NONE &&
2484  program_transform_name="s&^&$program_prefix&;$program_transform_name"
2485# Use a double $ so make ignores it.
2486test "$program_suffix" != NONE &&
2487  program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2488# Double any \ or $.
2489# By default was `s,x,x', remove it if useless.
2490ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2491program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2492
2493# Expand $ac_aux_dir to an absolute path.
2494am_aux_dir=`cd "$ac_aux_dir" && pwd`
2495
2496if test x"${MISSING+set}" != xset; then
2497  case $am_aux_dir in
2498  *\ * | *\	*)
2499    MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2500  *)
2501    MISSING="\${SHELL} $am_aux_dir/missing" ;;
2502  esac
2503fi
2504# Use eval to expand $SHELL
2505if eval "$MISSING --is-lightweight"; then
2506  am_missing_run="$MISSING "
2507else
2508  am_missing_run=
2509  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2510$as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
2511fi
2512
2513if test x"${install_sh+set}" != xset; then
2514  case $am_aux_dir in
2515  *\ * | *\	*)
2516    install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2517  *)
2518    install_sh="\${SHELL} $am_aux_dir/install-sh"
2519  esac
2520fi
2521
2522# Installed binaries are usually stripped using 'strip' when the user
2523# run "make install-strip".  However 'strip' might not be the right
2524# tool to use in cross-compilation environments, therefore Automake
2525# will honor the 'STRIP' environment variable to overrule this program.
2526if test "$cross_compiling" != no; then
2527  if test -n "$ac_tool_prefix"; then
2528  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2529set dummy ${ac_tool_prefix}strip; ac_word=$2
2530{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2531$as_echo_n "checking for $ac_word... " >&6; }
2532if ${ac_cv_prog_STRIP+:} false; then :
2533  $as_echo_n "(cached) " >&6
2534else
2535  if test -n "$STRIP"; then
2536  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2537else
2538as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2539for as_dir in $PATH
2540do
2541  IFS=$as_save_IFS
2542  test -z "$as_dir" && as_dir=.
2543    for ac_exec_ext in '' $ac_executable_extensions; do
2544  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2545    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2546    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2547    break 2
2548  fi
2549done
2550  done
2551IFS=$as_save_IFS
2552
2553fi
2554fi
2555STRIP=$ac_cv_prog_STRIP
2556if test -n "$STRIP"; then
2557  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2558$as_echo "$STRIP" >&6; }
2559else
2560  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2561$as_echo "no" >&6; }
2562fi
2563
2564
2565fi
2566if test -z "$ac_cv_prog_STRIP"; then
2567  ac_ct_STRIP=$STRIP
2568  # Extract the first word of "strip", so it can be a program name with args.
2569set dummy strip; ac_word=$2
2570{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2571$as_echo_n "checking for $ac_word... " >&6; }
2572if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2573  $as_echo_n "(cached) " >&6
2574else
2575  if test -n "$ac_ct_STRIP"; then
2576  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2577else
2578as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2579for as_dir in $PATH
2580do
2581  IFS=$as_save_IFS
2582  test -z "$as_dir" && as_dir=.
2583    for ac_exec_ext in '' $ac_executable_extensions; do
2584  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2585    ac_cv_prog_ac_ct_STRIP="strip"
2586    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2587    break 2
2588  fi
2589done
2590  done
2591IFS=$as_save_IFS
2592
2593fi
2594fi
2595ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2596if test -n "$ac_ct_STRIP"; then
2597  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2598$as_echo "$ac_ct_STRIP" >&6; }
2599else
2600  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2601$as_echo "no" >&6; }
2602fi
2603
2604  if test "x$ac_ct_STRIP" = x; then
2605    STRIP=":"
2606  else
2607    case $cross_compiling:$ac_tool_warned in
2608yes:)
2609{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2610$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2611ac_tool_warned=yes ;;
2612esac
2613    STRIP=$ac_ct_STRIP
2614  fi
2615else
2616  STRIP="$ac_cv_prog_STRIP"
2617fi
2618
2619fi
2620INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2621
2622{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2623$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2624if test -z "$MKDIR_P"; then
2625  if ${ac_cv_path_mkdir+:} false; then :
2626  $as_echo_n "(cached) " >&6
2627else
2628  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2629for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2630do
2631  IFS=$as_save_IFS
2632  test -z "$as_dir" && as_dir=.
2633    for ac_prog in mkdir gmkdir; do
2634	 for ac_exec_ext in '' $ac_executable_extensions; do
2635	   as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
2636	   case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2637	     'mkdir (GNU coreutils) '* | \
2638	     'mkdir (coreutils) '* | \
2639	     'mkdir (fileutils) '4.1*)
2640	       ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2641	       break 3;;
2642	   esac
2643	 done
2644       done
2645  done
2646IFS=$as_save_IFS
2647
2648fi
2649
2650  test -d ./--version && rmdir ./--version
2651  if test "${ac_cv_path_mkdir+set}" = set; then
2652    MKDIR_P="$ac_cv_path_mkdir -p"
2653  else
2654    # As a last resort, use the slow shell script.  Don't cache a
2655    # value for MKDIR_P within a source directory, because that will
2656    # break other packages using the cache if that directory is
2657    # removed, or if the value is a relative name.
2658    MKDIR_P="$ac_install_sh -d"
2659  fi
2660fi
2661{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2662$as_echo "$MKDIR_P" >&6; }
2663
2664for ac_prog in gawk mawk nawk awk
2665do
2666  # Extract the first word of "$ac_prog", so it can be a program name with args.
2667set dummy $ac_prog; ac_word=$2
2668{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2669$as_echo_n "checking for $ac_word... " >&6; }
2670if ${ac_cv_prog_AWK+:} false; then :
2671  $as_echo_n "(cached) " >&6
2672else
2673  if test -n "$AWK"; then
2674  ac_cv_prog_AWK="$AWK" # Let the user override the test.
2675else
2676as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2677for as_dir in $PATH
2678do
2679  IFS=$as_save_IFS
2680  test -z "$as_dir" && as_dir=.
2681    for ac_exec_ext in '' $ac_executable_extensions; do
2682  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2683    ac_cv_prog_AWK="$ac_prog"
2684    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2685    break 2
2686  fi
2687done
2688  done
2689IFS=$as_save_IFS
2690
2691fi
2692fi
2693AWK=$ac_cv_prog_AWK
2694if test -n "$AWK"; then
2695  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2696$as_echo "$AWK" >&6; }
2697else
2698  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2699$as_echo "no" >&6; }
2700fi
2701
2702
2703  test -n "$AWK" && break
2704done
2705
2706{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2707$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2708set x ${MAKE-make}
2709ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2710if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2711  $as_echo_n "(cached) " >&6
2712else
2713  cat >conftest.make <<\_ACEOF
2714SHELL = /bin/sh
2715all:
2716	@echo '@@@%%%=$(MAKE)=@@@%%%'
2717_ACEOF
2718# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2719case `${MAKE-make} -f conftest.make 2>/dev/null` in
2720  *@@@%%%=?*=@@@%%%*)
2721    eval ac_cv_prog_make_${ac_make}_set=yes;;
2722  *)
2723    eval ac_cv_prog_make_${ac_make}_set=no;;
2724esac
2725rm -f conftest.make
2726fi
2727if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2728  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2729$as_echo "yes" >&6; }
2730  SET_MAKE=
2731else
2732  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2733$as_echo "no" >&6; }
2734  SET_MAKE="MAKE=${MAKE-make}"
2735fi
2736
2737rm -rf .tst 2>/dev/null
2738mkdir .tst 2>/dev/null
2739if test -d .tst; then
2740  am__leading_dot=.
2741else
2742  am__leading_dot=_
2743fi
2744rmdir .tst 2>/dev/null
2745
2746# Check whether --enable-silent-rules was given.
2747if test "${enable_silent_rules+set}" = set; then :
2748  enableval=$enable_silent_rules;
2749fi
2750
2751case $enable_silent_rules in # (((
2752  yes) AM_DEFAULT_VERBOSITY=0;;
2753   no) AM_DEFAULT_VERBOSITY=1;;
2754    *) AM_DEFAULT_VERBOSITY=1;;
2755esac
2756am_make=${MAKE-make}
2757{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
2758$as_echo_n "checking whether $am_make supports nested variables... " >&6; }
2759if ${am_cv_make_support_nested_variables+:} false; then :
2760  $as_echo_n "(cached) " >&6
2761else
2762  if $as_echo 'TRUE=$(BAR$(V))
2763BAR0=false
2764BAR1=true
2765V=1
2766am__doit:
2767	@$(TRUE)
2768.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
2769  am_cv_make_support_nested_variables=yes
2770else
2771  am_cv_make_support_nested_variables=no
2772fi
2773fi
2774{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
2775$as_echo "$am_cv_make_support_nested_variables" >&6; }
2776if test $am_cv_make_support_nested_variables = yes; then
2777    AM_V='$(V)'
2778  AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
2779else
2780  AM_V=$AM_DEFAULT_VERBOSITY
2781  AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
2782fi
2783AM_BACKSLASH='\'
2784
2785if test "`cd $srcdir && pwd`" != "`pwd`"; then
2786  # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2787  # is not polluted with repeated "-I."
2788  am__isrc=' -I$(srcdir)'
2789  # test to see if srcdir already configured
2790  if test -f $srcdir/config.status; then
2791    as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2792  fi
2793fi
2794
2795# test whether we have cygpath
2796if test -z "$CYGPATH_W"; then
2797  if (cygpath --version) >/dev/null 2>/dev/null; then
2798    CYGPATH_W='cygpath -w'
2799  else
2800    CYGPATH_W=echo
2801  fi
2802fi
2803
2804
2805# Define the identity of the package.
2806 PACKAGE='sqlite'
2807 VERSION='3.23.1'
2808
2809
2810cat >>confdefs.h <<_ACEOF
2811#define PACKAGE "$PACKAGE"
2812_ACEOF
2813
2814
2815cat >>confdefs.h <<_ACEOF
2816#define VERSION "$VERSION"
2817_ACEOF
2818
2819# Some tools Automake needs.
2820
2821ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2822
2823
2824AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2825
2826
2827AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2828
2829
2830AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2831
2832
2833MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2834
2835# For better backward compatibility.  To be removed once Automake 1.9.x
2836# dies out for good.  For more background, see:
2837# <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
2838# <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
2839mkdir_p='$(MKDIR_P)'
2840
2841# We need awk for the "check" target (and possibly the TAP driver).  The
2842# system "awk" is bad on some platforms.
2843# Always define AMTAR for backward compatibility.  Yes, it's still used
2844# in the wild :-(  We should find a proper way to deprecate it ...
2845AMTAR='$${TAR-tar}'
2846
2847
2848# We'll loop over all known methods to create a tar archive until one works.
2849_am_tools='gnutar  pax cpio none'
2850
2851am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
2852
2853
2854
2855
2856
2857
2858# POSIX will say in a future version that running "rm -f" with no argument
2859# is OK; and we want to be able to make that assumption in our Makefile
2860# recipes.  So use an aggressive probe to check that the usage we want is
2861# actually supported "in the wild" to an acceptable degree.
2862# See automake bug#10828.
2863# To make any issue more visible, cause the running configure to be aborted
2864# by default if the 'rm' program in use doesn't match our expectations; the
2865# user can still override this though.
2866if rm -f && rm -fr && rm -rf; then : OK; else
2867  cat >&2 <<'END'
2868Oops!
2869
2870Your 'rm' program seems unable to run without file operands specified
2871on the command line, even when the '-f' option is present.  This is contrary
2872to the behaviour of most rm programs out there, and not conforming with
2873the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
2874
2875Please tell bug-automake@gnu.org about your system, including the value
2876of your $PATH and any error possibly output before this message.  This
2877can help us improve future automake versions.
2878
2879END
2880  if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
2881    echo 'Configuration will proceed anyway, since you have set the' >&2
2882    echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
2883    echo >&2
2884  else
2885    cat >&2 <<'END'
2886Aborting the configuration process, to ensure you take notice of the issue.
2887
2888You can download and install GNU coreutils to get an 'rm' implementation
2889that behaves properly: <http://www.gnu.org/software/coreutils/>.
2890
2891If you want to complete the configuration process using your problematic
2892'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
2893to "yes", and re-run configure.
2894
2895END
2896    as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
2897  fi
2898fi
2899
2900
2901DEPDIR="${am__leading_dot}deps"
2902
2903ac_config_commands="$ac_config_commands depfiles"
2904
2905
2906am_make=${MAKE-make}
2907cat > confinc << 'END'
2908am__doit:
2909	@echo this is the am__doit target
2910.PHONY: am__doit
2911END
2912# If we don't find an include directive, just comment out the code.
2913{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
2914$as_echo_n "checking for style of include used by $am_make... " >&6; }
2915am__include="#"
2916am__quote=
2917_am_result=none
2918# First try GNU make style include.
2919echo "include confinc" > confmf
2920# Ignore all kinds of additional output from 'make'.
2921case `$am_make -s -f confmf 2> /dev/null` in #(
2922*the\ am__doit\ target*)
2923  am__include=include
2924  am__quote=
2925  _am_result=GNU
2926  ;;
2927esac
2928# Now try BSD make style include.
2929if test "$am__include" = "#"; then
2930   echo '.include "confinc"' > confmf
2931   case `$am_make -s -f confmf 2> /dev/null` in #(
2932   *the\ am__doit\ target*)
2933     am__include=.include
2934     am__quote="\""
2935     _am_result=BSD
2936     ;;
2937   esac
2938fi
2939
2940
2941{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
2942$as_echo "$_am_result" >&6; }
2943rm -f confinc confmf
2944
2945# Check whether --enable-dependency-tracking was given.
2946if test "${enable_dependency_tracking+set}" = set; then :
2947  enableval=$enable_dependency_tracking;
2948fi
2949
2950if test "x$enable_dependency_tracking" != xno; then
2951  am_depcomp="$ac_aux_dir/depcomp"
2952  AMDEPBACKSLASH='\'
2953  am__nodep='_no'
2954fi
2955 if test "x$enable_dependency_tracking" != xno; then
2956  AMDEP_TRUE=
2957  AMDEP_FALSE='#'
2958else
2959  AMDEP_TRUE='#'
2960  AMDEP_FALSE=
2961fi
2962
2963
2964ac_ext=c
2965ac_cpp='$CPP $CPPFLAGS'
2966ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2967ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2968ac_compiler_gnu=$ac_cv_c_compiler_gnu
2969if test -n "$ac_tool_prefix"; then
2970  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2971set dummy ${ac_tool_prefix}gcc; ac_word=$2
2972{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2973$as_echo_n "checking for $ac_word... " >&6; }
2974if ${ac_cv_prog_CC+:} false; then :
2975  $as_echo_n "(cached) " >&6
2976else
2977  if test -n "$CC"; then
2978  ac_cv_prog_CC="$CC" # Let the user override the test.
2979else
2980as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2981for as_dir in $PATH
2982do
2983  IFS=$as_save_IFS
2984  test -z "$as_dir" && as_dir=.
2985    for ac_exec_ext in '' $ac_executable_extensions; do
2986  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2987    ac_cv_prog_CC="${ac_tool_prefix}gcc"
2988    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2989    break 2
2990  fi
2991done
2992  done
2993IFS=$as_save_IFS
2994
2995fi
2996fi
2997CC=$ac_cv_prog_CC
2998if test -n "$CC"; then
2999  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3000$as_echo "$CC" >&6; }
3001else
3002  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3003$as_echo "no" >&6; }
3004fi
3005
3006
3007fi
3008if test -z "$ac_cv_prog_CC"; then
3009  ac_ct_CC=$CC
3010  # Extract the first word of "gcc", so it can be a program name with args.
3011set dummy gcc; ac_word=$2
3012{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3013$as_echo_n "checking for $ac_word... " >&6; }
3014if ${ac_cv_prog_ac_ct_CC+:} false; then :
3015  $as_echo_n "(cached) " >&6
3016else
3017  if test -n "$ac_ct_CC"; then
3018  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3019else
3020as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3021for as_dir in $PATH
3022do
3023  IFS=$as_save_IFS
3024  test -z "$as_dir" && as_dir=.
3025    for ac_exec_ext in '' $ac_executable_extensions; do
3026  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3027    ac_cv_prog_ac_ct_CC="gcc"
3028    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3029    break 2
3030  fi
3031done
3032  done
3033IFS=$as_save_IFS
3034
3035fi
3036fi
3037ac_ct_CC=$ac_cv_prog_ac_ct_CC
3038if test -n "$ac_ct_CC"; then
3039  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3040$as_echo "$ac_ct_CC" >&6; }
3041else
3042  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3043$as_echo "no" >&6; }
3044fi
3045
3046  if test "x$ac_ct_CC" = x; then
3047    CC=""
3048  else
3049    case $cross_compiling:$ac_tool_warned in
3050yes:)
3051{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3052$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3053ac_tool_warned=yes ;;
3054esac
3055    CC=$ac_ct_CC
3056  fi
3057else
3058  CC="$ac_cv_prog_CC"
3059fi
3060
3061if test -z "$CC"; then
3062          if test -n "$ac_tool_prefix"; then
3063    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3064set dummy ${ac_tool_prefix}cc; ac_word=$2
3065{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3066$as_echo_n "checking for $ac_word... " >&6; }
3067if ${ac_cv_prog_CC+:} false; then :
3068  $as_echo_n "(cached) " >&6
3069else
3070  if test -n "$CC"; then
3071  ac_cv_prog_CC="$CC" # Let the user override the test.
3072else
3073as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3074for as_dir in $PATH
3075do
3076  IFS=$as_save_IFS
3077  test -z "$as_dir" && as_dir=.
3078    for ac_exec_ext in '' $ac_executable_extensions; do
3079  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3080    ac_cv_prog_CC="${ac_tool_prefix}cc"
3081    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3082    break 2
3083  fi
3084done
3085  done
3086IFS=$as_save_IFS
3087
3088fi
3089fi
3090CC=$ac_cv_prog_CC
3091if test -n "$CC"; then
3092  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3093$as_echo "$CC" >&6; }
3094else
3095  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3096$as_echo "no" >&6; }
3097fi
3098
3099
3100  fi
3101fi
3102if test -z "$CC"; then
3103  # Extract the first word of "cc", so it can be a program name with args.
3104set dummy cc; ac_word=$2
3105{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3106$as_echo_n "checking for $ac_word... " >&6; }
3107if ${ac_cv_prog_CC+:} false; then :
3108  $as_echo_n "(cached) " >&6
3109else
3110  if test -n "$CC"; then
3111  ac_cv_prog_CC="$CC" # Let the user override the test.
3112else
3113  ac_prog_rejected=no
3114as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3115for as_dir in $PATH
3116do
3117  IFS=$as_save_IFS
3118  test -z "$as_dir" && as_dir=.
3119    for ac_exec_ext in '' $ac_executable_extensions; do
3120  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3121    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3122       ac_prog_rejected=yes
3123       continue
3124     fi
3125    ac_cv_prog_CC="cc"
3126    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3127    break 2
3128  fi
3129done
3130  done
3131IFS=$as_save_IFS
3132
3133if test $ac_prog_rejected = yes; then
3134  # We found a bogon in the path, so make sure we never use it.
3135  set dummy $ac_cv_prog_CC
3136  shift
3137  if test $# != 0; then
3138    # We chose a different compiler from the bogus one.
3139    # However, it has the same basename, so the bogon will be chosen
3140    # first if we set CC to just the basename; use the full file name.
3141    shift
3142    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3143  fi
3144fi
3145fi
3146fi
3147CC=$ac_cv_prog_CC
3148if test -n "$CC"; then
3149  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3150$as_echo "$CC" >&6; }
3151else
3152  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3153$as_echo "no" >&6; }
3154fi
3155
3156
3157fi
3158if test -z "$CC"; then
3159  if test -n "$ac_tool_prefix"; then
3160  for ac_prog in cl.exe
3161  do
3162    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3163set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3164{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3165$as_echo_n "checking for $ac_word... " >&6; }
3166if ${ac_cv_prog_CC+:} false; then :
3167  $as_echo_n "(cached) " >&6
3168else
3169  if test -n "$CC"; then
3170  ac_cv_prog_CC="$CC" # Let the user override the test.
3171else
3172as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3173for as_dir in $PATH
3174do
3175  IFS=$as_save_IFS
3176  test -z "$as_dir" && as_dir=.
3177    for ac_exec_ext in '' $ac_executable_extensions; do
3178  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3179    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3180    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3181    break 2
3182  fi
3183done
3184  done
3185IFS=$as_save_IFS
3186
3187fi
3188fi
3189CC=$ac_cv_prog_CC
3190if test -n "$CC"; then
3191  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3192$as_echo "$CC" >&6; }
3193else
3194  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3195$as_echo "no" >&6; }
3196fi
3197
3198
3199    test -n "$CC" && break
3200  done
3201fi
3202if test -z "$CC"; then
3203  ac_ct_CC=$CC
3204  for ac_prog in cl.exe
3205do
3206  # Extract the first word of "$ac_prog", so it can be a program name with args.
3207set dummy $ac_prog; ac_word=$2
3208{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3209$as_echo_n "checking for $ac_word... " >&6; }
3210if ${ac_cv_prog_ac_ct_CC+:} false; then :
3211  $as_echo_n "(cached) " >&6
3212else
3213  if test -n "$ac_ct_CC"; then
3214  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3215else
3216as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3217for as_dir in $PATH
3218do
3219  IFS=$as_save_IFS
3220  test -z "$as_dir" && as_dir=.
3221    for ac_exec_ext in '' $ac_executable_extensions; do
3222  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3223    ac_cv_prog_ac_ct_CC="$ac_prog"
3224    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3225    break 2
3226  fi
3227done
3228  done
3229IFS=$as_save_IFS
3230
3231fi
3232fi
3233ac_ct_CC=$ac_cv_prog_ac_ct_CC
3234if test -n "$ac_ct_CC"; then
3235  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3236$as_echo "$ac_ct_CC" >&6; }
3237else
3238  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3239$as_echo "no" >&6; }
3240fi
3241
3242
3243  test -n "$ac_ct_CC" && break
3244done
3245
3246  if test "x$ac_ct_CC" = x; then
3247    CC=""
3248  else
3249    case $cross_compiling:$ac_tool_warned in
3250yes:)
3251{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3252$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3253ac_tool_warned=yes ;;
3254esac
3255    CC=$ac_ct_CC
3256  fi
3257fi
3258
3259fi
3260
3261
3262test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3263$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3264as_fn_error $? "no acceptable C compiler found in \$PATH
3265See \`config.log' for more details" "$LINENO" 5; }
3266
3267# Provide some information about the compiler.
3268$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3269set X $ac_compile
3270ac_compiler=$2
3271for ac_option in --version -v -V -qversion; do
3272  { { ac_try="$ac_compiler $ac_option >&5"
3273case "(($ac_try" in
3274  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3275  *) ac_try_echo=$ac_try;;
3276esac
3277eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3278$as_echo "$ac_try_echo"; } >&5
3279  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3280  ac_status=$?
3281  if test -s conftest.err; then
3282    sed '10a\
3283... rest of stderr output deleted ...
3284         10q' conftest.err >conftest.er1
3285    cat conftest.er1 >&5
3286  fi
3287  rm -f conftest.er1 conftest.err
3288  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3289  test $ac_status = 0; }
3290done
3291
3292cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3293/* end confdefs.h.  */
3294
3295int
3296main ()
3297{
3298
3299  ;
3300  return 0;
3301}
3302_ACEOF
3303ac_clean_files_save=$ac_clean_files
3304ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3305# Try to create an executable without -o first, disregard a.out.
3306# It will help us diagnose broken compilers, and finding out an intuition
3307# of exeext.
3308{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3309$as_echo_n "checking whether the C compiler works... " >&6; }
3310ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3311
3312# The possible output files:
3313ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3314
3315ac_rmfiles=
3316for ac_file in $ac_files
3317do
3318  case $ac_file in
3319    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3320    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3321  esac
3322done
3323rm -f $ac_rmfiles
3324
3325if { { ac_try="$ac_link_default"
3326case "(($ac_try" in
3327  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3328  *) ac_try_echo=$ac_try;;
3329esac
3330eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3331$as_echo "$ac_try_echo"; } >&5
3332  (eval "$ac_link_default") 2>&5
3333  ac_status=$?
3334  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3335  test $ac_status = 0; }; then :
3336  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3337# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3338# in a Makefile.  We should not override ac_cv_exeext if it was cached,
3339# so that the user can short-circuit this test for compilers unknown to
3340# Autoconf.
3341for ac_file in $ac_files ''
3342do
3343  test -f "$ac_file" || continue
3344  case $ac_file in
3345    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3346	;;
3347    [ab].out )
3348	# We found the default executable, but exeext='' is most
3349	# certainly right.
3350	break;;
3351    *.* )
3352	if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3353	then :; else
3354	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3355	fi
3356	# We set ac_cv_exeext here because the later test for it is not
3357	# safe: cross compilers may not add the suffix if given an `-o'
3358	# argument, so we may need to know it at that point already.
3359	# Even if this section looks crufty: it has the advantage of
3360	# actually working.
3361	break;;
3362    * )
3363	break;;
3364  esac
3365done
3366test "$ac_cv_exeext" = no && ac_cv_exeext=
3367
3368else
3369  ac_file=''
3370fi
3371if test -z "$ac_file"; then :
3372  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3373$as_echo "no" >&6; }
3374$as_echo "$as_me: failed program was:" >&5
3375sed 's/^/| /' conftest.$ac_ext >&5
3376
3377{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3378$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3379as_fn_error 77 "C compiler cannot create executables
3380See \`config.log' for more details" "$LINENO" 5; }
3381else
3382  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3383$as_echo "yes" >&6; }
3384fi
3385{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3386$as_echo_n "checking for C compiler default output file name... " >&6; }
3387{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3388$as_echo "$ac_file" >&6; }
3389ac_exeext=$ac_cv_exeext
3390
3391rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3392ac_clean_files=$ac_clean_files_save
3393{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3394$as_echo_n "checking for suffix of executables... " >&6; }
3395if { { ac_try="$ac_link"
3396case "(($ac_try" in
3397  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3398  *) ac_try_echo=$ac_try;;
3399esac
3400eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3401$as_echo "$ac_try_echo"; } >&5
3402  (eval "$ac_link") 2>&5
3403  ac_status=$?
3404  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3405  test $ac_status = 0; }; then :
3406  # If both `conftest.exe' and `conftest' are `present' (well, observable)
3407# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3408# work properly (i.e., refer to `conftest.exe'), while it won't with
3409# `rm'.
3410for ac_file in conftest.exe conftest conftest.*; do
3411  test -f "$ac_file" || continue
3412  case $ac_file in
3413    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3414    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3415	  break;;
3416    * ) break;;
3417  esac
3418done
3419else
3420  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3421$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3422as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3423See \`config.log' for more details" "$LINENO" 5; }
3424fi
3425rm -f conftest conftest$ac_cv_exeext
3426{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3427$as_echo "$ac_cv_exeext" >&6; }
3428
3429rm -f conftest.$ac_ext
3430EXEEXT=$ac_cv_exeext
3431ac_exeext=$EXEEXT
3432cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3433/* end confdefs.h.  */
3434#include <stdio.h>
3435int
3436main ()
3437{
3438FILE *f = fopen ("conftest.out", "w");
3439 return ferror (f) || fclose (f) != 0;
3440
3441  ;
3442  return 0;
3443}
3444_ACEOF
3445ac_clean_files="$ac_clean_files conftest.out"
3446# Check that the compiler produces executables we can run.  If not, either
3447# the compiler is broken, or we cross compile.
3448{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3449$as_echo_n "checking whether we are cross compiling... " >&6; }
3450if test "$cross_compiling" != yes; then
3451  { { ac_try="$ac_link"
3452case "(($ac_try" in
3453  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3454  *) ac_try_echo=$ac_try;;
3455esac
3456eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3457$as_echo "$ac_try_echo"; } >&5
3458  (eval "$ac_link") 2>&5
3459  ac_status=$?
3460  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3461  test $ac_status = 0; }
3462  if { ac_try='./conftest$ac_cv_exeext'
3463  { { case "(($ac_try" in
3464  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3465  *) ac_try_echo=$ac_try;;
3466esac
3467eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3468$as_echo "$ac_try_echo"; } >&5
3469  (eval "$ac_try") 2>&5
3470  ac_status=$?
3471  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3472  test $ac_status = 0; }; }; then
3473    cross_compiling=no
3474  else
3475    if test "$cross_compiling" = maybe; then
3476	cross_compiling=yes
3477    else
3478	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3479$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3480as_fn_error $? "cannot run C compiled programs.
3481If you meant to cross compile, use \`--host'.
3482See \`config.log' for more details" "$LINENO" 5; }
3483    fi
3484  fi
3485fi
3486{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3487$as_echo "$cross_compiling" >&6; }
3488
3489rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3490ac_clean_files=$ac_clean_files_save
3491{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3492$as_echo_n "checking for suffix of object files... " >&6; }
3493if ${ac_cv_objext+:} false; then :
3494  $as_echo_n "(cached) " >&6
3495else
3496  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3497/* end confdefs.h.  */
3498
3499int
3500main ()
3501{
3502
3503  ;
3504  return 0;
3505}
3506_ACEOF
3507rm -f conftest.o conftest.obj
3508if { { ac_try="$ac_compile"
3509case "(($ac_try" in
3510  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3511  *) ac_try_echo=$ac_try;;
3512esac
3513eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3514$as_echo "$ac_try_echo"; } >&5
3515  (eval "$ac_compile") 2>&5
3516  ac_status=$?
3517  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3518  test $ac_status = 0; }; then :
3519  for ac_file in conftest.o conftest.obj conftest.*; do
3520  test -f "$ac_file" || continue;
3521  case $ac_file in
3522    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3523    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3524       break;;
3525  esac
3526done
3527else
3528  $as_echo "$as_me: failed program was:" >&5
3529sed 's/^/| /' conftest.$ac_ext >&5
3530
3531{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3532$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3533as_fn_error $? "cannot compute suffix of object files: cannot compile
3534See \`config.log' for more details" "$LINENO" 5; }
3535fi
3536rm -f conftest.$ac_cv_objext conftest.$ac_ext
3537fi
3538{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3539$as_echo "$ac_cv_objext" >&6; }
3540OBJEXT=$ac_cv_objext
3541ac_objext=$OBJEXT
3542{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3543$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3544if ${ac_cv_c_compiler_gnu+:} false; then :
3545  $as_echo_n "(cached) " >&6
3546else
3547  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3548/* end confdefs.h.  */
3549
3550int
3551main ()
3552{
3553#ifndef __GNUC__
3554       choke me
3555#endif
3556
3557  ;
3558  return 0;
3559}
3560_ACEOF
3561if ac_fn_c_try_compile "$LINENO"; then :
3562  ac_compiler_gnu=yes
3563else
3564  ac_compiler_gnu=no
3565fi
3566rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3567ac_cv_c_compiler_gnu=$ac_compiler_gnu
3568
3569fi
3570{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3571$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3572if test $ac_compiler_gnu = yes; then
3573  GCC=yes
3574else
3575  GCC=
3576fi
3577ac_test_CFLAGS=${CFLAGS+set}
3578ac_save_CFLAGS=$CFLAGS
3579{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3580$as_echo_n "checking whether $CC accepts -g... " >&6; }
3581if ${ac_cv_prog_cc_g+:} false; then :
3582  $as_echo_n "(cached) " >&6
3583else
3584  ac_save_c_werror_flag=$ac_c_werror_flag
3585   ac_c_werror_flag=yes
3586   ac_cv_prog_cc_g=no
3587   CFLAGS="-g"
3588   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3589/* end confdefs.h.  */
3590
3591int
3592main ()
3593{
3594
3595  ;
3596  return 0;
3597}
3598_ACEOF
3599if ac_fn_c_try_compile "$LINENO"; then :
3600  ac_cv_prog_cc_g=yes
3601else
3602  CFLAGS=""
3603      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3604/* end confdefs.h.  */
3605
3606int
3607main ()
3608{
3609
3610  ;
3611  return 0;
3612}
3613_ACEOF
3614if ac_fn_c_try_compile "$LINENO"; then :
3615
3616else
3617  ac_c_werror_flag=$ac_save_c_werror_flag
3618	 CFLAGS="-g"
3619	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3620/* end confdefs.h.  */
3621
3622int
3623main ()
3624{
3625
3626  ;
3627  return 0;
3628}
3629_ACEOF
3630if ac_fn_c_try_compile "$LINENO"; then :
3631  ac_cv_prog_cc_g=yes
3632fi
3633rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3634fi
3635rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3636fi
3637rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3638   ac_c_werror_flag=$ac_save_c_werror_flag
3639fi
3640{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3641$as_echo "$ac_cv_prog_cc_g" >&6; }
3642if test "$ac_test_CFLAGS" = set; then
3643  CFLAGS=$ac_save_CFLAGS
3644elif test $ac_cv_prog_cc_g = yes; then
3645  if test "$GCC" = yes; then
3646    CFLAGS="-g -O2"
3647  else
3648    CFLAGS="-g"
3649  fi
3650else
3651  if test "$GCC" = yes; then
3652    CFLAGS="-O2"
3653  else
3654    CFLAGS=
3655  fi
3656fi
3657{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3658$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3659if ${ac_cv_prog_cc_c89+:} false; then :
3660  $as_echo_n "(cached) " >&6
3661else
3662  ac_cv_prog_cc_c89=no
3663ac_save_CC=$CC
3664cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3665/* end confdefs.h.  */
3666#include <stdarg.h>
3667#include <stdio.h>
3668struct stat;
3669/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3670struct buf { int x; };
3671FILE * (*rcsopen) (struct buf *, struct stat *, int);
3672static char *e (p, i)
3673     char **p;
3674     int i;
3675{
3676  return p[i];
3677}
3678static char *f (char * (*g) (char **, int), char **p, ...)
3679{
3680  char *s;
3681  va_list v;
3682  va_start (v,p);
3683  s = g (p, va_arg (v,int));
3684  va_end (v);
3685  return s;
3686}
3687
3688/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3689   function prototypes and stuff, but not '\xHH' hex character constants.
3690   These don't provoke an error unfortunately, instead are silently treated
3691   as 'x'.  The following induces an error, until -std is added to get
3692   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3693   array size at least.  It's necessary to write '\x00'==0 to get something
3694   that's true only with -std.  */
3695int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3696
3697/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3698   inside strings and character constants.  */
3699#define FOO(x) 'x'
3700int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3701
3702int test (int i, double x);
3703struct s1 {int (*f) (int a);};
3704struct s2 {int (*f) (double a);};
3705int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3706int argc;
3707char **argv;
3708int
3709main ()
3710{
3711return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3712  ;
3713  return 0;
3714}
3715_ACEOF
3716for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3717	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3718do
3719  CC="$ac_save_CC $ac_arg"
3720  if ac_fn_c_try_compile "$LINENO"; then :
3721  ac_cv_prog_cc_c89=$ac_arg
3722fi
3723rm -f core conftest.err conftest.$ac_objext
3724  test "x$ac_cv_prog_cc_c89" != "xno" && break
3725done
3726rm -f conftest.$ac_ext
3727CC=$ac_save_CC
3728
3729fi
3730# AC_CACHE_VAL
3731case "x$ac_cv_prog_cc_c89" in
3732  x)
3733    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3734$as_echo "none needed" >&6; } ;;
3735  xno)
3736    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3737$as_echo "unsupported" >&6; } ;;
3738  *)
3739    CC="$CC $ac_cv_prog_cc_c89"
3740    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3741$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3742esac
3743if test "x$ac_cv_prog_cc_c89" != xno; then :
3744
3745fi
3746
3747ac_ext=c
3748ac_cpp='$CPP $CPPFLAGS'
3749ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3750ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3751ac_compiler_gnu=$ac_cv_c_compiler_gnu
3752
3753ac_ext=c
3754ac_cpp='$CPP $CPPFLAGS'
3755ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3756ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3757ac_compiler_gnu=$ac_cv_c_compiler_gnu
3758{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
3759$as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
3760if ${am_cv_prog_cc_c_o+:} false; then :
3761  $as_echo_n "(cached) " >&6
3762else
3763  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3764/* end confdefs.h.  */
3765
3766int
3767main ()
3768{
3769
3770  ;
3771  return 0;
3772}
3773_ACEOF
3774  # Make sure it works both with $CC and with simple cc.
3775  # Following AC_PROG_CC_C_O, we do the test twice because some
3776  # compilers refuse to overwrite an existing .o file with -o,
3777  # though they will create one.
3778  am_cv_prog_cc_c_o=yes
3779  for am_i in 1 2; do
3780    if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
3781   ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
3782   ac_status=$?
3783   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3784   (exit $ac_status); } \
3785         && test -f conftest2.$ac_objext; then
3786      : OK
3787    else
3788      am_cv_prog_cc_c_o=no
3789      break
3790    fi
3791  done
3792  rm -f core conftest*
3793  unset am_i
3794fi
3795{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
3796$as_echo "$am_cv_prog_cc_c_o" >&6; }
3797if test "$am_cv_prog_cc_c_o" != yes; then
3798   # Losing compiler, so override with the script.
3799   # FIXME: It is wrong to rewrite CC.
3800   # But if we don't then we get into trouble of one sort or another.
3801   # A longer-term fix would be to have automake use am__CC in this case,
3802   # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
3803   CC="$am_aux_dir/compile $CC"
3804fi
3805ac_ext=c
3806ac_cpp='$CPP $CPPFLAGS'
3807ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3808ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3809ac_compiler_gnu=$ac_cv_c_compiler_gnu
3810
3811
3812depcc="$CC"   am_compiler_list=
3813
3814{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3815$as_echo_n "checking dependency style of $depcc... " >&6; }
3816if ${am_cv_CC_dependencies_compiler_type+:} false; then :
3817  $as_echo_n "(cached) " >&6
3818else
3819  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3820  # We make a subdir and do the tests there.  Otherwise we can end up
3821  # making bogus files that we don't know about and never remove.  For
3822  # instance it was reported that on HP-UX the gcc test will end up
3823  # making a dummy file named 'D' -- because '-MD' means "put the output
3824  # in D".
3825  rm -rf conftest.dir
3826  mkdir conftest.dir
3827  # Copy depcomp to subdir because otherwise we won't find it if we're
3828  # using a relative directory.
3829  cp "$am_depcomp" conftest.dir
3830  cd conftest.dir
3831  # We will build objects and dependencies in a subdirectory because
3832  # it helps to detect inapplicable dependency modes.  For instance
3833  # both Tru64's cc and ICC support -MD to output dependencies as a
3834  # side effect of compilation, but ICC will put the dependencies in
3835  # the current directory while Tru64 will put them in the object
3836  # directory.
3837  mkdir sub
3838
3839  am_cv_CC_dependencies_compiler_type=none
3840  if test "$am_compiler_list" = ""; then
3841     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3842  fi
3843  am__universal=false
3844  case " $depcc " in #(
3845     *\ -arch\ *\ -arch\ *) am__universal=true ;;
3846     esac
3847
3848  for depmode in $am_compiler_list; do
3849    # Setup a source with many dependencies, because some compilers
3850    # like to wrap large dependency lists on column 80 (with \), and
3851    # we should not choose a depcomp mode which is confused by this.
3852    #
3853    # We need to recreate these files for each test, as the compiler may
3854    # overwrite some of them when testing with obscure command lines.
3855    # This happens at least with the AIX C compiler.
3856    : > sub/conftest.c
3857    for i in 1 2 3 4 5 6; do
3858      echo '#include "conftst'$i'.h"' >> sub/conftest.c
3859      # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
3860      # Solaris 10 /bin/sh.
3861      echo '/* dummy */' > sub/conftst$i.h
3862    done
3863    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3864
3865    # We check with '-c' and '-o' for the sake of the "dashmstdout"
3866    # mode.  It turns out that the SunPro C++ compiler does not properly
3867    # handle '-M -o', and we need to detect this.  Also, some Intel
3868    # versions had trouble with output in subdirs.
3869    am__obj=sub/conftest.${OBJEXT-o}
3870    am__minus_obj="-o $am__obj"
3871    case $depmode in
3872    gcc)
3873      # This depmode causes a compiler race in universal mode.
3874      test "$am__universal" = false || continue
3875      ;;
3876    nosideeffect)
3877      # After this tag, mechanisms are not by side-effect, so they'll
3878      # only be used when explicitly requested.
3879      if test "x$enable_dependency_tracking" = xyes; then
3880	continue
3881      else
3882	break
3883      fi
3884      ;;
3885    msvc7 | msvc7msys | msvisualcpp | msvcmsys)
3886      # This compiler won't grok '-c -o', but also, the minuso test has
3887      # not run yet.  These depmodes are late enough in the game, and
3888      # so weak that their functioning should not be impacted.
3889      am__obj=conftest.${OBJEXT-o}
3890      am__minus_obj=
3891      ;;
3892    none) break ;;
3893    esac
3894    if depmode=$depmode \
3895       source=sub/conftest.c object=$am__obj \
3896       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3897       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3898         >/dev/null 2>conftest.err &&
3899       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3900       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3901       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
3902       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3903      # icc doesn't choke on unknown options, it will just issue warnings
3904      # or remarks (even with -Werror).  So we grep stderr for any message
3905      # that says an option was ignored or not supported.
3906      # When given -MP, icc 7.0 and 7.1 complain thusly:
3907      #   icc: Command line warning: ignoring option '-M'; no argument required
3908      # The diagnosis changed in icc 8.0:
3909      #   icc: Command line remark: option '-MP' not supported
3910      if (grep 'ignoring option' conftest.err ||
3911          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3912        am_cv_CC_dependencies_compiler_type=$depmode
3913        break
3914      fi
3915    fi
3916  done
3917
3918  cd ..
3919  rm -rf conftest.dir
3920else
3921  am_cv_CC_dependencies_compiler_type=none
3922fi
3923
3924fi
3925{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
3926$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
3927CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3928
3929 if
3930  test "x$enable_dependency_tracking" != xno \
3931  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3932  am__fastdepCC_TRUE=
3933  am__fastdepCC_FALSE='#'
3934else
3935  am__fastdepCC_TRUE='#'
3936  am__fastdepCC_FALSE=
3937fi
3938
3939
3940
3941# Check whether --enable-largefile was given.
3942if test "${enable_largefile+set}" = set; then :
3943  enableval=$enable_largefile;
3944fi
3945
3946if test "$enable_largefile" != no; then
3947
3948  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
3949$as_echo_n "checking for special C compiler options needed for large files... " >&6; }
3950if ${ac_cv_sys_largefile_CC+:} false; then :
3951  $as_echo_n "(cached) " >&6
3952else
3953  ac_cv_sys_largefile_CC=no
3954     if test "$GCC" != yes; then
3955       ac_save_CC=$CC
3956       while :; do
3957	 # IRIX 6.2 and later do not support large files by default,
3958	 # so use the C compiler's -n32 option if that helps.
3959	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3960/* end confdefs.h.  */
3961#include <sys/types.h>
3962 /* Check that off_t can represent 2**63 - 1 correctly.
3963    We can't simply define LARGE_OFF_T to be 9223372036854775807,
3964    since some C++ compilers masquerading as C compilers
3965    incorrectly reject 9223372036854775807.  */
3966#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
3967  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
3968		       && LARGE_OFF_T % 2147483647 == 1)
3969		      ? 1 : -1];
3970int
3971main ()
3972{
3973
3974  ;
3975  return 0;
3976}
3977_ACEOF
3978	 if ac_fn_c_try_compile "$LINENO"; then :
3979  break
3980fi
3981rm -f core conftest.err conftest.$ac_objext
3982	 CC="$CC -n32"
3983	 if ac_fn_c_try_compile "$LINENO"; then :
3984  ac_cv_sys_largefile_CC=' -n32'; break
3985fi
3986rm -f core conftest.err conftest.$ac_objext
3987	 break
3988       done
3989       CC=$ac_save_CC
3990       rm -f conftest.$ac_ext
3991    fi
3992fi
3993{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
3994$as_echo "$ac_cv_sys_largefile_CC" >&6; }
3995  if test "$ac_cv_sys_largefile_CC" != no; then
3996    CC=$CC$ac_cv_sys_largefile_CC
3997  fi
3998
3999  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
4000$as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
4001if ${ac_cv_sys_file_offset_bits+:} false; then :
4002  $as_echo_n "(cached) " >&6
4003else
4004  while :; do
4005  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4006/* end confdefs.h.  */
4007#include <sys/types.h>
4008 /* Check that off_t can represent 2**63 - 1 correctly.
4009    We can't simply define LARGE_OFF_T to be 9223372036854775807,
4010    since some C++ compilers masquerading as C compilers
4011    incorrectly reject 9223372036854775807.  */
4012#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4013  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4014		       && LARGE_OFF_T % 2147483647 == 1)
4015		      ? 1 : -1];
4016int
4017main ()
4018{
4019
4020  ;
4021  return 0;
4022}
4023_ACEOF
4024if ac_fn_c_try_compile "$LINENO"; then :
4025  ac_cv_sys_file_offset_bits=no; break
4026fi
4027rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4028  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4029/* end confdefs.h.  */
4030#define _FILE_OFFSET_BITS 64
4031#include <sys/types.h>
4032 /* Check that off_t can represent 2**63 - 1 correctly.
4033    We can't simply define LARGE_OFF_T to be 9223372036854775807,
4034    since some C++ compilers masquerading as C compilers
4035    incorrectly reject 9223372036854775807.  */
4036#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4037  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4038		       && LARGE_OFF_T % 2147483647 == 1)
4039		      ? 1 : -1];
4040int
4041main ()
4042{
4043
4044  ;
4045  return 0;
4046}
4047_ACEOF
4048if ac_fn_c_try_compile "$LINENO"; then :
4049  ac_cv_sys_file_offset_bits=64; break
4050fi
4051rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4052  ac_cv_sys_file_offset_bits=unknown
4053  break
4054done
4055fi
4056{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
4057$as_echo "$ac_cv_sys_file_offset_bits" >&6; }
4058case $ac_cv_sys_file_offset_bits in #(
4059  no | unknown) ;;
4060  *)
4061cat >>confdefs.h <<_ACEOF
4062#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
4063_ACEOF
4064;;
4065esac
4066rm -rf conftest*
4067  if test $ac_cv_sys_file_offset_bits = unknown; then
4068    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
4069$as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
4070if ${ac_cv_sys_large_files+:} false; then :
4071  $as_echo_n "(cached) " >&6
4072else
4073  while :; do
4074  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4075/* end confdefs.h.  */
4076#include <sys/types.h>
4077 /* Check that off_t can represent 2**63 - 1 correctly.
4078    We can't simply define LARGE_OFF_T to be 9223372036854775807,
4079    since some C++ compilers masquerading as C compilers
4080    incorrectly reject 9223372036854775807.  */
4081#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4082  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4083		       && LARGE_OFF_T % 2147483647 == 1)
4084		      ? 1 : -1];
4085int
4086main ()
4087{
4088
4089  ;
4090  return 0;
4091}
4092_ACEOF
4093if ac_fn_c_try_compile "$LINENO"; then :
4094  ac_cv_sys_large_files=no; break
4095fi
4096rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4097  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4098/* end confdefs.h.  */
4099#define _LARGE_FILES 1
4100#include <sys/types.h>
4101 /* Check that off_t can represent 2**63 - 1 correctly.
4102    We can't simply define LARGE_OFF_T to be 9223372036854775807,
4103    since some C++ compilers masquerading as C compilers
4104    incorrectly reject 9223372036854775807.  */
4105#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4106  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4107		       && LARGE_OFF_T % 2147483647 == 1)
4108		      ? 1 : -1];
4109int
4110main ()
4111{
4112
4113  ;
4114  return 0;
4115}
4116_ACEOF
4117if ac_fn_c_try_compile "$LINENO"; then :
4118  ac_cv_sys_large_files=1; break
4119fi
4120rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4121  ac_cv_sys_large_files=unknown
4122  break
4123done
4124fi
4125{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
4126$as_echo "$ac_cv_sys_large_files" >&6; }
4127case $ac_cv_sys_large_files in #(
4128  no | unknown) ;;
4129  *)
4130cat >>confdefs.h <<_ACEOF
4131#define _LARGE_FILES $ac_cv_sys_large_files
4132_ACEOF
4133;;
4134esac
4135rm -rf conftest*
4136  fi
4137
4138
4139fi
4140
4141
4142# Check for required programs.
4143ac_ext=c
4144ac_cpp='$CPP $CPPFLAGS'
4145ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4146ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4147ac_compiler_gnu=$ac_cv_c_compiler_gnu
4148if test -n "$ac_tool_prefix"; then
4149  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4150set dummy ${ac_tool_prefix}gcc; ac_word=$2
4151{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4152$as_echo_n "checking for $ac_word... " >&6; }
4153if ${ac_cv_prog_CC+:} false; then :
4154  $as_echo_n "(cached) " >&6
4155else
4156  if test -n "$CC"; then
4157  ac_cv_prog_CC="$CC" # Let the user override the test.
4158else
4159as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4160for as_dir in $PATH
4161do
4162  IFS=$as_save_IFS
4163  test -z "$as_dir" && as_dir=.
4164    for ac_exec_ext in '' $ac_executable_extensions; do
4165  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4166    ac_cv_prog_CC="${ac_tool_prefix}gcc"
4167    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4168    break 2
4169  fi
4170done
4171  done
4172IFS=$as_save_IFS
4173
4174fi
4175fi
4176CC=$ac_cv_prog_CC
4177if test -n "$CC"; then
4178  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4179$as_echo "$CC" >&6; }
4180else
4181  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4182$as_echo "no" >&6; }
4183fi
4184
4185
4186fi
4187if test -z "$ac_cv_prog_CC"; then
4188  ac_ct_CC=$CC
4189  # Extract the first word of "gcc", so it can be a program name with args.
4190set dummy gcc; ac_word=$2
4191{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4192$as_echo_n "checking for $ac_word... " >&6; }
4193if ${ac_cv_prog_ac_ct_CC+:} false; then :
4194  $as_echo_n "(cached) " >&6
4195else
4196  if test -n "$ac_ct_CC"; then
4197  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4198else
4199as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4200for as_dir in $PATH
4201do
4202  IFS=$as_save_IFS
4203  test -z "$as_dir" && as_dir=.
4204    for ac_exec_ext in '' $ac_executable_extensions; do
4205  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4206    ac_cv_prog_ac_ct_CC="gcc"
4207    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4208    break 2
4209  fi
4210done
4211  done
4212IFS=$as_save_IFS
4213
4214fi
4215fi
4216ac_ct_CC=$ac_cv_prog_ac_ct_CC
4217if test -n "$ac_ct_CC"; then
4218  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4219$as_echo "$ac_ct_CC" >&6; }
4220else
4221  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4222$as_echo "no" >&6; }
4223fi
4224
4225  if test "x$ac_ct_CC" = x; then
4226    CC=""
4227  else
4228    case $cross_compiling:$ac_tool_warned in
4229yes:)
4230{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4231$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4232ac_tool_warned=yes ;;
4233esac
4234    CC=$ac_ct_CC
4235  fi
4236else
4237  CC="$ac_cv_prog_CC"
4238fi
4239
4240if test -z "$CC"; then
4241          if test -n "$ac_tool_prefix"; then
4242    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4243set dummy ${ac_tool_prefix}cc; ac_word=$2
4244{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4245$as_echo_n "checking for $ac_word... " >&6; }
4246if ${ac_cv_prog_CC+:} false; then :
4247  $as_echo_n "(cached) " >&6
4248else
4249  if test -n "$CC"; then
4250  ac_cv_prog_CC="$CC" # Let the user override the test.
4251else
4252as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4253for as_dir in $PATH
4254do
4255  IFS=$as_save_IFS
4256  test -z "$as_dir" && as_dir=.
4257    for ac_exec_ext in '' $ac_executable_extensions; do
4258  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4259    ac_cv_prog_CC="${ac_tool_prefix}cc"
4260    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4261    break 2
4262  fi
4263done
4264  done
4265IFS=$as_save_IFS
4266
4267fi
4268fi
4269CC=$ac_cv_prog_CC
4270if test -n "$CC"; then
4271  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4272$as_echo "$CC" >&6; }
4273else
4274  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4275$as_echo "no" >&6; }
4276fi
4277
4278
4279  fi
4280fi
4281if test -z "$CC"; then
4282  # Extract the first word of "cc", so it can be a program name with args.
4283set dummy cc; ac_word=$2
4284{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4285$as_echo_n "checking for $ac_word... " >&6; }
4286if ${ac_cv_prog_CC+:} false; then :
4287  $as_echo_n "(cached) " >&6
4288else
4289  if test -n "$CC"; then
4290  ac_cv_prog_CC="$CC" # Let the user override the test.
4291else
4292  ac_prog_rejected=no
4293as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4294for as_dir in $PATH
4295do
4296  IFS=$as_save_IFS
4297  test -z "$as_dir" && as_dir=.
4298    for ac_exec_ext in '' $ac_executable_extensions; do
4299  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4300    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4301       ac_prog_rejected=yes
4302       continue
4303     fi
4304    ac_cv_prog_CC="cc"
4305    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4306    break 2
4307  fi
4308done
4309  done
4310IFS=$as_save_IFS
4311
4312if test $ac_prog_rejected = yes; then
4313  # We found a bogon in the path, so make sure we never use it.
4314  set dummy $ac_cv_prog_CC
4315  shift
4316  if test $# != 0; then
4317    # We chose a different compiler from the bogus one.
4318    # However, it has the same basename, so the bogon will be chosen
4319    # first if we set CC to just the basename; use the full file name.
4320    shift
4321    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4322  fi
4323fi
4324fi
4325fi
4326CC=$ac_cv_prog_CC
4327if test -n "$CC"; then
4328  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4329$as_echo "$CC" >&6; }
4330else
4331  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4332$as_echo "no" >&6; }
4333fi
4334
4335
4336fi
4337if test -z "$CC"; then
4338  if test -n "$ac_tool_prefix"; then
4339  for ac_prog in cl.exe
4340  do
4341    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4342set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4343{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4344$as_echo_n "checking for $ac_word... " >&6; }
4345if ${ac_cv_prog_CC+:} false; then :
4346  $as_echo_n "(cached) " >&6
4347else
4348  if test -n "$CC"; then
4349  ac_cv_prog_CC="$CC" # Let the user override the test.
4350else
4351as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4352for as_dir in $PATH
4353do
4354  IFS=$as_save_IFS
4355  test -z "$as_dir" && as_dir=.
4356    for ac_exec_ext in '' $ac_executable_extensions; do
4357  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4358    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4359    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4360    break 2
4361  fi
4362done
4363  done
4364IFS=$as_save_IFS
4365
4366fi
4367fi
4368CC=$ac_cv_prog_CC
4369if test -n "$CC"; then
4370  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4371$as_echo "$CC" >&6; }
4372else
4373  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4374$as_echo "no" >&6; }
4375fi
4376
4377
4378    test -n "$CC" && break
4379  done
4380fi
4381if test -z "$CC"; then
4382  ac_ct_CC=$CC
4383  for ac_prog in cl.exe
4384do
4385  # Extract the first word of "$ac_prog", so it can be a program name with args.
4386set dummy $ac_prog; ac_word=$2
4387{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4388$as_echo_n "checking for $ac_word... " >&6; }
4389if ${ac_cv_prog_ac_ct_CC+:} false; then :
4390  $as_echo_n "(cached) " >&6
4391else
4392  if test -n "$ac_ct_CC"; then
4393  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4394else
4395as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4396for as_dir in $PATH
4397do
4398  IFS=$as_save_IFS
4399  test -z "$as_dir" && as_dir=.
4400    for ac_exec_ext in '' $ac_executable_extensions; do
4401  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4402    ac_cv_prog_ac_ct_CC="$ac_prog"
4403    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4404    break 2
4405  fi
4406done
4407  done
4408IFS=$as_save_IFS
4409
4410fi
4411fi
4412ac_ct_CC=$ac_cv_prog_ac_ct_CC
4413if test -n "$ac_ct_CC"; then
4414  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4415$as_echo "$ac_ct_CC" >&6; }
4416else
4417  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4418$as_echo "no" >&6; }
4419fi
4420
4421
4422  test -n "$ac_ct_CC" && break
4423done
4424
4425  if test "x$ac_ct_CC" = x; then
4426    CC=""
4427  else
4428    case $cross_compiling:$ac_tool_warned in
4429yes:)
4430{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4431$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4432ac_tool_warned=yes ;;
4433esac
4434    CC=$ac_ct_CC
4435  fi
4436fi
4437
4438fi
4439
4440
4441test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4442$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4443as_fn_error $? "no acceptable C compiler found in \$PATH
4444See \`config.log' for more details" "$LINENO" 5; }
4445
4446# Provide some information about the compiler.
4447$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4448set X $ac_compile
4449ac_compiler=$2
4450for ac_option in --version -v -V -qversion; do
4451  { { ac_try="$ac_compiler $ac_option >&5"
4452case "(($ac_try" in
4453  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4454  *) ac_try_echo=$ac_try;;
4455esac
4456eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4457$as_echo "$ac_try_echo"; } >&5
4458  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4459  ac_status=$?
4460  if test -s conftest.err; then
4461    sed '10a\
4462... rest of stderr output deleted ...
4463         10q' conftest.err >conftest.er1
4464    cat conftest.er1 >&5
4465  fi
4466  rm -f conftest.er1 conftest.err
4467  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4468  test $ac_status = 0; }
4469done
4470
4471{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4472$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4473if ${ac_cv_c_compiler_gnu+:} false; then :
4474  $as_echo_n "(cached) " >&6
4475else
4476  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4477/* end confdefs.h.  */
4478
4479int
4480main ()
4481{
4482#ifndef __GNUC__
4483       choke me
4484#endif
4485
4486  ;
4487  return 0;
4488}
4489_ACEOF
4490if ac_fn_c_try_compile "$LINENO"; then :
4491  ac_compiler_gnu=yes
4492else
4493  ac_compiler_gnu=no
4494fi
4495rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4496ac_cv_c_compiler_gnu=$ac_compiler_gnu
4497
4498fi
4499{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4500$as_echo "$ac_cv_c_compiler_gnu" >&6; }
4501if test $ac_compiler_gnu = yes; then
4502  GCC=yes
4503else
4504  GCC=
4505fi
4506ac_test_CFLAGS=${CFLAGS+set}
4507ac_save_CFLAGS=$CFLAGS
4508{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4509$as_echo_n "checking whether $CC accepts -g... " >&6; }
4510if ${ac_cv_prog_cc_g+:} false; then :
4511  $as_echo_n "(cached) " >&6
4512else
4513  ac_save_c_werror_flag=$ac_c_werror_flag
4514   ac_c_werror_flag=yes
4515   ac_cv_prog_cc_g=no
4516   CFLAGS="-g"
4517   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4518/* end confdefs.h.  */
4519
4520int
4521main ()
4522{
4523
4524  ;
4525  return 0;
4526}
4527_ACEOF
4528if ac_fn_c_try_compile "$LINENO"; then :
4529  ac_cv_prog_cc_g=yes
4530else
4531  CFLAGS=""
4532      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4533/* end confdefs.h.  */
4534
4535int
4536main ()
4537{
4538
4539  ;
4540  return 0;
4541}
4542_ACEOF
4543if ac_fn_c_try_compile "$LINENO"; then :
4544
4545else
4546  ac_c_werror_flag=$ac_save_c_werror_flag
4547	 CFLAGS="-g"
4548	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4549/* end confdefs.h.  */
4550
4551int
4552main ()
4553{
4554
4555  ;
4556  return 0;
4557}
4558_ACEOF
4559if ac_fn_c_try_compile "$LINENO"; then :
4560  ac_cv_prog_cc_g=yes
4561fi
4562rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4563fi
4564rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4565fi
4566rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4567   ac_c_werror_flag=$ac_save_c_werror_flag
4568fi
4569{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4570$as_echo "$ac_cv_prog_cc_g" >&6; }
4571if test "$ac_test_CFLAGS" = set; then
4572  CFLAGS=$ac_save_CFLAGS
4573elif test $ac_cv_prog_cc_g = yes; then
4574  if test "$GCC" = yes; then
4575    CFLAGS="-g -O2"
4576  else
4577    CFLAGS="-g"
4578  fi
4579else
4580  if test "$GCC" = yes; then
4581    CFLAGS="-O2"
4582  else
4583    CFLAGS=
4584  fi
4585fi
4586{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4587$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4588if ${ac_cv_prog_cc_c89+:} false; then :
4589  $as_echo_n "(cached) " >&6
4590else
4591  ac_cv_prog_cc_c89=no
4592ac_save_CC=$CC
4593cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4594/* end confdefs.h.  */
4595#include <stdarg.h>
4596#include <stdio.h>
4597struct stat;
4598/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
4599struct buf { int x; };
4600FILE * (*rcsopen) (struct buf *, struct stat *, int);
4601static char *e (p, i)
4602     char **p;
4603     int i;
4604{
4605  return p[i];
4606}
4607static char *f (char * (*g) (char **, int), char **p, ...)
4608{
4609  char *s;
4610  va_list v;
4611  va_start (v,p);
4612  s = g (p, va_arg (v,int));
4613  va_end (v);
4614  return s;
4615}
4616
4617/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
4618   function prototypes and stuff, but not '\xHH' hex character constants.
4619   These don't provoke an error unfortunately, instead are silently treated
4620   as 'x'.  The following induces an error, until -std is added to get
4621   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
4622   array size at least.  It's necessary to write '\x00'==0 to get something
4623   that's true only with -std.  */
4624int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4625
4626/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4627   inside strings and character constants.  */
4628#define FOO(x) 'x'
4629int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4630
4631int test (int i, double x);
4632struct s1 {int (*f) (int a);};
4633struct s2 {int (*f) (double a);};
4634int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4635int argc;
4636char **argv;
4637int
4638main ()
4639{
4640return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
4641  ;
4642  return 0;
4643}
4644_ACEOF
4645for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4646	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4647do
4648  CC="$ac_save_CC $ac_arg"
4649  if ac_fn_c_try_compile "$LINENO"; then :
4650  ac_cv_prog_cc_c89=$ac_arg
4651fi
4652rm -f core conftest.err conftest.$ac_objext
4653  test "x$ac_cv_prog_cc_c89" != "xno" && break
4654done
4655rm -f conftest.$ac_ext
4656CC=$ac_save_CC
4657
4658fi
4659# AC_CACHE_VAL
4660case "x$ac_cv_prog_cc_c89" in
4661  x)
4662    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4663$as_echo "none needed" >&6; } ;;
4664  xno)
4665    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4666$as_echo "unsupported" >&6; } ;;
4667  *)
4668    CC="$CC $ac_cv_prog_cc_c89"
4669    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4670$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4671esac
4672if test "x$ac_cv_prog_cc_c89" != xno; then :
4673
4674fi
4675
4676ac_ext=c
4677ac_cpp='$CPP $CPPFLAGS'
4678ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4679ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4680ac_compiler_gnu=$ac_cv_c_compiler_gnu
4681
4682ac_ext=c
4683ac_cpp='$CPP $CPPFLAGS'
4684ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4685ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4686ac_compiler_gnu=$ac_cv_c_compiler_gnu
4687{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
4688$as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
4689if ${am_cv_prog_cc_c_o+:} false; then :
4690  $as_echo_n "(cached) " >&6
4691else
4692  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4693/* end confdefs.h.  */
4694
4695int
4696main ()
4697{
4698
4699  ;
4700  return 0;
4701}
4702_ACEOF
4703  # Make sure it works both with $CC and with simple cc.
4704  # Following AC_PROG_CC_C_O, we do the test twice because some
4705  # compilers refuse to overwrite an existing .o file with -o,
4706  # though they will create one.
4707  am_cv_prog_cc_c_o=yes
4708  for am_i in 1 2; do
4709    if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
4710   ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
4711   ac_status=$?
4712   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4713   (exit $ac_status); } \
4714         && test -f conftest2.$ac_objext; then
4715      : OK
4716    else
4717      am_cv_prog_cc_c_o=no
4718      break
4719    fi
4720  done
4721  rm -f core conftest*
4722  unset am_i
4723fi
4724{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
4725$as_echo "$am_cv_prog_cc_c_o" >&6; }
4726if test "$am_cv_prog_cc_c_o" != yes; then
4727   # Losing compiler, so override with the script.
4728   # FIXME: It is wrong to rewrite CC.
4729   # But if we don't then we get into trouble of one sort or another.
4730   # A longer-term fix would be to have automake use am__CC in this case,
4731   # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4732   CC="$am_aux_dir/compile $CC"
4733fi
4734ac_ext=c
4735ac_cpp='$CPP $CPPFLAGS'
4736ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4737ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4738ac_compiler_gnu=$ac_cv_c_compiler_gnu
4739
4740
4741depcc="$CC"   am_compiler_list=
4742
4743{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4744$as_echo_n "checking dependency style of $depcc... " >&6; }
4745if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4746  $as_echo_n "(cached) " >&6
4747else
4748  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4749  # We make a subdir and do the tests there.  Otherwise we can end up
4750  # making bogus files that we don't know about and never remove.  For
4751  # instance it was reported that on HP-UX the gcc test will end up
4752  # making a dummy file named 'D' -- because '-MD' means "put the output
4753  # in D".
4754  rm -rf conftest.dir
4755  mkdir conftest.dir
4756  # Copy depcomp to subdir because otherwise we won't find it if we're
4757  # using a relative directory.
4758  cp "$am_depcomp" conftest.dir
4759  cd conftest.dir
4760  # We will build objects and dependencies in a subdirectory because
4761  # it helps to detect inapplicable dependency modes.  For instance
4762  # both Tru64's cc and ICC support -MD to output dependencies as a
4763  # side effect of compilation, but ICC will put the dependencies in
4764  # the current directory while Tru64 will put them in the object
4765  # directory.
4766  mkdir sub
4767
4768  am_cv_CC_dependencies_compiler_type=none
4769  if test "$am_compiler_list" = ""; then
4770     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4771  fi
4772  am__universal=false
4773  case " $depcc " in #(
4774     *\ -arch\ *\ -arch\ *) am__universal=true ;;
4775     esac
4776
4777  for depmode in $am_compiler_list; do
4778    # Setup a source with many dependencies, because some compilers
4779    # like to wrap large dependency lists on column 80 (with \), and
4780    # we should not choose a depcomp mode which is confused by this.
4781    #
4782    # We need to recreate these files for each test, as the compiler may
4783    # overwrite some of them when testing with obscure command lines.
4784    # This happens at least with the AIX C compiler.
4785    : > sub/conftest.c
4786    for i in 1 2 3 4 5 6; do
4787      echo '#include "conftst'$i'.h"' >> sub/conftest.c
4788      # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4789      # Solaris 10 /bin/sh.
4790      echo '/* dummy */' > sub/conftst$i.h
4791    done
4792    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4793
4794    # We check with '-c' and '-o' for the sake of the "dashmstdout"
4795    # mode.  It turns out that the SunPro C++ compiler does not properly
4796    # handle '-M -o', and we need to detect this.  Also, some Intel
4797    # versions had trouble with output in subdirs.
4798    am__obj=sub/conftest.${OBJEXT-o}
4799    am__minus_obj="-o $am__obj"
4800    case $depmode in
4801    gcc)
4802      # This depmode causes a compiler race in universal mode.
4803      test "$am__universal" = false || continue
4804      ;;
4805    nosideeffect)
4806      # After this tag, mechanisms are not by side-effect, so they'll
4807      # only be used when explicitly requested.
4808      if test "x$enable_dependency_tracking" = xyes; then
4809	continue
4810      else
4811	break
4812      fi
4813      ;;
4814    msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4815      # This compiler won't grok '-c -o', but also, the minuso test has
4816      # not run yet.  These depmodes are late enough in the game, and
4817      # so weak that their functioning should not be impacted.
4818      am__obj=conftest.${OBJEXT-o}
4819      am__minus_obj=
4820      ;;
4821    none) break ;;
4822    esac
4823    if depmode=$depmode \
4824       source=sub/conftest.c object=$am__obj \
4825       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4826       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4827         >/dev/null 2>conftest.err &&
4828       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4829       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4830       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4831       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4832      # icc doesn't choke on unknown options, it will just issue warnings
4833      # or remarks (even with -Werror).  So we grep stderr for any message
4834      # that says an option was ignored or not supported.
4835      # When given -MP, icc 7.0 and 7.1 complain thusly:
4836      #   icc: Command line warning: ignoring option '-M'; no argument required
4837      # The diagnosis changed in icc 8.0:
4838      #   icc: Command line remark: option '-MP' not supported
4839      if (grep 'ignoring option' conftest.err ||
4840          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4841        am_cv_CC_dependencies_compiler_type=$depmode
4842        break
4843      fi
4844    fi
4845  done
4846
4847  cd ..
4848  rm -rf conftest.dir
4849else
4850  am_cv_CC_dependencies_compiler_type=none
4851fi
4852
4853fi
4854{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4855$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4856CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4857
4858 if
4859  test "x$enable_dependency_tracking" != xno \
4860  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4861  am__fastdepCC_TRUE=
4862  am__fastdepCC_FALSE='#'
4863else
4864  am__fastdepCC_TRUE='#'
4865  am__fastdepCC_FALSE=
4866fi
4867
4868
4869case `pwd` in
4870  *\ * | *\	*)
4871    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
4872$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
4873esac
4874
4875
4876
4877macro_version='2.4.6'
4878macro_revision='2.4.6'
4879
4880
4881
4882
4883
4884
4885
4886
4887
4888
4889
4890
4891
4892ltmain=$ac_aux_dir/ltmain.sh
4893
4894# Make sure we can run config.sub.
4895$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4896  as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
4897
4898{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4899$as_echo_n "checking build system type... " >&6; }
4900if ${ac_cv_build+:} false; then :
4901  $as_echo_n "(cached) " >&6
4902else
4903  ac_build_alias=$build_alias
4904test "x$ac_build_alias" = x &&
4905  ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4906test "x$ac_build_alias" = x &&
4907  as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
4908ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4909  as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
4910
4911fi
4912{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4913$as_echo "$ac_cv_build" >&6; }
4914case $ac_cv_build in
4915*-*-*) ;;
4916*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
4917esac
4918build=$ac_cv_build
4919ac_save_IFS=$IFS; IFS='-'
4920set x $ac_cv_build
4921shift
4922build_cpu=$1
4923build_vendor=$2
4924shift; shift
4925# Remember, the first character of IFS is used to create $*,
4926# except with old shells:
4927build_os=$*
4928IFS=$ac_save_IFS
4929case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4930
4931
4932{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4933$as_echo_n "checking host system type... " >&6; }
4934if ${ac_cv_host+:} false; then :
4935  $as_echo_n "(cached) " >&6
4936else
4937  if test "x$host_alias" = x; then
4938  ac_cv_host=$ac_cv_build
4939else
4940  ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4941    as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4942fi
4943
4944fi
4945{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4946$as_echo "$ac_cv_host" >&6; }
4947case $ac_cv_host in
4948*-*-*) ;;
4949*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
4950esac
4951host=$ac_cv_host
4952ac_save_IFS=$IFS; IFS='-'
4953set x $ac_cv_host
4954shift
4955host_cpu=$1
4956host_vendor=$2
4957shift; shift
4958# Remember, the first character of IFS is used to create $*,
4959# except with old shells:
4960host_os=$*
4961IFS=$ac_save_IFS
4962case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4963
4964
4965# Backslashify metacharacters that are still active within
4966# double-quoted strings.
4967sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
4968
4969# Same as above, but do not quote variable references.
4970double_quote_subst='s/\(["`\\]\)/\\\1/g'
4971
4972# Sed substitution to delay expansion of an escaped shell variable in a
4973# double_quote_subst'ed string.
4974delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
4975
4976# Sed substitution to delay expansion of an escaped single quote.
4977delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
4978
4979# Sed substitution to avoid accidental globbing in evaled expressions
4980no_glob_subst='s/\*/\\\*/g'
4981
4982ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
4983ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
4984ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
4985
4986{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
4987$as_echo_n "checking how to print strings... " >&6; }
4988# Test print first, because it will be a builtin if present.
4989if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
4990   test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
4991  ECHO='print -r --'
4992elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
4993  ECHO='printf %s\n'
4994else
4995  # Use this function as a fallback that always works.
4996  func_fallback_echo ()
4997  {
4998    eval 'cat <<_LTECHO_EOF
4999$1
5000_LTECHO_EOF'
5001  }
5002  ECHO='func_fallback_echo'
5003fi
5004
5005# func_echo_all arg...
5006# Invoke $ECHO with all args, space-separated.
5007func_echo_all ()
5008{
5009    $ECHO ""
5010}
5011
5012case $ECHO in
5013  printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
5014$as_echo "printf" >&6; } ;;
5015  print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
5016$as_echo "print -r" >&6; } ;;
5017  *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
5018$as_echo "cat" >&6; } ;;
5019esac
5020
5021
5022
5023
5024
5025
5026
5027
5028
5029
5030
5031
5032
5033
5034{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
5035$as_echo_n "checking for a sed that does not truncate output... " >&6; }
5036if ${ac_cv_path_SED+:} false; then :
5037  $as_echo_n "(cached) " >&6
5038else
5039            ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5040     for ac_i in 1 2 3 4 5 6 7; do
5041       ac_script="$ac_script$as_nl$ac_script"
5042     done
5043     echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5044     { ac_script=; unset ac_script;}
5045     if test -z "$SED"; then
5046  ac_path_SED_found=false
5047  # Loop through the user's path and test for each of PROGNAME-LIST
5048  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5049for as_dir in $PATH
5050do
5051  IFS=$as_save_IFS
5052  test -z "$as_dir" && as_dir=.
5053    for ac_prog in sed gsed; do
5054    for ac_exec_ext in '' $ac_executable_extensions; do
5055      ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
5056      as_fn_executable_p "$ac_path_SED" || continue
5057# Check for GNU ac_path_SED and select it if it is found.
5058  # Check for GNU $ac_path_SED
5059case `"$ac_path_SED" --version 2>&1` in
5060*GNU*)
5061  ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5062*)
5063  ac_count=0
5064  $as_echo_n 0123456789 >"conftest.in"
5065  while :
5066  do
5067    cat "conftest.in" "conftest.in" >"conftest.tmp"
5068    mv "conftest.tmp" "conftest.in"
5069    cp "conftest.in" "conftest.nl"
5070    $as_echo '' >> "conftest.nl"
5071    "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5072    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5073    as_fn_arith $ac_count + 1 && ac_count=$as_val
5074    if test $ac_count -gt ${ac_path_SED_max-0}; then
5075      # Best one so far, save it but keep looking for a better one
5076      ac_cv_path_SED="$ac_path_SED"
5077      ac_path_SED_max=$ac_count
5078    fi
5079    # 10*(2^10) chars as input seems more than enough
5080    test $ac_count -gt 10 && break
5081  done
5082  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5083esac
5084
5085      $ac_path_SED_found && break 3
5086    done
5087  done
5088  done
5089IFS=$as_save_IFS
5090  if test -z "$ac_cv_path_SED"; then
5091    as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
5092  fi
5093else
5094  ac_cv_path_SED=$SED
5095fi
5096
5097fi
5098{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
5099$as_echo "$ac_cv_path_SED" >&6; }
5100 SED="$ac_cv_path_SED"
5101  rm -f conftest.sed
5102
5103test -z "$SED" && SED=sed
5104Xsed="$SED -e 1s/^X//"
5105
5106
5107
5108
5109
5110
5111
5112
5113
5114
5115
5116{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5117$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5118if ${ac_cv_path_GREP+:} false; then :
5119  $as_echo_n "(cached) " >&6
5120else
5121  if test -z "$GREP"; then
5122  ac_path_GREP_found=false
5123  # Loop through the user's path and test for each of PROGNAME-LIST
5124  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5125for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5126do
5127  IFS=$as_save_IFS
5128  test -z "$as_dir" && as_dir=.
5129    for ac_prog in grep ggrep; do
5130    for ac_exec_ext in '' $ac_executable_extensions; do
5131      ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5132      as_fn_executable_p "$ac_path_GREP" || continue
5133# Check for GNU ac_path_GREP and select it if it is found.
5134  # Check for GNU $ac_path_GREP
5135case `"$ac_path_GREP" --version 2>&1` in
5136*GNU*)
5137  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5138*)
5139  ac_count=0
5140  $as_echo_n 0123456789 >"conftest.in"
5141  while :
5142  do
5143    cat "conftest.in" "conftest.in" >"conftest.tmp"
5144    mv "conftest.tmp" "conftest.in"
5145    cp "conftest.in" "conftest.nl"
5146    $as_echo 'GREP' >> "conftest.nl"
5147    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5148    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5149    as_fn_arith $ac_count + 1 && ac_count=$as_val
5150    if test $ac_count -gt ${ac_path_GREP_max-0}; then
5151      # Best one so far, save it but keep looking for a better one
5152      ac_cv_path_GREP="$ac_path_GREP"
5153      ac_path_GREP_max=$ac_count
5154    fi
5155    # 10*(2^10) chars as input seems more than enough
5156    test $ac_count -gt 10 && break
5157  done
5158  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5159esac
5160
5161      $ac_path_GREP_found && break 3
5162    done
5163  done
5164  done
5165IFS=$as_save_IFS
5166  if test -z "$ac_cv_path_GREP"; then
5167    as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5168  fi
5169else
5170  ac_cv_path_GREP=$GREP
5171fi
5172
5173fi
5174{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5175$as_echo "$ac_cv_path_GREP" >&6; }
5176 GREP="$ac_cv_path_GREP"
5177
5178
5179{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5180$as_echo_n "checking for egrep... " >&6; }
5181if ${ac_cv_path_EGREP+:} false; then :
5182  $as_echo_n "(cached) " >&6
5183else
5184  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5185   then ac_cv_path_EGREP="$GREP -E"
5186   else
5187     if test -z "$EGREP"; then
5188  ac_path_EGREP_found=false
5189  # Loop through the user's path and test for each of PROGNAME-LIST
5190  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5191for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5192do
5193  IFS=$as_save_IFS
5194  test -z "$as_dir" && as_dir=.
5195    for ac_prog in egrep; do
5196    for ac_exec_ext in '' $ac_executable_extensions; do
5197      ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5198      as_fn_executable_p "$ac_path_EGREP" || continue
5199# Check for GNU ac_path_EGREP and select it if it is found.
5200  # Check for GNU $ac_path_EGREP
5201case `"$ac_path_EGREP" --version 2>&1` in
5202*GNU*)
5203  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5204*)
5205  ac_count=0
5206  $as_echo_n 0123456789 >"conftest.in"
5207  while :
5208  do
5209    cat "conftest.in" "conftest.in" >"conftest.tmp"
5210    mv "conftest.tmp" "conftest.in"
5211    cp "conftest.in" "conftest.nl"
5212    $as_echo 'EGREP' >> "conftest.nl"
5213    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5214    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5215    as_fn_arith $ac_count + 1 && ac_count=$as_val
5216    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5217      # Best one so far, save it but keep looking for a better one
5218      ac_cv_path_EGREP="$ac_path_EGREP"
5219      ac_path_EGREP_max=$ac_count
5220    fi
5221    # 10*(2^10) chars as input seems more than enough
5222    test $ac_count -gt 10 && break
5223  done
5224  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5225esac
5226
5227      $ac_path_EGREP_found && break 3
5228    done
5229  done
5230  done
5231IFS=$as_save_IFS
5232  if test -z "$ac_cv_path_EGREP"; then
5233    as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5234  fi
5235else
5236  ac_cv_path_EGREP=$EGREP
5237fi
5238
5239   fi
5240fi
5241{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5242$as_echo "$ac_cv_path_EGREP" >&6; }
5243 EGREP="$ac_cv_path_EGREP"
5244
5245
5246{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
5247$as_echo_n "checking for fgrep... " >&6; }
5248if ${ac_cv_path_FGREP+:} false; then :
5249  $as_echo_n "(cached) " >&6
5250else
5251  if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5252   then ac_cv_path_FGREP="$GREP -F"
5253   else
5254     if test -z "$FGREP"; then
5255  ac_path_FGREP_found=false
5256  # Loop through the user's path and test for each of PROGNAME-LIST
5257  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5258for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5259do
5260  IFS=$as_save_IFS
5261  test -z "$as_dir" && as_dir=.
5262    for ac_prog in fgrep; do
5263    for ac_exec_ext in '' $ac_executable_extensions; do
5264      ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
5265      as_fn_executable_p "$ac_path_FGREP" || continue
5266# Check for GNU ac_path_FGREP and select it if it is found.
5267  # Check for GNU $ac_path_FGREP
5268case `"$ac_path_FGREP" --version 2>&1` in
5269*GNU*)
5270  ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5271*)
5272  ac_count=0
5273  $as_echo_n 0123456789 >"conftest.in"
5274  while :
5275  do
5276    cat "conftest.in" "conftest.in" >"conftest.tmp"
5277    mv "conftest.tmp" "conftest.in"
5278    cp "conftest.in" "conftest.nl"
5279    $as_echo 'FGREP' >> "conftest.nl"
5280    "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5281    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5282    as_fn_arith $ac_count + 1 && ac_count=$as_val
5283    if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5284      # Best one so far, save it but keep looking for a better one
5285      ac_cv_path_FGREP="$ac_path_FGREP"
5286      ac_path_FGREP_max=$ac_count
5287    fi
5288    # 10*(2^10) chars as input seems more than enough
5289    test $ac_count -gt 10 && break
5290  done
5291  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5292esac
5293
5294      $ac_path_FGREP_found && break 3
5295    done
5296  done
5297  done
5298IFS=$as_save_IFS
5299  if test -z "$ac_cv_path_FGREP"; then
5300    as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5301  fi
5302else
5303  ac_cv_path_FGREP=$FGREP
5304fi
5305
5306   fi
5307fi
5308{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5309$as_echo "$ac_cv_path_FGREP" >&6; }
5310 FGREP="$ac_cv_path_FGREP"
5311
5312
5313test -z "$GREP" && GREP=grep
5314
5315
5316
5317
5318
5319
5320
5321
5322
5323
5324
5325
5326
5327
5328
5329
5330
5331
5332
5333# Check whether --with-gnu-ld was given.
5334if test "${with_gnu_ld+set}" = set; then :
5335  withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
5336else
5337  with_gnu_ld=no
5338fi
5339
5340ac_prog=ld
5341if test yes = "$GCC"; then
5342  # Check if gcc -print-prog-name=ld gives a path.
5343  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5344$as_echo_n "checking for ld used by $CC... " >&6; }
5345  case $host in
5346  *-*-mingw*)
5347    # gcc leaves a trailing carriage return, which upsets mingw
5348    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5349  *)
5350    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5351  esac
5352  case $ac_prog in
5353    # Accept absolute paths.
5354    [\\/]* | ?:[\\/]*)
5355      re_direlt='/[^/][^/]*/\.\./'
5356      # Canonicalize the pathname of ld
5357      ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5358      while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5359	ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5360      done
5361      test -z "$LD" && LD=$ac_prog
5362      ;;
5363  "")
5364    # If it fails, then pretend we aren't using GCC.
5365    ac_prog=ld
5366    ;;
5367  *)
5368    # If it is relative, then search for the first ld in PATH.
5369    with_gnu_ld=unknown
5370    ;;
5371  esac
5372elif test yes = "$with_gnu_ld"; then
5373  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5374$as_echo_n "checking for GNU ld... " >&6; }
5375else
5376  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5377$as_echo_n "checking for non-GNU ld... " >&6; }
5378fi
5379if ${lt_cv_path_LD+:} false; then :
5380  $as_echo_n "(cached) " >&6
5381else
5382  if test -z "$LD"; then
5383  lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
5384  for ac_dir in $PATH; do
5385    IFS=$lt_save_ifs
5386    test -z "$ac_dir" && ac_dir=.
5387    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5388      lt_cv_path_LD=$ac_dir/$ac_prog
5389      # Check to see if the program is GNU ld.  I'd rather use --version,
5390      # but apparently some variants of GNU ld only accept -v.
5391      # Break only if it was the GNU/non-GNU ld that we prefer.
5392      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5393      *GNU* | *'with BFD'*)
5394	test no != "$with_gnu_ld" && break
5395	;;
5396      *)
5397	test yes != "$with_gnu_ld" && break
5398	;;
5399      esac
5400    fi
5401  done
5402  IFS=$lt_save_ifs
5403else
5404  lt_cv_path_LD=$LD # Let the user override the test with a path.
5405fi
5406fi
5407
5408LD=$lt_cv_path_LD
5409if test -n "$LD"; then
5410  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5411$as_echo "$LD" >&6; }
5412else
5413  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5414$as_echo "no" >&6; }
5415fi
5416test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
5417{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5418$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5419if ${lt_cv_prog_gnu_ld+:} false; then :
5420  $as_echo_n "(cached) " >&6
5421else
5422  # I'd rather use --version here, but apparently some GNU lds only accept -v.
5423case `$LD -v 2>&1 </dev/null` in
5424*GNU* | *'with BFD'*)
5425  lt_cv_prog_gnu_ld=yes
5426  ;;
5427*)
5428  lt_cv_prog_gnu_ld=no
5429  ;;
5430esac
5431fi
5432{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5433$as_echo "$lt_cv_prog_gnu_ld" >&6; }
5434with_gnu_ld=$lt_cv_prog_gnu_ld
5435
5436
5437
5438
5439
5440
5441
5442
5443
5444{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5445$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5446if ${lt_cv_path_NM+:} false; then :
5447  $as_echo_n "(cached) " >&6
5448else
5449  if test -n "$NM"; then
5450  # Let the user override the test.
5451  lt_cv_path_NM=$NM
5452else
5453  lt_nm_to_check=${ac_tool_prefix}nm
5454  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5455    lt_nm_to_check="$lt_nm_to_check nm"
5456  fi
5457  for lt_tmp_nm in $lt_nm_to_check; do
5458    lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
5459    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5460      IFS=$lt_save_ifs
5461      test -z "$ac_dir" && ac_dir=.
5462      tmp_nm=$ac_dir/$lt_tmp_nm
5463      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
5464	# Check to see if the nm accepts a BSD-compat flag.
5465	# Adding the 'sed 1q' prevents false positives on HP-UX, which says:
5466	#   nm: unknown option "B" ignored
5467	# Tru64's nm complains that /dev/null is an invalid object file
5468	# MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
5469	case $build_os in
5470	mingw*) lt_bad_file=conftest.nm/nofile ;;
5471	*) lt_bad_file=/dev/null ;;
5472	esac
5473	case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in
5474	*$lt_bad_file* | *'Invalid file or object type'*)
5475	  lt_cv_path_NM="$tmp_nm -B"
5476	  break 2
5477	  ;;
5478	*)
5479	  case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5480	  */dev/null*)
5481	    lt_cv_path_NM="$tmp_nm -p"
5482	    break 2
5483	    ;;
5484	  *)
5485	    lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5486	    continue # so that we can try to find one that supports BSD flags
5487	    ;;
5488	  esac
5489	  ;;
5490	esac
5491      fi
5492    done
5493    IFS=$lt_save_ifs
5494  done
5495  : ${lt_cv_path_NM=no}
5496fi
5497fi
5498{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5499$as_echo "$lt_cv_path_NM" >&6; }
5500if test no != "$lt_cv_path_NM"; then
5501  NM=$lt_cv_path_NM
5502else
5503  # Didn't find any BSD compatible name lister, look for dumpbin.
5504  if test -n "$DUMPBIN"; then :
5505    # Let the user override the test.
5506  else
5507    if test -n "$ac_tool_prefix"; then
5508  for ac_prog in dumpbin "link -dump"
5509  do
5510    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5511set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5512{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5513$as_echo_n "checking for $ac_word... " >&6; }
5514if ${ac_cv_prog_DUMPBIN+:} false; then :
5515  $as_echo_n "(cached) " >&6
5516else
5517  if test -n "$DUMPBIN"; then
5518  ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5519else
5520as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5521for as_dir in $PATH
5522do
5523  IFS=$as_save_IFS
5524  test -z "$as_dir" && as_dir=.
5525    for ac_exec_ext in '' $ac_executable_extensions; do
5526  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5527    ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5528    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5529    break 2
5530  fi
5531done
5532  done
5533IFS=$as_save_IFS
5534
5535fi
5536fi
5537DUMPBIN=$ac_cv_prog_DUMPBIN
5538if test -n "$DUMPBIN"; then
5539  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5540$as_echo "$DUMPBIN" >&6; }
5541else
5542  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5543$as_echo "no" >&6; }
5544fi
5545
5546
5547    test -n "$DUMPBIN" && break
5548  done
5549fi
5550if test -z "$DUMPBIN"; then
5551  ac_ct_DUMPBIN=$DUMPBIN
5552  for ac_prog in dumpbin "link -dump"
5553do
5554  # Extract the first word of "$ac_prog", so it can be a program name with args.
5555set dummy $ac_prog; ac_word=$2
5556{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5557$as_echo_n "checking for $ac_word... " >&6; }
5558if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
5559  $as_echo_n "(cached) " >&6
5560else
5561  if test -n "$ac_ct_DUMPBIN"; then
5562  ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5563else
5564as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5565for as_dir in $PATH
5566do
5567  IFS=$as_save_IFS
5568  test -z "$as_dir" && as_dir=.
5569    for ac_exec_ext in '' $ac_executable_extensions; do
5570  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5571    ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5572    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5573    break 2
5574  fi
5575done
5576  done
5577IFS=$as_save_IFS
5578
5579fi
5580fi
5581ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5582if test -n "$ac_ct_DUMPBIN"; then
5583  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5584$as_echo "$ac_ct_DUMPBIN" >&6; }
5585else
5586  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5587$as_echo "no" >&6; }
5588fi
5589
5590
5591  test -n "$ac_ct_DUMPBIN" && break
5592done
5593
5594  if test "x$ac_ct_DUMPBIN" = x; then
5595    DUMPBIN=":"
5596  else
5597    case $cross_compiling:$ac_tool_warned in
5598yes:)
5599{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5600$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5601ac_tool_warned=yes ;;
5602esac
5603    DUMPBIN=$ac_ct_DUMPBIN
5604  fi
5605fi
5606
5607    case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in
5608    *COFF*)
5609      DUMPBIN="$DUMPBIN -symbols -headers"
5610      ;;
5611    *)
5612      DUMPBIN=:
5613      ;;
5614    esac
5615  fi
5616
5617  if test : != "$DUMPBIN"; then
5618    NM=$DUMPBIN
5619  fi
5620fi
5621test -z "$NM" && NM=nm
5622
5623
5624
5625
5626
5627
5628{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5629$as_echo_n "checking the name lister ($NM) interface... " >&6; }
5630if ${lt_cv_nm_interface+:} false; then :
5631  $as_echo_n "(cached) " >&6
5632else
5633  lt_cv_nm_interface="BSD nm"
5634  echo "int some_variable = 0;" > conftest.$ac_ext
5635  (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
5636  (eval "$ac_compile" 2>conftest.err)
5637  cat conftest.err >&5
5638  (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5639  (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5640  cat conftest.err >&5
5641  (eval echo "\"\$as_me:$LINENO: output\"" >&5)
5642  cat conftest.out >&5
5643  if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5644    lt_cv_nm_interface="MS dumpbin"
5645  fi
5646  rm -f conftest*
5647fi
5648{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5649$as_echo "$lt_cv_nm_interface" >&6; }
5650
5651{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5652$as_echo_n "checking whether ln -s works... " >&6; }
5653LN_S=$as_ln_s
5654if test "$LN_S" = "ln -s"; then
5655  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5656$as_echo "yes" >&6; }
5657else
5658  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5659$as_echo "no, using $LN_S" >&6; }
5660fi
5661
5662# find the maximum length of command line arguments
5663{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5664$as_echo_n "checking the maximum length of command line arguments... " >&6; }
5665if ${lt_cv_sys_max_cmd_len+:} false; then :
5666  $as_echo_n "(cached) " >&6
5667else
5668    i=0
5669  teststring=ABCD
5670
5671  case $build_os in
5672  msdosdjgpp*)
5673    # On DJGPP, this test can blow up pretty badly due to problems in libc
5674    # (any single argument exceeding 2000 bytes causes a buffer overrun
5675    # during glob expansion).  Even if it were fixed, the result of this
5676    # check would be larger than it should be.
5677    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
5678    ;;
5679
5680  gnu*)
5681    # Under GNU Hurd, this test is not required because there is
5682    # no limit to the length of command line arguments.
5683    # Libtool will interpret -1 as no limit whatsoever
5684    lt_cv_sys_max_cmd_len=-1;
5685    ;;
5686
5687  cygwin* | mingw* | cegcc*)
5688    # On Win9x/ME, this test blows up -- it succeeds, but takes
5689    # about 5 minutes as the teststring grows exponentially.
5690    # Worse, since 9x/ME are not pre-emptively multitasking,
5691    # you end up with a "frozen" computer, even though with patience
5692    # the test eventually succeeds (with a max line length of 256k).
5693    # Instead, let's just punt: use the minimum linelength reported by
5694    # all of the supported platforms: 8192 (on NT/2K/XP).
5695    lt_cv_sys_max_cmd_len=8192;
5696    ;;
5697
5698  mint*)
5699    # On MiNT this can take a long time and run out of memory.
5700    lt_cv_sys_max_cmd_len=8192;
5701    ;;
5702
5703  amigaos*)
5704    # On AmigaOS with pdksh, this test takes hours, literally.
5705    # So we just punt and use a minimum line length of 8192.
5706    lt_cv_sys_max_cmd_len=8192;
5707    ;;
5708
5709  bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*)
5710    # This has been around since 386BSD, at least.  Likely further.
5711    if test -x /sbin/sysctl; then
5712      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5713    elif test -x /usr/sbin/sysctl; then
5714      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5715    else
5716      lt_cv_sys_max_cmd_len=65536	# usable default for all BSDs
5717    fi
5718    # And add a safety zone
5719    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5720    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5721    ;;
5722
5723  interix*)
5724    # We know the value 262144 and hardcode it with a safety zone (like BSD)
5725    lt_cv_sys_max_cmd_len=196608
5726    ;;
5727
5728  os2*)
5729    # The test takes a long time on OS/2.
5730    lt_cv_sys_max_cmd_len=8192
5731    ;;
5732
5733  osf*)
5734    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5735    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5736    # nice to cause kernel panics so lets avoid the loop below.
5737    # First set a reasonable default.
5738    lt_cv_sys_max_cmd_len=16384
5739    #
5740    if test -x /sbin/sysconfig; then
5741      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5742        *1*) lt_cv_sys_max_cmd_len=-1 ;;
5743      esac
5744    fi
5745    ;;
5746  sco3.2v5*)
5747    lt_cv_sys_max_cmd_len=102400
5748    ;;
5749  sysv5* | sco5v6* | sysv4.2uw2*)
5750    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5751    if test -n "$kargmax"; then
5752      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[	 ]//'`
5753    else
5754      lt_cv_sys_max_cmd_len=32768
5755    fi
5756    ;;
5757  *)
5758    lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5759    if test -n "$lt_cv_sys_max_cmd_len" && \
5760       test undefined != "$lt_cv_sys_max_cmd_len"; then
5761      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5762      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5763    else
5764      # Make teststring a little bigger before we do anything with it.
5765      # a 1K string should be a reasonable start.
5766      for i in 1 2 3 4 5 6 7 8; do
5767        teststring=$teststring$teststring
5768      done
5769      SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5770      # If test is not a shell built-in, we'll probably end up computing a
5771      # maximum length that is only half of the actual maximum length, but
5772      # we can't tell.
5773      while { test X`env echo "$teststring$teststring" 2>/dev/null` \
5774	         = "X$teststring$teststring"; } >/dev/null 2>&1 &&
5775	      test 17 != "$i" # 1/2 MB should be enough
5776      do
5777        i=`expr $i + 1`
5778        teststring=$teststring$teststring
5779      done
5780      # Only check the string length outside the loop.
5781      lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5782      teststring=
5783      # Add a significant safety factor because C++ compilers can tack on
5784      # massive amounts of additional arguments before passing them to the
5785      # linker.  It appears as though 1/2 is a usable value.
5786      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5787    fi
5788    ;;
5789  esac
5790
5791fi
5792
5793if test -n "$lt_cv_sys_max_cmd_len"; then
5794  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5795$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5796else
5797  { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5798$as_echo "none" >&6; }
5799fi
5800max_cmd_len=$lt_cv_sys_max_cmd_len
5801
5802
5803
5804
5805
5806
5807: ${CP="cp -f"}
5808: ${MV="mv -f"}
5809: ${RM="rm -f"}
5810
5811if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5812  lt_unset=unset
5813else
5814  lt_unset=false
5815fi
5816
5817
5818
5819
5820
5821# test EBCDIC or ASCII
5822case `echo X|tr X '\101'` in
5823 A) # ASCII based system
5824    # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5825  lt_SP2NL='tr \040 \012'
5826  lt_NL2SP='tr \015\012 \040\040'
5827  ;;
5828 *) # EBCDIC based system
5829  lt_SP2NL='tr \100 \n'
5830  lt_NL2SP='tr \r\n \100\100'
5831  ;;
5832esac
5833
5834
5835
5836
5837
5838
5839
5840
5841
5842{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
5843$as_echo_n "checking how to convert $build file names to $host format... " >&6; }
5844if ${lt_cv_to_host_file_cmd+:} false; then :
5845  $as_echo_n "(cached) " >&6
5846else
5847  case $host in
5848  *-*-mingw* )
5849    case $build in
5850      *-*-mingw* ) # actually msys
5851        lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
5852        ;;
5853      *-*-cygwin* )
5854        lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
5855        ;;
5856      * ) # otherwise, assume *nix
5857        lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
5858        ;;
5859    esac
5860    ;;
5861  *-*-cygwin* )
5862    case $build in
5863      *-*-mingw* ) # actually msys
5864        lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
5865        ;;
5866      *-*-cygwin* )
5867        lt_cv_to_host_file_cmd=func_convert_file_noop
5868        ;;
5869      * ) # otherwise, assume *nix
5870        lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
5871        ;;
5872    esac
5873    ;;
5874  * ) # unhandled hosts (and "normal" native builds)
5875    lt_cv_to_host_file_cmd=func_convert_file_noop
5876    ;;
5877esac
5878
5879fi
5880
5881to_host_file_cmd=$lt_cv_to_host_file_cmd
5882{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
5883$as_echo "$lt_cv_to_host_file_cmd" >&6; }
5884
5885
5886
5887
5888
5889{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
5890$as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
5891if ${lt_cv_to_tool_file_cmd+:} false; then :
5892  $as_echo_n "(cached) " >&6
5893else
5894  #assume ordinary cross tools, or native build.
5895lt_cv_to_tool_file_cmd=func_convert_file_noop
5896case $host in
5897  *-*-mingw* )
5898    case $build in
5899      *-*-mingw* ) # actually msys
5900        lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
5901        ;;
5902    esac
5903    ;;
5904esac
5905
5906fi
5907
5908to_tool_file_cmd=$lt_cv_to_tool_file_cmd
5909{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
5910$as_echo "$lt_cv_to_tool_file_cmd" >&6; }
5911
5912
5913
5914
5915
5916{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5917$as_echo_n "checking for $LD option to reload object files... " >&6; }
5918if ${lt_cv_ld_reload_flag+:} false; then :
5919  $as_echo_n "(cached) " >&6
5920else
5921  lt_cv_ld_reload_flag='-r'
5922fi
5923{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5924$as_echo "$lt_cv_ld_reload_flag" >&6; }
5925reload_flag=$lt_cv_ld_reload_flag
5926case $reload_flag in
5927"" | " "*) ;;
5928*) reload_flag=" $reload_flag" ;;
5929esac
5930reload_cmds='$LD$reload_flag -o $output$reload_objs'
5931case $host_os in
5932  cygwin* | mingw* | pw32* | cegcc*)
5933    if test yes != "$GCC"; then
5934      reload_cmds=false
5935    fi
5936    ;;
5937  darwin*)
5938    if test yes = "$GCC"; then
5939      reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
5940    else
5941      reload_cmds='$LD$reload_flag -o $output$reload_objs'
5942    fi
5943    ;;
5944esac
5945
5946
5947
5948
5949
5950
5951
5952
5953
5954if test -n "$ac_tool_prefix"; then
5955  # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5956set dummy ${ac_tool_prefix}objdump; ac_word=$2
5957{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5958$as_echo_n "checking for $ac_word... " >&6; }
5959if ${ac_cv_prog_OBJDUMP+:} false; then :
5960  $as_echo_n "(cached) " >&6
5961else
5962  if test -n "$OBJDUMP"; then
5963  ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5964else
5965as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5966for as_dir in $PATH
5967do
5968  IFS=$as_save_IFS
5969  test -z "$as_dir" && as_dir=.
5970    for ac_exec_ext in '' $ac_executable_extensions; do
5971  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5972    ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5973    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5974    break 2
5975  fi
5976done
5977  done
5978IFS=$as_save_IFS
5979
5980fi
5981fi
5982OBJDUMP=$ac_cv_prog_OBJDUMP
5983if test -n "$OBJDUMP"; then
5984  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5985$as_echo "$OBJDUMP" >&6; }
5986else
5987  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5988$as_echo "no" >&6; }
5989fi
5990
5991
5992fi
5993if test -z "$ac_cv_prog_OBJDUMP"; then
5994  ac_ct_OBJDUMP=$OBJDUMP
5995  # Extract the first word of "objdump", so it can be a program name with args.
5996set dummy objdump; ac_word=$2
5997{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5998$as_echo_n "checking for $ac_word... " >&6; }
5999if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
6000  $as_echo_n "(cached) " >&6
6001else
6002  if test -n "$ac_ct_OBJDUMP"; then
6003  ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6004else
6005as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6006for as_dir in $PATH
6007do
6008  IFS=$as_save_IFS
6009  test -z "$as_dir" && as_dir=.
6010    for ac_exec_ext in '' $ac_executable_extensions; do
6011  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6012    ac_cv_prog_ac_ct_OBJDUMP="objdump"
6013    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6014    break 2
6015  fi
6016done
6017  done
6018IFS=$as_save_IFS
6019
6020fi
6021fi
6022ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6023if test -n "$ac_ct_OBJDUMP"; then
6024  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
6025$as_echo "$ac_ct_OBJDUMP" >&6; }
6026else
6027  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6028$as_echo "no" >&6; }
6029fi
6030
6031  if test "x$ac_ct_OBJDUMP" = x; then
6032    OBJDUMP="false"
6033  else
6034    case $cross_compiling:$ac_tool_warned in
6035yes:)
6036{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6037$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6038ac_tool_warned=yes ;;
6039esac
6040    OBJDUMP=$ac_ct_OBJDUMP
6041  fi
6042else
6043  OBJDUMP="$ac_cv_prog_OBJDUMP"
6044fi
6045
6046test -z "$OBJDUMP" && OBJDUMP=objdump
6047
6048
6049
6050
6051
6052
6053
6054
6055
6056{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
6057$as_echo_n "checking how to recognize dependent libraries... " >&6; }
6058if ${lt_cv_deplibs_check_method+:} false; then :
6059  $as_echo_n "(cached) " >&6
6060else
6061  lt_cv_file_magic_cmd='$MAGIC_CMD'
6062lt_cv_file_magic_test_file=
6063lt_cv_deplibs_check_method='unknown'
6064# Need to set the preceding variable on all platforms that support
6065# interlibrary dependencies.
6066# 'none' -- dependencies not supported.
6067# 'unknown' -- same as none, but documents that we really don't know.
6068# 'pass_all' -- all dependencies passed with no checks.
6069# 'test_compile' -- check by making test program.
6070# 'file_magic [[regex]]' -- check by looking for files in library path
6071# that responds to the $file_magic_cmd with a given extended regex.
6072# If you have 'file' or equivalent on your system and you're not sure
6073# whether 'pass_all' will *always* work, you probably want this one.
6074
6075case $host_os in
6076aix[4-9]*)
6077  lt_cv_deplibs_check_method=pass_all
6078  ;;
6079
6080beos*)
6081  lt_cv_deplibs_check_method=pass_all
6082  ;;
6083
6084bsdi[45]*)
6085  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6086  lt_cv_file_magic_cmd='/usr/bin/file -L'
6087  lt_cv_file_magic_test_file=/shlib/libc.so
6088  ;;
6089
6090cygwin*)
6091  # func_win32_libid is a shell function defined in ltmain.sh
6092  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6093  lt_cv_file_magic_cmd='func_win32_libid'
6094  ;;
6095
6096mingw* | pw32*)
6097  # Base MSYS/MinGW do not provide the 'file' command needed by
6098  # func_win32_libid shell function, so use a weaker test based on 'objdump',
6099  # unless we find 'file', for example because we are cross-compiling.
6100  if ( file / ) >/dev/null 2>&1; then
6101    lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6102    lt_cv_file_magic_cmd='func_win32_libid'
6103  else
6104    # Keep this pattern in sync with the one in func_win32_libid.
6105    lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
6106    lt_cv_file_magic_cmd='$OBJDUMP -f'
6107  fi
6108  ;;
6109
6110cegcc*)
6111  # use the weaker test based on 'objdump'. See mingw*.
6112  lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6113  lt_cv_file_magic_cmd='$OBJDUMP -f'
6114  ;;
6115
6116darwin* | rhapsody*)
6117  lt_cv_deplibs_check_method=pass_all
6118  ;;
6119
6120freebsd* | dragonfly*)
6121  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6122    case $host_cpu in
6123    i*86 )
6124      # Not sure whether the presence of OpenBSD here was a mistake.
6125      # Let's accept both of them until this is cleared up.
6126      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6127      lt_cv_file_magic_cmd=/usr/bin/file
6128      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6129      ;;
6130    esac
6131  else
6132    lt_cv_deplibs_check_method=pass_all
6133  fi
6134  ;;
6135
6136haiku*)
6137  lt_cv_deplibs_check_method=pass_all
6138  ;;
6139
6140hpux10.20* | hpux11*)
6141  lt_cv_file_magic_cmd=/usr/bin/file
6142  case $host_cpu in
6143  ia64*)
6144    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6145    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6146    ;;
6147  hppa*64*)
6148    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]'
6149    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6150    ;;
6151  *)
6152    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
6153    lt_cv_file_magic_test_file=/usr/lib/libc.sl
6154    ;;
6155  esac
6156  ;;
6157
6158interix[3-9]*)
6159  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6160  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6161  ;;
6162
6163irix5* | irix6* | nonstopux*)
6164  case $LD in
6165  *-32|*"-32 ") libmagic=32-bit;;
6166  *-n32|*"-n32 ") libmagic=N32;;
6167  *-64|*"-64 ") libmagic=64-bit;;
6168  *) libmagic=never-match;;
6169  esac
6170  lt_cv_deplibs_check_method=pass_all
6171  ;;
6172
6173# This must be glibc/ELF.
6174linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
6175  lt_cv_deplibs_check_method=pass_all
6176  ;;
6177
6178netbsd*)
6179  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6180    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6181  else
6182    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6183  fi
6184  ;;
6185
6186newos6*)
6187  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6188  lt_cv_file_magic_cmd=/usr/bin/file
6189  lt_cv_file_magic_test_file=/usr/lib/libnls.so
6190  ;;
6191
6192*nto* | *qnx*)
6193  lt_cv_deplibs_check_method=pass_all
6194  ;;
6195
6196openbsd* | bitrig*)
6197  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
6198    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6199  else
6200    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6201  fi
6202  ;;
6203
6204osf3* | osf4* | osf5*)
6205  lt_cv_deplibs_check_method=pass_all
6206  ;;
6207
6208rdos*)
6209  lt_cv_deplibs_check_method=pass_all
6210  ;;
6211
6212solaris*)
6213  lt_cv_deplibs_check_method=pass_all
6214  ;;
6215
6216sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6217  lt_cv_deplibs_check_method=pass_all
6218  ;;
6219
6220sysv4 | sysv4.3*)
6221  case $host_vendor in
6222  motorola)
6223    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]'
6224    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6225    ;;
6226  ncr)
6227    lt_cv_deplibs_check_method=pass_all
6228    ;;
6229  sequent)
6230    lt_cv_file_magic_cmd='/bin/file'
6231    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6232    ;;
6233  sni)
6234    lt_cv_file_magic_cmd='/bin/file'
6235    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6236    lt_cv_file_magic_test_file=/lib/libc.so
6237    ;;
6238  siemens)
6239    lt_cv_deplibs_check_method=pass_all
6240    ;;
6241  pc)
6242    lt_cv_deplibs_check_method=pass_all
6243    ;;
6244  esac
6245  ;;
6246
6247tpf*)
6248  lt_cv_deplibs_check_method=pass_all
6249  ;;
6250os2*)
6251  lt_cv_deplibs_check_method=pass_all
6252  ;;
6253esac
6254
6255fi
6256{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
6257$as_echo "$lt_cv_deplibs_check_method" >&6; }
6258
6259file_magic_glob=
6260want_nocaseglob=no
6261if test "$build" = "$host"; then
6262  case $host_os in
6263  mingw* | pw32*)
6264    if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
6265      want_nocaseglob=yes
6266    else
6267      file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
6268    fi
6269    ;;
6270  esac
6271fi
6272
6273file_magic_cmd=$lt_cv_file_magic_cmd
6274deplibs_check_method=$lt_cv_deplibs_check_method
6275test -z "$deplibs_check_method" && deplibs_check_method=unknown
6276
6277
6278
6279
6280
6281
6282
6283
6284
6285
6286
6287
6288
6289
6290
6291
6292
6293
6294
6295
6296
6297
6298if test -n "$ac_tool_prefix"; then
6299  # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
6300set dummy ${ac_tool_prefix}dlltool; ac_word=$2
6301{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6302$as_echo_n "checking for $ac_word... " >&6; }
6303if ${ac_cv_prog_DLLTOOL+:} false; then :
6304  $as_echo_n "(cached) " >&6
6305else
6306  if test -n "$DLLTOOL"; then
6307  ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
6308else
6309as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6310for as_dir in $PATH
6311do
6312  IFS=$as_save_IFS
6313  test -z "$as_dir" && as_dir=.
6314    for ac_exec_ext in '' $ac_executable_extensions; do
6315  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6316    ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
6317    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6318    break 2
6319  fi
6320done
6321  done
6322IFS=$as_save_IFS
6323
6324fi
6325fi
6326DLLTOOL=$ac_cv_prog_DLLTOOL
6327if test -n "$DLLTOOL"; then
6328  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
6329$as_echo "$DLLTOOL" >&6; }
6330else
6331  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6332$as_echo "no" >&6; }
6333fi
6334
6335
6336fi
6337if test -z "$ac_cv_prog_DLLTOOL"; then
6338  ac_ct_DLLTOOL=$DLLTOOL
6339  # Extract the first word of "dlltool", so it can be a program name with args.
6340set dummy dlltool; ac_word=$2
6341{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6342$as_echo_n "checking for $ac_word... " >&6; }
6343if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
6344  $as_echo_n "(cached) " >&6
6345else
6346  if test -n "$ac_ct_DLLTOOL"; then
6347  ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
6348else
6349as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6350for as_dir in $PATH
6351do
6352  IFS=$as_save_IFS
6353  test -z "$as_dir" && as_dir=.
6354    for ac_exec_ext in '' $ac_executable_extensions; do
6355  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6356    ac_cv_prog_ac_ct_DLLTOOL="dlltool"
6357    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6358    break 2
6359  fi
6360done
6361  done
6362IFS=$as_save_IFS
6363
6364fi
6365fi
6366ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
6367if test -n "$ac_ct_DLLTOOL"; then
6368  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
6369$as_echo "$ac_ct_DLLTOOL" >&6; }
6370else
6371  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6372$as_echo "no" >&6; }
6373fi
6374
6375  if test "x$ac_ct_DLLTOOL" = x; then
6376    DLLTOOL="false"
6377  else
6378    case $cross_compiling:$ac_tool_warned in
6379yes:)
6380{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6381$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6382ac_tool_warned=yes ;;
6383esac
6384    DLLTOOL=$ac_ct_DLLTOOL
6385  fi
6386else
6387  DLLTOOL="$ac_cv_prog_DLLTOOL"
6388fi
6389
6390test -z "$DLLTOOL" && DLLTOOL=dlltool
6391
6392
6393
6394
6395
6396
6397
6398
6399
6400
6401{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
6402$as_echo_n "checking how to associate runtime and link libraries... " >&6; }
6403if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
6404  $as_echo_n "(cached) " >&6
6405else
6406  lt_cv_sharedlib_from_linklib_cmd='unknown'
6407
6408case $host_os in
6409cygwin* | mingw* | pw32* | cegcc*)
6410  # two different shell functions defined in ltmain.sh;
6411  # decide which one to use based on capabilities of $DLLTOOL
6412  case `$DLLTOOL --help 2>&1` in
6413  *--identify-strict*)
6414    lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
6415    ;;
6416  *)
6417    lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
6418    ;;
6419  esac
6420  ;;
6421*)
6422  # fallback: assume linklib IS sharedlib
6423  lt_cv_sharedlib_from_linklib_cmd=$ECHO
6424  ;;
6425esac
6426
6427fi
6428{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
6429$as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
6430sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
6431test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
6432
6433
6434
6435
6436
6437
6438
6439if test -n "$ac_tool_prefix"; then
6440  for ac_prog in ar
6441  do
6442    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6443set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6444{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6445$as_echo_n "checking for $ac_word... " >&6; }
6446if ${ac_cv_prog_AR+:} false; then :
6447  $as_echo_n "(cached) " >&6
6448else
6449  if test -n "$AR"; then
6450  ac_cv_prog_AR="$AR" # Let the user override the test.
6451else
6452as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6453for as_dir in $PATH
6454do
6455  IFS=$as_save_IFS
6456  test -z "$as_dir" && as_dir=.
6457    for ac_exec_ext in '' $ac_executable_extensions; do
6458  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6459    ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
6460    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6461    break 2
6462  fi
6463done
6464  done
6465IFS=$as_save_IFS
6466
6467fi
6468fi
6469AR=$ac_cv_prog_AR
6470if test -n "$AR"; then
6471  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6472$as_echo "$AR" >&6; }
6473else
6474  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6475$as_echo "no" >&6; }
6476fi
6477
6478
6479    test -n "$AR" && break
6480  done
6481fi
6482if test -z "$AR"; then
6483  ac_ct_AR=$AR
6484  for ac_prog in ar
6485do
6486  # Extract the first word of "$ac_prog", so it can be a program name with args.
6487set dummy $ac_prog; ac_word=$2
6488{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6489$as_echo_n "checking for $ac_word... " >&6; }
6490if ${ac_cv_prog_ac_ct_AR+:} false; then :
6491  $as_echo_n "(cached) " >&6
6492else
6493  if test -n "$ac_ct_AR"; then
6494  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6495else
6496as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6497for as_dir in $PATH
6498do
6499  IFS=$as_save_IFS
6500  test -z "$as_dir" && as_dir=.
6501    for ac_exec_ext in '' $ac_executable_extensions; do
6502  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6503    ac_cv_prog_ac_ct_AR="$ac_prog"
6504    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6505    break 2
6506  fi
6507done
6508  done
6509IFS=$as_save_IFS
6510
6511fi
6512fi
6513ac_ct_AR=$ac_cv_prog_ac_ct_AR
6514if test -n "$ac_ct_AR"; then
6515  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6516$as_echo "$ac_ct_AR" >&6; }
6517else
6518  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6519$as_echo "no" >&6; }
6520fi
6521
6522
6523  test -n "$ac_ct_AR" && break
6524done
6525
6526  if test "x$ac_ct_AR" = x; then
6527    AR="false"
6528  else
6529    case $cross_compiling:$ac_tool_warned in
6530yes:)
6531{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6532$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6533ac_tool_warned=yes ;;
6534esac
6535    AR=$ac_ct_AR
6536  fi
6537fi
6538
6539: ${AR=ar}
6540: ${AR_FLAGS=cru}
6541
6542
6543
6544
6545
6546
6547
6548
6549
6550
6551
6552{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
6553$as_echo_n "checking for archiver @FILE support... " >&6; }
6554if ${lt_cv_ar_at_file+:} false; then :
6555  $as_echo_n "(cached) " >&6
6556else
6557  lt_cv_ar_at_file=no
6558   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6559/* end confdefs.h.  */
6560
6561int
6562main ()
6563{
6564
6565  ;
6566  return 0;
6567}
6568_ACEOF
6569if ac_fn_c_try_compile "$LINENO"; then :
6570  echo conftest.$ac_objext > conftest.lst
6571      lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
6572      { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6573  (eval $lt_ar_try) 2>&5
6574  ac_status=$?
6575  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6576  test $ac_status = 0; }
6577      if test 0 -eq "$ac_status"; then
6578	# Ensure the archiver fails upon bogus file names.
6579	rm -f conftest.$ac_objext libconftest.a
6580	{ { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6581  (eval $lt_ar_try) 2>&5
6582  ac_status=$?
6583  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6584  test $ac_status = 0; }
6585	if test 0 -ne "$ac_status"; then
6586          lt_cv_ar_at_file=@
6587        fi
6588      fi
6589      rm -f conftest.* libconftest.a
6590
6591fi
6592rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6593
6594fi
6595{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
6596$as_echo "$lt_cv_ar_at_file" >&6; }
6597
6598if test no = "$lt_cv_ar_at_file"; then
6599  archiver_list_spec=
6600else
6601  archiver_list_spec=$lt_cv_ar_at_file
6602fi
6603
6604
6605
6606
6607
6608
6609
6610if test -n "$ac_tool_prefix"; then
6611  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6612set dummy ${ac_tool_prefix}strip; ac_word=$2
6613{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6614$as_echo_n "checking for $ac_word... " >&6; }
6615if ${ac_cv_prog_STRIP+:} false; then :
6616  $as_echo_n "(cached) " >&6
6617else
6618  if test -n "$STRIP"; then
6619  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6620else
6621as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6622for as_dir in $PATH
6623do
6624  IFS=$as_save_IFS
6625  test -z "$as_dir" && as_dir=.
6626    for ac_exec_ext in '' $ac_executable_extensions; do
6627  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6628    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6629    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6630    break 2
6631  fi
6632done
6633  done
6634IFS=$as_save_IFS
6635
6636fi
6637fi
6638STRIP=$ac_cv_prog_STRIP
6639if test -n "$STRIP"; then
6640  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6641$as_echo "$STRIP" >&6; }
6642else
6643  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6644$as_echo "no" >&6; }
6645fi
6646
6647
6648fi
6649if test -z "$ac_cv_prog_STRIP"; then
6650  ac_ct_STRIP=$STRIP
6651  # Extract the first word of "strip", so it can be a program name with args.
6652set dummy strip; ac_word=$2
6653{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6654$as_echo_n "checking for $ac_word... " >&6; }
6655if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
6656  $as_echo_n "(cached) " >&6
6657else
6658  if test -n "$ac_ct_STRIP"; then
6659  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6660else
6661as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6662for as_dir in $PATH
6663do
6664  IFS=$as_save_IFS
6665  test -z "$as_dir" && as_dir=.
6666    for ac_exec_ext in '' $ac_executable_extensions; do
6667  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6668    ac_cv_prog_ac_ct_STRIP="strip"
6669    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6670    break 2
6671  fi
6672done
6673  done
6674IFS=$as_save_IFS
6675
6676fi
6677fi
6678ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6679if test -n "$ac_ct_STRIP"; then
6680  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6681$as_echo "$ac_ct_STRIP" >&6; }
6682else
6683  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6684$as_echo "no" >&6; }
6685fi
6686
6687  if test "x$ac_ct_STRIP" = x; then
6688    STRIP=":"
6689  else
6690    case $cross_compiling:$ac_tool_warned in
6691yes:)
6692{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6693$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6694ac_tool_warned=yes ;;
6695esac
6696    STRIP=$ac_ct_STRIP
6697  fi
6698else
6699  STRIP="$ac_cv_prog_STRIP"
6700fi
6701
6702test -z "$STRIP" && STRIP=:
6703
6704
6705
6706
6707
6708
6709if test -n "$ac_tool_prefix"; then
6710  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6711set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6712{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6713$as_echo_n "checking for $ac_word... " >&6; }
6714if ${ac_cv_prog_RANLIB+:} false; then :
6715  $as_echo_n "(cached) " >&6
6716else
6717  if test -n "$RANLIB"; then
6718  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6719else
6720as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6721for as_dir in $PATH
6722do
6723  IFS=$as_save_IFS
6724  test -z "$as_dir" && as_dir=.
6725    for ac_exec_ext in '' $ac_executable_extensions; do
6726  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6727    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6728    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6729    break 2
6730  fi
6731done
6732  done
6733IFS=$as_save_IFS
6734
6735fi
6736fi
6737RANLIB=$ac_cv_prog_RANLIB
6738if test -n "$RANLIB"; then
6739  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6740$as_echo "$RANLIB" >&6; }
6741else
6742  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6743$as_echo "no" >&6; }
6744fi
6745
6746
6747fi
6748if test -z "$ac_cv_prog_RANLIB"; then
6749  ac_ct_RANLIB=$RANLIB
6750  # Extract the first word of "ranlib", so it can be a program name with args.
6751set dummy ranlib; ac_word=$2
6752{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6753$as_echo_n "checking for $ac_word... " >&6; }
6754if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
6755  $as_echo_n "(cached) " >&6
6756else
6757  if test -n "$ac_ct_RANLIB"; then
6758  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6759else
6760as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6761for as_dir in $PATH
6762do
6763  IFS=$as_save_IFS
6764  test -z "$as_dir" && as_dir=.
6765    for ac_exec_ext in '' $ac_executable_extensions; do
6766  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6767    ac_cv_prog_ac_ct_RANLIB="ranlib"
6768    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6769    break 2
6770  fi
6771done
6772  done
6773IFS=$as_save_IFS
6774
6775fi
6776fi
6777ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6778if test -n "$ac_ct_RANLIB"; then
6779  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6780$as_echo "$ac_ct_RANLIB" >&6; }
6781else
6782  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6783$as_echo "no" >&6; }
6784fi
6785
6786  if test "x$ac_ct_RANLIB" = x; then
6787    RANLIB=":"
6788  else
6789    case $cross_compiling:$ac_tool_warned in
6790yes:)
6791{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6792$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6793ac_tool_warned=yes ;;
6794esac
6795    RANLIB=$ac_ct_RANLIB
6796  fi
6797else
6798  RANLIB="$ac_cv_prog_RANLIB"
6799fi
6800
6801test -z "$RANLIB" && RANLIB=:
6802
6803
6804
6805
6806
6807
6808# Determine commands to create old-style static archives.
6809old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6810old_postinstall_cmds='chmod 644 $oldlib'
6811old_postuninstall_cmds=
6812
6813if test -n "$RANLIB"; then
6814  case $host_os in
6815  bitrig* | openbsd*)
6816    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
6817    ;;
6818  *)
6819    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
6820    ;;
6821  esac
6822  old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
6823fi
6824
6825case $host_os in
6826  darwin*)
6827    lock_old_archive_extraction=yes ;;
6828  *)
6829    lock_old_archive_extraction=no ;;
6830esac
6831
6832
6833
6834
6835
6836
6837
6838
6839
6840
6841
6842
6843
6844
6845
6846
6847
6848
6849
6850
6851
6852
6853
6854
6855
6856
6857
6858
6859
6860
6861
6862
6863
6864
6865
6866
6867
6868
6869
6870# If no C compiler was specified, use CC.
6871LTCC=${LTCC-"$CC"}
6872
6873# If no C compiler flags were specified, use CFLAGS.
6874LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6875
6876# Allow CC to be a program name with arguments.
6877compiler=$CC
6878
6879
6880# Check for command to grab the raw symbol name followed by C symbol from nm.
6881{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6882$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6883if ${lt_cv_sys_global_symbol_pipe+:} false; then :
6884  $as_echo_n "(cached) " >&6
6885else
6886
6887# These are sane defaults that work on at least a few old systems.
6888# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
6889
6890# Character class describing NM global symbol codes.
6891symcode='[BCDEGRST]'
6892
6893# Regexp to match symbols that can be accessed directly from C.
6894sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6895
6896# Define system-specific variables.
6897case $host_os in
6898aix*)
6899  symcode='[BCDT]'
6900  ;;
6901cygwin* | mingw* | pw32* | cegcc*)
6902  symcode='[ABCDGISTW]'
6903  ;;
6904hpux*)
6905  if test ia64 = "$host_cpu"; then
6906    symcode='[ABCDEGRST]'
6907  fi
6908  ;;
6909irix* | nonstopux*)
6910  symcode='[BCDEGRST]'
6911  ;;
6912osf*)
6913  symcode='[BCDEGQRST]'
6914  ;;
6915solaris*)
6916  symcode='[BDRT]'
6917  ;;
6918sco3.2v5*)
6919  symcode='[DT]'
6920  ;;
6921sysv4.2uw2*)
6922  symcode='[DT]'
6923  ;;
6924sysv5* | sco5v6* | unixware* | OpenUNIX*)
6925  symcode='[ABDT]'
6926  ;;
6927sysv4)
6928  symcode='[DFNSTU]'
6929  ;;
6930esac
6931
6932# If we're using GNU nm, then use its standard symbol codes.
6933case `$NM -V 2>&1` in
6934*GNU* | *'with BFD'*)
6935  symcode='[ABCDGIRSTW]' ;;
6936esac
6937
6938if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6939  # Gets list of data symbols to import.
6940  lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'"
6941  # Adjust the below global symbol transforms to fixup imported variables.
6942  lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
6943  lt_c_name_hook=" -e 's/^I .* \(.*\)$/  {\"\1\", (void *) 0},/p'"
6944  lt_c_name_lib_hook="\
6945  -e 's/^I .* \(lib.*\)$/  {\"\1\", (void *) 0},/p'\
6946  -e 's/^I .* \(.*\)$/  {\"lib\1\", (void *) 0},/p'"
6947else
6948  # Disable hooks by default.
6949  lt_cv_sys_global_symbol_to_import=
6950  lt_cdecl_hook=
6951  lt_c_name_hook=
6952  lt_c_name_lib_hook=
6953fi
6954
6955# Transform an extracted symbol line into a proper C declaration.
6956# Some systems (esp. on ia64) link data and code symbols differently,
6957# so use this general approach.
6958lt_cv_sys_global_symbol_to_cdecl="sed -n"\
6959$lt_cdecl_hook\
6960" -e 's/^T .* \(.*\)$/extern int \1();/p'"\
6961" -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
6962
6963# Transform an extracted symbol line into symbol name and symbol address
6964lt_cv_sys_global_symbol_to_c_name_address="sed -n"\
6965$lt_c_name_hook\
6966" -e 's/^: \(.*\) .*$/  {\"\1\", (void *) 0},/p'"\
6967" -e 's/^$symcode$symcode* .* \(.*\)$/  {\"\1\", (void *) \&\1},/p'"
6968
6969# Transform an extracted symbol line into symbol name with lib prefix and
6970# symbol address.
6971lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\
6972$lt_c_name_lib_hook\
6973" -e 's/^: \(.*\) .*$/  {\"\1\", (void *) 0},/p'"\
6974" -e 's/^$symcode$symcode* .* \(lib.*\)$/  {\"\1\", (void *) \&\1},/p'"\
6975" -e 's/^$symcode$symcode* .* \(.*\)$/  {\"lib\1\", (void *) \&\1},/p'"
6976
6977# Handle CRLF in mingw tool chain
6978opt_cr=
6979case $build_os in
6980mingw*)
6981  opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6982  ;;
6983esac
6984
6985# Try without a prefix underscore, then with it.
6986for ac_symprfx in "" "_"; do
6987
6988  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6989  symxfrm="\\1 $ac_symprfx\\2 \\2"
6990
6991  # Write the raw and C identifiers.
6992  if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6993    # Fake it for dumpbin and say T for any non-static function,
6994    # D for any global variable and I for any imported variable.
6995    # Also find C++ and __fastcall symbols from MSVC++,
6996    # which start with @ or ?.
6997    lt_cv_sys_global_symbol_pipe="$AWK '"\
6998"     {last_section=section; section=\$ 3};"\
6999"     /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
7000"     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
7001"     /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
7002"     /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
7003"     /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
7004"     \$ 0!~/External *\|/{next};"\
7005"     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
7006"     {if(hide[section]) next};"\
7007"     {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
7008"     {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
7009"     s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
7010"     s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
7011"     ' prfx=^$ac_symprfx"
7012  else
7013    lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[	 ]\($symcode$symcode*\)[	 ][	 ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7014  fi
7015  lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
7016
7017  # Check to see that the pipe works correctly.
7018  pipe_works=no
7019
7020  rm -f conftest*
7021  cat > conftest.$ac_ext <<_LT_EOF
7022#ifdef __cplusplus
7023extern "C" {
7024#endif
7025char nm_test_var;
7026void nm_test_func(void);
7027void nm_test_func(void){}
7028#ifdef __cplusplus
7029}
7030#endif
7031int main(){nm_test_var='a';nm_test_func();return(0);}
7032_LT_EOF
7033
7034  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7035  (eval $ac_compile) 2>&5
7036  ac_status=$?
7037  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7038  test $ac_status = 0; }; then
7039    # Now try to grab the symbols.
7040    nlist=conftest.nm
7041    if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
7042  (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
7043  ac_status=$?
7044  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7045  test $ac_status = 0; } && test -s "$nlist"; then
7046      # Try sorting and uniquifying the output.
7047      if sort "$nlist" | uniq > "$nlist"T; then
7048	mv -f "$nlist"T "$nlist"
7049      else
7050	rm -f "$nlist"T
7051      fi
7052
7053      # Make sure that we snagged all the symbols we need.
7054      if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
7055	if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
7056	  cat <<_LT_EOF > conftest.$ac_ext
7057/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests.  */
7058#if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
7059/* DATA imports from DLLs on WIN32 can't be const, because runtime
7060   relocations are performed -- see ld's documentation on pseudo-relocs.  */
7061# define LT_DLSYM_CONST
7062#elif defined __osf__
7063/* This system does not cope well with relocations in const data.  */
7064# define LT_DLSYM_CONST
7065#else
7066# define LT_DLSYM_CONST const
7067#endif
7068
7069#ifdef __cplusplus
7070extern "C" {
7071#endif
7072
7073_LT_EOF
7074	  # Now generate the symbol file.
7075	  eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
7076
7077	  cat <<_LT_EOF >> conftest.$ac_ext
7078
7079/* The mapping between symbol names and symbols.  */
7080LT_DLSYM_CONST struct {
7081  const char *name;
7082  void       *address;
7083}
7084lt__PROGRAM__LTX_preloaded_symbols[] =
7085{
7086  { "@PROGRAM@", (void *) 0 },
7087_LT_EOF
7088	  $SED "s/^$symcode$symcode* .* \(.*\)$/  {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
7089	  cat <<\_LT_EOF >> conftest.$ac_ext
7090  {0, (void *) 0}
7091};
7092
7093/* This works around a problem in FreeBSD linker */
7094#ifdef FREEBSD_WORKAROUND
7095static const void *lt_preloaded_setup() {
7096  return lt__PROGRAM__LTX_preloaded_symbols;
7097}
7098#endif
7099
7100#ifdef __cplusplus
7101}
7102#endif
7103_LT_EOF
7104	  # Now try linking the two files.
7105	  mv conftest.$ac_objext conftstm.$ac_objext
7106	  lt_globsym_save_LIBS=$LIBS
7107	  lt_globsym_save_CFLAGS=$CFLAGS
7108	  LIBS=conftstm.$ac_objext
7109	  CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7110	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
7111  (eval $ac_link) 2>&5
7112  ac_status=$?
7113  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7114  test $ac_status = 0; } && test -s conftest$ac_exeext; then
7115	    pipe_works=yes
7116	  fi
7117	  LIBS=$lt_globsym_save_LIBS
7118	  CFLAGS=$lt_globsym_save_CFLAGS
7119	else
7120	  echo "cannot find nm_test_func in $nlist" >&5
7121	fi
7122      else
7123	echo "cannot find nm_test_var in $nlist" >&5
7124      fi
7125    else
7126      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7127    fi
7128  else
7129    echo "$progname: failed program was:" >&5
7130    cat conftest.$ac_ext >&5
7131  fi
7132  rm -rf conftest* conftst*
7133
7134  # Do not use the global_symbol_pipe unless it works.
7135  if test yes = "$pipe_works"; then
7136    break
7137  else
7138    lt_cv_sys_global_symbol_pipe=
7139  fi
7140done
7141
7142fi
7143
7144if test -z "$lt_cv_sys_global_symbol_pipe"; then
7145  lt_cv_sys_global_symbol_to_cdecl=
7146fi
7147if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7148  { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
7149$as_echo "failed" >&6; }
7150else
7151  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
7152$as_echo "ok" >&6; }
7153fi
7154
7155# Response file support.
7156if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7157  nm_file_list_spec='@'
7158elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
7159  nm_file_list_spec='@'
7160fi
7161
7162
7163
7164
7165
7166
7167
7168
7169
7170
7171
7172
7173
7174
7175
7176
7177
7178
7179
7180
7181
7182
7183
7184
7185
7186
7187
7188
7189
7190
7191
7192
7193
7194
7195
7196
7197
7198{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
7199$as_echo_n "checking for sysroot... " >&6; }
7200
7201# Check whether --with-sysroot was given.
7202if test "${with_sysroot+set}" = set; then :
7203  withval=$with_sysroot;
7204else
7205  with_sysroot=no
7206fi
7207
7208
7209lt_sysroot=
7210case $with_sysroot in #(
7211 yes)
7212   if test yes = "$GCC"; then
7213     lt_sysroot=`$CC --print-sysroot 2>/dev/null`
7214   fi
7215   ;; #(
7216 /*)
7217   lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
7218   ;; #(
7219 no|'')
7220   ;; #(
7221 *)
7222   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
7223$as_echo "$with_sysroot" >&6; }
7224   as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
7225   ;;
7226esac
7227
7228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
7229$as_echo "${lt_sysroot:-no}" >&6; }
7230
7231
7232
7233
7234
7235{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
7236$as_echo_n "checking for a working dd... " >&6; }
7237if ${ac_cv_path_lt_DD+:} false; then :
7238  $as_echo_n "(cached) " >&6
7239else
7240  printf 0123456789abcdef0123456789abcdef >conftest.i
7241cat conftest.i conftest.i >conftest2.i
7242: ${lt_DD:=$DD}
7243if test -z "$lt_DD"; then
7244  ac_path_lt_DD_found=false
7245  # Loop through the user's path and test for each of PROGNAME-LIST
7246  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7247for as_dir in $PATH
7248do
7249  IFS=$as_save_IFS
7250  test -z "$as_dir" && as_dir=.
7251    for ac_prog in dd; do
7252    for ac_exec_ext in '' $ac_executable_extensions; do
7253      ac_path_lt_DD="$as_dir/$ac_prog$ac_exec_ext"
7254      as_fn_executable_p "$ac_path_lt_DD" || continue
7255if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
7256  cmp -s conftest.i conftest.out \
7257  && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
7258fi
7259      $ac_path_lt_DD_found && break 3
7260    done
7261  done
7262  done
7263IFS=$as_save_IFS
7264  if test -z "$ac_cv_path_lt_DD"; then
7265    :
7266  fi
7267else
7268  ac_cv_path_lt_DD=$lt_DD
7269fi
7270
7271rm -f conftest.i conftest2.i conftest.out
7272fi
7273{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
7274$as_echo "$ac_cv_path_lt_DD" >&6; }
7275
7276
7277{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
7278$as_echo_n "checking how to truncate binary pipes... " >&6; }
7279if ${lt_cv_truncate_bin+:} false; then :
7280  $as_echo_n "(cached) " >&6
7281else
7282  printf 0123456789abcdef0123456789abcdef >conftest.i
7283cat conftest.i conftest.i >conftest2.i
7284lt_cv_truncate_bin=
7285if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
7286  cmp -s conftest.i conftest.out \
7287  && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
7288fi
7289rm -f conftest.i conftest2.i conftest.out
7290test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q"
7291fi
7292{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
7293$as_echo "$lt_cv_truncate_bin" >&6; }
7294
7295
7296
7297
7298
7299
7300
7301# Calculate cc_basename.  Skip known compiler wrappers and cross-prefix.
7302func_cc_basename ()
7303{
7304    for cc_temp in $*""; do
7305      case $cc_temp in
7306        compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7307        distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7308        \-*) ;;
7309        *) break;;
7310      esac
7311    done
7312    func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
7313}
7314
7315# Check whether --enable-libtool-lock was given.
7316if test "${enable_libtool_lock+set}" = set; then :
7317  enableval=$enable_libtool_lock;
7318fi
7319
7320test no = "$enable_libtool_lock" || enable_libtool_lock=yes
7321
7322# Some flags need to be propagated to the compiler or linker for good
7323# libtool support.
7324case $host in
7325ia64-*-hpux*)
7326  # Find out what ABI is being produced by ac_compile, and set mode
7327  # options accordingly.
7328  echo 'int i;' > conftest.$ac_ext
7329  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7330  (eval $ac_compile) 2>&5
7331  ac_status=$?
7332  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7333  test $ac_status = 0; }; then
7334    case `/usr/bin/file conftest.$ac_objext` in
7335      *ELF-32*)
7336	HPUX_IA64_MODE=32
7337	;;
7338      *ELF-64*)
7339	HPUX_IA64_MODE=64
7340	;;
7341    esac
7342  fi
7343  rm -rf conftest*
7344  ;;
7345*-*-irix6*)
7346  # Find out what ABI is being produced by ac_compile, and set linker
7347  # options accordingly.
7348  echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7349  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7350  (eval $ac_compile) 2>&5
7351  ac_status=$?
7352  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7353  test $ac_status = 0; }; then
7354    if test yes = "$lt_cv_prog_gnu_ld"; then
7355      case `/usr/bin/file conftest.$ac_objext` in
7356	*32-bit*)
7357	  LD="${LD-ld} -melf32bsmip"
7358	  ;;
7359	*N32*)
7360	  LD="${LD-ld} -melf32bmipn32"
7361	  ;;
7362	*64-bit*)
7363	  LD="${LD-ld} -melf64bmip"
7364	;;
7365      esac
7366    else
7367      case `/usr/bin/file conftest.$ac_objext` in
7368	*32-bit*)
7369	  LD="${LD-ld} -32"
7370	  ;;
7371	*N32*)
7372	  LD="${LD-ld} -n32"
7373	  ;;
7374	*64-bit*)
7375	  LD="${LD-ld} -64"
7376	  ;;
7377      esac
7378    fi
7379  fi
7380  rm -rf conftest*
7381  ;;
7382
7383mips64*-*linux*)
7384  # Find out what ABI is being produced by ac_compile, and set linker
7385  # options accordingly.
7386  echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7387  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7388  (eval $ac_compile) 2>&5
7389  ac_status=$?
7390  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7391  test $ac_status = 0; }; then
7392    emul=elf
7393    case `/usr/bin/file conftest.$ac_objext` in
7394      *32-bit*)
7395	emul="${emul}32"
7396	;;
7397      *64-bit*)
7398	emul="${emul}64"
7399	;;
7400    esac
7401    case `/usr/bin/file conftest.$ac_objext` in
7402      *MSB*)
7403	emul="${emul}btsmip"
7404	;;
7405      *LSB*)
7406	emul="${emul}ltsmip"
7407	;;
7408    esac
7409    case `/usr/bin/file conftest.$ac_objext` in
7410      *N32*)
7411	emul="${emul}n32"
7412	;;
7413    esac
7414    LD="${LD-ld} -m $emul"
7415  fi
7416  rm -rf conftest*
7417  ;;
7418
7419x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
7420s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
7421  # Find out what ABI is being produced by ac_compile, and set linker
7422  # options accordingly.  Note that the listed cases only cover the
7423  # situations where additional linker options are needed (such as when
7424  # doing 32-bit compilation for a host where ld defaults to 64-bit, or
7425  # vice versa); the common cases where no linker options are needed do
7426  # not appear in the list.
7427  echo 'int i;' > conftest.$ac_ext
7428  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7429  (eval $ac_compile) 2>&5
7430  ac_status=$?
7431  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7432  test $ac_status = 0; }; then
7433    case `/usr/bin/file conftest.o` in
7434      *32-bit*)
7435	case $host in
7436	  x86_64-*kfreebsd*-gnu)
7437	    LD="${LD-ld} -m elf_i386_fbsd"
7438	    ;;
7439	  x86_64-*linux*)
7440	    case `/usr/bin/file conftest.o` in
7441	      *x86-64*)
7442		LD="${LD-ld} -m elf32_x86_64"
7443		;;
7444	      *)
7445		LD="${LD-ld} -m elf_i386"
7446		;;
7447	    esac
7448	    ;;
7449	  powerpc64le-*linux*)
7450	    LD="${LD-ld} -m elf32lppclinux"
7451	    ;;
7452	  powerpc64-*linux*)
7453	    LD="${LD-ld} -m elf32ppclinux"
7454	    ;;
7455	  s390x-*linux*)
7456	    LD="${LD-ld} -m elf_s390"
7457	    ;;
7458	  sparc64-*linux*)
7459	    LD="${LD-ld} -m elf32_sparc"
7460	    ;;
7461	esac
7462	;;
7463      *64-bit*)
7464	case $host in
7465	  x86_64-*kfreebsd*-gnu)
7466	    LD="${LD-ld} -m elf_x86_64_fbsd"
7467	    ;;
7468	  x86_64-*linux*)
7469	    LD="${LD-ld} -m elf_x86_64"
7470	    ;;
7471	  powerpcle-*linux*)
7472	    LD="${LD-ld} -m elf64lppc"
7473	    ;;
7474	  powerpc-*linux*)
7475	    LD="${LD-ld} -m elf64ppc"
7476	    ;;
7477	  s390*-*linux*|s390*-*tpf*)
7478	    LD="${LD-ld} -m elf64_s390"
7479	    ;;
7480	  sparc*-*linux*)
7481	    LD="${LD-ld} -m elf64_sparc"
7482	    ;;
7483	esac
7484	;;
7485    esac
7486  fi
7487  rm -rf conftest*
7488  ;;
7489
7490*-*-sco3.2v5*)
7491  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7492  SAVE_CFLAGS=$CFLAGS
7493  CFLAGS="$CFLAGS -belf"
7494  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
7495$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
7496if ${lt_cv_cc_needs_belf+:} false; then :
7497  $as_echo_n "(cached) " >&6
7498else
7499  ac_ext=c
7500ac_cpp='$CPP $CPPFLAGS'
7501ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7502ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7503ac_compiler_gnu=$ac_cv_c_compiler_gnu
7504
7505     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7506/* end confdefs.h.  */
7507
7508int
7509main ()
7510{
7511
7512  ;
7513  return 0;
7514}
7515_ACEOF
7516if ac_fn_c_try_link "$LINENO"; then :
7517  lt_cv_cc_needs_belf=yes
7518else
7519  lt_cv_cc_needs_belf=no
7520fi
7521rm -f core conftest.err conftest.$ac_objext \
7522    conftest$ac_exeext conftest.$ac_ext
7523     ac_ext=c
7524ac_cpp='$CPP $CPPFLAGS'
7525ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7526ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7527ac_compiler_gnu=$ac_cv_c_compiler_gnu
7528
7529fi
7530{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
7531$as_echo "$lt_cv_cc_needs_belf" >&6; }
7532  if test yes != "$lt_cv_cc_needs_belf"; then
7533    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7534    CFLAGS=$SAVE_CFLAGS
7535  fi
7536  ;;
7537*-*solaris*)
7538  # Find out what ABI is being produced by ac_compile, and set linker
7539  # options accordingly.
7540  echo 'int i;' > conftest.$ac_ext
7541  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7542  (eval $ac_compile) 2>&5
7543  ac_status=$?
7544  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7545  test $ac_status = 0; }; then
7546    case `/usr/bin/file conftest.o` in
7547    *64-bit*)
7548      case $lt_cv_prog_gnu_ld in
7549      yes*)
7550        case $host in
7551        i?86-*-solaris*|x86_64-*-solaris*)
7552          LD="${LD-ld} -m elf_x86_64"
7553          ;;
7554        sparc*-*-solaris*)
7555          LD="${LD-ld} -m elf64_sparc"
7556          ;;
7557        esac
7558        # GNU ld 2.21 introduced _sol2 emulations.  Use them if available.
7559        if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
7560          LD=${LD-ld}_sol2
7561        fi
7562        ;;
7563      *)
7564	if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7565	  LD="${LD-ld} -64"
7566	fi
7567	;;
7568      esac
7569      ;;
7570    esac
7571  fi
7572  rm -rf conftest*
7573  ;;
7574esac
7575
7576need_locks=$enable_libtool_lock
7577
7578if test -n "$ac_tool_prefix"; then
7579  # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
7580set dummy ${ac_tool_prefix}mt; ac_word=$2
7581{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7582$as_echo_n "checking for $ac_word... " >&6; }
7583if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
7584  $as_echo_n "(cached) " >&6
7585else
7586  if test -n "$MANIFEST_TOOL"; then
7587  ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
7588else
7589as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7590for as_dir in $PATH
7591do
7592  IFS=$as_save_IFS
7593  test -z "$as_dir" && as_dir=.
7594    for ac_exec_ext in '' $ac_executable_extensions; do
7595  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7596    ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
7597    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7598    break 2
7599  fi
7600done
7601  done
7602IFS=$as_save_IFS
7603
7604fi
7605fi
7606MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
7607if test -n "$MANIFEST_TOOL"; then
7608  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
7609$as_echo "$MANIFEST_TOOL" >&6; }
7610else
7611  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7612$as_echo "no" >&6; }
7613fi
7614
7615
7616fi
7617if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
7618  ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
7619  # Extract the first word of "mt", so it can be a program name with args.
7620set dummy mt; ac_word=$2
7621{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7622$as_echo_n "checking for $ac_word... " >&6; }
7623if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
7624  $as_echo_n "(cached) " >&6
7625else
7626  if test -n "$ac_ct_MANIFEST_TOOL"; then
7627  ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
7628else
7629as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7630for as_dir in $PATH
7631do
7632  IFS=$as_save_IFS
7633  test -z "$as_dir" && as_dir=.
7634    for ac_exec_ext in '' $ac_executable_extensions; do
7635  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7636    ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
7637    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7638    break 2
7639  fi
7640done
7641  done
7642IFS=$as_save_IFS
7643
7644fi
7645fi
7646ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
7647if test -n "$ac_ct_MANIFEST_TOOL"; then
7648  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
7649$as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
7650else
7651  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7652$as_echo "no" >&6; }
7653fi
7654
7655  if test "x$ac_ct_MANIFEST_TOOL" = x; then
7656    MANIFEST_TOOL=":"
7657  else
7658    case $cross_compiling:$ac_tool_warned in
7659yes:)
7660{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7661$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7662ac_tool_warned=yes ;;
7663esac
7664    MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
7665  fi
7666else
7667  MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
7668fi
7669
7670test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
7671{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
7672$as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
7673if ${lt_cv_path_mainfest_tool+:} false; then :
7674  $as_echo_n "(cached) " >&6
7675else
7676  lt_cv_path_mainfest_tool=no
7677  echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
7678  $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
7679  cat conftest.err >&5
7680  if $GREP 'Manifest Tool' conftest.out > /dev/null; then
7681    lt_cv_path_mainfest_tool=yes
7682  fi
7683  rm -f conftest*
7684fi
7685{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
7686$as_echo "$lt_cv_path_mainfest_tool" >&6; }
7687if test yes != "$lt_cv_path_mainfest_tool"; then
7688  MANIFEST_TOOL=:
7689fi
7690
7691
7692
7693
7694
7695
7696  case $host_os in
7697    rhapsody* | darwin*)
7698    if test -n "$ac_tool_prefix"; then
7699  # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7700set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7701{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7702$as_echo_n "checking for $ac_word... " >&6; }
7703if ${ac_cv_prog_DSYMUTIL+:} false; then :
7704  $as_echo_n "(cached) " >&6
7705else
7706  if test -n "$DSYMUTIL"; then
7707  ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7708else
7709as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7710for as_dir in $PATH
7711do
7712  IFS=$as_save_IFS
7713  test -z "$as_dir" && as_dir=.
7714    for ac_exec_ext in '' $ac_executable_extensions; do
7715  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7716    ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7717    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7718    break 2
7719  fi
7720done
7721  done
7722IFS=$as_save_IFS
7723
7724fi
7725fi
7726DSYMUTIL=$ac_cv_prog_DSYMUTIL
7727if test -n "$DSYMUTIL"; then
7728  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7729$as_echo "$DSYMUTIL" >&6; }
7730else
7731  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7732$as_echo "no" >&6; }
7733fi
7734
7735
7736fi
7737if test -z "$ac_cv_prog_DSYMUTIL"; then
7738  ac_ct_DSYMUTIL=$DSYMUTIL
7739  # Extract the first word of "dsymutil", so it can be a program name with args.
7740set dummy dsymutil; ac_word=$2
7741{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7742$as_echo_n "checking for $ac_word... " >&6; }
7743if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
7744  $as_echo_n "(cached) " >&6
7745else
7746  if test -n "$ac_ct_DSYMUTIL"; then
7747  ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7748else
7749as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7750for as_dir in $PATH
7751do
7752  IFS=$as_save_IFS
7753  test -z "$as_dir" && as_dir=.
7754    for ac_exec_ext in '' $ac_executable_extensions; do
7755  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7756    ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7757    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7758    break 2
7759  fi
7760done
7761  done
7762IFS=$as_save_IFS
7763
7764fi
7765fi
7766ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7767if test -n "$ac_ct_DSYMUTIL"; then
7768  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7769$as_echo "$ac_ct_DSYMUTIL" >&6; }
7770else
7771  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7772$as_echo "no" >&6; }
7773fi
7774
7775  if test "x$ac_ct_DSYMUTIL" = x; then
7776    DSYMUTIL=":"
7777  else
7778    case $cross_compiling:$ac_tool_warned in
7779yes:)
7780{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7781$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7782ac_tool_warned=yes ;;
7783esac
7784    DSYMUTIL=$ac_ct_DSYMUTIL
7785  fi
7786else
7787  DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7788fi
7789
7790    if test -n "$ac_tool_prefix"; then
7791  # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7792set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7793{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7794$as_echo_n "checking for $ac_word... " >&6; }
7795if ${ac_cv_prog_NMEDIT+:} false; then :
7796  $as_echo_n "(cached) " >&6
7797else
7798  if test -n "$NMEDIT"; then
7799  ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7800else
7801as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7802for as_dir in $PATH
7803do
7804  IFS=$as_save_IFS
7805  test -z "$as_dir" && as_dir=.
7806    for ac_exec_ext in '' $ac_executable_extensions; do
7807  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7808    ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7809    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7810    break 2
7811  fi
7812done
7813  done
7814IFS=$as_save_IFS
7815
7816fi
7817fi
7818NMEDIT=$ac_cv_prog_NMEDIT
7819if test -n "$NMEDIT"; then
7820  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7821$as_echo "$NMEDIT" >&6; }
7822else
7823  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7824$as_echo "no" >&6; }
7825fi
7826
7827
7828fi
7829if test -z "$ac_cv_prog_NMEDIT"; then
7830  ac_ct_NMEDIT=$NMEDIT
7831  # Extract the first word of "nmedit", so it can be a program name with args.
7832set dummy nmedit; ac_word=$2
7833{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7834$as_echo_n "checking for $ac_word... " >&6; }
7835if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
7836  $as_echo_n "(cached) " >&6
7837else
7838  if test -n "$ac_ct_NMEDIT"; then
7839  ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7840else
7841as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7842for as_dir in $PATH
7843do
7844  IFS=$as_save_IFS
7845  test -z "$as_dir" && as_dir=.
7846    for ac_exec_ext in '' $ac_executable_extensions; do
7847  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7848    ac_cv_prog_ac_ct_NMEDIT="nmedit"
7849    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7850    break 2
7851  fi
7852done
7853  done
7854IFS=$as_save_IFS
7855
7856fi
7857fi
7858ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7859if test -n "$ac_ct_NMEDIT"; then
7860  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7861$as_echo "$ac_ct_NMEDIT" >&6; }
7862else
7863  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7864$as_echo "no" >&6; }
7865fi
7866
7867  if test "x$ac_ct_NMEDIT" = x; then
7868    NMEDIT=":"
7869  else
7870    case $cross_compiling:$ac_tool_warned in
7871yes:)
7872{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7873$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7874ac_tool_warned=yes ;;
7875esac
7876    NMEDIT=$ac_ct_NMEDIT
7877  fi
7878else
7879  NMEDIT="$ac_cv_prog_NMEDIT"
7880fi
7881
7882    if test -n "$ac_tool_prefix"; then
7883  # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7884set dummy ${ac_tool_prefix}lipo; ac_word=$2
7885{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7886$as_echo_n "checking for $ac_word... " >&6; }
7887if ${ac_cv_prog_LIPO+:} false; then :
7888  $as_echo_n "(cached) " >&6
7889else
7890  if test -n "$LIPO"; then
7891  ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7892else
7893as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7894for as_dir in $PATH
7895do
7896  IFS=$as_save_IFS
7897  test -z "$as_dir" && as_dir=.
7898    for ac_exec_ext in '' $ac_executable_extensions; do
7899  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7900    ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7901    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7902    break 2
7903  fi
7904done
7905  done
7906IFS=$as_save_IFS
7907
7908fi
7909fi
7910LIPO=$ac_cv_prog_LIPO
7911if test -n "$LIPO"; then
7912  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7913$as_echo "$LIPO" >&6; }
7914else
7915  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7916$as_echo "no" >&6; }
7917fi
7918
7919
7920fi
7921if test -z "$ac_cv_prog_LIPO"; then
7922  ac_ct_LIPO=$LIPO
7923  # Extract the first word of "lipo", so it can be a program name with args.
7924set dummy lipo; ac_word=$2
7925{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7926$as_echo_n "checking for $ac_word... " >&6; }
7927if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
7928  $as_echo_n "(cached) " >&6
7929else
7930  if test -n "$ac_ct_LIPO"; then
7931  ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7932else
7933as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7934for as_dir in $PATH
7935do
7936  IFS=$as_save_IFS
7937  test -z "$as_dir" && as_dir=.
7938    for ac_exec_ext in '' $ac_executable_extensions; do
7939  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7940    ac_cv_prog_ac_ct_LIPO="lipo"
7941    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7942    break 2
7943  fi
7944done
7945  done
7946IFS=$as_save_IFS
7947
7948fi
7949fi
7950ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7951if test -n "$ac_ct_LIPO"; then
7952  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7953$as_echo "$ac_ct_LIPO" >&6; }
7954else
7955  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7956$as_echo "no" >&6; }
7957fi
7958
7959  if test "x$ac_ct_LIPO" = x; then
7960    LIPO=":"
7961  else
7962    case $cross_compiling:$ac_tool_warned in
7963yes:)
7964{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7965$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7966ac_tool_warned=yes ;;
7967esac
7968    LIPO=$ac_ct_LIPO
7969  fi
7970else
7971  LIPO="$ac_cv_prog_LIPO"
7972fi
7973
7974    if test -n "$ac_tool_prefix"; then
7975  # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7976set dummy ${ac_tool_prefix}otool; ac_word=$2
7977{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7978$as_echo_n "checking for $ac_word... " >&6; }
7979if ${ac_cv_prog_OTOOL+:} false; then :
7980  $as_echo_n "(cached) " >&6
7981else
7982  if test -n "$OTOOL"; then
7983  ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7984else
7985as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7986for as_dir in $PATH
7987do
7988  IFS=$as_save_IFS
7989  test -z "$as_dir" && as_dir=.
7990    for ac_exec_ext in '' $ac_executable_extensions; do
7991  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7992    ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7993    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7994    break 2
7995  fi
7996done
7997  done
7998IFS=$as_save_IFS
7999
8000fi
8001fi
8002OTOOL=$ac_cv_prog_OTOOL
8003if test -n "$OTOOL"; then
8004  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
8005$as_echo "$OTOOL" >&6; }
8006else
8007  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8008$as_echo "no" >&6; }
8009fi
8010
8011
8012fi
8013if test -z "$ac_cv_prog_OTOOL"; then
8014  ac_ct_OTOOL=$OTOOL
8015  # Extract the first word of "otool", so it can be a program name with args.
8016set dummy otool; ac_word=$2
8017{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8018$as_echo_n "checking for $ac_word... " >&6; }
8019if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
8020  $as_echo_n "(cached) " >&6
8021else
8022  if test -n "$ac_ct_OTOOL"; then
8023  ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
8024else
8025as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8026for as_dir in $PATH
8027do
8028  IFS=$as_save_IFS
8029  test -z "$as_dir" && as_dir=.
8030    for ac_exec_ext in '' $ac_executable_extensions; do
8031  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8032    ac_cv_prog_ac_ct_OTOOL="otool"
8033    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8034    break 2
8035  fi
8036done
8037  done
8038IFS=$as_save_IFS
8039
8040fi
8041fi
8042ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
8043if test -n "$ac_ct_OTOOL"; then
8044  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
8045$as_echo "$ac_ct_OTOOL" >&6; }
8046else
8047  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8048$as_echo "no" >&6; }
8049fi
8050
8051  if test "x$ac_ct_OTOOL" = x; then
8052    OTOOL=":"
8053  else
8054    case $cross_compiling:$ac_tool_warned in
8055yes:)
8056{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8057$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8058ac_tool_warned=yes ;;
8059esac
8060    OTOOL=$ac_ct_OTOOL
8061  fi
8062else
8063  OTOOL="$ac_cv_prog_OTOOL"
8064fi
8065
8066    if test -n "$ac_tool_prefix"; then
8067  # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
8068set dummy ${ac_tool_prefix}otool64; ac_word=$2
8069{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8070$as_echo_n "checking for $ac_word... " >&6; }
8071if ${ac_cv_prog_OTOOL64+:} false; then :
8072  $as_echo_n "(cached) " >&6
8073else
8074  if test -n "$OTOOL64"; then
8075  ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
8076else
8077as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8078for as_dir in $PATH
8079do
8080  IFS=$as_save_IFS
8081  test -z "$as_dir" && as_dir=.
8082    for ac_exec_ext in '' $ac_executable_extensions; do
8083  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8084    ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
8085    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8086    break 2
8087  fi
8088done
8089  done
8090IFS=$as_save_IFS
8091
8092fi
8093fi
8094OTOOL64=$ac_cv_prog_OTOOL64
8095if test -n "$OTOOL64"; then
8096  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
8097$as_echo "$OTOOL64" >&6; }
8098else
8099  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8100$as_echo "no" >&6; }
8101fi
8102
8103
8104fi
8105if test -z "$ac_cv_prog_OTOOL64"; then
8106  ac_ct_OTOOL64=$OTOOL64
8107  # Extract the first word of "otool64", so it can be a program name with args.
8108set dummy otool64; ac_word=$2
8109{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8110$as_echo_n "checking for $ac_word... " >&6; }
8111if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
8112  $as_echo_n "(cached) " >&6
8113else
8114  if test -n "$ac_ct_OTOOL64"; then
8115  ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
8116else
8117as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8118for as_dir in $PATH
8119do
8120  IFS=$as_save_IFS
8121  test -z "$as_dir" && as_dir=.
8122    for ac_exec_ext in '' $ac_executable_extensions; do
8123  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8124    ac_cv_prog_ac_ct_OTOOL64="otool64"
8125    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8126    break 2
8127  fi
8128done
8129  done
8130IFS=$as_save_IFS
8131
8132fi
8133fi
8134ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
8135if test -n "$ac_ct_OTOOL64"; then
8136  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
8137$as_echo "$ac_ct_OTOOL64" >&6; }
8138else
8139  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8140$as_echo "no" >&6; }
8141fi
8142
8143  if test "x$ac_ct_OTOOL64" = x; then
8144    OTOOL64=":"
8145  else
8146    case $cross_compiling:$ac_tool_warned in
8147yes:)
8148{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8149$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8150ac_tool_warned=yes ;;
8151esac
8152    OTOOL64=$ac_ct_OTOOL64
8153  fi
8154else
8155  OTOOL64="$ac_cv_prog_OTOOL64"
8156fi
8157
8158
8159
8160
8161
8162
8163
8164
8165
8166
8167
8168
8169
8170
8171
8172
8173
8174
8175
8176
8177
8178
8179
8180
8181
8182
8183
8184    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
8185$as_echo_n "checking for -single_module linker flag... " >&6; }
8186if ${lt_cv_apple_cc_single_mod+:} false; then :
8187  $as_echo_n "(cached) " >&6
8188else
8189  lt_cv_apple_cc_single_mod=no
8190      if test -z "$LT_MULTI_MODULE"; then
8191	# By default we will add the -single_module flag. You can override
8192	# by either setting the environment variable LT_MULTI_MODULE
8193	# non-empty at configure time, or by adding -multi_module to the
8194	# link flags.
8195	rm -rf libconftest.dylib*
8196	echo "int foo(void){return 1;}" > conftest.c
8197	echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8198-dynamiclib -Wl,-single_module conftest.c" >&5
8199	$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8200	  -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
8201        _lt_result=$?
8202	# If there is a non-empty error log, and "single_module"
8203	# appears in it, assume the flag caused a linker warning
8204        if test -s conftest.err && $GREP single_module conftest.err; then
8205	  cat conftest.err >&5
8206	# Otherwise, if the output was created with a 0 exit code from
8207	# the compiler, it worked.
8208	elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
8209	  lt_cv_apple_cc_single_mod=yes
8210	else
8211	  cat conftest.err >&5
8212	fi
8213	rm -rf libconftest.dylib*
8214	rm -f conftest.*
8215      fi
8216fi
8217{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
8218$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
8219
8220    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
8221$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
8222if ${lt_cv_ld_exported_symbols_list+:} false; then :
8223  $as_echo_n "(cached) " >&6
8224else
8225  lt_cv_ld_exported_symbols_list=no
8226      save_LDFLAGS=$LDFLAGS
8227      echo "_main" > conftest.sym
8228      LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
8229      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8230/* end confdefs.h.  */
8231
8232int
8233main ()
8234{
8235
8236  ;
8237  return 0;
8238}
8239_ACEOF
8240if ac_fn_c_try_link "$LINENO"; then :
8241  lt_cv_ld_exported_symbols_list=yes
8242else
8243  lt_cv_ld_exported_symbols_list=no
8244fi
8245rm -f core conftest.err conftest.$ac_objext \
8246    conftest$ac_exeext conftest.$ac_ext
8247	LDFLAGS=$save_LDFLAGS
8248
8249fi
8250{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
8251$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
8252
8253    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
8254$as_echo_n "checking for -force_load linker flag... " >&6; }
8255if ${lt_cv_ld_force_load+:} false; then :
8256  $as_echo_n "(cached) " >&6
8257else
8258  lt_cv_ld_force_load=no
8259      cat > conftest.c << _LT_EOF
8260int forced_loaded() { return 2;}
8261_LT_EOF
8262      echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
8263      $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
8264      echo "$AR cru libconftest.a conftest.o" >&5
8265      $AR cru libconftest.a conftest.o 2>&5
8266      echo "$RANLIB libconftest.a" >&5
8267      $RANLIB libconftest.a 2>&5
8268      cat > conftest.c << _LT_EOF
8269int main() { return 0;}
8270_LT_EOF
8271      echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
8272      $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
8273      _lt_result=$?
8274      if test -s conftest.err && $GREP force_load conftest.err; then
8275	cat conftest.err >&5
8276      elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
8277	lt_cv_ld_force_load=yes
8278      else
8279	cat conftest.err >&5
8280      fi
8281        rm -f conftest.err libconftest.a conftest conftest.c
8282        rm -rf conftest.dSYM
8283
8284fi
8285{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
8286$as_echo "$lt_cv_ld_force_load" >&6; }
8287    case $host_os in
8288    rhapsody* | darwin1.[012])
8289      _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
8290    darwin1.*)
8291      _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
8292    darwin*) # darwin 5.x on
8293      # if running on 10.5 or later, the deployment target defaults
8294      # to the OS version, if on x86, and 10.4, the deployment
8295      # target defaults to 10.4. Don't you love it?
8296      case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
8297	10.0,*86*-darwin8*|10.0,*-darwin[91]*)
8298	  _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
8299	10.[012][,.]*)
8300	  _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
8301	10.*)
8302	  _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
8303      esac
8304    ;;
8305  esac
8306    if test yes = "$lt_cv_apple_cc_single_mod"; then
8307      _lt_dar_single_mod='$single_module'
8308    fi
8309    if test yes = "$lt_cv_ld_exported_symbols_list"; then
8310      _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
8311    else
8312      _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
8313    fi
8314    if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
8315      _lt_dsymutil='~$DSYMUTIL $lib || :'
8316    else
8317      _lt_dsymutil=
8318    fi
8319    ;;
8320  esac
8321
8322# func_munge_path_list VARIABLE PATH
8323# -----------------------------------
8324# VARIABLE is name of variable containing _space_ separated list of
8325# directories to be munged by the contents of PATH, which is string
8326# having a format:
8327# "DIR[:DIR]:"
8328#       string "DIR[ DIR]" will be prepended to VARIABLE
8329# ":DIR[:DIR]"
8330#       string "DIR[ DIR]" will be appended to VARIABLE
8331# "DIRP[:DIRP]::[DIRA:]DIRA"
8332#       string "DIRP[ DIRP]" will be prepended to VARIABLE and string
8333#       "DIRA[ DIRA]" will be appended to VARIABLE
8334# "DIR[:DIR]"
8335#       VARIABLE will be replaced by "DIR[ DIR]"
8336func_munge_path_list ()
8337{
8338    case x$2 in
8339    x)
8340        ;;
8341    *:)
8342        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
8343        ;;
8344    x:*)
8345        eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
8346        ;;
8347    *::*)
8348        eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
8349        eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
8350        ;;
8351    *)
8352        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
8353        ;;
8354    esac
8355}
8356
8357ac_ext=c
8358ac_cpp='$CPP $CPPFLAGS'
8359ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8360ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8361ac_compiler_gnu=$ac_cv_c_compiler_gnu
8362{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
8363$as_echo_n "checking how to run the C preprocessor... " >&6; }
8364# On Suns, sometimes $CPP names a directory.
8365if test -n "$CPP" && test -d "$CPP"; then
8366  CPP=
8367fi
8368if test -z "$CPP"; then
8369  if ${ac_cv_prog_CPP+:} false; then :
8370  $as_echo_n "(cached) " >&6
8371else
8372      # Double quotes because CPP needs to be expanded
8373    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
8374    do
8375      ac_preproc_ok=false
8376for ac_c_preproc_warn_flag in '' yes
8377do
8378  # Use a header file that comes with gcc, so configuring glibc
8379  # with a fresh cross-compiler works.
8380  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8381  # <limits.h> exists even on freestanding compilers.
8382  # On the NeXT, cc -E runs the code through the compiler's parser,
8383  # not just through cpp. "Syntax error" is here to catch this case.
8384  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8385/* end confdefs.h.  */
8386#ifdef __STDC__
8387# include <limits.h>
8388#else
8389# include <assert.h>
8390#endif
8391		     Syntax error
8392_ACEOF
8393if ac_fn_c_try_cpp "$LINENO"; then :
8394
8395else
8396  # Broken: fails on valid input.
8397continue
8398fi
8399rm -f conftest.err conftest.i conftest.$ac_ext
8400
8401  # OK, works on sane cases.  Now check whether nonexistent headers
8402  # can be detected and how.
8403  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8404/* end confdefs.h.  */
8405#include <ac_nonexistent.h>
8406_ACEOF
8407if ac_fn_c_try_cpp "$LINENO"; then :
8408  # Broken: success on invalid input.
8409continue
8410else
8411  # Passes both tests.
8412ac_preproc_ok=:
8413break
8414fi
8415rm -f conftest.err conftest.i conftest.$ac_ext
8416
8417done
8418# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8419rm -f conftest.i conftest.err conftest.$ac_ext
8420if $ac_preproc_ok; then :
8421  break
8422fi
8423
8424    done
8425    ac_cv_prog_CPP=$CPP
8426
8427fi
8428  CPP=$ac_cv_prog_CPP
8429else
8430  ac_cv_prog_CPP=$CPP
8431fi
8432{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
8433$as_echo "$CPP" >&6; }
8434ac_preproc_ok=false
8435for ac_c_preproc_warn_flag in '' yes
8436do
8437  # Use a header file that comes with gcc, so configuring glibc
8438  # with a fresh cross-compiler works.
8439  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8440  # <limits.h> exists even on freestanding compilers.
8441  # On the NeXT, cc -E runs the code through the compiler's parser,
8442  # not just through cpp. "Syntax error" is here to catch this case.
8443  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8444/* end confdefs.h.  */
8445#ifdef __STDC__
8446# include <limits.h>
8447#else
8448# include <assert.h>
8449#endif
8450		     Syntax error
8451_ACEOF
8452if ac_fn_c_try_cpp "$LINENO"; then :
8453
8454else
8455  # Broken: fails on valid input.
8456continue
8457fi
8458rm -f conftest.err conftest.i conftest.$ac_ext
8459
8460  # OK, works on sane cases.  Now check whether nonexistent headers
8461  # can be detected and how.
8462  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8463/* end confdefs.h.  */
8464#include <ac_nonexistent.h>
8465_ACEOF
8466if ac_fn_c_try_cpp "$LINENO"; then :
8467  # Broken: success on invalid input.
8468continue
8469else
8470  # Passes both tests.
8471ac_preproc_ok=:
8472break
8473fi
8474rm -f conftest.err conftest.i conftest.$ac_ext
8475
8476done
8477# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8478rm -f conftest.i conftest.err conftest.$ac_ext
8479if $ac_preproc_ok; then :
8480
8481else
8482  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8483$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
8484as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
8485See \`config.log' for more details" "$LINENO" 5; }
8486fi
8487
8488ac_ext=c
8489ac_cpp='$CPP $CPPFLAGS'
8490ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8491ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8492ac_compiler_gnu=$ac_cv_c_compiler_gnu
8493
8494
8495{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
8496$as_echo_n "checking for ANSI C header files... " >&6; }
8497if ${ac_cv_header_stdc+:} false; then :
8498  $as_echo_n "(cached) " >&6
8499else
8500  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8501/* end confdefs.h.  */
8502#include <stdlib.h>
8503#include <stdarg.h>
8504#include <string.h>
8505#include <float.h>
8506
8507int
8508main ()
8509{
8510
8511  ;
8512  return 0;
8513}
8514_ACEOF
8515if ac_fn_c_try_compile "$LINENO"; then :
8516  ac_cv_header_stdc=yes
8517else
8518  ac_cv_header_stdc=no
8519fi
8520rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8521
8522if test $ac_cv_header_stdc = yes; then
8523  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
8524  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8525/* end confdefs.h.  */
8526#include <string.h>
8527
8528_ACEOF
8529if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8530  $EGREP "memchr" >/dev/null 2>&1; then :
8531
8532else
8533  ac_cv_header_stdc=no
8534fi
8535rm -f conftest*
8536
8537fi
8538
8539if test $ac_cv_header_stdc = yes; then
8540  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8541  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8542/* end confdefs.h.  */
8543#include <stdlib.h>
8544
8545_ACEOF
8546if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8547  $EGREP "free" >/dev/null 2>&1; then :
8548
8549else
8550  ac_cv_header_stdc=no
8551fi
8552rm -f conftest*
8553
8554fi
8555
8556if test $ac_cv_header_stdc = yes; then
8557  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8558  if test "$cross_compiling" = yes; then :
8559  :
8560else
8561  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8562/* end confdefs.h.  */
8563#include <ctype.h>
8564#include <stdlib.h>
8565#if ((' ' & 0x0FF) == 0x020)
8566# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8567# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8568#else
8569# define ISLOWER(c) \
8570		   (('a' <= (c) && (c) <= 'i') \
8571		     || ('j' <= (c) && (c) <= 'r') \
8572		     || ('s' <= (c) && (c) <= 'z'))
8573# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8574#endif
8575
8576#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8577int
8578main ()
8579{
8580  int i;
8581  for (i = 0; i < 256; i++)
8582    if (XOR (islower (i), ISLOWER (i))
8583	|| toupper (i) != TOUPPER (i))
8584      return 2;
8585  return 0;
8586}
8587_ACEOF
8588if ac_fn_c_try_run "$LINENO"; then :
8589
8590else
8591  ac_cv_header_stdc=no
8592fi
8593rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8594  conftest.$ac_objext conftest.beam conftest.$ac_ext
8595fi
8596
8597fi
8598fi
8599{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
8600$as_echo "$ac_cv_header_stdc" >&6; }
8601if test $ac_cv_header_stdc = yes; then
8602
8603$as_echo "#define STDC_HEADERS 1" >>confdefs.h
8604
8605fi
8606
8607# On IRIX 5.3, sys/types and inttypes.h are conflicting.
8608for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
8609		  inttypes.h stdint.h unistd.h
8610do :
8611  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8612ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
8613"
8614if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
8615  cat >>confdefs.h <<_ACEOF
8616#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8617_ACEOF
8618
8619fi
8620
8621done
8622
8623
8624for ac_header in dlfcn.h
8625do :
8626  ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
8627"
8628if test "x$ac_cv_header_dlfcn_h" = xyes; then :
8629  cat >>confdefs.h <<_ACEOF
8630#define HAVE_DLFCN_H 1
8631_ACEOF
8632
8633fi
8634
8635done
8636
8637
8638
8639
8640
8641# Set options
8642
8643
8644
8645        enable_dlopen=no
8646
8647
8648  enable_win32_dll=no
8649
8650
8651            # Check whether --enable-shared was given.
8652if test "${enable_shared+set}" = set; then :
8653  enableval=$enable_shared; p=${PACKAGE-default}
8654    case $enableval in
8655    yes) enable_shared=yes ;;
8656    no) enable_shared=no ;;
8657    *)
8658      enable_shared=no
8659      # Look at the argument we got.  We use all the common list separators.
8660      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8661      for pkg in $enableval; do
8662	IFS=$lt_save_ifs
8663	if test "X$pkg" = "X$p"; then
8664	  enable_shared=yes
8665	fi
8666      done
8667      IFS=$lt_save_ifs
8668      ;;
8669    esac
8670else
8671  enable_shared=yes
8672fi
8673
8674
8675
8676
8677
8678
8679
8680
8681
8682  # Check whether --enable-static was given.
8683if test "${enable_static+set}" = set; then :
8684  enableval=$enable_static; p=${PACKAGE-default}
8685    case $enableval in
8686    yes) enable_static=yes ;;
8687    no) enable_static=no ;;
8688    *)
8689     enable_static=no
8690      # Look at the argument we got.  We use all the common list separators.
8691      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8692      for pkg in $enableval; do
8693	IFS=$lt_save_ifs
8694	if test "X$pkg" = "X$p"; then
8695	  enable_static=yes
8696	fi
8697      done
8698      IFS=$lt_save_ifs
8699      ;;
8700    esac
8701else
8702  enable_static=yes
8703fi
8704
8705
8706
8707
8708
8709
8710
8711
8712
8713
8714# Check whether --with-pic was given.
8715if test "${with_pic+set}" = set; then :
8716  withval=$with_pic; lt_p=${PACKAGE-default}
8717    case $withval in
8718    yes|no) pic_mode=$withval ;;
8719    *)
8720      pic_mode=default
8721      # Look at the argument we got.  We use all the common list separators.
8722      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8723      for lt_pkg in $withval; do
8724	IFS=$lt_save_ifs
8725	if test "X$lt_pkg" = "X$lt_p"; then
8726	  pic_mode=yes
8727	fi
8728      done
8729      IFS=$lt_save_ifs
8730      ;;
8731    esac
8732else
8733  pic_mode=default
8734fi
8735
8736
8737
8738
8739
8740
8741
8742
8743  # Check whether --enable-fast-install was given.
8744if test "${enable_fast_install+set}" = set; then :
8745  enableval=$enable_fast_install; p=${PACKAGE-default}
8746    case $enableval in
8747    yes) enable_fast_install=yes ;;
8748    no) enable_fast_install=no ;;
8749    *)
8750      enable_fast_install=no
8751      # Look at the argument we got.  We use all the common list separators.
8752      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8753      for pkg in $enableval; do
8754	IFS=$lt_save_ifs
8755	if test "X$pkg" = "X$p"; then
8756	  enable_fast_install=yes
8757	fi
8758      done
8759      IFS=$lt_save_ifs
8760      ;;
8761    esac
8762else
8763  enable_fast_install=yes
8764fi
8765
8766
8767
8768
8769
8770
8771
8772
8773  shared_archive_member_spec=
8774case $host,$enable_shared in
8775power*-*-aix[5-9]*,yes)
8776  { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
8777$as_echo_n "checking which variant of shared library versioning to provide... " >&6; }
8778
8779# Check whether --with-aix-soname was given.
8780if test "${with_aix_soname+set}" = set; then :
8781  withval=$with_aix_soname; case $withval in
8782    aix|svr4|both)
8783      ;;
8784    *)
8785      as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
8786      ;;
8787    esac
8788    lt_cv_with_aix_soname=$with_aix_soname
8789else
8790  if ${lt_cv_with_aix_soname+:} false; then :
8791  $as_echo_n "(cached) " >&6
8792else
8793  lt_cv_with_aix_soname=aix
8794fi
8795
8796    with_aix_soname=$lt_cv_with_aix_soname
8797fi
8798
8799  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
8800$as_echo "$with_aix_soname" >&6; }
8801  if test aix != "$with_aix_soname"; then
8802    # For the AIX way of multilib, we name the shared archive member
8803    # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
8804    # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
8805    # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
8806    # the AIX toolchain works better with OBJECT_MODE set (default 32).
8807    if test 64 = "${OBJECT_MODE-32}"; then
8808      shared_archive_member_spec=shr_64
8809    else
8810      shared_archive_member_spec=shr
8811    fi
8812  fi
8813  ;;
8814*)
8815  with_aix_soname=aix
8816  ;;
8817esac
8818
8819
8820
8821
8822
8823
8824
8825
8826
8827
8828# This can be used to rebuild libtool when needed
8829LIBTOOL_DEPS=$ltmain
8830
8831# Always use our own libtool.
8832LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8833
8834
8835
8836
8837
8838
8839
8840
8841
8842
8843
8844
8845
8846
8847
8848
8849
8850
8851
8852
8853
8854
8855
8856
8857
8858
8859
8860
8861
8862
8863test -z "$LN_S" && LN_S="ln -s"
8864
8865
8866
8867
8868
8869
8870
8871
8872
8873
8874
8875
8876
8877
8878if test -n "${ZSH_VERSION+set}"; then
8879   setopt NO_GLOB_SUBST
8880fi
8881
8882{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8883$as_echo_n "checking for objdir... " >&6; }
8884if ${lt_cv_objdir+:} false; then :
8885  $as_echo_n "(cached) " >&6
8886else
8887  rm -f .libs 2>/dev/null
8888mkdir .libs 2>/dev/null
8889if test -d .libs; then
8890  lt_cv_objdir=.libs
8891else
8892  # MS-DOS does not allow filenames that begin with a dot.
8893  lt_cv_objdir=_libs
8894fi
8895rmdir .libs 2>/dev/null
8896fi
8897{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8898$as_echo "$lt_cv_objdir" >&6; }
8899objdir=$lt_cv_objdir
8900
8901
8902
8903
8904
8905cat >>confdefs.h <<_ACEOF
8906#define LT_OBJDIR "$lt_cv_objdir/"
8907_ACEOF
8908
8909
8910
8911
8912case $host_os in
8913aix3*)
8914  # AIX sometimes has problems with the GCC collect2 program.  For some
8915  # reason, if we set the COLLECT_NAMES environment variable, the problems
8916  # vanish in a puff of smoke.
8917  if test set != "${COLLECT_NAMES+set}"; then
8918    COLLECT_NAMES=
8919    export COLLECT_NAMES
8920  fi
8921  ;;
8922esac
8923
8924# Global variables:
8925ofile=libtool
8926can_build_shared=yes
8927
8928# All known linkers require a '.a' archive for static linking (except MSVC,
8929# which needs '.lib').
8930libext=a
8931
8932with_gnu_ld=$lt_cv_prog_gnu_ld
8933
8934old_CC=$CC
8935old_CFLAGS=$CFLAGS
8936
8937# Set sane defaults for various variables
8938test -z "$CC" && CC=cc
8939test -z "$LTCC" && LTCC=$CC
8940test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8941test -z "$LD" && LD=ld
8942test -z "$ac_objext" && ac_objext=o
8943
8944func_cc_basename $compiler
8945cc_basename=$func_cc_basename_result
8946
8947
8948# Only perform the check for file, if the check method requires it
8949test -z "$MAGIC_CMD" && MAGIC_CMD=file
8950case $deplibs_check_method in
8951file_magic*)
8952  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8953    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8954$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8955if ${lt_cv_path_MAGIC_CMD+:} false; then :
8956  $as_echo_n "(cached) " >&6
8957else
8958  case $MAGIC_CMD in
8959[\\/*] |  ?:[\\/]*)
8960  lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
8961  ;;
8962*)
8963  lt_save_MAGIC_CMD=$MAGIC_CMD
8964  lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
8965  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8966  for ac_dir in $ac_dummy; do
8967    IFS=$lt_save_ifs
8968    test -z "$ac_dir" && ac_dir=.
8969    if test -f "$ac_dir/${ac_tool_prefix}file"; then
8970      lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
8971      if test -n "$file_magic_test_file"; then
8972	case $deplibs_check_method in
8973	"file_magic "*)
8974	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8975	  MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8976	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8977	    $EGREP "$file_magic_regex" > /dev/null; then
8978	    :
8979	  else
8980	    cat <<_LT_EOF 1>&2
8981
8982*** Warning: the command libtool uses to detect shared libraries,
8983*** $file_magic_cmd, produces output that libtool cannot recognize.
8984*** The result is that libtool may fail to recognize shared libraries
8985*** as such.  This will affect the creation of libtool libraries that
8986*** depend on shared libraries, but programs linked with such libtool
8987*** libraries will work regardless of this problem.  Nevertheless, you
8988*** may want to report the problem to your system manager and/or to
8989*** bug-libtool@gnu.org
8990
8991_LT_EOF
8992	  fi ;;
8993	esac
8994      fi
8995      break
8996    fi
8997  done
8998  IFS=$lt_save_ifs
8999  MAGIC_CMD=$lt_save_MAGIC_CMD
9000  ;;
9001esac
9002fi
9003
9004MAGIC_CMD=$lt_cv_path_MAGIC_CMD
9005if test -n "$MAGIC_CMD"; then
9006  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9007$as_echo "$MAGIC_CMD" >&6; }
9008else
9009  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9010$as_echo "no" >&6; }
9011fi
9012
9013
9014
9015
9016
9017if test -z "$lt_cv_path_MAGIC_CMD"; then
9018  if test -n "$ac_tool_prefix"; then
9019    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
9020$as_echo_n "checking for file... " >&6; }
9021if ${lt_cv_path_MAGIC_CMD+:} false; then :
9022  $as_echo_n "(cached) " >&6
9023else
9024  case $MAGIC_CMD in
9025[\\/*] |  ?:[\\/]*)
9026  lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
9027  ;;
9028*)
9029  lt_save_MAGIC_CMD=$MAGIC_CMD
9030  lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
9031  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9032  for ac_dir in $ac_dummy; do
9033    IFS=$lt_save_ifs
9034    test -z "$ac_dir" && ac_dir=.
9035    if test -f "$ac_dir/file"; then
9036      lt_cv_path_MAGIC_CMD=$ac_dir/"file"
9037      if test -n "$file_magic_test_file"; then
9038	case $deplibs_check_method in
9039	"file_magic "*)
9040	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9041	  MAGIC_CMD=$lt_cv_path_MAGIC_CMD
9042	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9043	    $EGREP "$file_magic_regex" > /dev/null; then
9044	    :
9045	  else
9046	    cat <<_LT_EOF 1>&2
9047
9048*** Warning: the command libtool uses to detect shared libraries,
9049*** $file_magic_cmd, produces output that libtool cannot recognize.
9050*** The result is that libtool may fail to recognize shared libraries
9051*** as such.  This will affect the creation of libtool libraries that
9052*** depend on shared libraries, but programs linked with such libtool
9053*** libraries will work regardless of this problem.  Nevertheless, you
9054*** may want to report the problem to your system manager and/or to
9055*** bug-libtool@gnu.org
9056
9057_LT_EOF
9058	  fi ;;
9059	esac
9060      fi
9061      break
9062    fi
9063  done
9064  IFS=$lt_save_ifs
9065  MAGIC_CMD=$lt_save_MAGIC_CMD
9066  ;;
9067esac
9068fi
9069
9070MAGIC_CMD=$lt_cv_path_MAGIC_CMD
9071if test -n "$MAGIC_CMD"; then
9072  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9073$as_echo "$MAGIC_CMD" >&6; }
9074else
9075  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9076$as_echo "no" >&6; }
9077fi
9078
9079
9080  else
9081    MAGIC_CMD=:
9082  fi
9083fi
9084
9085  fi
9086  ;;
9087esac
9088
9089# Use C for the default configuration in the libtool script
9090
9091lt_save_CC=$CC
9092ac_ext=c
9093ac_cpp='$CPP $CPPFLAGS'
9094ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9095ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9096ac_compiler_gnu=$ac_cv_c_compiler_gnu
9097
9098
9099# Source file extension for C test sources.
9100ac_ext=c
9101
9102# Object file extension for compiled C test sources.
9103objext=o
9104objext=$objext
9105
9106# Code to be used in simple compile tests
9107lt_simple_compile_test_code="int some_variable = 0;"
9108
9109# Code to be used in simple link tests
9110lt_simple_link_test_code='int main(){return(0);}'
9111
9112
9113
9114
9115
9116
9117
9118# If no C compiler was specified, use CC.
9119LTCC=${LTCC-"$CC"}
9120
9121# If no C compiler flags were specified, use CFLAGS.
9122LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
9123
9124# Allow CC to be a program name with arguments.
9125compiler=$CC
9126
9127# Save the default compiler, since it gets overwritten when the other
9128# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
9129compiler_DEFAULT=$CC
9130
9131# save warnings/boilerplate of simple test code
9132ac_outfile=conftest.$ac_objext
9133echo "$lt_simple_compile_test_code" >conftest.$ac_ext
9134eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9135_lt_compiler_boilerplate=`cat conftest.err`
9136$RM conftest*
9137
9138ac_outfile=conftest.$ac_objext
9139echo "$lt_simple_link_test_code" >conftest.$ac_ext
9140eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9141_lt_linker_boilerplate=`cat conftest.err`
9142$RM -r conftest*
9143
9144
9145if test -n "$compiler"; then
9146
9147lt_prog_compiler_no_builtin_flag=
9148
9149if test yes = "$GCC"; then
9150  case $cc_basename in
9151  nvcc*)
9152    lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
9153  *)
9154    lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
9155  esac
9156
9157  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
9158$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
9159if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
9160  $as_echo_n "(cached) " >&6
9161else
9162  lt_cv_prog_compiler_rtti_exceptions=no
9163   ac_outfile=conftest.$ac_objext
9164   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9165   lt_compiler_flag="-fno-rtti -fno-exceptions"  ## exclude from sc_useless_quotes_in_assignment
9166   # Insert the option either (1) after the last *FLAGS variable, or
9167   # (2) before a word containing "conftest.", or (3) at the end.
9168   # Note that $ac_compile itself does not contain backslashes and begins
9169   # with a dollar sign (not a hyphen), so the echo should work correctly.
9170   # The option is referenced via a variable to avoid confusing sed.
9171   lt_compile=`echo "$ac_compile" | $SED \
9172   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9173   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9174   -e 's:$: $lt_compiler_flag:'`
9175   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9176   (eval "$lt_compile" 2>conftest.err)
9177   ac_status=$?
9178   cat conftest.err >&5
9179   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9180   if (exit $ac_status) && test -s "$ac_outfile"; then
9181     # The compiler can only warn and ignore the option if not recognized
9182     # So say no if there are warnings other than the usual output.
9183     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9184     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9185     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9186       lt_cv_prog_compiler_rtti_exceptions=yes
9187     fi
9188   fi
9189   $RM conftest*
9190
9191fi
9192{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
9193$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
9194
9195if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
9196    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
9197else
9198    :
9199fi
9200
9201fi
9202
9203
9204
9205
9206
9207
9208  lt_prog_compiler_wl=
9209lt_prog_compiler_pic=
9210lt_prog_compiler_static=
9211
9212
9213  if test yes = "$GCC"; then
9214    lt_prog_compiler_wl='-Wl,'
9215    lt_prog_compiler_static='-static'
9216
9217    case $host_os in
9218      aix*)
9219      # All AIX code is PIC.
9220      if test ia64 = "$host_cpu"; then
9221	# AIX 5 now supports IA64 processor
9222	lt_prog_compiler_static='-Bstatic'
9223      fi
9224      lt_prog_compiler_pic='-fPIC'
9225      ;;
9226
9227    amigaos*)
9228      case $host_cpu in
9229      powerpc)
9230            # see comment about AmigaOS4 .so support
9231            lt_prog_compiler_pic='-fPIC'
9232        ;;
9233      m68k)
9234            # FIXME: we need at least 68020 code to build shared libraries, but
9235            # adding the '-m68020' flag to GCC prevents building anything better,
9236            # like '-m68040'.
9237            lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
9238        ;;
9239      esac
9240      ;;
9241
9242    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
9243      # PIC is the default for these OSes.
9244      ;;
9245
9246    mingw* | cygwin* | pw32* | os2* | cegcc*)
9247      # This hack is so that the source file can tell whether it is being
9248      # built for inclusion in a dll (and should export symbols for example).
9249      # Although the cygwin gcc ignores -fPIC, still need this for old-style
9250      # (--disable-auto-import) libraries
9251      lt_prog_compiler_pic='-DDLL_EXPORT'
9252      case $host_os in
9253      os2*)
9254	lt_prog_compiler_static='$wl-static'
9255	;;
9256      esac
9257      ;;
9258
9259    darwin* | rhapsody*)
9260      # PIC is the default on this platform
9261      # Common symbols not allowed in MH_DYLIB files
9262      lt_prog_compiler_pic='-fno-common'
9263      ;;
9264
9265    haiku*)
9266      # PIC is the default for Haiku.
9267      # The "-static" flag exists, but is broken.
9268      lt_prog_compiler_static=
9269      ;;
9270
9271    hpux*)
9272      # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
9273      # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
9274      # sets the default TLS model and affects inlining.
9275      case $host_cpu in
9276      hppa*64*)
9277	# +Z the default
9278	;;
9279      *)
9280	lt_prog_compiler_pic='-fPIC'
9281	;;
9282      esac
9283      ;;
9284
9285    interix[3-9]*)
9286      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
9287      # Instead, we relocate shared libraries at runtime.
9288      ;;
9289
9290    msdosdjgpp*)
9291      # Just because we use GCC doesn't mean we suddenly get shared libraries
9292      # on systems that don't support them.
9293      lt_prog_compiler_can_build_shared=no
9294      enable_shared=no
9295      ;;
9296
9297    *nto* | *qnx*)
9298      # QNX uses GNU C++, but need to define -shared option too, otherwise
9299      # it will coredump.
9300      lt_prog_compiler_pic='-fPIC -shared'
9301      ;;
9302
9303    sysv4*MP*)
9304      if test -d /usr/nec; then
9305	lt_prog_compiler_pic=-Kconform_pic
9306      fi
9307      ;;
9308
9309    *)
9310      lt_prog_compiler_pic='-fPIC'
9311      ;;
9312    esac
9313
9314    case $cc_basename in
9315    nvcc*) # Cuda Compiler Driver 2.2
9316      lt_prog_compiler_wl='-Xlinker '
9317      if test -n "$lt_prog_compiler_pic"; then
9318        lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
9319      fi
9320      ;;
9321    esac
9322  else
9323    # PORTME Check for flag to pass linker flags through the system compiler.
9324    case $host_os in
9325    aix*)
9326      lt_prog_compiler_wl='-Wl,'
9327      if test ia64 = "$host_cpu"; then
9328	# AIX 5 now supports IA64 processor
9329	lt_prog_compiler_static='-Bstatic'
9330      else
9331	lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
9332      fi
9333      ;;
9334
9335    darwin* | rhapsody*)
9336      # PIC is the default on this platform
9337      # Common symbols not allowed in MH_DYLIB files
9338      lt_prog_compiler_pic='-fno-common'
9339      case $cc_basename in
9340      nagfor*)
9341        # NAG Fortran compiler
9342        lt_prog_compiler_wl='-Wl,-Wl,,'
9343        lt_prog_compiler_pic='-PIC'
9344        lt_prog_compiler_static='-Bstatic'
9345        ;;
9346      esac
9347      ;;
9348
9349    mingw* | cygwin* | pw32* | os2* | cegcc*)
9350      # This hack is so that the source file can tell whether it is being
9351      # built for inclusion in a dll (and should export symbols for example).
9352      lt_prog_compiler_pic='-DDLL_EXPORT'
9353      case $host_os in
9354      os2*)
9355	lt_prog_compiler_static='$wl-static'
9356	;;
9357      esac
9358      ;;
9359
9360    hpux9* | hpux10* | hpux11*)
9361      lt_prog_compiler_wl='-Wl,'
9362      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
9363      # not for PA HP-UX.
9364      case $host_cpu in
9365      hppa*64*|ia64*)
9366	# +Z the default
9367	;;
9368      *)
9369	lt_prog_compiler_pic='+Z'
9370	;;
9371      esac
9372      # Is there a better lt_prog_compiler_static that works with the bundled CC?
9373      lt_prog_compiler_static='$wl-a ${wl}archive'
9374      ;;
9375
9376    irix5* | irix6* | nonstopux*)
9377      lt_prog_compiler_wl='-Wl,'
9378      # PIC (with -KPIC) is the default.
9379      lt_prog_compiler_static='-non_shared'
9380      ;;
9381
9382    linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
9383      case $cc_basename in
9384      # old Intel for x86_64, which still supported -KPIC.
9385      ecc*)
9386	lt_prog_compiler_wl='-Wl,'
9387	lt_prog_compiler_pic='-KPIC'
9388	lt_prog_compiler_static='-static'
9389        ;;
9390      # icc used to be incompatible with GCC.
9391      # ICC 10 doesn't accept -KPIC any more.
9392      icc* | ifort*)
9393	lt_prog_compiler_wl='-Wl,'
9394	lt_prog_compiler_pic='-fPIC'
9395	lt_prog_compiler_static='-static'
9396        ;;
9397      # Lahey Fortran 8.1.
9398      lf95*)
9399	lt_prog_compiler_wl='-Wl,'
9400	lt_prog_compiler_pic='--shared'
9401	lt_prog_compiler_static='--static'
9402	;;
9403      nagfor*)
9404	# NAG Fortran compiler
9405	lt_prog_compiler_wl='-Wl,-Wl,,'
9406	lt_prog_compiler_pic='-PIC'
9407	lt_prog_compiler_static='-Bstatic'
9408	;;
9409      tcc*)
9410	# Fabrice Bellard et al's Tiny C Compiler
9411	lt_prog_compiler_wl='-Wl,'
9412	lt_prog_compiler_pic='-fPIC'
9413	lt_prog_compiler_static='-static'
9414	;;
9415      pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
9416        # Portland Group compilers (*not* the Pentium gcc compiler,
9417	# which looks to be a dead project)
9418	lt_prog_compiler_wl='-Wl,'
9419	lt_prog_compiler_pic='-fpic'
9420	lt_prog_compiler_static='-Bstatic'
9421        ;;
9422      ccc*)
9423        lt_prog_compiler_wl='-Wl,'
9424        # All Alpha code is PIC.
9425        lt_prog_compiler_static='-non_shared'
9426        ;;
9427      xl* | bgxl* | bgf* | mpixl*)
9428	# IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
9429	lt_prog_compiler_wl='-Wl,'
9430	lt_prog_compiler_pic='-qpic'
9431	lt_prog_compiler_static='-qstaticlink'
9432	;;
9433      *)
9434	case `$CC -V 2>&1 | sed 5q` in
9435	*Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
9436	  # Sun Fortran 8.3 passes all unrecognized flags to the linker
9437	  lt_prog_compiler_pic='-KPIC'
9438	  lt_prog_compiler_static='-Bstatic'
9439	  lt_prog_compiler_wl=''
9440	  ;;
9441	*Sun\ F* | *Sun*Fortran*)
9442	  lt_prog_compiler_pic='-KPIC'
9443	  lt_prog_compiler_static='-Bstatic'
9444	  lt_prog_compiler_wl='-Qoption ld '
9445	  ;;
9446	*Sun\ C*)
9447	  # Sun C 5.9
9448	  lt_prog_compiler_pic='-KPIC'
9449	  lt_prog_compiler_static='-Bstatic'
9450	  lt_prog_compiler_wl='-Wl,'
9451	  ;;
9452        *Intel*\ [CF]*Compiler*)
9453	  lt_prog_compiler_wl='-Wl,'
9454	  lt_prog_compiler_pic='-fPIC'
9455	  lt_prog_compiler_static='-static'
9456	  ;;
9457	*Portland\ Group*)
9458	  lt_prog_compiler_wl='-Wl,'
9459	  lt_prog_compiler_pic='-fpic'
9460	  lt_prog_compiler_static='-Bstatic'
9461	  ;;
9462	esac
9463	;;
9464      esac
9465      ;;
9466
9467    newsos6)
9468      lt_prog_compiler_pic='-KPIC'
9469      lt_prog_compiler_static='-Bstatic'
9470      ;;
9471
9472    *nto* | *qnx*)
9473      # QNX uses GNU C++, but need to define -shared option too, otherwise
9474      # it will coredump.
9475      lt_prog_compiler_pic='-fPIC -shared'
9476      ;;
9477
9478    osf3* | osf4* | osf5*)
9479      lt_prog_compiler_wl='-Wl,'
9480      # All OSF/1 code is PIC.
9481      lt_prog_compiler_static='-non_shared'
9482      ;;
9483
9484    rdos*)
9485      lt_prog_compiler_static='-non_shared'
9486      ;;
9487
9488    solaris*)
9489      lt_prog_compiler_pic='-KPIC'
9490      lt_prog_compiler_static='-Bstatic'
9491      case $cc_basename in
9492      f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
9493	lt_prog_compiler_wl='-Qoption ld ';;
9494      *)
9495	lt_prog_compiler_wl='-Wl,';;
9496      esac
9497      ;;
9498
9499    sunos4*)
9500      lt_prog_compiler_wl='-Qoption ld '
9501      lt_prog_compiler_pic='-PIC'
9502      lt_prog_compiler_static='-Bstatic'
9503      ;;
9504
9505    sysv4 | sysv4.2uw2* | sysv4.3*)
9506      lt_prog_compiler_wl='-Wl,'
9507      lt_prog_compiler_pic='-KPIC'
9508      lt_prog_compiler_static='-Bstatic'
9509      ;;
9510
9511    sysv4*MP*)
9512      if test -d /usr/nec; then
9513	lt_prog_compiler_pic='-Kconform_pic'
9514	lt_prog_compiler_static='-Bstatic'
9515      fi
9516      ;;
9517
9518    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
9519      lt_prog_compiler_wl='-Wl,'
9520      lt_prog_compiler_pic='-KPIC'
9521      lt_prog_compiler_static='-Bstatic'
9522      ;;
9523
9524    unicos*)
9525      lt_prog_compiler_wl='-Wl,'
9526      lt_prog_compiler_can_build_shared=no
9527      ;;
9528
9529    uts4*)
9530      lt_prog_compiler_pic='-pic'
9531      lt_prog_compiler_static='-Bstatic'
9532      ;;
9533
9534    *)
9535      lt_prog_compiler_can_build_shared=no
9536      ;;
9537    esac
9538  fi
9539
9540case $host_os in
9541  # For platforms that do not support PIC, -DPIC is meaningless:
9542  *djgpp*)
9543    lt_prog_compiler_pic=
9544    ;;
9545  *)
9546    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
9547    ;;
9548esac
9549
9550{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
9551$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
9552if ${lt_cv_prog_compiler_pic+:} false; then :
9553  $as_echo_n "(cached) " >&6
9554else
9555  lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
9556fi
9557{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
9558$as_echo "$lt_cv_prog_compiler_pic" >&6; }
9559lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
9560
9561#
9562# Check to make sure the PIC flag actually works.
9563#
9564if test -n "$lt_prog_compiler_pic"; then
9565  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
9566$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
9567if ${lt_cv_prog_compiler_pic_works+:} false; then :
9568  $as_echo_n "(cached) " >&6
9569else
9570  lt_cv_prog_compiler_pic_works=no
9571   ac_outfile=conftest.$ac_objext
9572   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9573   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"  ## exclude from sc_useless_quotes_in_assignment
9574   # Insert the option either (1) after the last *FLAGS variable, or
9575   # (2) before a word containing "conftest.", or (3) at the end.
9576   # Note that $ac_compile itself does not contain backslashes and begins
9577   # with a dollar sign (not a hyphen), so the echo should work correctly.
9578   # The option is referenced via a variable to avoid confusing sed.
9579   lt_compile=`echo "$ac_compile" | $SED \
9580   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9581   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9582   -e 's:$: $lt_compiler_flag:'`
9583   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9584   (eval "$lt_compile" 2>conftest.err)
9585   ac_status=$?
9586   cat conftest.err >&5
9587   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9588   if (exit $ac_status) && test -s "$ac_outfile"; then
9589     # The compiler can only warn and ignore the option if not recognized
9590     # So say no if there are warnings other than the usual output.
9591     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9592     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9593     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9594       lt_cv_prog_compiler_pic_works=yes
9595     fi
9596   fi
9597   $RM conftest*
9598
9599fi
9600{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
9601$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
9602
9603if test yes = "$lt_cv_prog_compiler_pic_works"; then
9604    case $lt_prog_compiler_pic in
9605     "" | " "*) ;;
9606     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9607     esac
9608else
9609    lt_prog_compiler_pic=
9610     lt_prog_compiler_can_build_shared=no
9611fi
9612
9613fi
9614
9615
9616
9617
9618
9619
9620
9621
9622
9623
9624
9625#
9626# Check to make sure the static flag actually works.
9627#
9628wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9629{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9630$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
9631if ${lt_cv_prog_compiler_static_works+:} false; then :
9632  $as_echo_n "(cached) " >&6
9633else
9634  lt_cv_prog_compiler_static_works=no
9635   save_LDFLAGS=$LDFLAGS
9636   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9637   echo "$lt_simple_link_test_code" > conftest.$ac_ext
9638   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9639     # The linker can only warn and ignore the option if not recognized
9640     # So say no if there are warnings
9641     if test -s conftest.err; then
9642       # Append any errors to the config.log.
9643       cat conftest.err 1>&5
9644       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9645       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9646       if diff conftest.exp conftest.er2 >/dev/null; then
9647         lt_cv_prog_compiler_static_works=yes
9648       fi
9649     else
9650       lt_cv_prog_compiler_static_works=yes
9651     fi
9652   fi
9653   $RM -r conftest*
9654   LDFLAGS=$save_LDFLAGS
9655
9656fi
9657{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
9658$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
9659
9660if test yes = "$lt_cv_prog_compiler_static_works"; then
9661    :
9662else
9663    lt_prog_compiler_static=
9664fi
9665
9666
9667
9668
9669
9670
9671
9672  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9673$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9674if ${lt_cv_prog_compiler_c_o+:} false; then :
9675  $as_echo_n "(cached) " >&6
9676else
9677  lt_cv_prog_compiler_c_o=no
9678   $RM -r conftest 2>/dev/null
9679   mkdir conftest
9680   cd conftest
9681   mkdir out
9682   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9683
9684   lt_compiler_flag="-o out/conftest2.$ac_objext"
9685   # Insert the option either (1) after the last *FLAGS variable, or
9686   # (2) before a word containing "conftest.", or (3) at the end.
9687   # Note that $ac_compile itself does not contain backslashes and begins
9688   # with a dollar sign (not a hyphen), so the echo should work correctly.
9689   lt_compile=`echo "$ac_compile" | $SED \
9690   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9691   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9692   -e 's:$: $lt_compiler_flag:'`
9693   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9694   (eval "$lt_compile" 2>out/conftest.err)
9695   ac_status=$?
9696   cat out/conftest.err >&5
9697   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9698   if (exit $ac_status) && test -s out/conftest2.$ac_objext
9699   then
9700     # The compiler can only warn and ignore the option if not recognized
9701     # So say no if there are warnings
9702     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9703     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9704     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9705       lt_cv_prog_compiler_c_o=yes
9706     fi
9707   fi
9708   chmod u+w . 2>&5
9709   $RM conftest*
9710   # SGI C++ compiler will create directory out/ii_files/ for
9711   # template instantiation
9712   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9713   $RM out/* && rmdir out
9714   cd ..
9715   $RM -r conftest
9716   $RM conftest*
9717
9718fi
9719{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9720$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9721
9722
9723
9724
9725
9726
9727  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9728$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9729if ${lt_cv_prog_compiler_c_o+:} false; then :
9730  $as_echo_n "(cached) " >&6
9731else
9732  lt_cv_prog_compiler_c_o=no
9733   $RM -r conftest 2>/dev/null
9734   mkdir conftest
9735   cd conftest
9736   mkdir out
9737   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9738
9739   lt_compiler_flag="-o out/conftest2.$ac_objext"
9740   # Insert the option either (1) after the last *FLAGS variable, or
9741   # (2) before a word containing "conftest.", or (3) at the end.
9742   # Note that $ac_compile itself does not contain backslashes and begins
9743   # with a dollar sign (not a hyphen), so the echo should work correctly.
9744   lt_compile=`echo "$ac_compile" | $SED \
9745   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9746   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9747   -e 's:$: $lt_compiler_flag:'`
9748   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9749   (eval "$lt_compile" 2>out/conftest.err)
9750   ac_status=$?
9751   cat out/conftest.err >&5
9752   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9753   if (exit $ac_status) && test -s out/conftest2.$ac_objext
9754   then
9755     # The compiler can only warn and ignore the option if not recognized
9756     # So say no if there are warnings
9757     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9758     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9759     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9760       lt_cv_prog_compiler_c_o=yes
9761     fi
9762   fi
9763   chmod u+w . 2>&5
9764   $RM conftest*
9765   # SGI C++ compiler will create directory out/ii_files/ for
9766   # template instantiation
9767   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9768   $RM out/* && rmdir out
9769   cd ..
9770   $RM -r conftest
9771   $RM conftest*
9772
9773fi
9774{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9775$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9776
9777
9778
9779
9780hard_links=nottested
9781if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
9782  # do not overwrite the value of need_locks provided by the user
9783  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
9784$as_echo_n "checking if we can lock with hard links... " >&6; }
9785  hard_links=yes
9786  $RM conftest*
9787  ln conftest.a conftest.b 2>/dev/null && hard_links=no
9788  touch conftest.a
9789  ln conftest.a conftest.b 2>&5 || hard_links=no
9790  ln conftest.a conftest.b 2>/dev/null && hard_links=no
9791  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
9792$as_echo "$hard_links" >&6; }
9793  if test no = "$hard_links"; then
9794    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
9795$as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
9796    need_locks=warn
9797  fi
9798else
9799  need_locks=no
9800fi
9801
9802
9803
9804
9805
9806
9807  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9808$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9809
9810  runpath_var=
9811  allow_undefined_flag=
9812  always_export_symbols=no
9813  archive_cmds=
9814  archive_expsym_cmds=
9815  compiler_needs_object=no
9816  enable_shared_with_static_runtimes=no
9817  export_dynamic_flag_spec=
9818  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9819  hardcode_automatic=no
9820  hardcode_direct=no
9821  hardcode_direct_absolute=no
9822  hardcode_libdir_flag_spec=
9823  hardcode_libdir_separator=
9824  hardcode_minus_L=no
9825  hardcode_shlibpath_var=unsupported
9826  inherit_rpath=no
9827  link_all_deplibs=unknown
9828  module_cmds=
9829  module_expsym_cmds=
9830  old_archive_from_new_cmds=
9831  old_archive_from_expsyms_cmds=
9832  thread_safe_flag_spec=
9833  whole_archive_flag_spec=
9834  # include_expsyms should be a list of space-separated symbols to be *always*
9835  # included in the symbol list
9836  include_expsyms=
9837  # exclude_expsyms can be an extended regexp of symbols to exclude
9838  # it will be wrapped by ' (' and ')$', so one must not match beginning or
9839  # end of line.  Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
9840  # as well as any symbol that contains 'd'.
9841  exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9842  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9843  # platforms (ab)use it in PIC code, but their linkers get confused if
9844  # the symbol is explicitly referenced.  Since portable code cannot
9845  # rely on this symbol name, it's probably fine to never include it in
9846  # preloaded symbol tables.
9847  # Exclude shared library initialization/finalization symbols.
9848  extract_expsyms_cmds=
9849
9850  case $host_os in
9851  cygwin* | mingw* | pw32* | cegcc*)
9852    # FIXME: the MSVC++ port hasn't been tested in a loooong time
9853    # When not using gcc, we currently assume that we are using
9854    # Microsoft Visual C++.
9855    if test yes != "$GCC"; then
9856      with_gnu_ld=no
9857    fi
9858    ;;
9859  interix*)
9860    # we just hope/assume this is gcc and not c89 (= MSVC++)
9861    with_gnu_ld=yes
9862    ;;
9863  openbsd* | bitrig*)
9864    with_gnu_ld=no
9865    ;;
9866  esac
9867
9868  ld_shlibs=yes
9869
9870  # On some targets, GNU ld is compatible enough with the native linker
9871  # that we're better off using the native interface for both.
9872  lt_use_gnu_ld_interface=no
9873  if test yes = "$with_gnu_ld"; then
9874    case $host_os in
9875      aix*)
9876	# The AIX port of GNU ld has always aspired to compatibility
9877	# with the native linker.  However, as the warning in the GNU ld
9878	# block says, versions before 2.19.5* couldn't really create working
9879	# shared libraries, regardless of the interface used.
9880	case `$LD -v 2>&1` in
9881	  *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
9882	  *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
9883	  *\ \(GNU\ Binutils\)\ [3-9]*) ;;
9884	  *)
9885	    lt_use_gnu_ld_interface=yes
9886	    ;;
9887	esac
9888	;;
9889      *)
9890	lt_use_gnu_ld_interface=yes
9891	;;
9892    esac
9893  fi
9894
9895  if test yes = "$lt_use_gnu_ld_interface"; then
9896    # If archive_cmds runs LD, not CC, wlarc should be empty
9897    wlarc='$wl'
9898
9899    # Set some defaults for GNU ld with shared library support. These
9900    # are reset later if shared libraries are not supported. Putting them
9901    # here allows them to be overridden if necessary.
9902    runpath_var=LD_RUN_PATH
9903    hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9904    export_dynamic_flag_spec='$wl--export-dynamic'
9905    # ancient GNU ld didn't support --whole-archive et. al.
9906    if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9907      whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
9908    else
9909      whole_archive_flag_spec=
9910    fi
9911    supports_anon_versioning=no
9912    case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in
9913      *GNU\ gold*) supports_anon_versioning=yes ;;
9914      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9915      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9916      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9917      *\ 2.11.*) ;; # other 2.11 versions
9918      *) supports_anon_versioning=yes ;;
9919    esac
9920
9921    # See if GNU ld supports shared libraries.
9922    case $host_os in
9923    aix[3-9]*)
9924      # On AIX/PPC, the GNU linker is very broken
9925      if test ia64 != "$host_cpu"; then
9926	ld_shlibs=no
9927	cat <<_LT_EOF 1>&2
9928
9929*** Warning: the GNU linker, at least up to release 2.19, is reported
9930*** to be unable to reliably create shared libraries on AIX.
9931*** Therefore, libtool is disabling shared libraries support.  If you
9932*** really care for shared libraries, you may want to install binutils
9933*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9934*** You will then need to restart the configuration process.
9935
9936_LT_EOF
9937      fi
9938      ;;
9939
9940    amigaos*)
9941      case $host_cpu in
9942      powerpc)
9943            # see comment about AmigaOS4 .so support
9944            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9945            archive_expsym_cmds=''
9946        ;;
9947      m68k)
9948            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)'
9949            hardcode_libdir_flag_spec='-L$libdir'
9950            hardcode_minus_L=yes
9951        ;;
9952      esac
9953      ;;
9954
9955    beos*)
9956      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9957	allow_undefined_flag=unsupported
9958	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9959	# support --undefined.  This deserves some investigation.  FIXME
9960	archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9961      else
9962	ld_shlibs=no
9963      fi
9964      ;;
9965
9966    cygwin* | mingw* | pw32* | cegcc*)
9967      # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9968      # as there is no search path for DLLs.
9969      hardcode_libdir_flag_spec='-L$libdir'
9970      export_dynamic_flag_spec='$wl--export-all-symbols'
9971      allow_undefined_flag=unsupported
9972      always_export_symbols=no
9973      enable_shared_with_static_runtimes=yes
9974      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'
9975      exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
9976
9977      if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9978        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9979	# If the export-symbols file already is a .def file, use it as
9980	# is; otherwise, prepend EXPORTS...
9981	archive_expsym_cmds='if   test DEF = "`$SED -n     -e '\''s/^[	 ]*//'\''     -e '\''/^\(;.*\)*$/d'\''     -e '\''s/^\(EXPORTS\|LIBRARY\)\([	 ].*\)*$/DEF/p'\''     -e q     $export_symbols`" ; then
9982          cp $export_symbols $output_objdir/$soname.def;
9983        else
9984          echo EXPORTS > $output_objdir/$soname.def;
9985          cat $export_symbols >> $output_objdir/$soname.def;
9986        fi~
9987        $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9988      else
9989	ld_shlibs=no
9990      fi
9991      ;;
9992
9993    haiku*)
9994      archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9995      link_all_deplibs=yes
9996      ;;
9997
9998    os2*)
9999      hardcode_libdir_flag_spec='-L$libdir'
10000      hardcode_minus_L=yes
10001      allow_undefined_flag=unsupported
10002      shrext_cmds=.dll
10003      archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10004	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10005	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10006	$ECHO EXPORTS >> $output_objdir/$libname.def~
10007	emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
10008	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10009	emximp -o $lib $output_objdir/$libname.def'
10010      archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10011	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10012	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10013	$ECHO EXPORTS >> $output_objdir/$libname.def~
10014	prefix_cmds="$SED"~
10015	if test EXPORTS = "`$SED 1q $export_symbols`"; then
10016	  prefix_cmds="$prefix_cmds -e 1d";
10017	fi~
10018	prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
10019	cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
10020	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10021	emximp -o $lib $output_objdir/$libname.def'
10022      old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
10023      enable_shared_with_static_runtimes=yes
10024      ;;
10025
10026    interix[3-9]*)
10027      hardcode_direct=no
10028      hardcode_shlibpath_var=no
10029      hardcode_libdir_flag_spec='$wl-rpath,$libdir'
10030      export_dynamic_flag_spec='$wl-E'
10031      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
10032      # Instead, shared libraries are loaded at an image base (0x10000000 by
10033      # default) and relocated if they conflict, which is a slow very memory
10034      # consuming and fragmenting process.  To avoid this, we pick a random,
10035      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
10036      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
10037      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
10038      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'
10039      ;;
10040
10041    gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
10042      tmp_diet=no
10043      if test linux-dietlibc = "$host_os"; then
10044	case $cc_basename in
10045	  diet\ *) tmp_diet=yes;;	# linux-dietlibc with static linking (!diet-dyn)
10046	esac
10047      fi
10048      if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
10049	 && test no = "$tmp_diet"
10050      then
10051	tmp_addflag=' $pic_flag'
10052	tmp_sharedflag='-shared'
10053	case $cc_basename,$host_cpu in
10054        pgcc*)				# Portland Group C compiler
10055	  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'
10056	  tmp_addflag=' $pic_flag'
10057	  ;;
10058	pgf77* | pgf90* | pgf95* | pgfortran*)
10059					# Portland Group f77 and f90 compilers
10060	  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'
10061	  tmp_addflag=' $pic_flag -Mnomain' ;;
10062	ecc*,ia64* | icc*,ia64*)	# Intel C compiler on ia64
10063	  tmp_addflag=' -i_dynamic' ;;
10064	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
10065	  tmp_addflag=' -i_dynamic -nofor_main' ;;
10066	ifc* | ifort*)			# Intel Fortran compiler
10067	  tmp_addflag=' -nofor_main' ;;
10068	lf95*)				# Lahey Fortran 8.1
10069	  whole_archive_flag_spec=
10070	  tmp_sharedflag='--shared' ;;
10071        nagfor*)                        # NAGFOR 5.3
10072          tmp_sharedflag='-Wl,-shared' ;;
10073	xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
10074	  tmp_sharedflag='-qmkshrobj'
10075	  tmp_addflag= ;;
10076	nvcc*)	# Cuda Compiler Driver 2.2
10077	  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'
10078	  compiler_needs_object=yes
10079	  ;;
10080	esac
10081	case `$CC -V 2>&1 | sed 5q` in
10082	*Sun\ C*)			# Sun C 5.9
10083	  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'
10084	  compiler_needs_object=yes
10085	  tmp_sharedflag='-G' ;;
10086	*Sun\ F*)			# Sun Fortran 8.3
10087	  tmp_sharedflag='-G' ;;
10088	esac
10089	archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10090
10091        if test yes = "$supports_anon_versioning"; then
10092          archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10093            cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10094            echo "local: *; };" >> $output_objdir/$libname.ver~
10095            $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
10096        fi
10097
10098	case $cc_basename in
10099	tcc*)
10100	  export_dynamic_flag_spec='-rdynamic'
10101	  ;;
10102	xlf* | bgf* | bgxlf* | mpixlf*)
10103	  # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
10104	  whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
10105	  hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10106	  archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
10107	  if test yes = "$supports_anon_versioning"; then
10108	    archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10109              cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10110              echo "local: *; };" >> $output_objdir/$libname.ver~
10111              $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
10112	  fi
10113	  ;;
10114	esac
10115      else
10116        ld_shlibs=no
10117      fi
10118      ;;
10119
10120    netbsd*)
10121      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10122	archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
10123	wlarc=
10124      else
10125	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10126	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10127      fi
10128      ;;
10129
10130    solaris*)
10131      if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
10132	ld_shlibs=no
10133	cat <<_LT_EOF 1>&2
10134
10135*** Warning: The releases 2.8.* of the GNU linker cannot reliably
10136*** create shared libraries on Solaris systems.  Therefore, libtool
10137*** is disabling shared libraries support.  We urge you to upgrade GNU
10138*** binutils to release 2.9.1 or newer.  Another option is to modify
10139*** your PATH or compiler configuration so that the native linker is
10140*** used, and then restart.
10141
10142_LT_EOF
10143      elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10144	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10145	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10146      else
10147	ld_shlibs=no
10148      fi
10149      ;;
10150
10151    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
10152      case `$LD -v 2>&1` in
10153        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
10154	ld_shlibs=no
10155	cat <<_LT_EOF 1>&2
10156
10157*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
10158*** reliably create shared libraries on SCO systems.  Therefore, libtool
10159*** is disabling shared libraries support.  We urge you to upgrade GNU
10160*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
10161*** your PATH or compiler configuration so that the native linker is
10162*** used, and then restart.
10163
10164_LT_EOF
10165	;;
10166	*)
10167	  # For security reasons, it is highly recommended that you always
10168	  # use absolute paths for naming shared libraries, and exclude the
10169	  # DT_RUNPATH tag from executables and libraries.  But doing so
10170	  # requires that you compile everything twice, which is a pain.
10171	  if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10172	    hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10173	    archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10174	    archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10175	  else
10176	    ld_shlibs=no
10177	  fi
10178	;;
10179      esac
10180      ;;
10181
10182    sunos4*)
10183      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10184      wlarc=
10185      hardcode_direct=yes
10186      hardcode_shlibpath_var=no
10187      ;;
10188
10189    *)
10190      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10191	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10192	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10193      else
10194	ld_shlibs=no
10195      fi
10196      ;;
10197    esac
10198
10199    if test no = "$ld_shlibs"; then
10200      runpath_var=
10201      hardcode_libdir_flag_spec=
10202      export_dynamic_flag_spec=
10203      whole_archive_flag_spec=
10204    fi
10205  else
10206    # PORTME fill in a description of your system's linker (not GNU ld)
10207    case $host_os in
10208    aix3*)
10209      allow_undefined_flag=unsupported
10210      always_export_symbols=yes
10211      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'
10212      # Note: this linker hardcodes the directories in LIBPATH if there
10213      # are no directories specified by -L.
10214      hardcode_minus_L=yes
10215      if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
10216	# Neither direct hardcoding nor static linking is supported with a
10217	# broken collect2.
10218	hardcode_direct=unsupported
10219      fi
10220      ;;
10221
10222    aix[4-9]*)
10223      if test ia64 = "$host_cpu"; then
10224	# On IA64, the linker does run time linking by default, so we don't
10225	# have to do anything special.
10226	aix_use_runtimelinking=no
10227	exp_sym_flag='-Bexport'
10228	no_entry_flag=
10229      else
10230	# If we're using GNU nm, then we don't want the "-C" option.
10231	# -C means demangle to GNU nm, but means don't demangle to AIX nm.
10232	# Without the "-l" option, or with the "-B" option, AIX nm treats
10233	# weak defined symbols like other global defined symbols, whereas
10234	# GNU nm marks them as "W".
10235	# While the 'weak' keyword is ignored in the Export File, we need
10236	# it in the Import File for the 'aix-soname' feature, so we have
10237	# to replace the "-B" option with "-P" for AIX nm.
10238	if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
10239	  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'
10240	else
10241	  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'
10242	fi
10243	aix_use_runtimelinking=no
10244
10245	# Test if we are trying to use run time linking or normal
10246	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
10247	# have runtime linking enabled, and use it for executables.
10248	# For shared libraries, we enable/disable runtime linking
10249	# depending on the kind of the shared library created -
10250	# when "with_aix_soname,aix_use_runtimelinking" is:
10251	# "aix,no"   lib.a(lib.so.V) shared, rtl:no,  for executables
10252	# "aix,yes"  lib.so          shared, rtl:yes, for executables
10253	#            lib.a           static archive
10254	# "both,no"  lib.so.V(shr.o) shared, rtl:yes
10255	#            lib.a(lib.so.V) shared, rtl:no,  for executables
10256	# "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
10257	#            lib.a(lib.so.V) shared, rtl:no
10258	# "svr4,*"   lib.so.V(shr.o) shared, rtl:yes, for executables
10259	#            lib.a           static archive
10260	case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
10261	  for ld_flag in $LDFLAGS; do
10262	  if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
10263	    aix_use_runtimelinking=yes
10264	    break
10265	  fi
10266	  done
10267	  if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
10268	    # With aix-soname=svr4, we create the lib.so.V shared archives only,
10269	    # so we don't have lib.a shared libs to link our executables.
10270	    # We have to force runtime linking in this case.
10271	    aix_use_runtimelinking=yes
10272	    LDFLAGS="$LDFLAGS -Wl,-brtl"
10273	  fi
10274	  ;;
10275	esac
10276
10277	exp_sym_flag='-bexport'
10278	no_entry_flag='-bnoentry'
10279      fi
10280
10281      # When large executables or shared objects are built, AIX ld can
10282      # have problems creating the table of contents.  If linking a library
10283      # or program results in "error TOC overflow" add -mminimal-toc to
10284      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
10285      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10286
10287      archive_cmds=''
10288      hardcode_direct=yes
10289      hardcode_direct_absolute=yes
10290      hardcode_libdir_separator=':'
10291      link_all_deplibs=yes
10292      file_list_spec='$wl-f,'
10293      case $with_aix_soname,$aix_use_runtimelinking in
10294      aix,*) ;; # traditional, no import file
10295      svr4,* | *,yes) # use import file
10296	# The Import File defines what to hardcode.
10297	hardcode_direct=no
10298	hardcode_direct_absolute=no
10299	;;
10300      esac
10301
10302      if test yes = "$GCC"; then
10303	case $host_os in aix4.[012]|aix4.[012].*)
10304	# We only want to do this on AIX 4.2 and lower, the check
10305	# below for broken collect2 doesn't work under 4.3+
10306	  collect2name=`$CC -print-prog-name=collect2`
10307	  if test -f "$collect2name" &&
10308	   strings "$collect2name" | $GREP resolve_lib_name >/dev/null
10309	  then
10310	  # We have reworked collect2
10311	  :
10312	  else
10313	  # We have old collect2
10314	  hardcode_direct=unsupported
10315	  # It fails to find uninstalled libraries when the uninstalled
10316	  # path is not listed in the libpath.  Setting hardcode_minus_L
10317	  # to unsupported forces relinking
10318	  hardcode_minus_L=yes
10319	  hardcode_libdir_flag_spec='-L$libdir'
10320	  hardcode_libdir_separator=
10321	  fi
10322	  ;;
10323	esac
10324	shared_flag='-shared'
10325	if test yes = "$aix_use_runtimelinking"; then
10326	  shared_flag="$shared_flag "'$wl-G'
10327	fi
10328	# Need to ensure runtime linking is disabled for the traditional
10329	# shared library, or the linker may eventually find shared libraries
10330	# /with/ Import File - we do not want to mix them.
10331	shared_flag_aix='-shared'
10332	shared_flag_svr4='-shared $wl-G'
10333      else
10334	# not using gcc
10335	if test ia64 = "$host_cpu"; then
10336	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10337	# chokes on -Wl,-G. The following line is correct:
10338	  shared_flag='-G'
10339	else
10340	  if test yes = "$aix_use_runtimelinking"; then
10341	    shared_flag='$wl-G'
10342	  else
10343	    shared_flag='$wl-bM:SRE'
10344	  fi
10345	  shared_flag_aix='$wl-bM:SRE'
10346	  shared_flag_svr4='$wl-G'
10347	fi
10348      fi
10349
10350      export_dynamic_flag_spec='$wl-bexpall'
10351      # It seems that -bexpall does not export symbols beginning with
10352      # underscore (_), so it is better to generate a list of symbols to export.
10353      always_export_symbols=yes
10354      if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
10355	# Warning - without using the other runtime loading flags (-brtl),
10356	# -berok will link without error, but may produce a broken library.
10357	allow_undefined_flag='-berok'
10358        # Determine the default libpath from the value encoded in an
10359        # empty executable.
10360        if test set = "${lt_cv_aix_libpath+set}"; then
10361  aix_libpath=$lt_cv_aix_libpath
10362else
10363  if ${lt_cv_aix_libpath_+:} false; then :
10364  $as_echo_n "(cached) " >&6
10365else
10366  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10367/* end confdefs.h.  */
10368
10369int
10370main ()
10371{
10372
10373  ;
10374  return 0;
10375}
10376_ACEOF
10377if ac_fn_c_try_link "$LINENO"; then :
10378
10379  lt_aix_libpath_sed='
10380      /Import File Strings/,/^$/ {
10381	  /^0/ {
10382	      s/^0  *\([^ ]*\) *$/\1/
10383	      p
10384	  }
10385      }'
10386  lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10387  # Check for a 64-bit object if we didn't find anything.
10388  if test -z "$lt_cv_aix_libpath_"; then
10389    lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10390  fi
10391fi
10392rm -f core conftest.err conftest.$ac_objext \
10393    conftest$ac_exeext conftest.$ac_ext
10394  if test -z "$lt_cv_aix_libpath_"; then
10395    lt_cv_aix_libpath_=/usr/lib:/lib
10396  fi
10397
10398fi
10399
10400  aix_libpath=$lt_cv_aix_libpath_
10401fi
10402
10403        hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
10404        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
10405      else
10406	if test ia64 = "$host_cpu"; then
10407	  hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
10408	  allow_undefined_flag="-z nodefs"
10409	  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"
10410	else
10411	 # Determine the default libpath from the value encoded in an
10412	 # empty executable.
10413	 if test set = "${lt_cv_aix_libpath+set}"; then
10414  aix_libpath=$lt_cv_aix_libpath
10415else
10416  if ${lt_cv_aix_libpath_+:} false; then :
10417  $as_echo_n "(cached) " >&6
10418else
10419  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10420/* end confdefs.h.  */
10421
10422int
10423main ()
10424{
10425
10426  ;
10427  return 0;
10428}
10429_ACEOF
10430if ac_fn_c_try_link "$LINENO"; then :
10431
10432  lt_aix_libpath_sed='
10433      /Import File Strings/,/^$/ {
10434	  /^0/ {
10435	      s/^0  *\([^ ]*\) *$/\1/
10436	      p
10437	  }
10438      }'
10439  lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10440  # Check for a 64-bit object if we didn't find anything.
10441  if test -z "$lt_cv_aix_libpath_"; then
10442    lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10443  fi
10444fi
10445rm -f core conftest.err conftest.$ac_objext \
10446    conftest$ac_exeext conftest.$ac_ext
10447  if test -z "$lt_cv_aix_libpath_"; then
10448    lt_cv_aix_libpath_=/usr/lib:/lib
10449  fi
10450
10451fi
10452
10453  aix_libpath=$lt_cv_aix_libpath_
10454fi
10455
10456	 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
10457	  # Warning - without using the other run time loading flags,
10458	  # -berok will link without error, but may produce a broken library.
10459	  no_undefined_flag=' $wl-bernotok'
10460	  allow_undefined_flag=' $wl-berok'
10461	  if test yes = "$with_gnu_ld"; then
10462	    # We only use this code for GNU lds that support --whole-archive.
10463	    whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
10464	  else
10465	    # Exported symbols can be pulled into shared objects from archives
10466	    whole_archive_flag_spec='$convenience'
10467	  fi
10468	  archive_cmds_need_lc=yes
10469	  archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
10470	  # -brtl affects multiple linker settings, -berok does not and is overridden later
10471	  compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
10472	  if test svr4 != "$with_aix_soname"; then
10473	    # This is similar to how AIX traditionally builds its shared libraries.
10474	    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'
10475	  fi
10476	  if test aix != "$with_aix_soname"; then
10477	    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'
10478	  else
10479	    # used by -dlpreopen to get the symbols
10480	    archive_expsym_cmds="$archive_expsym_cmds"'~$MV  $output_objdir/$realname.d/$soname $output_objdir'
10481	  fi
10482	  archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
10483	fi
10484      fi
10485      ;;
10486
10487    amigaos*)
10488      case $host_cpu in
10489      powerpc)
10490            # see comment about AmigaOS4 .so support
10491            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10492            archive_expsym_cmds=''
10493        ;;
10494      m68k)
10495            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)'
10496            hardcode_libdir_flag_spec='-L$libdir'
10497            hardcode_minus_L=yes
10498        ;;
10499      esac
10500      ;;
10501
10502    bsdi[45]*)
10503      export_dynamic_flag_spec=-rdynamic
10504      ;;
10505
10506    cygwin* | mingw* | pw32* | cegcc*)
10507      # When not using gcc, we currently assume that we are using
10508      # Microsoft Visual C++.
10509      # hardcode_libdir_flag_spec is actually meaningless, as there is
10510      # no search path for DLLs.
10511      case $cc_basename in
10512      cl*)
10513	# Native MSVC
10514	hardcode_libdir_flag_spec=' '
10515	allow_undefined_flag=unsupported
10516	always_export_symbols=yes
10517	file_list_spec='@'
10518	# Tell ltmain to make .lib files, not .a files.
10519	libext=lib
10520	# Tell ltmain to make .dll files, not .so files.
10521	shrext_cmds=.dll
10522	# FIXME: Setting linknames here is a bad hack.
10523	archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
10524	archive_expsym_cmds='if   test DEF = "`$SED -n     -e '\''s/^[	 ]*//'\''     -e '\''/^\(;.*\)*$/d'\''     -e '\''s/^\(EXPORTS\|LIBRARY\)\([	 ].*\)*$/DEF/p'\''     -e q     $export_symbols`" ; then
10525            cp "$export_symbols" "$output_objdir/$soname.def";
10526            echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
10527          else
10528            $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
10529          fi~
10530          $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
10531          linknames='
10532	# The linker will not automatically build a static lib if we build a DLL.
10533	# _LT_TAGVAR(old_archive_from_new_cmds, )='true'
10534	enable_shared_with_static_runtimes=yes
10535	exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
10536	export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
10537	# Don't use ranlib
10538	old_postinstall_cmds='chmod 644 $oldlib'
10539	postlink_cmds='lt_outputfile="@OUTPUT@"~
10540          lt_tool_outputfile="@TOOL_OUTPUT@"~
10541          case $lt_outputfile in
10542            *.exe|*.EXE) ;;
10543            *)
10544              lt_outputfile=$lt_outputfile.exe
10545              lt_tool_outputfile=$lt_tool_outputfile.exe
10546              ;;
10547          esac~
10548          if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
10549            $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
10550            $RM "$lt_outputfile.manifest";
10551          fi'
10552	;;
10553      *)
10554	# Assume MSVC wrapper
10555	hardcode_libdir_flag_spec=' '
10556	allow_undefined_flag=unsupported
10557	# Tell ltmain to make .lib files, not .a files.
10558	libext=lib
10559	# Tell ltmain to make .dll files, not .so files.
10560	shrext_cmds=.dll
10561	# FIXME: Setting linknames here is a bad hack.
10562	archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
10563	# The linker will automatically build a .lib file if we build a DLL.
10564	old_archive_from_new_cmds='true'
10565	# FIXME: Should let the user specify the lib program.
10566	old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
10567	enable_shared_with_static_runtimes=yes
10568	;;
10569      esac
10570      ;;
10571
10572    darwin* | rhapsody*)
10573
10574
10575  archive_cmds_need_lc=no
10576  hardcode_direct=no
10577  hardcode_automatic=yes
10578  hardcode_shlibpath_var=unsupported
10579  if test yes = "$lt_cv_ld_force_load"; then
10580    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\"`'
10581
10582  else
10583    whole_archive_flag_spec=''
10584  fi
10585  link_all_deplibs=yes
10586  allow_undefined_flag=$_lt_dar_allow_undefined
10587  case $cc_basename in
10588     ifort*|nagfor*) _lt_dar_can_shared=yes ;;
10589     *) _lt_dar_can_shared=$GCC ;;
10590  esac
10591  if test yes = "$_lt_dar_can_shared"; then
10592    output_verbose_link_cmd=func_echo_all
10593    archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
10594    module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
10595    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"
10596    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"
10597
10598  else
10599  ld_shlibs=no
10600  fi
10601
10602      ;;
10603
10604    dgux*)
10605      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10606      hardcode_libdir_flag_spec='-L$libdir'
10607      hardcode_shlibpath_var=no
10608      ;;
10609
10610    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
10611    # support.  Future versions do this automatically, but an explicit c++rt0.o
10612    # does not break anything, and helps significantly (at the cost of a little
10613    # extra space).
10614    freebsd2.2*)
10615      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
10616      hardcode_libdir_flag_spec='-R$libdir'
10617      hardcode_direct=yes
10618      hardcode_shlibpath_var=no
10619      ;;
10620
10621    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
10622    freebsd2.*)
10623      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10624      hardcode_direct=yes
10625      hardcode_minus_L=yes
10626      hardcode_shlibpath_var=no
10627      ;;
10628
10629    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
10630    freebsd* | dragonfly*)
10631      archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10632      hardcode_libdir_flag_spec='-R$libdir'
10633      hardcode_direct=yes
10634      hardcode_shlibpath_var=no
10635      ;;
10636
10637    hpux9*)
10638      if test yes = "$GCC"; then
10639	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'
10640      else
10641	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'
10642      fi
10643      hardcode_libdir_flag_spec='$wl+b $wl$libdir'
10644      hardcode_libdir_separator=:
10645      hardcode_direct=yes
10646
10647      # hardcode_minus_L: Not really in the search PATH,
10648      # but as the default location of the library.
10649      hardcode_minus_L=yes
10650      export_dynamic_flag_spec='$wl-E'
10651      ;;
10652
10653    hpux10*)
10654      if test yes,no = "$GCC,$with_gnu_ld"; then
10655	archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10656      else
10657	archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10658      fi
10659      if test no = "$with_gnu_ld"; then
10660	hardcode_libdir_flag_spec='$wl+b $wl$libdir'
10661	hardcode_libdir_separator=:
10662	hardcode_direct=yes
10663	hardcode_direct_absolute=yes
10664	export_dynamic_flag_spec='$wl-E'
10665	# hardcode_minus_L: Not really in the search PATH,
10666	# but as the default location of the library.
10667	hardcode_minus_L=yes
10668      fi
10669      ;;
10670
10671    hpux11*)
10672      if test yes,no = "$GCC,$with_gnu_ld"; then
10673	case $host_cpu in
10674	hppa*64*)
10675	  archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
10676	  ;;
10677	ia64*)
10678	  archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10679	  ;;
10680	*)
10681	  archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10682	  ;;
10683	esac
10684      else
10685	case $host_cpu in
10686	hppa*64*)
10687	  archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
10688	  ;;
10689	ia64*)
10690	  archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10691	  ;;
10692	*)
10693
10694	  # Older versions of the 11.00 compiler do not understand -b yet
10695	  # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
10696	  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
10697$as_echo_n "checking if $CC understands -b... " >&6; }
10698if ${lt_cv_prog_compiler__b+:} false; then :
10699  $as_echo_n "(cached) " >&6
10700else
10701  lt_cv_prog_compiler__b=no
10702   save_LDFLAGS=$LDFLAGS
10703   LDFLAGS="$LDFLAGS -b"
10704   echo "$lt_simple_link_test_code" > conftest.$ac_ext
10705   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10706     # The linker can only warn and ignore the option if not recognized
10707     # So say no if there are warnings
10708     if test -s conftest.err; then
10709       # Append any errors to the config.log.
10710       cat conftest.err 1>&5
10711       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10712       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10713       if diff conftest.exp conftest.er2 >/dev/null; then
10714         lt_cv_prog_compiler__b=yes
10715       fi
10716     else
10717       lt_cv_prog_compiler__b=yes
10718     fi
10719   fi
10720   $RM -r conftest*
10721   LDFLAGS=$save_LDFLAGS
10722
10723fi
10724{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
10725$as_echo "$lt_cv_prog_compiler__b" >&6; }
10726
10727if test yes = "$lt_cv_prog_compiler__b"; then
10728    archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10729else
10730    archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10731fi
10732
10733	  ;;
10734	esac
10735      fi
10736      if test no = "$with_gnu_ld"; then
10737	hardcode_libdir_flag_spec='$wl+b $wl$libdir'
10738	hardcode_libdir_separator=:
10739
10740	case $host_cpu in
10741	hppa*64*|ia64*)
10742	  hardcode_direct=no
10743	  hardcode_shlibpath_var=no
10744	  ;;
10745	*)
10746	  hardcode_direct=yes
10747	  hardcode_direct_absolute=yes
10748	  export_dynamic_flag_spec='$wl-E'
10749
10750	  # hardcode_minus_L: Not really in the search PATH,
10751	  # but as the default location of the library.
10752	  hardcode_minus_L=yes
10753	  ;;
10754	esac
10755      fi
10756      ;;
10757
10758    irix5* | irix6* | nonstopux*)
10759      if test yes = "$GCC"; then
10760	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'
10761	# Try to use the -exported_symbol ld option, if it does not
10762	# work, assume that -exports_file does not work either and
10763	# implicitly export all symbols.
10764	# This should be the same for all languages, so no per-tag cache variable.
10765	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
10766$as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
10767if ${lt_cv_irix_exported_symbol+:} false; then :
10768  $as_echo_n "(cached) " >&6
10769else
10770  save_LDFLAGS=$LDFLAGS
10771	   LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
10772	   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10773/* end confdefs.h.  */
10774int foo (void) { return 0; }
10775_ACEOF
10776if ac_fn_c_try_link "$LINENO"; then :
10777  lt_cv_irix_exported_symbol=yes
10778else
10779  lt_cv_irix_exported_symbol=no
10780fi
10781rm -f core conftest.err conftest.$ac_objext \
10782    conftest$ac_exeext conftest.$ac_ext
10783           LDFLAGS=$save_LDFLAGS
10784fi
10785{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
10786$as_echo "$lt_cv_irix_exported_symbol" >&6; }
10787	if test yes = "$lt_cv_irix_exported_symbol"; then
10788          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'
10789	fi
10790      else
10791	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'
10792	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'
10793      fi
10794      archive_cmds_need_lc='no'
10795      hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10796      hardcode_libdir_separator=:
10797      inherit_rpath=yes
10798      link_all_deplibs=yes
10799      ;;
10800
10801    linux*)
10802      case $cc_basename in
10803      tcc*)
10804	# Fabrice Bellard et al's Tiny C Compiler
10805	ld_shlibs=yes
10806	archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10807	;;
10808      esac
10809      ;;
10810
10811    netbsd*)
10812      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10813	archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
10814      else
10815	archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
10816      fi
10817      hardcode_libdir_flag_spec='-R$libdir'
10818      hardcode_direct=yes
10819      hardcode_shlibpath_var=no
10820      ;;
10821
10822    newsos6)
10823      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10824      hardcode_direct=yes
10825      hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10826      hardcode_libdir_separator=:
10827      hardcode_shlibpath_var=no
10828      ;;
10829
10830    *nto* | *qnx*)
10831      ;;
10832
10833    openbsd* | bitrig*)
10834      if test -f /usr/libexec/ld.so; then
10835	hardcode_direct=yes
10836	hardcode_shlibpath_var=no
10837	hardcode_direct_absolute=yes
10838	if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
10839	  archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10840	  archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
10841	  hardcode_libdir_flag_spec='$wl-rpath,$libdir'
10842	  export_dynamic_flag_spec='$wl-E'
10843	else
10844	  archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10845	  hardcode_libdir_flag_spec='$wl-rpath,$libdir'
10846	fi
10847      else
10848	ld_shlibs=no
10849      fi
10850      ;;
10851
10852    os2*)
10853      hardcode_libdir_flag_spec='-L$libdir'
10854      hardcode_minus_L=yes
10855      allow_undefined_flag=unsupported
10856      shrext_cmds=.dll
10857      archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10858	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10859	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10860	$ECHO EXPORTS >> $output_objdir/$libname.def~
10861	emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
10862	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10863	emximp -o $lib $output_objdir/$libname.def'
10864      archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10865	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10866	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10867	$ECHO EXPORTS >> $output_objdir/$libname.def~
10868	prefix_cmds="$SED"~
10869	if test EXPORTS = "`$SED 1q $export_symbols`"; then
10870	  prefix_cmds="$prefix_cmds -e 1d";
10871	fi~
10872	prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
10873	cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
10874	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10875	emximp -o $lib $output_objdir/$libname.def'
10876      old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
10877      enable_shared_with_static_runtimes=yes
10878      ;;
10879
10880    osf3*)
10881      if test yes = "$GCC"; then
10882	allow_undefined_flag=' $wl-expect_unresolved $wl\*'
10883	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'
10884      else
10885	allow_undefined_flag=' -expect_unresolved \*'
10886	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'
10887      fi
10888      archive_cmds_need_lc='no'
10889      hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10890      hardcode_libdir_separator=:
10891      ;;
10892
10893    osf4* | osf5*)	# as osf3* with the addition of -msym flag
10894      if test yes = "$GCC"; then
10895	allow_undefined_flag=' $wl-expect_unresolved $wl\*'
10896	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'
10897	hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10898      else
10899	allow_undefined_flag=' -expect_unresolved \*'
10900	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'
10901	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~
10902          $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'
10903
10904	# Both c and cxx compiler support -rpath directly
10905	hardcode_libdir_flag_spec='-rpath $libdir'
10906      fi
10907      archive_cmds_need_lc='no'
10908      hardcode_libdir_separator=:
10909      ;;
10910
10911    solaris*)
10912      no_undefined_flag=' -z defs'
10913      if test yes = "$GCC"; then
10914	wlarc='$wl'
10915	archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
10916	archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10917          $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'
10918      else
10919	case `$CC -V 2>&1` in
10920	*"Compilers 5.0"*)
10921	  wlarc=''
10922	  archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
10923	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10924            $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10925	  ;;
10926	*)
10927	  wlarc='$wl'
10928	  archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10929	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10930            $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10931	  ;;
10932	esac
10933      fi
10934      hardcode_libdir_flag_spec='-R$libdir'
10935      hardcode_shlibpath_var=no
10936      case $host_os in
10937      solaris2.[0-5] | solaris2.[0-5].*) ;;
10938      *)
10939	# The compiler driver will combine and reorder linker options,
10940	# but understands '-z linker_flag'.  GCC discards it without '$wl',
10941	# but is careful enough not to reorder.
10942	# Supported since Solaris 2.6 (maybe 2.5.1?)
10943	if test yes = "$GCC"; then
10944	  whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
10945	else
10946	  whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10947	fi
10948	;;
10949      esac
10950      link_all_deplibs=yes
10951      ;;
10952
10953    sunos4*)
10954      if test sequent = "$host_vendor"; then
10955	# Use $CC to link under sequent, because it throws in some extra .o
10956	# files that make .init and .fini sections work.
10957	archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10958      else
10959	archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10960      fi
10961      hardcode_libdir_flag_spec='-L$libdir'
10962      hardcode_direct=yes
10963      hardcode_minus_L=yes
10964      hardcode_shlibpath_var=no
10965      ;;
10966
10967    sysv4)
10968      case $host_vendor in
10969	sni)
10970	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10971	  hardcode_direct=yes # is this really true???
10972	;;
10973	siemens)
10974	  ## LD is ld it makes a PLAMLIB
10975	  ## CC just makes a GrossModule.
10976	  archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10977	  reload_cmds='$CC -r -o $output$reload_objs'
10978	  hardcode_direct=no
10979        ;;
10980	motorola)
10981	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10982	  hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10983	;;
10984      esac
10985      runpath_var='LD_RUN_PATH'
10986      hardcode_shlibpath_var=no
10987      ;;
10988
10989    sysv4.3*)
10990      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10991      hardcode_shlibpath_var=no
10992      export_dynamic_flag_spec='-Bexport'
10993      ;;
10994
10995    sysv4*MP*)
10996      if test -d /usr/nec; then
10997	archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10998	hardcode_shlibpath_var=no
10999	runpath_var=LD_RUN_PATH
11000	hardcode_runpath_var=yes
11001	ld_shlibs=yes
11002      fi
11003      ;;
11004
11005    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
11006      no_undefined_flag='$wl-z,text'
11007      archive_cmds_need_lc=no
11008      hardcode_shlibpath_var=no
11009      runpath_var='LD_RUN_PATH'
11010
11011      if test yes = "$GCC"; then
11012	archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11013	archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11014      else
11015	archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11016	archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11017      fi
11018      ;;
11019
11020    sysv5* | sco3.2v5* | sco5v6*)
11021      # Note: We CANNOT use -z defs as we might desire, because we do not
11022      # link with -lc, and that would cause any symbols used from libc to
11023      # always be unresolved, which means just about no library would
11024      # ever link correctly.  If we're not using GNU ld we use -z text
11025      # though, which does catch some bad symbols but isn't as heavy-handed
11026      # as -z defs.
11027      no_undefined_flag='$wl-z,text'
11028      allow_undefined_flag='$wl-z,nodefs'
11029      archive_cmds_need_lc=no
11030      hardcode_shlibpath_var=no
11031      hardcode_libdir_flag_spec='$wl-R,$libdir'
11032      hardcode_libdir_separator=':'
11033      link_all_deplibs=yes
11034      export_dynamic_flag_spec='$wl-Bexport'
11035      runpath_var='LD_RUN_PATH'
11036
11037      if test yes = "$GCC"; then
11038	archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11039	archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11040      else
11041	archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11042	archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11043      fi
11044      ;;
11045
11046    uts4*)
11047      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11048      hardcode_libdir_flag_spec='-L$libdir'
11049      hardcode_shlibpath_var=no
11050      ;;
11051
11052    *)
11053      ld_shlibs=no
11054      ;;
11055    esac
11056
11057    if test sni = "$host_vendor"; then
11058      case $host in
11059      sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
11060	export_dynamic_flag_spec='$wl-Blargedynsym'
11061	;;
11062      esac
11063    fi
11064  fi
11065
11066{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
11067$as_echo "$ld_shlibs" >&6; }
11068test no = "$ld_shlibs" && can_build_shared=no
11069
11070with_gnu_ld=$with_gnu_ld
11071
11072
11073
11074
11075
11076
11077
11078
11079
11080
11081
11082
11083
11084
11085
11086#
11087# Do we need to explicitly link libc?
11088#
11089case "x$archive_cmds_need_lc" in
11090x|xyes)
11091  # Assume -lc should be added
11092  archive_cmds_need_lc=yes
11093
11094  if test yes,yes = "$GCC,$enable_shared"; then
11095    case $archive_cmds in
11096    *'~'*)
11097      # FIXME: we may have to deal with multi-command sequences.
11098      ;;
11099    '$CC '*)
11100      # Test whether the compiler implicitly links with -lc since on some
11101      # systems, -lgcc has to come before -lc. If gcc already passes -lc
11102      # to ld, don't add -lc before -lgcc.
11103      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
11104$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
11105if ${lt_cv_archive_cmds_need_lc+:} false; then :
11106  $as_echo_n "(cached) " >&6
11107else
11108  $RM conftest*
11109	echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11110
11111	if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
11112  (eval $ac_compile) 2>&5
11113  ac_status=$?
11114  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11115  test $ac_status = 0; } 2>conftest.err; then
11116	  soname=conftest
11117	  lib=conftest
11118	  libobjs=conftest.$ac_objext
11119	  deplibs=
11120	  wl=$lt_prog_compiler_wl
11121	  pic_flag=$lt_prog_compiler_pic
11122	  compiler_flags=-v
11123	  linker_flags=-v
11124	  verstring=
11125	  output_objdir=.
11126	  libname=conftest
11127	  lt_save_allow_undefined_flag=$allow_undefined_flag
11128	  allow_undefined_flag=
11129	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
11130  (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
11131  ac_status=$?
11132  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11133  test $ac_status = 0; }
11134	  then
11135	    lt_cv_archive_cmds_need_lc=no
11136	  else
11137	    lt_cv_archive_cmds_need_lc=yes
11138	  fi
11139	  allow_undefined_flag=$lt_save_allow_undefined_flag
11140	else
11141	  cat conftest.err 1>&5
11142	fi
11143	$RM conftest*
11144
11145fi
11146{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
11147$as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
11148      archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
11149      ;;
11150    esac
11151  fi
11152  ;;
11153esac
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
11211
11212
11213
11214
11215
11216
11217
11218
11219
11220
11221
11222
11223
11224
11225
11226
11227
11228
11229
11230
11231
11232
11233
11234
11235
11236
11237
11238
11239
11240
11241
11242
11243
11244
11245
11246
11247
11248
11249
11250
11251
11252
11253
11254
11255
11256
11257
11258
11259
11260
11261
11262
11263
11264
11265
11266
11267
11268
11269
11270
11271
11272
11273
11274
11275
11276
11277
11278
11279
11280
11281
11282
11283
11284
11285
11286
11287
11288
11289
11290
11291
11292
11293
11294
11295
11296
11297
11298
11299
11300
11301
11302
11303
11304
11305
11306  { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
11307$as_echo_n "checking dynamic linker characteristics... " >&6; }
11308
11309if test yes = "$GCC"; then
11310  case $host_os in
11311    darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
11312    *) lt_awk_arg='/^libraries:/' ;;
11313  esac
11314  case $host_os in
11315    mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
11316    *) lt_sed_strip_eq='s|=/|/|g' ;;
11317  esac
11318  lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
11319  case $lt_search_path_spec in
11320  *\;*)
11321    # if the path contains ";" then we assume it to be the separator
11322    # otherwise default to the standard path separator (i.e. ":") - it is
11323    # assumed that no part of a normal pathname contains ";" but that should
11324    # okay in the real world where ";" in dirpaths is itself problematic.
11325    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
11326    ;;
11327  *)
11328    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
11329    ;;
11330  esac
11331  # Ok, now we have the path, separated by spaces, we can step through it
11332  # and add multilib dir if necessary...
11333  lt_tmp_lt_search_path_spec=
11334  lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
11335  # ...but if some path component already ends with the multilib dir we assume
11336  # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
11337  case "$lt_multi_os_dir; $lt_search_path_spec " in
11338  "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
11339    lt_multi_os_dir=
11340    ;;
11341  esac
11342  for lt_sys_path in $lt_search_path_spec; do
11343    if test -d "$lt_sys_path$lt_multi_os_dir"; then
11344      lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
11345    elif test -n "$lt_multi_os_dir"; then
11346      test -d "$lt_sys_path" && \
11347	lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
11348    fi
11349  done
11350  lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
11351BEGIN {RS = " "; FS = "/|\n";} {
11352  lt_foo = "";
11353  lt_count = 0;
11354  for (lt_i = NF; lt_i > 0; lt_i--) {
11355    if ($lt_i != "" && $lt_i != ".") {
11356      if ($lt_i == "..") {
11357        lt_count++;
11358      } else {
11359        if (lt_count == 0) {
11360          lt_foo = "/" $lt_i lt_foo;
11361        } else {
11362          lt_count--;
11363        }
11364      }
11365    }
11366  }
11367  if (lt_foo != "") { lt_freq[lt_foo]++; }
11368  if (lt_freq[lt_foo] == 1) { print lt_foo; }
11369}'`
11370  # AWK program above erroneously prepends '/' to C:/dos/paths
11371  # for these hosts.
11372  case $host_os in
11373    mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
11374      $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
11375  esac
11376  sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
11377else
11378  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11379fi
11380library_names_spec=
11381libname_spec='lib$name'
11382soname_spec=
11383shrext_cmds=.so
11384postinstall_cmds=
11385postuninstall_cmds=
11386finish_cmds=
11387finish_eval=
11388shlibpath_var=
11389shlibpath_overrides_runpath=unknown
11390version_type=none
11391dynamic_linker="$host_os ld.so"
11392sys_lib_dlsearch_path_spec="/lib /usr/lib"
11393need_lib_prefix=unknown
11394hardcode_into_libs=no
11395
11396# when you set need_version to no, make sure it does not cause -set_version
11397# flags to be left without arguments
11398need_version=unknown
11399
11400
11401
11402case $host_os in
11403aix3*)
11404  version_type=linux # correct to gnu/linux during the next big refactor
11405  library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
11406  shlibpath_var=LIBPATH
11407
11408  # AIX 3 has no versioning support, so we append a major version to the name.
11409  soname_spec='$libname$release$shared_ext$major'
11410  ;;
11411
11412aix[4-9]*)
11413  version_type=linux # correct to gnu/linux during the next big refactor
11414  need_lib_prefix=no
11415  need_version=no
11416  hardcode_into_libs=yes
11417  if test ia64 = "$host_cpu"; then
11418    # AIX 5 supports IA64
11419    library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
11420    shlibpath_var=LD_LIBRARY_PATH
11421  else
11422    # With GCC up to 2.95.x, collect2 would create an import file
11423    # for dependence libraries.  The import file would start with
11424    # the line '#! .'.  This would cause the generated library to
11425    # depend on '.', always an invalid library.  This was fixed in
11426    # development snapshots of GCC prior to 3.0.
11427    case $host_os in
11428      aix4 | aix4.[01] | aix4.[01].*)
11429      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11430	   echo ' yes '
11431	   echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
11432	:
11433      else
11434	can_build_shared=no
11435      fi
11436      ;;
11437    esac
11438    # Using Import Files as archive members, it is possible to support
11439    # filename-based versioning of shared library archives on AIX. While
11440    # this would work for both with and without runtime linking, it will
11441    # prevent static linking of such archives. So we do filename-based
11442    # shared library versioning with .so extension only, which is used
11443    # when both runtime linking and shared linking is enabled.
11444    # Unfortunately, runtime linking may impact performance, so we do
11445    # not want this to be the default eventually. Also, we use the
11446    # versioned .so libs for executables only if there is the -brtl
11447    # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
11448    # To allow for filename-based versioning support, we need to create
11449    # libNAME.so.V as an archive file, containing:
11450    # *) an Import File, referring to the versioned filename of the
11451    #    archive as well as the shared archive member, telling the
11452    #    bitwidth (32 or 64) of that shared object, and providing the
11453    #    list of exported symbols of that shared object, eventually
11454    #    decorated with the 'weak' keyword
11455    # *) the shared object with the F_LOADONLY flag set, to really avoid
11456    #    it being seen by the linker.
11457    # At run time we better use the real file rather than another symlink,
11458    # but for link time we create the symlink libNAME.so -> libNAME.so.V
11459
11460    case $with_aix_soname,$aix_use_runtimelinking in
11461    # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
11462    # soname into executable. Probably we can add versioning support to
11463    # collect2, so additional links can be useful in future.
11464    aix,yes) # traditional libtool
11465      dynamic_linker='AIX unversionable lib.so'
11466      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11467      # instead of lib<name>.a to let people know that these are not
11468      # typical AIX shared libraries.
11469      library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11470      ;;
11471    aix,no) # traditional AIX only
11472      dynamic_linker='AIX lib.a(lib.so.V)'
11473      # We preserve .a as extension for shared libraries through AIX4.2
11474      # and later when we are not doing run time linking.
11475      library_names_spec='$libname$release.a $libname.a'
11476      soname_spec='$libname$release$shared_ext$major'
11477      ;;
11478    svr4,*) # full svr4 only
11479      dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
11480      library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
11481      # We do not specify a path in Import Files, so LIBPATH fires.
11482      shlibpath_overrides_runpath=yes
11483      ;;
11484    *,yes) # both, prefer svr4
11485      dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
11486      library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
11487      # unpreferred sharedlib libNAME.a needs extra handling
11488      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"'
11489      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"'
11490      # We do not specify a path in Import Files, so LIBPATH fires.
11491      shlibpath_overrides_runpath=yes
11492      ;;
11493    *,no) # both, prefer aix
11494      dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
11495      library_names_spec='$libname$release.a $libname.a'
11496      soname_spec='$libname$release$shared_ext$major'
11497      # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
11498      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)'
11499      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"'
11500      ;;
11501    esac
11502    shlibpath_var=LIBPATH
11503  fi
11504  ;;
11505
11506amigaos*)
11507  case $host_cpu in
11508  powerpc)
11509    # Since July 2007 AmigaOS4 officially supports .so libraries.
11510    # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
11511    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11512    ;;
11513  m68k)
11514    library_names_spec='$libname.ixlibrary $libname.a'
11515    # Create ${libname}_ixlibrary.a entries in /sys/libs.
11516    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'
11517    ;;
11518  esac
11519  ;;
11520
11521beos*)
11522  library_names_spec='$libname$shared_ext'
11523  dynamic_linker="$host_os ld.so"
11524  shlibpath_var=LIBRARY_PATH
11525  ;;
11526
11527bsdi[45]*)
11528  version_type=linux # correct to gnu/linux during the next big refactor
11529  need_version=no
11530  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11531  soname_spec='$libname$release$shared_ext$major'
11532  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11533  shlibpath_var=LD_LIBRARY_PATH
11534  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11535  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11536  # the default ld.so.conf also contains /usr/contrib/lib and
11537  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11538  # libtool to hard-code these into programs
11539  ;;
11540
11541cygwin* | mingw* | pw32* | cegcc*)
11542  version_type=windows
11543  shrext_cmds=.dll
11544  need_version=no
11545  need_lib_prefix=no
11546
11547  case $GCC,$cc_basename in
11548  yes,*)
11549    # gcc
11550    library_names_spec='$libname.dll.a'
11551    # DLL is installed to $(libdir)/../bin by postinstall_cmds
11552    postinstall_cmds='base_file=`basename \$file`~
11553      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
11554      dldir=$destdir/`dirname \$dlpath`~
11555      test -d \$dldir || mkdir -p \$dldir~
11556      $install_prog $dir/$dlname \$dldir/$dlname~
11557      chmod a+x \$dldir/$dlname~
11558      if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11559        eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11560      fi'
11561    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11562      dlpath=$dir/\$dldll~
11563       $RM \$dlpath'
11564    shlibpath_overrides_runpath=yes
11565
11566    case $host_os in
11567    cygwin*)
11568      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11569      soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11570
11571      sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
11572      ;;
11573    mingw* | cegcc*)
11574      # MinGW DLLs use traditional 'lib' prefix
11575      soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11576      ;;
11577    pw32*)
11578      # pw32 DLLs use 'pw' prefix rather than 'lib'
11579      library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11580      ;;
11581    esac
11582    dynamic_linker='Win32 ld.exe'
11583    ;;
11584
11585  *,cl*)
11586    # Native MSVC
11587    libname_spec='$name'
11588    soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11589    library_names_spec='$libname.dll.lib'
11590
11591    case $build_os in
11592    mingw*)
11593      sys_lib_search_path_spec=
11594      lt_save_ifs=$IFS
11595      IFS=';'
11596      for lt_path in $LIB
11597      do
11598        IFS=$lt_save_ifs
11599        # Let DOS variable expansion print the short 8.3 style file name.
11600        lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
11601        sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
11602      done
11603      IFS=$lt_save_ifs
11604      # Convert to MSYS style.
11605      sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
11606      ;;
11607    cygwin*)
11608      # Convert to unix form, then to dos form, then back to unix form
11609      # but this time dos style (no spaces!) so that the unix form looks
11610      # like /cygdrive/c/PROGRA~1:/cygdr...
11611      sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
11612      sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
11613      sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11614      ;;
11615    *)
11616      sys_lib_search_path_spec=$LIB
11617      if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
11618        # It is most probably a Windows format PATH.
11619        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11620      else
11621        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11622      fi
11623      # FIXME: find the short name or the path components, as spaces are
11624      # common. (e.g. "Program Files" -> "PROGRA~1")
11625      ;;
11626    esac
11627
11628    # DLL is installed to $(libdir)/../bin by postinstall_cmds
11629    postinstall_cmds='base_file=`basename \$file`~
11630      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
11631      dldir=$destdir/`dirname \$dlpath`~
11632      test -d \$dldir || mkdir -p \$dldir~
11633      $install_prog $dir/$dlname \$dldir/$dlname'
11634    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11635      dlpath=$dir/\$dldll~
11636       $RM \$dlpath'
11637    shlibpath_overrides_runpath=yes
11638    dynamic_linker='Win32 link.exe'
11639    ;;
11640
11641  *)
11642    # Assume MSVC wrapper
11643    library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
11644    dynamic_linker='Win32 ld.exe'
11645    ;;
11646  esac
11647  # FIXME: first we should search . and the directory the executable is in
11648  shlibpath_var=PATH
11649  ;;
11650
11651darwin* | rhapsody*)
11652  dynamic_linker="$host_os dyld"
11653  version_type=darwin
11654  need_lib_prefix=no
11655  need_version=no
11656  library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
11657  soname_spec='$libname$release$major$shared_ext'
11658  shlibpath_overrides_runpath=yes
11659  shlibpath_var=DYLD_LIBRARY_PATH
11660  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
11661
11662  sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
11663  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11664  ;;
11665
11666dgux*)
11667  version_type=linux # correct to gnu/linux during the next big refactor
11668  need_lib_prefix=no
11669  need_version=no
11670  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11671  soname_spec='$libname$release$shared_ext$major'
11672  shlibpath_var=LD_LIBRARY_PATH
11673  ;;
11674
11675freebsd* | dragonfly*)
11676  # DragonFly does not have aout.  When/if they implement a new
11677  # versioning mechanism, adjust this.
11678  if test -x /usr/bin/objformat; then
11679    objformat=`/usr/bin/objformat`
11680  else
11681    case $host_os in
11682    freebsd[23].*) objformat=aout ;;
11683    *) objformat=elf ;;
11684    esac
11685  fi
11686  version_type=freebsd-$objformat
11687  case $version_type in
11688    freebsd-elf*)
11689      library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11690      soname_spec='$libname$release$shared_ext$major'
11691      need_version=no
11692      need_lib_prefix=no
11693      ;;
11694    freebsd-*)
11695      library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11696      need_version=yes
11697      ;;
11698  esac
11699  shlibpath_var=LD_LIBRARY_PATH
11700  case $host_os in
11701  freebsd2.*)
11702    shlibpath_overrides_runpath=yes
11703    ;;
11704  freebsd3.[01]* | freebsdelf3.[01]*)
11705    shlibpath_overrides_runpath=yes
11706    hardcode_into_libs=yes
11707    ;;
11708  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
11709  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
11710    shlibpath_overrides_runpath=no
11711    hardcode_into_libs=yes
11712    ;;
11713  *) # from 4.6 on, and DragonFly
11714    shlibpath_overrides_runpath=yes
11715    hardcode_into_libs=yes
11716    ;;
11717  esac
11718  ;;
11719
11720haiku*)
11721  version_type=linux # correct to gnu/linux during the next big refactor
11722  need_lib_prefix=no
11723  need_version=no
11724  dynamic_linker="$host_os runtime_loader"
11725  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11726  soname_spec='$libname$release$shared_ext$major'
11727  shlibpath_var=LIBRARY_PATH
11728  shlibpath_overrides_runpath=no
11729  sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
11730  hardcode_into_libs=yes
11731  ;;
11732
11733hpux9* | hpux10* | hpux11*)
11734  # Give a soname corresponding to the major version so that dld.sl refuses to
11735  # link against other versions.
11736  version_type=sunos
11737  need_lib_prefix=no
11738  need_version=no
11739  case $host_cpu in
11740  ia64*)
11741    shrext_cmds='.so'
11742    hardcode_into_libs=yes
11743    dynamic_linker="$host_os dld.so"
11744    shlibpath_var=LD_LIBRARY_PATH
11745    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11746    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11747    soname_spec='$libname$release$shared_ext$major'
11748    if test 32 = "$HPUX_IA64_MODE"; then
11749      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11750      sys_lib_dlsearch_path_spec=/usr/lib/hpux32
11751    else
11752      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11753      sys_lib_dlsearch_path_spec=/usr/lib/hpux64
11754    fi
11755    ;;
11756  hppa*64*)
11757    shrext_cmds='.sl'
11758    hardcode_into_libs=yes
11759    dynamic_linker="$host_os dld.sl"
11760    shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11761    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11762    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11763    soname_spec='$libname$release$shared_ext$major'
11764    sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11765    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11766    ;;
11767  *)
11768    shrext_cmds='.sl'
11769    dynamic_linker="$host_os dld.sl"
11770    shlibpath_var=SHLIB_PATH
11771    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11772    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11773    soname_spec='$libname$release$shared_ext$major'
11774    ;;
11775  esac
11776  # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
11777  postinstall_cmds='chmod 555 $lib'
11778  # or fails outright, so override atomically:
11779  install_override_mode=555
11780  ;;
11781
11782interix[3-9]*)
11783  version_type=linux # correct to gnu/linux during the next big refactor
11784  need_lib_prefix=no
11785  need_version=no
11786  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11787  soname_spec='$libname$release$shared_ext$major'
11788  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
11789  shlibpath_var=LD_LIBRARY_PATH
11790  shlibpath_overrides_runpath=no
11791  hardcode_into_libs=yes
11792  ;;
11793
11794irix5* | irix6* | nonstopux*)
11795  case $host_os in
11796    nonstopux*) version_type=nonstopux ;;
11797    *)
11798	if test yes = "$lt_cv_prog_gnu_ld"; then
11799		version_type=linux # correct to gnu/linux during the next big refactor
11800	else
11801		version_type=irix
11802	fi ;;
11803  esac
11804  need_lib_prefix=no
11805  need_version=no
11806  soname_spec='$libname$release$shared_ext$major'
11807  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
11808  case $host_os in
11809  irix5* | nonstopux*)
11810    libsuff= shlibsuff=
11811    ;;
11812  *)
11813    case $LD in # libtool.m4 will add one of these switches to LD
11814    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11815      libsuff= shlibsuff= libmagic=32-bit;;
11816    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11817      libsuff=32 shlibsuff=N32 libmagic=N32;;
11818    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11819      libsuff=64 shlibsuff=64 libmagic=64-bit;;
11820    *) libsuff= shlibsuff= libmagic=never-match;;
11821    esac
11822    ;;
11823  esac
11824  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11825  shlibpath_overrides_runpath=no
11826  sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
11827  sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
11828  hardcode_into_libs=yes
11829  ;;
11830
11831# No shared lib support for Linux oldld, aout, or coff.
11832linux*oldld* | linux*aout* | linux*coff*)
11833  dynamic_linker=no
11834  ;;
11835
11836linux*android*)
11837  version_type=none # Android doesn't support versioned libraries.
11838  need_lib_prefix=no
11839  need_version=no
11840  library_names_spec='$libname$release$shared_ext'
11841  soname_spec='$libname$release$shared_ext'
11842  finish_cmds=
11843  shlibpath_var=LD_LIBRARY_PATH
11844  shlibpath_overrides_runpath=yes
11845
11846  # This implies no fast_install, which is unacceptable.
11847  # Some rework will be needed to allow for fast_install
11848  # before this can be enabled.
11849  hardcode_into_libs=yes
11850
11851  dynamic_linker='Android linker'
11852  # Don't embed -rpath directories since the linker doesn't support them.
11853  hardcode_libdir_flag_spec='-L$libdir'
11854  ;;
11855
11856# This must be glibc/ELF.
11857linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
11858  version_type=linux # correct to gnu/linux during the next big refactor
11859  need_lib_prefix=no
11860  need_version=no
11861  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11862  soname_spec='$libname$release$shared_ext$major'
11863  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11864  shlibpath_var=LD_LIBRARY_PATH
11865  shlibpath_overrides_runpath=no
11866
11867  # Some binutils ld are patched to set DT_RUNPATH
11868  if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
11869  $as_echo_n "(cached) " >&6
11870else
11871  lt_cv_shlibpath_overrides_runpath=no
11872    save_LDFLAGS=$LDFLAGS
11873    save_libdir=$libdir
11874    eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
11875	 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
11876    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11877/* end confdefs.h.  */
11878
11879int
11880main ()
11881{
11882
11883  ;
11884  return 0;
11885}
11886_ACEOF
11887if ac_fn_c_try_link "$LINENO"; then :
11888  if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
11889  lt_cv_shlibpath_overrides_runpath=yes
11890fi
11891fi
11892rm -f core conftest.err conftest.$ac_objext \
11893    conftest$ac_exeext conftest.$ac_ext
11894    LDFLAGS=$save_LDFLAGS
11895    libdir=$save_libdir
11896
11897fi
11898
11899  shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
11900
11901  # This implies no fast_install, which is unacceptable.
11902  # Some rework will be needed to allow for fast_install
11903  # before this can be enabled.
11904  hardcode_into_libs=yes
11905
11906  # Ideally, we could use ldconfig to report *all* directores which are
11907  # searched for libraries, however this is still not possible.  Aside from not
11908  # being certain /sbin/ldconfig is available, command
11909  # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
11910  # even though it is searched at run-time.  Try to do the best guess by
11911  # appending ld.so.conf contents (and includes) to the search path.
11912  if test -f /etc/ld.so.conf; then
11913    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' ' '`
11914    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11915  fi
11916
11917  # We used to test for /lib/ld.so.1 and disable shared libraries on
11918  # powerpc, because MkLinux only supported shared libraries with the
11919  # GNU dynamic linker.  Since this was broken with cross compilers,
11920  # most powerpc-linux boxes support dynamic linking these days and
11921  # people can always --disable-shared, the test was removed, and we
11922  # assume the GNU/Linux dynamic linker is in use.
11923  dynamic_linker='GNU/Linux ld.so'
11924  ;;
11925
11926netbsd*)
11927  version_type=sunos
11928  need_lib_prefix=no
11929  need_version=no
11930  if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11931    library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11932    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11933    dynamic_linker='NetBSD (a.out) ld.so'
11934  else
11935    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11936    soname_spec='$libname$release$shared_ext$major'
11937    dynamic_linker='NetBSD ld.elf_so'
11938  fi
11939  shlibpath_var=LD_LIBRARY_PATH
11940  shlibpath_overrides_runpath=yes
11941  hardcode_into_libs=yes
11942  ;;
11943
11944newsos6)
11945  version_type=linux # correct to gnu/linux during the next big refactor
11946  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11947  shlibpath_var=LD_LIBRARY_PATH
11948  shlibpath_overrides_runpath=yes
11949  ;;
11950
11951*nto* | *qnx*)
11952  version_type=qnx
11953  need_lib_prefix=no
11954  need_version=no
11955  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11956  soname_spec='$libname$release$shared_ext$major'
11957  shlibpath_var=LD_LIBRARY_PATH
11958  shlibpath_overrides_runpath=no
11959  hardcode_into_libs=yes
11960  dynamic_linker='ldqnx.so'
11961  ;;
11962
11963openbsd* | bitrig*)
11964  version_type=sunos
11965  sys_lib_dlsearch_path_spec=/usr/lib
11966  need_lib_prefix=no
11967  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
11968    need_version=no
11969  else
11970    need_version=yes
11971  fi
11972  library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11973  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11974  shlibpath_var=LD_LIBRARY_PATH
11975  shlibpath_overrides_runpath=yes
11976  ;;
11977
11978os2*)
11979  libname_spec='$name'
11980  version_type=windows
11981  shrext_cmds=.dll
11982  need_version=no
11983  need_lib_prefix=no
11984  # OS/2 can only load a DLL with a base name of 8 characters or less.
11985  soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
11986    v=$($ECHO $release$versuffix | tr -d .-);
11987    n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
11988    $ECHO $n$v`$shared_ext'
11989  library_names_spec='${libname}_dll.$libext'
11990  dynamic_linker='OS/2 ld.exe'
11991  shlibpath_var=BEGINLIBPATH
11992  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11993  sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11994  postinstall_cmds='base_file=`basename \$file`~
11995    dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
11996    dldir=$destdir/`dirname \$dlpath`~
11997    test -d \$dldir || mkdir -p \$dldir~
11998    $install_prog $dir/$dlname \$dldir/$dlname~
11999    chmod a+x \$dldir/$dlname~
12000    if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
12001      eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
12002    fi'
12003  postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
12004    dlpath=$dir/\$dldll~
12005    $RM \$dlpath'
12006  ;;
12007
12008osf3* | osf4* | osf5*)
12009  version_type=osf
12010  need_lib_prefix=no
12011  need_version=no
12012  soname_spec='$libname$release$shared_ext$major'
12013  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12014  shlibpath_var=LD_LIBRARY_PATH
12015  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
12016  sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12017  ;;
12018
12019rdos*)
12020  dynamic_linker=no
12021  ;;
12022
12023solaris*)
12024  version_type=linux # correct to gnu/linux during the next big refactor
12025  need_lib_prefix=no
12026  need_version=no
12027  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12028  soname_spec='$libname$release$shared_ext$major'
12029  shlibpath_var=LD_LIBRARY_PATH
12030  shlibpath_overrides_runpath=yes
12031  hardcode_into_libs=yes
12032  # ldd complains unless libraries are executable
12033  postinstall_cmds='chmod +x $lib'
12034  ;;
12035
12036sunos4*)
12037  version_type=sunos
12038  library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
12039  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
12040  shlibpath_var=LD_LIBRARY_PATH
12041  shlibpath_overrides_runpath=yes
12042  if test yes = "$with_gnu_ld"; then
12043    need_lib_prefix=no
12044  fi
12045  need_version=yes
12046  ;;
12047
12048sysv4 | sysv4.3*)
12049  version_type=linux # correct to gnu/linux during the next big refactor
12050  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12051  soname_spec='$libname$release$shared_ext$major'
12052  shlibpath_var=LD_LIBRARY_PATH
12053  case $host_vendor in
12054    sni)
12055      shlibpath_overrides_runpath=no
12056      need_lib_prefix=no
12057      runpath_var=LD_RUN_PATH
12058      ;;
12059    siemens)
12060      need_lib_prefix=no
12061      ;;
12062    motorola)
12063      need_lib_prefix=no
12064      need_version=no
12065      shlibpath_overrides_runpath=no
12066      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
12067      ;;
12068  esac
12069  ;;
12070
12071sysv4*MP*)
12072  if test -d /usr/nec; then
12073    version_type=linux # correct to gnu/linux during the next big refactor
12074    library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
12075    soname_spec='$libname$shared_ext.$major'
12076    shlibpath_var=LD_LIBRARY_PATH
12077  fi
12078  ;;
12079
12080sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
12081  version_type=sco
12082  need_lib_prefix=no
12083  need_version=no
12084  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
12085  soname_spec='$libname$release$shared_ext$major'
12086  shlibpath_var=LD_LIBRARY_PATH
12087  shlibpath_overrides_runpath=yes
12088  hardcode_into_libs=yes
12089  if test yes = "$with_gnu_ld"; then
12090    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
12091  else
12092    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
12093    case $host_os in
12094      sco3.2v5*)
12095        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
12096	;;
12097    esac
12098  fi
12099  sys_lib_dlsearch_path_spec='/usr/lib'
12100  ;;
12101
12102tpf*)
12103  # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
12104  version_type=linux # correct to gnu/linux during the next big refactor
12105  need_lib_prefix=no
12106  need_version=no
12107  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12108  shlibpath_var=LD_LIBRARY_PATH
12109  shlibpath_overrides_runpath=no
12110  hardcode_into_libs=yes
12111  ;;
12112
12113uts4*)
12114  version_type=linux # correct to gnu/linux during the next big refactor
12115  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12116  soname_spec='$libname$release$shared_ext$major'
12117  shlibpath_var=LD_LIBRARY_PATH
12118  ;;
12119
12120*)
12121  dynamic_linker=no
12122  ;;
12123esac
12124{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
12125$as_echo "$dynamic_linker" >&6; }
12126test no = "$dynamic_linker" && can_build_shared=no
12127
12128variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
12129if test yes = "$GCC"; then
12130  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
12131fi
12132
12133if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
12134  sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
12135fi
12136
12137if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
12138  sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
12139fi
12140
12141# remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
12142configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
12143
12144# ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
12145func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
12146
12147# to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
12148configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
12149
12150
12151
12152
12153
12154
12155
12156
12157
12158
12159
12160
12161
12162
12163
12164
12165
12166
12167
12168
12169
12170
12171
12172
12173
12174
12175
12176
12177
12178
12179
12180
12181
12182
12183
12184
12185
12186
12187
12188
12189
12190
12191
12192
12193
12194
12195
12196
12197
12198
12199
12200
12201
12202
12203
12204
12205
12206
12207
12208
12209
12210
12211
12212
12213
12214
12215
12216
12217
12218
12219
12220
12221
12222
12223
12224
12225
12226
12227
12228
12229
12230
12231
12232
12233
12234
12235
12236
12237
12238
12239
12240
12241
12242
12243
12244
12245
12246  { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
12247$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
12248hardcode_action=
12249if test -n "$hardcode_libdir_flag_spec" ||
12250   test -n "$runpath_var" ||
12251   test yes = "$hardcode_automatic"; then
12252
12253  # We can hardcode non-existent directories.
12254  if test no != "$hardcode_direct" &&
12255     # If the only mechanism to avoid hardcoding is shlibpath_var, we
12256     # have to relink, otherwise we might link with an installed library
12257     # when we should be linking with a yet-to-be-installed one
12258     ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
12259     test no != "$hardcode_minus_L"; then
12260    # Linking always hardcodes the temporary library directory.
12261    hardcode_action=relink
12262  else
12263    # We can link without hardcoding, and we can hardcode nonexisting dirs.
12264    hardcode_action=immediate
12265  fi
12266else
12267  # We cannot hardcode anything, or else we can only hardcode existing
12268  # directories.
12269  hardcode_action=unsupported
12270fi
12271{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
12272$as_echo "$hardcode_action" >&6; }
12273
12274if test relink = "$hardcode_action" ||
12275   test yes = "$inherit_rpath"; then
12276  # Fast installation is not supported
12277  enable_fast_install=no
12278elif test yes = "$shlibpath_overrides_runpath" ||
12279     test no = "$enable_shared"; then
12280  # Fast installation is not necessary
12281  enable_fast_install=needless
12282fi
12283
12284
12285
12286
12287
12288
12289  if test yes != "$enable_dlopen"; then
12290  enable_dlopen=unknown
12291  enable_dlopen_self=unknown
12292  enable_dlopen_self_static=unknown
12293else
12294  lt_cv_dlopen=no
12295  lt_cv_dlopen_libs=
12296
12297  case $host_os in
12298  beos*)
12299    lt_cv_dlopen=load_add_on
12300    lt_cv_dlopen_libs=
12301    lt_cv_dlopen_self=yes
12302    ;;
12303
12304  mingw* | pw32* | cegcc*)
12305    lt_cv_dlopen=LoadLibrary
12306    lt_cv_dlopen_libs=
12307    ;;
12308
12309  cygwin*)
12310    lt_cv_dlopen=dlopen
12311    lt_cv_dlopen_libs=
12312    ;;
12313
12314  darwin*)
12315    # if libdl is installed we need to link against it
12316    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12317$as_echo_n "checking for dlopen in -ldl... " >&6; }
12318if ${ac_cv_lib_dl_dlopen+:} false; then :
12319  $as_echo_n "(cached) " >&6
12320else
12321  ac_check_lib_save_LIBS=$LIBS
12322LIBS="-ldl  $LIBS"
12323cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12324/* end confdefs.h.  */
12325
12326/* Override any GCC internal prototype to avoid an error.
12327   Use char because int might match the return type of a GCC
12328   builtin and then its argument prototype would still apply.  */
12329#ifdef __cplusplus
12330extern "C"
12331#endif
12332char dlopen ();
12333int
12334main ()
12335{
12336return dlopen ();
12337  ;
12338  return 0;
12339}
12340_ACEOF
12341if ac_fn_c_try_link "$LINENO"; then :
12342  ac_cv_lib_dl_dlopen=yes
12343else
12344  ac_cv_lib_dl_dlopen=no
12345fi
12346rm -f core conftest.err conftest.$ac_objext \
12347    conftest$ac_exeext conftest.$ac_ext
12348LIBS=$ac_check_lib_save_LIBS
12349fi
12350{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12351$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12352if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
12353  lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
12354else
12355
12356    lt_cv_dlopen=dyld
12357    lt_cv_dlopen_libs=
12358    lt_cv_dlopen_self=yes
12359
12360fi
12361
12362    ;;
12363
12364  tpf*)
12365    # Don't try to run any link tests for TPF.  We know it's impossible
12366    # because TPF is a cross-compiler, and we know how we open DSOs.
12367    lt_cv_dlopen=dlopen
12368    lt_cv_dlopen_libs=
12369    lt_cv_dlopen_self=no
12370    ;;
12371
12372  *)
12373    ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
12374if test "x$ac_cv_func_shl_load" = xyes; then :
12375  lt_cv_dlopen=shl_load
12376else
12377  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
12378$as_echo_n "checking for shl_load in -ldld... " >&6; }
12379if ${ac_cv_lib_dld_shl_load+:} false; then :
12380  $as_echo_n "(cached) " >&6
12381else
12382  ac_check_lib_save_LIBS=$LIBS
12383LIBS="-ldld  $LIBS"
12384cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12385/* end confdefs.h.  */
12386
12387/* Override any GCC internal prototype to avoid an error.
12388   Use char because int might match the return type of a GCC
12389   builtin and then its argument prototype would still apply.  */
12390#ifdef __cplusplus
12391extern "C"
12392#endif
12393char shl_load ();
12394int
12395main ()
12396{
12397return shl_load ();
12398  ;
12399  return 0;
12400}
12401_ACEOF
12402if ac_fn_c_try_link "$LINENO"; then :
12403  ac_cv_lib_dld_shl_load=yes
12404else
12405  ac_cv_lib_dld_shl_load=no
12406fi
12407rm -f core conftest.err conftest.$ac_objext \
12408    conftest$ac_exeext conftest.$ac_ext
12409LIBS=$ac_check_lib_save_LIBS
12410fi
12411{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
12412$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
12413if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
12414  lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
12415else
12416  ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
12417if test "x$ac_cv_func_dlopen" = xyes; then :
12418  lt_cv_dlopen=dlopen
12419else
12420  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12421$as_echo_n "checking for dlopen in -ldl... " >&6; }
12422if ${ac_cv_lib_dl_dlopen+:} false; then :
12423  $as_echo_n "(cached) " >&6
12424else
12425  ac_check_lib_save_LIBS=$LIBS
12426LIBS="-ldl  $LIBS"
12427cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12428/* end confdefs.h.  */
12429
12430/* Override any GCC internal prototype to avoid an error.
12431   Use char because int might match the return type of a GCC
12432   builtin and then its argument prototype would still apply.  */
12433#ifdef __cplusplus
12434extern "C"
12435#endif
12436char dlopen ();
12437int
12438main ()
12439{
12440return dlopen ();
12441  ;
12442  return 0;
12443}
12444_ACEOF
12445if ac_fn_c_try_link "$LINENO"; then :
12446  ac_cv_lib_dl_dlopen=yes
12447else
12448  ac_cv_lib_dl_dlopen=no
12449fi
12450rm -f core conftest.err conftest.$ac_objext \
12451    conftest$ac_exeext conftest.$ac_ext
12452LIBS=$ac_check_lib_save_LIBS
12453fi
12454{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12455$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12456if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
12457  lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
12458else
12459  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
12460$as_echo_n "checking for dlopen in -lsvld... " >&6; }
12461if ${ac_cv_lib_svld_dlopen+:} false; then :
12462  $as_echo_n "(cached) " >&6
12463else
12464  ac_check_lib_save_LIBS=$LIBS
12465LIBS="-lsvld  $LIBS"
12466cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12467/* end confdefs.h.  */
12468
12469/* Override any GCC internal prototype to avoid an error.
12470   Use char because int might match the return type of a GCC
12471   builtin and then its argument prototype would still apply.  */
12472#ifdef __cplusplus
12473extern "C"
12474#endif
12475char dlopen ();
12476int
12477main ()
12478{
12479return dlopen ();
12480  ;
12481  return 0;
12482}
12483_ACEOF
12484if ac_fn_c_try_link "$LINENO"; then :
12485  ac_cv_lib_svld_dlopen=yes
12486else
12487  ac_cv_lib_svld_dlopen=no
12488fi
12489rm -f core conftest.err conftest.$ac_objext \
12490    conftest$ac_exeext conftest.$ac_ext
12491LIBS=$ac_check_lib_save_LIBS
12492fi
12493{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
12494$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
12495if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
12496  lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
12497else
12498  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
12499$as_echo_n "checking for dld_link in -ldld... " >&6; }
12500if ${ac_cv_lib_dld_dld_link+:} false; then :
12501  $as_echo_n "(cached) " >&6
12502else
12503  ac_check_lib_save_LIBS=$LIBS
12504LIBS="-ldld  $LIBS"
12505cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12506/* end confdefs.h.  */
12507
12508/* Override any GCC internal prototype to avoid an error.
12509   Use char because int might match the return type of a GCC
12510   builtin and then its argument prototype would still apply.  */
12511#ifdef __cplusplus
12512extern "C"
12513#endif
12514char dld_link ();
12515int
12516main ()
12517{
12518return dld_link ();
12519  ;
12520  return 0;
12521}
12522_ACEOF
12523if ac_fn_c_try_link "$LINENO"; then :
12524  ac_cv_lib_dld_dld_link=yes
12525else
12526  ac_cv_lib_dld_dld_link=no
12527fi
12528rm -f core conftest.err conftest.$ac_objext \
12529    conftest$ac_exeext conftest.$ac_ext
12530LIBS=$ac_check_lib_save_LIBS
12531fi
12532{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
12533$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
12534if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
12535  lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
12536fi
12537
12538
12539fi
12540
12541
12542fi
12543
12544
12545fi
12546
12547
12548fi
12549
12550
12551fi
12552
12553    ;;
12554  esac
12555
12556  if test no = "$lt_cv_dlopen"; then
12557    enable_dlopen=no
12558  else
12559    enable_dlopen=yes
12560  fi
12561
12562  case $lt_cv_dlopen in
12563  dlopen)
12564    save_CPPFLAGS=$CPPFLAGS
12565    test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12566
12567    save_LDFLAGS=$LDFLAGS
12568    wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12569
12570    save_LIBS=$LIBS
12571    LIBS="$lt_cv_dlopen_libs $LIBS"
12572
12573    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
12574$as_echo_n "checking whether a program can dlopen itself... " >&6; }
12575if ${lt_cv_dlopen_self+:} false; then :
12576  $as_echo_n "(cached) " >&6
12577else
12578  	  if test yes = "$cross_compiling"; then :
12579  lt_cv_dlopen_self=cross
12580else
12581  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12582  lt_status=$lt_dlunknown
12583  cat > conftest.$ac_ext <<_LT_EOF
12584#line $LINENO "configure"
12585#include "confdefs.h"
12586
12587#if HAVE_DLFCN_H
12588#include <dlfcn.h>
12589#endif
12590
12591#include <stdio.h>
12592
12593#ifdef RTLD_GLOBAL
12594#  define LT_DLGLOBAL		RTLD_GLOBAL
12595#else
12596#  ifdef DL_GLOBAL
12597#    define LT_DLGLOBAL		DL_GLOBAL
12598#  else
12599#    define LT_DLGLOBAL		0
12600#  endif
12601#endif
12602
12603/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12604   find out it does not work in some platform. */
12605#ifndef LT_DLLAZY_OR_NOW
12606#  ifdef RTLD_LAZY
12607#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
12608#  else
12609#    ifdef DL_LAZY
12610#      define LT_DLLAZY_OR_NOW		DL_LAZY
12611#    else
12612#      ifdef RTLD_NOW
12613#        define LT_DLLAZY_OR_NOW	RTLD_NOW
12614#      else
12615#        ifdef DL_NOW
12616#          define LT_DLLAZY_OR_NOW	DL_NOW
12617#        else
12618#          define LT_DLLAZY_OR_NOW	0
12619#        endif
12620#      endif
12621#    endif
12622#  endif
12623#endif
12624
12625/* When -fvisibility=hidden is used, assume the code has been annotated
12626   correspondingly for the symbols needed.  */
12627#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12628int fnord () __attribute__((visibility("default")));
12629#endif
12630
12631int fnord () { return 42; }
12632int main ()
12633{
12634  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12635  int status = $lt_dlunknown;
12636
12637  if (self)
12638    {
12639      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
12640      else
12641        {
12642	  if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
12643          else puts (dlerror ());
12644	}
12645      /* dlclose (self); */
12646    }
12647  else
12648    puts (dlerror ());
12649
12650  return status;
12651}
12652_LT_EOF
12653  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12654  (eval $ac_link) 2>&5
12655  ac_status=$?
12656  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12657  test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
12658    (./conftest; exit; ) >&5 2>/dev/null
12659    lt_status=$?
12660    case x$lt_status in
12661      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12662      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12663      x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
12664    esac
12665  else :
12666    # compilation failed
12667    lt_cv_dlopen_self=no
12668  fi
12669fi
12670rm -fr conftest*
12671
12672
12673fi
12674{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
12675$as_echo "$lt_cv_dlopen_self" >&6; }
12676
12677    if test yes = "$lt_cv_dlopen_self"; then
12678      wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
12679      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
12680$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
12681if ${lt_cv_dlopen_self_static+:} false; then :
12682  $as_echo_n "(cached) " >&6
12683else
12684  	  if test yes = "$cross_compiling"; then :
12685  lt_cv_dlopen_self_static=cross
12686else
12687  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12688  lt_status=$lt_dlunknown
12689  cat > conftest.$ac_ext <<_LT_EOF
12690#line $LINENO "configure"
12691#include "confdefs.h"
12692
12693#if HAVE_DLFCN_H
12694#include <dlfcn.h>
12695#endif
12696
12697#include <stdio.h>
12698
12699#ifdef RTLD_GLOBAL
12700#  define LT_DLGLOBAL		RTLD_GLOBAL
12701#else
12702#  ifdef DL_GLOBAL
12703#    define LT_DLGLOBAL		DL_GLOBAL
12704#  else
12705#    define LT_DLGLOBAL		0
12706#  endif
12707#endif
12708
12709/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12710   find out it does not work in some platform. */
12711#ifndef LT_DLLAZY_OR_NOW
12712#  ifdef RTLD_LAZY
12713#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
12714#  else
12715#    ifdef DL_LAZY
12716#      define LT_DLLAZY_OR_NOW		DL_LAZY
12717#    else
12718#      ifdef RTLD_NOW
12719#        define LT_DLLAZY_OR_NOW	RTLD_NOW
12720#      else
12721#        ifdef DL_NOW
12722#          define LT_DLLAZY_OR_NOW	DL_NOW
12723#        else
12724#          define LT_DLLAZY_OR_NOW	0
12725#        endif
12726#      endif
12727#    endif
12728#  endif
12729#endif
12730
12731/* When -fvisibility=hidden is used, assume the code has been annotated
12732   correspondingly for the symbols needed.  */
12733#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12734int fnord () __attribute__((visibility("default")));
12735#endif
12736
12737int fnord () { return 42; }
12738int main ()
12739{
12740  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12741  int status = $lt_dlunknown;
12742
12743  if (self)
12744    {
12745      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
12746      else
12747        {
12748	  if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
12749          else puts (dlerror ());
12750	}
12751      /* dlclose (self); */
12752    }
12753  else
12754    puts (dlerror ());
12755
12756  return status;
12757}
12758_LT_EOF
12759  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12760  (eval $ac_link) 2>&5
12761  ac_status=$?
12762  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12763  test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
12764    (./conftest; exit; ) >&5 2>/dev/null
12765    lt_status=$?
12766    case x$lt_status in
12767      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12768      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12769      x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
12770    esac
12771  else :
12772    # compilation failed
12773    lt_cv_dlopen_self_static=no
12774  fi
12775fi
12776rm -fr conftest*
12777
12778
12779fi
12780{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
12781$as_echo "$lt_cv_dlopen_self_static" >&6; }
12782    fi
12783
12784    CPPFLAGS=$save_CPPFLAGS
12785    LDFLAGS=$save_LDFLAGS
12786    LIBS=$save_LIBS
12787    ;;
12788  esac
12789
12790  case $lt_cv_dlopen_self in
12791  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12792  *) enable_dlopen_self=unknown ;;
12793  esac
12794
12795  case $lt_cv_dlopen_self_static in
12796  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12797  *) enable_dlopen_self_static=unknown ;;
12798  esac
12799fi
12800
12801
12802
12803
12804
12805
12806
12807
12808
12809
12810
12811
12812
12813
12814
12815
12816
12817striplib=
12818old_striplib=
12819{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
12820$as_echo_n "checking whether stripping libraries is possible... " >&6; }
12821if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
12822  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
12823  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
12824  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12825$as_echo "yes" >&6; }
12826else
12827# FIXME - insert some real tests, host_os isn't really good enough
12828  case $host_os in
12829  darwin*)
12830    if test -n "$STRIP"; then
12831      striplib="$STRIP -x"
12832      old_striplib="$STRIP -S"
12833      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12834$as_echo "yes" >&6; }
12835    else
12836      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12837$as_echo "no" >&6; }
12838    fi
12839    ;;
12840  *)
12841    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12842$as_echo "no" >&6; }
12843    ;;
12844  esac
12845fi
12846
12847
12848
12849
12850
12851
12852
12853
12854
12855
12856
12857
12858  # Report what library types will actually be built
12859  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
12860$as_echo_n "checking if libtool supports shared libraries... " >&6; }
12861  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
12862$as_echo "$can_build_shared" >&6; }
12863
12864  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
12865$as_echo_n "checking whether to build shared libraries... " >&6; }
12866  test no = "$can_build_shared" && enable_shared=no
12867
12868  # On AIX, shared libraries and static libraries use the same namespace, and
12869  # are all built from PIC.
12870  case $host_os in
12871  aix3*)
12872    test yes = "$enable_shared" && enable_static=no
12873    if test -n "$RANLIB"; then
12874      archive_cmds="$archive_cmds~\$RANLIB \$lib"
12875      postinstall_cmds='$RANLIB $lib'
12876    fi
12877    ;;
12878
12879  aix[4-9]*)
12880    if test ia64 != "$host_cpu"; then
12881      case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
12882      yes,aix,yes) ;;			# shared object as lib.so file only
12883      yes,svr4,*) ;;			# shared object as lib.so archive member only
12884      yes,*) enable_static=no ;;	# shared object in lib.a archive as well
12885      esac
12886    fi
12887    ;;
12888  esac
12889  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
12890$as_echo "$enable_shared" >&6; }
12891
12892  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
12893$as_echo_n "checking whether to build static libraries... " >&6; }
12894  # Make sure either enable_shared or enable_static is yes.
12895  test yes = "$enable_shared" || enable_static=yes
12896  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
12897$as_echo "$enable_static" >&6; }
12898
12899
12900
12901
12902fi
12903ac_ext=c
12904ac_cpp='$CPP $CPPFLAGS'
12905ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12906ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12907ac_compiler_gnu=$ac_cv_c_compiler_gnu
12908
12909CC=$lt_save_CC
12910
12911
12912
12913
12914
12915
12916
12917
12918
12919
12920
12921
12922
12923
12924
12925        ac_config_commands="$ac_config_commands libtool"
12926
12927
12928
12929
12930# Only expand once:
12931
12932
12933
12934
12935# Check for library functions that SQLite can optionally use.
12936for ac_func in fdatasync usleep fullfsync localtime_r gmtime_r
12937do :
12938  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12939ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
12940if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
12941  cat >>confdefs.h <<_ACEOF
12942#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
12943_ACEOF
12944
12945fi
12946done
12947
12948ac_fn_c_check_decl "$LINENO" "strerror_r" "ac_cv_have_decl_strerror_r" "$ac_includes_default"
12949if test "x$ac_cv_have_decl_strerror_r" = xyes; then :
12950  ac_have_decl=1
12951else
12952  ac_have_decl=0
12953fi
12954
12955cat >>confdefs.h <<_ACEOF
12956#define HAVE_DECL_STRERROR_R $ac_have_decl
12957_ACEOF
12958
12959for ac_func in strerror_r
12960do :
12961  ac_fn_c_check_func "$LINENO" "strerror_r" "ac_cv_func_strerror_r"
12962if test "x$ac_cv_func_strerror_r" = xyes; then :
12963  cat >>confdefs.h <<_ACEOF
12964#define HAVE_STRERROR_R 1
12965_ACEOF
12966
12967fi
12968done
12969
12970{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strerror_r returns char *" >&5
12971$as_echo_n "checking whether strerror_r returns char *... " >&6; }
12972if ${ac_cv_func_strerror_r_char_p+:} false; then :
12973  $as_echo_n "(cached) " >&6
12974else
12975
12976    ac_cv_func_strerror_r_char_p=no
12977    if test $ac_cv_have_decl_strerror_r = yes; then
12978      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12979/* end confdefs.h.  */
12980$ac_includes_default
12981int
12982main ()
12983{
12984
12985	  char buf[100];
12986	  char x = *strerror_r (0, buf, sizeof buf);
12987	  char *p = strerror_r (0, buf, sizeof buf);
12988	  return !p || x;
12989
12990  ;
12991  return 0;
12992}
12993_ACEOF
12994if ac_fn_c_try_compile "$LINENO"; then :
12995  ac_cv_func_strerror_r_char_p=yes
12996fi
12997rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12998    else
12999      # strerror_r is not declared.  Choose between
13000      # systems that have relatively inaccessible declarations for the
13001      # function.  BeOS and DEC UNIX 4.0 fall in this category, but the
13002      # former has a strerror_r that returns char*, while the latter
13003      # has a strerror_r that returns `int'.
13004      # This test should segfault on the DEC system.
13005      if test "$cross_compiling" = yes; then :
13006  :
13007else
13008  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13009/* end confdefs.h.  */
13010$ac_includes_default
13011	extern char *strerror_r ();
13012int
13013main ()
13014{
13015char buf[100];
13016	  char x = *strerror_r (0, buf, sizeof buf);
13017	  return ! isalpha (x);
13018  ;
13019  return 0;
13020}
13021_ACEOF
13022if ac_fn_c_try_run "$LINENO"; then :
13023  ac_cv_func_strerror_r_char_p=yes
13024fi
13025rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13026  conftest.$ac_objext conftest.beam conftest.$ac_ext
13027fi
13028
13029    fi
13030
13031fi
13032{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strerror_r_char_p" >&5
13033$as_echo "$ac_cv_func_strerror_r_char_p" >&6; }
13034if test $ac_cv_func_strerror_r_char_p = yes; then
13035
13036$as_echo "#define STRERROR_R_CHAR_P 1" >>confdefs.h
13037
13038fi
13039
13040
13041ac_config_files="$ac_config_files Makefile sqlite3.pc"
13042
13043
13044
13045#-------------------------------------------------------------------------
13046# Two options to enable readline compatible libraries:
13047#
13048#   --enable-editline
13049#   --enable-readline
13050#
13051# Both are enabled by default. If, after command line processing both are
13052# still enabled, the script searches for editline first and automatically
13053# disables readline if it is found. So, to use readline explicitly, the
13054# user must pass "--disable-editline". To disable command line editing
13055# support altogether, "--disable-editline --disable-readline".
13056#
13057# When searching for either library, check for headers before libraries
13058# as some distros supply packages that contain libraries but not header
13059# files, which come as a separate development package.
13060#
13061# Check whether --enable-editline was given.
13062if test "${enable_editline+set}" = set; then :
13063  enableval=$enable_editline;
13064fi
13065
13066# Check whether --enable-readline was given.
13067if test "${enable_readline+set}" = set; then :
13068  enableval=$enable_readline;
13069fi
13070
13071
13072if  test x"$enable_editline" != xno ; then :
13073
13074  for ac_header in editline/readline.h
13075do :
13076  ac_fn_c_check_header_mongrel "$LINENO" "editline/readline.h" "ac_cv_header_editline_readline_h" "$ac_includes_default"
13077if test "x$ac_cv_header_editline_readline_h" = xyes; then :
13078  cat >>confdefs.h <<_ACEOF
13079#define HAVE_EDITLINE_READLINE_H 1
13080_ACEOF
13081
13082    sLIBS=$LIBS
13083    LIBS=""
13084    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing readline" >&5
13085$as_echo_n "checking for library containing readline... " >&6; }
13086if ${ac_cv_search_readline+:} false; then :
13087  $as_echo_n "(cached) " >&6
13088else
13089  ac_func_search_save_LIBS=$LIBS
13090cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13091/* end confdefs.h.  */
13092
13093/* Override any GCC internal prototype to avoid an error.
13094   Use char because int might match the return type of a GCC
13095   builtin and then its argument prototype would still apply.  */
13096#ifdef __cplusplus
13097extern "C"
13098#endif
13099char readline ();
13100int
13101main ()
13102{
13103return readline ();
13104  ;
13105  return 0;
13106}
13107_ACEOF
13108for ac_lib in '' edit; do
13109  if test -z "$ac_lib"; then
13110    ac_res="none required"
13111  else
13112    ac_res=-l$ac_lib
13113    LIBS="-l$ac_lib -ltinfo $ac_func_search_save_LIBS"
13114  fi
13115  if ac_fn_c_try_link "$LINENO"; then :
13116  ac_cv_search_readline=$ac_res
13117fi
13118rm -f core conftest.err conftest.$ac_objext \
13119    conftest$ac_exeext
13120  if ${ac_cv_search_readline+:} false; then :
13121  break
13122fi
13123done
13124if ${ac_cv_search_readline+:} false; then :
13125
13126else
13127  ac_cv_search_readline=no
13128fi
13129rm conftest.$ac_ext
13130LIBS=$ac_func_search_save_LIBS
13131fi
13132{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_readline" >&5
13133$as_echo "$ac_cv_search_readline" >&6; }
13134ac_res=$ac_cv_search_readline
13135if test "$ac_res" != no; then :
13136  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13137
13138
13139$as_echo "#define HAVE_EDITLINE 1" >>confdefs.h
13140
13141      READLINE_LIBS="$LIBS -ltinfo"
13142      enable_readline=no
13143
13144fi
13145
13146    { ac_cv_search_readline=; unset ac_cv_search_readline;}
13147    LIBS=$sLIBS
13148
13149fi
13150
13151done
13152
13153
13154fi
13155
13156if  test x"$enable_readline" != xno ; then :
13157
13158  for ac_header in readline/readline.h
13159do :
13160  ac_fn_c_check_header_mongrel "$LINENO" "readline/readline.h" "ac_cv_header_readline_readline_h" "$ac_includes_default"
13161if test "x$ac_cv_header_readline_readline_h" = xyes; then :
13162  cat >>confdefs.h <<_ACEOF
13163#define HAVE_READLINE_READLINE_H 1
13164_ACEOF
13165
13166    sLIBS=$LIBS
13167    LIBS=""
13168    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing tgetent" >&5
13169$as_echo_n "checking for library containing tgetent... " >&6; }
13170if ${ac_cv_search_tgetent+:} false; then :
13171  $as_echo_n "(cached) " >&6
13172else
13173  ac_func_search_save_LIBS=$LIBS
13174cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13175/* end confdefs.h.  */
13176
13177/* Override any GCC internal prototype to avoid an error.
13178   Use char because int might match the return type of a GCC
13179   builtin and then its argument prototype would still apply.  */
13180#ifdef __cplusplus
13181extern "C"
13182#endif
13183char tgetent ();
13184int
13185main ()
13186{
13187return tgetent ();
13188  ;
13189  return 0;
13190}
13191_ACEOF
13192for ac_lib in '' termcap curses ncurses ncursesw; do
13193  if test -z "$ac_lib"; then
13194    ac_res="none required"
13195  else
13196    ac_res=-l$ac_lib
13197    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
13198  fi
13199  if ac_fn_c_try_link "$LINENO"; then :
13200  ac_cv_search_tgetent=$ac_res
13201fi
13202rm -f core conftest.err conftest.$ac_objext \
13203    conftest$ac_exeext
13204  if ${ac_cv_search_tgetent+:} false; then :
13205  break
13206fi
13207done
13208if ${ac_cv_search_tgetent+:} false; then :
13209
13210else
13211  ac_cv_search_tgetent=no
13212fi
13213rm conftest.$ac_ext
13214LIBS=$ac_func_search_save_LIBS
13215fi
13216{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_tgetent" >&5
13217$as_echo "$ac_cv_search_tgetent" >&6; }
13218ac_res=$ac_cv_search_tgetent
13219if test "$ac_res" != no; then :
13220  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13221
13222fi
13223
13224    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing readline" >&5
13225$as_echo_n "checking for library containing readline... " >&6; }
13226if ${ac_cv_search_readline+:} false; then :
13227  $as_echo_n "(cached) " >&6
13228else
13229  ac_func_search_save_LIBS=$LIBS
13230cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13231/* end confdefs.h.  */
13232
13233/* Override any GCC internal prototype to avoid an error.
13234   Use char because int might match the return type of a GCC
13235   builtin and then its argument prototype would still apply.  */
13236#ifdef __cplusplus
13237extern "C"
13238#endif
13239char readline ();
13240int
13241main ()
13242{
13243return readline ();
13244  ;
13245  return 0;
13246}
13247_ACEOF
13248for ac_lib in '' readline edit; do
13249  if test -z "$ac_lib"; then
13250    ac_res="none required"
13251  else
13252    ac_res=-l$ac_lib
13253    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
13254  fi
13255  if ac_fn_c_try_link "$LINENO"; then :
13256  ac_cv_search_readline=$ac_res
13257fi
13258rm -f core conftest.err conftest.$ac_objext \
13259    conftest$ac_exeext
13260  if ${ac_cv_search_readline+:} false; then :
13261  break
13262fi
13263done
13264if ${ac_cv_search_readline+:} false; then :
13265
13266else
13267  ac_cv_search_readline=no
13268fi
13269rm conftest.$ac_ext
13270LIBS=$ac_func_search_save_LIBS
13271fi
13272{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_readline" >&5
13273$as_echo "$ac_cv_search_readline" >&6; }
13274ac_res=$ac_cv_search_readline
13275if test "$ac_res" != no; then :
13276  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13277
13278
13279$as_echo "#define HAVE_READLINE 1" >>confdefs.h
13280
13281      READLINE_LIBS=$LIBS
13282
13283fi
13284
13285    LIBS=$sLIBS
13286
13287fi
13288
13289done
13290
13291
13292fi
13293
13294
13295#-----------------------------------------------------------------------
13296
13297#-----------------------------------------------------------------------
13298#   --enable-threadsafe
13299#
13300# Check whether --enable-threadsafe was given.
13301if test "${enable_threadsafe+set}" = set; then :
13302  enableval=$enable_threadsafe;
13303else
13304  enable_threadsafe=yes
13305fi
13306
13307THREADSAFE_FLAGS=-DSQLITE_THREADSAFE=0
13308if test x"$enable_threadsafe" != "xno"; then
13309  THREADSAFE_FLAGS="-D_REENTRANT=1 -DSQLITE_THREADSAFE=1"
13310  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing pthread_create" >&5
13311$as_echo_n "checking for library containing pthread_create... " >&6; }
13312if ${ac_cv_search_pthread_create+:} false; then :
13313  $as_echo_n "(cached) " >&6
13314else
13315  ac_func_search_save_LIBS=$LIBS
13316cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13317/* end confdefs.h.  */
13318
13319/* Override any GCC internal prototype to avoid an error.
13320   Use char because int might match the return type of a GCC
13321   builtin and then its argument prototype would still apply.  */
13322#ifdef __cplusplus
13323extern "C"
13324#endif
13325char pthread_create ();
13326int
13327main ()
13328{
13329return pthread_create ();
13330  ;
13331  return 0;
13332}
13333_ACEOF
13334for ac_lib in '' pthread; do
13335  if test -z "$ac_lib"; then
13336    ac_res="none required"
13337  else
13338    ac_res=-l$ac_lib
13339    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
13340  fi
13341  if ac_fn_c_try_link "$LINENO"; then :
13342  ac_cv_search_pthread_create=$ac_res
13343fi
13344rm -f core conftest.err conftest.$ac_objext \
13345    conftest$ac_exeext
13346  if ${ac_cv_search_pthread_create+:} false; then :
13347  break
13348fi
13349done
13350if ${ac_cv_search_pthread_create+:} false; then :
13351
13352else
13353  ac_cv_search_pthread_create=no
13354fi
13355rm conftest.$ac_ext
13356LIBS=$ac_func_search_save_LIBS
13357fi
13358{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_pthread_create" >&5
13359$as_echo "$ac_cv_search_pthread_create" >&6; }
13360ac_res=$ac_cv_search_pthread_create
13361if test "$ac_res" != no; then :
13362  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13363
13364fi
13365
13366  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing pthread_mutexattr_init" >&5
13367$as_echo_n "checking for library containing pthread_mutexattr_init... " >&6; }
13368if ${ac_cv_search_pthread_mutexattr_init+:} false; then :
13369  $as_echo_n "(cached) " >&6
13370else
13371  ac_func_search_save_LIBS=$LIBS
13372cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13373/* end confdefs.h.  */
13374
13375/* Override any GCC internal prototype to avoid an error.
13376   Use char because int might match the return type of a GCC
13377   builtin and then its argument prototype would still apply.  */
13378#ifdef __cplusplus
13379extern "C"
13380#endif
13381char pthread_mutexattr_init ();
13382int
13383main ()
13384{
13385return pthread_mutexattr_init ();
13386  ;
13387  return 0;
13388}
13389_ACEOF
13390for ac_lib in '' pthread; do
13391  if test -z "$ac_lib"; then
13392    ac_res="none required"
13393  else
13394    ac_res=-l$ac_lib
13395    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
13396  fi
13397  if ac_fn_c_try_link "$LINENO"; then :
13398  ac_cv_search_pthread_mutexattr_init=$ac_res
13399fi
13400rm -f core conftest.err conftest.$ac_objext \
13401    conftest$ac_exeext
13402  if ${ac_cv_search_pthread_mutexattr_init+:} false; then :
13403  break
13404fi
13405done
13406if ${ac_cv_search_pthread_mutexattr_init+:} false; then :
13407
13408else
13409  ac_cv_search_pthread_mutexattr_init=no
13410fi
13411rm conftest.$ac_ext
13412LIBS=$ac_func_search_save_LIBS
13413fi
13414{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_pthread_mutexattr_init" >&5
13415$as_echo "$ac_cv_search_pthread_mutexattr_init" >&6; }
13416ac_res=$ac_cv_search_pthread_mutexattr_init
13417if test "$ac_res" != no; then :
13418  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13419
13420fi
13421
13422fi
13423
13424#-----------------------------------------------------------------------
13425
13426#-----------------------------------------------------------------------
13427#   --enable-dynamic-extensions
13428#
13429# Check whether --enable-dynamic-extensions was given.
13430if test "${enable_dynamic_extensions+set}" = set; then :
13431  enableval=$enable_dynamic_extensions;
13432else
13433  enable_dynamic_extensions=yes
13434fi
13435
13436if test x"$enable_dynamic_extensions" != "xno"; then
13437  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
13438$as_echo_n "checking for library containing dlopen... " >&6; }
13439if ${ac_cv_search_dlopen+:} false; then :
13440  $as_echo_n "(cached) " >&6
13441else
13442  ac_func_search_save_LIBS=$LIBS
13443cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13444/* end confdefs.h.  */
13445
13446/* Override any GCC internal prototype to avoid an error.
13447   Use char because int might match the return type of a GCC
13448   builtin and then its argument prototype would still apply.  */
13449#ifdef __cplusplus
13450extern "C"
13451#endif
13452char dlopen ();
13453int
13454main ()
13455{
13456return dlopen ();
13457  ;
13458  return 0;
13459}
13460_ACEOF
13461for ac_lib in '' dl; do
13462  if test -z "$ac_lib"; then
13463    ac_res="none required"
13464  else
13465    ac_res=-l$ac_lib
13466    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
13467  fi
13468  if ac_fn_c_try_link "$LINENO"; then :
13469  ac_cv_search_dlopen=$ac_res
13470fi
13471rm -f core conftest.err conftest.$ac_objext \
13472    conftest$ac_exeext
13473  if ${ac_cv_search_dlopen+:} false; then :
13474  break
13475fi
13476done
13477if ${ac_cv_search_dlopen+:} false; then :
13478
13479else
13480  ac_cv_search_dlopen=no
13481fi
13482rm conftest.$ac_ext
13483LIBS=$ac_func_search_save_LIBS
13484fi
13485{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
13486$as_echo "$ac_cv_search_dlopen" >&6; }
13487ac_res=$ac_cv_search_dlopen
13488if test "$ac_res" != no; then :
13489  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13490
13491fi
13492
13493else
13494  DYNAMIC_EXTENSION_FLAGS=-DSQLITE_OMIT_LOAD_EXTENSION=1
13495fi
13496{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for whether to support dynamic extensions" >&5
13497$as_echo_n "checking for whether to support dynamic extensions... " >&6; }
13498{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_dynamic_extensions" >&5
13499$as_echo "$enable_dynamic_extensions" >&6; }
13500
13501#-----------------------------------------------------------------------
13502
13503#-----------------------------------------------------------------------
13504#   --enable-fts5
13505#
13506# Check whether --enable-fts5 was given.
13507if test "${enable_fts5+set}" = set; then :
13508  enableval=$enable_fts5;
13509else
13510  enable_fts5=no
13511fi
13512
13513if test x"$enable_fts5" = "xyes"; then
13514  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing log" >&5
13515$as_echo_n "checking for library containing log... " >&6; }
13516if ${ac_cv_search_log+:} false; then :
13517  $as_echo_n "(cached) " >&6
13518else
13519  ac_func_search_save_LIBS=$LIBS
13520cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13521/* end confdefs.h.  */
13522
13523/* Override any GCC internal prototype to avoid an error.
13524   Use char because int might match the return type of a GCC
13525   builtin and then its argument prototype would still apply.  */
13526#ifdef __cplusplus
13527extern "C"
13528#endif
13529char log ();
13530int
13531main ()
13532{
13533return log ();
13534  ;
13535  return 0;
13536}
13537_ACEOF
13538for ac_lib in '' m; do
13539  if test -z "$ac_lib"; then
13540    ac_res="none required"
13541  else
13542    ac_res=-l$ac_lib
13543    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
13544  fi
13545  if ac_fn_c_try_link "$LINENO"; then :
13546  ac_cv_search_log=$ac_res
13547fi
13548rm -f core conftest.err conftest.$ac_objext \
13549    conftest$ac_exeext
13550  if ${ac_cv_search_log+:} false; then :
13551  break
13552fi
13553done
13554if ${ac_cv_search_log+:} false; then :
13555
13556else
13557  ac_cv_search_log=no
13558fi
13559rm conftest.$ac_ext
13560LIBS=$ac_func_search_save_LIBS
13561fi
13562{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_log" >&5
13563$as_echo "$ac_cv_search_log" >&6; }
13564ac_res=$ac_cv_search_log
13565if test "$ac_res" != no; then :
13566  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13567
13568fi
13569
13570  FTS5_FLAGS=-DSQLITE_ENABLE_FTS5
13571fi
13572
13573#-----------------------------------------------------------------------
13574
13575#-----------------------------------------------------------------------
13576#   --enable-json1
13577#
13578# Check whether --enable-json1 was given.
13579if test "${enable_json1+set}" = set; then :
13580  enableval=$enable_json1;
13581else
13582  enable_json1=no
13583fi
13584
13585if test x"$enable_json1" = "xyes"; then
13586  JSON1_FLAGS=-DSQLITE_ENABLE_JSON1
13587fi
13588
13589#-----------------------------------------------------------------------
13590
13591#-----------------------------------------------------------------------
13592#   --enable-session
13593#
13594# Check whether --enable-session was given.
13595if test "${enable_session+set}" = set; then :
13596  enableval=$enable_session;
13597else
13598  enable_session=no
13599fi
13600
13601if test x"$enable_session" = "xyes"; then
13602  SESSION_FLAGS="-DSQLITE_ENABLE_SESSION -DSQLITE_ENABLE_PREUPDATE_HOOK"
13603fi
13604
13605#-----------------------------------------------------------------------
13606
13607#-----------------------------------------------------------------------
13608#   --enable-static-shell
13609#
13610# Check whether --enable-static-shell was given.
13611if test "${enable_static_shell+set}" = set; then :
13612  enableval=$enable_static_shell;
13613else
13614  enable_static_shell=yes
13615fi
13616
13617if test x"$enable_static_shell" = "xyes"; then
13618  EXTRA_SHELL_OBJ=sqlite3-sqlite3.$OBJEXT
13619else
13620  EXTRA_SHELL_OBJ=libsqlite3.la
13621fi
13622
13623#-----------------------------------------------------------------------
13624
13625for ac_func in posix_fallocate
13626do :
13627  ac_fn_c_check_func "$LINENO" "posix_fallocate" "ac_cv_func_posix_fallocate"
13628if test "x$ac_cv_func_posix_fallocate" = xyes; then :
13629  cat >>confdefs.h <<_ACEOF
13630#define HAVE_POSIX_FALLOCATE 1
13631_ACEOF
13632
13633fi
13634done
13635
13636for ac_header in zlib.h
13637do :
13638  ac_fn_c_check_header_mongrel "$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default"
13639if test "x$ac_cv_header_zlib_h" = xyes; then :
13640  cat >>confdefs.h <<_ACEOF
13641#define HAVE_ZLIB_H 1
13642_ACEOF
13643
13644  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing deflate" >&5
13645$as_echo_n "checking for library containing deflate... " >&6; }
13646if ${ac_cv_search_deflate+:} false; then :
13647  $as_echo_n "(cached) " >&6
13648else
13649  ac_func_search_save_LIBS=$LIBS
13650cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13651/* end confdefs.h.  */
13652
13653/* Override any GCC internal prototype to avoid an error.
13654   Use char because int might match the return type of a GCC
13655   builtin and then its argument prototype would still apply.  */
13656#ifdef __cplusplus
13657extern "C"
13658#endif
13659char deflate ();
13660int
13661main ()
13662{
13663return deflate ();
13664  ;
13665  return 0;
13666}
13667_ACEOF
13668for ac_lib in '' z; do
13669  if test -z "$ac_lib"; then
13670    ac_res="none required"
13671  else
13672    ac_res=-l$ac_lib
13673    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
13674  fi
13675  if ac_fn_c_try_link "$LINENO"; then :
13676  ac_cv_search_deflate=$ac_res
13677fi
13678rm -f core conftest.err conftest.$ac_objext \
13679    conftest$ac_exeext
13680  if ${ac_cv_search_deflate+:} false; then :
13681  break
13682fi
13683done
13684if ${ac_cv_search_deflate+:} false; then :
13685
13686else
13687  ac_cv_search_deflate=no
13688fi
13689rm conftest.$ac_ext
13690LIBS=$ac_func_search_save_LIBS
13691fi
13692{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_deflate" >&5
13693$as_echo "$ac_cv_search_deflate" >&6; }
13694ac_res=$ac_cv_search_deflate
13695if test "$ac_res" != no; then :
13696  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13697  ZLIB_FLAGS="-DSQLITE_HAVE_ZLIB"
13698fi
13699
13700
13701fi
13702
13703done
13704
13705
13706
13707{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing system" >&5
13708$as_echo_n "checking for library containing system... " >&6; }
13709if ${ac_cv_search_system+:} false; then :
13710  $as_echo_n "(cached) " >&6
13711else
13712  ac_func_search_save_LIBS=$LIBS
13713cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13714/* end confdefs.h.  */
13715
13716/* Override any GCC internal prototype to avoid an error.
13717   Use char because int might match the return type of a GCC
13718   builtin and then its argument prototype would still apply.  */
13719#ifdef __cplusplus
13720extern "C"
13721#endif
13722char system ();
13723int
13724main ()
13725{
13726return system ();
13727  ;
13728  return 0;
13729}
13730_ACEOF
13731for ac_lib in '' ; do
13732  if test -z "$ac_lib"; then
13733    ac_res="none required"
13734  else
13735    ac_res=-l$ac_lib
13736    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
13737  fi
13738  if ac_fn_c_try_link "$LINENO"; then :
13739  ac_cv_search_system=$ac_res
13740fi
13741rm -f core conftest.err conftest.$ac_objext \
13742    conftest$ac_exeext
13743  if ${ac_cv_search_system+:} false; then :
13744  break
13745fi
13746done
13747if ${ac_cv_search_system+:} false; then :
13748
13749else
13750  ac_cv_search_system=no
13751fi
13752rm conftest.$ac_ext
13753LIBS=$ac_func_search_save_LIBS
13754fi
13755{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_system" >&5
13756$as_echo "$ac_cv_search_system" >&6; }
13757ac_res=$ac_cv_search_system
13758if test "$ac_res" != no; then :
13759  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13760
13761else
13762  SHELL_CFLAGS="-DSQLITE_NOHAVE_SYSTEM"
13763fi
13764
13765
13766
13767#-----------------------------------------------------------------------
13768# UPDATE: Maybe it's better if users just set CFLAGS before invoking
13769# configure. This option doesn't really add much...
13770#
13771#   --enable-tempstore
13772#
13773# AC_ARG_ENABLE(tempstore, [AS_HELP_STRING(
13774#   [--enable-tempstore],
13775#   [in-memory temporary tables (never, no, yes, always) [default=no]])],
13776#   [], [enable_tempstore=no])
13777# AC_MSG_CHECKING([for whether or not to store temp tables in-memory])
13778# case "$enable_tempstore" in
13779#   never )  TEMP_STORE=0 ;;
13780#   no )     TEMP_STORE=1 ;;
13781#   always ) TEMP_STORE=3 ;;
13782#   yes )    TEMP_STORE=3 ;;
13783#   * )
13784#     TEMP_STORE=1
13785#     enable_tempstore=yes
13786#   ;;
13787# esac
13788# AC_MSG_RESULT($enable_tempstore)
13789# AC_SUBST(TEMP_STORE)
13790#-----------------------------------------------------------------------
13791
13792cat >confcache <<\_ACEOF
13793# This file is a shell script that caches the results of configure
13794# tests run on this system so they can be shared between configure
13795# scripts and configure runs, see configure's option --config-cache.
13796# It is not useful on other systems.  If it contains results you don't
13797# want to keep, you may remove or edit it.
13798#
13799# config.status only pays attention to the cache file if you give it
13800# the --recheck option to rerun configure.
13801#
13802# `ac_cv_env_foo' variables (set or unset) will be overridden when
13803# loading this file, other *unset* `ac_cv_foo' will be assigned the
13804# following values.
13805
13806_ACEOF
13807
13808# The following way of writing the cache mishandles newlines in values,
13809# but we know of no workaround that is simple, portable, and efficient.
13810# So, we kill variables containing newlines.
13811# Ultrix sh set writes to stderr and can't be redirected directly,
13812# and sets the high bit in the cache file unless we assign to the vars.
13813(
13814  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
13815    eval ac_val=\$$ac_var
13816    case $ac_val in #(
13817    *${as_nl}*)
13818      case $ac_var in #(
13819      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
13820$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
13821      esac
13822      case $ac_var in #(
13823      _ | IFS | as_nl) ;; #(
13824      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
13825      *) { eval $ac_var=; unset $ac_var;} ;;
13826      esac ;;
13827    esac
13828  done
13829
13830  (set) 2>&1 |
13831    case $as_nl`(ac_space=' '; set) 2>&1` in #(
13832    *${as_nl}ac_space=\ *)
13833      # `set' does not quote correctly, so add quotes: double-quote
13834      # substitution turns \\\\ into \\, and sed turns \\ into \.
13835      sed -n \
13836	"s/'/'\\\\''/g;
13837	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
13838      ;; #(
13839    *)
13840      # `set' quotes correctly as required by POSIX, so do not add quotes.
13841      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
13842      ;;
13843    esac |
13844    sort
13845) |
13846  sed '
13847     /^ac_cv_env_/b end
13848     t clear
13849     :clear
13850     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
13851     t end
13852     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
13853     :end' >>confcache
13854if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
13855  if test -w "$cache_file"; then
13856    if test "x$cache_file" != "x/dev/null"; then
13857      { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
13858$as_echo "$as_me: updating cache $cache_file" >&6;}
13859      if test ! -f "$cache_file" || test -h "$cache_file"; then
13860	cat confcache >"$cache_file"
13861      else
13862        case $cache_file in #(
13863        */* | ?:*)
13864	  mv -f confcache "$cache_file"$$ &&
13865	  mv -f "$cache_file"$$ "$cache_file" ;; #(
13866        *)
13867	  mv -f confcache "$cache_file" ;;
13868	esac
13869      fi
13870    fi
13871  else
13872    { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
13873$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
13874  fi
13875fi
13876rm -f confcache
13877
13878test "x$prefix" = xNONE && prefix=$ac_default_prefix
13879# Let make expand exec_prefix.
13880test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
13881
13882# Transform confdefs.h into DEFS.
13883# Protect against shell expansion while executing Makefile rules.
13884# Protect against Makefile macro expansion.
13885#
13886# If the first sed substitution is executed (which looks for macros that
13887# take arguments), then branch to the quote section.  Otherwise,
13888# look for a macro that doesn't take arguments.
13889ac_script='
13890:mline
13891/\\$/{
13892 N
13893 s,\\\n,,
13894 b mline
13895}
13896t clear
13897:clear
13898s/^[	 ]*#[	 ]*define[	 ][	 ]*\([^	 (][^	 (]*([^)]*)\)[	 ]*\(.*\)/-D\1=\2/g
13899t quote
13900s/^[	 ]*#[	 ]*define[	 ][	 ]*\([^	 ][^	 ]*\)[	 ]*\(.*\)/-D\1=\2/g
13901t quote
13902b any
13903:quote
13904s/[	 `~#$^&*(){}\\|;'\''"<>?]/\\&/g
13905s/\[/\\&/g
13906s/\]/\\&/g
13907s/\$/$$/g
13908H
13909:any
13910${
13911	g
13912	s/^\n//
13913	s/\n/ /g
13914	p
13915}
13916'
13917DEFS=`sed -n "$ac_script" confdefs.h`
13918
13919
13920ac_libobjs=
13921ac_ltlibobjs=
13922U=
13923for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
13924  # 1. Remove the extension, and $U if already installed.
13925  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
13926  ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
13927  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
13928  #    will be set to the directory where LIBOBJS objects are built.
13929  as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
13930  as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
13931done
13932LIBOBJS=$ac_libobjs
13933
13934LTLIBOBJS=$ac_ltlibobjs
13935
13936
13937{ $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
13938$as_echo_n "checking that generated files are newer than configure... " >&6; }
13939   if test -n "$am_sleep_pid"; then
13940     # Hide warnings about reused PIDs.
13941     wait $am_sleep_pid 2>/dev/null
13942   fi
13943   { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
13944$as_echo "done" >&6; }
13945 if test -n "$EXEEXT"; then
13946  am__EXEEXT_TRUE=
13947  am__EXEEXT_FALSE='#'
13948else
13949  am__EXEEXT_TRUE='#'
13950  am__EXEEXT_FALSE=
13951fi
13952
13953if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
13954  as_fn_error $? "conditional \"AMDEP\" was never defined.
13955Usually this means the macro was only invoked conditionally." "$LINENO" 5
13956fi
13957if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
13958  as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
13959Usually this means the macro was only invoked conditionally." "$LINENO" 5
13960fi
13961if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
13962  as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
13963Usually this means the macro was only invoked conditionally." "$LINENO" 5
13964fi
13965
13966: "${CONFIG_STATUS=./config.status}"
13967ac_write_fail=0
13968ac_clean_files_save=$ac_clean_files
13969ac_clean_files="$ac_clean_files $CONFIG_STATUS"
13970{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
13971$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
13972as_write_fail=0
13973cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
13974#! $SHELL
13975# Generated by $as_me.
13976# Run this file to recreate the current configuration.
13977# Compiler output produced by configure, useful for debugging
13978# configure, is in config.log if it exists.
13979
13980debug=false
13981ac_cs_recheck=false
13982ac_cs_silent=false
13983
13984SHELL=\${CONFIG_SHELL-$SHELL}
13985export SHELL
13986_ASEOF
13987cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
13988## -------------------- ##
13989## M4sh Initialization. ##
13990## -------------------- ##
13991
13992# Be more Bourne compatible
13993DUALCASE=1; export DUALCASE # for MKS sh
13994if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
13995  emulate sh
13996  NULLCMD=:
13997  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
13998  # is contrary to our usage.  Disable this feature.
13999  alias -g '${1+"$@"}'='"$@"'
14000  setopt NO_GLOB_SUBST
14001else
14002  case `(set -o) 2>/dev/null` in #(
14003  *posix*) :
14004    set -o posix ;; #(
14005  *) :
14006     ;;
14007esac
14008fi
14009
14010
14011as_nl='
14012'
14013export as_nl
14014# Printing a long string crashes Solaris 7 /usr/bin/printf.
14015as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
14016as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
14017as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
14018# Prefer a ksh shell builtin over an external printf program on Solaris,
14019# but without wasting forks for bash or zsh.
14020if test -z "$BASH_VERSION$ZSH_VERSION" \
14021    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
14022  as_echo='print -r --'
14023  as_echo_n='print -rn --'
14024elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
14025  as_echo='printf %s\n'
14026  as_echo_n='printf %s'
14027else
14028  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
14029    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
14030    as_echo_n='/usr/ucb/echo -n'
14031  else
14032    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
14033    as_echo_n_body='eval
14034      arg=$1;
14035      case $arg in #(
14036      *"$as_nl"*)
14037	expr "X$arg" : "X\\(.*\\)$as_nl";
14038	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
14039      esac;
14040      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
14041    '
14042    export as_echo_n_body
14043    as_echo_n='sh -c $as_echo_n_body as_echo'
14044  fi
14045  export as_echo_body
14046  as_echo='sh -c $as_echo_body as_echo'
14047fi
14048
14049# The user is always right.
14050if test "${PATH_SEPARATOR+set}" != set; then
14051  PATH_SEPARATOR=:
14052  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
14053    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
14054      PATH_SEPARATOR=';'
14055  }
14056fi
14057
14058
14059# IFS
14060# We need space, tab and new line, in precisely that order.  Quoting is
14061# there to prevent editors from complaining about space-tab.
14062# (If _AS_PATH_WALK were called with IFS unset, it would disable word
14063# splitting by setting IFS to empty value.)
14064IFS=" ""	$as_nl"
14065
14066# Find who we are.  Look in the path if we contain no directory separator.
14067as_myself=
14068case $0 in #((
14069  *[\\/]* ) as_myself=$0 ;;
14070  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14071for as_dir in $PATH
14072do
14073  IFS=$as_save_IFS
14074  test -z "$as_dir" && as_dir=.
14075    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
14076  done
14077IFS=$as_save_IFS
14078
14079     ;;
14080esac
14081# We did not find ourselves, most probably we were run as `sh COMMAND'
14082# in which case we are not to be found in the path.
14083if test "x$as_myself" = x; then
14084  as_myself=$0
14085fi
14086if test ! -f "$as_myself"; then
14087  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
14088  exit 1
14089fi
14090
14091# Unset variables that we do not need and which cause bugs (e.g. in
14092# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
14093# suppresses any "Segmentation fault" message there.  '((' could
14094# trigger a bug in pdksh 5.2.14.
14095for as_var in BASH_ENV ENV MAIL MAILPATH
14096do eval test x\${$as_var+set} = xset \
14097  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
14098done
14099PS1='$ '
14100PS2='> '
14101PS4='+ '
14102
14103# NLS nuisances.
14104LC_ALL=C
14105export LC_ALL
14106LANGUAGE=C
14107export LANGUAGE
14108
14109# CDPATH.
14110(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
14111
14112
14113# as_fn_error STATUS ERROR [LINENO LOG_FD]
14114# ----------------------------------------
14115# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
14116# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
14117# script with STATUS, using 1 if that was 0.
14118as_fn_error ()
14119{
14120  as_status=$1; test $as_status -eq 0 && as_status=1
14121  if test "$4"; then
14122    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
14123    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
14124  fi
14125  $as_echo "$as_me: error: $2" >&2
14126  as_fn_exit $as_status
14127} # as_fn_error
14128
14129
14130# as_fn_set_status STATUS
14131# -----------------------
14132# Set $? to STATUS, without forking.
14133as_fn_set_status ()
14134{
14135  return $1
14136} # as_fn_set_status
14137
14138# as_fn_exit STATUS
14139# -----------------
14140# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
14141as_fn_exit ()
14142{
14143  set +e
14144  as_fn_set_status $1
14145  exit $1
14146} # as_fn_exit
14147
14148# as_fn_unset VAR
14149# ---------------
14150# Portably unset VAR.
14151as_fn_unset ()
14152{
14153  { eval $1=; unset $1;}
14154}
14155as_unset=as_fn_unset
14156# as_fn_append VAR VALUE
14157# ----------------------
14158# Append the text in VALUE to the end of the definition contained in VAR. Take
14159# advantage of any shell optimizations that allow amortized linear growth over
14160# repeated appends, instead of the typical quadratic growth present in naive
14161# implementations.
14162if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
14163  eval 'as_fn_append ()
14164  {
14165    eval $1+=\$2
14166  }'
14167else
14168  as_fn_append ()
14169  {
14170    eval $1=\$$1\$2
14171  }
14172fi # as_fn_append
14173
14174# as_fn_arith ARG...
14175# ------------------
14176# Perform arithmetic evaluation on the ARGs, and store the result in the
14177# global $as_val. Take advantage of shells that can avoid forks. The arguments
14178# must be portable across $(()) and expr.
14179if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
14180  eval 'as_fn_arith ()
14181  {
14182    as_val=$(( $* ))
14183  }'
14184else
14185  as_fn_arith ()
14186  {
14187    as_val=`expr "$@" || test $? -eq 1`
14188  }
14189fi # as_fn_arith
14190
14191
14192if expr a : '\(a\)' >/dev/null 2>&1 &&
14193   test "X`expr 00001 : '.*\(...\)'`" = X001; then
14194  as_expr=expr
14195else
14196  as_expr=false
14197fi
14198
14199if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
14200  as_basename=basename
14201else
14202  as_basename=false
14203fi
14204
14205if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
14206  as_dirname=dirname
14207else
14208  as_dirname=false
14209fi
14210
14211as_me=`$as_basename -- "$0" ||
14212$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
14213	 X"$0" : 'X\(//\)$' \| \
14214	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
14215$as_echo X/"$0" |
14216    sed '/^.*\/\([^/][^/]*\)\/*$/{
14217	    s//\1/
14218	    q
14219	  }
14220	  /^X\/\(\/\/\)$/{
14221	    s//\1/
14222	    q
14223	  }
14224	  /^X\/\(\/\).*/{
14225	    s//\1/
14226	    q
14227	  }
14228	  s/.*/./; q'`
14229
14230# Avoid depending upon Character Ranges.
14231as_cr_letters='abcdefghijklmnopqrstuvwxyz'
14232as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
14233as_cr_Letters=$as_cr_letters$as_cr_LETTERS
14234as_cr_digits='0123456789'
14235as_cr_alnum=$as_cr_Letters$as_cr_digits
14236
14237ECHO_C= ECHO_N= ECHO_T=
14238case `echo -n x` in #(((((
14239-n*)
14240  case `echo 'xy\c'` in
14241  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
14242  xy)  ECHO_C='\c';;
14243  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
14244       ECHO_T='	';;
14245  esac;;
14246*)
14247  ECHO_N='-n';;
14248esac
14249
14250rm -f conf$$ conf$$.exe conf$$.file
14251if test -d conf$$.dir; then
14252  rm -f conf$$.dir/conf$$.file
14253else
14254  rm -f conf$$.dir
14255  mkdir conf$$.dir 2>/dev/null
14256fi
14257if (echo >conf$$.file) 2>/dev/null; then
14258  if ln -s conf$$.file conf$$ 2>/dev/null; then
14259    as_ln_s='ln -s'
14260    # ... but there are two gotchas:
14261    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
14262    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
14263    # In both cases, we have to default to `cp -pR'.
14264    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
14265      as_ln_s='cp -pR'
14266  elif ln conf$$.file conf$$ 2>/dev/null; then
14267    as_ln_s=ln
14268  else
14269    as_ln_s='cp -pR'
14270  fi
14271else
14272  as_ln_s='cp -pR'
14273fi
14274rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
14275rmdir conf$$.dir 2>/dev/null
14276
14277
14278# as_fn_mkdir_p
14279# -------------
14280# Create "$as_dir" as a directory, including parents if necessary.
14281as_fn_mkdir_p ()
14282{
14283
14284  case $as_dir in #(
14285  -*) as_dir=./$as_dir;;
14286  esac
14287  test -d "$as_dir" || eval $as_mkdir_p || {
14288    as_dirs=
14289    while :; do
14290      case $as_dir in #(
14291      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
14292      *) as_qdir=$as_dir;;
14293      esac
14294      as_dirs="'$as_qdir' $as_dirs"
14295      as_dir=`$as_dirname -- "$as_dir" ||
14296$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14297	 X"$as_dir" : 'X\(//\)[^/]' \| \
14298	 X"$as_dir" : 'X\(//\)$' \| \
14299	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
14300$as_echo X"$as_dir" |
14301    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14302	    s//\1/
14303	    q
14304	  }
14305	  /^X\(\/\/\)[^/].*/{
14306	    s//\1/
14307	    q
14308	  }
14309	  /^X\(\/\/\)$/{
14310	    s//\1/
14311	    q
14312	  }
14313	  /^X\(\/\).*/{
14314	    s//\1/
14315	    q
14316	  }
14317	  s/.*/./; q'`
14318      test -d "$as_dir" && break
14319    done
14320    test -z "$as_dirs" || eval "mkdir $as_dirs"
14321  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
14322
14323
14324} # as_fn_mkdir_p
14325if mkdir -p . 2>/dev/null; then
14326  as_mkdir_p='mkdir -p "$as_dir"'
14327else
14328  test -d ./-p && rmdir ./-p
14329  as_mkdir_p=false
14330fi
14331
14332
14333# as_fn_executable_p FILE
14334# -----------------------
14335# Test if FILE is an executable regular file.
14336as_fn_executable_p ()
14337{
14338  test -f "$1" && test -x "$1"
14339} # as_fn_executable_p
14340as_test_x='test -x'
14341as_executable_p=as_fn_executable_p
14342
14343# Sed expression to map a string onto a valid CPP name.
14344as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
14345
14346# Sed expression to map a string onto a valid variable name.
14347as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
14348
14349
14350exec 6>&1
14351## ----------------------------------- ##
14352## Main body of $CONFIG_STATUS script. ##
14353## ----------------------------------- ##
14354_ASEOF
14355test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
14356
14357cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14358# Save the log message, to keep $0 and so on meaningful, and to
14359# report actual input values of CONFIG_FILES etc. instead of their
14360# values after options handling.
14361ac_log="
14362This file was extended by sqlite $as_me 3.23.1, which was
14363generated by GNU Autoconf 2.69.  Invocation command line was
14364
14365  CONFIG_FILES    = $CONFIG_FILES
14366  CONFIG_HEADERS  = $CONFIG_HEADERS
14367  CONFIG_LINKS    = $CONFIG_LINKS
14368  CONFIG_COMMANDS = $CONFIG_COMMANDS
14369  $ $0 $@
14370
14371on `(hostname || uname -n) 2>/dev/null | sed 1q`
14372"
14373
14374_ACEOF
14375
14376case $ac_config_files in *"
14377"*) set x $ac_config_files; shift; ac_config_files=$*;;
14378esac
14379
14380
14381
14382cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14383# Files that config.status was made for.
14384config_files="$ac_config_files"
14385config_commands="$ac_config_commands"
14386
14387_ACEOF
14388
14389cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14390ac_cs_usage="\
14391\`$as_me' instantiates files and other configuration actions
14392from templates according to the current configuration.  Unless the files
14393and actions are specified as TAGs, all are instantiated by default.
14394
14395Usage: $0 [OPTION]... [TAG]...
14396
14397  -h, --help       print this help, then exit
14398  -V, --version    print version number and configuration settings, then exit
14399      --config     print configuration, then exit
14400  -q, --quiet, --silent
14401                   do not print progress messages
14402  -d, --debug      don't remove temporary files
14403      --recheck    update $as_me by reconfiguring in the same conditions
14404      --file=FILE[:TEMPLATE]
14405                   instantiate the configuration file FILE
14406
14407Configuration files:
14408$config_files
14409
14410Configuration commands:
14411$config_commands
14412
14413Report bugs to <http://www.sqlite.org>."
14414
14415_ACEOF
14416cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14417ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
14418ac_cs_version="\\
14419sqlite config.status 3.23.1
14420configured by $0, generated by GNU Autoconf 2.69,
14421  with options \\"\$ac_cs_config\\"
14422
14423Copyright (C) 2012 Free Software Foundation, Inc.
14424This config.status script is free software; the Free Software Foundation
14425gives unlimited permission to copy, distribute and modify it."
14426
14427ac_pwd='$ac_pwd'
14428srcdir='$srcdir'
14429INSTALL='$INSTALL'
14430MKDIR_P='$MKDIR_P'
14431AWK='$AWK'
14432test -n "\$AWK" || AWK=awk
14433_ACEOF
14434
14435cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14436# The default lists apply if the user does not specify any file.
14437ac_need_defaults=:
14438while test $# != 0
14439do
14440  case $1 in
14441  --*=?*)
14442    ac_option=`expr "X$1" : 'X\([^=]*\)='`
14443    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
14444    ac_shift=:
14445    ;;
14446  --*=)
14447    ac_option=`expr "X$1" : 'X\([^=]*\)='`
14448    ac_optarg=
14449    ac_shift=:
14450    ;;
14451  *)
14452    ac_option=$1
14453    ac_optarg=$2
14454    ac_shift=shift
14455    ;;
14456  esac
14457
14458  case $ac_option in
14459  # Handling of the options.
14460  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
14461    ac_cs_recheck=: ;;
14462  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
14463    $as_echo "$ac_cs_version"; exit ;;
14464  --config | --confi | --conf | --con | --co | --c )
14465    $as_echo "$ac_cs_config"; exit ;;
14466  --debug | --debu | --deb | --de | --d | -d )
14467    debug=: ;;
14468  --file | --fil | --fi | --f )
14469    $ac_shift
14470    case $ac_optarg in
14471    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
14472    '') as_fn_error $? "missing file argument" ;;
14473    esac
14474    as_fn_append CONFIG_FILES " '$ac_optarg'"
14475    ac_need_defaults=false;;
14476  --he | --h |  --help | --hel | -h )
14477    $as_echo "$ac_cs_usage"; exit ;;
14478  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
14479  | -silent | --silent | --silen | --sile | --sil | --si | --s)
14480    ac_cs_silent=: ;;
14481
14482  # This is an error.
14483  -*) as_fn_error $? "unrecognized option: \`$1'
14484Try \`$0 --help' for more information." ;;
14485
14486  *) as_fn_append ac_config_targets " $1"
14487     ac_need_defaults=false ;;
14488
14489  esac
14490  shift
14491done
14492
14493ac_configure_extra_args=
14494
14495if $ac_cs_silent; then
14496  exec 6>/dev/null
14497  ac_configure_extra_args="$ac_configure_extra_args --silent"
14498fi
14499
14500_ACEOF
14501cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14502if \$ac_cs_recheck; then
14503  set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
14504  shift
14505  \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
14506  CONFIG_SHELL='$SHELL'
14507  export CONFIG_SHELL
14508  exec "\$@"
14509fi
14510
14511_ACEOF
14512cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14513exec 5>>config.log
14514{
14515  echo
14516  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
14517## Running $as_me. ##
14518_ASBOX
14519  $as_echo "$ac_log"
14520} >&5
14521
14522_ACEOF
14523cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14524#
14525# INIT-COMMANDS
14526#
14527AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
14528
14529
14530# The HP-UX ksh and POSIX shell print the target directory to stdout
14531# if CDPATH is set.
14532(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
14533
14534sed_quote_subst='$sed_quote_subst'
14535double_quote_subst='$double_quote_subst'
14536delay_variable_subst='$delay_variable_subst'
14537macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
14538macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
14539enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
14540enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
14541pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
14542enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
14543shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
14544SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
14545ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
14546PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
14547host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
14548host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
14549host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
14550build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
14551build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
14552build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
14553SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
14554Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
14555GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
14556EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
14557FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
14558LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
14559NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
14560LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
14561max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
14562ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
14563exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
14564lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
14565lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
14566lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
14567lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
14568lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
14569reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
14570reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
14571OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
14572deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
14573file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
14574file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
14575want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
14576DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
14577sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
14578AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
14579AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
14580archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
14581STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
14582RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
14583old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
14584old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
14585old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
14586lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
14587CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
14588CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
14589compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
14590GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
14591lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
14592lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
14593lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
14594lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
14595lt_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"`'
14596lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
14597nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
14598lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
14599lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
14600objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
14601MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
14602lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
14603lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
14604lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
14605lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
14606lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
14607need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
14608MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
14609DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
14610NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
14611LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
14612OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
14613OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
14614libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
14615shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
14616extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
14617archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
14618enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
14619export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
14620whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
14621compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
14622old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
14623old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
14624archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
14625archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
14626module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
14627module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
14628with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
14629allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
14630no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
14631hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
14632hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
14633hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
14634hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
14635hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
14636hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
14637hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
14638inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
14639link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
14640always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
14641export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
14642exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
14643include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
14644prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
14645postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
14646file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
14647variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
14648need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
14649need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
14650version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
14651runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
14652shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
14653shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
14654libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
14655library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
14656soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
14657install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
14658postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
14659postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
14660finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
14661finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
14662hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
14663sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
14664configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
14665configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
14666hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
14667enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
14668enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
14669enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
14670old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
14671striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
14672
14673LTCC='$LTCC'
14674LTCFLAGS='$LTCFLAGS'
14675compiler='$compiler_DEFAULT'
14676
14677# A function that is used when there is no print builtin or printf.
14678func_fallback_echo ()
14679{
14680  eval 'cat <<_LTECHO_EOF
14681\$1
14682_LTECHO_EOF'
14683}
14684
14685# Quote evaled strings.
14686for var in SHELL \
14687ECHO \
14688PATH_SEPARATOR \
14689SED \
14690GREP \
14691EGREP \
14692FGREP \
14693LD \
14694NM \
14695LN_S \
14696lt_SP2NL \
14697lt_NL2SP \
14698reload_flag \
14699OBJDUMP \
14700deplibs_check_method \
14701file_magic_cmd \
14702file_magic_glob \
14703want_nocaseglob \
14704DLLTOOL \
14705sharedlib_from_linklib_cmd \
14706AR \
14707AR_FLAGS \
14708archiver_list_spec \
14709STRIP \
14710RANLIB \
14711CC \
14712CFLAGS \
14713compiler \
14714lt_cv_sys_global_symbol_pipe \
14715lt_cv_sys_global_symbol_to_cdecl \
14716lt_cv_sys_global_symbol_to_import \
14717lt_cv_sys_global_symbol_to_c_name_address \
14718lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
14719lt_cv_nm_interface \
14720nm_file_list_spec \
14721lt_cv_truncate_bin \
14722lt_prog_compiler_no_builtin_flag \
14723lt_prog_compiler_pic \
14724lt_prog_compiler_wl \
14725lt_prog_compiler_static \
14726lt_cv_prog_compiler_c_o \
14727need_locks \
14728MANIFEST_TOOL \
14729DSYMUTIL \
14730NMEDIT \
14731LIPO \
14732OTOOL \
14733OTOOL64 \
14734shrext_cmds \
14735export_dynamic_flag_spec \
14736whole_archive_flag_spec \
14737compiler_needs_object \
14738with_gnu_ld \
14739allow_undefined_flag \
14740no_undefined_flag \
14741hardcode_libdir_flag_spec \
14742hardcode_libdir_separator \
14743exclude_expsyms \
14744include_expsyms \
14745file_list_spec \
14746variables_saved_for_relink \
14747libname_spec \
14748library_names_spec \
14749soname_spec \
14750install_override_mode \
14751finish_eval \
14752old_striplib \
14753striplib; do
14754    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
14755    *[\\\\\\\`\\"\\\$]*)
14756      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
14757      ;;
14758    *)
14759      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
14760      ;;
14761    esac
14762done
14763
14764# Double-quote double-evaled strings.
14765for var in reload_cmds \
14766old_postinstall_cmds \
14767old_postuninstall_cmds \
14768old_archive_cmds \
14769extract_expsyms_cmds \
14770old_archive_from_new_cmds \
14771old_archive_from_expsyms_cmds \
14772archive_cmds \
14773archive_expsym_cmds \
14774module_cmds \
14775module_expsym_cmds \
14776export_symbols_cmds \
14777prelink_cmds \
14778postlink_cmds \
14779postinstall_cmds \
14780postuninstall_cmds \
14781finish_cmds \
14782sys_lib_search_path_spec \
14783configure_time_dlsearch_path \
14784configure_time_lt_sys_library_path; do
14785    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
14786    *[\\\\\\\`\\"\\\$]*)
14787      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
14788      ;;
14789    *)
14790      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
14791      ;;
14792    esac
14793done
14794
14795ac_aux_dir='$ac_aux_dir'
14796
14797# See if we are running on zsh, and set the options that allow our
14798# commands through without removal of \ escapes INIT.
14799if test -n "\${ZSH_VERSION+set}"; then
14800   setopt NO_GLOB_SUBST
14801fi
14802
14803
14804    PACKAGE='$PACKAGE'
14805    VERSION='$VERSION'
14806    RM='$RM'
14807    ofile='$ofile'
14808
14809
14810
14811
14812_ACEOF
14813
14814cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14815
14816# Handling of arguments.
14817for ac_config_target in $ac_config_targets
14818do
14819  case $ac_config_target in
14820    "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
14821    "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
14822    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
14823    "sqlite3.pc") CONFIG_FILES="$CONFIG_FILES sqlite3.pc" ;;
14824
14825  *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
14826  esac
14827done
14828
14829
14830# If the user did not use the arguments to specify the items to instantiate,
14831# then the envvar interface is used.  Set only those that are not.
14832# We use the long form for the default assignment because of an extremely
14833# bizarre bug on SunOS 4.1.3.
14834if $ac_need_defaults; then
14835  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
14836  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
14837fi
14838
14839# Have a temporary directory for convenience.  Make it in the build tree
14840# simply because there is no reason against having it here, and in addition,
14841# creating and moving files from /tmp can sometimes cause problems.
14842# Hook for its removal unless debugging.
14843# Note that there is a small window in which the directory will not be cleaned:
14844# after its creation but before its name has been assigned to `$tmp'.
14845$debug ||
14846{
14847  tmp= ac_tmp=
14848  trap 'exit_status=$?
14849  : "${ac_tmp:=$tmp}"
14850  { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
14851' 0
14852  trap 'as_fn_exit 1' 1 2 13 15
14853}
14854# Create a (secure) tmp directory for tmp files.
14855
14856{
14857  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
14858  test -d "$tmp"
14859}  ||
14860{
14861  tmp=./conf$$-$RANDOM
14862  (umask 077 && mkdir "$tmp")
14863} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
14864ac_tmp=$tmp
14865
14866# Set up the scripts for CONFIG_FILES section.
14867# No need to generate them if there are no CONFIG_FILES.
14868# This happens for instance with `./config.status config.h'.
14869if test -n "$CONFIG_FILES"; then
14870
14871
14872ac_cr=`echo X | tr X '\015'`
14873# On cygwin, bash can eat \r inside `` if the user requested igncr.
14874# But we know of no other shell where ac_cr would be empty at this
14875# point, so we can use a bashism as a fallback.
14876if test "x$ac_cr" = x; then
14877  eval ac_cr=\$\'\\r\'
14878fi
14879ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
14880if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
14881  ac_cs_awk_cr='\\r'
14882else
14883  ac_cs_awk_cr=$ac_cr
14884fi
14885
14886echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
14887_ACEOF
14888
14889
14890{
14891  echo "cat >conf$$subs.awk <<_ACEOF" &&
14892  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
14893  echo "_ACEOF"
14894} >conf$$subs.sh ||
14895  as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
14896ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
14897ac_delim='%!_!# '
14898for ac_last_try in false false false false false :; do
14899  . ./conf$$subs.sh ||
14900    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
14901
14902  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
14903  if test $ac_delim_n = $ac_delim_num; then
14904    break
14905  elif $ac_last_try; then
14906    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
14907  else
14908    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
14909  fi
14910done
14911rm -f conf$$subs.sh
14912
14913cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14914cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
14915_ACEOF
14916sed -n '
14917h
14918s/^/S["/; s/!.*/"]=/
14919p
14920g
14921s/^[^!]*!//
14922:repl
14923t repl
14924s/'"$ac_delim"'$//
14925t delim
14926:nl
14927h
14928s/\(.\{148\}\)..*/\1/
14929t more1
14930s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
14931p
14932n
14933b repl
14934:more1
14935s/["\\]/\\&/g; s/^/"/; s/$/"\\/
14936p
14937g
14938s/.\{148\}//
14939t nl
14940:delim
14941h
14942s/\(.\{148\}\)..*/\1/
14943t more2
14944s/["\\]/\\&/g; s/^/"/; s/$/"/
14945p
14946b
14947:more2
14948s/["\\]/\\&/g; s/^/"/; s/$/"\\/
14949p
14950g
14951s/.\{148\}//
14952t delim
14953' <conf$$subs.awk | sed '
14954/^[^""]/{
14955  N
14956  s/\n//
14957}
14958' >>$CONFIG_STATUS || ac_write_fail=1
14959rm -f conf$$subs.awk
14960cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14961_ACAWK
14962cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
14963  for (key in S) S_is_set[key] = 1
14964  FS = ""
14965
14966}
14967{
14968  line = $ 0
14969  nfields = split(line, field, "@")
14970  substed = 0
14971  len = length(field[1])
14972  for (i = 2; i < nfields; i++) {
14973    key = field[i]
14974    keylen = length(key)
14975    if (S_is_set[key]) {
14976      value = S[key]
14977      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
14978      len += length(value) + length(field[++i])
14979      substed = 1
14980    } else
14981      len += 1 + keylen
14982  }
14983
14984  print line
14985}
14986
14987_ACAWK
14988_ACEOF
14989cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14990if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
14991  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
14992else
14993  cat
14994fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
14995  || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
14996_ACEOF
14997
14998# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
14999# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
15000# trailing colons and then remove the whole line if VPATH becomes empty
15001# (actually we leave an empty line to preserve line numbers).
15002if test "x$srcdir" = x.; then
15003  ac_vpsub='/^[	 ]*VPATH[	 ]*=[	 ]*/{
15004h
15005s///
15006s/^/:/
15007s/[	 ]*$/:/
15008s/:\$(srcdir):/:/g
15009s/:\${srcdir}:/:/g
15010s/:@srcdir@:/:/g
15011s/^:*//
15012s/:*$//
15013x
15014s/\(=[	 ]*\).*/\1/
15015G
15016s/\n//
15017s/^[^=]*=[	 ]*$//
15018}'
15019fi
15020
15021cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15022fi # test -n "$CONFIG_FILES"
15023
15024
15025eval set X "  :F $CONFIG_FILES      :C $CONFIG_COMMANDS"
15026shift
15027for ac_tag
15028do
15029  case $ac_tag in
15030  :[FHLC]) ac_mode=$ac_tag; continue;;
15031  esac
15032  case $ac_mode$ac_tag in
15033  :[FHL]*:*);;
15034  :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
15035  :[FH]-) ac_tag=-:-;;
15036  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
15037  esac
15038  ac_save_IFS=$IFS
15039  IFS=:
15040  set x $ac_tag
15041  IFS=$ac_save_IFS
15042  shift
15043  ac_file=$1
15044  shift
15045
15046  case $ac_mode in
15047  :L) ac_source=$1;;
15048  :[FH])
15049    ac_file_inputs=
15050    for ac_f
15051    do
15052      case $ac_f in
15053      -) ac_f="$ac_tmp/stdin";;
15054      *) # Look for the file first in the build tree, then in the source tree
15055	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
15056	 # because $ac_f cannot contain `:'.
15057	 test -f "$ac_f" ||
15058	   case $ac_f in
15059	   [\\/$]*) false;;
15060	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
15061	   esac ||
15062	   as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
15063      esac
15064      case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
15065      as_fn_append ac_file_inputs " '$ac_f'"
15066    done
15067
15068    # Let's still pretend it is `configure' which instantiates (i.e., don't
15069    # use $as_me), people would be surprised to read:
15070    #    /* config.h.  Generated by config.status.  */
15071    configure_input='Generated from '`
15072	  $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
15073	`' by configure.'
15074    if test x"$ac_file" != x-; then
15075      configure_input="$ac_file.  $configure_input"
15076      { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
15077$as_echo "$as_me: creating $ac_file" >&6;}
15078    fi
15079    # Neutralize special characters interpreted by sed in replacement strings.
15080    case $configure_input in #(
15081    *\&* | *\|* | *\\* )
15082       ac_sed_conf_input=`$as_echo "$configure_input" |
15083       sed 's/[\\\\&|]/\\\\&/g'`;; #(
15084    *) ac_sed_conf_input=$configure_input;;
15085    esac
15086
15087    case $ac_tag in
15088    *:-:* | *:-) cat >"$ac_tmp/stdin" \
15089      || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
15090    esac
15091    ;;
15092  esac
15093
15094  ac_dir=`$as_dirname -- "$ac_file" ||
15095$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15096	 X"$ac_file" : 'X\(//\)[^/]' \| \
15097	 X"$ac_file" : 'X\(//\)$' \| \
15098	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
15099$as_echo X"$ac_file" |
15100    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15101	    s//\1/
15102	    q
15103	  }
15104	  /^X\(\/\/\)[^/].*/{
15105	    s//\1/
15106	    q
15107	  }
15108	  /^X\(\/\/\)$/{
15109	    s//\1/
15110	    q
15111	  }
15112	  /^X\(\/\).*/{
15113	    s//\1/
15114	    q
15115	  }
15116	  s/.*/./; q'`
15117  as_dir="$ac_dir"; as_fn_mkdir_p
15118  ac_builddir=.
15119
15120case "$ac_dir" in
15121.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
15122*)
15123  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
15124  # A ".." for each directory in $ac_dir_suffix.
15125  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
15126  case $ac_top_builddir_sub in
15127  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
15128  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
15129  esac ;;
15130esac
15131ac_abs_top_builddir=$ac_pwd
15132ac_abs_builddir=$ac_pwd$ac_dir_suffix
15133# for backward compatibility:
15134ac_top_builddir=$ac_top_build_prefix
15135
15136case $srcdir in
15137  .)  # We are building in place.
15138    ac_srcdir=.
15139    ac_top_srcdir=$ac_top_builddir_sub
15140    ac_abs_top_srcdir=$ac_pwd ;;
15141  [\\/]* | ?:[\\/]* )  # Absolute name.
15142    ac_srcdir=$srcdir$ac_dir_suffix;
15143    ac_top_srcdir=$srcdir
15144    ac_abs_top_srcdir=$srcdir ;;
15145  *) # Relative name.
15146    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
15147    ac_top_srcdir=$ac_top_build_prefix$srcdir
15148    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
15149esac
15150ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
15151
15152
15153  case $ac_mode in
15154  :F)
15155  #
15156  # CONFIG_FILE
15157  #
15158
15159  case $INSTALL in
15160  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
15161  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
15162  esac
15163  ac_MKDIR_P=$MKDIR_P
15164  case $MKDIR_P in
15165  [\\/$]* | ?:[\\/]* ) ;;
15166  */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
15167  esac
15168_ACEOF
15169
15170cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15171# If the template does not know about datarootdir, expand it.
15172# FIXME: This hack should be removed a few years after 2.60.
15173ac_datarootdir_hack=; ac_datarootdir_seen=
15174ac_sed_dataroot='
15175/datarootdir/ {
15176  p
15177  q
15178}
15179/@datadir@/p
15180/@docdir@/p
15181/@infodir@/p
15182/@localedir@/p
15183/@mandir@/p'
15184case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
15185*datarootdir*) ac_datarootdir_seen=yes;;
15186*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
15187  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
15188$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
15189_ACEOF
15190cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15191  ac_datarootdir_hack='
15192  s&@datadir@&$datadir&g
15193  s&@docdir@&$docdir&g
15194  s&@infodir@&$infodir&g
15195  s&@localedir@&$localedir&g
15196  s&@mandir@&$mandir&g
15197  s&\\\${datarootdir}&$datarootdir&g' ;;
15198esac
15199_ACEOF
15200
15201# Neutralize VPATH when `$srcdir' = `.'.
15202# Shell code in configure.ac might set extrasub.
15203# FIXME: do we really want to maintain this feature?
15204cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15205ac_sed_extra="$ac_vpsub
15206$extrasub
15207_ACEOF
15208cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15209:t
15210/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
15211s|@configure_input@|$ac_sed_conf_input|;t t
15212s&@top_builddir@&$ac_top_builddir_sub&;t t
15213s&@top_build_prefix@&$ac_top_build_prefix&;t t
15214s&@srcdir@&$ac_srcdir&;t t
15215s&@abs_srcdir@&$ac_abs_srcdir&;t t
15216s&@top_srcdir@&$ac_top_srcdir&;t t
15217s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
15218s&@builddir@&$ac_builddir&;t t
15219s&@abs_builddir@&$ac_abs_builddir&;t t
15220s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
15221s&@INSTALL@&$ac_INSTALL&;t t
15222s&@MKDIR_P@&$ac_MKDIR_P&;t t
15223$ac_datarootdir_hack
15224"
15225eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
15226  >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
15227
15228test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
15229  { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
15230  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' \
15231      "$ac_tmp/out"`; test -z "$ac_out"; } &&
15232  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
15233which seems to be undefined.  Please make sure it is defined" >&5
15234$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
15235which seems to be undefined.  Please make sure it is defined" >&2;}
15236
15237  rm -f "$ac_tmp/stdin"
15238  case $ac_file in
15239  -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
15240  *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
15241  esac \
15242  || as_fn_error $? "could not create $ac_file" "$LINENO" 5
15243 ;;
15244
15245
15246  :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
15247$as_echo "$as_me: executing $ac_file commands" >&6;}
15248 ;;
15249  esac
15250
15251
15252  case $ac_file$ac_mode in
15253    "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
15254  # Older Autoconf quotes --file arguments for eval, but not when files
15255  # are listed without --file.  Let's play safe and only enable the eval
15256  # if we detect the quoting.
15257  case $CONFIG_FILES in
15258  *\'*) eval set x "$CONFIG_FILES" ;;
15259  *)   set x $CONFIG_FILES ;;
15260  esac
15261  shift
15262  for mf
15263  do
15264    # Strip MF so we end up with the name of the file.
15265    mf=`echo "$mf" | sed -e 's/:.*$//'`
15266    # Check whether this is an Automake generated Makefile or not.
15267    # We used to match only the files named 'Makefile.in', but
15268    # some people rename them; so instead we look at the file content.
15269    # Grep'ing the first line is not enough: some people post-process
15270    # each Makefile.in and add a new line on top of each file to say so.
15271    # Grep'ing the whole file is not good either: AIX grep has a line
15272    # limit of 2048, but all sed's we know have understand at least 4000.
15273    if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
15274      dirpart=`$as_dirname -- "$mf" ||
15275$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15276	 X"$mf" : 'X\(//\)[^/]' \| \
15277	 X"$mf" : 'X\(//\)$' \| \
15278	 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
15279$as_echo X"$mf" |
15280    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15281	    s//\1/
15282	    q
15283	  }
15284	  /^X\(\/\/\)[^/].*/{
15285	    s//\1/
15286	    q
15287	  }
15288	  /^X\(\/\/\)$/{
15289	    s//\1/
15290	    q
15291	  }
15292	  /^X\(\/\).*/{
15293	    s//\1/
15294	    q
15295	  }
15296	  s/.*/./; q'`
15297    else
15298      continue
15299    fi
15300    # Extract the definition of DEPDIR, am__include, and am__quote
15301    # from the Makefile without running 'make'.
15302    DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
15303    test -z "$DEPDIR" && continue
15304    am__include=`sed -n 's/^am__include = //p' < "$mf"`
15305    test -z "$am__include" && continue
15306    am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
15307    # Find all dependency output files, they are included files with
15308    # $(DEPDIR) in their names.  We invoke sed twice because it is the
15309    # simplest approach to changing $(DEPDIR) to its actual value in the
15310    # expansion.
15311    for file in `sed -n "
15312      s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
15313	 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
15314      # Make sure the directory exists.
15315      test -f "$dirpart/$file" && continue
15316      fdir=`$as_dirname -- "$file" ||
15317$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15318	 X"$file" : 'X\(//\)[^/]' \| \
15319	 X"$file" : 'X\(//\)$' \| \
15320	 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
15321$as_echo X"$file" |
15322    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15323	    s//\1/
15324	    q
15325	  }
15326	  /^X\(\/\/\)[^/].*/{
15327	    s//\1/
15328	    q
15329	  }
15330	  /^X\(\/\/\)$/{
15331	    s//\1/
15332	    q
15333	  }
15334	  /^X\(\/\).*/{
15335	    s//\1/
15336	    q
15337	  }
15338	  s/.*/./; q'`
15339      as_dir=$dirpart/$fdir; as_fn_mkdir_p
15340      # echo "creating $dirpart/$file"
15341      echo '# dummy' > "$dirpart/$file"
15342    done
15343  done
15344}
15345 ;;
15346    "libtool":C)
15347
15348    # See if we are running on zsh, and set the options that allow our
15349    # commands through without removal of \ escapes.
15350    if test -n "${ZSH_VERSION+set}"; then
15351      setopt NO_GLOB_SUBST
15352    fi
15353
15354    cfgfile=${ofile}T
15355    trap "$RM \"$cfgfile\"; exit 1" 1 2 15
15356    $RM "$cfgfile"
15357
15358    cat <<_LT_EOF >> "$cfgfile"
15359#! $SHELL
15360# Generated automatically by $as_me ($PACKAGE) $VERSION
15361# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
15362# NOTE: Changes made to this file will be lost: look at ltmain.sh.
15363
15364# Provide generalized library-building support services.
15365# Written by Gordon Matzigkeit, 1996
15366
15367# Copyright (C) 2014 Free Software Foundation, Inc.
15368# This is free software; see the source for copying conditions.  There is NO
15369# warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
15370
15371# GNU Libtool is free software; you can redistribute it and/or modify
15372# it under the terms of the GNU General Public License as published by
15373# the Free Software Foundation; either version 2 of of the License, or
15374# (at your option) any later version.
15375#
15376# As a special exception to the GNU General Public License, if you
15377# distribute this file as part of a program or library that is built
15378# using GNU Libtool, you may include this file under the  same
15379# distribution terms that you use for the rest of that program.
15380#
15381# GNU Libtool is distributed in the hope that it will be useful, but
15382# WITHOUT ANY WARRANTY; without even the implied warranty of
15383# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
15384# GNU General Public License for more details.
15385#
15386# You should have received a copy of the GNU General Public License
15387# along with this program.  If not, see <http://www.gnu.org/licenses/>.
15388
15389
15390# The names of the tagged configurations supported by this script.
15391available_tags=''
15392
15393# Configured defaults for sys_lib_dlsearch_path munging.
15394: \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
15395
15396# ### BEGIN LIBTOOL CONFIG
15397
15398# Which release of libtool.m4 was used?
15399macro_version=$macro_version
15400macro_revision=$macro_revision
15401
15402# Whether or not to build shared libraries.
15403build_libtool_libs=$enable_shared
15404
15405# Whether or not to build static libraries.
15406build_old_libs=$enable_static
15407
15408# What type of objects to build.
15409pic_mode=$pic_mode
15410
15411# Whether or not to optimize for fast installation.
15412fast_install=$enable_fast_install
15413
15414# Shared archive member basename,for filename based shared library versioning on AIX.
15415shared_archive_member_spec=$shared_archive_member_spec
15416
15417# Shell to use when invoking shell scripts.
15418SHELL=$lt_SHELL
15419
15420# An echo program that protects backslashes.
15421ECHO=$lt_ECHO
15422
15423# The PATH separator for the build system.
15424PATH_SEPARATOR=$lt_PATH_SEPARATOR
15425
15426# The host system.
15427host_alias=$host_alias
15428host=$host
15429host_os=$host_os
15430
15431# The build system.
15432build_alias=$build_alias
15433build=$build
15434build_os=$build_os
15435
15436# A sed program that does not truncate output.
15437SED=$lt_SED
15438
15439# Sed that helps us avoid accidentally triggering echo(1) options like -n.
15440Xsed="\$SED -e 1s/^X//"
15441
15442# A grep program that handles long lines.
15443GREP=$lt_GREP
15444
15445# An ERE matcher.
15446EGREP=$lt_EGREP
15447
15448# A literal string matcher.
15449FGREP=$lt_FGREP
15450
15451# A BSD- or MS-compatible name lister.
15452NM=$lt_NM
15453
15454# Whether we need soft or hard links.
15455LN_S=$lt_LN_S
15456
15457# What is the maximum length of a command?
15458max_cmd_len=$max_cmd_len
15459
15460# Object file suffix (normally "o").
15461objext=$ac_objext
15462
15463# Executable file suffix (normally "").
15464exeext=$exeext
15465
15466# whether the shell understands "unset".
15467lt_unset=$lt_unset
15468
15469# turn spaces into newlines.
15470SP2NL=$lt_lt_SP2NL
15471
15472# turn newlines into spaces.
15473NL2SP=$lt_lt_NL2SP
15474
15475# convert \$build file names to \$host format.
15476to_host_file_cmd=$lt_cv_to_host_file_cmd
15477
15478# convert \$build files to toolchain format.
15479to_tool_file_cmd=$lt_cv_to_tool_file_cmd
15480
15481# An object symbol dumper.
15482OBJDUMP=$lt_OBJDUMP
15483
15484# Method to check whether dependent libraries are shared objects.
15485deplibs_check_method=$lt_deplibs_check_method
15486
15487# Command to use when deplibs_check_method = "file_magic".
15488file_magic_cmd=$lt_file_magic_cmd
15489
15490# How to find potential files when deplibs_check_method = "file_magic".
15491file_magic_glob=$lt_file_magic_glob
15492
15493# Find potential files using nocaseglob when deplibs_check_method = "file_magic".
15494want_nocaseglob=$lt_want_nocaseglob
15495
15496# DLL creation program.
15497DLLTOOL=$lt_DLLTOOL
15498
15499# Command to associate shared and link libraries.
15500sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
15501
15502# The archiver.
15503AR=$lt_AR
15504
15505# Flags to create an archive.
15506AR_FLAGS=$lt_AR_FLAGS
15507
15508# How to feed a file listing to the archiver.
15509archiver_list_spec=$lt_archiver_list_spec
15510
15511# A symbol stripping program.
15512STRIP=$lt_STRIP
15513
15514# Commands used to install an old-style archive.
15515RANLIB=$lt_RANLIB
15516old_postinstall_cmds=$lt_old_postinstall_cmds
15517old_postuninstall_cmds=$lt_old_postuninstall_cmds
15518
15519# Whether to use a lock for old archive extraction.
15520lock_old_archive_extraction=$lock_old_archive_extraction
15521
15522# A C compiler.
15523LTCC=$lt_CC
15524
15525# LTCC compiler flags.
15526LTCFLAGS=$lt_CFLAGS
15527
15528# Take the output of nm and produce a listing of raw symbols and C names.
15529global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
15530
15531# Transform the output of nm in a proper C declaration.
15532global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
15533
15534# Transform the output of nm into a list of symbols to manually relocate.
15535global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
15536
15537# Transform the output of nm in a C name address pair.
15538global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
15539
15540# Transform the output of nm in a C name address pair when lib prefix is needed.
15541global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
15542
15543# The name lister interface.
15544nm_interface=$lt_lt_cv_nm_interface
15545
15546# Specify filename containing input files for \$NM.
15547nm_file_list_spec=$lt_nm_file_list_spec
15548
15549# The root where to search for dependent libraries,and where our libraries should be installed.
15550lt_sysroot=$lt_sysroot
15551
15552# Command to truncate a binary pipe.
15553lt_truncate_bin=$lt_lt_cv_truncate_bin
15554
15555# The name of the directory that contains temporary libtool files.
15556objdir=$objdir
15557
15558# Used to examine libraries when file_magic_cmd begins with "file".
15559MAGIC_CMD=$MAGIC_CMD
15560
15561# Must we lock files when doing compilation?
15562need_locks=$lt_need_locks
15563
15564# Manifest tool.
15565MANIFEST_TOOL=$lt_MANIFEST_TOOL
15566
15567# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
15568DSYMUTIL=$lt_DSYMUTIL
15569
15570# Tool to change global to local symbols on Mac OS X.
15571NMEDIT=$lt_NMEDIT
15572
15573# Tool to manipulate fat objects and archives on Mac OS X.
15574LIPO=$lt_LIPO
15575
15576# ldd/readelf like tool for Mach-O binaries on Mac OS X.
15577OTOOL=$lt_OTOOL
15578
15579# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
15580OTOOL64=$lt_OTOOL64
15581
15582# Old archive suffix (normally "a").
15583libext=$libext
15584
15585# Shared library suffix (normally ".so").
15586shrext_cmds=$lt_shrext_cmds
15587
15588# The commands to extract the exported symbol list from a shared archive.
15589extract_expsyms_cmds=$lt_extract_expsyms_cmds
15590
15591# Variables whose values should be saved in libtool wrapper scripts and
15592# restored at link time.
15593variables_saved_for_relink=$lt_variables_saved_for_relink
15594
15595# Do we need the "lib" prefix for modules?
15596need_lib_prefix=$need_lib_prefix
15597
15598# Do we need a version for libraries?
15599need_version=$need_version
15600
15601# Library versioning type.
15602version_type=$version_type
15603
15604# Shared library runtime path variable.
15605runpath_var=$runpath_var
15606
15607# Shared library path variable.
15608shlibpath_var=$shlibpath_var
15609
15610# Is shlibpath searched before the hard-coded library search path?
15611shlibpath_overrides_runpath=$shlibpath_overrides_runpath
15612
15613# Format of library name prefix.
15614libname_spec=$lt_libname_spec
15615
15616# List of archive names.  First name is the real one, the rest are links.
15617# The last name is the one that the linker finds with -lNAME
15618library_names_spec=$lt_library_names_spec
15619
15620# The coded name of the library, if different from the real name.
15621soname_spec=$lt_soname_spec
15622
15623# Permission mode override for installation of shared libraries.
15624install_override_mode=$lt_install_override_mode
15625
15626# Command to use after installation of a shared archive.
15627postinstall_cmds=$lt_postinstall_cmds
15628
15629# Command to use after uninstallation of a shared archive.
15630postuninstall_cmds=$lt_postuninstall_cmds
15631
15632# Commands used to finish a libtool library installation in a directory.
15633finish_cmds=$lt_finish_cmds
15634
15635# As "finish_cmds", except a single script fragment to be evaled but
15636# not shown.
15637finish_eval=$lt_finish_eval
15638
15639# Whether we should hardcode library paths into libraries.
15640hardcode_into_libs=$hardcode_into_libs
15641
15642# Compile-time system search path for libraries.
15643sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
15644
15645# Detected run-time system search path for libraries.
15646sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
15647
15648# Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
15649configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
15650
15651# Whether dlopen is supported.
15652dlopen_support=$enable_dlopen
15653
15654# Whether dlopen of programs is supported.
15655dlopen_self=$enable_dlopen_self
15656
15657# Whether dlopen of statically linked programs is supported.
15658dlopen_self_static=$enable_dlopen_self_static
15659
15660# Commands to strip libraries.
15661old_striplib=$lt_old_striplib
15662striplib=$lt_striplib
15663
15664
15665# The linker used to build libraries.
15666LD=$lt_LD
15667
15668# How to create reloadable object files.
15669reload_flag=$lt_reload_flag
15670reload_cmds=$lt_reload_cmds
15671
15672# Commands used to build an old-style archive.
15673old_archive_cmds=$lt_old_archive_cmds
15674
15675# A language specific compiler.
15676CC=$lt_compiler
15677
15678# Is the compiler the GNU compiler?
15679with_gcc=$GCC
15680
15681# Compiler flag to turn off builtin functions.
15682no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
15683
15684# Additional compiler flags for building library objects.
15685pic_flag=$lt_lt_prog_compiler_pic
15686
15687# How to pass a linker flag through the compiler.
15688wl=$lt_lt_prog_compiler_wl
15689
15690# Compiler flag to prevent dynamic linking.
15691link_static_flag=$lt_lt_prog_compiler_static
15692
15693# Does compiler simultaneously support -c and -o options?
15694compiler_c_o=$lt_lt_cv_prog_compiler_c_o
15695
15696# Whether or not to add -lc for building shared libraries.
15697build_libtool_need_lc=$archive_cmds_need_lc
15698
15699# Whether or not to disallow shared libs when runtime libs are static.
15700allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
15701
15702# Compiler flag to allow reflexive dlopens.
15703export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
15704
15705# Compiler flag to generate shared objects directly from archives.
15706whole_archive_flag_spec=$lt_whole_archive_flag_spec
15707
15708# Whether the compiler copes with passing no objects directly.
15709compiler_needs_object=$lt_compiler_needs_object
15710
15711# Create an old-style archive from a shared archive.
15712old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
15713
15714# Create a temporary old-style archive to link instead of a shared archive.
15715old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
15716
15717# Commands used to build a shared archive.
15718archive_cmds=$lt_archive_cmds
15719archive_expsym_cmds=$lt_archive_expsym_cmds
15720
15721# Commands used to build a loadable module if different from building
15722# a shared archive.
15723module_cmds=$lt_module_cmds
15724module_expsym_cmds=$lt_module_expsym_cmds
15725
15726# Whether we are building with GNU ld or not.
15727with_gnu_ld=$lt_with_gnu_ld
15728
15729# Flag that allows shared libraries with undefined symbols to be built.
15730allow_undefined_flag=$lt_allow_undefined_flag
15731
15732# Flag that enforces no undefined symbols.
15733no_undefined_flag=$lt_no_undefined_flag
15734
15735# Flag to hardcode \$libdir into a binary during linking.
15736# This must work even if \$libdir does not exist
15737hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
15738
15739# Whether we need a single "-rpath" flag with a separated argument.
15740hardcode_libdir_separator=$lt_hardcode_libdir_separator
15741
15742# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
15743# DIR into the resulting binary.
15744hardcode_direct=$hardcode_direct
15745
15746# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
15747# DIR into the resulting binary and the resulting library dependency is
15748# "absolute",i.e impossible to change by setting \$shlibpath_var if the
15749# library is relocated.
15750hardcode_direct_absolute=$hardcode_direct_absolute
15751
15752# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
15753# into the resulting binary.
15754hardcode_minus_L=$hardcode_minus_L
15755
15756# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
15757# into the resulting binary.
15758hardcode_shlibpath_var=$hardcode_shlibpath_var
15759
15760# Set to "yes" if building a shared library automatically hardcodes DIR
15761# into the library and all subsequent libraries and executables linked
15762# against it.
15763hardcode_automatic=$hardcode_automatic
15764
15765# Set to yes if linker adds runtime paths of dependent libraries
15766# to runtime path list.
15767inherit_rpath=$inherit_rpath
15768
15769# Whether libtool must link a program against all its dependency libraries.
15770link_all_deplibs=$link_all_deplibs
15771
15772# Set to "yes" if exported symbols are required.
15773always_export_symbols=$always_export_symbols
15774
15775# The commands to list exported symbols.
15776export_symbols_cmds=$lt_export_symbols_cmds
15777
15778# Symbols that should not be listed in the preloaded symbols.
15779exclude_expsyms=$lt_exclude_expsyms
15780
15781# Symbols that must always be exported.
15782include_expsyms=$lt_include_expsyms
15783
15784# Commands necessary for linking programs (against libraries) with templates.
15785prelink_cmds=$lt_prelink_cmds
15786
15787# Commands necessary for finishing linking programs.
15788postlink_cmds=$lt_postlink_cmds
15789
15790# Specify filename containing input files.
15791file_list_spec=$lt_file_list_spec
15792
15793# How to hardcode a shared library path into an executable.
15794hardcode_action=$hardcode_action
15795
15796# ### END LIBTOOL CONFIG
15797
15798_LT_EOF
15799
15800    cat <<'_LT_EOF' >> "$cfgfile"
15801
15802# ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
15803
15804# func_munge_path_list VARIABLE PATH
15805# -----------------------------------
15806# VARIABLE is name of variable containing _space_ separated list of
15807# directories to be munged by the contents of PATH, which is string
15808# having a format:
15809# "DIR[:DIR]:"
15810#       string "DIR[ DIR]" will be prepended to VARIABLE
15811# ":DIR[:DIR]"
15812#       string "DIR[ DIR]" will be appended to VARIABLE
15813# "DIRP[:DIRP]::[DIRA:]DIRA"
15814#       string "DIRP[ DIRP]" will be prepended to VARIABLE and string
15815#       "DIRA[ DIRA]" will be appended to VARIABLE
15816# "DIR[:DIR]"
15817#       VARIABLE will be replaced by "DIR[ DIR]"
15818func_munge_path_list ()
15819{
15820    case x$2 in
15821    x)
15822        ;;
15823    *:)
15824        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
15825        ;;
15826    x:*)
15827        eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
15828        ;;
15829    *::*)
15830        eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
15831        eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
15832        ;;
15833    *)
15834        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
15835        ;;
15836    esac
15837}
15838
15839
15840# Calculate cc_basename.  Skip known compiler wrappers and cross-prefix.
15841func_cc_basename ()
15842{
15843    for cc_temp in $*""; do
15844      case $cc_temp in
15845        compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
15846        distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
15847        \-*) ;;
15848        *) break;;
15849      esac
15850    done
15851    func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
15852}
15853
15854
15855# ### END FUNCTIONS SHARED WITH CONFIGURE
15856
15857_LT_EOF
15858
15859  case $host_os in
15860  aix3*)
15861    cat <<\_LT_EOF >> "$cfgfile"
15862# AIX sometimes has problems with the GCC collect2 program.  For some
15863# reason, if we set the COLLECT_NAMES environment variable, the problems
15864# vanish in a puff of smoke.
15865if test set != "${COLLECT_NAMES+set}"; then
15866  COLLECT_NAMES=
15867  export COLLECT_NAMES
15868fi
15869_LT_EOF
15870    ;;
15871  esac
15872
15873
15874ltmain=$ac_aux_dir/ltmain.sh
15875
15876
15877  # We use sed instead of cat because bash on DJGPP gets confused if
15878  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
15879  # text mode, it properly converts lines to CR/LF.  This bash problem
15880  # is reportedly fixed, but why not run on old versions too?
15881  sed '$q' "$ltmain" >> "$cfgfile" \
15882     || (rm -f "$cfgfile"; exit 1)
15883
15884   mv -f "$cfgfile" "$ofile" ||
15885    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
15886  chmod +x "$ofile"
15887
15888 ;;
15889
15890  esac
15891done # for ac_tag
15892
15893
15894as_fn_exit 0
15895_ACEOF
15896ac_clean_files=$ac_clean_files_save
15897
15898test $ac_write_fail = 0 ||
15899  as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
15900
15901
15902# configure is writing to config.log, and then calls config.status.
15903# config.status does its own redirection, appending to config.log.
15904# Unfortunately, on DOS this fails, as config.log is still kept open
15905# by configure, so config.status won't be able to write to it; its
15906# output is simply discarded.  So we exec the FD to /dev/null,
15907# effectively closing config.log, so it can be properly (re)opened and
15908# appended to by config.status.  When coming back to configure, we
15909# need to make the FD available again.
15910if test "$no_create" != yes; then
15911  ac_cs_success=:
15912  ac_config_status_args=
15913  test "$silent" = yes &&
15914    ac_config_status_args="$ac_config_status_args --quiet"
15915  exec 5>/dev/null
15916  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
15917  exec 5>>config.log
15918  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
15919  # would make configure fail if this is the last instruction.
15920  $ac_cs_success || as_fn_exit 1
15921fi
15922if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
15923  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
15924$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
15925fi
15926
15927